136 | | # Required to use basename. |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | |
| 202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 206 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 209 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 210 | if (eval "$as_required") 2>/dev/null; then : |
| 211 | as_have_required=yes |
| 212 | else |
| 213 | as_have_required=no |
| 214 | fi |
| 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 216 | |
| 217 | else |
| 218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 219 | as_found=false |
| 220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
| 224 | as_found=: |
| 225 | case $as_dir in #( |
| 226 | /*) |
| 227 | for as_base in sh bash ksh sh5; do |
| 228 | # Try only shells that exist, to save several forks. |
| 229 | as_shell=$as_dir/$as_base |
| 230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 232 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 234 | break 2 |
| 235 | fi |
| 236 | fi |
| 237 | done;; |
| 238 | esac |
| 239 | as_found=false |
| 240 | done |
| 241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 243 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 244 | fi; } |
| 245 | IFS=$as_save_IFS |
| 246 | |
| 247 | |
| 248 | if test "x$CONFIG_SHELL" != x; then : |
| 249 | export CONFIG_SHELL |
| 250 | # We cannot yet assume a decent shell, so we have to provide a |
| 251 | # neutralization value for shells without unset; and this also |
| 252 | # works around shells that cannot unset nonexistent variables. |
| 253 | # Preserve -v and -x to the replacement shell. |
| 254 | BASH_ENV=/dev/null |
| 255 | ENV=/dev/null |
| 256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 257 | case $- in # (((( |
| 258 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 259 | *v* ) as_opts=-v ;; |
| 260 | *x* ) as_opts=-x ;; |
| 261 | * ) as_opts= ;; |
| 262 | esac |
| 263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 264 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 265 | # out after a failed `exec'. |
| 266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 267 | exit 255 |
| 268 | fi |
| 269 | |
| 270 | if test x$as_have_required = xno; then : |
| 271 | $as_echo "$0: This script requires a shell more modern than all" |
| 272 | $as_echo "$0: the shells that I found on your system." |
| 273 | if test x${ZSH_VERSION+set} = xset ; then |
| 274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 276 | else |
| 277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 278 | $0: ren@mathematik.uni-kl.de about your system, including |
| 279 | $0: any error possibly output before this message. Then |
| 280 | $0: install a modern shell, or manually run the script |
| 281 | $0: under such a shell if you do have one." |
| 282 | fi |
| 283 | exit 1 |
| 284 | fi |
| 285 | fi |
| 286 | fi |
| 287 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 288 | export SHELL |
| 289 | # Unset more variables known to interfere with behavior of common tools. |
| 290 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 291 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 292 | |
| 293 | ## --------------------- ## |
| 294 | ## M4sh Shell Functions. ## |
| 295 | ## --------------------- ## |
| 296 | # as_fn_unset VAR |
| 297 | # --------------- |
| 298 | # Portably unset VAR. |
| 299 | as_fn_unset () |
| 300 | { |
| 301 | { eval $1=; unset $1;} |
| 302 | } |
| 303 | as_unset=as_fn_unset |
| 304 | |
| 305 | # as_fn_set_status STATUS |
| 306 | # ----------------------- |
| 307 | # Set $? to STATUS, without forking. |
| 308 | as_fn_set_status () |
| 309 | { |
| 310 | return $1 |
| 311 | } # as_fn_set_status |
| 312 | |
| 313 | # as_fn_exit STATUS |
| 314 | # ----------------- |
| 315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 316 | as_fn_exit () |
| 317 | { |
| 318 | set +e |
| 319 | as_fn_set_status $1 |
| 320 | exit $1 |
| 321 | } # as_fn_exit |
| 322 | |
| 323 | # as_fn_mkdir_p |
| 324 | # ------------- |
| 325 | # Create "$as_dir" as a directory, including parents if necessary. |
| 326 | as_fn_mkdir_p () |
| 327 | { |
| 328 | |
| 329 | case $as_dir in #( |
| 330 | -*) as_dir=./$as_dir;; |
| 331 | esac |
| 332 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 333 | as_dirs= |
| 334 | while :; do |
| 335 | case $as_dir in #( |
| 336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 337 | *) as_qdir=$as_dir;; |
| 338 | esac |
| 339 | as_dirs="'$as_qdir' $as_dirs" |
| 340 | as_dir=`$as_dirname -- "$as_dir" || |
| 341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 342 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 343 | X"$as_dir" : 'X\(//\)$' \| \ |
| 344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 345 | $as_echo X"$as_dir" | |
| 346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\/\)[^/].*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | /^X\(\/\/\)$/{ |
| 355 | s//\1/ |
| 356 | q |
| 357 | } |
| 358 | /^X\(\/\).*/{ |
| 359 | s//\1/ |
| 360 | q |
| 361 | } |
| 362 | s/.*/./; q'` |
| 363 | test -d "$as_dir" && break |
| 364 | done |
| 365 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 367 | |
| 368 | |
| 369 | } # as_fn_mkdir_p |
| 370 | |
| 371 | # as_fn_executable_p FILE |
| 372 | # ----------------------- |
| 373 | # Test if FILE is an executable regular file. |
| 374 | as_fn_executable_p () |
| 375 | { |
| 376 | test -f "$1" && test -x "$1" |
| 377 | } # as_fn_executable_p |
| 378 | # as_fn_append VAR VALUE |
| 379 | # ---------------------- |
| 380 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 381 | # advantage of any shell optimizations that allow amortized linear growth over |
| 382 | # repeated appends, instead of the typical quadratic growth present in naive |
| 383 | # implementations. |
| 384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 385 | eval 'as_fn_append () |
| 386 | { |
| 387 | eval $1+=\$2 |
| 388 | }' |
| 389 | else |
| 390 | as_fn_append () |
| 391 | { |
| 392 | eval $1=\$$1\$2 |
| 393 | } |
| 394 | fi # as_fn_append |
| 395 | |
| 396 | # as_fn_arith ARG... |
| 397 | # ------------------ |
| 398 | # 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 |
| 400 | # must be portable across $(()) and expr. |
| 401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 402 | eval 'as_fn_arith () |
| 403 | { |
| 404 | as_val=$(( $* )) |
| 405 | }' |
| 406 | else |
| 407 | as_fn_arith () |
| 408 | { |
| 409 | as_val=`expr "$@" || test $? -eq 1` |
| 410 | } |
| 411 | fi # as_fn_arith |
| 412 | |
| 413 | |
| 414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 415 | # ---------------------------------------- |
| 416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 418 | # script with STATUS, using 1 if that was 0. |
| 419 | as_fn_error () |
| 420 | { |
| 421 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 422 | if test "$4"; then |
| 423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 425 | fi |
| 426 | $as_echo "$as_me: error: $2" >&2 |
| 427 | as_fn_exit $as_status |
| 428 | } # as_fn_error |
| 429 | |
171 | | # CDPATH. |
172 | | $as_unset CDPATH |
173 | | |
174 | | |
175 | | if test "x$CONFIG_SHELL" = x; then |
176 | | if (eval ":") 2>/dev/null; then |
177 | | as_have_required=yes |
178 | | else |
179 | | as_have_required=no |
180 | | fi |
181 | | |
182 | | if test $as_have_required = yes && (eval ": |
183 | | (as_func_return () { |
184 | | (exit \$1) |
185 | | } |
186 | | as_func_success () { |
187 | | as_func_return 0 |
188 | | } |
189 | | as_func_failure () { |
190 | | as_func_return 1 |
191 | | } |
192 | | as_func_ret_success () { |
193 | | return 0 |
194 | | } |
195 | | as_func_ret_failure () { |
196 | | return 1 |
197 | | } |
198 | | |
199 | | exitcode=0 |
200 | | if as_func_success; then |
201 | | : |
202 | | else |
203 | | exitcode=1 |
204 | | echo as_func_success failed. |
205 | | fi |
206 | | |
207 | | if as_func_failure; then |
208 | | exitcode=1 |
209 | | echo as_func_failure succeeded. |
210 | | fi |
211 | | |
212 | | if as_func_ret_success; then |
213 | | : |
214 | | else |
215 | | exitcode=1 |
216 | | echo as_func_ret_success failed. |
217 | | fi |
218 | | |
219 | | if as_func_ret_failure; then |
220 | | exitcode=1 |
221 | | echo as_func_ret_failure succeeded. |
222 | | fi |
223 | | |
224 | | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
225 | | : |
226 | | else |
227 | | exitcode=1 |
228 | | echo positional parameters were not saved. |
229 | | fi |
230 | | |
231 | | test \$exitcode = 0) || { (exit 1); exit 1; } |
232 | | |
233 | | ( |
234 | | as_lineno_1=\$LINENO |
235 | | as_lineno_2=\$LINENO |
236 | | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
237 | | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
238 | | ") 2> /dev/null; then |
239 | | : |
240 | | else |
241 | | as_candidate_shells= |
242 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
243 | | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
244 | | do |
245 | | IFS=$as_save_IFS |
246 | | test -z "$as_dir" && as_dir=. |
247 | | case $as_dir in |
248 | | /*) |
249 | | for as_base in sh bash ksh sh5; do |
250 | | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
251 | | done;; |
252 | | esac |
253 | | done |
254 | | IFS=$as_save_IFS |
255 | | |
256 | | |
257 | | for as_shell in $as_candidate_shells $SHELL; do |
258 | | # Try only shells that exist, to save several forks. |
259 | | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
260 | | { ("$as_shell") 2> /dev/null <<\_ASEOF |
261 | | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
262 | | emulate sh |
263 | | NULLCMD=: |
264 | | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
265 | | # is contrary to our usage. Disable this feature. |
266 | | alias -g '${1+"$@"}'='"$@"' |
267 | | setopt NO_GLOB_SUBST |
268 | | else |
269 | | case `(set -o) 2>/dev/null` in |
270 | | *posix*) set -o posix ;; |
271 | | esac |
272 | | |
273 | | fi |
274 | | |
275 | | |
276 | | : |
277 | | _ASEOF |
278 | | }; then |
279 | | CONFIG_SHELL=$as_shell |
280 | | as_have_required=yes |
281 | | if { "$as_shell" 2> /dev/null <<\_ASEOF |
282 | | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
283 | | emulate sh |
284 | | NULLCMD=: |
285 | | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
286 | | # is contrary to our usage. Disable this feature. |
287 | | alias -g '${1+"$@"}'='"$@"' |
288 | | setopt NO_GLOB_SUBST |
289 | | else |
290 | | case `(set -o) 2>/dev/null` in |
291 | | *posix*) set -o posix ;; |
292 | | esac |
293 | | |
294 | | fi |
295 | | |
296 | | |
297 | | : |
298 | | (as_func_return () { |
299 | | (exit $1) |
300 | | } |
301 | | as_func_success () { |
302 | | as_func_return 0 |
303 | | } |
304 | | as_func_failure () { |
305 | | as_func_return 1 |
306 | | } |
307 | | as_func_ret_success () { |
308 | | return 0 |
309 | | } |
310 | | as_func_ret_failure () { |
311 | | return 1 |
312 | | } |
313 | | |
314 | | exitcode=0 |
315 | | if as_func_success; then |
316 | | : |
317 | | else |
318 | | exitcode=1 |
319 | | echo as_func_success failed. |
320 | | fi |
321 | | |
322 | | if as_func_failure; then |
323 | | exitcode=1 |
324 | | echo as_func_failure succeeded. |
325 | | fi |
326 | | |
327 | | if as_func_ret_success; then |
328 | | : |
329 | | else |
330 | | exitcode=1 |
331 | | echo as_func_ret_success failed. |
332 | | fi |
333 | | |
334 | | if as_func_ret_failure; then |
335 | | exitcode=1 |
336 | | echo as_func_ret_failure succeeded. |
337 | | fi |
338 | | |
339 | | if ( set x; as_func_ret_success y && test x = "$1" ); then |
340 | | : |
341 | | else |
342 | | exitcode=1 |
343 | | echo positional parameters were not saved. |
344 | | fi |
345 | | |
346 | | test $exitcode = 0) || { (exit 1); exit 1; } |
347 | | |
348 | | ( |
349 | | as_lineno_1=$LINENO |
350 | | as_lineno_2=$LINENO |
351 | | test "x$as_lineno_1" != "x$as_lineno_2" && |
352 | | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
353 | | |
354 | | _ASEOF |
355 | | }; then |
356 | | break |
357 | | fi |
358 | | |
359 | | fi |
360 | | |
361 | | done |
362 | | |
363 | | if test "x$CONFIG_SHELL" != x; then |
364 | | for as_var in BASH_ENV ENV |
365 | | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
366 | | done |
367 | | export CONFIG_SHELL |
368 | | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
369 | | fi |
370 | | |
371 | | |
372 | | if test $as_have_required = no; then |
373 | | echo This script requires a shell more modern than all the |
374 | | echo shells that I found on your system. Please install a |
375 | | echo modern shell, or manually run the script under such a |
376 | | echo shell if you do have one. |
377 | | { (exit 1); exit 1; } |
378 | | fi |
379 | | |
380 | | |
381 | | fi |
382 | | |
383 | | fi |
384 | | |
385 | | |
386 | | |
387 | | (eval "as_func_return () { |
388 | | (exit \$1) |
389 | | } |
390 | | as_func_success () { |
391 | | as_func_return 0 |
392 | | } |
393 | | as_func_failure () { |
394 | | as_func_return 1 |
395 | | } |
396 | | as_func_ret_success () { |
397 | | return 0 |
398 | | } |
399 | | as_func_ret_failure () { |
400 | | return 1 |
401 | | } |
402 | | |
403 | | exitcode=0 |
404 | | if as_func_success; then |
405 | | : |
406 | | else |
407 | | exitcode=1 |
408 | | echo as_func_success failed. |
409 | | fi |
410 | | |
411 | | if as_func_failure; then |
412 | | exitcode=1 |
413 | | echo as_func_failure succeeded. |
414 | | fi |
415 | | |
416 | | if as_func_ret_success; then |
417 | | : |
418 | | else |
419 | | exitcode=1 |
420 | | echo as_func_ret_success failed. |
421 | | fi |
422 | | |
423 | | if as_func_ret_failure; then |
424 | | exitcode=1 |
425 | | echo as_func_ret_failure succeeded. |
426 | | fi |
427 | | |
428 | | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
429 | | : |
430 | | else |
431 | | exitcode=1 |
432 | | echo positional parameters were not saved. |
433 | | fi |
434 | | |
435 | | test \$exitcode = 0") || { |
436 | | echo No shell found that supports shell functions. |
437 | | echo Please tell bug-autoconf@gnu.org about your system, |
438 | | echo including any error possibly output before this message. |
439 | | echo This can help us improve future autoconf versions. |
440 | | echo Configuration will now proceed without shell functions. |
441 | | } |
442 | | |
443 | | |
444 | | |
445 | | as_lineno_1=$LINENO |
446 | | as_lineno_2=$LINENO |
447 | | test "x$as_lineno_1" != "x$as_lineno_2" && |
448 | | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
449 | | |
450 | | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
451 | | # uniformly replaced by the line number. The first 'sed' inserts a |
452 | | # line-number line after each line using $LINENO; the second 'sed' |
453 | | # does the real work. The second script uses 'N' to pair each |
454 | | # line-number line with the line containing $LINENO, and appends |
455 | | # trailing '-' during substitution so that $LINENO is not a special |
456 | | # case at line end. |
457 | | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
458 | | # scripts with optimization help from Paolo Bonzini. Blame Lee |
459 | | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 468 | # Avoid depending upon Character Ranges. |
| 469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 472 | as_cr_digits='0123456789' |
| 473 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 474 | |
| 475 | |
| 476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 1537 | |
| 1538 | ## ------------------------ ## |
| 1539 | ## Autoconf initialization. ## |
| 1540 | ## ------------------------ ## |
| 1541 | |
| 1542 | # ac_fn_c_try_compile LINENO |
| 1543 | # -------------------------- |
| 1544 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1545 | ac_fn_c_try_compile () |
| 1546 | { |
| 1547 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1548 | rm -f conftest.$ac_objext |
| 1549 | if { { ac_try="$ac_compile" |
| 1550 | case "(($ac_try" in |
| 1551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1552 | *) ac_try_echo=$ac_try;; |
| 1553 | esac |
| 1554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1555 | $as_echo "$ac_try_echo"; } >&5 |
| 1556 | (eval "$ac_compile") 2>conftest.err |
| 1557 | ac_status=$? |
| 1558 | if test -s conftest.err; then |
| 1559 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1560 | cat conftest.er1 >&5 |
| 1561 | mv -f conftest.er1 conftest.err |
| 1562 | fi |
| 1563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1564 | test $ac_status = 0; } && { |
| 1565 | test -z "$ac_c_werror_flag" || |
| 1566 | test ! -s conftest.err |
| 1567 | } && test -s conftest.$ac_objext; then : |
| 1568 | ac_retval=0 |
| 1569 | else |
| 1570 | $as_echo "$as_me: failed program was:" >&5 |
| 1571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1572 | |
| 1573 | ac_retval=1 |
| 1574 | fi |
| 1575 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1576 | as_fn_set_status $ac_retval |
| 1577 | |
| 1578 | } # ac_fn_c_try_compile |
| 1579 | |
| 1580 | # ac_fn_cxx_try_compile LINENO |
| 1581 | # ---------------------------- |
| 1582 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1583 | ac_fn_cxx_try_compile () |
| 1584 | { |
| 1585 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1586 | rm -f conftest.$ac_objext |
| 1587 | if { { ac_try="$ac_compile" |
| 1588 | case "(($ac_try" in |
| 1589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1590 | *) ac_try_echo=$ac_try;; |
| 1591 | esac |
| 1592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1593 | $as_echo "$ac_try_echo"; } >&5 |
| 1594 | (eval "$ac_compile") 2>conftest.err |
| 1595 | ac_status=$? |
| 1596 | if test -s conftest.err; then |
| 1597 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1598 | cat conftest.er1 >&5 |
| 1599 | mv -f conftest.er1 conftest.err |
| 1600 | fi |
| 1601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1602 | test $ac_status = 0; } && { |
| 1603 | test -z "$ac_cxx_werror_flag" || |
| 1604 | test ! -s conftest.err |
| 1605 | } && test -s conftest.$ac_objext; then : |
| 1606 | ac_retval=0 |
| 1607 | else |
| 1608 | $as_echo "$as_me: failed program was:" >&5 |
| 1609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1610 | |
| 1611 | ac_retval=1 |
| 1612 | fi |
| 1613 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1614 | as_fn_set_status $ac_retval |
| 1615 | |
| 1616 | } # ac_fn_cxx_try_compile |
| 1617 | |
| 1618 | # ac_fn_c_try_link LINENO |
| 1619 | # ----------------------- |
| 1620 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1621 | ac_fn_c_try_link () |
| 1622 | { |
| 1623 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1625 | if { { ac_try="$ac_link" |
| 1626 | case "(($ac_try" in |
| 1627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1628 | *) ac_try_echo=$ac_try;; |
| 1629 | esac |
| 1630 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1631 | $as_echo "$ac_try_echo"; } >&5 |
| 1632 | (eval "$ac_link") 2>conftest.err |
| 1633 | ac_status=$? |
| 1634 | if test -s conftest.err; then |
| 1635 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1636 | cat conftest.er1 >&5 |
| 1637 | mv -f conftest.er1 conftest.err |
| 1638 | fi |
| 1639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1640 | test $ac_status = 0; } && { |
| 1641 | test -z "$ac_c_werror_flag" || |
| 1642 | test ! -s conftest.err |
| 1643 | } && test -s conftest$ac_exeext && { |
| 1644 | test "$cross_compiling" = yes || |
| 1645 | test -x conftest$ac_exeext |
| 1646 | }; then : |
| 1647 | ac_retval=0 |
| 1648 | else |
| 1649 | $as_echo "$as_me: failed program was:" >&5 |
| 1650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1651 | |
| 1652 | ac_retval=1 |
| 1653 | fi |
| 1654 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1655 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1656 | # interfere with the next link command; also delete a directory that is |
| 1657 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1658 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1659 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1660 | as_fn_set_status $ac_retval |
| 1661 | |
| 1662 | } # ac_fn_c_try_link |
| 1663 | |
| 1664 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1665 | # ------------------------------------------------------- |
| 1666 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1667 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1668 | ac_fn_c_check_header_compile () |
| 1669 | { |
| 1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1672 | $as_echo_n "checking for $2... " >&6; } |
| 1673 | if eval \${$3+:} false; then : |
| 1674 | $as_echo_n "(cached) " >&6 |
| 1675 | else |
| 1676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1677 | /* end confdefs.h. */ |
| 1678 | $4 |
| 1679 | #include <$2> |
| 1680 | _ACEOF |
| 1681 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1682 | eval "$3=yes" |
| 1683 | else |
| 1684 | eval "$3=no" |
| 1685 | fi |
| 1686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1687 | fi |
| 1688 | eval ac_res=\$$3 |
| 1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1690 | $as_echo "$ac_res" >&6; } |
| 1691 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1692 | |
| 1693 | } # ac_fn_c_check_header_compile |
| 1694 | |
| 1695 | # ac_fn_c_try_cpp LINENO |
| 1696 | # ---------------------- |
| 1697 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1698 | ac_fn_c_try_cpp () |
| 1699 | { |
| 1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1701 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1702 | case "(($ac_try" in |
| 1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1704 | *) ac_try_echo=$ac_try;; |
| 1705 | esac |
| 1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1707 | $as_echo "$ac_try_echo"; } >&5 |
| 1708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1709 | ac_status=$? |
| 1710 | if test -s conftest.err; then |
| 1711 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1712 | cat conftest.er1 >&5 |
| 1713 | mv -f conftest.er1 conftest.err |
| 1714 | fi |
| 1715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1716 | test $ac_status = 0; } > conftest.i && { |
| 1717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1718 | test ! -s conftest.err |
| 1719 | }; then : |
| 1720 | ac_retval=0 |
| 1721 | else |
| 1722 | $as_echo "$as_me: failed program was:" >&5 |
| 1723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1724 | |
| 1725 | ac_retval=1 |
| 1726 | fi |
| 1727 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1728 | as_fn_set_status $ac_retval |
| 1729 | |
| 1730 | } # ac_fn_c_try_cpp |
| 1731 | |
| 1732 | # ac_fn_c_try_run LINENO |
| 1733 | # ---------------------- |
| 1734 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1735 | # that executables *can* be run. |
| 1736 | ac_fn_c_try_run () |
| 1737 | { |
| 1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1739 | if { { ac_try="$ac_link" |
| 1740 | case "(($ac_try" in |
| 1741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1742 | *) ac_try_echo=$ac_try;; |
| 1743 | esac |
| 1744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1745 | $as_echo "$ac_try_echo"; } >&5 |
| 1746 | (eval "$ac_link") 2>&5 |
| 1747 | ac_status=$? |
| 1748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1749 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1750 | { { case "(($ac_try" in |
| 1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1752 | *) ac_try_echo=$ac_try;; |
| 1753 | esac |
| 1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1755 | $as_echo "$ac_try_echo"; } >&5 |
| 1756 | (eval "$ac_try") 2>&5 |
| 1757 | ac_status=$? |
| 1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1759 | test $ac_status = 0; }; }; then : |
| 1760 | ac_retval=0 |
| 1761 | else |
| 1762 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1763 | $as_echo "$as_me: failed program was:" >&5 |
| 1764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1765 | |
| 1766 | ac_retval=$ac_status |
| 1767 | fi |
| 1768 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1770 | as_fn_set_status $ac_retval |
| 1771 | |
| 1772 | } # ac_fn_c_try_run |
| 1773 | |
| 1774 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1775 | # ---------------------------------- |
| 1776 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1777 | ac_fn_c_check_func () |
| 1778 | { |
| 1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1781 | $as_echo_n "checking for $2... " >&6; } |
| 1782 | if eval \${$3+:} false; then : |
| 1783 | $as_echo_n "(cached) " >&6 |
| 1784 | else |
| 1785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1786 | /* end confdefs.h. */ |
| 1787 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1788 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1789 | #define $2 innocuous_$2 |
| 1790 | |
| 1791 | /* System header to define __stub macros and hopefully few prototypes, |
| 1792 | which can conflict with char $2 (); below. |
| 1793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1794 | <limits.h> exists even on freestanding compilers. */ |
| 1795 | |
| 1796 | #ifdef __STDC__ |
| 1797 | # include <limits.h> |
| 1798 | #else |
| 1799 | # include <assert.h> |
| 1800 | #endif |
| 1801 | |
| 1802 | #undef $2 |
| 1803 | |
| 1804 | /* Override any GCC internal prototype to avoid an error. |
| 1805 | Use char because int might match the return type of a GCC |
| 1806 | builtin and then its argument prototype would still apply. */ |
| 1807 | #ifdef __cplusplus |
| 1808 | extern "C" |
| 1809 | #endif |
| 1810 | char $2 (); |
| 1811 | /* The GNU C library defines this for functions which it implements |
| 1812 | to always fail with ENOSYS. Some functions are actually named |
| 1813 | something starting with __ and the normal name is an alias. */ |
| 1814 | #if defined __stub_$2 || defined __stub___$2 |
| 1815 | choke me |
| 1816 | #endif |
| 1817 | |
| 1818 | int |
| 1819 | main () |
| 1820 | { |
| 1821 | return $2 (); |
| 1822 | ; |
| 1823 | return 0; |
| 1824 | } |
| 1825 | _ACEOF |
| 1826 | if ac_fn_c_try_link "$LINENO"; then : |
| 1827 | eval "$3=yes" |
| 1828 | else |
| 1829 | eval "$3=no" |
| 1830 | fi |
| 1831 | rm -f core conftest.err conftest.$ac_objext \ |
| 1832 | conftest$ac_exeext conftest.$ac_ext |
| 1833 | fi |
| 1834 | eval ac_res=\$$3 |
| 1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1836 | $as_echo "$ac_res" >&6; } |
| 1837 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1838 | |
| 1839 | } # ac_fn_c_check_func |
| 1840 | |
| 1841 | # ac_fn_cxx_try_cpp LINENO |
| 1842 | # ------------------------ |
| 1843 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1844 | ac_fn_cxx_try_cpp () |
| 1845 | { |
| 1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1847 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1848 | case "(($ac_try" in |
| 1849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1850 | *) ac_try_echo=$ac_try;; |
| 1851 | esac |
| 1852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1853 | $as_echo "$ac_try_echo"; } >&5 |
| 1854 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1855 | ac_status=$? |
| 1856 | if test -s conftest.err; then |
| 1857 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1858 | cat conftest.er1 >&5 |
| 1859 | mv -f conftest.er1 conftest.err |
| 1860 | fi |
| 1861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1862 | test $ac_status = 0; } > conftest.i && { |
| 1863 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1864 | test ! -s conftest.err |
| 1865 | }; then : |
| 1866 | ac_retval=0 |
| 1867 | else |
| 1868 | $as_echo "$as_me: failed program was:" >&5 |
| 1869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1870 | |
| 1871 | ac_retval=1 |
| 1872 | fi |
| 1873 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1874 | as_fn_set_status $ac_retval |
| 1875 | |
| 1876 | } # ac_fn_cxx_try_cpp |
| 1877 | |
| 1878 | # ac_fn_cxx_try_link LINENO |
| 1879 | # ------------------------- |
| 1880 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1881 | ac_fn_cxx_try_link () |
| 1882 | { |
| 1883 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1884 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1885 | if { { ac_try="$ac_link" |
| 1886 | case "(($ac_try" in |
| 1887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1888 | *) ac_try_echo=$ac_try;; |
| 1889 | esac |
| 1890 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1891 | $as_echo "$ac_try_echo"; } >&5 |
| 1892 | (eval "$ac_link") 2>conftest.err |
| 1893 | ac_status=$? |
| 1894 | if test -s conftest.err; then |
| 1895 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1896 | cat conftest.er1 >&5 |
| 1897 | mv -f conftest.er1 conftest.err |
| 1898 | fi |
| 1899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1900 | test $ac_status = 0; } && { |
| 1901 | test -z "$ac_cxx_werror_flag" || |
| 1902 | test ! -s conftest.err |
| 1903 | } && test -s conftest$ac_exeext && { |
| 1904 | test "$cross_compiling" = yes || |
| 1905 | test -x conftest$ac_exeext |
| 1906 | }; then : |
| 1907 | ac_retval=0 |
| 1908 | else |
| 1909 | $as_echo "$as_me: failed program was:" >&5 |
| 1910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1911 | |
| 1912 | ac_retval=1 |
| 1913 | fi |
| 1914 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1915 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1916 | # interfere with the next link command; also delete a directory that is |
| 1917 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1918 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1919 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1920 | as_fn_set_status $ac_retval |
| 1921 | |
| 1922 | } # ac_fn_cxx_try_link |
| 1923 | |
| 1924 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1925 | # ------------------------------------------------------- |
| 1926 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1927 | # the include files in INCLUDES and setting the cache variable VAR |
| 1928 | # accordingly. |
| 1929 | ac_fn_c_check_header_mongrel () |
| 1930 | { |
| 1931 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1932 | if eval \${$3+:} false; then : |
| 1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1934 | $as_echo_n "checking for $2... " >&6; } |
| 1935 | if eval \${$3+:} false; then : |
| 1936 | $as_echo_n "(cached) " >&6 |
| 1937 | fi |
| 1938 | eval ac_res=\$$3 |
| 1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1940 | $as_echo "$ac_res" >&6; } |
| 1941 | else |
| 1942 | # Is the header compilable? |
| 1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1944 | $as_echo_n "checking $2 usability... " >&6; } |
| 1945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1946 | /* end confdefs.h. */ |
| 1947 | $4 |
| 1948 | #include <$2> |
| 1949 | _ACEOF |
| 1950 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1951 | ac_header_compiler=yes |
| 1952 | else |
| 1953 | ac_header_compiler=no |
| 1954 | fi |
| 1955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1957 | $as_echo "$ac_header_compiler" >&6; } |
| 1958 | |
| 1959 | # Is the header present? |
| 1960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1961 | $as_echo_n "checking $2 presence... " >&6; } |
| 1962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1963 | /* end confdefs.h. */ |
| 1964 | #include <$2> |
| 1965 | _ACEOF |
| 1966 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1967 | ac_header_preproc=yes |
| 1968 | else |
| 1969 | ac_header_preproc=no |
| 1970 | fi |
| 1971 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1973 | $as_echo "$ac_header_preproc" >&6; } |
| 1974 | |
| 1975 | # So? What about this header? |
| 1976 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1977 | yes:no: ) |
| 1978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1979 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1981 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1982 | ;; |
| 1983 | no:yes:* ) |
| 1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1985 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1987 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1989 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1991 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1993 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1994 | ( $as_echo "## --------------------------------------- ## |
| 1995 | ## Report this to ren@mathematik.uni-kl.de ## |
| 1996 | ## --------------------------------------- ##" |
| 1997 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1998 | ;; |
| 1999 | esac |
| 2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2001 | $as_echo_n "checking for $2... " >&6; } |
| 2002 | if eval \${$3+:} false; then : |
| 2003 | $as_echo_n "(cached) " >&6 |
| 2004 | else |
| 2005 | eval "$3=\$ac_header_compiler" |
| 2006 | fi |
| 2007 | eval ac_res=\$$3 |
| 2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2009 | $as_echo "$ac_res" >&6; } |
| 2010 | fi |
| 2011 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2012 | |
| 2013 | } # ac_fn_c_check_header_mongrel |
1791 | | # Checks for programs. |
| 2370 | |
| 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2372 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 2373 | # Check whether --enable-maintainer-mode was given. |
| 2374 | if test "${enable_maintainer_mode+set}" = set; then : |
| 2375 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 2376 | else |
| 2377 | USE_MAINTAINER_MODE=no |
| 2378 | fi |
| 2379 | |
| 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 2381 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 2382 | if test $USE_MAINTAINER_MODE = yes; then |
| 2383 | MAINTAINER_MODE_TRUE= |
| 2384 | MAINTAINER_MODE_FALSE='#' |
| 2385 | else |
| 2386 | MAINTAINER_MODE_TRUE='#' |
| 2387 | MAINTAINER_MODE_FALSE= |
| 2388 | fi |
| 2389 | |
| 2390 | MAINT=$MAINTAINER_MODE_TRUE |
| 2391 | |
| 2392 | |
| 2393 | am__api_version='1.13' |
| 2394 | |
| 2395 | ac_aux_dir= |
| 2396 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2397 | if test -f "$ac_dir/install-sh"; then |
| 2398 | ac_aux_dir=$ac_dir |
| 2399 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2400 | break |
| 2401 | elif test -f "$ac_dir/install.sh"; then |
| 2402 | ac_aux_dir=$ac_dir |
| 2403 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2404 | break |
| 2405 | elif test -f "$ac_dir/shtool"; then |
| 2406 | ac_aux_dir=$ac_dir |
| 2407 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2408 | break |
| 2409 | fi |
| 2410 | done |
| 2411 | if test -z "$ac_aux_dir"; then |
| 2412 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2413 | fi |
| 2414 | |
| 2415 | # These three variables are undocumented and unsupported, |
| 2416 | # and are intended to be withdrawn in a future Autoconf release. |
| 2417 | # They can cause serious problems if a builder's source tree is in a directory |
| 2418 | # whose full name contains unusual characters. |
| 2419 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2420 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2421 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2422 | |
| 2423 | |
| 2424 | # Find a good install program. We prefer a C program (faster), |
| 2425 | # so one script is as good as another. But avoid the broken or |
| 2426 | # incompatible versions: |
| 2427 | # SysV /etc/install, /usr/sbin/install |
| 2428 | # SunOS /usr/etc/install |
| 2429 | # IRIX /sbin/install |
| 2430 | # AIX /bin/install |
| 2431 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2432 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2433 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2434 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2435 | # OS/2's system install, which has a completely different semantic |
| 2436 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2437 | # Reject install programs that cannot install multiple files. |
| 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2439 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2440 | if test -z "$INSTALL"; then |
| 2441 | if ${ac_cv_path_install+:} false; then : |
| 2442 | $as_echo_n "(cached) " >&6 |
| 2443 | else |
| 2444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2445 | for as_dir in $PATH |
| 2446 | do |
| 2447 | IFS=$as_save_IFS |
| 2448 | test -z "$as_dir" && as_dir=. |
| 2449 | # Account for people who put trailing slashes in PATH elements. |
| 2450 | case $as_dir/ in #(( |
| 2451 | ./ | .// | /[cC]/* | \ |
| 2452 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2453 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2454 | /usr/ucb/* ) ;; |
| 2455 | *) |
| 2456 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2457 | # Don't use installbsd from OSF since it installs stuff as root |
| 2458 | # by default. |
| 2459 | for ac_prog in ginstall scoinst install; do |
| 2460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2461 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2462 | if test $ac_prog = install && |
| 2463 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2464 | # AIX install. It has an incompatible calling convention. |
| 2465 | : |
| 2466 | elif test $ac_prog = install && |
| 2467 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2468 | # program-specific install script used by HP pwplus--don't use. |
| 2469 | : |
| 2470 | else |
| 2471 | rm -rf conftest.one conftest.two conftest.dir |
| 2472 | echo one > conftest.one |
| 2473 | echo two > conftest.two |
| 2474 | mkdir conftest.dir |
| 2475 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2476 | test -s conftest.one && test -s conftest.two && |
| 2477 | test -s conftest.dir/conftest.one && |
| 2478 | test -s conftest.dir/conftest.two |
| 2479 | then |
| 2480 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2481 | break 3 |
| 2482 | fi |
| 2483 | fi |
| 2484 | fi |
| 2485 | done |
| 2486 | done |
| 2487 | ;; |
| 2488 | esac |
| 2489 | |
| 2490 | done |
| 2491 | IFS=$as_save_IFS |
| 2492 | |
| 2493 | rm -rf conftest.one conftest.two conftest.dir |
| 2494 | |
| 2495 | fi |
| 2496 | if test "${ac_cv_path_install+set}" = set; then |
| 2497 | INSTALL=$ac_cv_path_install |
| 2498 | else |
| 2499 | # As a last resort, use the slow shell script. Don't cache a |
| 2500 | # value for INSTALL within a source directory, because that will |
| 2501 | # break other packages using the cache if that directory is |
| 2502 | # removed, or if the value is a relative name. |
| 2503 | INSTALL=$ac_install_sh |
| 2504 | fi |
| 2505 | fi |
| 2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2507 | $as_echo "$INSTALL" >&6; } |
| 2508 | |
| 2509 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2510 | # It thinks the first close brace ends the variable substitution. |
| 2511 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2512 | |
| 2513 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2514 | |
| 2515 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2516 | |
| 2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2518 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2519 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2520 | # name. Accept space and tab only in the latter. |
| 2521 | am_lf=' |
| 2522 | ' |
| 2523 | case `pwd` in |
| 2524 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2525 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2526 | esac |
| 2527 | case $srcdir in |
| 2528 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2529 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2530 | esac |
| 2531 | |
| 2532 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 2533 | # arguments. Must try -L first in case configure is actually a |
| 2534 | # symlink; some systems play weird games with the mod time of symlinks |
| 2535 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2536 | # directory). |
| 2537 | if ( |
| 2538 | am_has_slept=no |
| 2539 | for am_try in 1 2; do |
| 2540 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2541 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2542 | if test "$*" = "X"; then |
| 2543 | # -L didn't work. |
| 2544 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2545 | fi |
| 2546 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2547 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2548 | |
| 2549 | # If neither matched, then we have a broken ls. This can happen |
| 2550 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2551 | # broken ls alias from the environment. This has actually |
| 2552 | # happened. Such a system could not be considered "sane". |
| 2553 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2554 | alias in your environment" "$LINENO" 5 |
| 2555 | fi |
| 2556 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2557 | break |
| 2558 | fi |
| 2559 | # Just in case. |
| 2560 | sleep 1 |
| 2561 | am_has_slept=yes |
| 2562 | done |
| 2563 | test "$2" = conftest.file |
| 2564 | ) |
| 2565 | then |
| 2566 | # Ok. |
| 2567 | : |
| 2568 | else |
| 2569 | as_fn_error $? "newly created file is older than distributed files! |
| 2570 | Check your system clock" "$LINENO" 5 |
| 2571 | fi |
| 2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2573 | $as_echo "yes" >&6; } |
| 2574 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2575 | # generated files are strictly newer. |
| 2576 | am_sleep_pid= |
| 2577 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2578 | ( sleep 1 ) & |
| 2579 | am_sleep_pid=$! |
| 2580 | fi |
| 2581 | |
| 2582 | rm -f conftest.file |
| 2583 | |
| 2584 | test "$program_prefix" != NONE && |
| 2585 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2586 | # Use a double $ so make ignores it. |
| 2587 | test "$program_suffix" != NONE && |
| 2588 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2589 | # Double any \ or $. |
| 2590 | # By default was `s,x,x', remove it if useless. |
| 2591 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2592 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2593 | |
| 2594 | # expand $ac_aux_dir to an absolute path |
| 2595 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2596 | |
| 2597 | if test x"${MISSING+set}" != xset; then |
| 2598 | case $am_aux_dir in |
| 2599 | *\ * | *\ *) |
| 2600 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2601 | *) |
| 2602 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2603 | esac |
| 2604 | fi |
| 2605 | # Use eval to expand $SHELL |
| 2606 | if eval "$MISSING --is-lightweight"; then |
| 2607 | am_missing_run="$MISSING " |
| 2608 | else |
| 2609 | am_missing_run= |
| 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2611 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2612 | fi |
| 2613 | |
| 2614 | if test x"${install_sh}" != xset; then |
| 2615 | case $am_aux_dir in |
| 2616 | *\ * | *\ *) |
| 2617 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2618 | *) |
| 2619 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2620 | esac |
| 2621 | fi |
| 2622 | |
| 2623 | # Installed binaries are usually stripped using 'strip' when the user |
| 2624 | # run "make install-strip". However 'strip' might not be the right |
| 2625 | # tool to use in cross-compilation environments, therefore Automake |
| 2626 | # will honor the 'STRIP' environment variable to overrule this program. |
| 2627 | if test "$cross_compiling" != no; then |
| 2628 | if test -n "$ac_tool_prefix"; then |
| 2629 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2630 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2632 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2633 | if ${ac_cv_prog_STRIP+:} false; then : |
| 2634 | $as_echo_n "(cached) " >&6 |
| 2635 | else |
| 2636 | if test -n "$STRIP"; then |
| 2637 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2638 | else |
| 2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2640 | for as_dir in $PATH |
| 2641 | do |
| 2642 | IFS=$as_save_IFS |
| 2643 | test -z "$as_dir" && as_dir=. |
| 2644 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2646 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2648 | break 2 |
| 2649 | fi |
| 2650 | done |
| 2651 | done |
| 2652 | IFS=$as_save_IFS |
| 2653 | |
| 2654 | fi |
| 2655 | fi |
| 2656 | STRIP=$ac_cv_prog_STRIP |
| 2657 | if test -n "$STRIP"; then |
| 2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2659 | $as_echo "$STRIP" >&6; } |
| 2660 | else |
| 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2662 | $as_echo "no" >&6; } |
| 2663 | fi |
| 2664 | |
| 2665 | |
| 2666 | fi |
| 2667 | if test -z "$ac_cv_prog_STRIP"; then |
| 2668 | ac_ct_STRIP=$STRIP |
| 2669 | # Extract the first word of "strip", so it can be a program name with args. |
| 2670 | set dummy strip; ac_word=$2 |
| 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2672 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2673 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 2674 | $as_echo_n "(cached) " >&6 |
| 2675 | else |
| 2676 | if test -n "$ac_ct_STRIP"; then |
| 2677 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2678 | else |
| 2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2680 | for as_dir in $PATH |
| 2681 | do |
| 2682 | IFS=$as_save_IFS |
| 2683 | test -z "$as_dir" && as_dir=. |
| 2684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2686 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2688 | break 2 |
| 2689 | fi |
| 2690 | done |
| 2691 | done |
| 2692 | IFS=$as_save_IFS |
| 2693 | |
| 2694 | fi |
| 2695 | fi |
| 2696 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2697 | if test -n "$ac_ct_STRIP"; then |
| 2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2699 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2700 | else |
| 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2702 | $as_echo "no" >&6; } |
| 2703 | fi |
| 2704 | |
| 2705 | if test "x$ac_ct_STRIP" = x; then |
| 2706 | STRIP=":" |
| 2707 | else |
| 2708 | case $cross_compiling:$ac_tool_warned in |
| 2709 | yes:) |
| 2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2711 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2712 | ac_tool_warned=yes ;; |
| 2713 | esac |
| 2714 | STRIP=$ac_ct_STRIP |
| 2715 | fi |
| 2716 | else |
| 2717 | STRIP="$ac_cv_prog_STRIP" |
| 2718 | fi |
| 2719 | |
| 2720 | fi |
| 2721 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2722 | |
| 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2724 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2725 | if test -z "$MKDIR_P"; then |
| 2726 | if ${ac_cv_path_mkdir+:} false; then : |
| 2727 | $as_echo_n "(cached) " >&6 |
| 2728 | else |
| 2729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2730 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2731 | do |
| 2732 | IFS=$as_save_IFS |
| 2733 | test -z "$as_dir" && as_dir=. |
| 2734 | for ac_prog in mkdir gmkdir; do |
| 2735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2736 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 2737 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2738 | 'mkdir (GNU coreutils) '* | \ |
| 2739 | 'mkdir (coreutils) '* | \ |
| 2740 | 'mkdir (fileutils) '4.1*) |
| 2741 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2742 | break 3;; |
| 2743 | esac |
| 2744 | done |
| 2745 | done |
| 2746 | done |
| 2747 | IFS=$as_save_IFS |
| 2748 | |
| 2749 | fi |
| 2750 | |
| 2751 | test -d ./--version && rmdir ./--version |
| 2752 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2753 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2754 | else |
| 2755 | # As a last resort, use the slow shell script. Don't cache a |
| 2756 | # value for MKDIR_P within a source directory, because that will |
| 2757 | # break other packages using the cache if that directory is |
| 2758 | # removed, or if the value is a relative name. |
| 2759 | MKDIR_P="$ac_install_sh -d" |
| 2760 | fi |
| 2761 | fi |
| 2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2763 | $as_echo "$MKDIR_P" >&6; } |
| 2764 | |
| 2765 | for ac_prog in gawk mawk nawk awk |
| 2766 | do |
| 2767 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2768 | set dummy $ac_prog; ac_word=$2 |
| 2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2770 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2771 | if ${ac_cv_prog_AWK+:} false; then : |
| 2772 | $as_echo_n "(cached) " >&6 |
| 2773 | else |
| 2774 | if test -n "$AWK"; then |
| 2775 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2776 | else |
| 2777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2778 | for as_dir in $PATH |
| 2779 | do |
| 2780 | IFS=$as_save_IFS |
| 2781 | test -z "$as_dir" && as_dir=. |
| 2782 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2784 | ac_cv_prog_AWK="$ac_prog" |
| 2785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2786 | break 2 |
| 2787 | fi |
| 2788 | done |
| 2789 | done |
| 2790 | IFS=$as_save_IFS |
| 2791 | |
| 2792 | fi |
| 2793 | fi |
| 2794 | AWK=$ac_cv_prog_AWK |
| 2795 | if test -n "$AWK"; then |
| 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2797 | $as_echo "$AWK" >&6; } |
| 2798 | else |
| 2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2800 | $as_echo "no" >&6; } |
| 2801 | fi |
| 2802 | |
| 2803 | |
| 2804 | test -n "$AWK" && break |
| 2805 | done |
| 2806 | |
| 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2808 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2809 | set x ${MAKE-make} |
| 2810 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2811 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 2812 | $as_echo_n "(cached) " >&6 |
| 2813 | else |
| 2814 | cat >conftest.make <<\_ACEOF |
| 2815 | SHELL = /bin/sh |
| 2816 | all: |
| 2817 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2818 | _ACEOF |
| 2819 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2820 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2821 | *@@@%%%=?*=@@@%%%*) |
| 2822 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2823 | *) |
| 2824 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2825 | esac |
| 2826 | rm -f conftest.make |
| 2827 | fi |
| 2828 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2830 | $as_echo "yes" >&6; } |
| 2831 | SET_MAKE= |
| 2832 | else |
| 2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2834 | $as_echo "no" >&6; } |
| 2835 | SET_MAKE="MAKE=${MAKE-make}" |
| 2836 | fi |
| 2837 | |
| 2838 | rm -rf .tst 2>/dev/null |
| 2839 | mkdir .tst 2>/dev/null |
| 2840 | if test -d .tst; then |
| 2841 | am__leading_dot=. |
| 2842 | else |
| 2843 | am__leading_dot=_ |
| 2844 | fi |
| 2845 | rmdir .tst 2>/dev/null |
| 2846 | |
| 2847 | # Check whether --enable-silent-rules was given. |
| 2848 | if test "${enable_silent_rules+set}" = set; then : |
| 2849 | enableval=$enable_silent_rules; |
| 2850 | fi |
| 2851 | |
| 2852 | case $enable_silent_rules in # ((( |
| 2853 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2854 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2855 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2856 | esac |
| 2857 | am_make=${MAKE-make} |
| 2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2859 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2860 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2861 | $as_echo_n "(cached) " >&6 |
| 2862 | else |
| 2863 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2864 | BAR0=false |
| 2865 | BAR1=true |
| 2866 | V=1 |
| 2867 | am__doit: |
| 2868 | @$(TRUE) |
| 2869 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2870 | am_cv_make_support_nested_variables=yes |
| 2871 | else |
| 2872 | am_cv_make_support_nested_variables=no |
| 2873 | fi |
| 2874 | fi |
| 2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2876 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2877 | if test $am_cv_make_support_nested_variables = yes; then |
| 2878 | AM_V='$(V)' |
| 2879 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2880 | else |
| 2881 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2882 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2883 | fi |
| 2884 | AM_BACKSLASH='\' |
| 2885 | |
| 2886 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2887 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2888 | # is not polluted with repeated "-I." |
| 2889 | am__isrc=' -I$(srcdir)' |
| 2890 | # test to see if srcdir already configured |
| 2891 | if test -f $srcdir/config.status; then |
| 2892 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 2893 | fi |
| 2894 | fi |
| 2895 | |
| 2896 | # test whether we have cygpath |
| 2897 | if test -z "$CYGPATH_W"; then |
| 2898 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2899 | CYGPATH_W='cygpath -w' |
| 2900 | else |
| 2901 | CYGPATH_W=echo |
| 2902 | fi |
| 2903 | fi |
| 2904 | |
| 2905 | |
| 2906 | # Define the identity of the package. |
| 2907 | PACKAGE='libgfan' |
| 2908 | VERSION='0.1' |
| 2909 | |
| 2910 | |
| 2911 | cat >>confdefs.h <<_ACEOF |
| 2912 | #define PACKAGE "$PACKAGE" |
| 2913 | _ACEOF |
| 2914 | |
| 2915 | |
| 2916 | cat >>confdefs.h <<_ACEOF |
| 2917 | #define VERSION "$VERSION" |
| 2918 | _ACEOF |
| 2919 | |
| 2920 | # Some tools Automake needs. |
| 2921 | |
| 2922 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2923 | |
| 2924 | |
| 2925 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2926 | |
| 2927 | |
| 2928 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2929 | |
| 2930 | |
| 2931 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2932 | |
| 2933 | |
| 2934 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2935 | |
| 2936 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 2937 | # dies out for good. For more background, see: |
| 2938 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2939 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2940 | mkdir_p='$(MKDIR_P)' |
| 2941 | |
| 2942 | # We need awk for the "check" target. The system "awk" is bad on |
| 2943 | # some platforms. |
| 2944 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2945 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2946 | AMTAR='$${TAR-tar}' |
| 2947 | |
| 2948 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 2949 | |
| 2950 | |
| 2951 | |
| 2952 | |
| 2953 | # -Wno-extra-portability -Werror silent-rules |
| 2954 | # Check whether --enable-silent-rules was given. |
| 2955 | if test "${enable_silent_rules+set}" = set; then : |
| 2956 | enableval=$enable_silent_rules; |
| 2957 | fi |
| 2958 | |
| 2959 | case $enable_silent_rules in # ((( |
| 2960 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2961 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2962 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2963 | esac |
| 2964 | am_make=${MAKE-make} |
| 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2966 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2967 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2968 | $as_echo_n "(cached) " >&6 |
| 2969 | else |
| 2970 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2971 | BAR0=false |
| 2972 | BAR1=true |
| 2973 | V=1 |
| 2974 | am__doit: |
| 2975 | @$(TRUE) |
| 2976 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2977 | am_cv_make_support_nested_variables=yes |
| 2978 | else |
| 2979 | am_cv_make_support_nested_variables=no |
| 2980 | fi |
| 2981 | fi |
| 2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2983 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2984 | if test $am_cv_make_support_nested_variables = yes; then |
| 2985 | AM_V='$(V)' |
| 2986 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2987 | else |
| 2988 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2989 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2990 | fi |
| 2991 | AM_BACKSLASH='\' |
| 2992 | |
| 2993 | DEPDIR="${am__leading_dot}deps" |
| 2994 | |
| 2995 | ac_config_commands="$ac_config_commands depfiles" |
| 2996 | |
| 2997 | |
| 2998 | am_make=${MAKE-make} |
| 2999 | cat > confinc << 'END' |
| 3000 | am__doit: |
| 3001 | @echo this is the am__doit target |
| 3002 | .PHONY: am__doit |
| 3003 | END |
| 3004 | # If we don't find an include directive, just comment out the code. |
| 3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3006 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3007 | am__include="#" |
| 3008 | am__quote= |
| 3009 | _am_result=none |
| 3010 | # First try GNU make style include. |
| 3011 | echo "include confinc" > confmf |
| 3012 | # Ignore all kinds of additional output from 'make'. |
| 3013 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3014 | *the\ am__doit\ target*) |
| 3015 | am__include=include |
| 3016 | am__quote= |
| 3017 | _am_result=GNU |
| 3018 | ;; |
| 3019 | esac |
| 3020 | # Now try BSD make style include. |
| 3021 | if test "$am__include" = "#"; then |
| 3022 | echo '.include "confinc"' > confmf |
| 3023 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3024 | *the\ am__doit\ target*) |
| 3025 | am__include=.include |
| 3026 | am__quote="\"" |
| 3027 | _am_result=BSD |
| 3028 | ;; |
| 3029 | esac |
| 3030 | fi |
| 3031 | |
| 3032 | |
| 3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3034 | $as_echo "$_am_result" >&6; } |
| 3035 | rm -f confinc confmf |
| 3036 | |
| 3037 | # Check whether --enable-dependency-tracking was given. |
| 3038 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3039 | enableval=$enable_dependency_tracking; |
| 3040 | fi |
| 3041 | |
| 3042 | if test "x$enable_dependency_tracking" != xno; then |
| 3043 | am_depcomp="$ac_aux_dir/depcomp" |
| 3044 | AMDEPBACKSLASH='\' |
| 3045 | am__nodep='_no' |
| 3046 | fi |
| 3047 | if test "x$enable_dependency_tracking" != xno; then |
| 3048 | AMDEP_TRUE= |
| 3049 | AMDEP_FALSE='#' |
| 3050 | else |
| 3051 | AMDEP_TRUE='#' |
| 3052 | AMDEP_FALSE= |
| 3053 | fi |
| 3054 | |
| 3055 | |
| 3844 | |
| 3845 | depcc="$CC" am_compiler_list= |
| 3846 | |
| 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3848 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3849 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 3850 | $as_echo_n "(cached) " >&6 |
| 3851 | else |
| 3852 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3853 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3854 | # making bogus files that we don't know about and never remove. For |
| 3855 | # instance it was reported that on HP-UX the gcc test will end up |
| 3856 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 3857 | # in D". |
| 3858 | rm -rf conftest.dir |
| 3859 | mkdir conftest.dir |
| 3860 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3861 | # using a relative directory. |
| 3862 | cp "$am_depcomp" conftest.dir |
| 3863 | cd conftest.dir |
| 3864 | # We will build objects and dependencies in a subdirectory because |
| 3865 | # it helps to detect inapplicable dependency modes. For instance |
| 3866 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3867 | # side effect of compilation, but ICC will put the dependencies in |
| 3868 | # the current directory while Tru64 will put them in the object |
| 3869 | # directory. |
| 3870 | mkdir sub |
| 3871 | |
| 3872 | am_cv_CC_dependencies_compiler_type=none |
| 3873 | if test "$am_compiler_list" = ""; then |
| 3874 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3875 | fi |
| 3876 | am__universal=false |
| 3877 | case " $depcc " in #( |
| 3878 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3879 | esac |
| 3880 | |
| 3881 | for depmode in $am_compiler_list; do |
| 3882 | # Setup a source with many dependencies, because some compilers |
| 3883 | # like to wrap large dependency lists on column 80 (with \), and |
| 3884 | # we should not choose a depcomp mode which is confused by this. |
| 3885 | # |
| 3886 | # We need to recreate these files for each test, as the compiler may |
| 3887 | # overwrite some of them when testing with obscure command lines. |
| 3888 | # This happens at least with the AIX C compiler. |
| 3889 | : > sub/conftest.c |
| 3890 | for i in 1 2 3 4 5 6; do |
| 3891 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3892 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 3893 | # Solaris 10 /bin/sh. |
| 3894 | echo '/* dummy */' > sub/conftst$i.h |
| 3895 | done |
| 3896 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3897 | |
| 3898 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 3899 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3900 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 3901 | # versions had trouble with output in subdirs. |
| 3902 | am__obj=sub/conftest.${OBJEXT-o} |
| 3903 | am__minus_obj="-o $am__obj" |
| 3904 | case $depmode in |
| 3905 | gcc) |
| 3906 | # This depmode causes a compiler race in universal mode. |
| 3907 | test "$am__universal" = false || continue |
| 3908 | ;; |
| 3909 | nosideeffect) |
| 3910 | # After this tag, mechanisms are not by side-effect, so they'll |
| 3911 | # only be used when explicitly requested. |
| 3912 | if test "x$enable_dependency_tracking" = xyes; then |
| 3913 | continue |
| 3914 | else |
| 3915 | break |
| 3916 | fi |
| 3917 | ;; |
| 3918 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 3919 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 3920 | # not run yet. These depmodes are late enough in the game, and |
| 3921 | # so weak that their functioning should not be impacted. |
| 3922 | am__obj=conftest.${OBJEXT-o} |
| 3923 | am__minus_obj= |
| 3924 | ;; |
| 3925 | none) break ;; |
| 3926 | esac |
| 3927 | if depmode=$depmode \ |
| 3928 | source=sub/conftest.c object=$am__obj \ |
| 3929 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3930 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3931 | >/dev/null 2>conftest.err && |
| 3932 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3933 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3934 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3935 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3936 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3937 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3938 | # that says an option was ignored or not supported. |
| 3939 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3940 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3941 | # The diagnosis changed in icc 8.0: |
| 3942 | # icc: Command line remark: option '-MP' not supported |
| 3943 | if (grep 'ignoring option' conftest.err || |
| 3944 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3945 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3946 | break |
| 3947 | fi |
| 3948 | fi |
| 3949 | done |
| 3950 | |
| 3951 | cd .. |
| 3952 | rm -rf conftest.dir |
| 3953 | else |
| 3954 | am_cv_CC_dependencies_compiler_type=none |
| 3955 | fi |
| 3956 | |
| 3957 | fi |
| 3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3959 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 3960 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3961 | |
| 3962 | if |
| 3963 | test "x$enable_dependency_tracking" != xno \ |
| 3964 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3965 | am__fastdepCC_TRUE= |
| 3966 | am__fastdepCC_FALSE='#' |
| 3967 | else |
| 3968 | am__fastdepCC_TRUE='#' |
| 3969 | am__fastdepCC_FALSE= |
| 3970 | fi |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | if test -n "$ac_tool_prefix"; then |
| 3975 | for ac_prog in ar lib "link -lib" |
| 3976 | do |
| 3977 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3978 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3980 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3981 | if ${ac_cv_prog_AR+:} false; then : |
| 3982 | $as_echo_n "(cached) " >&6 |
| 3983 | else |
| 3984 | if test -n "$AR"; then |
| 3985 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3986 | else |
| 3987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3988 | for as_dir in $PATH |
| 3989 | do |
| 3990 | IFS=$as_save_IFS |
| 3991 | test -z "$as_dir" && as_dir=. |
| 3992 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3994 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 3995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3996 | break 2 |
| 3997 | fi |
| 3998 | done |
| 3999 | done |
| 4000 | IFS=$as_save_IFS |
| 4001 | |
| 4002 | fi |
| 4003 | fi |
| 4004 | AR=$ac_cv_prog_AR |
| 4005 | if test -n "$AR"; then |
| 4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4007 | $as_echo "$AR" >&6; } |
| 4008 | else |
| 4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4010 | $as_echo "no" >&6; } |
| 4011 | fi |
| 4012 | |
| 4013 | |
| 4014 | test -n "$AR" && break |
| 4015 | done |
| 4016 | fi |
| 4017 | if test -z "$AR"; then |
| 4018 | ac_ct_AR=$AR |
| 4019 | for ac_prog in ar lib "link -lib" |
| 4020 | do |
| 4021 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4022 | set dummy $ac_prog; ac_word=$2 |
| 4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4024 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4025 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4026 | $as_echo_n "(cached) " >&6 |
| 4027 | else |
| 4028 | if test -n "$ac_ct_AR"; then |
| 4029 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4030 | else |
| 4031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4032 | for as_dir in $PATH |
| 4033 | do |
| 4034 | IFS=$as_save_IFS |
| 4035 | test -z "$as_dir" && as_dir=. |
| 4036 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4038 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 4039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4040 | break 2 |
| 4041 | fi |
| 4042 | done |
| 4043 | done |
| 4044 | IFS=$as_save_IFS |
| 4045 | |
| 4046 | fi |
| 4047 | fi |
| 4048 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4049 | if test -n "$ac_ct_AR"; then |
| 4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4051 | $as_echo "$ac_ct_AR" >&6; } |
| 4052 | else |
| 4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4054 | $as_echo "no" >&6; } |
| 4055 | fi |
| 4056 | |
| 4057 | |
| 4058 | test -n "$ac_ct_AR" && break |
| 4059 | done |
| 4060 | |
| 4061 | if test "x$ac_ct_AR" = x; then |
| 4062 | AR="false" |
| 4063 | else |
| 4064 | case $cross_compiling:$ac_tool_warned in |
| 4065 | yes:) |
| 4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4067 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4068 | ac_tool_warned=yes ;; |
| 4069 | esac |
| 4070 | AR=$ac_ct_AR |
| 4071 | fi |
| 4072 | fi |
| 4073 | |
| 4074 | : ${AR=ar} |
| 4075 | |
| 4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 4077 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } |
| 4078 | if ${am_cv_ar_interface+:} false; then : |
| 4079 | $as_echo_n "(cached) " >&6 |
| 4080 | else |
| 4081 | am_cv_ar_interface=ar |
| 4082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4083 | /* end confdefs.h. */ |
| 4084 | int some_variable = 0; |
| 4085 | _ACEOF |
| 4086 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4087 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' |
| 4088 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4089 | (eval $am_ar_try) 2>&5 |
| 4090 | ac_status=$? |
| 4091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4092 | test $ac_status = 0; } |
| 4093 | if test "$ac_status" -eq 0; then |
| 4094 | am_cv_ar_interface=ar |
| 4095 | else |
| 4096 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 4097 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4098 | (eval $am_ar_try) 2>&5 |
| 4099 | ac_status=$? |
| 4100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4101 | test $ac_status = 0; } |
| 4102 | if test "$ac_status" -eq 0; then |
| 4103 | am_cv_ar_interface=lib |
| 4104 | else |
| 4105 | am_cv_ar_interface=unknown |
| 4106 | fi |
| 4107 | fi |
| 4108 | rm -f conftest.lib libconftest.a |
| 4109 | |
| 4110 | fi |
| 4111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4112 | |
| 4113 | fi |
| 4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 4115 | $as_echo "$am_cv_ar_interface" >&6; } |
| 4116 | |
| 4117 | case $am_cv_ar_interface in |
| 4118 | ar) |
| 4119 | ;; |
| 4120 | lib) |
| 4121 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 4122 | # FIXME: It is wrong to rewrite AR. |
| 4123 | # But if we don't then we get into trouble of one sort or another. |
| 4124 | # A longer-term fix would be to have automake use am__AR in this case, |
| 4125 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 4126 | # similar. |
| 4127 | AR="$am_aux_dir/ar-lib $AR" |
| 4128 | ;; |
| 4129 | unknown) |
| 4130 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
| 4131 | ;; |
| 4132 | esac |
| 4133 | |
| 4134 | |
| 4135 | # Checks for programs. |
| 4136 | ac_ext=c |
| 4137 | ac_cpp='$CPP $CPPFLAGS' |
| 4138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4141 | if test -n "$ac_tool_prefix"; then |
| 4142 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4143 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4145 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4146 | if ${ac_cv_prog_CC+:} false; then : |
| 4147 | $as_echo_n "(cached) " >&6 |
| 4148 | else |
| 4149 | if test -n "$CC"; then |
| 4150 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4151 | else |
| 4152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4153 | for as_dir in $PATH |
| 4154 | do |
| 4155 | IFS=$as_save_IFS |
| 4156 | test -z "$as_dir" && as_dir=. |
| 4157 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4158 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4159 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4161 | break 2 |
| 4162 | fi |
| 4163 | done |
| 4164 | done |
| 4165 | IFS=$as_save_IFS |
| 4166 | |
| 4167 | fi |
| 4168 | fi |
| 4169 | CC=$ac_cv_prog_CC |
| 4170 | if test -n "$CC"; then |
| 4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4172 | $as_echo "$CC" >&6; } |
| 4173 | else |
| 4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4175 | $as_echo "no" >&6; } |
| 4176 | fi |
| 4177 | |
| 4178 | |
| 4179 | fi |
| 4180 | if test -z "$ac_cv_prog_CC"; then |
| 4181 | ac_ct_CC=$CC |
| 4182 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4183 | set dummy gcc; ac_word=$2 |
| 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4185 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4186 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4187 | $as_echo_n "(cached) " >&6 |
| 4188 | else |
| 4189 | if test -n "$ac_ct_CC"; then |
| 4190 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4191 | else |
| 4192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4193 | for as_dir in $PATH |
| 4194 | do |
| 4195 | IFS=$as_save_IFS |
| 4196 | test -z "$as_dir" && as_dir=. |
| 4197 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4198 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4199 | ac_cv_prog_ac_ct_CC="gcc" |
| 4200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4201 | break 2 |
| 4202 | fi |
| 4203 | done |
| 4204 | done |
| 4205 | IFS=$as_save_IFS |
| 4206 | |
| 4207 | fi |
| 4208 | fi |
| 4209 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4210 | if test -n "$ac_ct_CC"; then |
| 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4212 | $as_echo "$ac_ct_CC" >&6; } |
| 4213 | else |
| 4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4215 | $as_echo "no" >&6; } |
| 4216 | fi |
| 4217 | |
| 4218 | if test "x$ac_ct_CC" = x; then |
| 4219 | CC="" |
| 4220 | else |
| 4221 | case $cross_compiling:$ac_tool_warned in |
| 4222 | yes:) |
| 4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4224 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4225 | ac_tool_warned=yes ;; |
| 4226 | esac |
| 4227 | CC=$ac_ct_CC |
| 4228 | fi |
| 4229 | else |
| 4230 | CC="$ac_cv_prog_CC" |
| 4231 | fi |
| 4232 | |
| 4233 | if test -z "$CC"; then |
| 4234 | if test -n "$ac_tool_prefix"; then |
| 4235 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4236 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4238 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4239 | if ${ac_cv_prog_CC+:} false; then : |
| 4240 | $as_echo_n "(cached) " >&6 |
| 4241 | else |
| 4242 | if test -n "$CC"; then |
| 4243 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4244 | else |
| 4245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4246 | for as_dir in $PATH |
| 4247 | do |
| 4248 | IFS=$as_save_IFS |
| 4249 | test -z "$as_dir" && as_dir=. |
| 4250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4252 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4254 | break 2 |
| 4255 | fi |
| 4256 | done |
| 4257 | done |
| 4258 | IFS=$as_save_IFS |
| 4259 | |
| 4260 | fi |
| 4261 | fi |
| 4262 | CC=$ac_cv_prog_CC |
| 4263 | if test -n "$CC"; then |
| 4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4265 | $as_echo "$CC" >&6; } |
| 4266 | else |
| 4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4268 | $as_echo "no" >&6; } |
| 4269 | fi |
| 4270 | |
| 4271 | |
| 4272 | fi |
| 4273 | fi |
| 4274 | if test -z "$CC"; then |
| 4275 | # Extract the first word of "cc", so it can be a program name with args. |
| 4276 | set dummy cc; ac_word=$2 |
| 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4278 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4279 | if ${ac_cv_prog_CC+:} false; then : |
| 4280 | $as_echo_n "(cached) " >&6 |
| 4281 | else |
| 4282 | if test -n "$CC"; then |
| 4283 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4284 | else |
| 4285 | ac_prog_rejected=no |
| 4286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4287 | for as_dir in $PATH |
| 4288 | do |
| 4289 | IFS=$as_save_IFS |
| 4290 | test -z "$as_dir" && as_dir=. |
| 4291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4292 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4293 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4294 | ac_prog_rejected=yes |
| 4295 | continue |
| 4296 | fi |
| 4297 | ac_cv_prog_CC="cc" |
| 4298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4299 | break 2 |
| 4300 | fi |
| 4301 | done |
| 4302 | done |
| 4303 | IFS=$as_save_IFS |
| 4304 | |
| 4305 | if test $ac_prog_rejected = yes; then |
| 4306 | # We found a bogon in the path, so make sure we never use it. |
| 4307 | set dummy $ac_cv_prog_CC |
| 4308 | shift |
| 4309 | if test $# != 0; then |
| 4310 | # We chose a different compiler from the bogus one. |
| 4311 | # However, it has the same basename, so the bogon will be chosen |
| 4312 | # first if we set CC to just the basename; use the full file name. |
| 4313 | shift |
| 4314 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4315 | fi |
| 4316 | fi |
| 4317 | fi |
| 4318 | fi |
| 4319 | CC=$ac_cv_prog_CC |
| 4320 | if test -n "$CC"; then |
| 4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4322 | $as_echo "$CC" >&6; } |
| 4323 | else |
| 4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4325 | $as_echo "no" >&6; } |
| 4326 | fi |
| 4327 | |
| 4328 | |
| 4329 | fi |
| 4330 | if test -z "$CC"; then |
| 4331 | if test -n "$ac_tool_prefix"; then |
| 4332 | for ac_prog in cl.exe |
| 4333 | do |
| 4334 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4335 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4337 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4338 | if ${ac_cv_prog_CC+:} false; then : |
| 4339 | $as_echo_n "(cached) " >&6 |
| 4340 | else |
| 4341 | if test -n "$CC"; then |
| 4342 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4343 | else |
| 4344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4345 | for as_dir in $PATH |
| 4346 | do |
| 4347 | IFS=$as_save_IFS |
| 4348 | test -z "$as_dir" && as_dir=. |
| 4349 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4350 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4351 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4353 | break 2 |
| 4354 | fi |
| 4355 | done |
| 4356 | done |
| 4357 | IFS=$as_save_IFS |
| 4358 | |
| 4359 | fi |
| 4360 | fi |
| 4361 | CC=$ac_cv_prog_CC |
| 4362 | if test -n "$CC"; then |
| 4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4364 | $as_echo "$CC" >&6; } |
| 4365 | else |
| 4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4367 | $as_echo "no" >&6; } |
| 4368 | fi |
| 4369 | |
| 4370 | |
| 4371 | test -n "$CC" && break |
| 4372 | done |
| 4373 | fi |
| 4374 | if test -z "$CC"; then |
| 4375 | ac_ct_CC=$CC |
| 4376 | for ac_prog in cl.exe |
| 4377 | do |
| 4378 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4379 | set dummy $ac_prog; ac_word=$2 |
| 4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4381 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4382 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4383 | $as_echo_n "(cached) " >&6 |
| 4384 | else |
| 4385 | if test -n "$ac_ct_CC"; then |
| 4386 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4387 | else |
| 4388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4389 | for as_dir in $PATH |
| 4390 | do |
| 4391 | IFS=$as_save_IFS |
| 4392 | test -z "$as_dir" && as_dir=. |
| 4393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4394 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4395 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4397 | break 2 |
| 4398 | fi |
| 4399 | done |
| 4400 | done |
| 4401 | IFS=$as_save_IFS |
| 4402 | |
| 4403 | fi |
| 4404 | fi |
| 4405 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4406 | if test -n "$ac_ct_CC"; then |
| 4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4408 | $as_echo "$ac_ct_CC" >&6; } |
| 4409 | else |
| 4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4411 | $as_echo "no" >&6; } |
| 4412 | fi |
| 4413 | |
| 4414 | |
| 4415 | test -n "$ac_ct_CC" && break |
| 4416 | done |
| 4417 | |
| 4418 | if test "x$ac_ct_CC" = x; then |
| 4419 | CC="" |
| 4420 | else |
| 4421 | case $cross_compiling:$ac_tool_warned in |
| 4422 | yes:) |
| 4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4424 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4425 | ac_tool_warned=yes ;; |
| 4426 | esac |
| 4427 | CC=$ac_ct_CC |
| 4428 | fi |
| 4429 | fi |
| 4430 | |
| 4431 | fi |
| 4432 | |
| 4433 | |
| 4434 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4435 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4436 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4437 | See \`config.log' for more details" "$LINENO" 5; } |
| 4438 | |
| 4439 | # Provide some information about the compiler. |
| 4440 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4441 | set X $ac_compile |
| 4442 | ac_compiler=$2 |
| 4443 | for ac_option in --version -v -V -qversion; do |
| 4444 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4445 | case "(($ac_try" in |
| 4446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4447 | *) ac_try_echo=$ac_try;; |
| 4448 | esac |
| 4449 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4450 | $as_echo "$ac_try_echo"; } >&5 |
| 4451 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4452 | ac_status=$? |
| 4453 | if test -s conftest.err; then |
| 4454 | sed '10a\ |
| 4455 | ... rest of stderr output deleted ... |
| 4456 | 10q' conftest.err >conftest.er1 |
| 4457 | cat conftest.er1 >&5 |
| 4458 | fi |
| 4459 | rm -f conftest.er1 conftest.err |
| 4460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4461 | test $ac_status = 0; } |
| 4462 | done |
| 4463 | |
| 4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4465 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4466 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 4467 | $as_echo_n "(cached) " >&6 |
| 4468 | else |
| 4469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4470 | /* end confdefs.h. */ |
| 4471 | |
| 4472 | int |
| 4473 | main () |
| 4474 | { |
| 4475 | #ifndef __GNUC__ |
| 4476 | choke me |
| 4477 | #endif |
| 4478 | |
| 4479 | ; |
| 4480 | return 0; |
| 4481 | } |
| 4482 | _ACEOF |
| 4483 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4484 | ac_compiler_gnu=yes |
| 4485 | else |
| 4486 | ac_compiler_gnu=no |
| 4487 | fi |
| 4488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4489 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4490 | |
| 4491 | fi |
| 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4493 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4494 | if test $ac_compiler_gnu = yes; then |
| 4495 | GCC=yes |
| 4496 | else |
| 4497 | GCC= |
| 4498 | fi |
| 4499 | ac_test_CFLAGS=${CFLAGS+set} |
| 4500 | ac_save_CFLAGS=$CFLAGS |
| 4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4502 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4503 | if ${ac_cv_prog_cc_g+:} false; then : |
| 4504 | $as_echo_n "(cached) " >&6 |
| 4505 | else |
| 4506 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4507 | ac_c_werror_flag=yes |
| 4508 | ac_cv_prog_cc_g=no |
| 4509 | CFLAGS="-g" |
| 4510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4511 | /* end confdefs.h. */ |
| 4512 | |
| 4513 | int |
| 4514 | main () |
| 4515 | { |
| 4516 | |
| 4517 | ; |
| 4518 | return 0; |
| 4519 | } |
| 4520 | _ACEOF |
| 4521 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4522 | ac_cv_prog_cc_g=yes |
| 4523 | else |
| 4524 | CFLAGS="" |
| 4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4526 | /* end confdefs.h. */ |
| 4527 | |
| 4528 | int |
| 4529 | main () |
| 4530 | { |
| 4531 | |
| 4532 | ; |
| 4533 | return 0; |
| 4534 | } |
| 4535 | _ACEOF |
| 4536 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4537 | |
| 4538 | else |
| 4539 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4540 | CFLAGS="-g" |
| 4541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4542 | /* end confdefs.h. */ |
| 4543 | |
| 4544 | int |
| 4545 | main () |
| 4546 | { |
| 4547 | |
| 4548 | ; |
| 4549 | return 0; |
| 4550 | } |
| 4551 | _ACEOF |
| 4552 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4553 | ac_cv_prog_cc_g=yes |
| 4554 | fi |
| 4555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4556 | fi |
| 4557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4558 | fi |
| 4559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4560 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4561 | fi |
| 4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4563 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4564 | if test "$ac_test_CFLAGS" = set; then |
| 4565 | CFLAGS=$ac_save_CFLAGS |
| 4566 | elif test $ac_cv_prog_cc_g = yes; then |
| 4567 | if test "$GCC" = yes; then |
| 4568 | CFLAGS="-g -O2" |
| 4569 | else |
| 4570 | CFLAGS="-g" |
| 4571 | fi |
| 4572 | else |
| 4573 | if test "$GCC" = yes; then |
| 4574 | CFLAGS="-O2" |
| 4575 | else |
| 4576 | CFLAGS= |
| 4577 | fi |
| 4578 | fi |
| 4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4580 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4581 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 4582 | $as_echo_n "(cached) " >&6 |
| 4583 | else |
| 4584 | ac_cv_prog_cc_c89=no |
| 4585 | ac_save_CC=$CC |
| 4586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4587 | /* end confdefs.h. */ |
| 4588 | #include <stdarg.h> |
| 4589 | #include <stdio.h> |
| 4590 | struct stat; |
| 4591 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4592 | struct buf { int x; }; |
| 4593 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4594 | static char *e (p, i) |
| 4595 | char **p; |
| 4596 | int i; |
| 4597 | { |
| 4598 | return p[i]; |
| 4599 | } |
| 4600 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4601 | { |
| 4602 | char *s; |
| 4603 | va_list v; |
| 4604 | va_start (v,p); |
| 4605 | s = g (p, va_arg (v,int)); |
| 4606 | va_end (v); |
| 4607 | return s; |
| 4608 | } |
| 4609 | |
| 4610 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4611 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4612 | These don't provoke an error unfortunately, instead are silently treated |
| 4613 | as 'x'. The following induces an error, until -std is added to get |
| 4614 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4615 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4616 | that's true only with -std. */ |
| 4617 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4618 | |
| 4619 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4620 | inside strings and character constants. */ |
| 4621 | #define FOO(x) 'x' |
| 4622 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4623 | |
| 4624 | int test (int i, double x); |
| 4625 | struct s1 {int (*f) (int a);}; |
| 4626 | struct s2 {int (*f) (double a);}; |
| 4627 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4628 | int argc; |
| 4629 | char **argv; |
| 4630 | int |
| 4631 | main () |
| 4632 | { |
| 4633 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4634 | ; |
| 4635 | return 0; |
| 4636 | } |
| 4637 | _ACEOF |
| 4638 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4639 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4640 | do |
| 4641 | CC="$ac_save_CC $ac_arg" |
| 4642 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4643 | ac_cv_prog_cc_c89=$ac_arg |
| 4644 | fi |
| 4645 | rm -f core conftest.err conftest.$ac_objext |
| 4646 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4647 | done |
| 4648 | rm -f conftest.$ac_ext |
| 4649 | CC=$ac_save_CC |
| 4650 | |
| 4651 | fi |
| 4652 | # AC_CACHE_VAL |
| 4653 | case "x$ac_cv_prog_cc_c89" in |
| 4654 | x) |
| 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4656 | $as_echo "none needed" >&6; } ;; |
| 4657 | xno) |
| 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4659 | $as_echo "unsupported" >&6; } ;; |
| 4660 | *) |
| 4661 | CC="$CC $ac_cv_prog_cc_c89" |
| 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4663 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4664 | esac |
| 4665 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4666 | |
| 4667 | fi |
| 4668 | |
| 4669 | ac_ext=c |
| 4670 | ac_cpp='$CPP $CPPFLAGS' |
| 4671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4674 | |
| 4675 | depcc="$CC" am_compiler_list= |
| 4676 | |
| 4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4678 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4679 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4680 | $as_echo_n "(cached) " >&6 |
| 4681 | else |
| 4682 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4683 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4684 | # making bogus files that we don't know about and never remove. For |
| 4685 | # instance it was reported that on HP-UX the gcc test will end up |
| 4686 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4687 | # in D". |
| 4688 | rm -rf conftest.dir |
| 4689 | mkdir conftest.dir |
| 4690 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4691 | # using a relative directory. |
| 4692 | cp "$am_depcomp" conftest.dir |
| 4693 | cd conftest.dir |
| 4694 | # We will build objects and dependencies in a subdirectory because |
| 4695 | # it helps to detect inapplicable dependency modes. For instance |
| 4696 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4697 | # side effect of compilation, but ICC will put the dependencies in |
| 4698 | # the current directory while Tru64 will put them in the object |
| 4699 | # directory. |
| 4700 | mkdir sub |
| 4701 | |
| 4702 | am_cv_CC_dependencies_compiler_type=none |
| 4703 | if test "$am_compiler_list" = ""; then |
| 4704 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4705 | fi |
| 4706 | am__universal=false |
| 4707 | case " $depcc " in #( |
| 4708 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4709 | esac |
| 4710 | |
| 4711 | for depmode in $am_compiler_list; do |
| 4712 | # Setup a source with many dependencies, because some compilers |
| 4713 | # like to wrap large dependency lists on column 80 (with \), and |
| 4714 | # we should not choose a depcomp mode which is confused by this. |
| 4715 | # |
| 4716 | # We need to recreate these files for each test, as the compiler may |
| 4717 | # overwrite some of them when testing with obscure command lines. |
| 4718 | # This happens at least with the AIX C compiler. |
| 4719 | : > sub/conftest.c |
| 4720 | for i in 1 2 3 4 5 6; do |
| 4721 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4722 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4723 | # Solaris 10 /bin/sh. |
| 4724 | echo '/* dummy */' > sub/conftst$i.h |
| 4725 | done |
| 4726 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4727 | |
| 4728 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4729 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4730 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4731 | # versions had trouble with output in subdirs. |
| 4732 | am__obj=sub/conftest.${OBJEXT-o} |
| 4733 | am__minus_obj="-o $am__obj" |
| 4734 | case $depmode in |
| 4735 | gcc) |
| 4736 | # This depmode causes a compiler race in universal mode. |
| 4737 | test "$am__universal" = false || continue |
| 4738 | ;; |
| 4739 | nosideeffect) |
| 4740 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4741 | # only be used when explicitly requested. |
| 4742 | if test "x$enable_dependency_tracking" = xyes; then |
| 4743 | continue |
| 4744 | else |
| 4745 | break |
| 4746 | fi |
| 4747 | ;; |
| 4748 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4749 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4750 | # not run yet. These depmodes are late enough in the game, and |
| 4751 | # so weak that their functioning should not be impacted. |
| 4752 | am__obj=conftest.${OBJEXT-o} |
| 4753 | am__minus_obj= |
| 4754 | ;; |
| 4755 | none) break ;; |
| 4756 | esac |
| 4757 | if depmode=$depmode \ |
| 4758 | source=sub/conftest.c object=$am__obj \ |
| 4759 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4760 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4761 | >/dev/null 2>conftest.err && |
| 4762 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4763 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4764 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4765 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4766 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4767 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4768 | # that says an option was ignored or not supported. |
| 4769 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4770 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4771 | # The diagnosis changed in icc 8.0: |
| 4772 | # icc: Command line remark: option '-MP' not supported |
| 4773 | if (grep 'ignoring option' conftest.err || |
| 4774 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4775 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4776 | break |
| 4777 | fi |
| 4778 | fi |
| 4779 | done |
| 4780 | |
| 4781 | cd .. |
| 4782 | rm -rf conftest.dir |
| 4783 | else |
| 4784 | am_cv_CC_dependencies_compiler_type=none |
| 4785 | fi |
| 4786 | |
| 4787 | fi |
| 4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4789 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4790 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4791 | |
| 4792 | if |
| 4793 | test "x$enable_dependency_tracking" != xno \ |
| 4794 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4795 | am__fastdepCC_TRUE= |
| 4796 | am__fastdepCC_FALSE='#' |
| 4797 | else |
| 4798 | am__fastdepCC_TRUE='#' |
| 4799 | am__fastdepCC_FALSE= |
| 4800 | fi |
| 4801 | |
3131 | | done |
3132 | | done |
3133 | | IFS=$as_save_IFS |
3134 | | |
3135 | | fi |
3136 | | fi |
3137 | | RANLIB=$ac_cv_prog_RANLIB |
3138 | | if test -n "$RANLIB"; then |
3139 | | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3140 | | $as_echo "$RANLIB" >&6; } |
3141 | | else |
3142 | | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3143 | | $as_echo "no" >&6; } |
3144 | | fi |
3145 | | |
3146 | | |
3147 | | fi |
3148 | | if test -z "$ac_cv_prog_RANLIB"; then |
3149 | | ac_ct_RANLIB=$RANLIB |
3150 | | # Extract the first word of "ranlib", so it can be a program name with args. |
3151 | | set dummy ranlib; ac_word=$2 |
3152 | | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3153 | | $as_echo_n "checking for $ac_word... " >&6; } |
3154 | | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3155 | | $as_echo_n "(cached) " >&6 |
3156 | | else |
3157 | | if test -n "$ac_ct_RANLIB"; then |
3158 | | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
3159 | | else |
3160 | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3161 | | for as_dir in $PATH |
3162 | | do |
3163 | | IFS=$as_save_IFS |
3164 | | test -z "$as_dir" && as_dir=. |
3165 | | for ac_exec_ext in '' $ac_executable_extensions; do |
3166 | | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3167 | | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3168 | | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3169 | | break 2 |
3170 | | fi |
3171 | | done |
3172 | | done |
3173 | | IFS=$as_save_IFS |
3174 | | |
3175 | | fi |
3176 | | fi |
3177 | | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3178 | | if test -n "$ac_ct_RANLIB"; then |
3179 | | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3180 | | $as_echo "$ac_ct_RANLIB" >&6; } |
3181 | | else |
3182 | | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3183 | | $as_echo "no" >&6; } |
3184 | | fi |
3185 | | |
3186 | | if test "x$ac_ct_RANLIB" = x; then |
3187 | | RANLIB=":" |
3188 | | else |
3189 | | case $cross_compiling:$ac_tool_warned in |
3190 | | yes:) |
3191 | | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3192 | | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3193 | | ac_tool_warned=yes ;; |
3194 | | esac |
3195 | | RANLIB=$ac_ct_RANLIB |
3196 | | fi |
3197 | | else |
3198 | | RANLIB="$ac_cv_prog_RANLIB" |
3199 | | fi |
3200 | | |
3201 | | |
3202 | | # Checks for libraries. |
3203 | | |
3204 | | # Checks for header files. |
3205 | | |
3206 | | ac_ext=c |
3207 | | ac_cpp='$CPP $CPPFLAGS' |
3208 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3209 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3210 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3211 | | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3212 | | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
3213 | | # On Suns, sometimes $CPP names a directory. |
3214 | | if test -n "$CPP" && test -d "$CPP"; then |
3215 | | CPP= |
3216 | | fi |
3217 | | if test -z "$CPP"; then |
3218 | | if test "${ac_cv_prog_CPP+set}" = set; then |
3219 | | $as_echo_n "(cached) " >&6 |
3220 | | else |
3221 | | # Double quotes because CPP needs to be expanded |
3222 | | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3223 | | do |
3224 | | ac_preproc_ok=false |
3225 | | for ac_c_preproc_warn_flag in '' yes |
3226 | | do |
3227 | | # Use a header file that comes with gcc, so configuring glibc |
3228 | | # with a fresh cross-compiler works. |
3229 | | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3230 | | # <limits.h> exists even on freestanding compilers. |
3231 | | # On the NeXT, cc -E runs the code through the compiler's parser, |
3232 | | # not just through cpp. "Syntax error" is here to catch this case. |
3233 | | cat >conftest.$ac_ext <<_ACEOF |
3234 | | /* confdefs.h. */ |
3235 | | _ACEOF |
3236 | | cat confdefs.h >>conftest.$ac_ext |
3237 | | cat >>conftest.$ac_ext <<_ACEOF |
3238 | | /* end confdefs.h. */ |
3239 | | #ifdef __STDC__ |
3240 | | # include <limits.h> |
3241 | | #else |
3242 | | # include <assert.h> |
3243 | | #endif |
3244 | | Syntax error |
3245 | | _ACEOF |
3246 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3247 | | case "(($ac_try" in |
3248 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3249 | | *) ac_try_echo=$ac_try;; |
3250 | | esac |
3251 | | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3252 | | $as_echo "$ac_try_echo") >&5 |
3253 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3254 | | ac_status=$? |
3255 | | grep -v '^ *+' conftest.er1 >conftest.err |
3256 | | rm -f conftest.er1 |
3257 | | cat conftest.err >&5 |
3258 | | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3259 | | (exit $ac_status); } >/dev/null && { |
3260 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3261 | | test ! -s conftest.err |
3262 | | }; then |
3263 | | : |
3264 | | else |
3265 | | $as_echo "$as_me: failed program was:" >&5 |
3266 | | sed 's/^/| /' conftest.$ac_ext >&5 |
3267 | | |
3268 | | # Broken: fails on valid input. |
3269 | | continue |
3270 | | fi |
3271 | | |
3272 | | rm -f conftest.err conftest.$ac_ext |
3273 | | |
3274 | | # OK, works on sane cases. Now check whether nonexistent headers |
3275 | | # can be detected and how. |
3276 | | cat >conftest.$ac_ext <<_ACEOF |
3277 | | /* confdefs.h. */ |
3278 | | _ACEOF |
3279 | | cat confdefs.h >>conftest.$ac_ext |
3280 | | cat >>conftest.$ac_ext <<_ACEOF |
3281 | | /* end confdefs.h. */ |
3282 | | #include <ac_nonexistent.h> |
3283 | | _ACEOF |
3284 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3285 | | case "(($ac_try" in |
3286 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3287 | | *) ac_try_echo=$ac_try;; |
3288 | | esac |
3289 | | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3290 | | $as_echo "$ac_try_echo") >&5 |
3291 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3292 | | ac_status=$? |
3293 | | grep -v '^ *+' conftest.er1 >conftest.err |
3294 | | rm -f conftest.er1 |
3295 | | cat conftest.err >&5 |
3296 | | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3297 | | (exit $ac_status); } >/dev/null && { |
3298 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3299 | | test ! -s conftest.err |
3300 | | }; then |
3301 | | # Broken: success on invalid input. |
3302 | | continue |
3303 | | else |
3304 | | $as_echo "$as_me: failed program was:" >&5 |
3305 | | sed 's/^/| /' conftest.$ac_ext >&5 |
3306 | | |
3307 | | # Passes both tests. |
3308 | | ac_preproc_ok=: |
3309 | | break |
3310 | | fi |
3311 | | |
3312 | | rm -f conftest.err conftest.$ac_ext |
3313 | | |
3314 | | done |
3315 | | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3316 | | rm -f conftest.err conftest.$ac_ext |
3317 | | if $ac_preproc_ok; then |
3318 | | break |
3319 | | fi |
3320 | | |
3321 | | done |
3322 | | ac_cv_prog_CPP=$CPP |
3323 | | |
3324 | | fi |
3325 | | CPP=$ac_cv_prog_CPP |
3326 | | else |
3327 | | ac_cv_prog_CPP=$CPP |
3328 | | fi |
3329 | | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3330 | | $as_echo "$CPP" >&6; } |
3331 | | ac_preproc_ok=false |
3332 | | for ac_c_preproc_warn_flag in '' yes |
3333 | | do |
3334 | | # Use a header file that comes with gcc, so configuring glibc |
3335 | | # with a fresh cross-compiler works. |
3336 | | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3337 | | # <limits.h> exists even on freestanding compilers. |
3338 | | # On the NeXT, cc -E runs the code through the compiler's parser, |
3339 | | # not just through cpp. "Syntax error" is here to catch this case. |
3340 | | cat >conftest.$ac_ext <<_ACEOF |
3341 | | /* confdefs.h. */ |
3342 | | _ACEOF |
3343 | | cat confdefs.h >>conftest.$ac_ext |
3344 | | cat >>conftest.$ac_ext <<_ACEOF |
3345 | | /* end confdefs.h. */ |
3346 | | #ifdef __STDC__ |
3347 | | # include <limits.h> |
3348 | | #else |
3349 | | # include <assert.h> |
3350 | | #endif |
3351 | | Syntax error |
3352 | | _ACEOF |
3353 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3354 | | case "(($ac_try" in |
3355 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3356 | | *) ac_try_echo=$ac_try;; |
3357 | | esac |
3358 | | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3359 | | $as_echo "$ac_try_echo") >&5 |
3360 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3361 | | ac_status=$? |
3362 | | grep -v '^ *+' conftest.er1 >conftest.err |
3363 | | rm -f conftest.er1 |
3364 | | cat conftest.err >&5 |
3365 | | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3366 | | (exit $ac_status); } >/dev/null && { |
3367 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3368 | | test ! -s conftest.err |
3369 | | }; then |
3370 | | : |
3371 | | else |
3372 | | $as_echo "$as_me: failed program was:" >&5 |
3373 | | sed 's/^/| /' conftest.$ac_ext >&5 |
3374 | | |
3375 | | # Broken: fails on valid input. |
3376 | | continue |
3377 | | fi |
3378 | | |
3379 | | rm -f conftest.err conftest.$ac_ext |
3380 | | |
3381 | | # OK, works on sane cases. Now check whether nonexistent headers |
3382 | | # can be detected and how. |
3383 | | cat >conftest.$ac_ext <<_ACEOF |
3384 | | /* confdefs.h. */ |
3385 | | _ACEOF |
3386 | | cat confdefs.h >>conftest.$ac_ext |
3387 | | cat >>conftest.$ac_ext <<_ACEOF |
3388 | | /* end confdefs.h. */ |
3389 | | #include <ac_nonexistent.h> |
3390 | | _ACEOF |
3391 | | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3392 | | case "(($ac_try" in |
3393 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3394 | | *) ac_try_echo=$ac_try;; |
3395 | | esac |
3396 | | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3397 | | $as_echo "$ac_try_echo") >&5 |
3398 | | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3399 | | ac_status=$? |
3400 | | grep -v '^ *+' conftest.er1 >conftest.err |
3401 | | rm -f conftest.er1 |
3402 | | cat conftest.err >&5 |
3403 | | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3404 | | (exit $ac_status); } >/dev/null && { |
3405 | | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3406 | | test ! -s conftest.err |
3407 | | }; then |
3408 | | # Broken: success on invalid input. |
3409 | | continue |
3410 | | else |
3411 | | $as_echo "$as_me: failed program was:" >&5 |
3412 | | sed 's/^/| /' conftest.$ac_ext >&5 |
3413 | | |
3414 | | # Passes both tests. |
3415 | | ac_preproc_ok=: |
3416 | | break |
3417 | | fi |
3418 | | |
3419 | | rm -f conftest.err conftest.$ac_ext |
3420 | | |
3421 | | done |
3422 | | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3423 | | rm -f conftest.err conftest.$ac_ext |
3424 | | if $ac_preproc_ok; then |
3425 | | : |
3426 | | else |
3427 | | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3428 | | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3429 | | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3430 | | See \`config.log' for more details." >&5 |
3431 | | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3432 | | See \`config.log' for more details." >&2;} |
3433 | | { (exit 1); exit 1; }; }; } |
3434 | | fi |
3435 | | |
3436 | | ac_ext=c |
3437 | | ac_cpp='$CPP $CPPFLAGS' |
3438 | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3439 | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3440 | | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3441 | | |
3442 | | |
3443 | | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 5427 | else |
| 5428 | ac_cv_path_SED=$SED |
| 5429 | fi |
| 5430 | |
| 5431 | fi |
| 5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5433 | $as_echo "$ac_cv_path_SED" >&6; } |
| 5434 | SED="$ac_cv_path_SED" |
| 5435 | rm -f conftest.sed |
| 5436 | |
| 5437 | test -z "$SED" && SED=sed |
| 5438 | Xsed="$SED -e 1s/^X//" |
| 5439 | |
| 5440 | |
| 5441 | |
| 5442 | |
| 5443 | |
| 5444 | |
| 5445 | |
| 5446 | |
| 5447 | |
| 5448 | |
| 5449 | |
| 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3577 | | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 5581 | $as_echo_n "checking for fgrep... " >&6; } |
| 5582 | if ${ac_cv_path_FGREP+:} false; then : |
| 5583 | $as_echo_n "(cached) " >&6 |
| 5584 | else |
| 5585 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5586 | then ac_cv_path_FGREP="$GREP -F" |
| 5587 | else |
| 5588 | if test -z "$FGREP"; then |
| 5589 | ac_path_FGREP_found=false |
| 5590 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5592 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5593 | do |
| 5594 | IFS=$as_save_IFS |
| 5595 | test -z "$as_dir" && as_dir=. |
| 5596 | for ac_prog in fgrep; do |
| 5597 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5598 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5599 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 5600 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 5601 | # Check for GNU $ac_path_FGREP |
| 5602 | case `"$ac_path_FGREP" --version 2>&1` in |
| 5603 | *GNU*) |
| 5604 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5605 | *) |
| 5606 | ac_count=0 |
| 5607 | $as_echo_n 0123456789 >"conftest.in" |
| 5608 | while : |
| 5609 | do |
| 5610 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5611 | mv "conftest.tmp" "conftest.in" |
| 5612 | cp "conftest.in" "conftest.nl" |
| 5613 | $as_echo 'FGREP' >> "conftest.nl" |
| 5614 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5615 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5616 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5617 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5618 | # Best one so far, save it but keep looking for a better one |
| 5619 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 5620 | ac_path_FGREP_max=$ac_count |
| 5621 | fi |
| 5622 | # 10*(2^10) chars as input seems more than enough |
| 5623 | test $ac_count -gt 10 && break |
| 5624 | done |
| 5625 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5626 | esac |
| 5627 | |
| 5628 | $ac_path_FGREP_found && break 3 |
| 5629 | done |
| 5630 | done |
| 5631 | done |
| 5632 | IFS=$as_save_IFS |
| 5633 | if test -z "$ac_cv_path_FGREP"; then |
| 5634 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5635 | fi |
| 5636 | else |
| 5637 | ac_cv_path_FGREP=$FGREP |
| 5638 | fi |
| 5639 | |
| 5640 | fi |
| 5641 | fi |
| 5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 5643 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 5644 | FGREP="$ac_cv_path_FGREP" |
| 5645 | |
| 5646 | |
| 5647 | test -z "$GREP" && GREP=grep |
| 5648 | |
| 5649 | |
| 5650 | |
| 5651 | |
| 5652 | |
| 5653 | |
| 5654 | |
| 5655 | |
| 5656 | |
| 5657 | |
| 5658 | |
| 5659 | |
| 5660 | |
| 5661 | |
| 5662 | |
| 5663 | |
| 5664 | |
| 5665 | |
| 5666 | |
| 5667 | # Check whether --with-gnu-ld was given. |
| 5668 | if test "${with_gnu_ld+set}" = set; then : |
| 5669 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 5670 | else |
| 5671 | with_gnu_ld=no |
| 5672 | fi |
| 5673 | |
| 5674 | ac_prog=ld |
| 5675 | if test "$GCC" = yes; then |
| 5676 | # Check if gcc -print-prog-name=ld gives a path. |
| 5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 5678 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 5679 | case $host in |
| 5680 | *-*-mingw*) |
| 5681 | # gcc leaves a trailing carriage return which upsets mingw |
| 5682 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5683 | *) |
| 5684 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5685 | esac |
| 5686 | case $ac_prog in |
| 5687 | # Accept absolute paths. |
| 5688 | [\\/]* | ?:[\\/]*) |
| 5689 | re_direlt='/[^/][^/]*/\.\./' |
| 5690 | # Canonicalize the pathname of ld |
| 5691 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5692 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5693 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5694 | done |
| 5695 | test -z "$LD" && LD="$ac_prog" |
| 5696 | ;; |
| 5697 | "") |
| 5698 | # If it fails, then pretend we aren't using GCC. |
| 5699 | ac_prog=ld |
| 5700 | ;; |
| 5701 | *) |
| 5702 | # If it is relative, then search for the first ld in PATH. |
| 5703 | with_gnu_ld=unknown |
| 5704 | ;; |
| 5705 | esac |
| 5706 | elif test "$with_gnu_ld" = yes; then |
| 5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5708 | $as_echo_n "checking for GNU ld... " >&6; } |
| 5709 | else |
| 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 5711 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 5712 | fi |
| 5713 | if ${lt_cv_path_LD+:} false; then : |
| 5714 | $as_echo_n "(cached) " >&6 |
| 5715 | else |
| 5716 | if test -z "$LD"; then |
| 5717 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5718 | for ac_dir in $PATH; do |
| 5719 | IFS="$lt_save_ifs" |
| 5720 | test -z "$ac_dir" && ac_dir=. |
| 5721 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5722 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5723 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5724 | # but apparently some variants of GNU ld only accept -v. |
| 5725 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5726 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5727 | *GNU* | *'with BFD'*) |
| 5728 | test "$with_gnu_ld" != no && break |
| 5729 | ;; |
| 5730 | *) |
| 5731 | test "$with_gnu_ld" != yes && break |
| 5732 | ;; |
| 5733 | esac |
| 5734 | fi |
| 5735 | done |
| 5736 | IFS="$lt_save_ifs" |
| 5737 | else |
| 5738 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5739 | fi |
| 5740 | fi |
| 5741 | |
| 5742 | LD="$lt_cv_path_LD" |
| 5743 | if test -n "$LD"; then |
| 5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5745 | $as_echo "$LD" >&6; } |
| 5746 | else |
| 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5748 | $as_echo "no" >&6; } |
| 5749 | fi |
| 5750 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 5752 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5753 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 5754 | $as_echo_n "(cached) " >&6 |
| 5755 | else |
| 5756 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5757 | case `$LD -v 2>&1 </dev/null` in |
| 5758 | *GNU* | *'with BFD'*) |
| 5759 | lt_cv_prog_gnu_ld=yes |
| 5760 | ;; |
| 5761 | *) |
| 5762 | lt_cv_prog_gnu_ld=no |
| 5763 | ;; |
| 5764 | esac |
| 5765 | fi |
| 5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5767 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5768 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5769 | |
| 5770 | |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | |
| 5776 | |
| 5777 | |
| 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5779 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5780 | if ${lt_cv_path_NM+:} false; then : |
| 5781 | $as_echo_n "(cached) " >&6 |
| 5782 | else |
| 5783 | if test -n "$NM"; then |
| 5784 | # Let the user override the test. |
| 5785 | lt_cv_path_NM="$NM" |
| 5786 | else |
| 5787 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5788 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5789 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5790 | fi |
| 5791 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5792 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5793 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5794 | IFS="$lt_save_ifs" |
| 5795 | test -z "$ac_dir" && ac_dir=. |
| 5796 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5797 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5798 | # Check to see if the nm accepts a BSD-compat flag. |
| 5799 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5800 | # nm: unknown option "B" ignored |
| 5801 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5802 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5803 | */dev/null* | *'Invalid file or object type'*) |
| 5804 | lt_cv_path_NM="$tmp_nm -B" |
| 5805 | break |
| 5806 | ;; |
| 5807 | *) |
| 5808 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5809 | */dev/null*) |
| 5810 | lt_cv_path_NM="$tmp_nm -p" |
| 5811 | break |
| 5812 | ;; |
| 5813 | *) |
| 5814 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5815 | continue # so that we can try to find one that supports BSD flags |
| 5816 | ;; |
| 5817 | esac |
| 5818 | ;; |
| 5819 | esac |
| 5820 | fi |
| 5821 | done |
| 5822 | IFS="$lt_save_ifs" |
| 5823 | done |
| 5824 | : ${lt_cv_path_NM=no} |
| 5825 | fi |
| 5826 | fi |
| 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5828 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5829 | if test "$lt_cv_path_NM" != "no"; then |
| 5830 | NM="$lt_cv_path_NM" |
| 5831 | else |
| 5832 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5833 | if test -n "$DUMPBIN"; then : |
| 5834 | # Let the user override the test. |
| 5835 | else |
| 5836 | if test -n "$ac_tool_prefix"; then |
| 5837 | for ac_prog in dumpbin "link -dump" |
| 5838 | do |
| 5839 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5840 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5842 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5843 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 5844 | $as_echo_n "(cached) " >&6 |
| 5845 | else |
| 5846 | if test -n "$DUMPBIN"; then |
| 5847 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5848 | else |
| 5849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5850 | for as_dir in $PATH |
| 5851 | do |
| 5852 | IFS=$as_save_IFS |
| 5853 | test -z "$as_dir" && as_dir=. |
| 5854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5856 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5858 | break 2 |
| 5859 | fi |
| 5860 | done |
| 5861 | done |
| 5862 | IFS=$as_save_IFS |
| 5863 | |
| 5864 | fi |
| 5865 | fi |
| 5866 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5867 | if test -n "$DUMPBIN"; then |
| 5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5869 | $as_echo "$DUMPBIN" >&6; } |
| 5870 | else |
| 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5872 | $as_echo "no" >&6; } |
| 5873 | fi |
| 5874 | |
| 5875 | |
| 5876 | test -n "$DUMPBIN" && break |
| 5877 | done |
| 5878 | fi |
| 5879 | if test -z "$DUMPBIN"; then |
| 5880 | ac_ct_DUMPBIN=$DUMPBIN |
| 5881 | for ac_prog in dumpbin "link -dump" |
| 5882 | do |
| 5883 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5884 | set dummy $ac_prog; ac_word=$2 |
| 5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5886 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5887 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 5888 | $as_echo_n "(cached) " >&6 |
| 5889 | else |
| 5890 | if test -n "$ac_ct_DUMPBIN"; then |
| 5891 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5892 | else |
| 5893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5894 | for as_dir in $PATH |
| 5895 | do |
| 5896 | IFS=$as_save_IFS |
| 5897 | test -z "$as_dir" && as_dir=. |
| 5898 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5900 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5902 | break 2 |
| 5903 | fi |
| 5904 | done |
| 5905 | done |
| 5906 | IFS=$as_save_IFS |
| 5907 | |
| 5908 | fi |
| 5909 | fi |
| 5910 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5911 | if test -n "$ac_ct_DUMPBIN"; then |
| 5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5913 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5914 | else |
| 5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5916 | $as_echo "no" >&6; } |
| 5917 | fi |
| 5918 | |
| 5919 | |
| 5920 | test -n "$ac_ct_DUMPBIN" && break |
| 5921 | done |
| 5922 | |
| 5923 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5924 | DUMPBIN=":" |
| 5925 | else |
| 5926 | case $cross_compiling:$ac_tool_warned in |
| 5927 | yes:) |
| 5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5929 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5930 | ac_tool_warned=yes ;; |
| 5931 | esac |
| 5932 | DUMPBIN=$ac_ct_DUMPBIN |
| 5933 | fi |
| 5934 | fi |
| 5935 | |
| 5936 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5937 | *COFF*) |
| 5938 | DUMPBIN="$DUMPBIN -symbols" |
| 5939 | ;; |
| 5940 | *) |
| 5941 | DUMPBIN=: |
| 5942 | ;; |
| 5943 | esac |
| 5944 | fi |
| 5945 | |
| 5946 | if test "$DUMPBIN" != ":"; then |
| 5947 | NM="$DUMPBIN" |
| 5948 | fi |
| 5949 | fi |
| 5950 | test -z "$NM" && NM=nm |
| 5951 | |
| 5952 | |
| 5953 | |
| 5954 | |
| 5955 | |
| 5956 | |
| 5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5958 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5959 | if ${lt_cv_nm_interface+:} false; then : |
| 5960 | $as_echo_n "(cached) " >&6 |
| 5961 | else |
| 5962 | lt_cv_nm_interface="BSD nm" |
| 5963 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5964 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 5965 | (eval "$ac_compile" 2>conftest.err) |
| 5966 | cat conftest.err >&5 |
| 5967 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5968 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5969 | cat conftest.err >&5 |
| 5970 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 5971 | cat conftest.out >&5 |
| 5972 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5973 | lt_cv_nm_interface="MS dumpbin" |
| 5974 | fi |
| 5975 | rm -f conftest* |
| 5976 | fi |
| 5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5978 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5979 | |
| 5980 | # find the maximum length of command line arguments |
| 5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5982 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5983 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 5984 | $as_echo_n "(cached) " >&6 |
| 5985 | else |
| 5986 | i=0 |
| 5987 | teststring="ABCD" |
| 5988 | |
| 5989 | case $build_os in |
| 5990 | msdosdjgpp*) |
| 5991 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5992 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5993 | # during glob expansion). Even if it were fixed, the result of this |
| 5994 | # check would be larger than it should be. |
| 5995 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5996 | ;; |
| 5997 | |
| 5998 | gnu*) |
| 5999 | # Under GNU Hurd, this test is not required because there is |
| 6000 | # no limit to the length of command line arguments. |
| 6001 | # Libtool will interpret -1 as no limit whatsoever |
| 6002 | lt_cv_sys_max_cmd_len=-1; |
| 6003 | ;; |
| 6004 | |
| 6005 | cygwin* | mingw* | cegcc*) |
| 6006 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6007 | # about 5 minutes as the teststring grows exponentially. |
| 6008 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6009 | # you end up with a "frozen" computer, even though with patience |
| 6010 | # the test eventually succeeds (with a max line length of 256k). |
| 6011 | # Instead, let's just punt: use the minimum linelength reported by |
| 6012 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6013 | lt_cv_sys_max_cmd_len=8192; |
| 6014 | ;; |
| 6015 | |
| 6016 | mint*) |
| 6017 | # On MiNT this can take a long time and run out of memory. |
| 6018 | lt_cv_sys_max_cmd_len=8192; |
| 6019 | ;; |
| 6020 | |
| 6021 | amigaos*) |
| 6022 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6023 | # So we just punt and use a minimum line length of 8192. |
| 6024 | lt_cv_sys_max_cmd_len=8192; |
| 6025 | ;; |
| 6026 | |
| 6027 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6028 | # This has been around since 386BSD, at least. Likely further. |
| 6029 | if test -x /sbin/sysctl; then |
| 6030 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6031 | elif test -x /usr/sbin/sysctl; then |
| 6032 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6033 | else |
| 6034 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6035 | fi |
| 6036 | # And add a safety zone |
| 6037 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6038 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6039 | ;; |
| 6040 | |
| 6041 | interix*) |
| 6042 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6043 | lt_cv_sys_max_cmd_len=196608 |
| 6044 | ;; |
| 6045 | |
| 6046 | os2*) |
| 6047 | # The test takes a long time on OS/2. |
| 6048 | lt_cv_sys_max_cmd_len=8192 |
| 6049 | ;; |
| 6050 | |
| 6051 | osf*) |
| 6052 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6053 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6054 | # nice to cause kernel panics so lets avoid the loop below. |
| 6055 | # First set a reasonable default. |
| 6056 | lt_cv_sys_max_cmd_len=16384 |
| 6057 | # |
| 6058 | if test -x /sbin/sysconfig; then |
| 6059 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6060 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6061 | esac |
| 6062 | fi |
| 6063 | ;; |
| 6064 | sco3.2v5*) |
| 6065 | lt_cv_sys_max_cmd_len=102400 |
| 6066 | ;; |
| 6067 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6068 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6069 | if test -n "$kargmax"; then |
| 6070 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6071 | else |
| 6072 | lt_cv_sys_max_cmd_len=32768 |
| 6073 | fi |
| 6074 | ;; |
| 6075 | *) |
| 6076 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6077 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 6078 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6079 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6080 | else |
| 6081 | # Make teststring a little bigger before we do anything with it. |
| 6082 | # a 1K string should be a reasonable start. |
| 6083 | for i in 1 2 3 4 5 6 7 8 ; do |
| 6084 | teststring=$teststring$teststring |
| 6085 | done |
| 6086 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6087 | # If test is not a shell built-in, we'll probably end up computing a |
| 6088 | # maximum length that is only half of the actual maximum length, but |
| 6089 | # we can't tell. |
| 6090 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 6091 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 6092 | test $i != 17 # 1/2 MB should be enough |
| 6093 | do |
| 6094 | i=`expr $i + 1` |
| 6095 | teststring=$teststring$teststring |
| 6096 | done |
| 6097 | # Only check the string length outside the loop. |
| 6098 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 6099 | teststring= |
| 6100 | # Add a significant safety factor because C++ compilers can tack on |
| 6101 | # massive amounts of additional arguments before passing them to the |
| 6102 | # linker. It appears as though 1/2 is a usable value. |
| 6103 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6104 | fi |
| 6105 | ;; |
| 6106 | esac |
| 6107 | |
| 6108 | fi |
| 6109 | |
| 6110 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6112 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 6113 | else |
| 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 6115 | $as_echo "none" >&6; } |
| 6116 | fi |
| 6117 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 6118 | |
| 6119 | |
| 6120 | |
| 6121 | |
| 6122 | |
| 6123 | |
| 6124 | : ${CP="cp -f"} |
| 6125 | : ${MV="mv -f"} |
| 6126 | : ${RM="rm -f"} |
| 6127 | |
| 6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 6129 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 6130 | # Try some XSI features |
| 6131 | xsi_shell=no |
| 6132 | ( _lt_dummy="a/b/c" |
| 6133 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 6134 | = c,a/b,b/c, \ |
| 6135 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 6136 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 6137 | && xsi_shell=yes |
| 6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 6139 | $as_echo "$xsi_shell" >&6; } |
| 6140 | |
| 6141 | |
| 6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 6143 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 6144 | lt_shell_append=no |
| 6145 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 6146 | >/dev/null 2>&1 \ |
| 6147 | && lt_shell_append=yes |
| 6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 6149 | $as_echo "$lt_shell_append" >&6; } |
| 6150 | |
| 6151 | |
| 6152 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 6153 | lt_unset=unset |
| 6154 | else |
| 6155 | lt_unset=false |
| 6156 | fi |
| 6157 | |
| 6158 | |
| 6159 | |
| 6160 | |
| 6161 | |
| 6162 | # test EBCDIC or ASCII |
| 6163 | case `echo X|tr X '\101'` in |
| 6164 | A) # ASCII based system |
| 6165 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 6166 | lt_SP2NL='tr \040 \012' |
| 6167 | lt_NL2SP='tr \015\012 \040\040' |
| 6168 | ;; |
| 6169 | *) # EBCDIC based system |
| 6170 | lt_SP2NL='tr \100 \n' |
| 6171 | lt_NL2SP='tr \r\n \100\100' |
| 6172 | ;; |
| 6173 | esac |
| 6174 | |
| 6175 | |
| 6176 | |
| 6177 | |
| 6178 | |
| 6179 | |
| 6180 | |
| 6181 | |
| 6182 | |
| 6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 6184 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 6185 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 6186 | $as_echo_n "(cached) " >&6 |
| 6187 | else |
| 6188 | case $host in |
| 6189 | *-*-mingw* ) |
| 6190 | case $build in |
| 6191 | *-*-mingw* ) # actually msys |
| 6192 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 6193 | ;; |
| 6194 | *-*-cygwin* ) |
| 6195 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 6196 | ;; |
| 6197 | * ) # otherwise, assume *nix |
| 6198 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 6199 | ;; |
| 6200 | esac |
| 6201 | ;; |
| 6202 | *-*-cygwin* ) |
| 6203 | case $build in |
| 6204 | *-*-mingw* ) # actually msys |
| 6205 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 6206 | ;; |
| 6207 | *-*-cygwin* ) |
| 6208 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6209 | ;; |
| 6210 | * ) # otherwise, assume *nix |
| 6211 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 6212 | ;; |
| 6213 | esac |
| 6214 | ;; |
| 6215 | * ) # unhandled hosts (and "normal" native builds) |
| 6216 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6217 | ;; |
| 6218 | esac |
| 6219 | |
| 6220 | fi |
| 6221 | |
| 6222 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 6224 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 6225 | |
| 6226 | |
| 6227 | |
| 6228 | |
| 6229 | |
| 6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 6231 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 6232 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 6233 | $as_echo_n "(cached) " >&6 |
| 6234 | else |
| 6235 | #assume ordinary cross tools, or native build. |
| 6236 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 6237 | case $host in |
| 6238 | *-*-mingw* ) |
| 6239 | case $build in |
| 6240 | *-*-mingw* ) # actually msys |
| 6241 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 6242 | ;; |
| 6243 | esac |
| 6244 | ;; |
| 6245 | esac |
| 6246 | |
| 6247 | fi |
| 6248 | |
| 6249 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 6251 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 6252 | |
| 6253 | |
| 6254 | |
| 6255 | |
| 6256 | |
| 6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 6258 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 6259 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 6260 | $as_echo_n "(cached) " >&6 |
| 6261 | else |
| 6262 | lt_cv_ld_reload_flag='-r' |
| 6263 | fi |
| 6264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 6265 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 6266 | reload_flag=$lt_cv_ld_reload_flag |
| 6267 | case $reload_flag in |
| 6268 | "" | " "*) ;; |
| 6269 | *) reload_flag=" $reload_flag" ;; |
| 6270 | esa |