Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for crossfire 1.75.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
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 [email protected] and
278 $0: [email protected] 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
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
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. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='crossfire'
592 PACKAGE_TARNAME='crossfire'
593 PACKAGE_VERSION='1.75.0'
594 PACKAGE_STRING='crossfire 1.75.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="server/main.c"
599 ac_default_prefix=/usr/games/crossfire
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 PROCESS_XSLT_FALSE
641 PROCESS_XSLT_TRUE
642 XSLTENGINE
643 check_xslt_sablotronfound
644 check_xslt_xsltprocfound
645 check_xslt_forcedprogfound
646 HAVE_CHECK_FALSE
647 HAVE_CHECK_TRUE
648 HAVE_CFNEWSPAPER_FALSE
649 HAVE_CFNEWSPAPER_TRUE
650 HAVE_CFLOGGER_FALSE
651 HAVE_CFLOGGER_TRUE
652 PLUGIN_PYTHON
653 PYTHON_PLUGIN_FALSE
654 PYTHON_PLUGIN_TRUE
655 PYTHON_LIBS
656 PYTHON_CFLAGS
657 HAVE_LIBDL_FALSE
658 HAVE_LIBDL_TRUE
659 pkgconfdir
660 pkgstatedir
661 CHECK_LIBS
662 CHECK_CFLAGS
663 CFCITYBELL_PLUGIN_FALSE
664 CFCITYBELL_PLUGIN_TRUE
665 CFRHG_PLUGIN_FALSE
666 CFRHG_PLUGIN_TRUE
667 MAPPER_FALSE
668 MAPPER_TRUE
669 GD_LIBS
670 GD_CFLAGS
671 PKG_CONFIG_LIBDIR
672 PKG_CONFIG_PATH
673 PKG_CONFIG
674 LIBCURL
675 LIBCURL_CPPFLAGS
676 _libcurl_config
677 TAR
678 SVNVERSION
679 PERL
680 LATEX
681 GZIP
682 BASENAME
683 LEXLIB
684 LEX_OUTPUT_ROOT
685 LEX
686 CPP
687 LT_SYS_LIBRARY_PATH
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 ac_ct_AR
696 AR
697 DLLTOOL
698 OBJDUMP
699 LN_S
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 EGREP
706 GREP
707 SED
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 AM_BACKSLASH
734 AM_DEFAULT_VERBOSITY
735 AM_DEFAULT_V
736 AM_V
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL
798 am__quote'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_mapper
804 enable_cfrhg
805 enable_logger
806 enable_newspaper
807 enable_cfcitybell
808 enable_check
809 with_dmalloc
810 enable_dependency_tracking
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_aix_soname
816 with_gnu_ld
817 with_sysroot
818 enable_libtool_lock
819 with_libcurl
820 with_xsltproc
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 LT_SYS_LIBRARY_PATH
831 CPP
832 PKG_CONFIG
833 PKG_CONFIG_PATH
834 PKG_CONFIG_LIBDIR
835 GD_CFLAGS
836 GD_LIBS
837 CHECK_CFLAGS
838 CHECK_LIBS
839 PYTHON_CFLAGS
840 PYTHON_LIBS'
841
842
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
864
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
900 fi
901
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1175
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1191
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1228 ;;
1229
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 ;;
1247
1248 esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1254 fi
1255
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1262 fi
1263
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1269 do
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299 fi
1300
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304 test "$silent" = yes && exec 6>/dev/null
1305
1306
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error $? "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error $? "pwd does not report name of working directory"
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346 else
1347 ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352 fi
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1373
1374 #
1375 # Report the --help message.
1376 #
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures crossfire 1.75.0 to adapt to many kinds of systems.
1382
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388 Defaults for the options are specified in brackets.
1389
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking ...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1406
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1411
1412 For better control, use the options below.
1413
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/crossfire]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1435
1436 cat <<\_ACEOF
1437
1438 Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 _ACEOF
1447 fi
1448
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of crossfire 1.75.0:";;
1452 esac
1453 cat <<\_ACEOF
1454
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --enable-mapper Build the crossfire-mapper utility (requires libgd)
1462 --enable-cfrhg Build the random house generator plugin
1463 --enable-logger Build the SQLite logging plugin
1464 --enable-newspaper Build the newspaper plugin
1465 --disable-cfcitybell Build the city bell plugin
1466 --disable-check Disable the unit tests even if check is available
1467 --enable-dependency-tracking
1468 do not reject slow dependency extractors
1469 --disable-dependency-tracking
1470 speeds up one-time build
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-aix-soname=aix|svr4|both
1484 shared library versioning (aka "SONAME") variant to
1485 provide on AIX, [default=aix].
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1488 compiler's sysroot if not specified).
1489 --with-libcurl=DIR look for the curl library in DIR
1490 --with-xsltproc=path specify xslt engine to use for test report
1491 generation
1492
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 LT_SYS_LIBRARY_PATH
1502 User-defined run-time library search path.
1503 CPP C preprocessor
1504 PKG_CONFIG path to pkg-config utility
1505 PKG_CONFIG_PATH
1506 directories to add to pkg-config's search path
1507 PKG_CONFIG_LIBDIR
1508 path overriding pkg-config's built-in search path
1509 GD_CFLAGS C compiler flags for GD, overriding pkg-config
1510 GD_LIBS linker flags for GD, overriding pkg-config
1511 CHECK_CFLAGS
1512 C compiler flags for CHECK, overriding pkg-config
1513 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1514 PYTHON_CFLAGS
1515 C compiler flags for PYTHON, overriding pkg-config
1516 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 Report bugs to <[email protected]>.
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" ||
1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 continue
1532 ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551 .) # We are building in place.
1552 ac_srcdir=.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1559 *) # Relative name.
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1574 else
1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1578 done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583 cat <<\_ACEOF
1584 crossfire configure 1.75.0
1585 generated by GNU Autoconf 2.69
1586
1587 Copyright (C) 2012 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext
1605 if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674 # interfere with the next link command; also delete a directory that is
1675 # left behind by Apple's compiler. We do this before executing the actions.
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_link
1681
1682 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists and can be compiled using the include files in
1685 # INCLUDES, setting the cache variable VAR accordingly.
1686 ac_fn_c_check_header_compile ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1693 else
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 $4
1697 #include <$2>
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700 eval "$3=yes"
1701 else
1702 eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 fi
1706 eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_compile
1712
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } > conftest.i && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_cpp
1749
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1754 ac_fn_c_try_run ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768 { { case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_try") 2>&5
1775 ac_status=$?
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; }; }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: program exited with status $ac_status" >&5
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=$ac_status
1785 fi
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_run
1791
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1802 else
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1808
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1813
1814 #ifdef __STDC__
1815 # include <limits.h>
1816 #else
1817 # include <assert.h>
1818 #endif
1819
1820 #undef $2
1821
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825 #ifdef __cplusplus
1826 extern "C"
1827 #endif
1828 char $2 ();
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1833 choke me
1834 #endif
1835
1836 int
1837 main ()
1838 {
1839 return $2 ();
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_link "$LINENO"; then :
1845 eval "$3=yes"
1846 else
1847 eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857 } # ac_fn_c_check_func
1858
1859 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1860 # -------------------------------------------------------
1861 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1862 # the include files in INCLUDES and setting the cache variable VAR
1863 # accordingly.
1864 ac_fn_c_check_header_mongrel ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if eval \${$3+:} false; then :
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 else
1877 # Is the header compilable?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1879 $as_echo_n "checking $2 usability... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 ac_header_compiler=yes
1887 else
1888 ac_header_compiler=no
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1892 $as_echo "$ac_header_compiler" >&6; }
1893
1894 # Is the header present?
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1896 $as_echo_n "checking $2 presence... " >&6; }
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_cpp "$LINENO"; then :
1902 ac_header_preproc=yes
1903 else
1904 ac_header_preproc=no
1905 fi
1906 rm -f conftest.err conftest.i conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1908 $as_echo "$ac_header_preproc" >&6; }
1909
1910 # So? What about this header?
1911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912 yes:no: )
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1914 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ;;
1918 no:yes:* )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1920 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1922 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1924 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1926 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929 ( $as_echo "## --------------------------------------- ##
1930 ## Report this to [email protected] ##
1931 ## --------------------------------------- ##"
1932 ) | sed "s/^/$as_me: WARNING: /" >&2
1933 ;;
1934 esac
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 eval "$3=\$ac_header_compiler"
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 fi
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_header_mongrel
1949 cat >config.log <<_ACEOF
1950 This file contains any messages produced by compilers while
1951 running configure, to aid debugging if configure makes a mistake.
1952
1953 It was created by crossfire $as_me 1.75.0, which was
1954 generated by GNU Autoconf 2.69. Invocation command line was
1955
1956 $ $0 $@
1957
1958 _ACEOF
1959 exec 5>>config.log
1960 {
1961 cat <<_ASUNAME
1962 ## --------- ##
1963 ## Platform. ##
1964 ## --------- ##
1965
1966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1974
1975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1982
1983 _ASUNAME
1984
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 $as_echo "PATH: $as_dir"
1991 done
1992 IFS=$as_save_IFS
1993
1994 } >&5
1995
1996 cat >&5 <<_ACEOF
1997
1998
1999 ## ----------- ##
2000 ## Core tests. ##
2001 ## ----------- ##
2002
2003 _ACEOF
2004
2005
2006 # Keep a trace of the command line.
2007 # Strip out --no-create and --no-recursion so they do not pile up.
2008 # Strip out --silent because we don't want to record it for future runs.
2009 # Also quote any args containing shell meta-characters.
2010 # Make two passes to allow for proper duplicate-argument suppression.
2011 ac_configure_args=
2012 ac_configure_args0=
2013 ac_configure_args1=
2014 ac_must_keep_next=false
2015 for ac_pass in 1 2
2016 do
2017 for ac_arg
2018 do
2019 case $ac_arg in
2020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022 | -silent | --silent | --silen | --sile | --sil)
2023 continue ;;
2024 *\'*)
2025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 esac
2027 case $ac_pass in
2028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029 2)
2030 as_fn_append ac_configure_args1 " '$ac_arg'"
2031 if test $ac_must_keep_next = true; then
2032 ac_must_keep_next=false # Got value, back to normal.
2033 else
2034 case $ac_arg in
2035 *=* | --config-cache | -C | -disable-* | --disable-* \
2036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038 | -with-* | --with-* | -without-* | --without-* | --x)
2039 case "$ac_configure_args0 " in
2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041 esac
2042 ;;
2043 -* ) ac_must_keep_next=true ;;
2044 esac
2045 fi
2046 as_fn_append ac_configure_args " '$ac_arg'"
2047 ;;
2048 esac
2049 done
2050 done
2051 { ac_configure_args0=; unset ac_configure_args0;}
2052 { ac_configure_args1=; unset ac_configure_args1;}
2053
2054 # When interrupted or exit'd, cleanup temporary files, and complete
2055 # config.log. We remove comments because anyway the quotes in there
2056 # would cause problems or look ugly.
2057 # WARNING: Use '\'' to represent an apostrophe within the trap.
2058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059 trap 'exit_status=$?
2060 # Save into config.log some information that might help in debugging.
2061 {
2062 echo
2063
2064 $as_echo "## ---------------- ##
2065 ## Cache variables. ##
2066 ## ---------------- ##"
2067 echo
2068 # The following way of writing the cache mishandles newlines in values,
2069 (
2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in #(
2073 *${as_nl}*)
2074 case $ac_var in #(
2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077 esac
2078 case $ac_var in #(
2079 _ | IFS | as_nl) ;; #(
2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081 *) { eval $ac_var=; unset $ac_var;} ;;
2082 esac ;;
2083 esac
2084 done
2085 (set) 2>&1 |
2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087 *${as_nl}ac_space=\ *)
2088 sed -n \
2089 "s/'\''/'\''\\\\'\'''\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091 ;; #(
2092 *)
2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094 ;;
2095 esac |
2096 sort
2097 )
2098 echo
2099
2100 $as_echo "## ----------------- ##
2101 ## Output variables. ##
2102 ## ----------------- ##"
2103 echo
2104 for ac_var in $ac_subst_vars
2105 do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 esac
2110 $as_echo "$ac_var='\''$ac_val'\''"
2111 done | sort
2112 echo
2113
2114 if test -n "$ac_subst_files"; then
2115 $as_echo "## ------------------- ##
2116 ## File substitutions. ##
2117 ## ------------------- ##"
2118 echo
2119 for ac_var in $ac_subst_files
2120 do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 esac
2125 $as_echo "$ac_var='\''$ac_val'\''"
2126 done | sort
2127 echo
2128 fi
2129
2130 if test -s confdefs.h; then
2131 $as_echo "## ----------- ##
2132 ## confdefs.h. ##
2133 ## ----------- ##"
2134 echo
2135 cat confdefs.h
2136 echo
2137 fi
2138 test "$ac_signal" != 0 &&
2139 $as_echo "$as_me: caught signal $ac_signal"
2140 $as_echo "$as_me: exit $exit_status"
2141 } >&5
2142 rm -f core *.core core.conftest.* &&
2143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2144 exit $exit_status
2145 ' 0
2146 for ac_signal in 1 2 13 15; do
2147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2148 done
2149 ac_signal=0
2150
2151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2152 rm -f -r conftest* confdefs.h
2153
2154 $as_echo "/* confdefs.h */" > confdefs.h
2155
2156 # Predefined preprocessor variables.
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_NAME "$PACKAGE_NAME"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_STRING "$PACKAGE_STRING"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_URL "$PACKAGE_URL"
2180 _ACEOF
2181
2182
2183 # Let the site file select an alternate cache file if it wants to.
2184 # Prefer an explicitly selected file to automatically selected ones.
2185 ac_site_file1=NONE
2186 ac_site_file2=NONE
2187 if test -n "$CONFIG_SITE"; then
2188 # We do not want a PATH search for config.site.
2189 case $CONFIG_SITE in #((
2190 -*) ac_site_file1=./$CONFIG_SITE;;
2191 */*) ac_site_file1=$CONFIG_SITE;;
2192 *) ac_site_file1=./$CONFIG_SITE;;
2193 esac
2194 elif test "x$prefix" != xNONE; then
2195 ac_site_file1=$prefix/share/config.site
2196 ac_site_file2=$prefix/etc/config.site
2197 else
2198 ac_site_file1=$ac_default_prefix/share/config.site
2199 ac_site_file2=$ac_default_prefix/etc/config.site
2200 fi
2201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2202 do
2203 test "x$ac_site_file" = xNONE && continue
2204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2207 sed 's/^/| /' "$ac_site_file" >&5
2208 . "$ac_site_file" \
2209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 as_fn_error $? "failed to load site script $ac_site_file
2212 See \`config.log' for more details" "$LINENO" 5; }
2213 fi
2214 done
2215
2216 if test -r "$cache_file"; then
2217 # Some versions of bash will fail to source /dev/null (special files
2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221 $as_echo "$as_me: loading cache $cache_file" >&6;}
2222 case $cache_file in
2223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224 *) . "./$cache_file";;
2225 esac
2226 fi
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229 $as_echo "$as_me: creating cache $cache_file" >&6;}
2230 >$cache_file
2231 fi
2232
2233 # Check that the precious variables saved in the cache have kept the same
2234 # value.
2235 ac_cache_corrupted=false
2236 for ac_var in $ac_precious_vars; do
2237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238 eval ac_new_set=\$ac_env_${ac_var}_set
2239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240 eval ac_new_val=\$ac_env_${ac_var}_value
2241 case $ac_old_set,$ac_new_set in
2242 set,)
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2246 ,set)
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2250 ,);;
2251 *)
2252 if test "x$ac_old_val" != "x$ac_new_val"; then
2253 # differences in whitespace do not lead to failure.
2254 ac_old_val_w=`echo x $ac_old_val`
2255 ac_new_val_w=`echo x $ac_new_val`
2256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259 ac_cache_corrupted=:
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263 eval $ac_var=\$ac_old_val
2264 fi
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2266 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2269 fi;;
2270 esac
2271 # Pass precious variables to config.status.
2272 if test "$ac_new_set" = set; then
2273 case $ac_new_val in
2274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 *) ac_arg=$ac_var=$ac_new_val ;;
2276 esac
2277 case " $ac_configure_args " in
2278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2280 esac
2281 fi
2282 done
2283 if $ac_cache_corrupted; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2289 fi
2290 ## -------------------- ##
2291 ## Main body of script. ##
2292 ## -------------------- ##
2293
2294 ac_ext=c
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301 ac_aux_dir=
2302 for ac_dir in utils "$srcdir"/utils; do
2303 if test -f "$ac_dir/install-sh"; then
2304 ac_aux_dir=$ac_dir
2305 ac_install_sh="$ac_aux_dir/install-sh -c"
2306 break
2307 elif test -f "$ac_dir/install.sh"; then
2308 ac_aux_dir=$ac_dir
2309 ac_install_sh="$ac_aux_dir/install.sh -c"
2310 break
2311 elif test -f "$ac_dir/shtool"; then
2312 ac_aux_dir=$ac_dir
2313 ac_install_sh="$ac_aux_dir/shtool install -c"
2314 break
2315 fi
2316 done
2317 if test -z "$ac_aux_dir"; then
2318 as_fn_error $? "cannot find install-sh, install.sh, or shtool in utils \"$srcdir\"/utils" "$LINENO" 5
2319 fi
2320
2321 # These three variables are undocumented and unsupported,
2322 # and are intended to be withdrawn in a future Autoconf release.
2323 # They can cause serious problems if a builder's source tree is in a directory
2324 # whose full name contains unusual characters.
2325 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2326 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2327 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2328
2329
2330 ac_config_headers="$ac_config_headers include/autoconf.h"
2331
2332
2333
2334
2335 am__api_version='1.16'
2336
2337 # Find a good install program. We prefer a C program (faster),
2338 # so one script is as good as another. But avoid the broken or
2339 # incompatible versions:
2340 # SysV /etc/install, /usr/sbin/install
2341 # SunOS /usr/etc/install
2342 # IRIX /sbin/install
2343 # AIX /bin/install
2344 # AmigaOS /C/install, which installs bootblocks on floppy discs
2345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348 # OS/2's system install, which has a completely different semantic
2349 # ./install, which can be erroneously created by make from ./install.sh.
2350 # Reject install programs that cannot install multiple files.
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2352 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2353 if test -z "$INSTALL"; then
2354 if ${ac_cv_path_install+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 # Account for people who put trailing slashes in PATH elements.
2363 case $as_dir/ in #((
2364 ./ | .// | /[cC]/* | \
2365 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2366 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2367 /usr/ucb/* ) ;;
2368 *)
2369 # OSF1 and SCO ODT 3.0 have their own names for install.
2370 # Don't use installbsd from OSF since it installs stuff as root
2371 # by default.
2372 for ac_prog in ginstall scoinst install; do
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2375 if test $ac_prog = install &&
2376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # AIX install. It has an incompatible calling convention.
2378 :
2379 elif test $ac_prog = install &&
2380 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # program-specific install script used by HP pwplus--don't use.
2382 :
2383 else
2384 rm -rf conftest.one conftest.two conftest.dir
2385 echo one > conftest.one
2386 echo two > conftest.two
2387 mkdir conftest.dir
2388 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2389 test -s conftest.one && test -s conftest.two &&
2390 test -s conftest.dir/conftest.one &&
2391 test -s conftest.dir/conftest.two
2392 then
2393 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 break 3
2395 fi
2396 fi
2397 fi
2398 done
2399 done
2400 ;;
2401 esac
2402
2403 done
2404 IFS=$as_save_IFS
2405
2406 rm -rf conftest.one conftest.two conftest.dir
2407
2408 fi
2409 if test "${ac_cv_path_install+set}" = set; then
2410 INSTALL=$ac_cv_path_install
2411 else
2412 # As a last resort, use the slow shell script. Don't cache a
2413 # value for INSTALL within a source directory, because that will
2414 # break other packages using the cache if that directory is
2415 # removed, or if the value is a relative name.
2416 INSTALL=$ac_install_sh
2417 fi
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2420 $as_echo "$INSTALL" >&6; }
2421
2422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423 # It thinks the first close brace ends the variable substitution.
2424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2425
2426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2427
2428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2429
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2431 $as_echo_n "checking whether build environment is sane... " >&6; }
2432 # Reject unsafe characters in $srcdir or the absolute working directory
2433 # name. Accept space and tab only in the latter.
2434 am_lf='
2435 '
2436 case `pwd` in
2437 *[\\\"\#\$\&\'\`$am_lf]*)
2438 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2439 esac
2440 case $srcdir in
2441 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2442 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2443 esac
2444
2445 # Do 'set' in a subshell so we don't clobber the current shell's
2446 # arguments. Must try -L first in case configure is actually a
2447 # symlink; some systems play weird games with the mod time of symlinks
2448 # (eg FreeBSD returns the mod time of the symlink's containing
2449 # directory).
2450 if (
2451 am_has_slept=no
2452 for am_try in 1 2; do
2453 echo "timestamp, slept: $am_has_slept" > conftest.file
2454 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2455 if test "$*" = "X"; then
2456 # -L didn't work.
2457 set X `ls -t "$srcdir/configure" conftest.file`
2458 fi
2459 if test "$*" != "X $srcdir/configure conftest.file" \
2460 && test "$*" != "X conftest.file $srcdir/configure"; then
2461
2462 # If neither matched, then we have a broken ls. This can happen
2463 # if, for instance, CONFIG_SHELL is bash and it inherits a
2464 # broken ls alias from the environment. This has actually
2465 # happened. Such a system could not be considered "sane".
2466 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2467 alias in your environment" "$LINENO" 5
2468 fi
2469 if test "$2" = conftest.file || test $am_try -eq 2; then
2470 break
2471 fi
2472 # Just in case.
2473 sleep 1
2474 am_has_slept=yes
2475 done
2476 test "$2" = conftest.file
2477 )
2478 then
2479 # Ok.
2480 :
2481 else
2482 as_fn_error $? "newly created file is older than distributed files!
2483 Check your system clock" "$LINENO" 5
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2486 $as_echo "yes" >&6; }
2487 # If we didn't sleep, we still need to ensure time stamps of config.status and
2488 # generated files are strictly newer.
2489 am_sleep_pid=
2490 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2491 ( sleep 1 ) &
2492 am_sleep_pid=$!
2493 fi
2494
2495 rm -f conftest.file
2496
2497 test "$program_prefix" != NONE &&
2498 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2499 # Use a double $ so make ignores it.
2500 test "$program_suffix" != NONE &&
2501 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2502 # Double any \ or $.
2503 # By default was `s,x,x', remove it if useless.
2504 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2505 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2506
2507 # Expand $ac_aux_dir to an absolute path.
2508 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2509
2510 if test x"${MISSING+set}" != xset; then
2511 MISSING="\${SHELL} '$am_aux_dir/missing'"
2512 fi
2513 # Use eval to expand $SHELL
2514 if eval "$MISSING --is-lightweight"; then
2515 am_missing_run="$MISSING "
2516 else
2517 am_missing_run=
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2519 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2520 fi
2521
2522 if test x"${install_sh+set}" != xset; then
2523 case $am_aux_dir in
2524 *\ * | *\ *)
2525 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2526 *)
2527 install_sh="\${SHELL} $am_aux_dir/install-sh"
2528 esac
2529 fi
2530
2531 # Installed binaries are usually stripped using 'strip' when the user
2532 # run "make install-strip". However 'strip' might not be the right
2533 # tool to use in cross-compilation environments, therefore Automake
2534 # will honor the 'STRIP' environment variable to overrule this program.
2535 if test "$cross_compiling" != no; then
2536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}strip; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_STRIP+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$STRIP"; then
2545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 STRIP=$ac_cv_prog_STRIP
2565 if test -n "$STRIP"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2567 $as_echo "$STRIP" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573
2574 fi
2575 if test -z "$ac_cv_prog_STRIP"; then
2576 ac_ct_STRIP=$STRIP
2577 # Extract the first word of "strip", so it can be a program name with args.
2578 set dummy strip; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$ac_ct_STRIP"; then
2585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_ac_ct_STRIP="strip"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2605 if test -n "$ac_ct_STRIP"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2607 $as_echo "$ac_ct_STRIP" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613 if test "x$ac_ct_STRIP" = x; then
2614 STRIP=":"
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617 yes:)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620 ac_tool_warned=yes ;;
2621 esac
2622 STRIP=$ac_ct_STRIP
2623 fi
2624 else
2625 STRIP="$ac_cv_prog_STRIP"
2626 fi
2627
2628 fi
2629 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2630
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2632 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2633 if test -z "$MKDIR_P"; then
2634 if ${ac_cv_path_mkdir+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2639 do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_prog in mkdir gmkdir; do
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2645 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2646 'mkdir (GNU coreutils) '* | \
2647 'mkdir (coreutils) '* | \
2648 'mkdir (fileutils) '4.1*)
2649 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2650 break 3;;
2651 esac
2652 done
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658
2659 test -d ./--version && rmdir ./--version
2660 if test "${ac_cv_path_mkdir+set}" = set; then
2661 MKDIR_P="$ac_cv_path_mkdir -p"
2662 else
2663 # As a last resort, use the slow shell script. Don't cache a
2664 # value for MKDIR_P within a source directory, because that will
2665 # break other packages using the cache if that directory is
2666 # removed, or if the value is a relative name.
2667 MKDIR_P="$ac_install_sh -d"
2668 fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2671 $as_echo "$MKDIR_P" >&6; }
2672
2673 for ac_prog in gawk mawk nawk awk
2674 do
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_AWK+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 AWK=$ac_cv_prog_AWK
2703 if test -n "$AWK"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2705 $as_echo "$AWK" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2709 fi
2710
2711
2712 test -n "$AWK" && break
2713 done
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2717 set x ${MAKE-make}
2718 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2719 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 cat >conftest.make <<\_ACEOF
2723 SHELL = /bin/sh
2724 all:
2725 @echo '@@@%%%=$(MAKE)=@@@%%%'
2726 _ACEOF
2727 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2729 *@@@%%%=?*=@@@%%%*)
2730 eval ac_cv_prog_make_${ac_make}_set=yes;;
2731 *)
2732 eval ac_cv_prog_make_${ac_make}_set=no;;
2733 esac
2734 rm -f conftest.make
2735 fi
2736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2738 $as_echo "yes" >&6; }
2739 SET_MAKE=
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 SET_MAKE="MAKE=${MAKE-make}"
2744 fi
2745
2746 rm -rf .tst 2>/dev/null
2747 mkdir .tst 2>/dev/null
2748 if test -d .tst; then
2749 am__leading_dot=.
2750 else
2751 am__leading_dot=_
2752 fi
2753 rmdir .tst 2>/dev/null
2754
2755 # Check whether --enable-silent-rules was given.
2756 if test "${enable_silent_rules+set}" = set; then :
2757 enableval=$enable_silent_rules;
2758 fi
2759
2760 case $enable_silent_rules in # (((
2761 yes) AM_DEFAULT_VERBOSITY=0;;
2762 no) AM_DEFAULT_VERBOSITY=1;;
2763 *) AM_DEFAULT_VERBOSITY=1;;
2764 esac
2765 am_make=${MAKE-make}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2767 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2768 if ${am_cv_make_support_nested_variables+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if $as_echo 'TRUE=$(BAR$(V))
2772 BAR0=false
2773 BAR1=true
2774 V=1
2775 am__doit:
2776 @$(TRUE)
2777 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2778 am_cv_make_support_nested_variables=yes
2779 else
2780 am_cv_make_support_nested_variables=no
2781 fi
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2784 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2785 if test $am_cv_make_support_nested_variables = yes; then
2786 AM_V='$(V)'
2787 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2788 else
2789 AM_V=$AM_DEFAULT_VERBOSITY
2790 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2791 fi
2792 AM_BACKSLASH='\'
2793
2794 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2795 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2796 # is not polluted with repeated "-I."
2797 am__isrc=' -I$(srcdir)'
2798 # test to see if srcdir already configured
2799 if test -f $srcdir/config.status; then
2800 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2801 fi
2802 fi
2803
2804 # test whether we have cygpath
2805 if test -z "$CYGPATH_W"; then
2806 if (cygpath --version) >/dev/null 2>/dev/null; then
2807 CYGPATH_W='cygpath -w'
2808 else
2809 CYGPATH_W=echo
2810 fi
2811 fi
2812
2813
2814 # Define the identity of the package.
2815 PACKAGE='crossfire'
2816 VERSION='1.75.0'
2817
2818
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE "$PACKAGE"
2821 _ACEOF
2822
2823
2824 cat >>confdefs.h <<_ACEOF
2825 #define VERSION "$VERSION"
2826 _ACEOF
2827
2828 # Some tools Automake needs.
2829
2830 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2831
2832
2833 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2834
2835
2836 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2837
2838
2839 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2840
2841
2842 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2843
2844 # For better backward compatibility. To be removed once Automake 1.9.x
2845 # dies out for good. For more background, see:
2846 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2847 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2848 mkdir_p='$(MKDIR_P)'
2849
2850 # We need awk for the "check" target (and possibly the TAP driver). The
2851 # system "awk" is bad on some platforms.
2852 # Always define AMTAR for backward compatibility. Yes, it's still used
2853 # in the wild :-( We should find a proper way to deprecate it ...
2854 AMTAR='$${TAR-tar}'
2855
2856
2857 # We'll loop over all known methods to create a tar archive until one works.
2858 _am_tools='gnutar pax cpio none'
2859
2860 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2861
2862
2863
2864
2865
2866
2867 # POSIX will say in a future version that running "rm -f" with no argument
2868 # is OK; and we want to be able to make that assumption in our Makefile
2869 # recipes. So use an aggressive probe to check that the usage we want is
2870 # actually supported "in the wild" to an acceptable degree.
2871 # See automake bug#10828.
2872 # To make any issue more visible, cause the running configure to be aborted
2873 # by default if the 'rm' program in use doesn't match our expectations; the
2874 # user can still override this though.
2875 if rm -f && rm -fr && rm -rf; then : OK; else
2876 cat >&2 <<'END'
2877 Oops!
2878
2879 Your 'rm' program seems unable to run without file operands specified
2880 on the command line, even when the '-f' option is present. This is contrary
2881 to the behaviour of most rm programs out there, and not conforming with
2882 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2883
2884 Please tell [email protected] about your system, including the value
2885 of your $PATH and any error possibly output before this message. This
2886 can help us improve future automake versions.
2887
2888 END
2889 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2890 echo 'Configuration will proceed anyway, since you have set the' >&2
2891 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2892 echo >&2
2893 else
2894 cat >&2 <<'END'
2895 Aborting the configuration process, to ensure you take notice of the issue.
2896
2897 You can download and install GNU coreutils to get an 'rm' implementation
2898 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2899
2900 If you want to complete the configuration process using your problematic
2901 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2902 to "yes", and re-run configure.
2903
2904 END
2905 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2906 fi
2907 fi
2908
2909 # Check whether --enable-silent-rules was given.
2910 if test "${enable_silent_rules+set}" = set; then :
2911 enableval=$enable_silent_rules;
2912 fi
2913
2914 case $enable_silent_rules in # (((
2915 yes) AM_DEFAULT_VERBOSITY=0;;
2916 no) AM_DEFAULT_VERBOSITY=1;;
2917 *) AM_DEFAULT_VERBOSITY=0;;
2918 esac
2919 am_make=${MAKE-make}
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2921 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2922 if ${am_cv_make_support_nested_variables+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if $as_echo 'TRUE=$(BAR$(V))
2926 BAR0=false
2927 BAR1=true
2928 V=1
2929 am__doit:
2930 @$(TRUE)
2931 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2932 am_cv_make_support_nested_variables=yes
2933 else
2934 am_cv_make_support_nested_variables=no
2935 fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2938 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2939 if test $am_cv_make_support_nested_variables = yes; then
2940 AM_V='$(V)'
2941 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2942 else
2943 AM_V=$AM_DEFAULT_VERBOSITY
2944 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2945 fi
2946 AM_BACKSLASH='\'
2947
2948
2949 # Check whether --enable-mapper was given.
2950 if test "${enable_mapper+set}" = set; then :
2951 enableval=$enable_mapper; enable_mapper=yes
2952 else
2953 enable_mapper=no
2954 fi
2955
2956
2957 # Check whether --enable-cfrhg was given.
2958 if test "${enable_cfrhg+set}" = set; then :
2959 enableval=$enable_cfrhg;
2960 else
2961 enable_cfrhg=no
2962 fi
2963
2964
2965 # Check whether --enable-logger was given.
2966 if test "${enable_logger+set}" = set; then :
2967 enableval=$enable_logger; enable_logger=yes
2968 else
2969 enable_logger=no
2970 fi
2971
2972
2973 # Check whether --enable-newspaper was given.
2974 if test "${enable_newspaper+set}" = set; then :
2975 enableval=$enable_newspaper; enable_newspaper=yes
2976 else
2977 enable_newspaper=no
2978 fi
2979
2980
2981 # Check whether --enable-cfcitybell was given.
2982 if test "${enable_cfcitybell+set}" = set; then :
2983 enableval=$enable_cfcitybell; enable_cfcitybell=no
2984 else
2985 enable_cfcitybell=yes
2986 fi
2987
2988
2989 # Check whether --enable-check was given.
2990 if test "${enable_check+set}" = set; then :
2991 enableval=$enable_check; enable_check=no
2992 else
2993 enable_check=yes
2994 fi
2995
2996
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
2998 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
2999
3000 # Check whether --with-dmalloc was given.
3001 if test "${with_dmalloc+set}" = set; then :
3002 withval=$with_dmalloc; if test "$withval" = yes; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004 $as_echo "yes" >&6; }
3005
3006 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
3007
3008 LIBS="$LIBS -ldmalloc"
3009 LDFLAGS="$LDFLAGS -g"
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020
3021 for ac_prog in gawk mawk nawk awk
3022 do
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_AWK+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$AWK"; then
3031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_AWK="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 AWK=$ac_cv_prog_AWK
3051 if test -n "$AWK"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3053 $as_echo "$AWK" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060 test -n "$AWK" && break
3061 done
3062
3063 DEPDIR="${am__leading_dot}deps"
3064
3065 ac_config_commands="$ac_config_commands depfiles"
3066
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3068 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3069 cat > confinc.mk << 'END'
3070 am__doit:
3071 @echo this is the am__doit target >confinc.out
3072 .PHONY: am__doit
3073 END
3074 am__include="#"
3075 am__quote=
3076 # BSD make does it like this.
3077 echo '.include "confinc.mk" # ignored' > confmf.BSD
3078 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3079 echo 'include confinc.mk # ignored' > confmf.GNU
3080 _am_result=no
3081 for s in GNU BSD; do
3082 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3083 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }
3087 case $?:`cat confinc.out 2>/dev/null` in #(
3088 '0:this is the am__doit target') :
3089 case $s in #(
3090 BSD) :
3091 am__include='.include' am__quote='"' ;; #(
3092 *) :
3093 am__include='include' am__quote='' ;;
3094 esac ;; #(
3095 *) :
3096 ;;
3097 esac
3098 if test "$am__include" != "#"; then
3099 _am_result="yes ($s style)"
3100 break
3101 fi
3102 done
3103 rm -f confinc.* confmf.*
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3105 $as_echo "${_am_result}" >&6; }
3106
3107 # Check whether --enable-dependency-tracking was given.
3108 if test "${enable_dependency_tracking+set}" = set; then :
3109 enableval=$enable_dependency_tracking;
3110 fi
3111
3112 if test "x$enable_dependency_tracking" != xno; then
3113 am_depcomp="$ac_aux_dir/depcomp"
3114 AMDEPBACKSLASH='\'
3115 am__nodep='_no'
3116 fi
3117 if test "x$enable_dependency_tracking" != xno; then
3118 AMDEP_TRUE=
3119 AMDEP_FALSE='#'
3120 else
3121 AMDEP_TRUE='#'
3122 AMDEP_FALSE=
3123 fi
3124
3125
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 if test -n "$ac_tool_prefix"; then
3132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CC+:} false; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$CC"; then
3140 ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169 fi
3170 if test -z "$ac_cv_prog_CC"; then
3171 ac_ct_CC=$CC
3172 # Extract the first word of "gcc", so it can be a program name with args.
3173 set dummy gcc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$ac_ct_CC"; then
3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_CC="gcc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193 done
3194 done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
3199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3200 if test -n "$ac_ct_CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3202 $as_echo "$ac_ct_CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208 if test "x$ac_ct_CC" = x; then
3209 CC=""
3210 else
3211 case $cross_compiling:$ac_tool_warned in
3212 yes:)
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3216 esac
3217 CC=$ac_ct_CC
3218 fi
3219 else
3220 CC="$ac_cv_prog_CC"
3221 fi
3222
3223 if test -z "$CC"; then
3224 if test -n "$ac_tool_prefix"; then
3225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3226 set dummy ${ac_tool_prefix}cc; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_CC+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -n "$CC"; then
3233 ac_cv_prog_CC="$CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_CC="${ac_tool_prefix}cc"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 fi
3251 fi
3252 CC=$ac_cv_prog_CC
3253 if test -n "$CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261
3262 fi
3263 fi
3264 if test -z "$CC"; then
3265 # Extract the first word of "cc", so it can be a program name with args.
3266 set dummy cc; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_CC+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 ac_prog_rejected=no
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3284 ac_prog_rejected=yes
3285 continue
3286 fi
3287 ac_cv_prog_CC="cc"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3290 fi
3291 done
3292 done
3293 IFS=$as_save_IFS
3294
3295 if test $ac_prog_rejected = yes; then
3296 # We found a bogon in the path, so make sure we never use it.
3297 set dummy $ac_cv_prog_CC
3298 shift
3299 if test $# != 0; then
3300 # We chose a different compiler from the bogus one.
3301 # However, it has the same basename, so the bogon will be chosen
3302 # first if we set CC to just the basename; use the full file name.
3303 shift
3304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3305 fi
3306 fi
3307 fi
3308 fi
3309 CC=$ac_cv_prog_CC
3310 if test -n "$CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 fi
3317
3318
3319 fi
3320 if test -z "$CC"; then
3321 if test -n "$ac_tool_prefix"; then
3322 for ac_prog in cl.exe
3323 do
3324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if ${ac_cv_prog_CC+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 if test -n "$CC"; then
3332 ac_cv_prog_CC="$CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345 done
3346 done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 CC=$ac_cv_prog_CC
3352 if test -n "$CC"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354 $as_echo "$CC" >&6; }
3355 else
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360
3361 test -n "$CC" && break
3362 done
3363 fi
3364 if test -z "$CC"; then
3365 ac_ct_CC=$CC
3366 for ac_prog in cl.exe
3367 do
3368 # Extract the first word of "$ac_prog", so it can be a program name with args.
3369 set dummy $ac_prog; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$ac_ct_CC"; then
3376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_CC="$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3396 if test -n "$ac_ct_CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3398 $as_echo "$ac_ct_CC" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 test -n "$ac_ct_CC" && break
3406 done
3407
3408 if test "x$ac_ct_CC" = x; then
3409 CC=""
3410 else
3411 case $cross_compiling:$ac_tool_warned in
3412 yes:)
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3415 ac_tool_warned=yes ;;
3416 esac
3417 CC=$ac_ct_CC
3418 fi
3419 fi
3420
3421 fi
3422
3423
3424 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "no acceptable C compiler found in \$PATH
3427 See \`config.log' for more details" "$LINENO" 5; }
3428
3429 # Provide some information about the compiler.
3430 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3431 set X $ac_compile
3432 ac_compiler=$2
3433 for ac_option in --version -v -V -qversion; do
3434 { { ac_try="$ac_compiler $ac_option >&5"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3442 ac_status=$?
3443 if test -s conftest.err; then
3444 sed '10a\
3445 ... rest of stderr output deleted ...
3446 10q' conftest.err >conftest.er1
3447 cat conftest.er1 >&5
3448 fi
3449 rm -f conftest.er1 conftest.err
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }
3452 done
3453
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3456
3457 int
3458 main ()
3459 {
3460
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 ac_clean_files_save=$ac_clean_files
3466 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3467 # Try to create an executable without -o first, disregard a.out.
3468 # It will help us diagnose broken compilers, and finding out an intuition
3469 # of exeext.
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3471 $as_echo_n "checking whether the C compiler works... " >&6; }
3472 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3473
3474 # The possible output files:
3475 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3476
3477 ac_rmfiles=
3478 for ac_file in $ac_files
3479 do
3480 case $ac_file in
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3483 esac
3484 done
3485 rm -f $ac_rmfiles
3486
3487 if { { ac_try="$ac_link_default"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_link_default") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; then :
3498 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3499 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3500 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3501 # so that the user can short-circuit this test for compilers unknown to
3502 # Autoconf.
3503 for ac_file in $ac_files ''
3504 do
3505 test -f "$ac_file" || continue
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3508 ;;
3509 [ab].out )
3510 # We found the default executable, but exeext='' is most
3511 # certainly right.
3512 break;;
3513 *.* )
3514 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3515 then :; else
3516 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3517 fi
3518 # We set ac_cv_exeext here because the later test for it is not
3519 # safe: cross compilers may not add the suffix if given an `-o'
3520 # argument, so we may need to know it at that point already.
3521 # Even if this section looks crufty: it has the advantage of
3522 # actually working.
3523 break;;
3524 * )
3525 break;;
3526 esac
3527 done
3528 test "$ac_cv_exeext" = no && ac_cv_exeext=
3529
3530 else
3531 ac_file=''
3532 fi
3533 if test -z "$ac_file"; then :
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error 77 "C compiler cannot create executables
3542 See \`config.log' for more details" "$LINENO" 5; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3545 $as_echo "yes" >&6; }
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3548 $as_echo_n "checking for C compiler default output file name... " >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3550 $as_echo "$ac_file" >&6; }
3551 ac_exeext=$ac_cv_exeext
3552
3553 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3554 ac_clean_files=$ac_clean_files_save
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3556 $as_echo_n "checking for suffix of executables... " >&6; }
3557 if { { ac_try="$ac_link"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563 $as_echo "$ac_try_echo"; } >&5
3564 (eval "$ac_link") 2>&5
3565 ac_status=$?
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }; then :
3568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3570 # work properly (i.e., refer to `conftest.exe'), while it won't with
3571 # `rm'.
3572 for ac_file in conftest.exe conftest conftest.*; do
3573 test -f "$ac_file" || continue
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3577 break;;
3578 * ) break;;
3579 esac
3580 done
3581 else
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 fi
3587 rm -f conftest conftest$ac_cv_exeext
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3589 $as_echo "$ac_cv_exeext" >&6; }
3590
3591 rm -f conftest.$ac_ext
3592 EXEEXT=$ac_cv_exeext
3593 ac_exeext=$EXEEXT
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596 #include <stdio.h>
3597 int
3598 main ()
3599 {
3600 FILE *f = fopen ("conftest.out", "w");
3601 return ferror (f) || fclose (f) != 0;
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 ac_clean_files="$ac_clean_files conftest.out"
3608 # Check that the compiler produces executables we can run. If not, either
3609 # the compiler is broken, or we cross compile.
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3611 $as_echo_n "checking whether we are cross compiling... " >&6; }
3612 if test "$cross_compiling" != yes; then
3613 { { ac_try="$ac_link"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3624 if { ac_try='./conftest$ac_cv_exeext'
3625 { { case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_try") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; }; then
3635 cross_compiling=no
3636 else
3637 if test "$cross_compiling" = maybe; then
3638 cross_compiling=yes
3639 else
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error $? "cannot run C compiled programs.
3643 If you meant to cross compile, use \`--host'.
3644 See \`config.log' for more details" "$LINENO" 5; }
3645 fi
3646 fi
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3649 $as_echo "$cross_compiling" >&6; }
3650
3651 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3652 ac_clean_files=$ac_clean_files_save
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3654 $as_echo_n "checking for suffix of object files... " >&6; }
3655 if ${ac_cv_objext+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660
3661 int
3662 main ()
3663 {
3664
3665 ;
3666 return 0;
3667 }
3668 _ACEOF
3669 rm -f conftest.o conftest.obj
3670 if { { ac_try="$ac_compile"
3671 case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_compile") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 for ac_file in conftest.o conftest.obj conftest.*; do
3682 test -f "$ac_file" || continue;
3683 case $ac_file in
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3686 break;;
3687 esac
3688 done
3689 else
3690 $as_echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 as_fn_error $? "cannot compute suffix of object files: cannot compile
3696 See \`config.log' for more details" "$LINENO" 5; }
3697 fi
3698 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3701 $as_echo "$ac_cv_objext" >&6; }
3702 OBJEXT=$ac_cv_objext
3703 ac_objext=$OBJEXT
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3705 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3706 if ${ac_cv_c_compiler_gnu+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711
3712 int
3713 main ()
3714 {
3715 #ifndef __GNUC__
3716 choke me
3717 #endif
3718
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_compiler_gnu=yes
3725 else
3726 ac_compiler_gnu=no
3727 fi
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3730
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3734 if test $ac_compiler_gnu = yes; then
3735 GCC=yes
3736 else
3737 GCC=
3738 fi
3739 ac_test_CFLAGS=${CFLAGS+set}
3740 ac_save_CFLAGS=$CFLAGS
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3743 if ${ac_cv_prog_cc_g+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 ac_save_c_werror_flag=$ac_c_werror_flag
3747 ac_c_werror_flag=yes
3748 ac_cv_prog_cc_g=no
3749 CFLAGS="-g"
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752
3753 int
3754 main ()
3755 {
3756
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762 ac_cv_prog_cc_g=yes
3763 else
3764 CFLAGS=""
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767
3768 int
3769 main ()
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777
3778 else
3779 ac_c_werror_flag=$ac_save_c_werror_flag
3780 CFLAGS="-g"
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783
3784 int
3785 main ()
3786 {
3787
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_cv_prog_cc_g=yes
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 ac_c_werror_flag=$ac_save_c_werror_flag
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3803 $as_echo "$ac_cv_prog_cc_g" >&6; }
3804 if test "$ac_test_CFLAGS" = set; then
3805 CFLAGS=$ac_save_CFLAGS
3806 elif test $ac_cv_prog_cc_g = yes; then
3807 if test "$GCC" = yes; then
3808 CFLAGS="-g -O2"
3809 else
3810 CFLAGS="-g"
3811 fi
3812 else
3813 if test "$GCC" = yes; then
3814 CFLAGS="-O2"
3815 else
3816 CFLAGS=
3817 fi
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3821 if ${ac_cv_prog_cc_c89+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 ac_cv_prog_cc_c89=no
3825 ac_save_CC=$CC
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828 #include <stdarg.h>
3829 #include <stdio.h>
3830 struct stat;
3831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3832 struct buf { int x; };
3833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3834 static char *e (p, i)
3835 char **p;
3836 int i;
3837 {
3838 return p[i];
3839 }
3840 static char *f (char * (*g) (char **, int), char **p, ...)
3841 {
3842 char *s;
3843 va_list v;
3844 va_start (v,p);
3845 s = g (p, va_arg (v,int));
3846 va_end (v);
3847 return s;
3848 }
3849
3850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3851 function prototypes and stuff, but not '\xHH' hex character constants.
3852 These don't provoke an error unfortunately, instead are silently treated
3853 as 'x'. The following induces an error, until -std is added to get
3854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3855 array size at least. It's necessary to write '\x00'==0 to get something
3856 that's true only with -std. */
3857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3858
3859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3860 inside strings and character constants. */
3861 #define FOO(x) 'x'
3862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3863
3864 int test (int i, double x);
3865 struct s1 {int (*f) (int a);};
3866 struct s2 {int (*f) (double a);};
3867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3868 int argc;
3869 char **argv;
3870 int
3871 main ()
3872 {
3873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3874 ;
3875 return 0;
3876 }
3877 _ACEOF
3878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3880 do
3881 CC="$ac_save_CC $ac_arg"
3882 if ac_fn_c_try_compile "$LINENO"; then :
3883 ac_cv_prog_cc_c89=$ac_arg
3884 fi
3885 rm -f core conftest.err conftest.$ac_objext
3886 test "x$ac_cv_prog_cc_c89" != "xno" && break
3887 done
3888 rm -f conftest.$ac_ext
3889 CC=$ac_save_CC
3890
3891 fi
3892 # AC_CACHE_VAL
3893 case "x$ac_cv_prog_cc_c89" in
3894 x)
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3896 $as_echo "none needed" >&6; } ;;
3897 xno)
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3899 $as_echo "unsupported" >&6; } ;;
3900 *)
3901 CC="$CC $ac_cv_prog_cc_c89"
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3904 esac
3905 if test "x$ac_cv_prog_cc_c89" != xno; then :
3906
3907 fi
3908
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3921 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3922 if ${am_cv_prog_cc_c_o+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927
3928 int
3929 main ()
3930 {
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 # Make sure it works both with $CC and with simple cc.
3937 # Following AC_PROG_CC_C_O, we do the test twice because some
3938 # compilers refuse to overwrite an existing .o file with -o,
3939 # though they will create one.
3940 am_cv_prog_cc_c_o=yes
3941 for am_i in 1 2; do
3942 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3943 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } \
3947 && test -f conftest2.$ac_objext; then
3948 : OK
3949 else
3950 am_cv_prog_cc_c_o=no
3951 break
3952 fi
3953 done
3954 rm -f core conftest*
3955 unset am_i
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3958 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3959 if test "$am_cv_prog_cc_c_o" != yes; then
3960 # Losing compiler, so override with the script.
3961 # FIXME: It is wrong to rewrite CC.
3962 # But if we don't then we get into trouble of one sort or another.
3963 # A longer-term fix would be to have automake use am__CC in this case,
3964 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3965 CC="$am_aux_dir/compile $CC"
3966 fi
3967 ac_ext=c
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972
3973
3974 depcc="$CC" am_compiler_list=
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3977 $as_echo_n "checking dependency style of $depcc... " >&6; }
3978 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3982 # We make a subdir and do the tests there. Otherwise we can end up
3983 # making bogus files that we don't know about and never remove. For
3984 # instance it was reported that on HP-UX the gcc test will end up
3985 # making a dummy file named 'D' -- because '-MD' means "put the output
3986 # in D".
3987 rm -rf conftest.dir
3988 mkdir conftest.dir
3989 # Copy depcomp to subdir because otherwise we won't find it if we're
3990 # using a relative directory.
3991 cp "$am_depcomp" conftest.dir
3992 cd conftest.dir
3993 # We will build objects and dependencies in a subdirectory because
3994 # it helps to detect inapplicable dependency modes. For instance
3995 # both Tru64's cc and ICC support -MD to output dependencies as a
3996 # side effect of compilation, but ICC will put the dependencies in
3997 # the current directory while Tru64 will put them in the object
3998 # directory.
3999 mkdir sub
4000
4001 am_cv_CC_dependencies_compiler_type=none
4002 if test "$am_compiler_list" = ""; then
4003 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4004 fi
4005 am__universal=false
4006 case " $depcc " in #(
4007 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4008 esac
4009
4010 for depmode in $am_compiler_list; do
4011 # Setup a source with many dependencies, because some compilers
4012 # like to wrap large dependency lists on column 80 (with \), and
4013 # we should not choose a depcomp mode which is confused by this.
4014 #
4015 # We need to recreate these files for each test, as the compiler may
4016 # overwrite some of them when testing with obscure command lines.
4017 # This happens at least with the AIX C compiler.
4018 : > sub/conftest.c
4019 for i in 1 2 3 4 5 6; do
4020 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4021 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4022 # Solaris 10 /bin/sh.
4023 echo '/* dummy */' > sub/conftst$i.h
4024 done
4025 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4026
4027 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4028 # mode. It turns out that the SunPro C++ compiler does not properly
4029 # handle '-M -o', and we need to detect this. Also, some Intel
4030 # versions had trouble with output in subdirs.
4031 am__obj=sub/conftest.${OBJEXT-o}
4032 am__minus_obj="-o $am__obj"
4033 case $depmode in
4034 gcc)
4035 # This depmode causes a compiler race in universal mode.
4036 test "$am__universal" = false || continue
4037 ;;
4038 nosideeffect)
4039 # After this tag, mechanisms are not by side-effect, so they'll
4040 # only be used when explicitly requested.
4041 if test "x$enable_dependency_tracking" = xyes; then
4042 continue
4043 else
4044 break
4045 fi
4046 ;;
4047 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4048 # This compiler won't grok '-c -o', but also, the minuso test has
4049 # not run yet. These depmodes are late enough in the game, and
4050 # so weak that their functioning should not be impacted.
4051 am__obj=conftest.${OBJEXT-o}
4052 am__minus_obj=
4053 ;;
4054 none) break ;;
4055 esac
4056 if depmode=$depmode \
4057 source=sub/conftest.c object=$am__obj \
4058 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4060 >/dev/null 2>conftest.err &&
4061 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4062 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4063 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4064 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4065 # icc doesn't choke on unknown options, it will just issue warnings
4066 # or remarks (even with -Werror). So we grep stderr for any message
4067 # that says an option was ignored or not supported.
4068 # When given -MP, icc 7.0 and 7.1 complain thusly:
4069 # icc: Command line warning: ignoring option '-M'; no argument required
4070 # The diagnosis changed in icc 8.0:
4071 # icc: Command line remark: option '-MP' not supported
4072 if (grep 'ignoring option' conftest.err ||
4073 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4074 am_cv_CC_dependencies_compiler_type=$depmode
4075 break
4076 fi
4077 fi
4078 done
4079
4080 cd ..
4081 rm -rf conftest.dir
4082 else
4083 am_cv_CC_dependencies_compiler_type=none
4084 fi
4085
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4088 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4089 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4090
4091 if
4092 test "x$enable_dependency_tracking" != xno \
4093 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4094 am__fastdepCC_TRUE=
4095 am__fastdepCC_FALSE='#'
4096 else
4097 am__fastdepCC_TRUE='#'
4098 am__fastdepCC_FALSE=
4099 fi
4100
4101
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4103 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4104 if ${ac_cv_prog_cc_c99+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_cv_prog_cc_c99=no
4108 ac_save_CC=$CC
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #include <stdarg.h>
4112 #include <stdbool.h>
4113 #include <stdlib.h>
4114 #include <wchar.h>
4115 #include <stdio.h>
4116
4117 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4118 #define debug(...) fprintf (stderr, __VA_ARGS__)
4119 #define showlist(...) puts (#__VA_ARGS__)
4120 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4121 static void
4122 test_varargs_macros (void)
4123 {
4124 int x = 1234;
4125 int y = 5678;
4126 debug ("Flag");
4127 debug ("X = %d\n", x);
4128 showlist (The first, second, and third items.);
4129 report (x>y, "x is %d but y is %d", x, y);
4130 }
4131
4132 // Check long long types.
4133 #define BIG64 18446744073709551615ull
4134 #define BIG32 4294967295ul
4135 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4136 #if !BIG_OK
4137 your preprocessor is broken;
4138 #endif
4139 #if BIG_OK
4140 #else
4141 your preprocessor is broken;
4142 #endif
4143 static long long int bignum = -9223372036854775807LL;
4144 static unsigned long long int ubignum = BIG64;
4145
4146 struct incomplete_array
4147 {
4148 int datasize;
4149 double data[];
4150 };
4151
4152 struct named_init {
4153 int number;
4154 const wchar_t *name;
4155 double average;
4156 };
4157
4158 typedef const char *ccp;
4159
4160 static inline int
4161 test_restrict (ccp restrict text)
4162 {
4163 // See if C++-style comments work.
4164 // Iterate through items via the restricted pointer.
4165 // Also check for declarations in for loops.
4166 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4167 continue;
4168 return 0;
4169 }
4170
4171 // Check varargs and va_copy.
4172 static void
4173 test_varargs (const char *format, ...)
4174 {
4175 va_list args;
4176 va_start (args, format);
4177 va_list args_copy;
4178 va_copy (args_copy, args);
4179
4180 const char *str;
4181 int number;
4182 float fnumber;
4183
4184 while (*format)
4185 {
4186 switch (*format++)
4187 {
4188 case 's': // string
4189 str = va_arg (args_copy, const char *);
4190 break;
4191 case 'd': // int
4192 number = va_arg (args_copy, int);
4193 break;
4194 case 'f': // float
4195 fnumber = va_arg (args_copy, double);
4196 break;
4197 default:
4198 break;
4199 }
4200 }
4201 va_end (args_copy);
4202 va_end (args);
4203 }
4204
4205 int
4206 main ()
4207 {
4208
4209 // Check bool.
4210 _Bool success = false;
4211
4212 // Check restrict.
4213 if (test_restrict ("String literal") == 0)
4214 success = true;
4215 char *restrict newvar = "Another string";
4216
4217 // Check varargs.
4218 test_varargs ("s, d' f .", "string", 65, 34.234);
4219 test_varargs_macros ();
4220
4221 // Check flexible array members.
4222 struct incomplete_array *ia =
4223 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4224 ia->datasize = 10;
4225 for (int i = 0; i < ia->datasize; ++i)
4226 ia->data[i] = i * 1.234;
4227
4228 // Check named initializers.
4229 struct named_init ni = {
4230 .number = 34,
4231 .name = L"Test wide string",
4232 .average = 543.34343,
4233 };
4234
4235 ni.number = 58;
4236
4237 int dynamic_array[ni.number];
4238 dynamic_array[ni.number - 1] = 543;
4239
4240 // work around unused variable warnings
4241 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4242 || dynamic_array[ni.number - 1] != 543);
4243
4244 ;
4245 return 0;
4246 }
4247 _ACEOF
4248 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4249 do
4250 CC="$ac_save_CC $ac_arg"
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_prog_cc_c99=$ac_arg
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext
4255 test "x$ac_cv_prog_cc_c99" != "xno" && break
4256 done
4257 rm -f conftest.$ac_ext
4258 CC=$ac_save_CC
4259
4260 fi
4261 # AC_CACHE_VAL
4262 case "x$ac_cv_prog_cc_c99" in
4263 x)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265 $as_echo "none needed" >&6; } ;;
4266 xno)
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4268 $as_echo "unsupported" >&6; } ;;
4269 *)
4270 CC="$CC $ac_cv_prog_cc_c99"
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4272 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4273 esac
4274 if test "x$ac_cv_prog_cc_c99" != xno; then :
4275
4276 fi
4277
4278
4279 case `pwd` in
4280 *\ * | *\ *)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4282 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4283 esac
4284
4285
4286
4287 macro_version='2.4.6'
4288 macro_revision='2.4.6'
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302 ltmain=$ac_aux_dir/ltmain.sh
4303
4304 # Make sure we can run config.sub.
4305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4306 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4309 $as_echo_n "checking build system type... " >&6; }
4310 if ${ac_cv_build+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 ac_build_alias=$build_alias
4314 test "x$ac_build_alias" = x &&
4315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4316 test "x$ac_build_alias" = x &&
4317 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4319 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4323 $as_echo "$ac_cv_build" >&6; }
4324 case $ac_cv_build in
4325 *-*-*) ;;
4326 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4327 esac
4328 build=$ac_cv_build
4329 ac_save_IFS=$IFS; IFS='-'
4330 set x $ac_cv_build
4331 shift
4332 build_cpu=$1
4333 build_vendor=$2
4334 shift; shift
4335 # Remember, the first character of IFS is used to create $*,
4336 # except with old shells:
4337 build_os=$*
4338 IFS=$ac_save_IFS
4339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4343 $as_echo_n "checking host system type... " >&6; }
4344 if ${ac_cv_host+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test "x$host_alias" = x; then
4348 ac_cv_host=$ac_cv_build
4349 else
4350 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4351 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4352 fi
4353
4354 fi
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4356 $as_echo "$ac_cv_host" >&6; }
4357 case $ac_cv_host in
4358 *-*-*) ;;
4359 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4360 esac
4361 host=$ac_cv_host
4362 ac_save_IFS=$IFS; IFS='-'
4363 set x $ac_cv_host
4364 shift
4365 host_cpu=$1
4366 host_vendor=$2
4367 shift; shift
4368 # Remember, the first character of IFS is used to create $*,
4369 # except with old shells:
4370 host_os=$*
4371 IFS=$ac_save_IFS
4372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4373
4374
4375 # Backslashify metacharacters that are still active within
4376 # double-quoted strings.
4377 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4378
4379 # Same as above, but do not quote variable references.
4380 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4381
4382 # Sed substitution to delay expansion of an escaped shell variable in a
4383 # double_quote_subst'ed string.
4384 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4385
4386 # Sed substitution to delay expansion of an escaped single quote.
4387 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4388
4389 # Sed substitution to avoid accidental globbing in evaled expressions
4390 no_glob_subst='s/\*/\\\*/g'
4391
4392 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4393 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4394 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4395
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4397 $as_echo_n "checking how to print strings... " >&6; }
4398 # Test print first, because it will be a builtin if present.
4399 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4400 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4401 ECHO='print -r --'
4402 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4403 ECHO='printf %s\n'
4404 else
4405 # Use this function as a fallback that always works.
4406 func_fallback_echo ()
4407 {
4408 eval 'cat <<_LTECHO_EOF
4409 $1
4410 _LTECHO_EOF'
4411 }
4412 ECHO='func_fallback_echo'
4413 fi
4414
4415 # func_echo_all arg...
4416 # Invoke $ECHO with all args, space-separated.
4417 func_echo_all ()
4418 {
4419 $ECHO ""
4420 }
4421
4422 case $ECHO in
4423 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4424 $as_echo "printf" >&6; } ;;
4425 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4426 $as_echo "print -r" >&6; } ;;
4427 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4428 $as_echo "cat" >&6; } ;;
4429 esac
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4445 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4446 if ${ac_cv_path_SED+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4450 for ac_i in 1 2 3 4 5 6 7; do
4451 ac_script="$ac_script$as_nl$ac_script"
4452 done
4453 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4454 { ac_script=; unset ac_script;}
4455 if test -z "$SED"; then
4456 ac_path_SED_found=false
4457 # Loop through the user's path and test for each of PROGNAME-LIST
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_prog in sed gsed; do
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4466 as_fn_executable_p "$ac_path_SED" || continue
4467 # Check for GNU ac_path_SED and select it if it is found.
4468 # Check for GNU $ac_path_SED
4469 case `"$ac_path_SED" --version 2>&1` in
4470 *GNU*)
4471 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4472 *)
4473 ac_count=0
4474 $as_echo_n 0123456789 >"conftest.in"
4475 while :
4476 do
4477 cat "conftest.in" "conftest.in" >"conftest.tmp"
4478 mv "conftest.tmp" "conftest.in"
4479 cp "conftest.in" "conftest.nl"
4480 $as_echo '' >> "conftest.nl"
4481 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483 as_fn_arith $ac_count + 1 && ac_count=$as_val
4484 if test $ac_count -gt ${ac_path_SED_max-0}; then
4485 # Best one so far, save it but keep looking for a better one
4486 ac_cv_path_SED="$ac_path_SED"
4487 ac_path_SED_max=$ac_count
4488 fi
4489 # 10*(2^10) chars as input seems more than enough
4490 test $ac_count -gt 10 && break
4491 done
4492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 esac
4494
4495 $ac_path_SED_found && break 3
4496 done
4497 done
4498 done
4499 IFS=$as_save_IFS
4500 if test -z "$ac_cv_path_SED"; then
4501 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4502 fi
4503 else
4504 ac_cv_path_SED=$SED
4505 fi
4506
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4509 $as_echo "$ac_cv_path_SED" >&6; }
4510 SED="$ac_cv_path_SED"
4511 rm -f conftest.sed
4512
4513 test -z "$SED" && SED=sed
4514 Xsed="$SED -e 1s/^X//"
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4527 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4528 if ${ac_cv_path_GREP+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 if test -z "$GREP"; then
4532 ac_path_GREP_found=false
4533 # Loop through the user's path and test for each of PROGNAME-LIST
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4536 do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_prog in grep ggrep; do
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4542 as_fn_executable_p "$ac_path_GREP" || continue
4543 # Check for GNU ac_path_GREP and select it if it is found.
4544 # Check for GNU $ac_path_GREP
4545 case `"$ac_path_GREP" --version 2>&1` in
4546 *GNU*)
4547 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4548 *)
4549 ac_count=0
4550 $as_echo_n 0123456789 >"conftest.in"
4551 while :
4552 do
4553 cat "conftest.in" "conftest.in" >"conftest.tmp"
4554 mv "conftest.tmp" "conftest.in"
4555 cp "conftest.in" "conftest.nl"
4556 $as_echo 'GREP' >> "conftest.nl"
4557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4559 as_fn_arith $ac_count + 1 && ac_count=$as_val
4560 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4561 # Best one so far, save it but keep looking for a better one
4562 ac_cv_path_GREP="$ac_path_GREP"
4563 ac_path_GREP_max=$ac_count
4564 fi
4565 # 10*(2^10) chars as input seems more than enough
4566 test $ac_count -gt 10 && break
4567 done
4568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4569 esac
4570
4571 $ac_path_GREP_found && break 3
4572 done
4573 done
4574 done
4575 IFS=$as_save_IFS
4576 if test -z "$ac_cv_path_GREP"; then
4577 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4578 fi
4579 else
4580 ac_cv_path_GREP=$GREP
4581 fi
4582
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4585 $as_echo "$ac_cv_path_GREP" >&6; }
4586 GREP="$ac_cv_path_GREP"
4587
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4590 $as_echo_n "checking for egrep... " >&6; }
4591 if ${ac_cv_path_EGREP+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4595 then ac_cv_path_EGREP="$GREP -E"
4596 else
4597 if test -z "$EGREP"; then
4598 ac_path_EGREP_found=false
4599 # Loop through the user's path and test for each of PROGNAME-LIST
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_prog in egrep; do
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4608 as_fn_executable_p "$ac_path_EGREP" || continue
4609 # Check for GNU ac_path_EGREP and select it if it is found.
4610 # Check for GNU $ac_path_EGREP
4611 case `"$ac_path_EGREP" --version 2>&1` in
4612 *GNU*)
4613 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4614 *)
4615 ac_count=0
4616 $as_echo_n 0123456789 >"conftest.in"
4617 while :
4618 do
4619 cat "conftest.in" "conftest.in" >"conftest.tmp"
4620 mv "conftest.tmp" "conftest.in"
4621 cp "conftest.in" "conftest.nl"
4622 $as_echo 'EGREP' >> "conftest.nl"
4623 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4625 as_fn_arith $ac_count + 1 && ac_count=$as_val
4626 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4627 # Best one so far, save it but keep looking for a better one
4628 ac_cv_path_EGREP="$ac_path_EGREP"
4629 ac_path_EGREP_max=$ac_count
4630 fi
4631 # 10*(2^10) chars as input seems more than enough
4632 test $ac_count -gt 10 && break
4633 done
4634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 esac
4636
4637 $ac_path_EGREP_found && break 3
4638 done
4639 done
4640 done
4641 IFS=$as_save_IFS
4642 if test -z "$ac_cv_path_EGREP"; then
4643 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 fi
4645 else
4646 ac_cv_path_EGREP=$EGREP
4647 fi
4648
4649 fi
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4652 $as_echo "$ac_cv_path_EGREP" >&6; }
4653 EGREP="$ac_cv_path_EGREP"
4654
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4657 $as_echo_n "checking for fgrep... " >&6; }
4658 if ${ac_cv_path_FGREP+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4662 then ac_cv_path_FGREP="$GREP -F"
4663 else
4664 if test -z "$FGREP"; then
4665 ac_path_FGREP_found=false
4666 # Loop through the user's path and test for each of PROGNAME-LIST
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669 do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_prog in fgrep; do
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4675 as_fn_executable_p "$ac_path_FGREP" || continue
4676 # Check for GNU ac_path_FGREP and select it if it is found.
4677 # Check for GNU $ac_path_FGREP
4678 case `"$ac_path_FGREP" --version 2>&1` in
4679 *GNU*)
4680 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4681 *)
4682 ac_count=0
4683 $as_echo_n 0123456789 >"conftest.in"
4684 while :
4685 do
4686 cat "conftest.in" "conftest.in" >"conftest.tmp"
4687 mv "conftest.tmp" "conftest.in"
4688 cp "conftest.in" "conftest.nl"
4689 $as_echo 'FGREP' >> "conftest.nl"
4690 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692 as_fn_arith $ac_count + 1 && ac_count=$as_val
4693 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4694 # Best one so far, save it but keep looking for a better one
4695 ac_cv_path_FGREP="$ac_path_FGREP"
4696 ac_path_FGREP_max=$ac_count
4697 fi
4698 # 10*(2^10) chars as input seems more than enough
4699 test $ac_count -gt 10 && break
4700 done
4701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702 esac
4703
4704 $ac_path_FGREP_found && break 3
4705 done
4706 done
4707 done
4708 IFS=$as_save_IFS
4709 if test -z "$ac_cv_path_FGREP"; then
4710 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4711 fi
4712 else
4713 ac_cv_path_FGREP=$FGREP
4714 fi
4715
4716 fi
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4719 $as_echo "$ac_cv_path_FGREP" >&6; }
4720 FGREP="$ac_cv_path_FGREP"
4721
4722
4723 test -z "$GREP" && GREP=grep
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743 # Check whether --with-gnu-ld was given.
4744 if test "${with_gnu_ld+set}" = set; then :
4745 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4746 else
4747 with_gnu_ld=no
4748 fi
4749
4750 ac_prog=ld
4751 if test yes = "$GCC"; then
4752 # Check if gcc -print-prog-name=ld gives a path.
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4754 $as_echo_n "checking for ld used by $CC... " >&6; }
4755 case $host in
4756 *-*-mingw*)
4757 # gcc leaves a trailing carriage return, which upsets mingw
4758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4759 *)
4760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4761 esac
4762 case $ac_prog in
4763 # Accept absolute paths.
4764 [\\/]* | ?:[\\/]*)
4765 re_direlt='/[^/][^/]*/\.\./'
4766 # Canonicalize the pathname of ld
4767 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4768 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4769 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4770 done
4771 test -z "$LD" && LD=$ac_prog
4772 ;;
4773 "")
4774 # If it fails, then pretend we aren't using GCC.
4775 ac_prog=ld
4776 ;;
4777 *)
4778 # If it is relative, then search for the first ld in PATH.
4779 with_gnu_ld=unknown
4780 ;;
4781 esac
4782 elif test yes = "$with_gnu_ld"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4784 $as_echo_n "checking for GNU ld... " >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4787 $as_echo_n "checking for non-GNU ld... " >&6; }
4788 fi
4789 if ${lt_cv_path_LD+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 if test -z "$LD"; then
4793 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4794 for ac_dir in $PATH; do
4795 IFS=$lt_save_ifs
4796 test -z "$ac_dir" && ac_dir=.
4797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4798 lt_cv_path_LD=$ac_dir/$ac_prog
4799 # Check to see if the program is GNU ld. I'd rather use --version,
4800 # but apparently some variants of GNU ld only accept -v.
4801 # Break only if it was the GNU/non-GNU ld that we prefer.
4802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4803 *GNU* | *'with BFD'*)
4804 test no != "$with_gnu_ld" && break
4805 ;;
4806 *)
4807 test yes != "$with_gnu_ld" && break
4808 ;;
4809 esac
4810 fi
4811 done
4812 IFS=$lt_save_ifs
4813 else
4814 lt_cv_path_LD=$LD # Let the user override the test with a path.
4815 fi
4816 fi
4817
4818 LD=$lt_cv_path_LD
4819 if test -n "$LD"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4821 $as_echo "$LD" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4828 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4829 if ${lt_cv_prog_gnu_ld+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4833 case `$LD -v 2>&1 </dev/null` in
4834 *GNU* | *'with BFD'*)
4835 lt_cv_prog_gnu_ld=yes
4836 ;;
4837 *)
4838 lt_cv_prog_gnu_ld=no
4839 ;;
4840 esac
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4843 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4844 with_gnu_ld=$lt_cv_prog_gnu_ld
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4855 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4856 if ${lt_cv_path_NM+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$NM"; then
4860 # Let the user override the test.
4861 lt_cv_path_NM=$NM
4862 else
4863 lt_nm_to_check=${ac_tool_prefix}nm
4864 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4865 lt_nm_to_check="$lt_nm_to_check nm"
4866 fi
4867 for lt_tmp_nm in $lt_nm_to_check; do
4868 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4869 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4870 IFS=$lt_save_ifs
4871 test -z "$ac_dir" && ac_dir=.
4872 tmp_nm=$ac_dir/$lt_tmp_nm
4873 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4874 # Check to see if the nm accepts a BSD-compat flag.
4875 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4876 # nm: unknown option "B" ignored
4877 # Tru64's nm complains that /dev/null is an invalid object file
4878 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4879 case $build_os in
4880 mingw*) lt_bad_file=conftest.nm/nofile ;;
4881 *) lt_bad_file=/dev/null ;;
4882 esac
4883 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4884 *$lt_bad_file* | *'Invalid file or object type'*)
4885 lt_cv_path_NM="$tmp_nm -B"
4886 break 2
4887 ;;
4888 *)
4889 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4890 */dev/null*)
4891 lt_cv_path_NM="$tmp_nm -p"
4892 break 2
4893 ;;
4894 *)
4895 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4896 continue # so that we can try to find one that supports BSD flags
4897 ;;
4898 esac
4899 ;;
4900 esac
4901 fi
4902 done
4903 IFS=$lt_save_ifs
4904 done
4905 : ${lt_cv_path_NM=no}
4906 fi
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4909 $as_echo "$lt_cv_path_NM" >&6; }
4910 if test no != "$lt_cv_path_NM"; then
4911 NM=$lt_cv_path_NM
4912 else
4913 # Didn't find any BSD compatible name lister, look for dumpbin.
4914 if test -n "$DUMPBIN"; then :
4915 # Let the user override the test.
4916 else
4917 if test -n "$ac_tool_prefix"; then
4918 for ac_prog in dumpbin "link -dump"
4919 do
4920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if ${ac_cv_prog_DUMPBIN+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -n "$DUMPBIN"; then
4928 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4940 fi
4941 done
4942 done
4943 IFS=$as_save_IFS
4944
4945 fi
4946 fi
4947 DUMPBIN=$ac_cv_prog_DUMPBIN
4948 if test -n "$DUMPBIN"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4950 $as_echo "$DUMPBIN" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4954 fi
4955
4956
4957 test -n "$DUMPBIN" && break
4958 done
4959 fi
4960 if test -z "$DUMPBIN"; then
4961 ac_ct_DUMPBIN=$DUMPBIN
4962 for ac_prog in dumpbin "link -dump"
4963 do
4964 # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy $ac_prog; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$ac_ct_DUMPBIN"; then
4972 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989 fi
4990 fi
4991 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4992 if test -n "$ac_ct_DUMPBIN"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4994 $as_echo "$ac_ct_DUMPBIN" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000
5001 test -n "$ac_ct_DUMPBIN" && break
5002 done
5003
5004 if test "x$ac_ct_DUMPBIN" = x; then
5005 DUMPBIN=":"
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008 yes:)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011 ac_tool_warned=yes ;;
5012 esac
5013 DUMPBIN=$ac_ct_DUMPBIN
5014 fi
5015 fi
5016
5017 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5018 *COFF*)
5019 DUMPBIN="$DUMPBIN -symbols -headers"
5020 ;;
5021 *)
5022 DUMPBIN=:
5023 ;;
5024 esac
5025 fi
5026
5027 if test : != "$DUMPBIN"; then
5028 NM=$DUMPBIN
5029 fi
5030 fi
5031 test -z "$NM" && NM=nm
5032
5033
5034
5035
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5039 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5040 if ${lt_cv_nm_interface+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 lt_cv_nm_interface="BSD nm"
5044 echo "int some_variable = 0;" > conftest.$ac_ext
5045 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5046 (eval "$ac_compile" 2>conftest.err)
5047 cat conftest.err >&5
5048 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5049 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5050 cat conftest.err >&5
5051 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5052 cat conftest.out >&5
5053 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5054 lt_cv_nm_interface="MS dumpbin"
5055 fi
5056 rm -f conftest*
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5059 $as_echo "$lt_cv_nm_interface" >&6; }
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5062 $as_echo_n "checking whether ln -s works... " >&6; }
5063 LN_S=$as_ln_s
5064 if test "$LN_S" = "ln -s"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066 $as_echo "yes" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5069 $as_echo "no, using $LN_S" >&6; }
5070 fi
5071
5072 # find the maximum length of command line arguments
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5074 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5075 if ${lt_cv_sys_max_cmd_len+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 i=0
5079 teststring=ABCD
5080
5081 case $build_os in
5082 msdosdjgpp*)
5083 # On DJGPP, this test can blow up pretty badly due to problems in libc
5084 # (any single argument exceeding 2000 bytes causes a buffer overrun
5085 # during glob expansion). Even if it were fixed, the result of this
5086 # check would be larger than it should be.
5087 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5088 ;;
5089
5090 gnu*)
5091 # Under GNU Hurd, this test is not required because there is
5092 # no limit to the length of command line arguments.
5093 # Libtool will interpret -1 as no limit whatsoever
5094 lt_cv_sys_max_cmd_len=-1;
5095 ;;
5096
5097 cygwin* | mingw* | cegcc*)
5098 # On Win9x/ME, this test blows up -- it succeeds, but takes
5099 # about 5 minutes as the teststring grows exponentially.
5100 # Worse, since 9x/ME are not pre-emptively multitasking,
5101 # you end up with a "frozen" computer, even though with patience
5102 # the test eventually succeeds (with a max line length of 256k).
5103 # Instead, let's just punt: use the minimum linelength reported by
5104 # all of the supported platforms: 8192 (on NT/2K/XP).
5105 lt_cv_sys_max_cmd_len=8192;
5106 ;;
5107
5108 mint*)
5109 # On MiNT this can take a long time and run out of memory.
5110 lt_cv_sys_max_cmd_len=8192;
5111 ;;
5112
5113 amigaos*)
5114 # On AmigaOS with pdksh, this test takes hours, literally.
5115 # So we just punt and use a minimum line length of 8192.
5116 lt_cv_sys_max_cmd_len=8192;
5117 ;;
5118
5119 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5120 # This has been around since 386BSD, at least. Likely further.
5121 if test -x /sbin/sysctl; then
5122 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5123 elif test -x /usr/sbin/sysctl; then
5124 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5125 else
5126 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5127 fi
5128 # And add a safety zone
5129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5131 ;;
5132
5133 interix*)
5134 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5135 lt_cv_sys_max_cmd_len=196608
5136 ;;
5137
5138 os2*)
5139 # The test takes a long time on OS/2.
5140 lt_cv_sys_max_cmd_len=8192
5141 ;;
5142
5143 osf*)
5144 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5145 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5146 # nice to cause kernel panics so lets avoid the loop below.
5147 # First set a reasonable default.
5148 lt_cv_sys_max_cmd_len=16384
5149 #
5150 if test -x /sbin/sysconfig; then
5151 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5152 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5153 esac
5154 fi
5155 ;;
5156 sco3.2v5*)
5157 lt_cv_sys_max_cmd_len=102400
5158 ;;
5159 sysv5* | sco5v6* | sysv4.2uw2*)
5160 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5161 if test -n "$kargmax"; then
5162 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5163 else
5164 lt_cv_sys_max_cmd_len=32768
5165 fi
5166 ;;
5167 *)
5168 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5169 if test -n "$lt_cv_sys_max_cmd_len" && \
5170 test undefined != "$lt_cv_sys_max_cmd_len"; then
5171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5173 else
5174 # Make teststring a little bigger before we do anything with it.
5175 # a 1K string should be a reasonable start.
5176 for i in 1 2 3 4 5 6 7 8; do
5177 teststring=$teststring$teststring
5178 done
5179 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5180 # If test is not a shell built-in, we'll probably end up computing a
5181 # maximum length that is only half of the actual maximum length, but
5182 # we can't tell.
5183 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5184 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5185 test 17 != "$i" # 1/2 MB should be enough
5186 do
5187 i=`expr $i + 1`
5188 teststring=$teststring$teststring
5189 done
5190 # Only check the string length outside the loop.
5191 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5192 teststring=
5193 # Add a significant safety factor because C++ compilers can tack on
5194 # massive amounts of additional arguments before passing them to the
5195 # linker. It appears as though 1/2 is a usable value.
5196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5197 fi
5198 ;;
5199 esac
5200
5201 fi
5202
5203 if test -n "$lt_cv_sys_max_cmd_len"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5205 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5208 $as_echo "none" >&6; }
5209 fi
5210 max_cmd_len=$lt_cv_sys_max_cmd_len
5211
5212
5213
5214
5215
5216
5217 : ${CP="cp -f"}
5218 : ${MV="mv -f"}
5219 : ${RM="rm -f"}
5220
5221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5222 lt_unset=unset
5223 else
5224 lt_unset=false
5225 fi
5226
5227
5228
5229
5230
5231 # test EBCDIC or ASCII
5232 case `echo X|tr X '\101'` in
5233 A) # ASCII based system
5234 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5235 lt_SP2NL='tr \040 \012'
5236 lt_NL2SP='tr \015\012 \040\040'
5237 ;;
5238 *) # EBCDIC based system
5239 lt_SP2NL='tr \100 \n'
5240 lt_NL2SP='tr \r\n \100\100'
5241 ;;
5242 esac
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5253 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5254 if ${lt_cv_to_host_file_cmd+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 case $host in
5258 *-*-mingw* )
5259 case $build in
5260 *-*-mingw* ) # actually msys
5261 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5262 ;;
5263 *-*-cygwin* )
5264 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5265 ;;
5266 * ) # otherwise, assume *nix
5267 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5268 ;;
5269 esac
5270 ;;
5271 *-*-cygwin* )
5272 case $build in
5273 *-*-mingw* ) # actually msys
5274 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5275 ;;
5276 *-*-cygwin* )
5277 lt_cv_to_host_file_cmd=func_convert_file_noop
5278 ;;
5279 * ) # otherwise, assume *nix
5280 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5281 ;;
5282 esac
5283 ;;
5284 * ) # unhandled hosts (and "normal" native builds)
5285 lt_cv_to_host_file_cmd=func_convert_file_noop
5286 ;;
5287 esac
5288
5289 fi
5290
5291 to_host_file_cmd=$lt_cv_to_host_file_cmd
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5293 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5294
5295
5296
5297
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5300 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5301 if ${lt_cv_to_tool_file_cmd+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 #assume ordinary cross tools, or native build.
5305 lt_cv_to_tool_file_cmd=func_convert_file_noop
5306 case $host in
5307 *-*-mingw* )
5308 case $build in
5309 *-*-mingw* ) # actually msys
5310 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5311 ;;
5312 esac
5313 ;;
5314 esac
5315
5316 fi
5317
5318 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5320 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5321
5322
5323
5324
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5327 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5328 if ${lt_cv_ld_reload_flag+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 lt_cv_ld_reload_flag='-r'
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5334 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5335 reload_flag=$lt_cv_ld_reload_flag
5336 case $reload_flag in
5337 "" | " "*) ;;
5338 *) reload_flag=" $reload_flag" ;;
5339 esac
5340 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5341 case $host_os in
5342 cygwin* | mingw* | pw32* | cegcc*)
5343 if test yes != "$GCC"; then
5344 reload_cmds=false
5345 fi
5346 ;;
5347 darwin*)
5348 if test yes = "$GCC"; then
5349 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5350 else
5351 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5352 fi
5353 ;;
5354 esac
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364 if test -n "$ac_tool_prefix"; then
5365 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5366 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_OBJDUMP+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$OBJDUMP"; then
5373 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5385 fi
5386 done
5387 done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 OBJDUMP=$ac_cv_prog_OBJDUMP
5393 if test -n "$OBJDUMP"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5395 $as_echo "$OBJDUMP" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401
5402 fi
5403 if test -z "$ac_cv_prog_OBJDUMP"; then
5404 ac_ct_OBJDUMP=$OBJDUMP
5405 # Extract the first word of "objdump", so it can be a program name with args.
5406 set dummy objdump; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$ac_ct_OBJDUMP"; then
5413 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5433 if test -n "$ac_ct_OBJDUMP"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5435 $as_echo "$ac_ct_OBJDUMP" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441 if test "x$ac_ct_OBJDUMP" = x; then
5442 OBJDUMP="false"
5443 else
5444 case $cross_compiling:$ac_tool_warned in
5445 yes:)
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450 OBJDUMP=$ac_ct_OBJDUMP
5451 fi
5452 else
5453 OBJDUMP="$ac_cv_prog_OBJDUMP"
5454 fi
5455
5456 test -z "$OBJDUMP" && OBJDUMP=objdump
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5467 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5468 if ${lt_cv_deplibs_check_method+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 lt_cv_file_magic_cmd='$MAGIC_CMD'
5472 lt_cv_file_magic_test_file=
5473 lt_cv_deplibs_check_method='unknown'
5474 # Need to set the preceding variable on all platforms that support
5475 # interlibrary dependencies.
5476 # 'none' -- dependencies not supported.
5477 # 'unknown' -- same as none, but documents that we really don't know.
5478 # 'pass_all' -- all dependencies passed with no checks.
5479 # 'test_compile' -- check by making test program.
5480 # 'file_magic [[regex]]' -- check by looking for files in library path
5481 # that responds to the $file_magic_cmd with a given extended regex.
5482 # If you have 'file' or equivalent on your system and you're not sure
5483 # whether 'pass_all' will *always* work, you probably want this one.
5484
5485 case $host_os in
5486 aix[4-9]*)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489
5490 beos*)
5491 lt_cv_deplibs_check_method=pass_all
5492 ;;
5493
5494 bsdi[45]*)
5495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5496 lt_cv_file_magic_cmd='/usr/bin/file -L'
5497 lt_cv_file_magic_test_file=/shlib/libc.so
5498 ;;
5499
5500 cygwin*)
5501 # func_win32_libid is a shell function defined in ltmain.sh
5502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5503 lt_cv_file_magic_cmd='func_win32_libid'
5504 ;;
5505
5506 mingw* | pw32*)
5507 # Base MSYS/MinGW do not provide the 'file' command needed by
5508 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5509 # unless we find 'file', for example because we are cross-compiling.
5510 if ( file / ) >/dev/null 2>&1; then
5511 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5512 lt_cv_file_magic_cmd='func_win32_libid'
5513 else
5514 # Keep this pattern in sync with the one in func_win32_libid.
5515 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5516 lt_cv_file_magic_cmd='$OBJDUMP -f'
5517 fi
5518 ;;
5519
5520 cegcc*)
5521 # use the weaker test based on 'objdump'. See mingw*.
5522 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5523 lt_cv_file_magic_cmd='$OBJDUMP -f'
5524 ;;
5525
5526 darwin* | rhapsody*)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529
5530 freebsd* | dragonfly*)
5531 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5532 case $host_cpu in
5533 i*86 )
5534 # Not sure whether the presence of OpenBSD here was a mistake.
5535 # Let's accept both of them until this is cleared up.
5536 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5537 lt_cv_file_magic_cmd=/usr/bin/file
5538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5539 ;;
5540 esac
5541 else
5542 lt_cv_deplibs_check_method=pass_all
5543 fi
5544 ;;
5545
5546 haiku*)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
5549
5550 hpux10.20* | hpux11*)
5551 lt_cv_file_magic_cmd=/usr/bin/file
5552 case $host_cpu in
5553 ia64*)
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5555 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5556 ;;
5557 hppa*64*)
5558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5559 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5560 ;;
5561 *)
5562 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5563 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5564 ;;
5565 esac
5566 ;;
5567
5568 interix[3-9]*)
5569 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5571 ;;
5572
5573 irix5* | irix6* | nonstopux*)
5574 case $LD in
5575 *-32|*"-32 ") libmagic=32-bit;;
5576 *-n32|*"-n32 ") libmagic=N32;;
5577 *-64|*"-64 ") libmagic=64-bit;;
5578 *) libmagic=never-match;;
5579 esac
5580 lt_cv_deplibs_check_method=pass_all
5581 ;;
5582
5583 # This must be glibc/ELF.
5584 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5585 lt_cv_deplibs_check_method=pass_all
5586 ;;
5587
5588 netbsd*)
5589 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5591 else
5592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5593 fi
5594 ;;
5595
5596 newos6*)
5597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5598 lt_cv_file_magic_cmd=/usr/bin/file
5599 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5600 ;;
5601
5602 *nto* | *qnx*)
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
5605
5606 openbsd* | bitrig*)
5607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5609 else
5610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5611 fi
5612 ;;
5613
5614 osf3* | osf4* | osf5*)
5615 lt_cv_deplibs_check_method=pass_all
5616 ;;
5617
5618 rdos*)
5619 lt_cv_deplibs_check_method=pass_all
5620 ;;
5621
5622 solaris*)
5623 lt_cv_deplibs_check_method=pass_all
5624 ;;
5625
5626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629
5630 sysv4 | sysv4.3*)
5631 case $host_vendor in
5632 motorola)
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5635 ;;
5636 ncr)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639 sequent)
5640 lt_cv_file_magic_cmd='/bin/file'
5641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5642 ;;
5643 sni)
5644 lt_cv_file_magic_cmd='/bin/file'
5645 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5646 lt_cv_file_magic_test_file=/lib/libc.so
5647 ;;
5648 siemens)
5649 lt_cv_deplibs_check_method=pass_all
5650 ;;
5651 pc)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654 esac
5655 ;;
5656
5657 tpf*)
5658 lt_cv_deplibs_check_method=pass_all
5659 ;;
5660 os2*)
5661 lt_cv_deplibs_check_method=pass_all
5662 ;;
5663 esac
5664
5665 fi
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5667 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5668
5669 file_magic_glob=
5670 want_nocaseglob=no
5671 if test "$build" = "$host"; then
5672 case $host_os in
5673 mingw* | pw32*)
5674 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5675 want_nocaseglob=yes
5676 else
5677 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5678 fi
5679 ;;
5680 esac
5681 fi
5682
5683 file_magic_cmd=$lt_cv_file_magic_cmd
5684 deplibs_check_method=$lt_cv_deplibs_check_method
5685 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 if test -n "$ac_tool_prefix"; then
5709 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5710 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_prog_DLLTOOL+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 if test -n "$DLLTOOL"; then
5717 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730 done
5731 done
5732 IFS=$as_save_IFS
5733
5734 fi
5735 fi
5736 DLLTOOL=$ac_cv_prog_DLLTOOL
5737 if test -n "$DLLTOOL"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5739 $as_echo "$DLLTOOL" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5743 fi
5744
5745
5746 fi
5747 if test -z "$ac_cv_prog_DLLTOOL"; then
5748 ac_ct_DLLTOOL=$DLLTOOL
5749 # Extract the first word of "dlltool", so it can be a program name with args.
5750 set dummy dlltool; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test -n "$ac_ct_DLLTOOL"; then
5757 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 break 2
5769 fi
5770 done
5771 done
5772 IFS=$as_save_IFS
5773
5774 fi
5775 fi
5776 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5777 if test -n "$ac_ct_DLLTOOL"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5779 $as_echo "$ac_ct_DLLTOOL" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5783 fi
5784
5785 if test "x$ac_ct_DLLTOOL" = x; then
5786 DLLTOOL="false"
5787 else
5788 case $cross_compiling:$ac_tool_warned in
5789 yes:)
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792 ac_tool_warned=yes ;;
5793 esac
5794 DLLTOOL=$ac_ct_DLLTOOL
5795 fi
5796 else
5797 DLLTOOL="$ac_cv_prog_DLLTOOL"
5798 fi
5799
5800 test -z "$DLLTOOL" && DLLTOOL=dlltool
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5812 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5813 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 lt_cv_sharedlib_from_linklib_cmd='unknown'
5817
5818 case $host_os in
5819 cygwin* | mingw* | pw32* | cegcc*)
5820 # two different shell functions defined in ltmain.sh;
5821 # decide which one to use based on capabilities of $DLLTOOL
5822 case `$DLLTOOL --help 2>&1` in
5823 *--identify-strict*)
5824 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5825 ;;
5826 *)
5827 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5828 ;;
5829 esac
5830 ;;
5831 *)
5832 # fallback: assume linklib IS sharedlib
5833 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5834 ;;
5835 esac
5836
5837 fi
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5839 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5840 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5841 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5842
5843
5844
5845
5846
5847
5848
5849
5850 if test -n "$ac_tool_prefix"; then
5851 for ac_prog in ar
5852 do
5853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_AR+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -n "$AR"; then
5861 ac_cv_prog_AR="$AR" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 AR=$ac_cv_prog_AR
5881 if test -n "$AR"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5883 $as_echo "$AR" >&6; }
5884 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889
5890 test -n "$AR" && break
5891 done
5892 fi
5893 if test -z "$AR"; then
5894 ac_ct_AR=$AR
5895 for ac_prog in ar
5896 do
5897 # Extract the first word of "$ac_prog", so it can be a program name with args.
5898 set dummy $ac_prog; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$ac_ct_AR"; then
5905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_ac_ct_AR="$ac_prog"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5925 if test -n "$ac_ct_AR"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5927 $as_echo "$ac_ct_AR" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933
5934 test -n "$ac_ct_AR" && break
5935 done
5936
5937 if test "x$ac_ct_AR" = x; then
5938 AR="false"
5939 else
5940 case $cross_compiling:$ac_tool_warned in
5941 yes:)
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5944 ac_tool_warned=yes ;;
5945 esac
5946 AR=$ac_ct_AR
5947 fi
5948 fi
5949
5950 : ${AR=ar}
5951 : ${AR_FLAGS=cru}
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5964 $as_echo_n "checking for archiver @FILE support... " >&6; }
5965 if ${lt_cv_ar_at_file+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 lt_cv_ar_at_file=no
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971
5972 int
5973 main ()
5974 {
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 echo conftest.$ac_objext > conftest.lst
5982 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5984 (eval $lt_ar_try) 2>&5
5985 ac_status=$?
5986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5987 test $ac_status = 0; }
5988 if test 0 -eq "$ac_status"; then
5989 # Ensure the archiver fails upon bogus file names.
5990 rm -f conftest.$ac_objext libconftest.a
5991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5992 (eval $lt_ar_try) 2>&5
5993 ac_status=$?
5994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995 test $ac_status = 0; }
5996 if test 0 -ne "$ac_status"; then
5997 lt_cv_ar_at_file=@
5998 fi
5999 fi
6000 rm -f conftest.* libconftest.a
6001
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6007 $as_echo "$lt_cv_ar_at_file" >&6; }
6008
6009 if test no = "$lt_cv_ar_at_file"; then
6010 archiver_list_spec=
6011 else
6012 archiver_list_spec=$lt_cv_ar_at_file
6013 fi
6014
6015
6016
6017
6018
6019
6020
6021 if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}strip; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_STRIP+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if test -n "$STRIP"; then
6030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 STRIP=$ac_cv_prog_STRIP
6050 if test -n "$STRIP"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6052 $as_echo "$STRIP" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058
6059 fi
6060 if test -z "$ac_cv_prog_STRIP"; then
6061 ac_ct_STRIP=$STRIP
6062 # Extract the first word of "strip", so it can be a program name with args.
6063 set dummy strip; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$ac_ct_STRIP"; then
6070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_ac_ct_STRIP="strip"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6090 if test -n "$ac_ct_STRIP"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6092 $as_echo "$ac_ct_STRIP" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098 if test "x$ac_ct_STRIP" = x; then
6099 STRIP=":"
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107 STRIP=$ac_ct_STRIP
6108 fi
6109 else
6110 STRIP="$ac_cv_prog_STRIP"
6111 fi
6112
6113 test -z "$STRIP" && STRIP=:
6114
6115
6116
6117
6118
6119
6120 if test -n "$ac_tool_prefix"; then
6121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_RANLIB+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$RANLIB"; then
6129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142 done
6143 done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 RANLIB=$ac_cv_prog_RANLIB
6149 if test -n "$RANLIB"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6151 $as_echo "$RANLIB" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157
6158 fi
6159 if test -z "$ac_cv_prog_RANLIB"; then
6160 ac_ct_RANLIB=$RANLIB
6161 # Extract the first word of "ranlib", so it can be a program name with args.
6162 set dummy ranlib; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -n "$ac_ct_RANLIB"; then
6169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178 ac_cv_prog_ac_ct_RANLIB="ranlib"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182 done
6183 done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6189 if test -n "$ac_ct_RANLIB"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6191 $as_echo "$ac_ct_RANLIB" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197 if test "x$ac_ct_RANLIB" = x; then
6198 RANLIB=":"
6199 else
6200 case $cross_compiling:$ac_tool_warned in
6201 yes:)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204 ac_tool_warned=yes ;;
6205 esac
6206 RANLIB=$ac_ct_RANLIB
6207 fi
6208 else
6209 RANLIB="$ac_cv_prog_RANLIB"
6210 fi
6211
6212 test -z "$RANLIB" && RANLIB=:
6213
6214
6215
6216
6217
6218
6219 # Determine commands to create old-style static archives.
6220 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6221 old_postinstall_cmds='chmod 644 $oldlib'
6222 old_postuninstall_cmds=
6223
6224 if test -n "$RANLIB"; then
6225 case $host_os in
6226 bitrig* | openbsd*)
6227 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6228 ;;
6229 *)
6230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6231 ;;
6232 esac
6233 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6234 fi
6235
6236 case $host_os in
6237 darwin*)
6238 lock_old_archive_extraction=yes ;;
6239 *)
6240 lock_old_archive_extraction=no ;;
6241 esac
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 # If no C compiler was specified, use CC.
6282 LTCC=${LTCC-"$CC"}
6283
6284 # If no C compiler flags were specified, use CFLAGS.
6285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6286
6287 # Allow CC to be a program name with arguments.
6288 compiler=$CC
6289
6290
6291 # Check for command to grab the raw symbol name followed by C symbol from nm.
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6293 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6294 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297
6298 # These are sane defaults that work on at least a few old systems.
6299 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6300
6301 # Character class describing NM global symbol codes.
6302 symcode='[BCDEGRST]'
6303
6304 # Regexp to match symbols that can be accessed directly from C.
6305 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6306
6307 # Define system-specific variables.
6308 case $host_os in
6309 aix*)
6310 symcode='[BCDT]'
6311 ;;
6312 cygwin* | mingw* | pw32* | cegcc*)
6313 symcode='[ABCDGISTW]'
6314 ;;
6315 hpux*)
6316 if test ia64 = "$host_cpu"; then
6317 symcode='[ABCDEGRST]'
6318 fi
6319 ;;
6320 irix* | nonstopux*)
6321 symcode='[BCDEGRST]'
6322 ;;
6323 osf*)
6324 symcode='[BCDEGQRST]'
6325 ;;
6326 solaris*)
6327 symcode='[BDRT]'
6328 ;;
6329 sco3.2v5*)
6330 symcode='[DT]'
6331 ;;
6332 sysv4.2uw2*)
6333 symcode='[DT]'
6334 ;;
6335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6336 symcode='[ABDT]'
6337 ;;
6338 sysv4)
6339 symcode='[DFNSTU]'
6340 ;;
6341 esac
6342
6343 # If we're using GNU nm, then use its standard symbol codes.
6344 case `$NM -V 2>&1` in
6345 *GNU* | *'with BFD'*)
6346 symcode='[ABCDGIRSTW]' ;;
6347 esac
6348
6349 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6350 # Gets list of data symbols to import.
6351 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6352 # Adjust the below global symbol transforms to fixup imported variables.
6353 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6354 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6355 lt_c_name_lib_hook="\
6356 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6357 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6358 else
6359 # Disable hooks by default.
6360 lt_cv_sys_global_symbol_to_import=
6361 lt_cdecl_hook=
6362 lt_c_name_hook=
6363 lt_c_name_lib_hook=
6364 fi
6365
6366 # Transform an extracted symbol line into a proper C declaration.
6367 # Some systems (esp. on ia64) link data and code symbols differently,
6368 # so use this general approach.
6369 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6370 $lt_cdecl_hook\
6371 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6372 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6373
6374 # Transform an extracted symbol line into symbol name and symbol address
6375 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6376 $lt_c_name_hook\
6377 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6378 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6379
6380 # Transform an extracted symbol line into symbol name with lib prefix and
6381 # symbol address.
6382 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6383 $lt_c_name_lib_hook\
6384 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6385 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6386 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6387
6388 # Handle CRLF in mingw tool chain
6389 opt_cr=
6390 case $build_os in
6391 mingw*)
6392 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6393 ;;
6394 esac
6395
6396 # Try without a prefix underscore, then with it.
6397 for ac_symprfx in "" "_"; do
6398
6399 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6400 symxfrm="\\1 $ac_symprfx\\2 \\2"
6401
6402 # Write the raw and C identifiers.
6403 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6404 # Fake it for dumpbin and say T for any non-static function,
6405 # D for any global variable and I for any imported variable.
6406 # Also find C++ and __fastcall symbols from MSVC++,
6407 # which start with @ or ?.
6408 lt_cv_sys_global_symbol_pipe="$AWK '"\
6409 " {last_section=section; section=\$ 3};"\
6410 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6411 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6412 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6413 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6414 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6415 " \$ 0!~/External *\|/{next};"\
6416 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6417 " {if(hide[section]) next};"\
6418 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6419 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6420 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6421 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6422 " ' prfx=^$ac_symprfx"
6423 else
6424 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6425 fi
6426 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6427
6428 # Check to see that the pipe works correctly.
6429 pipe_works=no
6430
6431 rm -f conftest*
6432 cat > conftest.$ac_ext <<_LT_EOF
6433 #ifdef __cplusplus
6434 extern "C" {
6435 #endif
6436 char nm_test_var;
6437 void nm_test_func(void);
6438 void nm_test_func(void){}
6439 #ifdef __cplusplus
6440 }
6441 #endif
6442 int main(){nm_test_var='a';nm_test_func();return(0);}
6443 _LT_EOF
6444
6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446 (eval $ac_compile) 2>&5
6447 ac_status=$?
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; }; then
6450 # Now try to grab the symbols.
6451 nlist=conftest.nm
6452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6453 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6454 ac_status=$?
6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; } && test -s "$nlist"; then
6457 # Try sorting and uniquifying the output.
6458 if sort "$nlist" | uniq > "$nlist"T; then
6459 mv -f "$nlist"T "$nlist"
6460 else
6461 rm -f "$nlist"T
6462 fi
6463
6464 # Make sure that we snagged all the symbols we need.
6465 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6466 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6467 cat <<_LT_EOF > conftest.$ac_ext
6468 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6469 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6470 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6471 relocations are performed -- see ld's documentation on pseudo-relocs. */
6472 # define LT_DLSYM_CONST
6473 #elif defined __osf__
6474 /* This system does not cope well with relocations in const data. */
6475 # define LT_DLSYM_CONST
6476 #else
6477 # define LT_DLSYM_CONST const
6478 #endif
6479
6480 #ifdef __cplusplus
6481 extern "C" {
6482 #endif
6483
6484 _LT_EOF
6485 # Now generate the symbol file.
6486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6487
6488 cat <<_LT_EOF >> conftest.$ac_ext
6489
6490 /* The mapping between symbol names and symbols. */
6491 LT_DLSYM_CONST struct {
6492 const char *name;
6493 void *address;
6494 }
6495 lt__PROGRAM__LTX_preloaded_symbols[] =
6496 {
6497 { "@PROGRAM@", (void *) 0 },
6498 _LT_EOF
6499 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6500 cat <<\_LT_EOF >> conftest.$ac_ext
6501 {0, (void *) 0}
6502 };
6503
6504 /* This works around a problem in FreeBSD linker */
6505 #ifdef FREEBSD_WORKAROUND
6506 static const void *lt_preloaded_setup() {
6507 return lt__PROGRAM__LTX_preloaded_symbols;
6508 }
6509 #endif
6510
6511 #ifdef __cplusplus
6512 }
6513 #endif
6514 _LT_EOF
6515 # Now try linking the two files.
6516 mv conftest.$ac_objext conftstm.$ac_objext
6517 lt_globsym_save_LIBS=$LIBS
6518 lt_globsym_save_CFLAGS=$CFLAGS
6519 LIBS=conftstm.$ac_objext
6520 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6522 (eval $ac_link) 2>&5
6523 ac_status=$?
6524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6526 pipe_works=yes
6527 fi
6528 LIBS=$lt_globsym_save_LIBS
6529 CFLAGS=$lt_globsym_save_CFLAGS
6530 else
6531 echo "cannot find nm_test_func in $nlist" >&5
6532 fi
6533 else
6534 echo "cannot find nm_test_var in $nlist" >&5
6535 fi
6536 else
6537 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6538 fi
6539 else
6540 echo "$progname: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6542 fi
6543 rm -rf conftest* conftst*
6544
6545 # Do not use the global_symbol_pipe unless it works.
6546 if test yes = "$pipe_works"; then
6547 break
6548 else
6549 lt_cv_sys_global_symbol_pipe=
6550 fi
6551 done
6552
6553 fi
6554
6555 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6556 lt_cv_sys_global_symbol_to_cdecl=
6557 fi
6558 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6560 $as_echo "failed" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6563 $as_echo "ok" >&6; }
6564 fi
6565
6566 # Response file support.
6567 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6568 nm_file_list_spec='@'
6569 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6570 nm_file_list_spec='@'
6571 fi
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6610 $as_echo_n "checking for sysroot... " >&6; }
6611
6612 # Check whether --with-sysroot was given.
6613 if test "${with_sysroot+set}" = set; then :
6614 withval=$with_sysroot;
6615 else
6616 with_sysroot=no
6617 fi
6618
6619
6620 lt_sysroot=
6621 case $with_sysroot in #(
6622 yes)
6623 if test yes = "$GCC"; then
6624 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6625 fi
6626 ;; #(
6627 /*)
6628 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6629 ;; #(
6630 no|'')
6631 ;; #(
6632 *)
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6634 $as_echo "$with_sysroot" >&6; }
6635 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6636 ;;
6637 esac
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6640 $as_echo "${lt_sysroot:-no}" >&6; }
6641
6642
6643
6644
6645
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6647 $as_echo_n "checking for a working dd... " >&6; }
6648 if ${ac_cv_path_lt_DD+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 printf 0123456789abcdef0123456789abcdef >conftest.i
6652 cat conftest.i conftest.i >conftest2.i
6653 : ${lt_DD:=$DD}
6654 if test -z "$lt_DD"; then
6655 ac_path_lt_DD_found=false
6656 # Loop through the user's path and test for each of PROGNAME-LIST
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_prog in dd; do
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6665 as_fn_executable_p "$ac_path_lt_DD" || continue
6666 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6667 cmp -s conftest.i conftest.out \
6668 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6669 fi
6670 $ac_path_lt_DD_found && break 3
6671 done
6672 done
6673 done
6674 IFS=$as_save_IFS
6675 if test -z "$ac_cv_path_lt_DD"; then
6676 :
6677 fi
6678 else
6679 ac_cv_path_lt_DD=$lt_DD
6680 fi
6681
6682 rm -f conftest.i conftest2.i conftest.out
6683 fi
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6685 $as_echo "$ac_cv_path_lt_DD" >&6; }
6686
6687
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6689 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6690 if ${lt_cv_truncate_bin+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 printf 0123456789abcdef0123456789abcdef >conftest.i
6694 cat conftest.i conftest.i >conftest2.i
6695 lt_cv_truncate_bin=
6696 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6697 cmp -s conftest.i conftest.out \
6698 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6699 fi
6700 rm -f conftest.i conftest2.i conftest.out
6701 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6704 $as_echo "$lt_cv_truncate_bin" >&6; }
6705
6706
6707
6708
6709
6710
6711
6712 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6713 func_cc_basename ()
6714 {
6715 for cc_temp in $*""; do
6716 case $cc_temp in
6717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6719 \-*) ;;
6720 *) break;;
6721 esac
6722 done
6723 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6724 }
6725
6726 # Check whether --enable-libtool-lock was given.
6727 if test "${enable_libtool_lock+set}" = set; then :
6728 enableval=$enable_libtool_lock;
6729 fi
6730
6731 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6732
6733 # Some flags need to be propagated to the compiler or linker for good
6734 # libtool support.
6735 case $host in
6736 ia64-*-hpux*)
6737 # Find out what ABI is being produced by ac_compile, and set mode
6738 # options accordingly.
6739 echo 'int i;' > conftest.$ac_ext
6740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6741 (eval $ac_compile) 2>&5
6742 ac_status=$?
6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744 test $ac_status = 0; }; then
6745 case `/usr/bin/file conftest.$ac_objext` in
6746 *ELF-32*)
6747 HPUX_IA64_MODE=32
6748 ;;
6749 *ELF-64*)
6750 HPUX_IA64_MODE=64
6751 ;;
6752 esac
6753 fi
6754 rm -rf conftest*
6755 ;;
6756 *-*-irix6*)
6757 # Find out what ABI is being produced by ac_compile, and set linker
6758 # options accordingly.
6759 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6761 (eval $ac_compile) 2>&5
6762 ac_status=$?
6763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6764 test $ac_status = 0; }; then
6765 if test yes = "$lt_cv_prog_gnu_ld"; then
6766 case `/usr/bin/file conftest.$ac_objext` in
6767 *32-bit*)
6768 LD="${LD-ld} -melf32bsmip"
6769 ;;
6770 *N32*)
6771 LD="${LD-ld} -melf32bmipn32"
6772 ;;
6773 *64-bit*)
6774 LD="${LD-ld} -melf64bmip"
6775 ;;
6776 esac
6777 else
6778 case `/usr/bin/file conftest.$ac_objext` in
6779 *32-bit*)
6780 LD="${LD-ld} -32"
6781 ;;
6782 *N32*)
6783 LD="${LD-ld} -n32"
6784 ;;
6785 *64-bit*)
6786 LD="${LD-ld} -64"
6787 ;;
6788 esac
6789 fi
6790 fi
6791 rm -rf conftest*
6792 ;;
6793
6794 mips64*-*linux*)
6795 # Find out what ABI is being produced by ac_compile, and set linker
6796 # options accordingly.
6797 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799 (eval $ac_compile) 2>&5
6800 ac_status=$?
6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802 test $ac_status = 0; }; then
6803 emul=elf
6804 case `/usr/bin/file conftest.$ac_objext` in
6805 *32-bit*)
6806 emul="${emul}32"
6807 ;;
6808 *64-bit*)
6809 emul="${emul}64"
6810 ;;
6811 esac
6812 case `/usr/bin/file conftest.$ac_objext` in
6813 *MSB*)
6814 emul="${emul}btsmip"
6815 ;;
6816 *LSB*)
6817 emul="${emul}ltsmip"
6818 ;;
6819 esac
6820 case `/usr/bin/file conftest.$ac_objext` in
6821 *N32*)
6822 emul="${emul}n32"
6823 ;;
6824 esac
6825 LD="${LD-ld} -m $emul"
6826 fi
6827 rm -rf conftest*
6828 ;;
6829
6830 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6831 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6832 # Find out what ABI is being produced by ac_compile, and set linker
6833 # options accordingly. Note that the listed cases only cover the
6834 # situations where additional linker options are needed (such as when
6835 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6836 # vice versa); the common cases where no linker options are needed do
6837 # not appear in the list.
6838 echo 'int i;' > conftest.$ac_ext
6839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840 (eval $ac_compile) 2>&5
6841 ac_status=$?
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }; then
6844 case `/usr/bin/file conftest.o` in
6845 *32-bit*)
6846 case $host in
6847 x86_64-*kfreebsd*-gnu)
6848 LD="${LD-ld} -m elf_i386_fbsd"
6849 ;;
6850 x86_64-*linux*)
6851 case `/usr/bin/file conftest.o` in
6852 *x86-64*)
6853 LD="${LD-ld} -m elf32_x86_64"
6854 ;;
6855 *)
6856 LD="${LD-ld} -m elf_i386"
6857 ;;
6858 esac
6859 ;;
6860 powerpc64le-*linux*)
6861 LD="${LD-ld} -m elf32lppclinux"
6862 ;;
6863 powerpc64-*linux*)
6864 LD="${LD-ld} -m elf32ppclinux"
6865 ;;
6866 s390x-*linux*)
6867 LD="${LD-ld} -m elf_s390"
6868 ;;
6869 sparc64-*linux*)
6870 LD="${LD-ld} -m elf32_sparc"
6871 ;;
6872 esac
6873 ;;
6874 *64-bit*)
6875 case $host in
6876 x86_64-*kfreebsd*-gnu)
6877 LD="${LD-ld} -m elf_x86_64_fbsd"
6878 ;;
6879 x86_64-*linux*)
6880 LD="${LD-ld} -m elf_x86_64"
6881 ;;
6882 powerpcle-*linux*)
6883 LD="${LD-ld} -m elf64lppc"
6884 ;;
6885 powerpc-*linux*)
6886 LD="${LD-ld} -m elf64ppc"
6887 ;;
6888 s390*-*linux*|s390*-*tpf*)
6889 LD="${LD-ld} -m elf64_s390"
6890 ;;
6891 sparc*-*linux*)
6892 LD="${LD-ld} -m elf64_sparc"
6893 ;;
6894 esac
6895 ;;
6896 esac
6897 fi
6898 rm -rf conftest*
6899 ;;
6900
6901 *-*-sco3.2v5*)
6902 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6903 SAVE_CFLAGS=$CFLAGS
6904 CFLAGS="$CFLAGS -belf"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6906 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6907 if ${lt_cv_cc_needs_belf+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 ac_ext=c
6911 ac_cpp='$CPP $CPPFLAGS'
6912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918
6919 int
6920 main ()
6921 {
6922
6923 ;
6924 return 0;
6925 }
6926 _ACEOF
6927 if ac_fn_c_try_link "$LINENO"; then :
6928 lt_cv_cc_needs_belf=yes
6929 else
6930 lt_cv_cc_needs_belf=no
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6934 ac_ext=c
6935 ac_cpp='$CPP $CPPFLAGS'
6936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6939
6940 fi
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6942 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6943 if test yes != "$lt_cv_cc_needs_belf"; then
6944 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6945 CFLAGS=$SAVE_CFLAGS
6946 fi
6947 ;;
6948 *-*solaris*)
6949 # Find out what ABI is being produced by ac_compile, and set linker
6950 # options accordingly.
6951 echo 'int i;' > conftest.$ac_ext
6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6953 (eval $ac_compile) 2>&5
6954 ac_status=$?
6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; }; then
6957 case `/usr/bin/file conftest.o` in
6958 *64-bit*)
6959 case $lt_cv_prog_gnu_ld in
6960 yes*)
6961 case $host in
6962 i?86-*-solaris*|x86_64-*-solaris*)
6963 LD="${LD-ld} -m elf_x86_64"
6964 ;;
6965 sparc*-*-solaris*)
6966 LD="${LD-ld} -m elf64_sparc"
6967 ;;
6968 esac
6969 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6970 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6971 LD=${LD-ld}_sol2
6972 fi
6973 ;;
6974 *)
6975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6976 LD="${LD-ld} -64"
6977 fi
6978 ;;
6979 esac
6980 ;;
6981 esac
6982 fi
6983 rm -rf conftest*
6984 ;;
6985 esac
6986
6987 need_locks=$enable_libtool_lock
6988
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}mt; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if test -n "$MANIFEST_TOOL"; then
6998 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7018 if test -n "$MANIFEST_TOOL"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7020 $as_echo "$MANIFEST_TOOL" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7029 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7030 # Extract the first word of "mt", so it can be a program name with args.
7031 set dummy mt; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$ac_ct_MANIFEST_TOOL"; then
7038 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7058 if test -n "$ac_ct_MANIFEST_TOOL"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7060 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7067 MANIFEST_TOOL=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7076 fi
7077 else
7078 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7079 fi
7080
7081 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7083 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7084 if ${lt_cv_path_mainfest_tool+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 lt_cv_path_mainfest_tool=no
7088 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7089 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7090 cat conftest.err >&5
7091 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7092 lt_cv_path_mainfest_tool=yes
7093 fi
7094 rm -f conftest*
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7097 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7098 if test yes != "$lt_cv_path_mainfest_tool"; then
7099 MANIFEST_TOOL=:
7100 fi
7101
7102
7103
7104
7105
7106
7107 case $host_os in
7108 rhapsody* | darwin*)
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$DSYMUTIL"; then
7118 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7138 if test -n "$DSYMUTIL"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7140 $as_echo "$DSYMUTIL" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_DSYMUTIL"; then
7149 ac_ct_DSYMUTIL=$DSYMUTIL
7150 # Extract the first word of "dsymutil", so it can be a program name with args.
7151 set dummy dsymutil; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$ac_ct_DSYMUTIL"; then
7158 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7178 if test -n "$ac_ct_DSYMUTIL"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7180 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186 if test "x$ac_ct_DSYMUTIL" = x; then
7187 DSYMUTIL=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 DSYMUTIL=$ac_ct_DSYMUTIL
7196 fi
7197 else
7198 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7199 fi
7200
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_NMEDIT+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$NMEDIT"; then
7210 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 NMEDIT=$ac_cv_prog_NMEDIT
7230 if test -n "$NMEDIT"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7232 $as_echo "$NMEDIT" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 fi
7240 if test -z "$ac_cv_prog_NMEDIT"; then
7241 ac_ct_NMEDIT=$NMEDIT
7242 # Extract the first word of "nmedit", so it can be a program name with args.
7243 set dummy nmedit; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$ac_ct_NMEDIT"; then
7250 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7270 if test -n "$ac_ct_NMEDIT"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7272 $as_echo "$ac_ct_NMEDIT" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278 if test "x$ac_ct_NMEDIT" = x; then
7279 NMEDIT=":"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 NMEDIT=$ac_ct_NMEDIT
7288 fi
7289 else
7290 NMEDIT="$ac_cv_prog_NMEDIT"
7291 fi
7292
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_LIPO+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$LIPO"; then
7302 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 LIPO=$ac_cv_prog_LIPO
7322 if test -n "$LIPO"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7324 $as_echo "$LIPO" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_LIPO"; then
7333 ac_ct_LIPO=$LIPO
7334 # Extract the first word of "lipo", so it can be a program name with args.
7335 set dummy lipo; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$ac_ct_LIPO"; then
7342 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_LIPO="lipo"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7362 if test -n "$ac_ct_LIPO"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7364 $as_echo "$ac_ct_LIPO" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370 if test "x$ac_ct_LIPO" = x; then
7371 LIPO=":"
7372 else
7373 case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379 LIPO=$ac_ct_LIPO
7380 fi
7381 else
7382 LIPO="$ac_cv_prog_LIPO"
7383 fi
7384
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}otool; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_OTOOL+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 if test -n "$OTOOL"; then
7394 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 OTOOL=$ac_cv_prog_OTOOL
7414 if test -n "$OTOOL"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7416 $as_echo "$OTOOL" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422
7423 fi
7424 if test -z "$ac_cv_prog_OTOOL"; then
7425 ac_ct_OTOOL=$OTOOL
7426 # Extract the first word of "otool", so it can be a program name with args.
7427 set dummy otool; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$ac_ct_OTOOL"; then
7434 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_ac_ct_OTOOL="otool"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7454 if test -n "$ac_ct_OTOOL"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7456 $as_echo "$ac_ct_OTOOL" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462 if test "x$ac_ct_OTOOL" = x; then
7463 OTOOL=":"
7464 else
7465 case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471 OTOOL=$ac_ct_OTOOL
7472 fi
7473 else
7474 OTOOL="$ac_cv_prog_OTOOL"
7475 fi
7476
7477 if test -n "$ac_tool_prefix"; then
7478 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7479 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_OTOOL64+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 if test -n "$OTOOL64"; then
7486 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499 done
7500 done
7501 IFS=$as_save_IFS
7502
7503 fi
7504 fi
7505 OTOOL64=$ac_cv_prog_OTOOL64
7506 if test -n "$OTOOL64"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7508 $as_echo "$OTOOL64" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 fi
7513
7514
7515 fi
7516 if test -z "$ac_cv_prog_OTOOL64"; then
7517 ac_ct_OTOOL64=$OTOOL64
7518 # Extract the first word of "otool64", so it can be a program name with args.
7519 set dummy otool64; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 if test -n "$ac_ct_OTOOL64"; then
7526 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_ac_ct_OTOOL64="otool64"
7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539 done
7540 done
7541 IFS=$as_save_IFS
7542
7543 fi
7544 fi
7545 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7546 if test -n "$ac_ct_OTOOL64"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7548 $as_echo "$ac_ct_OTOOL64" >&6; }
7549 else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552 fi
7553
7554 if test "x$ac_ct_OTOOL64" = x; then
7555 OTOOL64=":"
7556 else
7557 case $cross_compiling:$ac_tool_warned in
7558 yes:)
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7561 ac_tool_warned=yes ;;
7562 esac
7563 OTOOL64=$ac_ct_OTOOL64
7564 fi
7565 else
7566 OTOOL64="$ac_cv_prog_OTOOL64"
7567 fi
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7596 $as_echo_n "checking for -single_module linker flag... " >&6; }
7597 if ${lt_cv_apple_cc_single_mod+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 lt_cv_apple_cc_single_mod=no
7601 if test -z "$LT_MULTI_MODULE"; then
7602 # By default we will add the -single_module flag. You can override
7603 # by either setting the environment variable LT_MULTI_MODULE
7604 # non-empty at configure time, or by adding -multi_module to the
7605 # link flags.
7606 rm -rf libconftest.dylib*
7607 echo "int foo(void){return 1;}" > conftest.c
7608 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7609 -dynamiclib -Wl,-single_module conftest.c" >&5
7610 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7611 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7612 _lt_result=$?
7613 # If there is a non-empty error log, and "single_module"
7614 # appears in it, assume the flag caused a linker warning
7615 if test -s conftest.err && $GREP single_module conftest.err; then
7616 cat conftest.err >&5
7617 # Otherwise, if the output was created with a 0 exit code from
7618 # the compiler, it worked.
7619 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7620 lt_cv_apple_cc_single_mod=yes
7621 else
7622 cat conftest.err >&5
7623 fi
7624 rm -rf libconftest.dylib*
7625 rm -f conftest.*
7626 fi
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7629 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7632 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7633 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 lt_cv_ld_exported_symbols_list=no
7637 save_LDFLAGS=$LDFLAGS
7638 echo "_main" > conftest.sym
7639 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642
7643 int
7644 main ()
7645 {
7646
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"; then :
7652 lt_cv_ld_exported_symbols_list=yes
7653 else
7654 lt_cv_ld_exported_symbols_list=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7658 LDFLAGS=$save_LDFLAGS
7659
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7662 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7663
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7665 $as_echo_n "checking for -force_load linker flag... " >&6; }
7666 if ${lt_cv_ld_force_load+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 lt_cv_ld_force_load=no
7670 cat > conftest.c << _LT_EOF
7671 int forced_loaded() { return 2;}
7672 _LT_EOF
7673 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7674 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7675 echo "$AR cru libconftest.a conftest.o" >&5
7676 $AR cru libconftest.a conftest.o 2>&5
7677 echo "$RANLIB libconftest.a" >&5
7678 $RANLIB libconftest.a 2>&5
7679 cat > conftest.c << _LT_EOF
7680 int main() { return 0;}
7681 _LT_EOF
7682 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7683 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7684 _lt_result=$?
7685 if test -s conftest.err && $GREP force_load conftest.err; then
7686 cat conftest.err >&5
7687 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7688 lt_cv_ld_force_load=yes
7689 else
7690 cat conftest.err >&5
7691 fi
7692 rm -f conftest.err libconftest.a conftest conftest.c
7693 rm -rf conftest.dSYM
7694
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7697 $as_echo "$lt_cv_ld_force_load" >&6; }
7698 case $host_os in
7699 rhapsody* | darwin1.[012])
7700 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7701 darwin1.*)
7702 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7703 darwin*) # darwin 5.x on
7704 # if running on 10.5 or later, the deployment target defaults
7705 # to the OS version, if on x86, and 10.4, the deployment
7706 # target defaults to 10.4. Don't you love it?
7707 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7708 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7709 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7710 10.[012][,.]*)
7711 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7712 10.*)
7713 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7714 esac
7715 ;;
7716 esac
7717 if test yes = "$lt_cv_apple_cc_single_mod"; then
7718 _lt_dar_single_mod='$single_module'
7719 fi
7720 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7721 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7722 else
7723 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7724 fi
7725 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7726 _lt_dsymutil='~$DSYMUTIL $lib || :'
7727 else
7728 _lt_dsymutil=
7729 fi
7730 ;;
7731 esac
7732
7733 # func_munge_path_list VARIABLE PATH
7734 # -----------------------------------
7735 # VARIABLE is name of variable containing _space_ separated list of
7736 # directories to be munged by the contents of PATH, which is string
7737 # having a format:
7738 # "DIR[:DIR]:"
7739 # string "DIR[ DIR]" will be prepended to VARIABLE
7740 # ":DIR[:DIR]"
7741 # string "DIR[ DIR]" will be appended to VARIABLE
7742 # "DIRP[:DIRP]::[DIRA:]DIRA"
7743 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7744 # "DIRA[ DIRA]" will be appended to VARIABLE
7745 # "DIR[:DIR]"
7746 # VARIABLE will be replaced by "DIR[ DIR]"
7747 func_munge_path_list ()
7748 {
7749 case x$2 in
7750 x)
7751 ;;
7752 *:)
7753 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7754 ;;
7755 x:*)
7756 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7757 ;;
7758 *::*)
7759 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7760 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7761 ;;
7762 *)
7763 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7764 ;;
7765 esac
7766 }
7767
7768 ac_ext=c
7769 ac_cpp='$CPP $CPPFLAGS'
7770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7774 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7775 # On Suns, sometimes $CPP names a directory.
7776 if test -n "$CPP" && test -d "$CPP"; then
7777 CPP=
7778 fi
7779 if test -z "$CPP"; then
7780 if ${ac_cv_prog_CPP+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 # Double quotes because CPP needs to be expanded
7784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7785 do
7786 ac_preproc_ok=false
7787 for ac_c_preproc_warn_flag in '' yes
7788 do
7789 # Use a header file that comes with gcc, so configuring glibc
7790 # with a fresh cross-compiler works.
7791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7792 # <limits.h> exists even on freestanding compilers.
7793 # On the NeXT, cc -E runs the code through the compiler's parser,
7794 # not just through cpp. "Syntax error" is here to catch this case.
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 #ifdef __STDC__
7798 # include <limits.h>
7799 #else
7800 # include <assert.h>
7801 #endif
7802 Syntax error
7803 _ACEOF
7804 if ac_fn_c_try_cpp "$LINENO"; then :
7805
7806 else
7807 # Broken: fails on valid input.
7808 continue
7809 fi
7810 rm -f conftest.err conftest.i conftest.$ac_ext
7811
7812 # OK, works on sane cases. Now check whether nonexistent headers
7813 # can be detected and how.
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816 #include <ac_nonexistent.h>
7817 _ACEOF
7818 if ac_fn_c_try_cpp "$LINENO"; then :
7819 # Broken: success on invalid input.
7820 continue
7821 else
7822 # Passes both tests.
7823 ac_preproc_ok=:
7824 break
7825 fi
7826 rm -f conftest.err conftest.i conftest.$ac_ext
7827
7828 done
7829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7830 rm -f conftest.i conftest.err conftest.$ac_ext
7831 if $ac_preproc_ok; then :
7832 break
7833 fi
7834
7835 done
7836 ac_cv_prog_CPP=$CPP
7837
7838 fi
7839 CPP=$ac_cv_prog_CPP
7840 else
7841 ac_cv_prog_CPP=$CPP
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7844 $as_echo "$CPP" >&6; }
7845 ac_preproc_ok=false
7846 for ac_c_preproc_warn_flag in '' yes
7847 do
7848 # Use a header file that comes with gcc, so configuring glibc
7849 # with a fresh cross-compiler works.
7850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7851 # <limits.h> exists even on freestanding compilers.
7852 # On the NeXT, cc -E runs the code through the compiler's parser,
7853 # not just through cpp. "Syntax error" is here to catch this case.
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 #ifdef __STDC__
7857 # include <limits.h>
7858 #else
7859 # include <assert.h>
7860 #endif
7861 Syntax error
7862 _ACEOF
7863 if ac_fn_c_try_cpp "$LINENO"; then :
7864
7865 else
7866 # Broken: fails on valid input.
7867 continue
7868 fi
7869 rm -f conftest.err conftest.i conftest.$ac_ext
7870
7871 # OK, works on sane cases. Now check whether nonexistent headers
7872 # can be detected and how.
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875 #include <ac_nonexistent.h>
7876 _ACEOF
7877 if ac_fn_c_try_cpp "$LINENO"; then :
7878 # Broken: success on invalid input.
7879 continue
7880 else
7881 # Passes both tests.
7882 ac_preproc_ok=:
7883 break
7884 fi
7885 rm -f conftest.err conftest.i conftest.$ac_ext
7886
7887 done
7888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7889 rm -f conftest.i conftest.err conftest.$ac_ext
7890 if $ac_preproc_ok; then :
7891
7892 else
7893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7895 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7896 See \`config.log' for more details" "$LINENO" 5; }
7897 fi
7898
7899 ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7907 $as_echo_n "checking for ANSI C header files... " >&6; }
7908 if ${ac_cv_header_stdc+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 #include <stdlib.h>
7914 #include <stdarg.h>
7915 #include <string.h>
7916 #include <float.h>
7917
7918 int
7919 main ()
7920 {
7921
7922 ;
7923 return 0;
7924 }
7925 _ACEOF
7926 if ac_fn_c_try_compile "$LINENO"; then :
7927 ac_cv_header_stdc=yes
7928 else
7929 ac_cv_header_stdc=no
7930 fi
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932
7933 if test $ac_cv_header_stdc = yes; then
7934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 #include <string.h>
7938
7939 _ACEOF
7940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7941 $EGREP "memchr" >/dev/null 2>&1; then :
7942
7943 else
7944 ac_cv_header_stdc=no
7945 fi
7946 rm -f conftest*
7947
7948 fi
7949
7950 if test $ac_cv_header_stdc = yes; then
7951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 #include <stdlib.h>
7955
7956 _ACEOF
7957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958 $EGREP "free" >/dev/null 2>&1; then :
7959
7960 else
7961 ac_cv_header_stdc=no
7962 fi
7963 rm -f conftest*
7964
7965 fi
7966
7967 if test $ac_cv_header_stdc = yes; then
7968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7969 if test "$cross_compiling" = yes; then :
7970 :
7971 else
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 #include <ctype.h>
7975 #include <stdlib.h>
7976 #if ((' ' & 0x0FF) == 0x020)
7977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7979 #else
7980 # define ISLOWER(c) \
7981 (('a' <= (c) && (c) <= 'i') \
7982 || ('j' <= (c) && (c) <= 'r') \
7983 || ('s' <= (c) && (c) <= 'z'))
7984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7985 #endif
7986
7987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7988 int
7989 main ()
7990 {
7991 int i;
7992 for (i = 0; i < 256; i++)
7993 if (XOR (islower (i), ISLOWER (i))
7994 || toupper (i) != TOUPPER (i))
7995 return 2;
7996 return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_run "$LINENO"; then :
8000
8001 else
8002 ac_cv_header_stdc=no
8003 fi
8004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8005 conftest.$ac_objext conftest.beam conftest.$ac_ext
8006 fi
8007
8008 fi
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8011 $as_echo "$ac_cv_header_stdc" >&6; }
8012 if test $ac_cv_header_stdc = yes; then
8013
8014 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8015
8016 fi
8017
8018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8020 inttypes.h stdint.h unistd.h
8021 do :
8022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8023 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8024 "
8025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8026 cat >>confdefs.h <<_ACEOF
8027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8028 _ACEOF
8029
8030 fi
8031
8032 done
8033
8034
8035 for ac_header in dlfcn.h
8036 do :
8037 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8038 "
8039 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_DLFCN_H 1
8042 _ACEOF
8043
8044 fi
8045
8046 done
8047
8048
8049
8050
8051
8052 # Set options
8053
8054
8055
8056 enable_dlopen=no
8057
8058
8059 enable_win32_dll=no
8060
8061
8062 # Check whether --enable-shared was given.
8063 if test "${enable_shared+set}" = set; then :
8064 enableval=$enable_shared; p=${PACKAGE-default}
8065 case $enableval in
8066 yes) enable_shared=yes ;;
8067 no) enable_shared=no ;;
8068 *)
8069 enable_shared=no
8070 # Look at the argument we got. We use all the common list separators.
8071 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8072 for pkg in $enableval; do
8073 IFS=$lt_save_ifs
8074 if test "X$pkg" = "X$p"; then
8075 enable_shared=yes
8076 fi
8077 done
8078 IFS=$lt_save_ifs
8079 ;;
8080 esac
8081 else
8082 enable_shared=yes
8083 fi
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 # Check whether --enable-static was given.
8094 if test "${enable_static+set}" = set; then :
8095 enableval=$enable_static; p=${PACKAGE-default}
8096 case $enableval in
8097 yes) enable_static=yes ;;
8098 no) enable_static=no ;;
8099 *)
8100 enable_static=no
8101 # Look at the argument we got. We use all the common list separators.
8102 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8103 for pkg in $enableval; do
8104 IFS=$lt_save_ifs
8105 if test "X$pkg" = "X$p"; then
8106 enable_static=yes
8107 fi
8108 done
8109 IFS=$lt_save_ifs
8110 ;;
8111 esac
8112 else
8113 enable_static=yes
8114 fi
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 # Check whether --with-pic was given.
8126 if test "${with_pic+set}" = set; then :
8127 withval=$with_pic; lt_p=${PACKAGE-default}
8128 case $withval in
8129 yes|no) pic_mode=$withval ;;
8130 *)
8131 pic_mode=default
8132 # Look at the argument we got. We use all the common list separators.
8133 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8134 for lt_pkg in $withval; do
8135 IFS=$lt_save_ifs
8136 if test "X$lt_pkg" = "X$lt_p"; then
8137 pic_mode=yes
8138 fi
8139 done
8140 IFS=$lt_save_ifs
8141 ;;
8142 esac
8143 else
8144 pic_mode=default
8145 fi
8146
8147
8148
8149
8150
8151
8152
8153
8154 # Check whether --enable-fast-install was given.
8155 if test "${enable_fast_install+set}" = set; then :
8156 enableval=$enable_fast_install; p=${PACKAGE-default}
8157 case $enableval in
8158 yes) enable_fast_install=yes ;;
8159 no) enable_fast_install=no ;;
8160 *)
8161 enable_fast_install=no
8162 # Look at the argument we got. We use all the common list separators.
8163 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8164 for pkg in $enableval; do
8165 IFS=$lt_save_ifs
8166 if test "X$pkg" = "X$p"; then
8167 enable_fast_install=yes
8168 fi
8169 done
8170 IFS=$lt_save_ifs
8171 ;;
8172 esac
8173 else
8174 enable_fast_install=yes
8175 fi
8176
8177
8178
8179
8180
8181
8182
8183
8184 shared_archive_member_spec=
8185 case $host,$enable_shared in
8186 power*-*-aix[5-9]*,yes)
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8188 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8189
8190 # Check whether --with-aix-soname was given.
8191 if test "${with_aix_soname+set}" = set; then :
8192 withval=$with_aix_soname; case $withval in
8193 aix|svr4|both)
8194 ;;
8195 *)
8196 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8197 ;;
8198 esac
8199 lt_cv_with_aix_soname=$with_aix_soname
8200 else
8201 if ${lt_cv_with_aix_soname+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 lt_cv_with_aix_soname=aix
8205 fi
8206
8207 with_aix_soname=$lt_cv_with_aix_soname
8208 fi
8209
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8211 $as_echo "$with_aix_soname" >&6; }
8212 if test aix != "$with_aix_soname"; then
8213 # For the AIX way of multilib, we name the shared archive member
8214 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8215 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8216 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8217 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8218 if test 64 = "${OBJECT_MODE-32}"; then
8219 shared_archive_member_spec=shr_64
8220 else
8221 shared_archive_member_spec=shr
8222 fi
8223 fi
8224 ;;
8225 *)
8226 with_aix_soname=aix
8227 ;;
8228 esac
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239 # This can be used to rebuild libtool when needed
8240 LIBTOOL_DEPS=$ltmain
8241
8242 # Always use our own libtool.
8243 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 test -z "$LN_S" && LN_S="ln -s"
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 if test -n "${ZSH_VERSION+set}"; then
8290 setopt NO_GLOB_SUBST
8291 fi
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8294 $as_echo_n "checking for objdir... " >&6; }
8295 if ${lt_cv_objdir+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 rm -f .libs 2>/dev/null
8299 mkdir .libs 2>/dev/null
8300 if test -d .libs; then
8301 lt_cv_objdir=.libs
8302 else
8303 # MS-DOS does not allow filenames that begin with a dot.
8304 lt_cv_objdir=_libs
8305 fi
8306 rmdir .libs 2>/dev/null
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8309 $as_echo "$lt_cv_objdir" >&6; }
8310 objdir=$lt_cv_objdir
8311
8312
8313
8314
8315
8316 cat >>confdefs.h <<_ACEOF
8317 #define LT_OBJDIR "$lt_cv_objdir/"
8318 _ACEOF
8319
8320
8321
8322
8323 case $host_os in
8324 aix3*)
8325 # AIX sometimes has problems with the GCC collect2 program. For some
8326 # reason, if we set the COLLECT_NAMES environment variable, the problems
8327 # vanish in a puff of smoke.
8328 if test set != "${COLLECT_NAMES+set}"; then
8329 COLLECT_NAMES=
8330 export COLLECT_NAMES
8331 fi
8332 ;;
8333 esac
8334
8335 # Global variables:
8336 ofile=libtool
8337 can_build_shared=yes
8338
8339 # All known linkers require a '.a' archive for static linking (except MSVC,
8340 # which needs '.lib').
8341 libext=a
8342
8343 with_gnu_ld=$lt_cv_prog_gnu_ld
8344
8345 old_CC=$CC
8346 old_CFLAGS=$CFLAGS
8347
8348 # Set sane defaults for various variables
8349 test -z "$CC" && CC=cc
8350 test -z "$LTCC" && LTCC=$CC
8351 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8352 test -z "$LD" && LD=ld
8353 test -z "$ac_objext" && ac_objext=o
8354
8355 func_cc_basename $compiler
8356 cc_basename=$func_cc_basename_result
8357
8358
8359 # Only perform the check for file, if the check method requires it
8360 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8361 case $deplibs_check_method in
8362 file_magic*)
8363 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8365 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8366 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 case $MAGIC_CMD in
8370 [\\/*] | ?:[\\/]*)
8371 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8372 ;;
8373 *)
8374 lt_save_MAGIC_CMD=$MAGIC_CMD
8375 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8376 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8377 for ac_dir in $ac_dummy; do
8378 IFS=$lt_save_ifs
8379 test -z "$ac_dir" && ac_dir=.
8380 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8381 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8382 if test -n "$file_magic_test_file"; then
8383 case $deplibs_check_method in
8384 "file_magic "*)
8385 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8386 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8388 $EGREP "$file_magic_regex" > /dev/null; then
8389 :
8390 else
8391 cat <<_LT_EOF 1>&2
8392
8393 *** Warning: the command libtool uses to detect shared libraries,
8394 *** $file_magic_cmd, produces output that libtool cannot recognize.
8395 *** The result is that libtool may fail to recognize shared libraries
8396 *** as such. This will affect the creation of libtool libraries that
8397 *** depend on shared libraries, but programs linked with such libtool
8398 *** libraries will work regardless of this problem. Nevertheless, you
8399 *** may want to report the problem to your system manager and/or to
8400 *** [email protected]
8401
8402 _LT_EOF
8403 fi ;;
8404 esac
8405 fi
8406 break
8407 fi
8408 done
8409 IFS=$lt_save_ifs
8410 MAGIC_CMD=$lt_save_MAGIC_CMD
8411 ;;
8412 esac
8413 fi
8414
8415 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8416 if test -n "$MAGIC_CMD"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8418 $as_echo "$MAGIC_CMD" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8423
8424
8425
8426
8427
8428 if test -z "$lt_cv_path_MAGIC_CMD"; then
8429 if test -n "$ac_tool_prefix"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8431 $as_echo_n "checking for file... " >&6; }
8432 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 case $MAGIC_CMD in
8436 [\\/*] | ?:[\\/]*)
8437 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8438 ;;
8439 *)
8440 lt_save_MAGIC_CMD=$MAGIC_CMD
8441 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8442 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8443 for ac_dir in $ac_dummy; do
8444 IFS=$lt_save_ifs
8445 test -z "$ac_dir" && ac_dir=.
8446 if test -f "$ac_dir/file"; then
8447 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8448 if test -n "$file_magic_test_file"; then
8449 case $deplibs_check_method in
8450 "file_magic "*)
8451 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8452 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8453 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8454 $EGREP "$file_magic_regex" > /dev/null; then
8455 :
8456 else
8457 cat <<_LT_EOF 1>&2
8458
8459 *** Warning: the command libtool uses to detect shared libraries,
8460 *** $file_magic_cmd, produces output that libtool cannot recognize.
8461 *** The result is that libtool may fail to recognize shared libraries
8462 *** as such. This will affect the creation of libtool libraries that
8463 *** depend on shared libraries, but programs linked with such libtool
8464 *** libraries will work regardless of this problem. Nevertheless, you
8465 *** may want to report the problem to your system manager and/or to
8466 *** [email protected]
8467
8468 _LT_EOF
8469 fi ;;
8470 esac
8471 fi
8472 break
8473 fi
8474 done
8475 IFS=$lt_save_ifs
8476 MAGIC_CMD=$lt_save_MAGIC_CMD
8477 ;;
8478 esac
8479 fi
8480
8481 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8482 if test -n "$MAGIC_CMD"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8484 $as_echo "$MAGIC_CMD" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 fi
8489
8490
8491 else
8492 MAGIC_CMD=:
8493 fi
8494 fi
8495
8496 fi
8497 ;;
8498 esac
8499
8500 # Use C for the default configuration in the libtool script
8501
8502 lt_save_CC=$CC
8503 ac_ext=c
8504 ac_cpp='$CPP $CPPFLAGS'
8505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508
8509
8510 # Source file extension for C test sources.
8511 ac_ext=c
8512
8513 # Object file extension for compiled C test sources.
8514 objext=o
8515 objext=$objext
8516
8517 # Code to be used in simple compile tests
8518 lt_simple_compile_test_code="int some_variable = 0;"
8519
8520 # Code to be used in simple link tests
8521 lt_simple_link_test_code='int main(){return(0);}'
8522
8523
8524
8525
8526
8527
8528
8529 # If no C compiler was specified, use CC.
8530 LTCC=${LTCC-"$CC"}
8531
8532 # If no C compiler flags were specified, use CFLAGS.
8533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8534
8535 # Allow CC to be a program name with arguments.
8536 compiler=$CC
8537
8538 # Save the default compiler, since it gets overwritten when the other
8539 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8540 compiler_DEFAULT=$CC
8541
8542 # save warnings/boilerplate of simple test code
8543 ac_outfile=conftest.$ac_objext
8544 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8546 _lt_compiler_boilerplate=`cat conftest.err`
8547 $RM conftest*
8548
8549 ac_outfile=conftest.$ac_objext
8550 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8552 _lt_linker_boilerplate=`cat conftest.err`
8553 $RM -r conftest*
8554
8555
8556 ## CAVEAT EMPTOR:
8557 ## There is no encapsulation within the following macros, do not change
8558 ## the running order or otherwise move them around unless you know exactly
8559 ## what you are doing...
8560 if test -n "$compiler"; then
8561
8562 lt_prog_compiler_no_builtin_flag=
8563
8564 if test yes = "$GCC"; then
8565 case $cc_basename in
8566 nvcc*)
8567 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8568 *)
8569 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8570 esac
8571
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8573 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8574 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 lt_cv_prog_compiler_rtti_exceptions=no
8578 ac_outfile=conftest.$ac_objext
8579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8581 # Insert the option either (1) after the last *FLAGS variable, or
8582 # (2) before a word containing "conftest.", or (3) at the end.
8583 # Note that $ac_compile itself does not contain backslashes and begins
8584 # with a dollar sign (not a hyphen), so the echo should work correctly.
8585 # The option is referenced via a variable to avoid confusing sed.
8586 lt_compile=`echo "$ac_compile" | $SED \
8587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8589 -e 's:$: $lt_compiler_flag:'`
8590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8591 (eval "$lt_compile" 2>conftest.err)
8592 ac_status=$?
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 if (exit $ac_status) && test -s "$ac_outfile"; then
8596 # The compiler can only warn and ignore the option if not recognized
8597 # So say no if there are warnings other than the usual output.
8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8601 lt_cv_prog_compiler_rtti_exceptions=yes
8602 fi
8603 fi
8604 $RM conftest*
8605
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8608 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8609
8610 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8611 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8612 else
8613 :
8614 fi
8615
8616 fi
8617
8618
8619
8620
8621
8622
8623 lt_prog_compiler_wl=
8624 lt_prog_compiler_pic=
8625 lt_prog_compiler_static=
8626
8627
8628 if test yes = "$GCC"; then
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_static='-static'
8631
8632 case $host_os in
8633 aix*)
8634 # All AIX code is PIC.
8635 if test ia64 = "$host_cpu"; then
8636 # AIX 5 now supports IA64 processor
8637 lt_prog_compiler_static='-Bstatic'
8638 fi
8639 lt_prog_compiler_pic='-fPIC'
8640 ;;
8641
8642 amigaos*)
8643 case $host_cpu in
8644 powerpc)
8645 # see comment about AmigaOS4 .so support
8646 lt_prog_compiler_pic='-fPIC'
8647 ;;
8648 m68k)
8649 # FIXME: we need at least 68020 code to build shared libraries, but
8650 # adding the '-m68020' flag to GCC prevents building anything better,
8651 # like '-m68040'.
8652 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8653 ;;
8654 esac
8655 ;;
8656
8657 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8658 # PIC is the default for these OSes.
8659 ;;
8660
8661 mingw* | cygwin* | pw32* | os2* | cegcc*)
8662 # This hack is so that the source file can tell whether it is being
8663 # built for inclusion in a dll (and should export symbols for example).
8664 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8665 # (--disable-auto-import) libraries
8666 lt_prog_compiler_pic='-DDLL_EXPORT'
8667 case $host_os in
8668 os2*)
8669 lt_prog_compiler_static='$wl-static'
8670 ;;
8671 esac
8672 ;;
8673
8674 darwin* | rhapsody*)
8675 # PIC is the default on this platform
8676 # Common symbols not allowed in MH_DYLIB files
8677 lt_prog_compiler_pic='-fno-common'
8678 ;;
8679
8680 haiku*)
8681 # PIC is the default for Haiku.
8682 # The "-static" flag exists, but is broken.
8683 lt_prog_compiler_static=
8684 ;;
8685
8686 hpux*)
8687 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8688 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8689 # sets the default TLS model and affects inlining.
8690 case $host_cpu in
8691 hppa*64*)
8692 # +Z the default
8693 ;;
8694 *)
8695 lt_prog_compiler_pic='-fPIC'
8696 ;;
8697 esac
8698 ;;
8699
8700 interix[3-9]*)
8701 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8702 # Instead, we relocate shared libraries at runtime.
8703 ;;
8704
8705 msdosdjgpp*)
8706 # Just because we use GCC doesn't mean we suddenly get shared libraries
8707 # on systems that don't support them.
8708 lt_prog_compiler_can_build_shared=no
8709 enable_shared=no
8710 ;;
8711
8712 *nto* | *qnx*)
8713 # QNX uses GNU C++, but need to define -shared option too, otherwise
8714 # it will coredump.
8715 lt_prog_compiler_pic='-fPIC -shared'
8716 ;;
8717
8718 sysv4*MP*)
8719 if test -d /usr/nec; then
8720 lt_prog_compiler_pic=-Kconform_pic
8721 fi
8722 ;;
8723
8724 *)
8725 lt_prog_compiler_pic='-fPIC'
8726 ;;
8727 esac
8728
8729 case $cc_basename in
8730 nvcc*) # Cuda Compiler Driver 2.2
8731 lt_prog_compiler_wl='-Xlinker '
8732 if test -n "$lt_prog_compiler_pic"; then
8733 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8734 fi
8735 ;;
8736 esac
8737 else
8738 # PORTME Check for flag to pass linker flags through the system compiler.
8739 case $host_os in
8740 aix*)
8741 lt_prog_compiler_wl='-Wl,'
8742 if test ia64 = "$host_cpu"; then
8743 # AIX 5 now supports IA64 processor
8744 lt_prog_compiler_static='-Bstatic'
8745 else
8746 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8747 fi
8748 ;;
8749
8750 darwin* | rhapsody*)
8751 # PIC is the default on this platform
8752 # Common symbols not allowed in MH_DYLIB files
8753 lt_prog_compiler_pic='-fno-common'
8754 case $cc_basename in
8755 nagfor*)
8756 # NAG Fortran compiler
8757 lt_prog_compiler_wl='-Wl,-Wl,,'
8758 lt_prog_compiler_pic='-PIC'
8759 lt_prog_compiler_static='-Bstatic'
8760 ;;
8761 esac
8762 ;;
8763
8764 mingw* | cygwin* | pw32* | os2* | cegcc*)
8765 # This hack is so that the source file can tell whether it is being
8766 # built for inclusion in a dll (and should export symbols for example).
8767 lt_prog_compiler_pic='-DDLL_EXPORT'
8768 case $host_os in
8769 os2*)
8770 lt_prog_compiler_static='$wl-static'
8771 ;;
8772 esac
8773 ;;
8774
8775 hpux9* | hpux10* | hpux11*)
8776 lt_prog_compiler_wl='-Wl,'
8777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8778 # not for PA HP-UX.
8779 case $host_cpu in
8780 hppa*64*|ia64*)
8781 # +Z the default
8782 ;;
8783 *)
8784 lt_prog_compiler_pic='+Z'
8785 ;;
8786 esac
8787 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8788 lt_prog_compiler_static='$wl-a ${wl}archive'
8789 ;;
8790
8791 irix5* | irix6* | nonstopux*)
8792 lt_prog_compiler_wl='-Wl,'
8793 # PIC (with -KPIC) is the default.
8794 lt_prog_compiler_static='-non_shared'
8795 ;;
8796
8797 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8798 case $cc_basename in
8799 # old Intel for x86_64, which still supported -KPIC.
8800 ecc*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_pic='-KPIC'
8803 lt_prog_compiler_static='-static'
8804 ;;
8805 # icc used to be incompatible with GCC.
8806 # ICC 10 doesn't accept -KPIC any more.
8807 icc* | ifort*)
8808 lt_prog_compiler_wl='-Wl,'
8809 lt_prog_compiler_pic='-fPIC'
8810 lt_prog_compiler_static='-static'
8811 ;;
8812 # Lahey Fortran 8.1.
8813 lf95*)
8814 lt_prog_compiler_wl='-Wl,'
8815 lt_prog_compiler_pic='--shared'
8816 lt_prog_compiler_static='--static'
8817 ;;
8818 nagfor*)
8819 # NAG Fortran compiler
8820 lt_prog_compiler_wl='-Wl,-Wl,,'
8821 lt_prog_compiler_pic='-PIC'
8822 lt_prog_compiler_static='-Bstatic'
8823 ;;
8824 tcc*)
8825 # Fabrice Bellard et al's Tiny C Compiler
8826 lt_prog_compiler_wl='-Wl,'
8827 lt_prog_compiler_pic='-fPIC'
8828 lt_prog_compiler_static='-static'
8829 ;;
8830 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8831 # Portland Group compilers (*not* the Pentium gcc compiler,
8832 # which looks to be a dead project)
8833 lt_prog_compiler_wl='-Wl,'
8834 lt_prog_compiler_pic='-fpic'
8835 lt_prog_compiler_static='-Bstatic'
8836 ;;
8837 ccc*)
8838 lt_prog_compiler_wl='-Wl,'
8839 # All Alpha code is PIC.
8840 lt_prog_compiler_static='-non_shared'
8841 ;;
8842 xl* | bgxl* | bgf* | mpixl*)
8843 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='-qpic'
8846 lt_prog_compiler_static='-qstaticlink'
8847 ;;
8848 *)
8849 case `$CC -V 2>&1 | sed 5q` in
8850 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8851 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8852 lt_prog_compiler_pic='-KPIC'
8853 lt_prog_compiler_static='-Bstatic'
8854 lt_prog_compiler_wl=''
8855 ;;
8856 *Sun\ F* | *Sun*Fortran*)
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 lt_prog_compiler_wl='-Qoption ld '
8860 ;;
8861 *Sun\ C*)
8862 # Sun C 5.9
8863 lt_prog_compiler_pic='-KPIC'
8864 lt_prog_compiler_static='-Bstatic'
8865 lt_prog_compiler_wl='-Wl,'
8866 ;;
8867 *Intel*\ [CF]*Compiler*)
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='-fPIC'
8870 lt_prog_compiler_static='-static'
8871 ;;
8872 *Portland\ Group*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-fpic'
8875 lt_prog_compiler_static='-Bstatic'
8876 ;;
8877 esac
8878 ;;
8879 esac
8880 ;;
8881
8882 newsos6)
8883 lt_prog_compiler_pic='-KPIC'
8884 lt_prog_compiler_static='-Bstatic'
8885 ;;
8886
8887 *nto* | *qnx*)
8888 # QNX uses GNU C++, but need to define -shared option too, otherwise
8889 # it will coredump.
8890 lt_prog_compiler_pic='-fPIC -shared'
8891 ;;
8892
8893 osf3* | osf4* | osf5*)
8894 lt_prog_compiler_wl='-Wl,'
8895 # All OSF/1 code is PIC.
8896 lt_prog_compiler_static='-non_shared'
8897 ;;
8898
8899 rdos*)
8900 lt_prog_compiler_static='-non_shared'
8901 ;;
8902
8903 solaris*)
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 case $cc_basename in
8907 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8908 lt_prog_compiler_wl='-Qoption ld ';;
8909 *)
8910 lt_prog_compiler_wl='-Wl,';;
8911 esac
8912 ;;
8913
8914 sunos4*)
8915 lt_prog_compiler_wl='-Qoption ld '
8916 lt_prog_compiler_pic='-PIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 ;;
8919
8920 sysv4 | sysv4.2uw2* | sysv4.3*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 ;;
8925
8926 sysv4*MP*)
8927 if test -d /usr/nec; then
8928 lt_prog_compiler_pic='-Kconform_pic'
8929 lt_prog_compiler_static='-Bstatic'
8930 fi
8931 ;;
8932
8933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934 lt_prog_compiler_wl='-Wl,'
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 ;;
8938
8939 unicos*)
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_can_build_shared=no
8942 ;;
8943
8944 uts4*)
8945 lt_prog_compiler_pic='-pic'
8946 lt_prog_compiler_static='-Bstatic'
8947 ;;
8948
8949 *)
8950 lt_prog_compiler_can_build_shared=no
8951 ;;
8952 esac
8953 fi
8954
8955 case $host_os in
8956 # For platforms that do not support PIC, -DPIC is meaningless:
8957 *djgpp*)
8958 lt_prog_compiler_pic=
8959 ;;
8960 *)
8961 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8962 ;;
8963 esac
8964
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8966 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8967 if ${lt_cv_prog_compiler_pic+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8973 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8974 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8975
8976 #
8977 # Check to make sure the PIC flag actually works.
8978 #
8979 if test -n "$lt_prog_compiler_pic"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8981 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8982 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 lt_cv_prog_compiler_pic_works=no
8986 ac_outfile=conftest.$ac_objext
8987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8989 # Insert the option either (1) after the last *FLAGS variable, or
8990 # (2) before a word containing "conftest.", or (3) at the end.
8991 # Note that $ac_compile itself does not contain backslashes and begins
8992 # with a dollar sign (not a hyphen), so the echo should work correctly.
8993 # The option is referenced via a variable to avoid confusing sed.
8994 lt_compile=`echo "$ac_compile" | $SED \
8995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997 -e 's:$: $lt_compiler_flag:'`
8998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999 (eval "$lt_compile" 2>conftest.err)
9000 ac_status=$?
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 if (exit $ac_status) && test -s "$ac_outfile"; then
9004 # The compiler can only warn and ignore the option if not recognized
9005 # So say no if there are warnings other than the usual output.
9006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9009 lt_cv_prog_compiler_pic_works=yes
9010 fi
9011 fi
9012 $RM conftest*
9013
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9016 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9017
9018 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9019 case $lt_prog_compiler_pic in
9020 "" | " "*) ;;
9021 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9022 esac
9023 else
9024 lt_prog_compiler_pic=
9025 lt_prog_compiler_can_build_shared=no
9026 fi
9027
9028 fi
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040 #
9041 # Check to make sure the static flag actually works.
9042 #
9043 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9045 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9046 if ${lt_cv_prog_compiler_static_works+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 lt_cv_prog_compiler_static_works=no
9050 save_LDFLAGS=$LDFLAGS
9051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9054 # The linker can only warn and ignore the option if not recognized
9055 # So say no if there are warnings
9056 if test -s conftest.err; then
9057 # Append any errors to the config.log.
9058 cat conftest.err 1>&5
9059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061 if diff conftest.exp conftest.er2 >/dev/null; then
9062 lt_cv_prog_compiler_static_works=yes
9063 fi
9064 else
9065 lt_cv_prog_compiler_static_works=yes
9066 fi
9067 fi
9068 $RM -r conftest*
9069 LDFLAGS=$save_LDFLAGS
9070
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9073 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9074
9075 if test yes = "$lt_cv_prog_compiler_static_works"; then
9076 :
9077 else
9078 lt_prog_compiler_static=
9079 fi
9080
9081
9082
9083
9084
9085
9086
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9088 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9089 if ${lt_cv_prog_compiler_c_o+:} false; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 lt_cv_prog_compiler_c_o=no
9093 $RM -r conftest 2>/dev/null
9094 mkdir conftest
9095 cd conftest
9096 mkdir out
9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098
9099 lt_compiler_flag="-o out/conftest2.$ac_objext"
9100 # Insert the option either (1) after the last *FLAGS variable, or
9101 # (2) before a word containing "conftest.", or (3) at the end.
9102 # Note that $ac_compile itself does not contain backslashes and begins
9103 # with a dollar sign (not a hyphen), so the echo should work correctly.
9104 lt_compile=`echo "$ac_compile" | $SED \
9105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107 -e 's:$: $lt_compiler_flag:'`
9108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9109 (eval "$lt_compile" 2>out/conftest.err)
9110 ac_status=$?
9111 cat out/conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9114 then
9115 # The compiler can only warn and ignore the option if not recognized
9116 # So say no if there are warnings
9117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9120 lt_cv_prog_compiler_c_o=yes
9121 fi
9122 fi
9123 chmod u+w . 2>&5
9124 $RM conftest*
9125 # SGI C++ compiler will create directory out/ii_files/ for
9126 # template instantiation
9127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9128 $RM out/* && rmdir out
9129 cd ..
9130 $RM -r conftest
9131 $RM conftest*
9132
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9135 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9136
9137
9138
9139
9140
9141
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9144 if ${lt_cv_prog_compiler_c_o+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 lt_cv_prog_compiler_c_o=no
9148 $RM -r conftest 2>/dev/null
9149 mkdir conftest
9150 cd conftest
9151 mkdir out
9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153
9154 lt_compiler_flag="-o out/conftest2.$ac_objext"
9155 # Insert the option either (1) after the last *FLAGS variable, or
9156 # (2) before a word containing "conftest.", or (3) at the end.
9157 # Note that $ac_compile itself does not contain backslashes and begins
9158 # with a dollar sign (not a hyphen), so the echo should work correctly.
9159 lt_compile=`echo "$ac_compile" | $SED \
9160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162 -e 's:$: $lt_compiler_flag:'`
9163 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9164 (eval "$lt_compile" 2>out/conftest.err)
9165 ac_status=$?
9166 cat out/conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9169 then
9170 # The compiler can only warn and ignore the option if not recognized
9171 # So say no if there are warnings
9172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9175 lt_cv_prog_compiler_c_o=yes
9176 fi
9177 fi
9178 chmod u+w . 2>&5
9179 $RM conftest*
9180 # SGI C++ compiler will create directory out/ii_files/ for
9181 # template instantiation
9182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9183 $RM out/* && rmdir out
9184 cd ..
9185 $RM -r conftest
9186 $RM conftest*
9187
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9191
9192
9193
9194
9195 hard_links=nottested
9196 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9197 # do not overwrite the value of need_locks provided by the user
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9199 $as_echo_n "checking if we can lock with hard links... " >&6; }
9200 hard_links=yes
9201 $RM conftest*
9202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203 touch conftest.a
9204 ln conftest.a conftest.b 2>&5 || hard_links=no
9205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9207 $as_echo "$hard_links" >&6; }
9208 if test no = "$hard_links"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9210 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9211 need_locks=warn
9212 fi
9213 else
9214 need_locks=no
9215 fi
9216
9217
9218
9219
9220
9221
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9223 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9224
9225 runpath_var=
9226 allow_undefined_flag=
9227 always_export_symbols=no
9228 archive_cmds=
9229 archive_expsym_cmds=
9230 compiler_needs_object=no
9231 enable_shared_with_static_runtimes=no
9232 export_dynamic_flag_spec=
9233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9234 hardcode_automatic=no
9235 hardcode_direct=no
9236 hardcode_direct_absolute=no
9237 hardcode_libdir_flag_spec=
9238 hardcode_libdir_separator=
9239 hardcode_minus_L=no
9240 hardcode_shlibpath_var=unsupported
9241 inherit_rpath=no
9242 link_all_deplibs=unknown
9243 module_cmds=
9244 module_expsym_cmds=
9245 old_archive_from_new_cmds=
9246 old_archive_from_expsyms_cmds=
9247 thread_safe_flag_spec=
9248 whole_archive_flag_spec=
9249 # include_expsyms should be a list of space-separated symbols to be *always*
9250 # included in the symbol list
9251 include_expsyms=
9252 # exclude_expsyms can be an extended regexp of symbols to exclude
9253 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9254 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9255 # as well as any symbol that contains 'd'.
9256 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9258 # platforms (ab)use it in PIC code, but their linkers get confused if
9259 # the symbol is explicitly referenced. Since portable code cannot
9260 # rely on this symbol name, it's probably fine to never include it in
9261 # preloaded symbol tables.
9262 # Exclude shared library initialization/finalization symbols.
9263 extract_expsyms_cmds=
9264
9265 case $host_os in
9266 cygwin* | mingw* | pw32* | cegcc*)
9267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9268 # When not using gcc, we currently assume that we are using
9269 # Microsoft Visual C++.
9270 if test yes != "$GCC"; then
9271 with_gnu_ld=no
9272 fi
9273 ;;
9274 interix*)
9275 # we just hope/assume this is gcc and not c89 (= MSVC++)
9276 with_gnu_ld=yes
9277 ;;
9278 openbsd* | bitrig*)
9279 with_gnu_ld=no
9280 ;;
9281 esac
9282
9283 ld_shlibs=yes
9284
9285 # On some targets, GNU ld is compatible enough with the native linker
9286 # that we're better off using the native interface for both.
9287 lt_use_gnu_ld_interface=no
9288 if test yes = "$with_gnu_ld"; then
9289 case $host_os in
9290 aix*)
9291 # The AIX port of GNU ld has always aspired to compatibility
9292 # with the native linker. However, as the warning in the GNU ld
9293 # block says, versions before 2.19.5* couldn't really create working
9294 # shared libraries, regardless of the interface used.
9295 case `$LD -v 2>&1` in
9296 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9297 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9298 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9299 *)
9300 lt_use_gnu_ld_interface=yes
9301 ;;
9302 esac
9303 ;;
9304 *)
9305 lt_use_gnu_ld_interface=yes
9306 ;;
9307 esac
9308 fi
9309
9310 if test yes = "$lt_use_gnu_ld_interface"; then
9311 # If archive_cmds runs LD, not CC, wlarc should be empty
9312 wlarc='$wl'
9313
9314 # Set some defaults for GNU ld with shared library support. These
9315 # are reset later if shared libraries are not supported. Putting them
9316 # here allows them to be overridden if necessary.
9317 runpath_var=LD_RUN_PATH
9318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9319 export_dynamic_flag_spec='$wl--export-dynamic'
9320 # ancient GNU ld didn't support --whole-archive et. al.
9321 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9322 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9323 else
9324 whole_archive_flag_spec=
9325 fi
9326 supports_anon_versioning=no
9327 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9328 *GNU\ gold*) supports_anon_versioning=yes ;;
9329 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9332 *\ 2.11.*) ;; # other 2.11 versions
9333 *) supports_anon_versioning=yes ;;
9334 esac
9335
9336 # See if GNU ld supports shared libraries.
9337 case $host_os in
9338 aix[3-9]*)
9339 # On AIX/PPC, the GNU linker is very broken
9340 if test ia64 != "$host_cpu"; then
9341 ld_shlibs=no
9342 cat <<_LT_EOF 1>&2
9343
9344 *** Warning: the GNU linker, at least up to release 2.19, is reported
9345 *** to be unable to reliably create shared libraries on AIX.
9346 *** Therefore, libtool is disabling shared libraries support. If you
9347 *** really care for shared libraries, you may want to install binutils
9348 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9349 *** You will then need to restart the configuration process.
9350
9351 _LT_EOF
9352 fi
9353 ;;
9354
9355 amigaos*)
9356 case $host_cpu in
9357 powerpc)
9358 # see comment about AmigaOS4 .so support
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9360 archive_expsym_cmds=''
9361 ;;
9362 m68k)
9363 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9366 ;;
9367 esac
9368 ;;
9369
9370 beos*)
9371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372 allow_undefined_flag=unsupported
9373 # Joseph Beckenbach <[email protected]> says some releases of gcc
9374 # support --undefined. This deserves some investigation. FIXME
9375 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380
9381 cygwin* | mingw* | pw32* | cegcc*)
9382 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9383 # as there is no search path for DLLs.
9384 hardcode_libdir_flag_spec='-L$libdir'
9385 export_dynamic_flag_spec='$wl--export-all-symbols'
9386 allow_undefined_flag=unsupported
9387 always_export_symbols=no
9388 enable_shared_with_static_runtimes=yes
9389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9390 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9391
9392 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9394 # If the export-symbols file already is a .def file, use it as
9395 # is; otherwise, prepend EXPORTS...
9396 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9397 cp $export_symbols $output_objdir/$soname.def;
9398 else
9399 echo EXPORTS > $output_objdir/$soname.def;
9400 cat $export_symbols >> $output_objdir/$soname.def;
9401 fi~
9402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9403 else
9404 ld_shlibs=no
9405 fi
9406 ;;
9407
9408 haiku*)
9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9410 link_all_deplibs=yes
9411 ;;
9412
9413 os2*)
9414 hardcode_libdir_flag_spec='-L$libdir'
9415 hardcode_minus_L=yes
9416 allow_undefined_flag=unsupported
9417 shrext_cmds=.dll
9418 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9419 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9420 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9421 $ECHO EXPORTS >> $output_objdir/$libname.def~
9422 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9423 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9424 emximp -o $lib $output_objdir/$libname.def'
9425 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9426 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9427 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9428 $ECHO EXPORTS >> $output_objdir/$libname.def~
9429 prefix_cmds="$SED"~
9430 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9431 prefix_cmds="$prefix_cmds -e 1d";
9432 fi~
9433 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9434 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9435 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9436 emximp -o $lib $output_objdir/$libname.def'
9437 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9438 enable_shared_with_static_runtimes=yes
9439 ;;
9440
9441 interix[3-9]*)
9442 hardcode_direct=no
9443 hardcode_shlibpath_var=no
9444 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9445 export_dynamic_flag_spec='$wl-E'
9446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9447 # Instead, shared libraries are loaded at an image base (0x10000000 by
9448 # default) and relocated if they conflict, which is a slow very memory
9449 # consuming and fragmenting process. To avoid this, we pick a random,
9450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9451 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9453 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9454 ;;
9455
9456 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9457 tmp_diet=no
9458 if test linux-dietlibc = "$host_os"; then
9459 case $cc_basename in
9460 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9461 esac
9462 fi
9463 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9464 && test no = "$tmp_diet"
9465 then
9466 tmp_addflag=' $pic_flag'
9467 tmp_sharedflag='-shared'
9468 case $cc_basename,$host_cpu in
9469 pgcc*) # Portland Group C compiler
9470 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9471 tmp_addflag=' $pic_flag'
9472 ;;
9473 pgf77* | pgf90* | pgf95* | pgfortran*)
9474 # Portland Group f77 and f90 compilers
9475 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9476 tmp_addflag=' $pic_flag -Mnomain' ;;
9477 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9478 tmp_addflag=' -i_dynamic' ;;
9479 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9480 tmp_addflag=' -i_dynamic -nofor_main' ;;
9481 ifc* | ifort*) # Intel Fortran compiler
9482 tmp_addflag=' -nofor_main' ;;
9483 lf95*) # Lahey Fortran 8.1
9484 whole_archive_flag_spec=
9485 tmp_sharedflag='--shared' ;;
9486 nagfor*) # NAGFOR 5.3
9487 tmp_sharedflag='-Wl,-shared' ;;
9488 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9489 tmp_sharedflag='-qmkshrobj'
9490 tmp_addflag= ;;
9491 nvcc*) # Cuda Compiler Driver 2.2
9492 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9493 compiler_needs_object=yes
9494 ;;
9495 esac
9496 case `$CC -V 2>&1 | sed 5q` in
9497 *Sun\ C*) # Sun C 5.9
9498 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9499 compiler_needs_object=yes
9500 tmp_sharedflag='-G' ;;
9501 *Sun\ F*) # Sun Fortran 8.3
9502 tmp_sharedflag='-G' ;;
9503 esac
9504 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9505
9506 if test yes = "$supports_anon_versioning"; then
9507 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9509 echo "local: *; };" >> $output_objdir/$libname.ver~
9510 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9511 fi
9512
9513 case $cc_basename in
9514 tcc*)
9515 export_dynamic_flag_spec='-rdynamic'
9516 ;;
9517 xlf* | bgf* | bgxlf* | mpixlf*)
9518 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9519 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9521 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9522 if test yes = "$supports_anon_versioning"; then
9523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9525 echo "local: *; };" >> $output_objdir/$libname.ver~
9526 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9527 fi
9528 ;;
9529 esac
9530 else
9531 ld_shlibs=no
9532 fi
9533 ;;
9534
9535 netbsd*)
9536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9537 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9538 wlarc=
9539 else
9540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9542 fi
9543 ;;
9544
9545 solaris*)
9546 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9547 ld_shlibs=no
9548 cat <<_LT_EOF 1>&2
9549
9550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9551 *** create shared libraries on Solaris systems. Therefore, libtool
9552 *** is disabling shared libraries support. We urge you to upgrade GNU
9553 *** binutils to release 2.9.1 or newer. Another option is to modify
9554 *** your PATH or compiler configuration so that the native linker is
9555 *** used, and then restart.
9556
9557 _LT_EOF
9558 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9561 else
9562 ld_shlibs=no
9563 fi
9564 ;;
9565
9566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9567 case `$LD -v 2>&1` in
9568 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9569 ld_shlibs=no
9570 cat <<_LT_EOF 1>&2
9571
9572 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9573 *** reliably create shared libraries on SCO systems. Therefore, libtool
9574 *** is disabling shared libraries support. We urge you to upgrade GNU
9575 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9576 *** your PATH or compiler configuration so that the native linker is
9577 *** used, and then restart.
9578
9579 _LT_EOF
9580 ;;
9581 *)
9582 # For security reasons, it is highly recommended that you always
9583 # use absolute paths for naming shared libraries, and exclude the
9584 # DT_RUNPATH tag from executables and libraries. But doing so
9585 # requires that you compile everything twice, which is a pain.
9586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9587 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9590 else
9591 ld_shlibs=no
9592 fi
9593 ;;
9594 esac
9595 ;;
9596
9597 sunos4*)
9598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9599 wlarc=
9600 hardcode_direct=yes
9601 hardcode_shlibpath_var=no
9602 ;;
9603
9604 *)
9605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9607 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9608 else
9609 ld_shlibs=no
9610 fi
9611 ;;
9612 esac
9613
9614 if test no = "$ld_shlibs"; then
9615 runpath_var=
9616 hardcode_libdir_flag_spec=
9617 export_dynamic_flag_spec=
9618 whole_archive_flag_spec=
9619 fi
9620 else
9621 # PORTME fill in a description of your system's linker (not GNU ld)
9622 case $host_os in
9623 aix3*)
9624 allow_undefined_flag=unsupported
9625 always_export_symbols=yes
9626 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9627 # Note: this linker hardcodes the directories in LIBPATH if there
9628 # are no directories specified by -L.
9629 hardcode_minus_L=yes
9630 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9631 # Neither direct hardcoding nor static linking is supported with a
9632 # broken collect2.
9633 hardcode_direct=unsupported
9634 fi
9635 ;;
9636
9637 aix[4-9]*)
9638 if test ia64 = "$host_cpu"; then
9639 # On IA64, the linker does run time linking by default, so we don't
9640 # have to do anything special.
9641 aix_use_runtimelinking=no
9642 exp_sym_flag='-Bexport'
9643 no_entry_flag=
9644 else
9645 # If we're using GNU nm, then we don't want the "-C" option.
9646 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9647 # Without the "-l" option, or with the "-B" option, AIX nm treats
9648 # weak defined symbols like other global defined symbols, whereas
9649 # GNU nm marks them as "W".
9650 # While the 'weak' keyword is ignored in the Export File, we need
9651 # it in the Import File for the 'aix-soname' feature, so we have
9652 # to replace the "-B" option with "-P" for AIX nm.
9653 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9654 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9655 else
9656 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9657 fi
9658 aix_use_runtimelinking=no
9659
9660 # Test if we are trying to use run time linking or normal
9661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9662 # have runtime linking enabled, and use it for executables.
9663 # For shared libraries, we enable/disable runtime linking
9664 # depending on the kind of the shared library created -
9665 # when "with_aix_soname,aix_use_runtimelinking" is:
9666 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9667 # "aix,yes" lib.so shared, rtl:yes, for executables
9668 # lib.a static archive
9669 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9670 # lib.a(lib.so.V) shared, rtl:no, for executables
9671 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9672 # lib.a(lib.so.V) shared, rtl:no
9673 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9674 # lib.a static archive
9675 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9676 for ld_flag in $LDFLAGS; do
9677 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9678 aix_use_runtimelinking=yes
9679 break
9680 fi
9681 done
9682 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9683 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9684 # so we don't have lib.a shared libs to link our executables.
9685 # We have to force runtime linking in this case.
9686 aix_use_runtimelinking=yes
9687 LDFLAGS="$LDFLAGS -Wl,-brtl"
9688 fi
9689 ;;
9690 esac
9691
9692 exp_sym_flag='-bexport'
9693 no_entry_flag='-bnoentry'
9694 fi
9695
9696 # When large executables or shared objects are built, AIX ld can
9697 # have problems creating the table of contents. If linking a library
9698 # or program results in "error TOC overflow" add -mminimal-toc to
9699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9701
9702 archive_cmds=''
9703 hardcode_direct=yes
9704 hardcode_direct_absolute=yes
9705 hardcode_libdir_separator=':'
9706 link_all_deplibs=yes
9707 file_list_spec='$wl-f,'
9708 case $with_aix_soname,$aix_use_runtimelinking in
9709 aix,*) ;; # traditional, no import file
9710 svr4,* | *,yes) # use import file
9711 # The Import File defines what to hardcode.
9712 hardcode_direct=no
9713 hardcode_direct_absolute=no
9714 ;;
9715 esac
9716
9717 if test yes = "$GCC"; then
9718 case $host_os in aix4.[012]|aix4.[012].*)
9719 # We only want to do this on AIX 4.2 and lower, the check
9720 # below for broken collect2 doesn't work under 4.3+
9721 collect2name=`$CC -print-prog-name=collect2`
9722 if test -f "$collect2name" &&
9723 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9724 then
9725 # We have reworked collect2
9726 :
9727 else
9728 # We have old collect2
9729 hardcode_direct=unsupported
9730 # It fails to find uninstalled libraries when the uninstalled
9731 # path is not listed in the libpath. Setting hardcode_minus_L
9732 # to unsupported forces relinking
9733 hardcode_minus_L=yes
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_libdir_separator=
9736 fi
9737 ;;
9738 esac
9739 shared_flag='-shared'
9740 if test yes = "$aix_use_runtimelinking"; then
9741 shared_flag="$shared_flag "'$wl-G'
9742 fi
9743 # Need to ensure runtime linking is disabled for the traditional
9744 # shared library, or the linker may eventually find shared libraries
9745 # /with/ Import File - we do not want to mix them.
9746 shared_flag_aix='-shared'
9747 shared_flag_svr4='-shared $wl-G'
9748 else
9749 # not using gcc
9750 if test ia64 = "$host_cpu"; then
9751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9752 # chokes on -Wl,-G. The following line is correct:
9753 shared_flag='-G'
9754 else
9755 if test yes = "$aix_use_runtimelinking"; then
9756 shared_flag='$wl-G'
9757 else
9758 shared_flag='$wl-bM:SRE'
9759 fi
9760 shared_flag_aix='$wl-bM:SRE'
9761 shared_flag_svr4='$wl-G'
9762 fi
9763 fi
9764
9765 export_dynamic_flag_spec='$wl-bexpall'
9766 # It seems that -bexpall does not export symbols beginning with
9767 # underscore (_), so it is better to generate a list of symbols to export.
9768 always_export_symbols=yes
9769 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9770 # Warning - without using the other runtime loading flags (-brtl),
9771 # -berok will link without error, but may produce a broken library.
9772 allow_undefined_flag='-berok'
9773 # Determine the default libpath from the value encoded in an
9774 # empty executable.
9775 if test set = "${lt_cv_aix_libpath+set}"; then
9776 aix_libpath=$lt_cv_aix_libpath
9777 else
9778 if ${lt_cv_aix_libpath_+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783
9784 int
9785 main ()
9786 {
9787
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793
9794 lt_aix_libpath_sed='
9795 /Import File Strings/,/^$/ {
9796 /^0/ {
9797 s/^0 *\([^ ]*\) *$/\1/
9798 p
9799 }
9800 }'
9801 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 # Check for a 64-bit object if we didn't find anything.
9803 if test -z "$lt_cv_aix_libpath_"; then
9804 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805 fi
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 if test -z "$lt_cv_aix_libpath_"; then
9810 lt_cv_aix_libpath_=/usr/lib:/lib
9811 fi
9812
9813 fi
9814
9815 aix_libpath=$lt_cv_aix_libpath_
9816 fi
9817
9818 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9819 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9820 else
9821 if test ia64 = "$host_cpu"; then
9822 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9823 allow_undefined_flag="-z nodefs"
9824 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9825 else
9826 # Determine the default libpath from the value encoded in an
9827 # empty executable.
9828 if test set = "${lt_cv_aix_libpath+set}"; then
9829 aix_libpath=$lt_cv_aix_libpath
9830 else
9831 if ${lt_cv_aix_libpath_+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836
9837 int
9838 main ()
9839 {
9840
9841 ;
9842 return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846
9847 lt_aix_libpath_sed='
9848 /Import File Strings/,/^$/ {
9849 /^0/ {
9850 s/^0 *\([^ ]*\) *$/\1/
9851 p
9852 }
9853 }'
9854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 # Check for a 64-bit object if we didn't find anything.
9856 if test -z "$lt_cv_aix_libpath_"; then
9857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858 fi
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 if test -z "$lt_cv_aix_libpath_"; then
9863 lt_cv_aix_libpath_=/usr/lib:/lib
9864 fi
9865
9866 fi
9867
9868 aix_libpath=$lt_cv_aix_libpath_
9869 fi
9870
9871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9872 # Warning - without using the other run time loading flags,
9873 # -berok will link without error, but may produce a broken library.
9874 no_undefined_flag=' $wl-bernotok'
9875 allow_undefined_flag=' $wl-berok'
9876 if test yes = "$with_gnu_ld"; then
9877 # We only use this code for GNU lds that support --whole-archive.
9878 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9879 else
9880 # Exported symbols can be pulled into shared objects from archives
9881 whole_archive_flag_spec='$convenience'
9882 fi
9883 archive_cmds_need_lc=yes
9884 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9885 # -brtl affects multiple linker settings, -berok does not and is overridden later
9886 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9887 if test svr4 != "$with_aix_soname"; then
9888 # This is similar to how AIX traditionally builds its shared libraries.
9889 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9890 fi
9891 if test aix != "$with_aix_soname"; then
9892 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9893 else
9894 # used by -dlpreopen to get the symbols
9895 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9896 fi
9897 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9898 fi
9899 fi
9900 ;;
9901
9902 amigaos*)
9903 case $host_cpu in
9904 powerpc)
9905 # see comment about AmigaOS4 .so support
9906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9907 archive_expsym_cmds=''
9908 ;;
9909 m68k)
9910 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9911 hardcode_libdir_flag_spec='-L$libdir'
9912 hardcode_minus_L=yes
9913 ;;
9914 esac
9915 ;;
9916
9917 bsdi[45]*)
9918 export_dynamic_flag_spec=-rdynamic
9919 ;;
9920
9921 cygwin* | mingw* | pw32* | cegcc*)
9922 # When not using gcc, we currently assume that we are using
9923 # Microsoft Visual C++.
9924 # hardcode_libdir_flag_spec is actually meaningless, as there is
9925 # no search path for DLLs.
9926 case $cc_basename in
9927 cl*)
9928 # Native MSVC
9929 hardcode_libdir_flag_spec=' '
9930 allow_undefined_flag=unsupported
9931 always_export_symbols=yes
9932 file_list_spec='@'
9933 # Tell ltmain to make .lib files, not .a files.
9934 libext=lib
9935 # Tell ltmain to make .dll files, not .so files.
9936 shrext_cmds=.dll
9937 # FIXME: Setting linknames here is a bad hack.
9938 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9939 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9940 cp "$export_symbols" "$output_objdir/$soname.def";
9941 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9942 else
9943 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9944 fi~
9945 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9946 linknames='
9947 # The linker will not automatically build a static lib if we build a DLL.
9948 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9949 enable_shared_with_static_runtimes=yes
9950 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9952 # Don't use ranlib
9953 old_postinstall_cmds='chmod 644 $oldlib'
9954 postlink_cmds='lt_outputfile="@OUTPUT@"~
9955 lt_tool_outputfile="@TOOL_OUTPUT@"~
9956 case $lt_outputfile in
9957 *.exe|*.EXE) ;;
9958 *)
9959 lt_outputfile=$lt_outputfile.exe
9960 lt_tool_outputfile=$lt_tool_outputfile.exe
9961 ;;
9962 esac~
9963 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9964 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9965 $RM "$lt_outputfile.manifest";
9966 fi'
9967 ;;
9968 *)
9969 # Assume MSVC wrapper
9970 hardcode_libdir_flag_spec=' '
9971 allow_undefined_flag=unsupported
9972 # Tell ltmain to make .lib files, not .a files.
9973 libext=lib
9974 # Tell ltmain to make .dll files, not .so files.
9975 shrext_cmds=.dll
9976 # FIXME: Setting linknames here is a bad hack.
9977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9978 # The linker will automatically build a .lib file if we build a DLL.
9979 old_archive_from_new_cmds='true'
9980 # FIXME: Should let the user specify the lib program.
9981 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9982 enable_shared_with_static_runtimes=yes
9983 ;;
9984 esac
9985 ;;
9986
9987 darwin* | rhapsody*)
9988
9989
9990 archive_cmds_need_lc=no
9991 hardcode_direct=no
9992 hardcode_automatic=yes
9993 hardcode_shlibpath_var=unsupported
9994 if test yes = "$lt_cv_ld_force_load"; then
9995 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9996
9997 else
9998 whole_archive_flag_spec=''
9999 fi
10000 link_all_deplibs=yes
10001 allow_undefined_flag=$_lt_dar_allow_undefined
10002 case $cc_basename in
10003 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10004 *) _lt_dar_can_shared=$GCC ;;
10005 esac
10006 if test yes = "$_lt_dar_can_shared"; then
10007 output_verbose_link_cmd=func_echo_all
10008 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10009 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10010 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10011 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10012
10013 else
10014 ld_shlibs=no
10015 fi
10016
10017 ;;
10018
10019 dgux*)
10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 hardcode_libdir_flag_spec='-L$libdir'
10022 hardcode_shlibpath_var=no
10023 ;;
10024
10025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10026 # support. Future versions do this automatically, but an explicit c++rt0.o
10027 # does not break anything, and helps significantly (at the cost of a little
10028 # extra space).
10029 freebsd2.2*)
10030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10031 hardcode_libdir_flag_spec='-R$libdir'
10032 hardcode_direct=yes
10033 hardcode_shlibpath_var=no
10034 ;;
10035
10036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10037 freebsd2.*)
10038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct=yes
10040 hardcode_minus_L=yes
10041 hardcode_shlibpath_var=no
10042 ;;
10043
10044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10045 freebsd* | dragonfly*)
10046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10047 hardcode_libdir_flag_spec='-R$libdir'
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10050 ;;
10051
10052 hpux9*)
10053 if test yes = "$GCC"; then
10054 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10055 else
10056 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10057 fi
10058 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10059 hardcode_libdir_separator=:
10060 hardcode_direct=yes
10061
10062 # hardcode_minus_L: Not really in the search PATH,
10063 # but as the default location of the library.
10064 hardcode_minus_L=yes
10065 export_dynamic_flag_spec='$wl-E'
10066 ;;
10067
10068 hpux10*)
10069 if test yes,no = "$GCC,$with_gnu_ld"; then
10070 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071 else
10072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10073 fi
10074 if test no = "$with_gnu_ld"; then
10075 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10076 hardcode_libdir_separator=:
10077 hardcode_direct=yes
10078 hardcode_direct_absolute=yes
10079 export_dynamic_flag_spec='$wl-E'
10080 # hardcode_minus_L: Not really in the search PATH,
10081 # but as the default location of the library.
10082 hardcode_minus_L=yes
10083 fi
10084 ;;
10085
10086 hpux11*)
10087 if test yes,no = "$GCC,$with_gnu_ld"; then
10088 case $host_cpu in
10089 hppa*64*)
10090 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 ;;
10092 ia64*)
10093 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10094 ;;
10095 *)
10096 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10097 ;;
10098 esac
10099 else
10100 case $host_cpu in
10101 hppa*64*)
10102 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 ;;
10104 ia64*)
10105 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10106 ;;
10107 *)
10108
10109 # Older versions of the 11.00 compiler do not understand -b yet
10110 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10112 $as_echo_n "checking if $CC understands -b... " >&6; }
10113 if ${lt_cv_prog_compiler__b+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 lt_cv_prog_compiler__b=no
10117 save_LDFLAGS=$LDFLAGS
10118 LDFLAGS="$LDFLAGS -b"
10119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10121 # The linker can only warn and ignore the option if not recognized
10122 # So say no if there are warnings
10123 if test -s conftest.err; then
10124 # Append any errors to the config.log.
10125 cat conftest.err 1>&5
10126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10128 if diff conftest.exp conftest.er2 >/dev/null; then
10129 lt_cv_prog_compiler__b=yes
10130 fi
10131 else
10132 lt_cv_prog_compiler__b=yes
10133 fi
10134 fi
10135 $RM -r conftest*
10136 LDFLAGS=$save_LDFLAGS
10137
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10140 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10141
10142 if test yes = "$lt_cv_prog_compiler__b"; then
10143 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10144 else
10145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10146 fi
10147
10148 ;;
10149 esac
10150 fi
10151 if test no = "$with_gnu_ld"; then
10152 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10153 hardcode_libdir_separator=:
10154
10155 case $host_cpu in
10156 hppa*64*|ia64*)
10157 hardcode_direct=no
10158 hardcode_shlibpath_var=no
10159 ;;
10160 *)
10161 hardcode_direct=yes
10162 hardcode_direct_absolute=yes
10163 export_dynamic_flag_spec='$wl-E'
10164
10165 # hardcode_minus_L: Not really in the search PATH,
10166 # but as the default location of the library.
10167 hardcode_minus_L=yes
10168 ;;
10169 esac
10170 fi
10171 ;;
10172
10173 irix5* | irix6* | nonstopux*)
10174 if test yes = "$GCC"; then
10175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10176 # Try to use the -exported_symbol ld option, if it does not
10177 # work, assume that -exports_file does not work either and
10178 # implicitly export all symbols.
10179 # This should be the same for all languages, so no per-tag cache variable.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10181 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10182 if ${lt_cv_irix_exported_symbol+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 save_LDFLAGS=$LDFLAGS
10186 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 int foo (void) { return 0; }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 lt_cv_irix_exported_symbol=yes
10193 else
10194 lt_cv_irix_exported_symbol=no
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 LDFLAGS=$save_LDFLAGS
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10201 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10202 if test yes = "$lt_cv_irix_exported_symbol"; then
10203 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10204 fi
10205 else
10206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10208 fi
10209 archive_cmds_need_lc='no'
10210 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10211 hardcode_libdir_separator=:
10212 inherit_rpath=yes
10213 link_all_deplibs=yes
10214 ;;
10215
10216 linux*)
10217 case $cc_basename in
10218 tcc*)
10219 # Fabrice Bellard et al's Tiny C Compiler
10220 ld_shlibs=yes
10221 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10222 ;;
10223 esac
10224 ;;
10225
10226 netbsd*)
10227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10229 else
10230 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10231 fi
10232 hardcode_libdir_flag_spec='-R$libdir'
10233 hardcode_direct=yes
10234 hardcode_shlibpath_var=no
10235 ;;
10236
10237 newsos6)
10238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_direct=yes
10240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10241 hardcode_libdir_separator=:
10242 hardcode_shlibpath_var=no
10243 ;;
10244
10245 *nto* | *qnx*)
10246 ;;
10247
10248 openbsd* | bitrig*)
10249 if test -f /usr/libexec/ld.so; then
10250 hardcode_direct=yes
10251 hardcode_shlibpath_var=no
10252 hardcode_direct_absolute=yes
10253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10255 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10256 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10257 export_dynamic_flag_spec='$wl-E'
10258 else
10259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10260 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10261 fi
10262 else
10263 ld_shlibs=no
10264 fi
10265 ;;
10266
10267 os2*)
10268 hardcode_libdir_flag_spec='-L$libdir'
10269 hardcode_minus_L=yes
10270 allow_undefined_flag=unsupported
10271 shrext_cmds=.dll
10272 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10275 $ECHO EXPORTS >> $output_objdir/$libname.def~
10276 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10277 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10278 emximp -o $lib $output_objdir/$libname.def'
10279 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10280 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10281 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10282 $ECHO EXPORTS >> $output_objdir/$libname.def~
10283 prefix_cmds="$SED"~
10284 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10285 prefix_cmds="$prefix_cmds -e 1d";
10286 fi~
10287 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10288 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10289 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10290 emximp -o $lib $output_objdir/$libname.def'
10291 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10292 enable_shared_with_static_runtimes=yes
10293 ;;
10294
10295 osf3*)
10296 if test yes = "$GCC"; then
10297 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10298 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10299 else
10300 allow_undefined_flag=' -expect_unresolved \*'
10301 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10302 fi
10303 archive_cmds_need_lc='no'
10304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10305 hardcode_libdir_separator=:
10306 ;;
10307
10308 osf4* | osf5*) # as osf3* with the addition of -msym flag
10309 if test yes = "$GCC"; then
10310 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10311 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10313 else
10314 allow_undefined_flag=' -expect_unresolved \*'
10315 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10316 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10317 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10318
10319 # Both c and cxx compiler support -rpath directly
10320 hardcode_libdir_flag_spec='-rpath $libdir'
10321 fi
10322 archive_cmds_need_lc='no'
10323 hardcode_libdir_separator=:
10324 ;;
10325
10326 solaris*)
10327 no_undefined_flag=' -z defs'
10328 if test yes = "$GCC"; then
10329 wlarc='$wl'
10330 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10332 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10333 else
10334 case `$CC -V 2>&1` in
10335 *"Compilers 5.0"*)
10336 wlarc=''
10337 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10339 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10340 ;;
10341 *)
10342 wlarc='$wl'
10343 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10345 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10346 ;;
10347 esac
10348 fi
10349 hardcode_libdir_flag_spec='-R$libdir'
10350 hardcode_shlibpath_var=no
10351 case $host_os in
10352 solaris2.[0-5] | solaris2.[0-5].*) ;;
10353 *)
10354 # The compiler driver will combine and reorder linker options,
10355 # but understands '-z linker_flag'. GCC discards it without '$wl',
10356 # but is careful enough not to reorder.
10357 # Supported since Solaris 2.6 (maybe 2.5.1?)
10358 if test yes = "$GCC"; then
10359 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10360 else
10361 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10362 fi
10363 ;;
10364 esac
10365 link_all_deplibs=yes
10366 ;;
10367
10368 sunos4*)
10369 if test sequent = "$host_vendor"; then
10370 # Use $CC to link under sequent, because it throws in some extra .o
10371 # files that make .init and .fini sections work.
10372 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10373 else
10374 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10375 fi
10376 hardcode_libdir_flag_spec='-L$libdir'
10377 hardcode_direct=yes
10378 hardcode_minus_L=yes
10379 hardcode_shlibpath_var=no
10380 ;;
10381
10382 sysv4)
10383 case $host_vendor in
10384 sni)
10385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10386 hardcode_direct=yes # is this really true???
10387 ;;
10388 siemens)
10389 ## LD is ld it makes a PLAMLIB
10390 ## CC just makes a GrossModule.
10391 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10392 reload_cmds='$CC -r -o $output$reload_objs'
10393 hardcode_direct=no
10394 ;;
10395 motorola)
10396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10397 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10398 ;;
10399 esac
10400 runpath_var='LD_RUN_PATH'
10401 hardcode_shlibpath_var=no
10402 ;;
10403
10404 sysv4.3*)
10405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_shlibpath_var=no
10407 export_dynamic_flag_spec='-Bexport'
10408 ;;
10409
10410 sysv4*MP*)
10411 if test -d /usr/nec; then
10412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413 hardcode_shlibpath_var=no
10414 runpath_var=LD_RUN_PATH
10415 hardcode_runpath_var=yes
10416 ld_shlibs=yes
10417 fi
10418 ;;
10419
10420 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10421 no_undefined_flag='$wl-z,text'
10422 archive_cmds_need_lc=no
10423 hardcode_shlibpath_var=no
10424 runpath_var='LD_RUN_PATH'
10425
10426 if test yes = "$GCC"; then
10427 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 else
10430 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 fi
10433 ;;
10434
10435 sysv5* | sco3.2v5* | sco5v6*)
10436 # Note: We CANNOT use -z defs as we might desire, because we do not
10437 # link with -lc, and that would cause any symbols used from libc to
10438 # always be unresolved, which means just about no library would
10439 # ever link correctly. If we're not using GNU ld we use -z text
10440 # though, which does catch some bad symbols but isn't as heavy-handed
10441 # as -z defs.
10442 no_undefined_flag='$wl-z,text'
10443 allow_undefined_flag='$wl-z,nodefs'
10444 archive_cmds_need_lc=no
10445 hardcode_shlibpath_var=no
10446 hardcode_libdir_flag_spec='$wl-R,$libdir'
10447 hardcode_libdir_separator=':'
10448 link_all_deplibs=yes
10449 export_dynamic_flag_spec='$wl-Bexport'
10450 runpath_var='LD_RUN_PATH'
10451
10452 if test yes = "$GCC"; then
10453 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10454 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 else
10456 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 fi
10459 ;;
10460
10461 uts4*)
10462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10463 hardcode_libdir_flag_spec='-L$libdir'
10464 hardcode_shlibpath_var=no
10465 ;;
10466
10467 *)
10468 ld_shlibs=no
10469 ;;
10470 esac
10471
10472 if test sni = "$host_vendor"; then
10473 case $host in
10474 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10475 export_dynamic_flag_spec='$wl-Blargedynsym'
10476 ;;
10477 esac
10478 fi
10479 fi
10480
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10482 $as_echo "$ld_shlibs" >&6; }
10483 test no = "$ld_shlibs" && can_build_shared=no
10484
10485 with_gnu_ld=$with_gnu_ld
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501 #
10502 # Do we need to explicitly link libc?
10503 #
10504 case "x$archive_cmds_need_lc" in
10505 x|xyes)
10506 # Assume -lc should be added
10507 archive_cmds_need_lc=yes
10508
10509 if test yes,yes = "$GCC,$enable_shared"; then
10510 case $archive_cmds in
10511 *'~'*)
10512 # FIXME: we may have to deal with multi-command sequences.
10513 ;;
10514 '$CC '*)
10515 # Test whether the compiler implicitly links with -lc since on some
10516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10517 # to ld, don't add -lc before -lgcc.
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10519 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10520 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 $RM conftest*
10524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10525
10526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10527 (eval $ac_compile) 2>&5
10528 ac_status=$?
10529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10530 test $ac_status = 0; } 2>conftest.err; then
10531 soname=conftest
10532 lib=conftest
10533 libobjs=conftest.$ac_objext
10534 deplibs=
10535 wl=$lt_prog_compiler_wl
10536 pic_flag=$lt_prog_compiler_pic
10537 compiler_flags=-v
10538 linker_flags=-v
10539 verstring=
10540 output_objdir=.
10541 libname=conftest
10542 lt_save_allow_undefined_flag=$allow_undefined_flag
10543 allow_undefined_flag=
10544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10545 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10546 ac_status=$?
10547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10548 test $ac_status = 0; }
10549 then
10550 lt_cv_archive_cmds_need_lc=no
10551 else
10552 lt_cv_archive_cmds_need_lc=yes
10553 fi
10554 allow_undefined_flag=$lt_save_allow_undefined_flag
10555 else
10556 cat conftest.err 1>&5
10557 fi
10558 $RM conftest*
10559
10560 fi
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10562 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10563 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10564 ;;
10565 esac
10566 fi
10567 ;;
10568 esac
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10723
10724 if test yes = "$GCC"; then
10725 case $host_os in
10726 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10727 *) lt_awk_arg='/^libraries:/' ;;
10728 esac
10729 case $host_os in
10730 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10731 *) lt_sed_strip_eq='s|=/|/|g' ;;
10732 esac
10733 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10734 case $lt_search_path_spec in
10735 *\;*)
10736 # if the path contains ";" then we assume it to be the separator
10737 # otherwise default to the standard path separator (i.e. ":") - it is
10738 # assumed that no part of a normal pathname contains ";" but that should
10739 # okay in the real world where ";" in dirpaths is itself problematic.
10740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10741 ;;
10742 *)
10743 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10744 ;;
10745 esac
10746 # Ok, now we have the path, separated by spaces, we can step through it
10747 # and add multilib dir if necessary...
10748 lt_tmp_lt_search_path_spec=
10749 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10750 # ...but if some path component already ends with the multilib dir we assume
10751 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10752 case "$lt_multi_os_dir; $lt_search_path_spec " in
10753 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10754 lt_multi_os_dir=
10755 ;;
10756 esac
10757 for lt_sys_path in $lt_search_path_spec; do
10758 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10759 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10760 elif test -n "$lt_multi_os_dir"; then
10761 test -d "$lt_sys_path" && \
10762 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10763 fi
10764 done
10765 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10766 BEGIN {RS = " "; FS = "/|\n";} {
10767 lt_foo = "";
10768 lt_count = 0;
10769 for (lt_i = NF; lt_i > 0; lt_i--) {
10770 if ($lt_i != "" && $lt_i != ".") {
10771 if ($lt_i == "..") {
10772 lt_count++;
10773 } else {
10774 if (lt_count == 0) {
10775 lt_foo = "/" $lt_i lt_foo;
10776 } else {
10777 lt_count--;
10778 }
10779 }
10780 }
10781 }
10782 if (lt_foo != "") { lt_freq[lt_foo]++; }
10783 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10784 }'`
10785 # AWK program above erroneously prepends '/' to C:/dos/paths
10786 # for these hosts.
10787 case $host_os in
10788 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10789 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10790 esac
10791 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10792 else
10793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10794 fi
10795 library_names_spec=
10796 libname_spec='lib$name'
10797 soname_spec=
10798 shrext_cmds=.so
10799 postinstall_cmds=
10800 postuninstall_cmds=
10801 finish_cmds=
10802 finish_eval=
10803 shlibpath_var=
10804 shlibpath_overrides_runpath=unknown
10805 version_type=none
10806 dynamic_linker="$host_os ld.so"
10807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10808 need_lib_prefix=unknown
10809 hardcode_into_libs=no
10810
10811 # when you set need_version to no, make sure it does not cause -set_version
10812 # flags to be left without arguments
10813 need_version=unknown
10814
10815
10816
10817 case $host_os in
10818 aix3*)
10819 version_type=linux # correct to gnu/linux during the next big refactor
10820 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10821 shlibpath_var=LIBPATH
10822
10823 # AIX 3 has no versioning support, so we append a major version to the name.
10824 soname_spec='$libname$release$shared_ext$major'
10825 ;;
10826
10827 aix[4-9]*)
10828 version_type=linux # correct to gnu/linux during the next big refactor
10829 need_lib_prefix=no
10830 need_version=no
10831 hardcode_into_libs=yes
10832 if test ia64 = "$host_cpu"; then
10833 # AIX 5 supports IA64
10834 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 else
10837 # With GCC up to 2.95.x, collect2 would create an import file
10838 # for dependence libraries. The import file would start with
10839 # the line '#! .'. This would cause the generated library to
10840 # depend on '.', always an invalid library. This was fixed in
10841 # development snapshots of GCC prior to 3.0.
10842 case $host_os in
10843 aix4 | aix4.[01] | aix4.[01].*)
10844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10845 echo ' yes '
10846 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10847 :
10848 else
10849 can_build_shared=no
10850 fi
10851 ;;
10852 esac
10853 # Using Import Files as archive members, it is possible to support
10854 # filename-based versioning of shared library archives on AIX. While
10855 # this would work for both with and without runtime linking, it will
10856 # prevent static linking of such archives. So we do filename-based
10857 # shared library versioning with .so extension only, which is used
10858 # when both runtime linking and shared linking is enabled.
10859 # Unfortunately, runtime linking may impact performance, so we do
10860 # not want this to be the default eventually. Also, we use the
10861 # versioned .so libs for executables only if there is the -brtl
10862 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10863 # To allow for filename-based versioning support, we need to create
10864 # libNAME.so.V as an archive file, containing:
10865 # *) an Import File, referring to the versioned filename of the
10866 # archive as well as the shared archive member, telling the
10867 # bitwidth (32 or 64) of that shared object, and providing the
10868 # list of exported symbols of that shared object, eventually
10869 # decorated with the 'weak' keyword
10870 # *) the shared object with the F_LOADONLY flag set, to really avoid
10871 # it being seen by the linker.
10872 # At run time we better use the real file rather than another symlink,
10873 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10874
10875 case $with_aix_soname,$aix_use_runtimelinking in
10876 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10877 # soname into executable. Probably we can add versioning support to
10878 # collect2, so additional links can be useful in future.
10879 aix,yes) # traditional libtool
10880 dynamic_linker='AIX unversionable lib.so'
10881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10882 # instead of lib<name>.a to let people know that these are not
10883 # typical AIX shared libraries.
10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10885 ;;
10886 aix,no) # traditional AIX only
10887 dynamic_linker='AIX lib.a(lib.so.V)'
10888 # We preserve .a as extension for shared libraries through AIX4.2
10889 # and later when we are not doing run time linking.
10890 library_names_spec='$libname$release.a $libname.a'
10891 soname_spec='$libname$release$shared_ext$major'
10892 ;;
10893 svr4,*) # full svr4 only
10894 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10895 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10896 # We do not specify a path in Import Files, so LIBPATH fires.
10897 shlibpath_overrides_runpath=yes
10898 ;;
10899 *,yes) # both, prefer svr4
10900 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10901 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10902 # unpreferred sharedlib libNAME.a needs extra handling
10903 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10904 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10905 # We do not specify a path in Import Files, so LIBPATH fires.
10906 shlibpath_overrides_runpath=yes
10907 ;;
10908 *,no) # both, prefer aix
10909 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10910 library_names_spec='$libname$release.a $libname.a'
10911 soname_spec='$libname$release$shared_ext$major'
10912 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10913 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10914 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10915 ;;
10916 esac
10917 shlibpath_var=LIBPATH
10918 fi
10919 ;;
10920
10921 amigaos*)
10922 case $host_cpu in
10923 powerpc)
10924 # Since July 2007 AmigaOS4 officially supports .so libraries.
10925 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10927 ;;
10928 m68k)
10929 library_names_spec='$libname.ixlibrary $libname.a'
10930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10931 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10932 ;;
10933 esac
10934 ;;
10935
10936 beos*)
10937 library_names_spec='$libname$shared_ext'
10938 dynamic_linker="$host_os ld.so"
10939 shlibpath_var=LIBRARY_PATH
10940 ;;
10941
10942 bsdi[45]*)
10943 version_type=linux # correct to gnu/linux during the next big refactor
10944 need_version=no
10945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946 soname_spec='$libname$release$shared_ext$major'
10947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10950 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10951 # the default ld.so.conf also contains /usr/contrib/lib and
10952 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10953 # libtool to hard-code these into programs
10954 ;;
10955
10956 cygwin* | mingw* | pw32* | cegcc*)
10957 version_type=windows
10958 shrext_cmds=.dll
10959 need_version=no
10960 need_lib_prefix=no
10961
10962 case $GCC,$cc_basename in
10963 yes,*)
10964 # gcc
10965 library_names_spec='$libname.dll.a'
10966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10967 postinstall_cmds='base_file=`basename \$file`~
10968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10969 dldir=$destdir/`dirname \$dlpath`~
10970 test -d \$dldir || mkdir -p \$dldir~
10971 $install_prog $dir/$dlname \$dldir/$dlname~
10972 chmod a+x \$dldir/$dlname~
10973 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10974 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10975 fi'
10976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10977 dlpath=$dir/\$dldll~
10978 $RM \$dlpath'
10979 shlibpath_overrides_runpath=yes
10980
10981 case $host_os in
10982 cygwin*)
10983 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10984 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10985
10986 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10987 ;;
10988 mingw* | cegcc*)
10989 # MinGW DLLs use traditional 'lib' prefix
10990 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10991 ;;
10992 pw32*)
10993 # pw32 DLLs use 'pw' prefix rather than 'lib'
10994 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10995 ;;
10996 esac
10997 dynamic_linker='Win32 ld.exe'
10998 ;;
10999
11000 *,cl*)
11001 # Native MSVC
11002 libname_spec='$name'
11003 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11004 library_names_spec='$libname.dll.lib'
11005
11006 case $build_os in
11007 mingw*)
11008 sys_lib_search_path_spec=
11009 lt_save_ifs=$IFS
11010 IFS=';'
11011 for lt_path in $LIB
11012 do
11013 IFS=$lt_save_ifs
11014 # Let DOS variable expansion print the short 8.3 style file name.
11015 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11016 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11017 done
11018 IFS=$lt_save_ifs
11019 # Convert to MSYS style.
11020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11021 ;;
11022 cygwin*)
11023 # Convert to unix form, then to dos form, then back to unix form
11024 # but this time dos style (no spaces!) so that the unix form looks
11025 # like /cygdrive/c/PROGRA~1:/cygdr...
11026 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11027 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11028 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11029 ;;
11030 *)
11031 sys_lib_search_path_spec=$LIB
11032 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11033 # It is most probably a Windows format PATH.
11034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11035 else
11036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11037 fi
11038 # FIXME: find the short name or the path components, as spaces are
11039 # common. (e.g. "Program Files" -> "PROGRA~1")
11040 ;;
11041 esac
11042
11043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11044 postinstall_cmds='base_file=`basename \$file`~
11045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11046 dldir=$destdir/`dirname \$dlpath`~
11047 test -d \$dldir || mkdir -p \$dldir~
11048 $install_prog $dir/$dlname \$dldir/$dlname'
11049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11050 dlpath=$dir/\$dldll~
11051 $RM \$dlpath'
11052 shlibpath_overrides_runpath=yes
11053 dynamic_linker='Win32 link.exe'
11054 ;;
11055
11056 *)
11057 # Assume MSVC wrapper
11058 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11059 dynamic_linker='Win32 ld.exe'
11060 ;;
11061 esac
11062 # FIXME: first we should search . and the directory the executable is in
11063 shlibpath_var=PATH
11064 ;;
11065
11066 darwin* | rhapsody*)
11067 dynamic_linker="$host_os dyld"
11068 version_type=darwin
11069 need_lib_prefix=no
11070 need_version=no
11071 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11072 soname_spec='$libname$release$major$shared_ext'
11073 shlibpath_overrides_runpath=yes
11074 shlibpath_var=DYLD_LIBRARY_PATH
11075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11076
11077 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11079 ;;
11080
11081 dgux*)
11082 version_type=linux # correct to gnu/linux during the next big refactor
11083 need_lib_prefix=no
11084 need_version=no
11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11086 soname_spec='$libname$release$shared_ext$major'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 ;;
11089
11090 freebsd* | dragonfly*)
11091 # DragonFly does not have aout. When/if they implement a new
11092 # versioning mechanism, adjust this.
11093 if test -x /usr/bin/objformat; then
11094 objformat=`/usr/bin/objformat`
11095 else
11096 case $host_os in
11097 freebsd[23].*) objformat=aout ;;
11098 *) objformat=elf ;;
11099 esac
11100 fi
11101 version_type=freebsd-$objformat
11102 case $version_type in
11103 freebsd-elf*)
11104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11105 soname_spec='$libname$release$shared_ext$major'
11106 need_version=no
11107 need_lib_prefix=no
11108 ;;
11109 freebsd-*)
11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11111 need_version=yes
11112 ;;
11113 esac
11114 shlibpath_var=LD_LIBRARY_PATH
11115 case $host_os in
11116 freebsd2.*)
11117 shlibpath_overrides_runpath=yes
11118 ;;
11119 freebsd3.[01]* | freebsdelf3.[01]*)
11120 shlibpath_overrides_runpath=yes
11121 hardcode_into_libs=yes
11122 ;;
11123 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11124 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11125 shlibpath_overrides_runpath=no
11126 hardcode_into_libs=yes
11127 ;;
11128 *) # from 4.6 on, and DragonFly
11129 shlibpath_overrides_runpath=yes
11130 hardcode_into_libs=yes
11131 ;;
11132 esac
11133 ;;
11134
11135 haiku*)
11136 version_type=linux # correct to gnu/linux during the next big refactor
11137 need_lib_prefix=no
11138 need_version=no
11139 dynamic_linker="$host_os runtime_loader"
11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11141 soname_spec='$libname$release$shared_ext$major'
11142 shlibpath_var=LIBRARY_PATH
11143 shlibpath_overrides_runpath=no
11144 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11145 hardcode_into_libs=yes
11146 ;;
11147
11148 hpux9* | hpux10* | hpux11*)
11149 # Give a soname corresponding to the major version so that dld.sl refuses to
11150 # link against other versions.
11151 version_type=sunos
11152 need_lib_prefix=no
11153 need_version=no
11154 case $host_cpu in
11155 ia64*)
11156 shrext_cmds='.so'
11157 hardcode_into_libs=yes
11158 dynamic_linker="$host_os dld.so"
11159 shlibpath_var=LD_LIBRARY_PATH
11160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11162 soname_spec='$libname$release$shared_ext$major'
11163 if test 32 = "$HPUX_IA64_MODE"; then
11164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11165 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11166 else
11167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11168 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11169 fi
11170 ;;
11171 hppa*64*)
11172 shrext_cmds='.sl'
11173 hardcode_into_libs=yes
11174 dynamic_linker="$host_os dld.sl"
11175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11178 soname_spec='$libname$release$shared_ext$major'
11179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11181 ;;
11182 *)
11183 shrext_cmds='.sl'
11184 dynamic_linker="$host_os dld.sl"
11185 shlibpath_var=SHLIB_PATH
11186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188 soname_spec='$libname$release$shared_ext$major'
11189 ;;
11190 esac
11191 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11192 postinstall_cmds='chmod 555 $lib'
11193 # or fails outright, so override atomically:
11194 install_override_mode=555
11195 ;;
11196
11197 interix[3-9]*)
11198 version_type=linux # correct to gnu/linux during the next big refactor
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202 soname_spec='$libname$release$shared_ext$major'
11203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=no
11206 hardcode_into_libs=yes
11207 ;;
11208
11209 irix5* | irix6* | nonstopux*)
11210 case $host_os in
11211 nonstopux*) version_type=nonstopux ;;
11212 *)
11213 if test yes = "$lt_cv_prog_gnu_ld"; then
11214 version_type=linux # correct to gnu/linux during the next big refactor
11215 else
11216 version_type=irix
11217 fi ;;
11218 esac
11219 need_lib_prefix=no
11220 need_version=no
11221 soname_spec='$libname$release$shared_ext$major'
11222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11223 case $host_os in
11224 irix5* | nonstopux*)
11225 libsuff= shlibsuff=
11226 ;;
11227 *)
11228 case $LD in # libtool.m4 will add one of these switches to LD
11229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11230 libsuff= shlibsuff= libmagic=32-bit;;
11231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11232 libsuff=32 shlibsuff=N32 libmagic=N32;;
11233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11235 *) libsuff= shlibsuff= libmagic=never-match;;
11236 esac
11237 ;;
11238 esac
11239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11240 shlibpath_overrides_runpath=no
11241 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11242 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11243 hardcode_into_libs=yes
11244 ;;
11245
11246 # No shared lib support for Linux oldld, aout, or coff.
11247 linux*oldld* | linux*aout* | linux*coff*)
11248 dynamic_linker=no
11249 ;;
11250
11251 linux*android*)
11252 version_type=none # Android doesn't support versioned libraries.
11253 need_lib_prefix=no
11254 need_version=no
11255 library_names_spec='$libname$release$shared_ext'
11256 soname_spec='$libname$release$shared_ext'
11257 finish_cmds=
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260
11261 # This implies no fast_install, which is unacceptable.
11262 # Some rework will be needed to allow for fast_install
11263 # before this can be enabled.
11264 hardcode_into_libs=yes
11265
11266 dynamic_linker='Android linker'
11267 # Don't embed -rpath directories since the linker doesn't support them.
11268 hardcode_libdir_flag_spec='-L$libdir'
11269 ;;
11270
11271 # This must be glibc/ELF.
11272 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11273 version_type=linux # correct to gnu/linux during the next big refactor
11274 need_lib_prefix=no
11275 need_version=no
11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11277 soname_spec='$libname$release$shared_ext$major'
11278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 shlibpath_overrides_runpath=no
11281
11282 # Some binutils ld are patched to set DT_RUNPATH
11283 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 lt_cv_shlibpath_overrides_runpath=no
11287 save_LDFLAGS=$LDFLAGS
11288 save_libdir=$libdir
11289 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11290 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293
11294 int
11295 main ()
11296 {
11297
11298 ;
11299 return 0;
11300 }
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11304 lt_cv_shlibpath_overrides_runpath=yes
11305 fi
11306 fi
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 LDFLAGS=$save_LDFLAGS
11310 libdir=$save_libdir
11311
11312 fi
11313
11314 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11315
11316 # This implies no fast_install, which is unacceptable.
11317 # Some rework will be needed to allow for fast_install
11318 # before this can be enabled.
11319 hardcode_into_libs=yes
11320
11321 # Ideally, we could use ldconfig to report *all* directores which are
11322 # searched for libraries, however this is still not possible. Aside from not
11323 # being certain /sbin/ldconfig is available, command
11324 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11325 # even though it is searched at run-time. Try to do the best guess by
11326 # appending ld.so.conf contents (and includes) to the search path.
11327 if test -f /etc/ld.so.conf; then
11328 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11330 fi
11331
11332 # We used to test for /lib/ld.so.1 and disable shared libraries on
11333 # powerpc, because MkLinux only supported shared libraries with the
11334 # GNU dynamic linker. Since this was broken with cross compilers,
11335 # most powerpc-linux boxes support dynamic linking these days and
11336 # people can always --disable-shared, the test was removed, and we
11337 # assume the GNU/Linux dynamic linker is in use.
11338 dynamic_linker='GNU/Linux ld.so'
11339 ;;
11340
11341 netbsd*)
11342 version_type=sunos
11343 need_lib_prefix=no
11344 need_version=no
11345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11346 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11348 dynamic_linker='NetBSD (a.out) ld.so'
11349 else
11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11351 soname_spec='$libname$release$shared_ext$major'
11352 dynamic_linker='NetBSD ld.elf_so'
11353 fi
11354 shlibpath_var=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath=yes
11356 hardcode_into_libs=yes
11357 ;;
11358
11359 newsos6)
11360 version_type=linux # correct to gnu/linux during the next big refactor
11361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath=yes
11364 ;;
11365
11366 *nto* | *qnx*)
11367 version_type=qnx
11368 need_lib_prefix=no
11369 need_version=no
11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11371 soname_spec='$libname$release$shared_ext$major'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 shlibpath_overrides_runpath=no
11374 hardcode_into_libs=yes
11375 dynamic_linker='ldqnx.so'
11376 ;;
11377
11378 openbsd* | bitrig*)
11379 version_type=sunos
11380 sys_lib_dlsearch_path_spec=/usr/lib
11381 need_lib_prefix=no
11382 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11383 need_version=no
11384 else
11385 need_version=yes
11386 fi
11387 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 shlibpath_overrides_runpath=yes
11391 ;;
11392
11393 os2*)
11394 libname_spec='$name'
11395 version_type=windows
11396 shrext_cmds=.dll
11397 need_version=no
11398 need_lib_prefix=no
11399 # OS/2 can only load a DLL with a base name of 8 characters or less.
11400 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11401 v=$($ECHO $release$versuffix | tr -d .-);
11402 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11403 $ECHO $n$v`$shared_ext'
11404 library_names_spec='${libname}_dll.$libext'
11405 dynamic_linker='OS/2 ld.exe'
11406 shlibpath_var=BEGINLIBPATH
11407 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11409 postinstall_cmds='base_file=`basename \$file`~
11410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11411 dldir=$destdir/`dirname \$dlpath`~
11412 test -d \$dldir || mkdir -p \$dldir~
11413 $install_prog $dir/$dlname \$dldir/$dlname~
11414 chmod a+x \$dldir/$dlname~
11415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11417 fi'
11418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11419 dlpath=$dir/\$dldll~
11420 $RM \$dlpath'
11421 ;;
11422
11423 osf3* | osf4* | osf5*)
11424 version_type=osf
11425 need_lib_prefix=no
11426 need_version=no
11427 soname_spec='$libname$release$shared_ext$major'
11428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11432 ;;
11433
11434 rdos*)
11435 dynamic_linker=no
11436 ;;
11437
11438 solaris*)
11439 version_type=linux # correct to gnu/linux during the next big refactor
11440 need_lib_prefix=no
11441 need_version=no
11442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443 soname_spec='$libname$release$shared_ext$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 shlibpath_overrides_runpath=yes
11446 hardcode_into_libs=yes
11447 # ldd complains unless libraries are executable
11448 postinstall_cmds='chmod +x $lib'
11449 ;;
11450
11451 sunos4*)
11452 version_type=sunos
11453 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 if test yes = "$with_gnu_ld"; then
11458 need_lib_prefix=no
11459 fi
11460 need_version=yes
11461 ;;
11462
11463 sysv4 | sysv4.3*)
11464 version_type=linux # correct to gnu/linux during the next big refactor
11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11466 soname_spec='$libname$release$shared_ext$major'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 case $host_vendor in
11469 sni)
11470 shlibpath_overrides_runpath=no
11471 need_lib_prefix=no
11472 runpath_var=LD_RUN_PATH
11473 ;;
11474 siemens)
11475 need_lib_prefix=no
11476 ;;
11477 motorola)
11478 need_lib_prefix=no
11479 need_version=no
11480 shlibpath_overrides_runpath=no
11481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11482 ;;
11483 esac
11484 ;;
11485
11486 sysv4*MP*)
11487 if test -d /usr/nec; then
11488 version_type=linux # correct to gnu/linux during the next big refactor
11489 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11490 soname_spec='$libname$shared_ext.$major'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 fi
11493 ;;
11494
11495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11496 version_type=sco
11497 need_lib_prefix=no
11498 need_version=no
11499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11500 soname_spec='$libname$release$shared_ext$major'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes
11503 hardcode_into_libs=yes
11504 if test yes = "$with_gnu_ld"; then
11505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11506 else
11507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11508 case $host_os in
11509 sco3.2v5*)
11510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11511 ;;
11512 esac
11513 fi
11514 sys_lib_dlsearch_path_spec='/usr/lib'
11515 ;;
11516
11517 tpf*)
11518 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11519 version_type=linux # correct to gnu/linux during the next big refactor
11520 need_lib_prefix=no
11521 need_version=no
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11526 ;;
11527
11528 uts4*)
11529 version_type=linux # correct to gnu/linux during the next big refactor
11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 soname_spec='$libname$release$shared_ext$major'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 ;;
11534
11535 *)
11536 dynamic_linker=no
11537 ;;
11538 esac
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11540 $as_echo "$dynamic_linker" >&6; }
11541 test no = "$dynamic_linker" && can_build_shared=no
11542
11543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11544 if test yes = "$GCC"; then
11545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11546 fi
11547
11548 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11549 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11550 fi
11551
11552 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11553 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11554 fi
11555
11556 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11557 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11558
11559 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11560 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11561
11562 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11563 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11663 hardcode_action=
11664 if test -n "$hardcode_libdir_flag_spec" ||
11665 test -n "$runpath_var" ||
11666 test yes = "$hardcode_automatic"; then
11667
11668 # We can hardcode non-existent directories.
11669 if test no != "$hardcode_direct" &&
11670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11671 # have to relink, otherwise we might link with an installed library
11672 # when we should be linking with a yet-to-be-installed one
11673 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11674 test no != "$hardcode_minus_L"; then
11675 # Linking always hardcodes the temporary library directory.
11676 hardcode_action=relink
11677 else
11678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11679 hardcode_action=immediate
11680 fi
11681 else
11682 # We cannot hardcode anything, or else we can only hardcode existing
11683 # directories.
11684 hardcode_action=unsupported
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11687 $as_echo "$hardcode_action" >&6; }
11688
11689 if test relink = "$hardcode_action" ||
11690 test yes = "$inherit_rpath"; then
11691 # Fast installation is not supported
11692 enable_fast_install=no
11693 elif test yes = "$shlibpath_overrides_runpath" ||
11694 test no = "$enable_shared"; then
11695 # Fast installation is not necessary
11696 enable_fast_install=needless
11697 fi
11698
11699
11700
11701
11702
11703
11704 if test yes != "$enable_dlopen"; then
11705 enable_dlopen=unknown
11706 enable_dlopen_self=unknown
11707 enable_dlopen_self_static=unknown
11708 else
11709 lt_cv_dlopen=no
11710 lt_cv_dlopen_libs=
11711
11712 case $host_os in
11713 beos*)
11714 lt_cv_dlopen=load_add_on
11715 lt_cv_dlopen_libs=
11716 lt_cv_dlopen_self=yes
11717 ;;
11718
11719 mingw* | pw32* | cegcc*)
11720 lt_cv_dlopen=LoadLibrary
11721 lt_cv_dlopen_libs=
11722 ;;
11723
11724 cygwin*)
11725 lt_cv_dlopen=dlopen
11726 lt_cv_dlopen_libs=
11727 ;;
11728
11729 darwin*)
11730 # if libdl is installed we need to link against it
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11733 if ${ac_cv_lib_dl_dlopen+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 ac_check_lib_save_LIBS=$LIBS
11737 LIBS="-ldl $LIBS"
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11740
11741 /* Override any GCC internal prototype to avoid an error.
11742 Use char because int might match the return type of a GCC
11743 builtin and then its argument prototype would still apply. */
11744 #ifdef __cplusplus
11745 extern "C"
11746 #endif
11747 char dlopen ();
11748 int
11749 main ()
11750 {
11751 return dlopen ();
11752 ;
11753 return 0;
11754 }
11755 _ACEOF
11756 if ac_fn_c_try_link "$LINENO"; then :
11757 ac_cv_lib_dl_dlopen=yes
11758 else
11759 ac_cv_lib_dl_dlopen=no
11760 fi
11761 rm -f core conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LIBS=$ac_check_lib_save_LIBS
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11767 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11768 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11769 else
11770
11771 lt_cv_dlopen=dyld
11772 lt_cv_dlopen_libs=
11773 lt_cv_dlopen_self=yes
11774
11775 fi
11776
11777 ;;
11778
11779 tpf*)
11780 # Don't try to run any link tests for TPF. We know it's impossible
11781 # because TPF is a cross-compiler, and we know how we open DSOs.
11782 lt_cv_dlopen=dlopen
11783 lt_cv_dlopen_libs=
11784 lt_cv_dlopen_self=no
11785 ;;
11786
11787 *)
11788 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11789 if test "x$ac_cv_func_shl_load" = xyes; then :
11790 lt_cv_dlopen=shl_load
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11793 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11794 if ${ac_cv_lib_dld_shl_load+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 ac_check_lib_save_LIBS=$LIBS
11798 LIBS="-ldld $LIBS"
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801
11802 /* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11805 #ifdef __cplusplus
11806 extern "C"
11807 #endif
11808 char shl_load ();
11809 int
11810 main ()
11811 {
11812 return shl_load ();
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_c_try_link "$LINENO"; then :
11818 ac_cv_lib_dld_shl_load=yes
11819 else
11820 ac_cv_lib_dld_shl_load=no
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824 LIBS=$ac_check_lib_save_LIBS
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11827 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11828 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11829 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11830 else
11831 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11832 if test "x$ac_cv_func_dlopen" = xyes; then :
11833 lt_cv_dlopen=dlopen
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11836 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11837 if ${ac_cv_lib_dl_dlopen+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 ac_check_lib_save_LIBS=$LIBS
11841 LIBS="-ldl $LIBS"
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 char dlopen ();
11852 int
11853 main ()
11854 {
11855 return dlopen ();
11856 ;
11857 return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_c_try_link "$LINENO"; then :
11861 ac_cv_lib_dl_dlopen=yes
11862 else
11863 ac_cv_lib_dl_dlopen=no
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext conftest.$ac_ext
11867 LIBS=$ac_check_lib_save_LIBS
11868 fi
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11870 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11871 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11872 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11875 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11876 if ${ac_cv_lib_svld_dlopen+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-lsvld $LIBS"
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char dlopen ();
11891 int
11892 main ()
11893 {
11894 return dlopen ();
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 ac_cv_lib_svld_dlopen=yes
11901 else
11902 ac_cv_lib_svld_dlopen=no
11903 fi
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11909 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11910 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11911 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11914 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11915 if ${ac_cv_lib_dld_dld_link+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 ac_check_lib_save_LIBS=$LIBS
11919 LIBS="-ldld $LIBS"
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char dld_link ();
11930 int
11931 main ()
11932 {
11933 return dld_link ();
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_c_try_link "$LINENO"; then :
11939 ac_cv_lib_dld_dld_link=yes
11940 else
11941 ac_cv_lib_dld_dld_link=no
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11948 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11949 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11950 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11951 fi
11952
11953
11954 fi
11955
11956
11957 fi
11958
11959
11960 fi
11961
11962
11963 fi
11964
11965
11966 fi
11967
11968 ;;
11969 esac
11970
11971 if test no = "$lt_cv_dlopen"; then
11972 enable_dlopen=no
11973 else
11974 enable_dlopen=yes
11975 fi
11976
11977 case $lt_cv_dlopen in
11978 dlopen)
11979 save_CPPFLAGS=$CPPFLAGS
11980 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11981
11982 save_LDFLAGS=$LDFLAGS
11983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11984
11985 save_LIBS=$LIBS
11986 LIBS="$lt_cv_dlopen_libs $LIBS"
11987
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11989 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11990 if ${lt_cv_dlopen_self+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 if test yes = "$cross_compiling"; then :
11994 lt_cv_dlopen_self=cross
11995 else
11996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11997 lt_status=$lt_dlunknown
11998 cat > conftest.$ac_ext <<_LT_EOF
11999 #line $LINENO "configure"
12000 #include "confdefs.h"
12001
12002 #if HAVE_DLFCN_H
12003 #include <dlfcn.h>
12004 #endif
12005
12006 #include <stdio.h>
12007
12008 #ifdef RTLD_GLOBAL
12009 # define LT_DLGLOBAL RTLD_GLOBAL
12010 #else
12011 # ifdef DL_GLOBAL
12012 # define LT_DLGLOBAL DL_GLOBAL
12013 # else
12014 # define LT_DLGLOBAL 0
12015 # endif
12016 #endif
12017
12018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12019 find out it does not work in some platform. */
12020 #ifndef LT_DLLAZY_OR_NOW
12021 # ifdef RTLD_LAZY
12022 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12023 # else
12024 # ifdef DL_LAZY
12025 # define LT_DLLAZY_OR_NOW DL_LAZY
12026 # else
12027 # ifdef RTLD_NOW
12028 # define LT_DLLAZY_OR_NOW RTLD_NOW
12029 # else
12030 # ifdef DL_NOW
12031 # define LT_DLLAZY_OR_NOW DL_NOW
12032 # else
12033 # define LT_DLLAZY_OR_NOW 0
12034 # endif
12035 # endif
12036 # endif
12037 # endif
12038 #endif
12039
12040 /* When -fvisibility=hidden is used, assume the code has been annotated
12041 correspondingly for the symbols needed. */
12042 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12043 int fnord () __attribute__((visibility("default")));
12044 #endif
12045
12046 int fnord () { return 42; }
12047 int main ()
12048 {
12049 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12050 int status = $lt_dlunknown;
12051
12052 if (self)
12053 {
12054 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12055 else
12056 {
12057 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12058 else puts (dlerror ());
12059 }
12060 /* dlclose (self); */
12061 }
12062 else
12063 puts (dlerror ());
12064
12065 return status;
12066 }
12067 _LT_EOF
12068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12069 (eval $ac_link) 2>&5
12070 ac_status=$?
12071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12072 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12073 (./conftest; exit; ) >&5 2>/dev/null
12074 lt_status=$?
12075 case x$lt_status in
12076 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12077 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12078 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12079 esac
12080 else :
12081 # compilation failed
12082 lt_cv_dlopen_self=no
12083 fi
12084 fi
12085 rm -fr conftest*
12086
12087
12088 fi
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12090 $as_echo "$lt_cv_dlopen_self" >&6; }
12091
12092 if test yes = "$lt_cv_dlopen_self"; then
12093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12095 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12096 if ${lt_cv_dlopen_self_static+:} false; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 if test yes = "$cross_compiling"; then :
12100 lt_cv_dlopen_self_static=cross
12101 else
12102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12103 lt_status=$lt_dlunknown
12104 cat > conftest.$ac_ext <<_LT_EOF
12105 #line $LINENO "configure"
12106 #include "confdefs.h"
12107
12108 #if HAVE_DLFCN_H
12109 #include <dlfcn.h>
12110 #endif
12111
12112 #include <stdio.h>
12113
12114 #ifdef RTLD_GLOBAL
12115 # define LT_DLGLOBAL RTLD_GLOBAL
12116 #else
12117 # ifdef DL_GLOBAL
12118 # define LT_DLGLOBAL DL_GLOBAL
12119 # else
12120 # define LT_DLGLOBAL 0
12121 # endif
12122 #endif
12123
12124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12125 find out it does not work in some platform. */
12126 #ifndef LT_DLLAZY_OR_NOW
12127 # ifdef RTLD_LAZY
12128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12129 # else
12130 # ifdef DL_LAZY
12131 # define LT_DLLAZY_OR_NOW DL_LAZY
12132 # else
12133 # ifdef RTLD_NOW
12134 # define LT_DLLAZY_OR_NOW RTLD_NOW
12135 # else
12136 # ifdef DL_NOW
12137 # define LT_DLLAZY_OR_NOW DL_NOW
12138 # else
12139 # define LT_DLLAZY_OR_NOW 0
12140 # endif
12141 # endif
12142 # endif
12143 # endif
12144 #endif
12145
12146 /* When -fvisibility=hidden is used, assume the code has been annotated
12147 correspondingly for the symbols needed. */
12148 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12149 int fnord () __attribute__((visibility("default")));
12150 #endif
12151
12152 int fnord () { return 42; }
12153 int main ()
12154 {
12155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12156 int status = $lt_dlunknown;
12157
12158 if (self)
12159 {
12160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12161 else
12162 {
12163 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12164 else puts (dlerror ());
12165 }
12166 /* dlclose (self); */
12167 }
12168 else
12169 puts (dlerror ());
12170
12171 return status;
12172 }
12173 _LT_EOF
12174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12175 (eval $ac_link) 2>&5
12176 ac_status=$?
12177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12178 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12179 (./conftest; exit; ) >&5 2>/dev/null
12180 lt_status=$?
12181 case x$lt_status in
12182 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12183 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12184 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12185 esac
12186 else :
12187 # compilation failed
12188 lt_cv_dlopen_self_static=no
12189 fi
12190 fi
12191 rm -fr conftest*
12192
12193
12194 fi
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12196 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12197 fi
12198
12199 CPPFLAGS=$save_CPPFLAGS
12200 LDFLAGS=$save_LDFLAGS
12201 LIBS=$save_LIBS
12202 ;;
12203 esac
12204
12205 case $lt_cv_dlopen_self in
12206 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12207 *) enable_dlopen_self=unknown ;;
12208 esac
12209
12210 case $lt_cv_dlopen_self_static in
12211 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12212 *) enable_dlopen_self_static=unknown ;;
12213 esac
12214 fi
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232 striplib=
12233 old_striplib=
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12235 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12236 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12237 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12238 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12240 $as_echo "yes" >&6; }
12241 else
12242 # FIXME - insert some real tests, host_os isn't really good enough
12243 case $host_os in
12244 darwin*)
12245 if test -n "$STRIP"; then
12246 striplib="$STRIP -x"
12247 old_striplib="$STRIP -S"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12249 $as_echo "yes" >&6; }
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12253 fi
12254 ;;
12255 *)
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258 ;;
12259 esac
12260 fi
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273 # Report what library types will actually be built
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12275 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12277 $as_echo "$can_build_shared" >&6; }
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12280 $as_echo_n "checking whether to build shared libraries... " >&6; }
12281 test no = "$can_build_shared" && enable_shared=no
12282
12283 # On AIX, shared libraries and static libraries use the same namespace, and
12284 # are all built from PIC.
12285 case $host_os in
12286 aix3*)
12287 test yes = "$enable_shared" && enable_static=no
12288 if test -n "$RANLIB"; then
12289 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12290 postinstall_cmds='$RANLIB $lib'
12291 fi
12292 ;;
12293
12294 aix[4-9]*)
12295 if test ia64 != "$host_cpu"; then
12296 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12297 yes,aix,yes) ;; # shared object as lib.so file only
12298 yes,svr4,*) ;; # shared object as lib.so archive member only
12299 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12300 esac
12301 fi
12302 ;;
12303 esac
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12305 $as_echo "$enable_shared" >&6; }
12306
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12308 $as_echo_n "checking whether to build static libraries... " >&6; }
12309 # Make sure either enable_shared or enable_static is yes.
12310 test yes = "$enable_shared" || enable_static=yes
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12312 $as_echo "$enable_static" >&6; }
12313
12314
12315
12316
12317 fi
12318 ac_ext=c
12319 ac_cpp='$CPP $CPPFLAGS'
12320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12323
12324 CC=$lt_save_CC
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340 ac_config_commands="$ac_config_commands libtool"
12341
12342
12343
12344
12345 # Only expand once:
12346
12347
12348 for ac_prog in flex lex
12349 do
12350 # Extract the first word of "$ac_prog", so it can be a program name with args.
12351 set dummy $ac_prog; ac_word=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 $as_echo_n "checking for $ac_word... " >&6; }
12354 if ${ac_cv_prog_LEX+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 if test -n "$LEX"; then
12358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12359 else
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12362 do
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12367 ac_cv_prog_LEX="$ac_prog"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12370 fi
12371 done
12372 done
12373 IFS=$as_save_IFS
12374
12375 fi
12376 fi
12377 LEX=$ac_cv_prog_LEX
12378 if test -n "$LEX"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12380 $as_echo "$LEX" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12384 fi
12385
12386
12387 test -n "$LEX" && break
12388 done
12389 test -n "$LEX" || LEX=":"
12390
12391 if test "x$LEX" != "x:"; then
12392 cat >conftest.l <<_ACEOF
12393 %%
12394 a { ECHO; }
12395 b { REJECT; }
12396 c { yymore (); }
12397 d { yyless (1); }
12398 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12399 yyless ((input () != 0)); }
12400 f { unput (yytext[0]); }
12401 . { BEGIN INITIAL; }
12402 %%
12403 #ifdef YYTEXT_POINTER
12404 extern char *yytext;
12405 #endif
12406 int
12407 main (void)
12408 {
12409 return ! yylex () + ! yywrap ();
12410 }
12411 _ACEOF
12412 { { ac_try="$LEX conftest.l"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416 esac
12417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12418 $as_echo "$ac_try_echo"; } >&5
12419 (eval "$LEX conftest.l") 2>&5
12420 ac_status=$?
12421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422 test $ac_status = 0; }
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12424 $as_echo_n "checking lex output file root... " >&6; }
12425 if ${ac_cv_prog_lex_root+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428
12429 if test -f lex.yy.c; then
12430 ac_cv_prog_lex_root=lex.yy
12431 elif test -f lexyy.c; then
12432 ac_cv_prog_lex_root=lexyy
12433 else
12434 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12435 fi
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12438 $as_echo "$ac_cv_prog_lex_root" >&6; }
12439 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12440
12441 if test -z "${LEXLIB+set}"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12443 $as_echo_n "checking lex library... " >&6; }
12444 if ${ac_cv_lib_lex+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447
12448 ac_save_LIBS=$LIBS
12449 ac_cv_lib_lex='none needed'
12450 for ac_lib in '' -lfl -ll; do
12451 LIBS="$ac_lib $ac_save_LIBS"
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454 `cat $LEX_OUTPUT_ROOT.c`
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457 ac_cv_lib_lex=$ac_lib
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 test "$ac_cv_lib_lex" != 'none needed' && break
12462 done
12463 LIBS=$ac_save_LIBS
12464
12465 fi
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12467 $as_echo "$ac_cv_lib_lex" >&6; }
12468 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12469 fi
12470
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12473 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12474 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 # POSIX says lex can declare yytext either as a pointer or an array; the
12478 # default is implementation-dependent. Figure out which it is, since
12479 # not all implementations provide the %pointer and %array declarations.
12480 ac_cv_prog_lex_yytext_pointer=no
12481 ac_save_LIBS=$LIBS
12482 LIBS="$LEXLIB $ac_save_LIBS"
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485
12486 #define YYTEXT_POINTER 1
12487 `cat $LEX_OUTPUT_ROOT.c`
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_prog_lex_yytext_pointer=yes
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_save_LIBS
12495
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12498 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12499 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12500
12501 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12502
12503 fi
12504 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12505
12506 fi
12507 if test "$LEX" = :; then
12508 LEX=${am_missing_run}flex
12509 fi
12510
12511 # Extract the first word of "basename", so it can be a program name with args.
12512 set dummy basename; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if ${ac_cv_path_BASENAME+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 case $BASENAME in
12519 [\\/]* | ?:[\\/]*)
12520 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
12521 ;;
12522 *)
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH
12525 do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12530 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12533 fi
12534 done
12535 done
12536 IFS=$as_save_IFS
12537
12538 ;;
12539 esac
12540 fi
12541 BASENAME=$ac_cv_path_BASENAME
12542 if test -n "$BASENAME"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
12544 $as_echo "$BASENAME" >&6; }
12545 else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548 fi
12549
12550
12551 # Extract the first word of "gzip", so it can be a program name with args.
12552 set dummy gzip; ac_word=$2
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12554 $as_echo_n "checking for $ac_word... " >&6; }
12555 if ${ac_cv_path_GZIP+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 case $GZIP in
12559 [\\/]* | ?:[\\/]*)
12560 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
12561 ;;
12562 *)
12563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH
12565 do
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
12569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12573 fi
12574 done
12575 done
12576 IFS=$as_save_IFS
12577
12578 ;;
12579 esac
12580 fi
12581 GZIP=$ac_cv_path_GZIP
12582 if test -n "$GZIP"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
12584 $as_echo "$GZIP" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 fi
12589
12590
12591 # Extract the first word of "latex", so it can be a program name with args.
12592 set dummy latex; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_path_LATEX+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 case $LATEX in
12599 [\\/]* | ?:[\\/]*)
12600 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
12601 ;;
12602 *)
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12605 do
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12610 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 break 2
12613 fi
12614 done
12615 done
12616 IFS=$as_save_IFS
12617
12618 ;;
12619 esac
12620 fi
12621 LATEX=$ac_cv_path_LATEX
12622 if test -n "$LATEX"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
12624 $as_echo "$LATEX" >&6; }
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12628 fi
12629
12630
12631 # Extract the first word of "perl", so it can be a program name with args.
12632 set dummy perl; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_PERL+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 case $PERL in
12639 [\\/]* | ?:[\\/]*)
12640 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12641 ;;
12642 *)
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12645 do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12650 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652 break 2
12653 fi
12654 done
12655 done
12656 IFS=$as_save_IFS
12657
12658 ;;
12659 esac
12660 fi
12661 PERL=$ac_cv_path_PERL
12662 if test -n "$PERL"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12664 $as_echo "$PERL" >&6; }
12665 else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668 fi
12669
12670
12671 # Extract the first word of "svnversion", so it can be a program name with args.
12672 set dummy svnversion; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if ${ac_cv_path_SVNVERSION+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 case $SVNVERSION in
12679 [\\/]* | ?:[\\/]*)
12680 ac_cv_path_SVNVERSION="$SVNVERSION" # Let the user override the test with a path.
12681 ;;
12682 *)
12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684 for as_dir in $PATH
12685 do
12686 IFS=$as_save_IFS
12687 test -z "$as_dir" && as_dir=.
12688 for ac_exec_ext in '' $ac_executable_extensions; do
12689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12690 ac_cv_path_SVNVERSION="$as_dir/$ac_word$ac_exec_ext"
12691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12692 break 2
12693 fi
12694 done
12695 done
12696 IFS=$as_save_IFS
12697
12698 ;;
12699 esac
12700 fi
12701 SVNVERSION=$ac_cv_path_SVNVERSION
12702 if test -n "$SVNVERSION"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
12704 $as_echo "$SVNVERSION" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709
12710
12711 # Extract the first word of "tar", so it can be a program name with args.
12712 set dummy tar; ac_word=$2
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714 $as_echo_n "checking for $ac_word... " >&6; }
12715 if ${ac_cv_path_TAR+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 case $TAR in
12719 [\\/]* | ?:[\\/]*)
12720 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
12721 ;;
12722 *)
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12725 do
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12733 fi
12734 done
12735 done
12736 IFS=$as_save_IFS
12737
12738 ;;
12739 esac
12740 fi
12741 TAR=$ac_cv_path_TAR
12742 if test -n "$TAR"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
12744 $as_echo "$TAR" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12748 fi
12749
12750
12751
12752
12753
12754
12755
12756 $as_echo "## -------------- ##
12757 ## Library Checks ##
12758 ## -------------- ##"
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12760 $as_echo_n "checking for library containing crypt... " >&6; }
12761 if ${ac_cv_search_crypt+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 ac_func_search_save_LIBS=$LIBS
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767
12768 /* Override any GCC internal prototype to avoid an error.
12769 Use char because int might match the return type of a GCC
12770 builtin and then its argument prototype would still apply. */
12771 #ifdef __cplusplus
12772 extern "C"
12773 #endif
12774 char crypt ();
12775 int
12776 main ()
12777 {
12778 return crypt ();
12779 ;
12780 return 0;
12781 }
12782 _ACEOF
12783 for ac_lib in '' crypt; do
12784 if test -z "$ac_lib"; then
12785 ac_res="none required"
12786 else
12787 ac_res=-l$ac_lib
12788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12789 fi
12790 if ac_fn_c_try_link "$LINENO"; then :
12791 ac_cv_search_crypt=$ac_res
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext \
12794 conftest$ac_exeext
12795 if ${ac_cv_search_crypt+:} false; then :
12796 break
12797 fi
12798 done
12799 if ${ac_cv_search_crypt+:} false; then :
12800
12801 else
12802 ac_cv_search_crypt=no
12803 fi
12804 rm conftest.$ac_ext
12805 LIBS=$ac_func_search_save_LIBS
12806 fi
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12808 $as_echo "$ac_cv_search_crypt" >&6; }
12809 ac_res=$ac_cv_search_crypt
12810 if test "$ac_res" != no; then :
12811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12812
12813 fi
12814
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
12816 $as_echo_n "checking for library containing pow... " >&6; }
12817 if ${ac_cv_search_pow+:} false; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 ac_func_search_save_LIBS=$LIBS
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823
12824 /* Override any GCC internal prototype to avoid an error.
12825 Use char because int might match the return type of a GCC
12826 builtin and then its argument prototype would still apply. */
12827 #ifdef __cplusplus
12828 extern "C"
12829 #endif
12830 char pow ();
12831 int
12832 main ()
12833 {
12834 return pow ();
12835 ;
12836 return 0;
12837 }
12838 _ACEOF
12839 for ac_lib in '' m; do
12840 if test -z "$ac_lib"; then
12841 ac_res="none required"
12842 else
12843 ac_res=-l$ac_lib
12844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12845 fi
12846 if ac_fn_c_try_link "$LINENO"; then :
12847 ac_cv_search_pow=$ac_res
12848 fi
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext
12851 if ${ac_cv_search_pow+:} false; then :
12852 break
12853 fi
12854 done
12855 if ${ac_cv_search_pow+:} false; then :
12856
12857 else
12858 ac_cv_search_pow=no
12859 fi
12860 rm conftest.$ac_ext
12861 LIBS=$ac_func_search_save_LIBS
12862 fi
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
12864 $as_echo "$ac_cv_search_pow" >&6; }
12865 ac_res=$ac_cv_search_pow
12866 if test "$ac_res" != no; then :
12867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12868
12869 fi
12870
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12872 $as_echo_n "checking for library containing pthread_create... " >&6; }
12873 if ${ac_cv_search_pthread_create+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 ac_func_search_save_LIBS=$LIBS
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879
12880 /* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */
12883 #ifdef __cplusplus
12884 extern "C"
12885 #endif
12886 char pthread_create ();
12887 int
12888 main ()
12889 {
12890 return pthread_create ();
12891 ;
12892 return 0;
12893 }
12894 _ACEOF
12895 for ac_lib in '' pthread; do
12896 if test -z "$ac_lib"; then
12897 ac_res="none required"
12898 else
12899 ac_res=-l$ac_lib
12900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12901 fi
12902 if ac_fn_c_try_link "$LINENO"; then :
12903 ac_cv_search_pthread_create=$ac_res
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext
12907 if ${ac_cv_search_pthread_create+:} false; then :
12908 break
12909 fi
12910 done
12911 if ${ac_cv_search_pthread_create+:} false; then :
12912
12913 else
12914 ac_cv_search_pthread_create=no
12915 fi
12916 rm conftest.$ac_ext
12917 LIBS=$ac_func_search_save_LIBS
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12920 $as_echo "$ac_cv_search_pthread_create" >&6; }
12921 ac_res=$ac_cv_search_pthread_create
12922 if test "$ac_res" != no; then :
12923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12924
12925 fi
12926
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
12928 $as_echo_n "checking for library containing sqrt... " >&6; }
12929 if ${ac_cv_search_sqrt+:} false; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 ac_func_search_save_LIBS=$LIBS
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12935
12936 /* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
12939 #ifdef __cplusplus
12940 extern "C"
12941 #endif
12942 char sqrt ();
12943 int
12944 main ()
12945 {
12946 return sqrt ();
12947 ;
12948 return 0;
12949 }
12950 _ACEOF
12951 for ac_lib in '' m; do
12952 if test -z "$ac_lib"; then
12953 ac_res="none required"
12954 else
12955 ac_res=-l$ac_lib
12956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12957 fi
12958 if ac_fn_c_try_link "$LINENO"; then :
12959 ac_cv_search_sqrt=$ac_res
12960 fi
12961 rm -f core conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext
12963 if ${ac_cv_search_sqrt+:} false; then :
12964 break
12965 fi
12966 done
12967 if ${ac_cv_search_sqrt+:} false; then :
12968
12969 else
12970 ac_cv_search_sqrt=no
12971 fi
12972 rm conftest.$ac_ext
12973 LIBS=$ac_func_search_save_LIBS
12974 fi
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
12976 $as_echo "$ac_cv_search_sqrt" >&6; }
12977 ac_res=$ac_cv_search_sqrt
12978 if test "$ac_res" != no; then :
12979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12980
12981 fi
12982
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12984 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12985 if ${ac_cv_search_clock_gettime+:} false; then :
12986 $as_echo_n "(cached) " >&6
12987 else
12988 ac_func_search_save_LIBS=$LIBS
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991
12992 /* Override any GCC internal prototype to avoid an error.
12993 Use char because int might match the return type of a GCC
12994 builtin and then its argument prototype would still apply. */
12995 #ifdef __cplusplus
12996 extern "C"
12997 #endif
12998 char clock_gettime ();
12999 int
13000 main ()
13001 {
13002 return clock_gettime ();
13003 ;
13004 return 0;
13005 }
13006 _ACEOF
13007 for ac_lib in '' rt; do
13008 if test -z "$ac_lib"; then
13009 ac_res="none required"
13010 else
13011 ac_res=-l$ac_lib
13012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13013 fi
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_search_clock_gettime=$ac_res
13016 fi
13017 rm -f core conftest.err conftest.$ac_objext \
13018 conftest$ac_exeext
13019 if ${ac_cv_search_clock_gettime+:} false; then :
13020 break
13021 fi
13022 done
13023 if ${ac_cv_search_clock_gettime+:} false; then :
13024
13025 else
13026 ac_cv_search_clock_gettime=no
13027 fi
13028 rm conftest.$ac_ext
13029 LIBS=$ac_func_search_save_LIBS
13030 fi
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13032 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13033 ac_res=$ac_cv_search_clock_gettime
13034 if test "$ac_res" != no; then :
13035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13036
13037 fi
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061 # Check whether --with-libcurl was given.
13062 if test "${with_libcurl+set}" = set; then :
13063 withval=$with_libcurl; _libcurl_with=$withval
13064 else
13065 _libcurl_with=yes
13066 fi
13067
13068
13069 if test "$_libcurl_with" != "no" ; then
13070
13071 for ac_prog in gawk mawk nawk awk
13072 do
13073 # Extract the first word of "$ac_prog", so it can be a program name with args.
13074 set dummy $ac_prog; ac_word=$2
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 $as_echo_n "checking for $ac_word... " >&6; }
13077 if ${ac_cv_prog_AWK+:} false; then :
13078 $as_echo_n "(cached) " >&6
13079 else
13080 if test -n "$AWK"; then
13081 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13082 else
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13085 do
13086 IFS=$as_save_IFS
13087 test -z "$as_dir" && as_dir=.
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090 ac_cv_prog_AWK="$ac_prog"
13091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13092 break 2
13093 fi
13094 done
13095 done
13096 IFS=$as_save_IFS
13097
13098 fi
13099 fi
13100 AWK=$ac_cv_prog_AWK
13101 if test -n "$AWK"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13103 $as_echo "$AWK" >&6; }
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108
13109
13110 test -n "$AWK" && break
13111 done
13112
13113
13114 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
13115
13116 _libcurl_try_link=yes
13117
13118 if test -d "$_libcurl_with" ; then
13119 LIBCURL_CPPFLAGS="-I$withval/include"
13120 _libcurl_ldflags="-L$withval/lib"
13121 # Extract the first word of "curl-config", so it can be a program name with args.
13122 set dummy curl-config; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if ${ac_cv_path__libcurl_config+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 case $_libcurl_config in
13129 [\\/]* | ?:[\\/]*)
13130 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
13131 ;;
13132 *)
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in "$withval/bin"
13135 do
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 break 2
13143 fi
13144 done
13145 done
13146 IFS=$as_save_IFS
13147
13148 test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
13149 ;;
13150 esac
13151 fi
13152 _libcurl_config=$ac_cv_path__libcurl_config
13153 if test -n "$_libcurl_config"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
13155 $as_echo "$_libcurl_config" >&6; }
13156 else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13159 fi
13160
13161
13162 else
13163 # Extract the first word of "curl-config", so it can be a program name with args.
13164 set dummy curl-config; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13166 $as_echo_n "checking for $ac_word... " >&6; }
13167 if ${ac_cv_path__libcurl_config+:} false; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 case $_libcurl_config in
13171 [\\/]* | ?:[\\/]*)
13172 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
13173 ;;
13174 *)
13175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13177 do
13178 IFS=$as_save_IFS
13179 test -z "$as_dir" && as_dir=.
13180 for ac_exec_ext in '' $ac_executable_extensions; do
13181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13182 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
13183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13184 break 2
13185 fi
13186 done
13187 done
13188 IFS=$as_save_IFS
13189
13190 ;;
13191 esac
13192 fi
13193 _libcurl_config=$ac_cv_path__libcurl_config
13194 if test -n "$_libcurl_config"; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
13196 $as_echo "$_libcurl_config" >&6; }
13197 else
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200 fi
13201
13202
13203 fi
13204
13205 if test x$_libcurl_config != "x" ; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
13207 $as_echo_n "checking for the version of libcurl... " >&6; }
13208 if ${libcurl_cv_lib_curl_version+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
13212 fi
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
13214 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
13215
13216 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
13217 _libcurl_wanted=`echo 0 | $_libcurl_version_parse`
13218
13219 if test $_libcurl_wanted -gt 0 ; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5
13221 $as_echo_n "checking for libcurl >= version ... " >&6; }
13222 if ${libcurl_cv_lib_version_ok+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225
13226 if test $_libcurl_version -ge $_libcurl_wanted ; then
13227 libcurl_cv_lib_version_ok=yes
13228 else
13229 libcurl_cv_lib_version_ok=no
13230 fi
13231
13232 fi
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
13234 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
13235 fi
13236
13237 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
13238 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
13239 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
13240 fi
13241 if test x"$LIBCURL" = "x" ; then
13242 LIBCURL=`$_libcurl_config --libs`
13243
13244 # This is so silly, but Apple actually has a bug in their
13245 # curl-config script. Fixed in Tiger, but there are still
13246 # lots of Panther installs around.
13247 case "${host}" in
13248 powerpc-apple-darwin7*)
13249 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
13250 ;;
13251 esac
13252 fi
13253
13254 # All curl-config scripts support --feature
13255 _libcurl_features=`$_libcurl_config --feature`
13256
13257 # Is it modern enough to have --protocols? (7.12.4)
13258 if test $_libcurl_version -ge 461828 ; then
13259 _libcurl_protocols=`$_libcurl_config --protocols`
13260 fi
13261 else
13262 _libcurl_try_link=no
13263 fi
13264
13265 unset _libcurl_wanted
13266 fi
13267
13268 if test $_libcurl_try_link = yes ; then
13269
13270 # we didn't find curl-config, so let's see if the user-supplied
13271 # link line (or failing that, "-lcurl") is enough.
13272 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
13275 $as_echo_n "checking whether libcurl is usable... " >&6; }
13276 if ${libcurl_cv_lib_curl_usable+:} false; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279
13280 _libcurl_save_cppflags=$CPPFLAGS
13281 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
13282 _libcurl_save_libs=$LIBS
13283 LIBS="$LIBCURL $LIBS"
13284
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287 #include <curl/curl.h>
13288 int
13289 main ()
13290 {
13291
13292 /* Try and use a few common options to force a failure if we are
13293 missing symbols or can't link. */
13294 int x;
13295 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
13296 x=CURL_ERROR_SIZE;
13297 x=CURLOPT_WRITEFUNCTION;
13298 x=CURLOPT_FILE;
13299 x=CURLOPT_ERRORBUFFER;
13300 x=CURLOPT_STDERR;
13301 x=CURLOPT_VERBOSE;
13302
13303 ;
13304 return 0;
13305 }
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308 libcurl_cv_lib_curl_usable=yes
13309 else
13310 libcurl_cv_lib_curl_usable=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314
13315 CPPFLAGS=$_libcurl_save_cppflags
13316 LIBS=$_libcurl_save_libs
13317 unset _libcurl_save_cppflags
13318 unset _libcurl_save_libs
13319
13320 fi
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
13322 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
13323
13324 if test $libcurl_cv_lib_curl_usable = yes ; then
13325
13326 # Does curl_free() exist in this version of libcurl?
13327 # If not, fake it with free()
13328
13329 _libcurl_save_cppflags=$CPPFLAGS
13330 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
13331 _libcurl_save_libs=$LIBS
13332 LIBS="$LIBS $LIBCURL"
13333
13334 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
13335 if test "x$ac_cv_func_curl_free" = xyes; then :
13336
13337 else
13338
13339 $as_echo "#define curl_free free" >>confdefs.h
13340
13341 fi
13342
13343
13344 CPPFLAGS=$_libcurl_save_cppflags
13345 LIBS=$_libcurl_save_libs
13346 unset _libcurl_save_cppflags
13347 unset _libcurl_save_libs
13348
13349
13350 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
13351
13352
13353
13354
13355 for _libcurl_feature in $_libcurl_features ; do
13356 cat >>confdefs.h <<_ACEOF
13357 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
13358 _ACEOF
13359
13360 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
13361 done
13362
13363 if test "x$_libcurl_protocols" = "x" ; then
13364
13365 # We don't have --protocols, so just assume that all
13366 # protocols are available
13367 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
13368
13369 if test x$libcurl_feature_SSL = xyes ; then
13370 _libcurl_protocols="$_libcurl_protocols HTTPS"
13371
13372 # FTPS wasn't standards-compliant until version
13373 # 7.11.0
13374 if test $_libcurl_version -ge 461568; then
13375 _libcurl_protocols="$_libcurl_protocols FTPS"
13376 fi
13377 fi
13378 fi
13379
13380 for _libcurl_protocol in $_libcurl_protocols ; do
13381 cat >>confdefs.h <<_ACEOF
13382 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
13383 _ACEOF
13384
13385 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
13386 done
13387 else
13388 unset LIBCURL
13389 unset LIBCURL_CPPFLAGS
13390 fi
13391 fi
13392
13393 unset _libcurl_try_link
13394 unset _libcurl_version_parse
13395 unset _libcurl_config
13396 unset _libcurl_feature
13397 unset _libcurl_features
13398 unset _libcurl_protocol
13399 unset _libcurl_protocols
13400 unset _libcurl_version
13401 unset _libcurl_ldflags
13402 fi
13403
13404 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
13405 # This is the IF-NO path
13406 :
13407 else
13408 # This is the IF-YES path
13409 :
13410 fi
13411
13412 unset _libcurl_with
13413
13414 LIBS="$LIBS $LIBCURL"
13415 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13418 $as_echo_n "checking for library containing dlopen... " >&6; }
13419 if ${ac_cv_search_dlopen+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 ac_func_search_save_LIBS=$LIBS
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425
13426 /* Override any GCC internal prototype to avoid an error.
13427 Use char because int might match the return type of a GCC
13428 builtin and then its argument prototype would still apply. */
13429 #ifdef __cplusplus
13430 extern "C"
13431 #endif
13432 char dlopen ();
13433 int
13434 main ()
13435 {
13436 return dlopen ();
13437 ;
13438 return 0;
13439 }
13440 _ACEOF
13441 for ac_lib in '' dl; do
13442 if test -z "$ac_lib"; then
13443 ac_res="none required"
13444 else
13445 ac_res=-l$ac_lib
13446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13447 fi
13448 if ac_fn_c_try_link "$LINENO"; then :
13449 ac_cv_search_dlopen=$ac_res
13450 fi
13451 rm -f core conftest.err conftest.$ac_objext \
13452 conftest$ac_exeext
13453 if ${ac_cv_search_dlopen+:} false; then :
13454 break
13455 fi
13456 done
13457 if ${ac_cv_search_dlopen+:} false; then :
13458
13459 else
13460 ac_cv_search_dlopen=no
13461 fi
13462 rm conftest.$ac_ext
13463 LIBS=$ac_func_search_save_LIBS
13464 fi
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13466 $as_echo "$ac_cv_search_dlopen" >&6; }
13467 ac_res=$ac_cv_search_dlopen
13468 if test "$ac_res" != no; then :
13469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13470 cf_have_libdl=yes
13471 fi
13472
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open" >&5
13474 $as_echo_n "checking for library containing sqlite3_open... " >&6; }
13475 if ${ac_cv_search_sqlite3_open+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 ac_func_search_save_LIBS=$LIBS
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13481
13482 /* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13485 #ifdef __cplusplus
13486 extern "C"
13487 #endif
13488 char sqlite3_open ();
13489 int
13490 main ()
13491 {
13492 return sqlite3_open ();
13493 ;
13494 return 0;
13495 }
13496 _ACEOF
13497 for ac_lib in '' sqlite3; do
13498 if test -z "$ac_lib"; then
13499 ac_res="none required"
13500 else
13501 ac_res=-l$ac_lib
13502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13503 fi
13504 if ac_fn_c_try_link "$LINENO"; then :
13505 ac_cv_search_sqlite3_open=$ac_res
13506 fi
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext
13509 if ${ac_cv_search_sqlite3_open+:} false; then :
13510 break
13511 fi
13512 done
13513 if ${ac_cv_search_sqlite3_open+:} false; then :
13514
13515 else
13516 ac_cv_search_sqlite3_open=no
13517 fi
13518 rm conftest.$ac_ext
13519 LIBS=$ac_func_search_save_LIBS
13520 fi
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open" >&5
13522 $as_echo "$ac_cv_search_sqlite3_open" >&6; }
13523 ac_res=$ac_cv_search_sqlite3_open
13524 if test "$ac_res" != no; then :
13525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13526 cf_have_libsqlite=yes
13527 fi
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13538 if test -n "$ac_tool_prefix"; then
13539 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13540 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13542 $as_echo_n "checking for $ac_word... " >&6; }
13543 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 case $PKG_CONFIG in
13547 [\\/]* | ?:[\\/]*)
13548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13549 ;;
13550 *)
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13553 do
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13561 fi
13562 done
13563 done
13564 IFS=$as_save_IFS
13565
13566 ;;
13567 esac
13568 fi
13569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13570 if test -n "$PKG_CONFIG"; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13572 $as_echo "$PKG_CONFIG" >&6; }
13573 else
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13576 fi
13577
13578
13579 fi
13580 if test -z "$ac_cv_path_PKG_CONFIG"; then
13581 ac_pt_PKG_CONFIG=$PKG_CONFIG
13582 # Extract the first word of "pkg-config", so it can be a program name with args.
13583 set dummy pkg-config; ac_word=$2
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13585 $as_echo_n "checking for $ac_word... " >&6; }
13586 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 case $ac_pt_PKG_CONFIG in
13590 [\\/]* | ?:[\\/]*)
13591 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13592 ;;
13593 *)
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13596 do
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13601 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13604 fi
13605 done
13606 done
13607 IFS=$as_save_IFS
13608
13609 ;;
13610 esac
13611 fi
13612 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13613 if test -n "$ac_pt_PKG_CONFIG"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13615 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13619 fi
13620
13621 if test "x$ac_pt_PKG_CONFIG" = x; then
13622 PKG_CONFIG=""
13623 else
13624 case $cross_compiling:$ac_tool_warned in
13625 yes:)
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13628 ac_tool_warned=yes ;;
13629 esac
13630 PKG_CONFIG=$ac_pt_PKG_CONFIG
13631 fi
13632 else
13633 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13634 fi
13635
13636 fi
13637 if test -n "$PKG_CONFIG"; then
13638 _pkg_min_version=0.9.0
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13640 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13641 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13643 $as_echo "yes" >&6; }
13644 else
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646 $as_echo "no" >&6; }
13647 PKG_CONFIG=""
13648 fi
13649 fi
13650 if test "$enable_mapper" = "yes"; then :
13651
13652
13653 pkg_failed=no
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD" >&5
13655 $as_echo_n "checking for GD... " >&6; }
13656
13657 if test -n "$GD_CFLAGS"; then
13658 pkg_cv_GD_CFLAGS="$GD_CFLAGS"
13659 elif test -n "$PKG_CONFIG"; then
13660 if test -n "$PKG_CONFIG" && \
13661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib\""; } >&5
13662 ($PKG_CONFIG --exists --print-errors "gdlib") 2>&5
13663 ac_status=$?
13664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665 test $ac_status = 0; }; then
13666 pkg_cv_GD_CFLAGS=`$PKG_CONFIG --cflags "gdlib" 2>/dev/null`
13667 test "x$?" != "x0" && pkg_failed=yes
13668 else
13669 pkg_failed=yes
13670 fi
13671 else
13672 pkg_failed=untried
13673 fi
13674 if test -n "$GD_LIBS"; then
13675 pkg_cv_GD_LIBS="$GD_LIBS"
13676 elif test -n "$PKG_CONFIG"; then
13677 if test -n "$PKG_CONFIG" && \
13678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib\""; } >&5
13679 ($PKG_CONFIG --exists --print-errors "gdlib") 2>&5
13680 ac_status=$?
13681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13682 test $ac_status = 0; }; then
13683 pkg_cv_GD_LIBS=`$PKG_CONFIG --libs "gdlib" 2>/dev/null`
13684 test "x$?" != "x0" && pkg_failed=yes
13685 else
13686 pkg_failed=yes
13687 fi
13688 else
13689 pkg_failed=untried
13690 fi
13691
13692
13693
13694 if test $pkg_failed = yes; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697
13698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13699 _pkg_short_errors_supported=yes
13700 else
13701 _pkg_short_errors_supported=no
13702 fi
13703 if test $_pkg_short_errors_supported = yes; then
13704 GD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdlib" 2>&1`
13705 else
13706 GD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdlib" 2>&1`
13707 fi
13708 # Put the nasty error message in config.log where it belongs
13709 echo "$GD_PKG_ERRORS" >&5
13710
13711 as_fn_error $? "Package requirements (gdlib) were not met:
13712
13713 $GD_PKG_ERRORS
13714
13715 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13716 installed software in a non-standard prefix.
13717
13718 Alternatively, you may set the environment variables GD_CFLAGS
13719 and GD_LIBS to avoid the need to call pkg-config.
13720 See the pkg-config man page for more details." "$LINENO" 5
13721 elif test $pkg_failed = untried; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723 $as_echo "no" >&6; }
13724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13726 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13727 is in your PATH or set the PKG_CONFIG environment variable to the full
13728 path to pkg-config.
13729
13730 Alternatively, you may set the environment variables GD_CFLAGS
13731 and GD_LIBS to avoid the need to call pkg-config.
13732 See the pkg-config man page for more details.
13733
13734 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13735 See \`config.log' for more details" "$LINENO" 5; }
13736 else
13737 GD_CFLAGS=$pkg_cv_GD_CFLAGS
13738 GD_LIBS=$pkg_cv_GD_LIBS
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13740 $as_echo "yes" >&6; }
13741
13742 fi
13743
13744 fi
13745 if test "$enable_mapper" = "yes"; then
13746 MAPPER_TRUE=
13747 MAPPER_FALSE='#'
13748 else
13749 MAPPER_TRUE='#'
13750 MAPPER_FALSE=
13751 fi
13752
13753
13754 if test "$enable_cfrhg" = "yes"; then
13755 CFRHG_PLUGIN_TRUE=
13756 CFRHG_PLUGIN_FALSE='#'
13757 else
13758 CFRHG_PLUGIN_TRUE='#'
13759 CFRHG_PLUGIN_FALSE=
13760 fi
13761
13762
13763 if test "$enable_cfcitybell" = "yes"; then
13764 CFCITYBELL_PLUGIN_TRUE=
13765 CFCITYBELL_PLUGIN_FALSE='#'
13766 else
13767 CFCITYBELL_PLUGIN_TRUE='#'
13768 CFCITYBELL_PLUGIN_FALSE=
13769 fi
13770
13771
13772 if test "$enable_check" = "yes"; then :
13773
13774
13775 pkg_failed=no
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
13777 $as_echo_n "checking for CHECK... " >&6; }
13778
13779 if test -n "$CHECK_CFLAGS"; then
13780 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
13781 elif test -n "$PKG_CONFIG"; then
13782 if test -n "$PKG_CONFIG" && \
13783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check\""; } >&5
13784 ($PKG_CONFIG --exists --print-errors "check") 2>&5
13785 ac_status=$?
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787 test $ac_status = 0; }; then
13788 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check" 2>/dev/null`
13789 test "x$?" != "x0" && pkg_failed=yes
13790 else
13791 pkg_failed=yes
13792 fi
13793 else
13794 pkg_failed=untried
13795 fi
13796 if test -n "$CHECK_LIBS"; then
13797 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
13798 elif test -n "$PKG_CONFIG"; then
13799 if test -n "$PKG_CONFIG" && \
13800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check\""; } >&5
13801 ($PKG_CONFIG --exists --print-errors "check") 2>&5
13802 ac_status=$?
13803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13804 test $ac_status = 0; }; then
13805 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check" 2>/dev/null`
13806 test "x$?" != "x0" && pkg_failed=yes
13807 else
13808 pkg_failed=yes
13809 fi
13810 else
13811 pkg_failed=untried
13812 fi
13813
13814
13815
13816 if test $pkg_failed = yes; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818 $as_echo "no" >&6; }
13819
13820 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13821 _pkg_short_errors_supported=yes
13822 else
13823 _pkg_short_errors_supported=no
13824 fi
13825 if test $_pkg_short_errors_supported = yes; then
13826 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check" 2>&1`
13827 else
13828 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check" 2>&1`
13829 fi
13830 # Put the nasty error message in config.log where it belongs
13831 echo "$CHECK_PKG_ERRORS" >&5
13832
13833 have_check="no"
13834 elif test $pkg_failed = untried; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13837 have_check="no"
13838 else
13839 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
13840 CHECK_LIBS=$pkg_cv_CHECK_LIBS
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13842 $as_echo "yes" >&6; }
13843 have_check="yes"
13844 fi
13845
13846 else
13847
13848 have_check="no"
13849
13850 fi
13851
13852 ac_header_dirent=no
13853 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13854 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13856 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13857 if eval \${$as_ac_Header+:} false; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862 #include <sys/types.h>
13863 #include <$ac_hdr>
13864
13865 int
13866 main ()
13867 {
13868 if ((DIR *) 0)
13869 return 0;
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 eval "$as_ac_Header=yes"
13876 else
13877 eval "$as_ac_Header=no"
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 eval ac_res=\$$as_ac_Header
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13883 $as_echo "$ac_res" >&6; }
13884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13885 cat >>confdefs.h <<_ACEOF
13886 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13887 _ACEOF
13888
13889 ac_header_dirent=$ac_hdr; break
13890 fi
13891
13892 done
13893 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13894 if test $ac_header_dirent = dirent.h; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13896 $as_echo_n "checking for library containing opendir... " >&6; }
13897 if ${ac_cv_search_opendir+:} false; then :
13898 $as_echo_n "(cached) " >&6
13899 else
13900 ac_func_search_save_LIBS=$LIBS
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903
13904 /* Override any GCC internal prototype to avoid an error.
13905 Use char because int might match the return type of a GCC
13906 builtin and then its argument prototype would still apply. */
13907 #ifdef __cplusplus
13908 extern "C"
13909 #endif
13910 char opendir ();
13911 int
13912 main ()
13913 {
13914 return opendir ();
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 for ac_lib in '' dir; do
13920 if test -z "$ac_lib"; then
13921 ac_res="none required"
13922 else
13923 ac_res=-l$ac_lib
13924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13925 fi
13926 if ac_fn_c_try_link "$LINENO"; then :
13927 ac_cv_search_opendir=$ac_res
13928 fi
13929 rm -f core conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext
13931 if ${ac_cv_search_opendir+:} false; then :
13932 break
13933 fi
13934 done
13935 if ${ac_cv_search_opendir+:} false; then :
13936
13937 else
13938 ac_cv_search_opendir=no
13939 fi
13940 rm conftest.$ac_ext
13941 LIBS=$ac_func_search_save_LIBS
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13944 $as_echo "$ac_cv_search_opendir" >&6; }
13945 ac_res=$ac_cv_search_opendir
13946 if test "$ac_res" != no; then :
13947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13948
13949 fi
13950
13951 else
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13953 $as_echo_n "checking for library containing opendir... " >&6; }
13954 if ${ac_cv_search_opendir+:} false; then :
13955 $as_echo_n "(cached) " >&6
13956 else
13957 ac_func_search_save_LIBS=$LIBS
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960
13961 /* Override any GCC internal prototype to avoid an error.
13962 Use char because int might match the return type of a GCC
13963 builtin and then its argument prototype would still apply. */
13964 #ifdef __cplusplus
13965 extern "C"
13966 #endif
13967 char opendir ();
13968 int
13969 main ()
13970 {
13971 return opendir ();
13972 ;
13973 return 0;
13974 }
13975 _ACEOF
13976 for ac_lib in '' x; do
13977 if test -z "$ac_lib"; then
13978 ac_res="none required"
13979 else
13980 ac_res=-l$ac_lib
13981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13982 fi
13983 if ac_fn_c_try_link "$LINENO"; then :
13984 ac_cv_search_opendir=$ac_res
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext
13988 if ${ac_cv_search_opendir+:} false; then :
13989 break
13990 fi
13991 done
13992 if ${ac_cv_search_opendir+:} false; then :
13993
13994 else
13995 ac_cv_search_opendir=no
13996 fi
13997 rm conftest.$ac_ext
13998 LIBS=$ac_func_search_save_LIBS
13999 fi
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14001 $as_echo "$ac_cv_search_opendir" >&6; }
14002 ac_res=$ac_cv_search_opendir
14003 if test "$ac_res" != no; then :
14004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14005
14006 fi
14007
14008 fi
14009
14010 for ac_header in crypt.h
14011 do :
14012 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
14013 if test "x$ac_cv_header_crypt_h" = xyes; then :
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_CRYPT_H 1
14016 _ACEOF
14017
14018 fi
14019
14020 done
14021
14022
14023
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports -fvisibility=hidden and the visibility __attribute__" >&5
14025 $as_echo_n "checking whether the C compiler supports -fvisibility=hidden and the visibility __attribute__... " >&6; }
14026 saved_CFLAGS="$CFLAGS"
14027 CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
14028 if test "$cross_compiling" = yes; then :
14029
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped because cross compiling" >&5
14031 $as_echo "skipped because cross compiling" >&6; }
14032
14033 else
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14036
14037 __attribute__((visibility("hidden")))
14038 int t1(void)
14039 {
14040 return 0;
14041 }
14042
14043 __attribute__((visibility("default")))
14044 int t2(void)
14045 {
14046 return 0;
14047 }
14048
14049 int main(void)
14050 {
14051 t1();
14052 t2();
14053 return 0;
14054 }
14055
14056 _ACEOF
14057 if ac_fn_c_try_run "$LINENO"; then :
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14060 $as_echo "yes" >&6; }
14061
14062 $as_echo "#define HAVE_VISIBILITY 1" >>confdefs.h
14063
14064 CFLAGS="$saved_CFLAGS -fvisibility=hidden"
14065
14066 else
14067
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14070 CFLAGS="$saved_CFLAGS"
14071
14072 fi
14073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14074 conftest.$ac_objext conftest.beam conftest.$ac_ext
14075 fi
14076
14077
14078
14079 for ac_func in getdtablesize strcasecmp strcasestr strdup strncasecmp srandom srand48 sysconf tempnam getaddrinfo getnameinfo
14080 do :
14081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14083 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14084 cat >>confdefs.h <<_ACEOF
14085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14086 _ACEOF
14087
14088 fi
14089 done
14090
14091
14092 for ac_func in strlcat strlcpy
14093 do :
14094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14096 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14097 cat >>confdefs.h <<_ACEOF
14098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14099 _ACEOF
14100
14101 fi
14102 done
14103
14104
14105 pkgstatedir=$localstatedir/$PACKAGE
14106
14107 pkgconfdir=$sysconfdir/$PACKAGE
14108
14109
14110 if test "$cf_have_libdl" = "yes"; then
14111 HAVE_LIBDL_TRUE=
14112 HAVE_LIBDL_FALSE='#'
14113 else
14114 HAVE_LIBDL_TRUE='#'
14115 HAVE_LIBDL_FALSE=
14116 fi
14117
14118
14119 pkg_failed=no
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
14121 $as_echo_n "checking for PYTHON... " >&6; }
14122
14123 if test -n "$PYTHON_CFLAGS"; then
14124 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
14125 elif test -n "$PKG_CONFIG"; then
14126 if test -n "$PKG_CONFIG" && \
14127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3\""; } >&5
14128 ($PKG_CONFIG --exists --print-errors "python3") 2>&5
14129 ac_status=$?
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; }; then
14132 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python3" 2>/dev/null`
14133 test "x$?" != "x0" && pkg_failed=yes
14134 else
14135 pkg_failed=yes
14136 fi
14137 else
14138 pkg_failed=untried
14139 fi
14140 if test -n "$PYTHON_LIBS"; then
14141 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
14142 elif test -n "$PKG_CONFIG"; then
14143 if test -n "$PKG_CONFIG" && \
14144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3\""; } >&5
14145 ($PKG_CONFIG --exists --print-errors "python3") 2>&5
14146 ac_status=$?
14147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14148 test $ac_status = 0; }; then
14149 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python3" 2>/dev/null`
14150 test "x$?" != "x0" && pkg_failed=yes
14151 else
14152 pkg_failed=yes
14153 fi
14154 else
14155 pkg_failed=untried
14156 fi
14157
14158
14159
14160 if test $pkg_failed = yes; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162 $as_echo "no" >&6; }
14163
14164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14165 _pkg_short_errors_supported=yes
14166 else
14167 _pkg_short_errors_supported=no
14168 fi
14169 if test $_pkg_short_errors_supported = yes; then
14170 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python3" 2>&1`
14171 else
14172 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python3" 2>&1`
14173 fi
14174 # Put the nasty error message in config.log where it belongs
14175 echo "$PYTHON_PKG_ERRORS" >&5
14176
14177
14178 pkg_failed=no
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
14180 $as_echo_n "checking for PYTHON... " >&6; }
14181
14182 if test -n "$PYTHON_CFLAGS"; then
14183 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
14184 elif test -n "$PKG_CONFIG"; then
14185 if test -n "$PKG_CONFIG" && \
14186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-2.7\""; } >&5
14187 ($PKG_CONFIG --exists --print-errors "python-2.7") 2>&5
14188 ac_status=$?
14189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14190 test $ac_status = 0; }; then
14191 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-2.7" 2>/dev/null`
14192 test "x$?" != "x0" && pkg_failed=yes
14193 else
14194 pkg_failed=yes
14195 fi
14196 else
14197 pkg_failed=untried
14198 fi
14199 if test -n "$PYTHON_LIBS"; then
14200 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
14201 elif test -n "$PKG_CONFIG"; then
14202 if test -n "$PKG_CONFIG" && \
14203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-2.7\""; } >&5
14204 ($PKG_CONFIG --exists --print-errors "python-2.7") 2>&5
14205 ac_status=$?
14206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14207 test $ac_status = 0; }; then
14208 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-2.7" 2>/dev/null`
14209 test "x$?" != "x0" && pkg_failed=yes
14210 else
14211 pkg_failed=yes
14212 fi
14213 else
14214 pkg_failed=untried
14215 fi
14216
14217
14218
14219 if test $pkg_failed = yes; then
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14222
14223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14224 _pkg_short_errors_supported=yes
14225 else
14226 _pkg_short_errors_supported=no
14227 fi
14228 if test $_pkg_short_errors_supported = yes; then
14229 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-2.7" 2>&1`
14230 else
14231 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-2.7" 2>&1`
14232 fi
14233 # Put the nasty error message in config.log where it belongs
14234 echo "$PYTHON_PKG_ERRORS" >&5
14235
14236 cf_will_build_python="no"
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: No Python found. Python plugin will not be built." >&5
14238 $as_echo "$as_me: No Python found. Python plugin will not be built." >&6;}
14239 elif test $pkg_failed = untried; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14242 cf_will_build_python="no"
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: No Python found. Python plugin will not be built." >&5
14244 $as_echo "$as_me: No Python found. Python plugin will not be built." >&6;}
14245 else
14246 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
14247 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14250 PLUGIN_PYTHON="cfpython.la"
14251 cf_will_build_python="yes"
14252 fi
14253 elif test $pkg_failed = untried; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255 $as_echo "no" >&6; }
14256
14257 pkg_failed=no
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
14259 $as_echo_n "checking for PYTHON... " >&6; }
14260
14261 if test -n "$PYTHON_CFLAGS"; then
14262 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
14263 elif test -n "$PKG_CONFIG"; then
14264 if test -n "$PKG_CONFIG" && \
14265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-2.7\""; } >&5
14266 ($PKG_CONFIG --exists --print-errors "python-2.7") 2>&5
14267 ac_status=$?
14268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14269 test $ac_status = 0; }; then
14270 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-2.7" 2>/dev/null`
14271 test "x$?" != "x0" && pkg_failed=yes
14272 else
14273 pkg_failed=yes
14274 fi
14275 else
14276 pkg_failed=untried
14277 fi
14278 if test -n "$PYTHON_LIBS"; then
14279 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
14280 elif test -n "$PKG_CONFIG"; then
14281 if test -n "$PKG_CONFIG" && \
14282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-2.7\""; } >&5
14283 ($PKG_CONFIG --exists --print-errors "python-2.7") 2>&5
14284 ac_status=$?
14285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286 test $ac_status = 0; }; then
14287 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-2.7" 2>/dev/null`
14288 test "x$?" != "x0" && pkg_failed=yes
14289 else
14290 pkg_failed=yes
14291 fi
14292 else
14293 pkg_failed=untried
14294 fi
14295
14296
14297
14298 if test $pkg_failed = yes; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14301
14302 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14303 _pkg_short_errors_supported=yes
14304 else
14305 _pkg_short_errors_supported=no
14306 fi
14307 if test $_pkg_short_errors_supported = yes; then
14308 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-2.7" 2>&1`
14309 else
14310 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-2.7" 2>&1`
14311 fi
14312 # Put the nasty error message in config.log where it belongs
14313 echo "$PYTHON_PKG_ERRORS" >&5
14314
14315 cf_will_build_python="no"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: No Python found. Python plugin will not be built." >&5
14317 $as_echo "$as_me: No Python found. Python plugin will not be built." >&6;}
14318 elif test $pkg_failed = untried; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14321 cf_will_build_python="no"
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: No Python found. Python plugin will not be built." >&5
14323 $as_echo "$as_me: No Python found. Python plugin will not be built." >&6;}
14324 else
14325 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
14326 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14328 $as_echo "yes" >&6; }
14329 PLUGIN_PYTHON="cfpython.la"
14330 cf_will_build_python="yes"
14331 fi
14332 else
14333 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
14334 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14336 $as_echo "yes" >&6; }
14337 PLUGIN_PYTHON="cfpython.la"
14338 cf_will_build_python="yes"
14339 fi
14340 if test "x$PLUGIN_PYTHON" != "x"; then
14341 PYTHON_PLUGIN_TRUE=
14342 PYTHON_PLUGIN_FALSE='#'
14343 else
14344 PYTHON_PLUGIN_TRUE='#'
14345 PYTHON_PLUGIN_FALSE=
14346 fi
14347
14348
14349
14350 if test "$cf_have_libsqlite" = "yes" -a "$enable_logger" = "yes"; then
14351 HAVE_CFLOGGER_TRUE=
14352 HAVE_CFLOGGER_FALSE='#'
14353 else
14354 HAVE_CFLOGGER_TRUE='#'
14355 HAVE_CFLOGGER_FALSE=
14356 fi
14357
14358 if test "$cf_have_libsqlite" = "yes" -a "$enable_newspaper" = "yes"; then
14359 HAVE_CFNEWSPAPER_TRUE=
14360 HAVE_CFNEWSPAPER_FALSE='#'
14361 else
14362 HAVE_CFNEWSPAPER_TRUE='#'
14363 HAVE_CFNEWSPAPER_FALSE=
14364 fi
14365
14366
14367 if test "$have_check" = "yes" -a "$enable_check" = "yes"; then
14368 HAVE_CHECK_TRUE=
14369 HAVE_CHECK_FALSE='#'
14370 else
14371 HAVE_CHECK_TRUE='#'
14372 HAVE_CHECK_FALSE=
14373 fi
14374
14375
14376 if test "$have_check" = "yes"; then
14377
14378
14379 # Check whether --with-xsltproc was given.
14380 if test "${with_xsltproc+set}" = set; then :
14381 withval=$with_xsltproc; check_xslt_forcedprogfound=$withval
14382 fi
14383
14384 if test "x$check_xslt_forcedprogfound" != "x"; then
14385 # Extract the first word of "$check_xslt_forcedprogfound", so it can be a program name with args.
14386 set dummy $check_xslt_forcedprogfound; ac_word=$2
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14388 $as_echo_n "checking for $ac_word... " >&6; }
14389 if ${ac_cv_path_check_xslt_forcedprogfound+:} false; then :
14390 $as_echo_n "(cached) " >&6
14391 else
14392 case $check_xslt_forcedprogfound in
14393 [\\/]* | ?:[\\/]*)
14394 ac_cv_path_check_xslt_forcedprogfound="$check_xslt_forcedprogfound" # Let the user override the test with a path.
14395 ;;
14396 *)
14397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398 for as_dir in $PATH
14399 do
14400 IFS=$as_save_IFS
14401 test -z "$as_dir" && as_dir=.
14402 for ac_exec_ext in '' $ac_executable_extensions; do
14403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14404 ac_cv_path_check_xslt_forcedprogfound="$as_dir/$ac_word$ac_exec_ext"
14405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14406 break 2
14407 fi
14408 done
14409 done
14410 IFS=$as_save_IFS
14411
14412 test -z "$ac_cv_path_check_xslt_forcedprogfound" && ac_cv_path_check_xslt_forcedprogfound="notfound"
14413 ;;
14414 esac
14415 fi
14416 check_xslt_forcedprogfound=$ac_cv_path_check_xslt_forcedprogfound
14417 if test -n "$check_xslt_forcedprogfound"; then
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_xslt_forcedprogfound" >&5
14419 $as_echo "$check_xslt_forcedprogfound" >&6; }
14420 else
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422 $as_echo "no" >&6; }
14423 fi
14424
14425
14426 fi
14427 # Extract the first word of "xsltproc", so it can be a program name with args.
14428 set dummy xsltproc; ac_word=$2
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14430 $as_echo_n "checking for $ac_word... " >&6; }
14431 if ${ac_cv_path_check_xslt_xsltprocfound+:} false; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 case $check_xslt_xsltprocfound in
14435 [\\/]* | ?:[\\/]*)
14436 ac_cv_path_check_xslt_xsltprocfound="$check_xslt_xsltprocfound" # Let the user override the test with a path.
14437 ;;
14438 *)
14439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14440 for as_dir in $PATH
14441 do
14442 IFS=$as_save_IFS
14443 test -z "$as_dir" && as_dir=.
14444 for ac_exec_ext in '' $ac_executable_extensions; do
14445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14446 ac_cv_path_check_xslt_xsltprocfound="$as_dir/$ac_word$ac_exec_ext"
14447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14448 break 2
14449 fi
14450 done
14451 done
14452 IFS=$as_save_IFS
14453
14454 test -z "$ac_cv_path_check_xslt_xsltprocfound" && ac_cv_path_check_xslt_xsltprocfound="notfound"
14455 ;;
14456 esac
14457 fi
14458 check_xslt_xsltprocfound=$ac_cv_path_check_xslt_xsltprocfound
14459 if test -n "$check_xslt_xsltprocfound"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_xslt_xsltprocfound" >&5
14461 $as_echo "$check_xslt_xsltprocfound" >&6; }
14462 else
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14465 fi
14466
14467
14468 # Extract the first word of "sabcmd", so it can be a program name with args.
14469 set dummy sabcmd; ac_word=$2
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14471 $as_echo_n "checking for $ac_word... " >&6; }
14472 if ${ac_cv_path_check_xslt_sablotronfound+:} false; then :
14473 $as_echo_n "(cached) " >&6
14474 else
14475 case $check_xslt_sablotronfound in
14476 [\\/]* | ?:[\\/]*)
14477 ac_cv_path_check_xslt_sablotronfound="$check_xslt_sablotronfound" # Let the user override the test with a path.
14478 ;;
14479 *)
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14482 do
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487 ac_cv_path_check_xslt_sablotronfound="$as_dir/$ac_word$ac_exec_ext"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14490 fi
14491 done
14492 done
14493 IFS=$as_save_IFS
14494
14495 test -z "$ac_cv_path_check_xslt_sablotronfound" && ac_cv_path_check_xslt_sablotronfound="notfound"
14496 ;;
14497 esac
14498 fi
14499 check_xslt_sablotronfound=$ac_cv_path_check_xslt_sablotronfound
14500 if test -n "$check_xslt_sablotronfound"; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_xslt_sablotronfound" >&5
14502 $as_echo "$check_xslt_sablotronfound" >&6; }
14503 else
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14506 fi
14507
14508
14509 xslt_prog="notfound"
14510 if test "$check_xslt_forcedprogfound" != notfound -a "x$check_xslt_forcedprogfound" != x; then
14511 xslt_prog="$check_xslt_forcedprogfound"
14512
14513 cat << \EOF > configtest.xml
14514 <?xml version="1.0" encoding="ISO-8859-1"?>
14515 <tool>
14516 <field id="prodName">
14517 <value>HAMMER HG2606</value>
14518 </field>
14519 <field id="prodNo">
14520 <value>32456240</value>
14521 </field>
14522 <field id="price">
14523 <value>.00</value>
14524 </field>
14525 </tool>
14526 EOF
14527 cat << \EOF > configtest.xsl
14528 <?xml version="1.0" encoding="ISO-8859-1"?>
14529 <xsl:stylesheet version="1.0"
14530 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
14531 <xsl:template match="/">
14532 <html>
14533 <body>
14534 <form method="post" action="edittool.asp">
14535 <h2>Tool Information (edit):</h2>
14536 <table border="0">
14537 <xsl:for-each select="tool/field">
14538 <tr>
14539 <td>
14540 <xsl:value-of select="@id"/>
14541 </td>
14542 <td>
14543 <input type="text">
14544 <xsl:attribute name="id">
14545 <xsl:value-of select="@id" />
14546 </xsl:attribute>
14547 <xsl:attribute name="name">
14548 <xsl:value-of select="@id" />
14549 </xsl:attribute>
14550 <xsl:attribute name="value">
14551 <xsl:value-of select="value" />
14552 </xsl:attribute>
14553 </input>
14554 </td>
14555 </tr>
14556 </xsl:for-each>
14557 </table>
14558 <br />
14559 <input type="submit" id="btn_sub" name="btn_sub" value="Submit" />
14560 <input type="reset" id="btn_res" name="btn_res" value="Reset" />
14561 </form>
14562 </body>
14563 </html>
14564 </xsl:template>
14565 </xsl:stylesheet>
14566 EOF
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking xslt compliance of $xslt_prog" >&5
14568 $as_echo_n "checking xslt compliance of $xslt_prog... " >&6; }
14569 to_run=$xslt_prog
14570 to_run=${to_run/\%1/configtest.xml}
14571 to_run=${to_run/\%2/configtest.xsl}
14572 to_run=${to_run/\%3/configtest.out}
14573 if { ac_try='$to_run'
14574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578 test $ac_status = 0; }; };then
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14580 $as_echo "yes" >&6; };
14581 xsltengine=$xslt_prog
14582 else
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14584 $as_echo "no" >&6; };
14585 xslt_prog="notfound"
14586 fi
14587
14588 fi
14589 xslt_prog="notfound"
14590 if test "$check_xslt_xsltprocfound" != notfound -a "$xslt_prog" = notfound; then
14591 xslt_prog="$check_xslt_xsltprocfound -o %3 %2 %1"
14592
14593 cat << \EOF > configtest.xml
14594 <?xml version="1.0" encoding="ISO-8859-1"?>
14595 <tool>
14596 <field id="prodName">
14597 <value>HAMMER HG2606</value>
14598 </field>
14599 <field id="prodNo">
14600 <value>32456240</value>
14601 </field>
14602 <field id="price">
14603 <value>.00</value>
14604 </field>
14605 </tool>
14606 EOF
14607 cat << \EOF > configtest.xsl
14608 <?xml version="1.0" encoding="ISO-8859-1"?>
14609 <xsl:stylesheet version="1.0"
14610 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
14611 <xsl:template match="/">
14612 <html>
14613 <body>
14614 <form method="post" action="edittool.asp">
14615 <h2>Tool Information (edit):</h2>
14616 <table border="0">
14617 <xsl:for-each select="tool/field">
14618 <tr>
14619 <td>
14620 <xsl:value-of select="@id"/>
14621 </td>
14622 <td>
14623 <input type="text">
14624 <xsl:attribute name="id">
14625 <xsl:value-of select="@id" />
14626 </xsl:attribute>
14627 <xsl:attribute name="name">
14628 <xsl:value-of select="@id" />
14629 </xsl:attribute>
14630 <xsl:attribute name="value">
14631 <xsl:value-of select="value" />
14632 </xsl:attribute>
14633 </input>
14634 </td>
14635 </tr>
14636 </xsl:for-each>
14637 </table>
14638 <br />
14639 <input type="submit" id="btn_sub" name="btn_sub" value="Submit" />
14640 <input type="reset" id="btn_res" name="btn_res" value="Reset" />
14641 </form>
14642 </body>
14643 </html>
14644 </xsl:template>
14645 </xsl:stylesheet>
14646 EOF
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking xslt compliance of $xslt_prog" >&5
14648 $as_echo_n "checking xslt compliance of $xslt_prog... " >&6; }
14649 to_run=$xslt_prog
14650 to_run=${to_run/\%1/configtest.xml}
14651 to_run=${to_run/\%2/configtest.xsl}
14652 to_run=${to_run/\%3/configtest.out}
14653 if { ac_try='$to_run'
14654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14658 test $ac_status = 0; }; };then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14660 $as_echo "yes" >&6; };
14661 xsltengine=$xslt_prog
14662 else
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; };
14665 xslt_prog="notfound"
14666 fi
14667
14668 fi
14669 if test "$check_xslt_sablotronfound" != notfound -a "$xslt_prog" = notfound; then
14670 xslt_prog="$check_xslt_sablotronfound %2 %1 %3"
14671
14672 cat << \EOF > configtest.xml
14673 <?xml version="1.0" encoding="ISO-8859-1"?>
14674 <tool>
14675 <field id="prodName">
14676 <value>HAMMER HG2606</value>
14677 </field>
14678 <field id="prodNo">
14679 <value>32456240</value>
14680 </field>
14681 <field id="price">
14682 <value>.00</value>
14683 </field>
14684 </tool>
14685 EOF
14686 cat << \EOF > configtest.xsl
14687 <?xml version="1.0" encoding="ISO-8859-1"?>
14688 <xsl:stylesheet version="1.0"
14689 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
14690 <xsl:template match="/">
14691 <html>
14692 <body>
14693 <form method="post" action="edittool.asp">
14694 <h2>Tool Information (edit):</h2>
14695 <table border="0">
14696 <xsl:for-each select="tool/field">
14697 <tr>
14698 <td>
14699 <xsl:value-of select="@id"/>
14700 </td>
14701 <td>
14702 <input type="text">
14703 <xsl:attribute name="id">
14704 <xsl:value-of select="@id" />
14705 </xsl:attribute>
14706 <xsl:attribute name="name">
14707 <xsl:value-of select="@id" />
14708 </xsl:attribute>
14709 <xsl:attribute name="value">
14710 <xsl:value-of select="value" />
14711 </xsl:attribute>
14712 </input>
14713 </td>
14714 </tr>
14715 </xsl:for-each>
14716 </table>
14717 <br />
14718 <input type="submit" id="btn_sub" name="btn_sub" value="Submit" />
14719 <input type="reset" id="btn_res" name="btn_res" value="Reset" />
14720 </form>
14721 </body>
14722 </html>
14723 </xsl:template>
14724 </xsl:stylesheet>
14725 EOF
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking xslt compliance of $xslt_prog" >&5
14727 $as_echo_n "checking xslt compliance of $xslt_prog... " >&6; }
14728 to_run=$xslt_prog
14729 to_run=${to_run/\%1/configtest.xml}
14730 to_run=${to_run/\%2/configtest.xsl}
14731 to_run=${to_run/\%3/configtest.out}
14732 if { ac_try='$to_run'
14733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14737 test $ac_status = 0; }; };then
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14739 $as_echo "yes" >&6; };
14740 xsltengine=$xslt_prog
14741 else
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; };
14744 xslt_prog="notfound"
14745 fi
14746
14747 fi
14748
14749 XSLTENGINE="$xsltengine"
14750
14751 else
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
14753 $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
14754 fi
14755
14756 if test -n "$xsltengine"; then
14757 PROCESS_XSLT_TRUE=
14758 PROCESS_XSLT_FALSE='#'
14759 else
14760 PROCESS_XSLT_TRUE='#'
14761 PROCESS_XSLT_FALSE=
14762 fi
14763
14764
14765 as_ac_File=`$as_echo "ac_cv_file_$srcdir/lib/archetypes" | $as_tr_sh`
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/lib/archetypes" >&5
14767 $as_echo_n "checking for $srcdir/lib/archetypes... " >&6; }
14768 if eval \${$as_ac_File+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 test "$cross_compiling" = yes &&
14772 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14773 if test -r "$srcdir/lib/archetypes"; then
14774 eval "$as_ac_File=yes"
14775 else
14776 eval "$as_ac_File=no"
14777 fi
14778 fi
14779 eval ac_res=\$$as_ac_File
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14781 $as_echo "$ac_res" >&6; }
14782 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
14783
14784 else
14785 has_archetypes=no
14786 fi
14787
14788 as_ac_File=`$as_echo "ac_cv_file_$srcdir/lib/arch" | $as_tr_sh`
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/lib/arch" >&5
14790 $as_echo_n "checking for $srcdir/lib/arch... " >&6; }
14791 if eval \${$as_ac_File+:} false; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 test "$cross_compiling" = yes &&
14795 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14796 if test -r "$srcdir/lib/arch"; then
14797 eval "$as_ac_File=yes"
14798 else
14799 eval "$as_ac_File=no"
14800 fi
14801 fi
14802 eval ac_res=\$$as_ac_File
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14804 $as_echo "$ac_res" >&6; }
14805 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
14806
14807 else
14808 has_arch_dir=no
14809 fi
14810
14811
14812 if test "$has_archetypes" == no -a "$has_arch_dir" == no; then :
14813
14814 as_fn_error $? "Could not find pre-built or raw archetypes." "$LINENO" 5
14815
14816 fi
14817
14818 $as_echo "## --------------- ##
14819 ## Generate Output ##
14820 ## --------------- ##"
14821 ac_config_files="$ac_config_files Makefile doc/Makefile doc/Developers/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile common/Makefile include/Makefile lib/Makefile random_maps/Makefile server/Makefile socket/Makefile types/Makefile utils/Makefile utils/scores.pl utils/player_dl.pl utils/crossloop utils/crossloop.web plugins/Makefile plugins/cfanim/Makefile plugins/cfanim/include/Makefile plugins/cflogger/Makefile plugins/cfnewspaper/Makefile plugins/cfnewspaper/include/Makefile plugins/cfpython/Makefile plugins/cfpython/include/Makefile plugins/cfrhg/Makefile plugins/cfrhg/include/Makefile plugins/citylife/Makefile plugins/citylife/include/Makefile plugins/cfcitybell/Makefile plugins/cfcitybell/include/Makefile plugins/common/Makefile plugins/common/include/Makefile test/Makefile test/bugs/Makefile test/bugs/bugtrack/Makefile test/include/Makefile test/templates/Makefile test/toolkit/Makefile test/unit/Makefile test/unit/common/Makefile test/unit/random_maps/Makefile test/unit/server/Makefile test/unit/socket/Makefile"
14822
14823 cat >confcache <<\_ACEOF
14824 # This file is a shell script that caches the results of configure
14825 # tests run on this system so they can be shared between configure
14826 # scripts and configure runs, see configure's option --config-cache.
14827 # It is not useful on other systems. If it contains results you don't
14828 # want to keep, you may remove or edit it.
14829 #
14830 # config.status only pays attention to the cache file if you give it
14831 # the --recheck option to rerun configure.
14832 #
14833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14835 # following values.
14836
14837 _ACEOF
14838
14839 # The following way of writing the cache mishandles newlines in values,
14840 # but we know of no workaround that is simple, portable, and efficient.
14841 # So, we kill variables containing newlines.
14842 # Ultrix sh set writes to stderr and can't be redirected directly,
14843 # and sets the high bit in the cache file unless we assign to the vars.
14844 (
14845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14846 eval ac_val=\$$ac_var
14847 case $ac_val in #(
14848 *${as_nl}*)
14849 case $ac_var in #(
14850 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14852 esac
14853 case $ac_var in #(
14854 _ | IFS | as_nl) ;; #(
14855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14856 *) { eval $ac_var=; unset $ac_var;} ;;
14857 esac ;;
14858 esac
14859 done
14860
14861 (set) 2>&1 |
14862 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14863 *${as_nl}ac_space=\ *)
14864 # `set' does not quote correctly, so add quotes: double-quote
14865 # substitution turns \\\\ into \\, and sed turns \\ into \.
14866 sed -n \
14867 "s/'/'\\\\''/g;
14868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14869 ;; #(
14870 *)
14871 # `set' quotes correctly as required by POSIX, so do not add quotes.
14872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14873 ;;
14874 esac |
14875 sort
14876 ) |
14877 sed '
14878 /^ac_cv_env_/b end
14879 t clear
14880 :clear
14881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14882 t end
14883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14884 :end' >>confcache
14885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14886 if test -w "$cache_file"; then
14887 if test "x$cache_file" != "x/dev/null"; then
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14889 $as_echo "$as_me: updating cache $cache_file" >&6;}
14890 if test ! -f "$cache_file" || test -h "$cache_file"; then
14891 cat confcache >"$cache_file"
14892 else
14893 case $cache_file in #(
14894 */* | ?:*)
14895 mv -f confcache "$cache_file"$$ &&
14896 mv -f "$cache_file"$$ "$cache_file" ;; #(
14897 *)
14898 mv -f confcache "$cache_file" ;;
14899 esac
14900 fi
14901 fi
14902 else
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14905 fi
14906 fi
14907 rm -f confcache
14908
14909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14910 # Let make expand exec_prefix.
14911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14912
14913 DEFS=-DHAVE_CONFIG_H
14914
14915 ac_libobjs=
14916 ac_ltlibobjs=
14917 U=
14918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14919 # 1. Remove the extension, and $U if already installed.
14920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14921 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14923 # will be set to the directory where LIBOBJS objects are built.
14924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14926 done
14927 LIBOBJS=$ac_libobjs
14928
14929 LTLIBOBJS=$ac_ltlibobjs
14930
14931
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14933 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14934 if test -n "$am_sleep_pid"; then
14935 # Hide warnings about reused PIDs.
14936 wait $am_sleep_pid 2>/dev/null
14937 fi
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14939 $as_echo "done" >&6; }
14940 if test -n "$EXEEXT"; then
14941 am__EXEEXT_TRUE=
14942 am__EXEEXT_FALSE='#'
14943 else
14944 am__EXEEXT_TRUE='#'
14945 am__EXEEXT_FALSE=
14946 fi
14947
14948 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14949 as_fn_error $? "conditional \"AMDEP\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14951 fi
14952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14953 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14955 fi
14956 if test -z "${MAPPER_TRUE}" && test -z "${MAPPER_FALSE}"; then
14957 as_fn_error $? "conditional \"MAPPER\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959 fi
14960 if test -z "${CFRHG_PLUGIN_TRUE}" && test -z "${CFRHG_PLUGIN_FALSE}"; then
14961 as_fn_error $? "conditional \"CFRHG_PLUGIN\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 fi
14964 if test -z "${CFCITYBELL_PLUGIN_TRUE}" && test -z "${CFCITYBELL_PLUGIN_FALSE}"; then
14965 as_fn_error $? "conditional \"CFCITYBELL_PLUGIN\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 fi
14968 if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then
14969 as_fn_error $? "conditional \"HAVE_LIBDL\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 fi
14972 if test -z "${PYTHON_PLUGIN_TRUE}" && test -z "${PYTHON_PLUGIN_FALSE}"; then
14973 as_fn_error $? "conditional \"PYTHON_PLUGIN\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 fi
14976 if test -z "${HAVE_CFLOGGER_TRUE}" && test -z "${HAVE_CFLOGGER_FALSE}"; then
14977 as_fn_error $? "conditional \"HAVE_CFLOGGER\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 fi
14980 if test -z "${HAVE_CFNEWSPAPER_TRUE}" && test -z "${HAVE_CFNEWSPAPER_FALSE}"; then
14981 as_fn_error $? "conditional \"HAVE_CFNEWSPAPER\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 fi
14984 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
14985 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987 fi
14988 if test -z "${PROCESS_XSLT_TRUE}" && test -z "${PROCESS_XSLT_FALSE}"; then
14989 as_fn_error $? "conditional \"PROCESS_XSLT\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991 fi
14992
14993 : "${CONFIG_STATUS=./config.status}"
14994 ac_write_fail=0
14995 ac_clean_files_save=$ac_clean_files
14996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14998 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14999 as_write_fail=0
15000 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15001 #! $SHELL
15002 # Generated by $as_me.
15003 # Run this file to recreate the current configuration.
15004 # Compiler output produced by configure, useful for debugging
15005 # configure, is in config.log if it exists.
15006
15007 debug=false
15008 ac_cs_recheck=false
15009 ac_cs_silent=false
15010
15011 SHELL=\${CONFIG_SHELL-$SHELL}
15012 export SHELL
15013 _ASEOF
15014 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15015 ## -------------------- ##
15016 ## M4sh Initialization. ##
15017 ## -------------------- ##
15018
15019 # Be more Bourne compatible
15020 DUALCASE=1; export DUALCASE # for MKS sh
15021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15022 emulate sh
15023 NULLCMD=:
15024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15025 # is contrary to our usage. Disable this feature.
15026 alias -g '${1+"$@"}'='"$@"'
15027 setopt NO_GLOB_SUBST
15028 else
15029 case `(set -o) 2>/dev/null` in #(
15030 *posix*) :
15031 set -o posix ;; #(
15032 *) :
15033 ;;
15034 esac
15035 fi
15036
15037
15038 as_nl='
15039 '
15040 export as_nl
15041 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15042 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15045 # Prefer a ksh shell builtin over an external printf program on Solaris,
15046 # but without wasting forks for bash or zsh.
15047 if test -z "$BASH_VERSION$ZSH_VERSION" \
15048 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15049 as_echo='print -r --'
15050 as_echo_n='print -rn --'
15051 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15052 as_echo='printf %s\n'
15053 as_echo_n='printf %s'
15054 else
15055 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15056 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15057 as_echo_n='/usr/ucb/echo -n'
15058 else
15059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15060 as_echo_n_body='eval
15061 arg=$1;
15062 case $arg in #(
15063 *"$as_nl"*)
15064 expr "X$arg" : "X\\(.*\\)$as_nl";
15065 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15066 esac;
15067 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15068 '
15069 export as_echo_n_body
15070 as_echo_n='sh -c $as_echo_n_body as_echo'
15071 fi
15072 export as_echo_body
15073 as_echo='sh -c $as_echo_body as_echo'
15074 fi
15075
15076 # The user is always right.
15077 if test "${PATH_SEPARATOR+set}" != set; then
15078 PATH_SEPARATOR=:
15079 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15080 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15081 PATH_SEPARATOR=';'
15082 }
15083 fi
15084
15085
15086 # IFS
15087 # We need space, tab and new line, in precisely that order. Quoting is
15088 # there to prevent editors from complaining about space-tab.
15089 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15090 # splitting by setting IFS to empty value.)
15091 IFS=" "" $as_nl"
15092
15093 # Find who we are. Look in the path if we contain no directory separator.
15094 as_myself=
15095 case $0 in #((
15096 *[\\/]* ) as_myself=$0 ;;
15097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15098 for as_dir in $PATH
15099 do
15100 IFS=$as_save_IFS
15101 test -z "$as_dir" && as_dir=.
15102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15103 done
15104 IFS=$as_save_IFS
15105
15106 ;;
15107 esac
15108 # We did not find ourselves, most probably we were run as `sh COMMAND'
15109 # in which case we are not to be found in the path.
15110 if test "x$as_myself" = x; then
15111 as_myself=$0
15112 fi
15113 if test ! -f "$as_myself"; then
15114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15115 exit 1
15116 fi
15117
15118 # Unset variables that we do not need and which cause bugs (e.g. in
15119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15120 # suppresses any "Segmentation fault" message there. '((' could
15121 # trigger a bug in pdksh 5.2.14.
15122 for as_var in BASH_ENV ENV MAIL MAILPATH
15123 do eval test x\${$as_var+set} = xset \
15124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15125 done
15126 PS1='$ '
15127 PS2='> '
15128 PS4='+ '
15129
15130 # NLS nuisances.
15131 LC_ALL=C
15132 export LC_ALL
15133 LANGUAGE=C
15134 export LANGUAGE
15135
15136 # CDPATH.
15137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15138
15139
15140 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15141 # ----------------------------------------
15142 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15143 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15144 # script with STATUS, using 1 if that was 0.
15145 as_fn_error ()
15146 {
15147 as_status=$1; test $as_status -eq 0 && as_status=1
15148 if test "$4"; then
15149 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15150 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15151 fi
15152 $as_echo "$as_me: error: $2" >&2
15153 as_fn_exit $as_status
15154 } # as_fn_error
15155
15156
15157 # as_fn_set_status STATUS
15158 # -----------------------
15159 # Set $? to STATUS, without forking.
15160 as_fn_set_status ()
15161 {
15162 return $1
15163 } # as_fn_set_status
15164
15165 # as_fn_exit STATUS
15166 # -----------------
15167 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15168 as_fn_exit ()
15169 {
15170 set +e
15171 as_fn_set_status $1
15172 exit $1
15173 } # as_fn_exit
15174
15175 # as_fn_unset VAR
15176 # ---------------
15177 # Portably unset VAR.
15178 as_fn_unset ()
15179 {
15180 { eval $1=; unset $1;}
15181 }
15182 as_unset=as_fn_unset
15183 # as_fn_append VAR VALUE
15184 # ----------------------
15185 # Append the text in VALUE to the end of the definition contained in VAR. Take
15186 # advantage of any shell optimizations that allow amortized linear growth over
15187 # repeated appends, instead of the typical quadratic growth present in naive
15188 # implementations.
15189 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15190 eval 'as_fn_append ()
15191 {
15192 eval $1+=\$2
15193 }'
15194 else
15195 as_fn_append ()
15196 {
15197 eval $1=\$$1\$2
15198 }
15199 fi # as_fn_append
15200
15201 # as_fn_arith ARG...
15202 # ------------------
15203 # Perform arithmetic evaluation on the ARGs, and store the result in the
15204 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15205 # must be portable across $(()) and expr.
15206 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15207 eval 'as_fn_arith ()
15208 {
15209 as_val=$(( $* ))
15210 }'
15211 else
15212 as_fn_arith ()
15213 {
15214 as_val=`expr "$@" || test $? -eq 1`
15215 }
15216 fi # as_fn_arith
15217
15218
15219 if expr a : '\(a\)' >/dev/null 2>&1 &&
15220 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15221 as_expr=expr
15222 else
15223 as_expr=false
15224 fi
15225
15226 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15227 as_basename=basename
15228 else
15229 as_basename=false
15230 fi
15231
15232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15233 as_dirname=dirname
15234 else
15235 as_dirname=false
15236 fi
15237
15238 as_me=`$as_basename -- "$0" ||
15239 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15240 X"$0" : 'X\(//\)$' \| \
15241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15242 $as_echo X/"$0" |
15243 sed '/^.*\/\([^/][^/]*\)\/*$/{
15244 s//\1/
15245 q
15246 }
15247 /^X\/\(\/\/\)$/{
15248 s//\1/
15249 q
15250 }
15251 /^X\/\(\/\).*/{
15252 s//\1/
15253 q
15254 }
15255 s/.*/./; q'`
15256
15257 # Avoid depending upon Character Ranges.
15258 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15259 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15260 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15261 as_cr_digits='0123456789'
15262 as_cr_alnum=$as_cr_Letters$as_cr_digits
15263
15264 ECHO_C= ECHO_N= ECHO_T=
15265 case `echo -n x` in #(((((
15266 -n*)
15267 case `echo 'xy\c'` in
15268 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15269 xy) ECHO_C='\c';;
15270 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15271 ECHO_T=' ';;
15272 esac;;
15273 *)
15274 ECHO_N='-n';;
15275 esac
15276
15277 rm -f conf$$ conf$$.exe conf$$.file
15278 if test -d conf$$.dir; then
15279 rm -f conf$$.dir/conf$$.file
15280 else
15281 rm -f conf$$.dir
15282 mkdir conf$$.dir 2>/dev/null
15283 fi
15284 if (echo >conf$$.file) 2>/dev/null; then
15285 if ln -s conf$$.file conf$$ 2>/dev/null; then
15286 as_ln_s='ln -s'
15287 # ... but there are two gotchas:
15288 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15289 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15290 # In both cases, we have to default to `cp -pR'.
15291 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15292 as_ln_s='cp -pR'
15293 elif ln conf$$.file conf$$ 2>/dev/null; then
15294 as_ln_s=ln
15295 else
15296 as_ln_s='cp -pR'
15297 fi
15298 else
15299 as_ln_s='cp -pR'
15300 fi
15301 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15302 rmdir conf$$.dir 2>/dev/null
15303
15304
15305 # as_fn_mkdir_p
15306 # -------------
15307 # Create "$as_dir" as a directory, including parents if necessary.
15308 as_fn_mkdir_p ()
15309 {
15310
15311 case $as_dir in #(
15312 -*) as_dir=./$as_dir;;
15313 esac
15314 test -d "$as_dir" || eval $as_mkdir_p || {
15315 as_dirs=
15316 while :; do
15317 case $as_dir in #(
15318 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15319 *) as_qdir=$as_dir;;
15320 esac
15321 as_dirs="'$as_qdir' $as_dirs"
15322 as_dir=`$as_dirname -- "$as_dir" ||
15323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15324 X"$as_dir" : 'X\(//\)[^/]' \| \
15325 X"$as_dir" : 'X\(//\)$' \| \
15326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15327 $as_echo X"$as_dir" |
15328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15329 s//\1/
15330 q
15331 }
15332 /^X\(\/\/\)[^/].*/{
15333 s//\1/
15334 q
15335 }
15336 /^X\(\/\/\)$/{
15337 s//\1/
15338 q
15339 }
15340 /^X\(\/\).*/{
15341 s//\1/
15342 q
15343 }
15344 s/.*/./; q'`
15345 test -d "$as_dir" && break
15346 done
15347 test -z "$as_dirs" || eval "mkdir $as_dirs"
15348 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15349
15350
15351 } # as_fn_mkdir_p
15352 if mkdir -p . 2>/dev/null; then
15353 as_mkdir_p='mkdir -p "$as_dir"'
15354 else
15355 test -d ./-p && rmdir ./-p
15356 as_mkdir_p=false
15357 fi
15358
15359
15360 # as_fn_executable_p FILE
15361 # -----------------------
15362 # Test if FILE is an executable regular file.
15363 as_fn_executable_p ()
15364 {
15365 test -f "$1" && test -x "$1"
15366 } # as_fn_executable_p
15367 as_test_x='test -x'
15368 as_executable_p=as_fn_executable_p
15369
15370 # Sed expression to map a string onto a valid CPP name.
15371 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15372
15373 # Sed expression to map a string onto a valid variable name.
15374 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15375
15376
15377 exec 6>&1
15378 ## ----------------------------------- ##
15379 ## Main body of $CONFIG_STATUS script. ##
15380 ## ----------------------------------- ##
15381 _ASEOF
15382 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15383
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385 # Save the log message, to keep $0 and so on meaningful, and to
15386 # report actual input values of CONFIG_FILES etc. instead of their
15387 # values after options handling.
15388 ac_log="
15389 This file was extended by crossfire $as_me 1.75.0, which was
15390 generated by GNU Autoconf 2.69. Invocation command line was
15391
15392 CONFIG_FILES = $CONFIG_FILES
15393 CONFIG_HEADERS = $CONFIG_HEADERS
15394 CONFIG_LINKS = $CONFIG_LINKS
15395 CONFIG_COMMANDS = $CONFIG_COMMANDS
15396 $ $0 $@
15397
15398 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15399 "
15400
15401 _ACEOF
15402
15403 case $ac_config_files in *"
15404 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15405 esac
15406
15407 case $ac_config_headers in *"
15408 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15409 esac
15410
15411
15412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15413 # Files that config.status was made for.
15414 config_files="$ac_config_files"
15415 config_headers="$ac_config_headers"
15416 config_commands="$ac_config_commands"
15417
15418 _ACEOF
15419
15420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15421 ac_cs_usage="\
15422 \`$as_me' instantiates files and other configuration actions
15423 from templates according to the current configuration. Unless the files
15424 and actions are specified as TAGs, all are instantiated by default.
15425
15426 Usage: $0 [OPTION]... [TAG]...
15427
15428 -h, --help print this help, then exit
15429 -V, --version print version number and configuration settings, then exit
15430 --config print configuration, then exit
15431 -q, --quiet, --silent
15432 do not print progress messages
15433 -d, --debug don't remove temporary files
15434 --recheck update $as_me by reconfiguring in the same conditions
15435 --file=FILE[:TEMPLATE]
15436 instantiate the configuration file FILE
15437 --header=FILE[:TEMPLATE]
15438 instantiate the configuration header FILE
15439
15440 Configuration files:
15441 $config_files
15442
15443 Configuration headers:
15444 $config_headers
15445
15446 Configuration commands:
15447 $config_commands
15448
15449 Report bugs to <[email protected]>."
15450
15451 _ACEOF
15452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15453 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15454 ac_cs_version="\\
15455 crossfire config.status 1.75.0
15456 configured by $0, generated by GNU Autoconf 2.69,
15457 with options \\"\$ac_cs_config\\"
15458
15459 Copyright (C) 2012 Free Software Foundation, Inc.
15460 This config.status script is free software; the Free Software Foundation
15461 gives unlimited permission to copy, distribute and modify it."
15462
15463 ac_pwd='$ac_pwd'
15464 srcdir='$srcdir'
15465 INSTALL='$INSTALL'
15466 MKDIR_P='$MKDIR_P'
15467 AWK='$AWK'
15468 test -n "\$AWK" || AWK=awk
15469 _ACEOF
15470
15471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15472 # The default lists apply if the user does not specify any file.
15473 ac_need_defaults=:
15474 while test $# != 0
15475 do
15476 case $1 in
15477 --*=?*)
15478 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15479 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15480 ac_shift=:
15481 ;;
15482 --*=)
15483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15484 ac_optarg=
15485 ac_shift=:
15486 ;;
15487 *)
15488 ac_option=$1
15489 ac_optarg=$2
15490 ac_shift=shift
15491 ;;
15492 esac
15493
15494 case $ac_option in
15495 # Handling of the options.
15496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15497 ac_cs_recheck=: ;;
15498 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15499 $as_echo "$ac_cs_version"; exit ;;
15500 --config | --confi | --conf | --con | --co | --c )
15501 $as_echo "$ac_cs_config"; exit ;;
15502 --debug | --debu | --deb | --de | --d | -d )
15503 debug=: ;;
15504 --file | --fil | --fi | --f )
15505 $ac_shift
15506 case $ac_optarg in
15507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15508 '') as_fn_error $? "missing file argument" ;;
15509 esac
15510 as_fn_append CONFIG_FILES " '$ac_optarg'"
15511 ac_need_defaults=false;;
15512 --header | --heade | --head | --hea )
15513 $ac_shift
15514 case $ac_optarg in
15515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15516 esac
15517 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15518 ac_need_defaults=false;;
15519 --he | --h)
15520 # Conflict between --help and --header
15521 as_fn_error $? "ambiguous option: \`$1'
15522 Try \`$0 --help' for more information.";;
15523 --help | --hel | -h )
15524 $as_echo "$ac_cs_usage"; exit ;;
15525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15527 ac_cs_silent=: ;;
15528
15529 # This is an error.
15530 -*) as_fn_error $? "unrecognized option: \`$1'
15531 Try \`$0 --help' for more information." ;;
15532
15533 *) as_fn_append ac_config_targets " $1"
15534 ac_need_defaults=false ;;
15535
15536 esac
15537 shift
15538 done
15539
15540 ac_configure_extra_args=
15541
15542 if $ac_cs_silent; then
15543 exec 6>/dev/null
15544 ac_configure_extra_args="$ac_configure_extra_args --silent"
15545 fi
15546
15547 _ACEOF
15548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15549 if \$ac_cs_recheck; then
15550 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15551 shift
15552 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15553 CONFIG_SHELL='$SHELL'
15554 export CONFIG_SHELL
15555 exec "\$@"
15556 fi
15557
15558 _ACEOF
15559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560 exec 5>>config.log
15561 {
15562 echo
15563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15564 ## Running $as_me. ##
15565 _ASBOX
15566 $as_echo "$ac_log"
15567 } >&5
15568
15569 _ACEOF
15570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571 #
15572 # INIT-COMMANDS
15573 #
15574 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15575
15576
15577 # The HP-UX ksh and POSIX shell print the target directory to stdout
15578 # if CDPATH is set.
15579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15580
15581 sed_quote_subst='$sed_quote_subst'
15582 double_quote_subst='$double_quote_subst'
15583 delay_variable_subst='$delay_variable_subst'
15584 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15585 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15586 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15587 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15588 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15589 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15590 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15591 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15592 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15593 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15594 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15595 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15596 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15597 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15598 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15599 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15600 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15601 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15602 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15603 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15604 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15605 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15606 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15607 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15608 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15609 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15610 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15611 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15612 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15613 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15614 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15615 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15616 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15617 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15618 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15619 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15620 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15621 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15622 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15623 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15624 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15625 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15626 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15627 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15628 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15629 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15630 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15631 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15632 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15633 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15634 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15635 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15636 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15637 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15638 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15639 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15640 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15641 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15642 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15643 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15644 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15645 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15646 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15647 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15648 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15649 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15650 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15651 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15652 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15653 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15654 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15655 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15656 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15657 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15658 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15659 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15660 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15661 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15662 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15663 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15664 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15665 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15666 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15667 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15668 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15669 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15670 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15671 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15672 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15673 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15674 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15675 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15676 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15677 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15678 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15679 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15680 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15681 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15682 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15683 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15684 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15685 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15686 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15687 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15688 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15689 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15690 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15691 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15692 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15693 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15694 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15695 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15696 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15697 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15698 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15699 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15700 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15701 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15702 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15703 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15704 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15705 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15706 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15707 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15708 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15709 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15710 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15711 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15712 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15713 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15714 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15715 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15716 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15717 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15718 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15719
15720 LTCC='$LTCC'
15721 LTCFLAGS='$LTCFLAGS'
15722 compiler='$compiler_DEFAULT'
15723
15724 # A function that is used when there is no print builtin or printf.
15725 func_fallback_echo ()
15726 {
15727 eval 'cat <<_LTECHO_EOF
15728 \$1
15729 _LTECHO_EOF'
15730 }
15731
15732 # Quote evaled strings.
15733 for var in SHELL \
15734 ECHO \
15735 PATH_SEPARATOR \
15736 SED \
15737 GREP \
15738 EGREP \
15739 FGREP \
15740 LD \
15741 NM \
15742 LN_S \
15743 lt_SP2NL \
15744 lt_NL2SP \
15745 reload_flag \
15746 OBJDUMP \
15747 deplibs_check_method \
15748 file_magic_cmd \
15749 file_magic_glob \
15750 want_nocaseglob \
15751 DLLTOOL \
15752 sharedlib_from_linklib_cmd \
15753 AR \
15754 AR_FLAGS \
15755 archiver_list_spec \
15756 STRIP \
15757 RANLIB \
15758 CC \
15759 CFLAGS \
15760 compiler \
15761 lt_cv_sys_global_symbol_pipe \
15762 lt_cv_sys_global_symbol_to_cdecl \
15763 lt_cv_sys_global_symbol_to_import \
15764 lt_cv_sys_global_symbol_to_c_name_address \
15765 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15766 lt_cv_nm_interface \
15767 nm_file_list_spec \
15768 lt_cv_truncate_bin \
15769 lt_prog_compiler_no_builtin_flag \
15770 lt_prog_compiler_pic \
15771 lt_prog_compiler_wl \
15772 lt_prog_compiler_static \
15773 lt_cv_prog_compiler_c_o \
15774 need_locks \
15775 MANIFEST_TOOL \
15776 DSYMUTIL \
15777 NMEDIT \
15778 LIPO \
15779 OTOOL \
15780 OTOOL64 \
15781 shrext_cmds \
15782 export_dynamic_flag_spec \
15783 whole_archive_flag_spec \
15784 compiler_needs_object \
15785 with_gnu_ld \
15786 allow_undefined_flag \
15787 no_undefined_flag \
15788 hardcode_libdir_flag_spec \
15789 hardcode_libdir_separator \
15790 exclude_expsyms \
15791 include_expsyms \
15792 file_list_spec \
15793 variables_saved_for_relink \
15794 libname_spec \
15795 library_names_spec \
15796 soname_spec \
15797 install_override_mode \
15798 finish_eval \
15799 old_striplib \
15800 striplib; do
15801 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15802 *[\\\\\\\`\\"\\\$]*)
15803 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15804 ;;
15805 *)
15806 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15807 ;;
15808 esac
15809 done
15810
15811 # Double-quote double-evaled strings.
15812 for var in reload_cmds \
15813 old_postinstall_cmds \
15814 old_postuninstall_cmds \
15815 old_archive_cmds \
15816 extract_expsyms_cmds \
15817 old_archive_from_new_cmds \
15818 old_archive_from_expsyms_cmds \
15819 archive_cmds \
15820 archive_expsym_cmds \
15821 module_cmds \
15822 module_expsym_cmds \
15823 export_symbols_cmds \
15824 prelink_cmds \
15825 postlink_cmds \
15826 postinstall_cmds \
15827 postuninstall_cmds \
15828 finish_cmds \
15829 sys_lib_search_path_spec \
15830 configure_time_dlsearch_path \
15831 configure_time_lt_sys_library_path; do
15832 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15833 *[\\\\\\\`\\"\\\$]*)
15834 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15835 ;;
15836 *)
15837 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15838 ;;
15839 esac
15840 done
15841
15842 ac_aux_dir='$ac_aux_dir'
15843
15844 # See if we are running on zsh, and set the options that allow our
15845 # commands through without removal of \ escapes INIT.
15846 if test -n "\${ZSH_VERSION+set}"; then
15847 setopt NO_GLOB_SUBST
15848 fi
15849
15850
15851 PACKAGE='$PACKAGE'
15852 VERSION='$VERSION'
15853 RM='$RM'
15854 ofile='$ofile'
15855
15856
15857
15858
15859 _ACEOF
15860
15861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15862
15863 # Handling of arguments.
15864 for ac_config_target in $ac_config_targets
15865 do
15866 case $ac_config_target in
15867 "include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
15868 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15869 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15870 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15871 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15872 "doc/Developers/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Developers/Makefile" ;;
15873 "doc/playbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/playbook/Makefile" ;;
15874 "doc/playbook-html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/playbook-html/Makefile" ;;
15875 "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
15876 "doc/spell-docs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/spell-docs/Makefile" ;;
15877 "doc/spoiler/Makefile") CONFIG_FILES="$CONFIG_FILES doc/spoiler/Makefile" ;;
15878 "doc/spoiler-html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/spoiler-html/Makefile" ;;
15879 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
15880 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15881 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15882 "random_maps/Makefile") CONFIG_FILES="$CONFIG_FILES random_maps/Makefile" ;;
15883 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
15884 "socket/Makefile") CONFIG_FILES="$CONFIG_FILES socket/Makefile" ;;
15885 "types/Makefile") CONFIG_FILES="$CONFIG_FILES types/Makefile" ;;
15886 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
15887 "utils/scores.pl") CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;;
15888 "utils/player_dl.pl") CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;;
15889 "utils/crossloop") CONFIG_FILES="$CONFIG_FILES utils/crossloop" ;;
15890 "utils/crossloop.web") CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;;
15891 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
15892 "plugins/cfanim/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;;
15893 "plugins/cfanim/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfanim/include/Makefile" ;;
15894 "plugins/cflogger/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cflogger/Makefile" ;;
15895 "plugins/cfnewspaper/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfnewspaper/Makefile" ;;
15896 "plugins/cfnewspaper/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfnewspaper/include/Makefile" ;;
15897 "plugins/cfpython/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;;
15898 "plugins/cfpython/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfpython/include/Makefile" ;;
15899 "plugins/cfrhg/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfrhg/Makefile" ;;
15900 "plugins/cfrhg/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfrhg/include/Makefile" ;;
15901 "plugins/citylife/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/citylife/Makefile" ;;
15902 "plugins/citylife/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/citylife/include/Makefile" ;;
15903 "plugins/cfcitybell/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfcitybell/Makefile" ;;
15904 "plugins/cfcitybell/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/cfcitybell/include/Makefile" ;;
15905 "plugins/common/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/common/Makefile" ;;
15906 "plugins/common/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/common/include/Makefile" ;;
15907 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15908 "test/bugs/Makefile") CONFIG_FILES="$CONFIG_FILES test/bugs/Makefile" ;;
15909 "test/bugs/bugtrack/Makefile") CONFIG_FILES="$CONFIG_FILES test/bugs/bugtrack/Makefile" ;;
15910 "test/include/Makefile") CONFIG_FILES="$CONFIG_FILES test/include/Makefile" ;;
15911 "test/templates/Makefile") CONFIG_FILES="$CONFIG_FILES test/templates/Makefile" ;;
15912 "test/toolkit/Makefile") CONFIG_FILES="$CONFIG_FILES test/toolkit/Makefile" ;;
15913 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
15914 "test/unit/common/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/common/Makefile" ;;
15915 "test/unit/random_maps/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/random_maps/Makefile" ;;
15916 "test/unit/server/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/server/Makefile" ;;
15917 "test/unit/socket/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/socket/Makefile" ;;
15918
15919 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15920 esac
15921 done
15922
15923
15924 # If the user did not use the arguments to specify the items to instantiate,
15925 # then the envvar interface is used. Set only those that are not.
15926 # We use the long form for the default assignment because of an extremely
15927 # bizarre bug on SunOS 4.1.3.
15928 if $ac_need_defaults; then
15929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15932 fi
15933
15934 # Have a temporary directory for convenience. Make it in the build tree
15935 # simply because there is no reason against having it here, and in addition,
15936 # creating and moving files from /tmp can sometimes cause problems.
15937 # Hook for its removal unless debugging.
15938 # Note that there is a small window in which the directory will not be cleaned:
15939 # after its creation but before its name has been assigned to `$tmp'.
15940 $debug ||
15941 {
15942 tmp= ac_tmp=
15943 trap 'exit_status=$?
15944 : "${ac_tmp:=$tmp}"
15945 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15946 ' 0
15947 trap 'as_fn_exit 1' 1 2 13 15
15948 }
15949 # Create a (secure) tmp directory for tmp files.
15950
15951 {
15952 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15953 test -d "$tmp"
15954 } ||
15955 {
15956 tmp=./conf$$-$RANDOM
15957 (umask 077 && mkdir "$tmp")
15958 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15959 ac_tmp=$tmp
15960
15961 # Set up the scripts for CONFIG_FILES section.
15962 # No need to generate them if there are no CONFIG_FILES.
15963 # This happens for instance with `./config.status config.h'.
15964 if test -n "$CONFIG_FILES"; then
15965
15966
15967 ac_cr=`echo X | tr X '\015'`
15968 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15969 # But we know of no other shell where ac_cr would be empty at this
15970 # point, so we can use a bashism as a fallback.
15971 if test "x$ac_cr" = x; then
15972 eval ac_cr=\$\'\\r\'
15973 fi
15974 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15975 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15976 ac_cs_awk_cr='\\r'
15977 else
15978 ac_cs_awk_cr=$ac_cr
15979 fi
15980
15981 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15982 _ACEOF
15983
15984
15985 {
15986 echo "cat >conf$$subs.awk <<_ACEOF" &&
15987 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15988 echo "_ACEOF"
15989 } >conf$$subs.sh ||
15990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15991 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15992 ac_delim='%!_!# '
15993 for ac_last_try in false false false false false :; do
15994 . ./conf$$subs.sh ||
15995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15996
15997 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15998 if test $ac_delim_n = $ac_delim_num; then
15999 break
16000 elif $ac_last_try; then
16001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16002 else
16003 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16004 fi
16005 done
16006 rm -f conf$$subs.sh
16007
16008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16010 _ACEOF
16011 sed -n '
16012 h
16013 s/^/S["/; s/!.*/"]=/
16014 p
16015 g
16016 s/^[^!]*!//
16017 :repl
16018 t repl
16019 s/'"$ac_delim"'$//
16020 t delim
16021 :nl
16022 h
16023 s/\(.\{148\}\)..*/\1/
16024 t more1
16025 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16026 p
16027 n
16028 b repl
16029 :more1
16030 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16031 p
16032 g
16033 s/.\{148\}//
16034 t nl
16035 :delim
16036 h
16037 s/\(.\{148\}\)..*/\1/
16038 t more2
16039 s/["\\]/\\&/g; s/^/"/; s/$/"/
16040 p
16041 b
16042 :more2
16043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16044 p
16045 g
16046 s/.\{148\}//
16047 t delim
16048 ' <conf$$subs.awk | sed '
16049 /^[^""]/{
16050 N
16051 s/\n//
16052 }
16053 ' >>$CONFIG_STATUS || ac_write_fail=1
16054 rm -f conf$$subs.awk
16055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056 _ACAWK
16057 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16058 for (key in S) S_is_set[key] = 1
16059 FS = ""
16060
16061 }
16062 {
16063 line = $ 0
16064 nfields = split(line, field, "@")
16065 substed = 0
16066 len = length(field[1])
16067 for (i = 2; i < nfields; i++) {
16068 key = field[i]
16069 keylen = length(key)
16070 if (S_is_set[key]) {
16071 value = S[key]
16072 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16073 len += length(value) + length(field[++i])
16074 substed = 1
16075 } else
16076 len += 1 + keylen
16077 }
16078
16079 print line
16080 }
16081
16082 _ACAWK
16083 _ACEOF
16084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16085 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16086 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16087 else
16088 cat
16089 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16090 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16091 _ACEOF
16092
16093 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16094 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16095 # trailing colons and then remove the whole line if VPATH becomes empty
16096 # (actually we leave an empty line to preserve line numbers).
16097 if test "x$srcdir" = x.; then
16098 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16099 h
16100 s///
16101 s/^/:/
16102 s/[ ]*$/:/
16103 s/:\$(srcdir):/:/g
16104 s/:\${srcdir}:/:/g
16105 s/:@srcdir@:/:/g
16106 s/^:*//
16107 s/:*$//
16108 x
16109 s/\(=[ ]*\).*/\1/
16110 G
16111 s/\n//
16112 s/^[^=]*=[ ]*$//
16113 }'
16114 fi
16115
16116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16117 fi # test -n "$CONFIG_FILES"
16118
16119 # Set up the scripts for CONFIG_HEADERS section.
16120 # No need to generate them if there are no CONFIG_HEADERS.
16121 # This happens for instance with `./config.status Makefile'.
16122 if test -n "$CONFIG_HEADERS"; then
16123 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16124 BEGIN {
16125 _ACEOF
16126
16127 # Transform confdefs.h into an awk script `defines.awk', embedded as
16128 # here-document in config.status, that substitutes the proper values into
16129 # config.h.in to produce config.h.
16130
16131 # Create a delimiter string that does not exist in confdefs.h, to ease
16132 # handling of long lines.
16133 ac_delim='%!_!# '
16134 for ac_last_try in false false :; do
16135 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16136 if test -z "$ac_tt"; then
16137 break
16138 elif $ac_last_try; then
16139 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16140 else
16141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16142 fi
16143 done
16144
16145 # For the awk script, D is an array of macro values keyed by name,
16146 # likewise P contains macro parameters if any. Preserve backslash
16147 # newline sequences.
16148
16149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16150 sed -n '
16151 s/.\{148\}/&'"$ac_delim"'/g
16152 t rset
16153 :rset
16154 s/^[ ]*#[ ]*define[ ][ ]*/ /
16155 t def
16156 d
16157 :def
16158 s/\\$//
16159 t bsnl
16160 s/["\\]/\\&/g
16161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16162 D["\1"]=" \3"/p
16163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16164 d
16165 :bsnl
16166 s/["\\]/\\&/g
16167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16168 D["\1"]=" \3\\\\\\n"\\/p
16169 t cont
16170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16171 t cont
16172 d
16173 :cont
16174 n
16175 s/.\{148\}/&'"$ac_delim"'/g
16176 t clear
16177 :clear
16178 s/\\$//
16179 t bsnlc
16180 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16181 d
16182 :bsnlc
16183 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16184 b cont
16185 ' <confdefs.h | sed '
16186 s/'"$ac_delim"'/"\\\
16187 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16188
16189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190 for (key in D) D_is_set[key] = 1
16191 FS = ""
16192 }
16193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16194 line = \$ 0
16195 split(line, arg, " ")
16196 if (arg[1] == "#") {
16197 defundef = arg[2]
16198 mac1 = arg[3]
16199 } else {
16200 defundef = substr(arg[1], 2)
16201 mac1 = arg[2]
16202 }
16203 split(mac1, mac2, "(") #)
16204 macro = mac2[1]
16205 prefix = substr(line, 1, index(line, defundef) - 1)
16206 if (D_is_set[macro]) {
16207 # Preserve the white space surrounding the "#".
16208 print prefix "define", macro P[macro] D[macro]
16209 next
16210 } else {
16211 # Replace #undef with comments. This is necessary, for example,
16212 # in the case of _POSIX_SOURCE, which is predefined and required
16213 # on some systems where configure will not decide to define it.
16214 if (defundef == "undef") {
16215 print "/*", prefix defundef, macro, "*/"
16216 next
16217 }
16218 }
16219 }
16220 { print }
16221 _ACAWK
16222 _ACEOF
16223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16224 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16225 fi # test -n "$CONFIG_HEADERS"
16226
16227
16228 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16229 shift
16230 for ac_tag
16231 do
16232 case $ac_tag in
16233 :[FHLC]) ac_mode=$ac_tag; continue;;
16234 esac
16235 case $ac_mode$ac_tag in
16236 :[FHL]*:*);;
16237 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16238 :[FH]-) ac_tag=-:-;;
16239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16240 esac
16241 ac_save_IFS=$IFS
16242 IFS=:
16243 set x $ac_tag
16244 IFS=$ac_save_IFS
16245 shift
16246 ac_file=$1
16247 shift
16248
16249 case $ac_mode in
16250 :L) ac_source=$1;;
16251 :[FH])
16252 ac_file_inputs=
16253 for ac_f
16254 do
16255 case $ac_f in
16256 -) ac_f="$ac_tmp/stdin";;
16257 *) # Look for the file first in the build tree, then in the source tree
16258 # (if the path is not absolute). The absolute path cannot be DOS-style,
16259 # because $ac_f cannot contain `:'.
16260 test -f "$ac_f" ||
16261 case $ac_f in
16262 [\\/$]*) false;;
16263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16264 esac ||
16265 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16266 esac
16267 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16268 as_fn_append ac_file_inputs " '$ac_f'"
16269 done
16270
16271 # Let's still pretend it is `configure' which instantiates (i.e., don't
16272 # use $as_me), people would be surprised to read:
16273 # /* config.h. Generated by config.status. */
16274 configure_input='Generated from '`
16275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16276 `' by configure.'
16277 if test x"$ac_file" != x-; then
16278 configure_input="$ac_file. $configure_input"
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16280 $as_echo "$as_me: creating $ac_file" >&6;}
16281 fi
16282 # Neutralize special characters interpreted by sed in replacement strings.
16283 case $configure_input in #(
16284 *\&* | *\|* | *\\* )
16285 ac_sed_conf_input=`$as_echo "$configure_input" |
16286 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16287 *) ac_sed_conf_input=$configure_input;;
16288 esac
16289
16290 case $ac_tag in
16291 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16293 esac
16294 ;;
16295 esac
16296
16297 ac_dir=`$as_dirname -- "$ac_file" ||
16298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16299 X"$ac_file" : 'X\(//\)[^/]' \| \
16300 X"$ac_file" : 'X\(//\)$' \| \
16301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16302 $as_echo X"$ac_file" |
16303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16304 s//\1/
16305 q
16306 }
16307 /^X\(\/\/\)[^/].*/{
16308 s//\1/
16309 q
16310 }
16311 /^X\(\/\/\)$/{
16312 s//\1/
16313 q
16314 }
16315 /^X\(\/\).*/{
16316 s//\1/
16317 q
16318 }
16319 s/.*/./; q'`
16320 as_dir="$ac_dir"; as_fn_mkdir_p
16321 ac_builddir=.
16322
16323 case "$ac_dir" in
16324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16325 *)
16326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16327 # A ".." for each directory in $ac_dir_suffix.
16328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16329 case $ac_top_builddir_sub in
16330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16332 esac ;;
16333 esac
16334 ac_abs_top_builddir=$ac_pwd
16335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16336 # for backward compatibility:
16337 ac_top_builddir=$ac_top_build_prefix
16338
16339 case $srcdir in
16340 .) # We are building in place.
16341 ac_srcdir=.
16342 ac_top_srcdir=$ac_top_builddir_sub
16343 ac_abs_top_srcdir=$ac_pwd ;;
16344 [\\/]* | ?:[\\/]* ) # Absolute name.
16345 ac_srcdir=$srcdir$ac_dir_suffix;
16346 ac_top_srcdir=$srcdir
16347 ac_abs_top_srcdir=$srcdir ;;
16348 *) # Relative name.
16349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16350 ac_top_srcdir=$ac_top_build_prefix$srcdir
16351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16352 esac
16353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16354
16355
16356 case $ac_mode in
16357 :F)
16358 #
16359 # CONFIG_FILE
16360 #
16361
16362 case $INSTALL in
16363 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16364 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16365 esac
16366 ac_MKDIR_P=$MKDIR_P
16367 case $MKDIR_P in
16368 [\\/$]* | ?:[\\/]* ) ;;
16369 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16370 esac
16371 _ACEOF
16372
16373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16374 # If the template does not know about datarootdir, expand it.
16375 # FIXME: This hack should be removed a few years after 2.60.
16376 ac_datarootdir_hack=; ac_datarootdir_seen=
16377 ac_sed_dataroot='
16378 /datarootdir/ {
16379 p
16380 q
16381 }
16382 /@datadir@/p
16383 /@docdir@/p
16384 /@infodir@/p
16385 /@localedir@/p
16386 /@mandir@/p'
16387 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16388 *datarootdir*) ac_datarootdir_seen=yes;;
16389 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16391 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16392 _ACEOF
16393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16394 ac_datarootdir_hack='
16395 s&@datadir@&$datadir&g
16396 s&@docdir@&$docdir&g
16397 s&@infodir@&$infodir&g
16398 s&@localedir@&$localedir&g
16399 s&@mandir@&$mandir&g
16400 s&\\\${datarootdir}&$datarootdir&g' ;;
16401 esac
16402 _ACEOF
16403
16404 # Neutralize VPATH when `$srcdir' = `.'.
16405 # Shell code in configure.ac might set extrasub.
16406 # FIXME: do we really want to maintain this feature?
16407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16408 ac_sed_extra="$ac_vpsub
16409 $extrasub
16410 _ACEOF
16411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16412 :t
16413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16414 s|@configure_input@|$ac_sed_conf_input|;t t
16415 s&@top_builddir@&$ac_top_builddir_sub&;t t
16416 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16417 s&@srcdir@&$ac_srcdir&;t t
16418 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16419 s&@top_srcdir@&$ac_top_srcdir&;t t
16420 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16421 s&@builddir@&$ac_builddir&;t t
16422 s&@abs_builddir@&$ac_abs_builddir&;t t
16423 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16424 s&@INSTALL@&$ac_INSTALL&;t t
16425 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16426 $ac_datarootdir_hack
16427 "
16428 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16429 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16430
16431 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16432 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16433 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16434 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16436 which seems to be undefined. Please make sure it is defined" >&5
16437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16438 which seems to be undefined. Please make sure it is defined" >&2;}
16439
16440 rm -f "$ac_tmp/stdin"
16441 case $ac_file in
16442 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16443 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16444 esac \
16445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16446 ;;
16447 :H)
16448 #
16449 # CONFIG_HEADER
16450 #
16451 if test x"$ac_file" != x-; then
16452 {
16453 $as_echo "/* $configure_input */" \
16454 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16455 } >"$ac_tmp/config.h" \
16456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16457 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16460 else
16461 rm -f "$ac_file"
16462 mv "$ac_tmp/config.h" "$ac_file" \
16463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16464 fi
16465 else
16466 $as_echo "/* $configure_input */" \
16467 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16468 || as_fn_error $? "could not create -" "$LINENO" 5
16469 fi
16470 # Compute "$ac_file"'s index in $config_headers.
16471 _am_arg="$ac_file"
16472 _am_stamp_count=1
16473 for _am_header in $config_headers :; do
16474 case $_am_header in
16475 $_am_arg | $_am_arg:* )
16476 break ;;
16477 * )
16478 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16479 esac
16480 done
16481 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16482 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16483 X"$_am_arg" : 'X\(//\)[^/]' \| \
16484 X"$_am_arg" : 'X\(//\)$' \| \
16485 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16486 $as_echo X"$_am_arg" |
16487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16488 s//\1/
16489 q
16490 }
16491 /^X\(\/\/\)[^/].*/{
16492 s//\1/
16493 q
16494 }
16495 /^X\(\/\/\)$/{
16496 s//\1/
16497 q
16498 }
16499 /^X\(\/\).*/{
16500 s//\1/
16501 q
16502 }
16503 s/.*/./; q'`/stamp-h$_am_stamp_count
16504 ;;
16505
16506 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16507 $as_echo "$as_me: executing $ac_file commands" >&6;}
16508 ;;
16509 esac
16510
16511
16512 case $ac_file$ac_mode in
16513 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16514 # Older Autoconf quotes --file arguments for eval, but not when files
16515 # are listed without --file. Let's play safe and only enable the eval
16516 # if we detect the quoting.
16517 # TODO: see whether this extra hack can be removed once we start
16518 # requiring Autoconf 2.70 or later.
16519 case $CONFIG_FILES in #(
16520 *\'*) :
16521 eval set x "$CONFIG_FILES" ;; #(
16522 *) :
16523 set x $CONFIG_FILES ;; #(
16524 *) :
16525 ;;
16526 esac
16527 shift
16528 # Used to flag and report bootstrapping failures.
16529 am_rc=0
16530 for am_mf
16531 do
16532 # Strip MF so we end up with the name of the file.
16533 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16534 # Check whether this is an Automake generated Makefile which includes
16535 # dependency-tracking related rules and includes.
16536 # Grep'ing the whole file directly is not great: AIX grep has a line
16537 # limit of 2048, but all sed's we know have understand at least 4000.
16538 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16539 || continue
16540 am_dirpart=`$as_dirname -- "$am_mf" ||
16541 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16542 X"$am_mf" : 'X\(//\)[^/]' \| \
16543 X"$am_mf" : 'X\(//\)$' \| \
16544 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16545 $as_echo X"$am_mf" |
16546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16547 s//\1/
16548 q
16549 }
16550 /^X\(\/\/\)[^/].*/{
16551 s//\1/
16552 q
16553 }
16554 /^X\(\/\/\)$/{
16555 s//\1/
16556 q
16557 }
16558 /^X\(\/\).*/{
16559 s//\1/
16560 q
16561 }
16562 s/.*/./; q'`
16563 am_filepart=`$as_basename -- "$am_mf" ||
16564 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16565 X"$am_mf" : 'X\(//\)$' \| \
16566 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16567 $as_echo X/"$am_mf" |
16568 sed '/^.*\/\([^/][^/]*\)\/*$/{
16569 s//\1/
16570 q
16571 }
16572 /^X\/\(\/\/\)$/{
16573 s//\1/
16574 q
16575 }
16576 /^X\/\(\/\).*/{
16577 s//\1/
16578 q
16579 }
16580 s/.*/./; q'`
16581 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16582 && sed -e '/# am--include-marker/d' "$am_filepart" \
16583 | $MAKE -f - am--depfiles" >&5
16584 (cd "$am_dirpart" \
16585 && sed -e '/# am--include-marker/d' "$am_filepart" \
16586 | $MAKE -f - am--depfiles) >&5 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } || am_rc=$?
16590 done
16591 if test $am_rc -ne 0; then
16592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16594 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16595 for automatic dependency tracking. If GNU make was not used, consider
16596 re-running the configure script with MAKE=\"gmake\" (or whatever is
16597 necessary). You can also try re-running configure with the
16598 '--disable-dependency-tracking' option to at least be able to build
16599 the package (albeit without support for automatic dependency tracking).
16600 See \`config.log' for more details" "$LINENO" 5; }
16601 fi
16602 { am_dirpart=; unset am_dirpart;}
16603 { am_filepart=; unset am_filepart;}
16604 { am_mf=; unset am_mf;}
16605 { am_rc=; unset am_rc;}
16606 rm -f conftest-deps.mk
16607 }
16608 ;;
16609 "libtool":C)
16610
16611 # See if we are running on zsh, and set the options that allow our
16612 # commands through without removal of \ escapes.
16613 if test -n "${ZSH_VERSION+set}"; then
16614 setopt NO_GLOB_SUBST
16615 fi
16616
16617 cfgfile=${ofile}T
16618 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16619 $RM "$cfgfile"
16620
16621 cat <<_LT_EOF >> "$cfgfile"
16622 #! $SHELL
16623 # Generated automatically by $as_me ($PACKAGE) $VERSION
16624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16625 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16626
16627 # Provide generalized library-building support services.
16628 # Written by Gordon Matzigkeit, 1996
16629
16630 # Copyright (C) 2014 Free Software Foundation, Inc.
16631 # This is free software; see the source for copying conditions. There is NO
16632 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16633
16634 # GNU Libtool is free software; you can redistribute it and/or modify
16635 # it under the terms of the GNU General Public License as published by
16636 # the Free Software Foundation; either version 2 of of the License, or
16637 # (at your option) any later version.
16638 #
16639 # As a special exception to the GNU General Public License, if you
16640 # distribute this file as part of a program or library that is built
16641 # using GNU Libtool, you may include this file under the same
16642 # distribution terms that you use for the rest of that program.
16643 #
16644 # GNU Libtool is distributed in the hope that it will be useful, but
16645 # WITHOUT ANY WARRANTY; without even the implied warranty of
16646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16647 # GNU General Public License for more details.
16648 #
16649 # You should have received a copy of the GNU General Public License
16650 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16651
16652
16653 # The names of the tagged configurations supported by this script.
16654 available_tags=''
16655
16656 # Configured defaults for sys_lib_dlsearch_path munging.
16657 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16658
16659 # ### BEGIN LIBTOOL CONFIG
16660
16661 # Which release of libtool.m4 was used?
16662 macro_version=$macro_version
16663 macro_revision=$macro_revision
16664
16665 # Whether or not to build shared libraries.
16666 build_libtool_libs=$enable_shared
16667
16668 # Whether or not to build static libraries.
16669 build_old_libs=$enable_static
16670
16671 # What type of objects to build.
16672 pic_mode=$pic_mode
16673
16674 # Whether or not to optimize for fast installation.
16675 fast_install=$enable_fast_install
16676
16677 # Shared archive member basename,for filename based shared library versioning on AIX.
16678 shared_archive_member_spec=$shared_archive_member_spec
16679
16680 # Shell to use when invoking shell scripts.
16681 SHELL=$lt_SHELL
16682
16683 # An echo program that protects backslashes.
16684 ECHO=$lt_ECHO
16685
16686 # The PATH separator for the build system.
16687 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16688
16689 # The host system.
16690 host_alias=$host_alias
16691 host=$host
16692 host_os=$host_os
16693
16694 # The build system.
16695 build_alias=$build_alias
16696 build=$build
16697 build_os=$build_os
16698
16699 # A sed program that does not truncate output.
16700 SED=$lt_SED
16701
16702 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16703 Xsed="\$SED -e 1s/^X//"
16704
16705 # A grep program that handles long lines.
16706 GREP=$lt_GREP
16707
16708 # An ERE matcher.
16709 EGREP=$lt_EGREP
16710
16711 # A literal string matcher.
16712 FGREP=$lt_FGREP
16713
16714 # A BSD- or MS-compatible name lister.
16715 NM=$lt_NM
16716
16717 # Whether we need soft or hard links.
16718 LN_S=$lt_LN_S
16719
16720 # What is the maximum length of a command?
16721 max_cmd_len=$max_cmd_len
16722
16723 # Object file suffix (normally "o").
16724 objext=$ac_objext
16725
16726 # Executable file suffix (normally "").
16727 exeext=$exeext
16728
16729 # whether the shell understands "unset".
16730 lt_unset=$lt_unset
16731
16732 # turn spaces into newlines.
16733 SP2NL=$lt_lt_SP2NL
16734
16735 # turn newlines into spaces.
16736 NL2SP=$lt_lt_NL2SP
16737
16738 # convert \$build file names to \$host format.
16739 to_host_file_cmd=$lt_cv_to_host_file_cmd
16740
16741 # convert \$build files to toolchain format.
16742 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16743
16744 # An object symbol dumper.
16745 OBJDUMP=$lt_OBJDUMP
16746
16747 # Method to check whether dependent libraries are shared objects.
16748 deplibs_check_method=$lt_deplibs_check_method
16749
16750 # Command to use when deplibs_check_method = "file_magic".
16751 file_magic_cmd=$lt_file_magic_cmd
16752
16753 # How to find potential files when deplibs_check_method = "file_magic".
16754 file_magic_glob=$lt_file_magic_glob
16755
16756 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16757 want_nocaseglob=$lt_want_nocaseglob
16758
16759 # DLL creation program.
16760 DLLTOOL=$lt_DLLTOOL
16761
16762 # Command to associate shared and link libraries.
16763 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16764
16765 # The archiver.
16766 AR=$lt_AR
16767
16768 # Flags to create an archive.
16769 AR_FLAGS=$lt_AR_FLAGS
16770
16771 # How to feed a file listing to the archiver.
16772 archiver_list_spec=$lt_archiver_list_spec
16773
16774 # A symbol stripping program.
16775 STRIP=$lt_STRIP
16776
16777 # Commands used to install an old-style archive.
16778 RANLIB=$lt_RANLIB
16779 old_postinstall_cmds=$lt_old_postinstall_cmds
16780 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16781
16782 # Whether to use a lock for old archive extraction.
16783 lock_old_archive_extraction=$lock_old_archive_extraction
16784
16785 # A C compiler.
16786 LTCC=$lt_CC
16787
16788 # LTCC compiler flags.
16789 LTCFLAGS=$lt_CFLAGS
16790
16791 # Take the output of nm and produce a listing of raw symbols and C names.
16792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16793
16794 # Transform the output of nm in a proper C declaration.
16795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16796
16797 # Transform the output of nm into a list of symbols to manually relocate.
16798 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16799
16800 # Transform the output of nm in a C name address pair.
16801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16802
16803 # Transform the output of nm in a C name address pair when lib prefix is needed.
16804 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16805
16806 # The name lister interface.
16807 nm_interface=$lt_lt_cv_nm_interface
16808
16809 # Specify filename containing input files for \$NM.
16810 nm_file_list_spec=$lt_nm_file_list_spec
16811
16812 # The root where to search for dependent libraries,and where our libraries should be installed.
16813 lt_sysroot=$lt_sysroot
16814
16815 # Command to truncate a binary pipe.
16816 lt_truncate_bin=$lt_lt_cv_truncate_bin
16817
16818 # The name of the directory that contains temporary libtool files.
16819 objdir=$objdir
16820
16821 # Used to examine libraries when file_magic_cmd begins with "file".
16822 MAGIC_CMD=$MAGIC_CMD
16823
16824 # Must we lock files when doing compilation?
16825 need_locks=$lt_need_locks
16826
16827 # Manifest tool.
16828 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16829
16830 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16831 DSYMUTIL=$lt_DSYMUTIL
16832
16833 # Tool to change global to local symbols on Mac OS X.
16834 NMEDIT=$lt_NMEDIT
16835
16836 # Tool to manipulate fat objects and archives on Mac OS X.
16837 LIPO=$lt_LIPO
16838
16839 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16840 OTOOL=$lt_OTOOL
16841
16842 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16843 OTOOL64=$lt_OTOOL64
16844
16845 # Old archive suffix (normally "a").
16846 libext=$libext
16847
16848 # Shared library suffix (normally ".so").
16849 shrext_cmds=$lt_shrext_cmds
16850
16851 # The commands to extract the exported symbol list from a shared archive.
16852 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16853
16854 # Variables whose values should be saved in libtool wrapper scripts and
16855 # restored at link time.
16856 variables_saved_for_relink=$lt_variables_saved_for_relink
16857
16858 # Do we need the "lib" prefix for modules?
16859 need_lib_prefix=$need_lib_prefix
16860
16861 # Do we need a version for libraries?
16862 need_version=$need_version
16863
16864 # Library versioning type.
16865 version_type=$version_type
16866
16867 # Shared library runtime path variable.
16868 runpath_var=$runpath_var
16869
16870 # Shared library path variable.
16871 shlibpath_var=$shlibpath_var
16872
16873 # Is shlibpath searched before the hard-coded library search path?
16874 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16875
16876 # Format of library name prefix.
16877 libname_spec=$lt_libname_spec
16878
16879 # List of archive names. First name is the real one, the rest are links.
16880 # The last name is the one that the linker finds with -lNAME
16881 library_names_spec=$lt_library_names_spec
16882
16883 # The coded name of the library, if different from the real name.
16884 soname_spec=$lt_soname_spec
16885
16886 # Permission mode override for installation of shared libraries.
16887 install_override_mode=$lt_install_override_mode
16888
16889 # Command to use after installation of a shared archive.
16890 postinstall_cmds=$lt_postinstall_cmds
16891
16892 # Command to use after uninstallation of a shared archive.
16893 postuninstall_cmds=$lt_postuninstall_cmds
16894
16895 # Commands used to finish a libtool library installation in a directory.
16896 finish_cmds=$lt_finish_cmds
16897
16898 # As "finish_cmds", except a single script fragment to be evaled but
16899 # not shown.
16900 finish_eval=$lt_finish_eval
16901
16902 # Whether we should hardcode library paths into libraries.
16903 hardcode_into_libs=$hardcode_into_libs
16904
16905 # Compile-time system search path for libraries.
16906 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16907
16908 # Detected run-time system search path for libraries.
16909 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16910
16911 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16912 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16913
16914 # Whether dlopen is supported.
16915 dlopen_support=$enable_dlopen
16916
16917 # Whether dlopen of programs is supported.
16918 dlopen_self=$enable_dlopen_self
16919
16920 # Whether dlopen of statically linked programs is supported.
16921 dlopen_self_static=$enable_dlopen_self_static
16922
16923 # Commands to strip libraries.
16924 old_striplib=$lt_old_striplib
16925 striplib=$lt_striplib
16926
16927
16928 # The linker used to build libraries.
16929 LD=$lt_LD
16930
16931 # How to create reloadable object files.
16932 reload_flag=$lt_reload_flag
16933 reload_cmds=$lt_reload_cmds
16934
16935 # Commands used to build an old-style archive.
16936 old_archive_cmds=$lt_old_archive_cmds
16937
16938 # A language specific compiler.
16939 CC=$lt_compiler
16940
16941 # Is the compiler the GNU compiler?
16942 with_gcc=$GCC
16943
16944 # Compiler flag to turn off builtin functions.
16945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16946
16947 # Additional compiler flags for building library objects.
16948 pic_flag=$lt_lt_prog_compiler_pic
16949
16950 # How to pass a linker flag through the compiler.
16951 wl=$lt_lt_prog_compiler_wl
16952
16953 # Compiler flag to prevent dynamic linking.
16954 link_static_flag=$lt_lt_prog_compiler_static
16955
16956 # Does compiler simultaneously support -c and -o options?
16957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16958
16959 # Whether or not to add -lc for building shared libraries.
16960 build_libtool_need_lc=$archive_cmds_need_lc
16961
16962 # Whether or not to disallow shared libs when runtime libs are static.
16963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16964
16965 # Compiler flag to allow reflexive dlopens.
16966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16967
16968 # Compiler flag to generate shared objects directly from archives.
16969 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16970
16971 # Whether the compiler copes with passing no objects directly.
16972 compiler_needs_object=$lt_compiler_needs_object
16973
16974 # Create an old-style archive from a shared archive.
16975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16976
16977 # Create a temporary old-style archive to link instead of a shared archive.
16978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16979
16980 # Commands used to build a shared archive.
16981 archive_cmds=$lt_archive_cmds
16982 archive_expsym_cmds=$lt_archive_expsym_cmds
16983
16984 # Commands used to build a loadable module if different from building
16985 # a shared archive.
16986 module_cmds=$lt_module_cmds
16987 module_expsym_cmds=$lt_module_expsym_cmds
16988
16989 # Whether we are building with GNU ld or not.
16990 with_gnu_ld=$lt_with_gnu_ld
16991
16992 # Flag that allows shared libraries with undefined symbols to be built.
16993 allow_undefined_flag=$lt_allow_undefined_flag
16994
16995 # Flag that enforces no undefined symbols.
16996 no_undefined_flag=$lt_no_undefined_flag
16997
16998 # Flag to hardcode \$libdir into a binary during linking.
16999 # This must work even if \$libdir does not exist
17000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17001
17002 # Whether we need a single "-rpath" flag with a separated argument.
17003 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17004
17005 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17006 # DIR into the resulting binary.
17007 hardcode_direct=$hardcode_direct
17008
17009 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17010 # DIR into the resulting binary and the resulting library dependency is
17011 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17012 # library is relocated.
17013 hardcode_direct_absolute=$hardcode_direct_absolute
17014
17015 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17016 # into the resulting binary.
17017 hardcode_minus_L=$hardcode_minus_L
17018
17019 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17020 # into the resulting binary.
17021 hardcode_shlibpath_var=$hardcode_shlibpath_var
17022
17023 # Set to "yes" if building a shared library automatically hardcodes DIR
17024 # into the library and all subsequent libraries and executables linked
17025 # against it.
17026 hardcode_automatic=$hardcode_automatic
17027
17028 # Set to yes if linker adds runtime paths of dependent libraries
17029 # to runtime path list.
17030 inherit_rpath=$inherit_rpath
17031
17032 # Whether libtool must link a program against all its dependency libraries.
17033 link_all_deplibs=$link_all_deplibs
17034
17035 # Set to "yes" if exported symbols are required.
17036 always_export_symbols=$always_export_symbols
17037
17038 # The commands to list exported symbols.
17039 export_symbols_cmds=$lt_export_symbols_cmds
17040
17041 # Symbols that should not be listed in the preloaded symbols.
17042 exclude_expsyms=$lt_exclude_expsyms
17043
17044 # Symbols that must always be exported.
17045 include_expsyms=$lt_include_expsyms
17046
17047 # Commands necessary for linking programs (against libraries) with templates.
17048 prelink_cmds=$lt_prelink_cmds
17049
17050 # Commands necessary for finishing linking programs.
17051 postlink_cmds=$lt_postlink_cmds
17052
17053 # Specify filename containing input files.
17054 file_list_spec=$lt_file_list_spec
17055
17056 # How to hardcode a shared library path into an executable.
17057 hardcode_action=$hardcode_action
17058
17059 # ### END LIBTOOL CONFIG
17060
17061 _LT_EOF
17062
17063 cat <<'_LT_EOF' >> "$cfgfile"
17064
17065 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17066
17067 # func_munge_path_list VARIABLE PATH
17068 # -----------------------------------
17069 # VARIABLE is name of variable containing _space_ separated list of
17070 # directories to be munged by the contents of PATH, which is string
17071 # having a format:
17072 # "DIR[:DIR]:"
17073 # string "DIR[ DIR]" will be prepended to VARIABLE
17074 # ":DIR[:DIR]"
17075 # string "DIR[ DIR]" will be appended to VARIABLE
17076 # "DIRP[:DIRP]::[DIRA:]DIRA"
17077 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17078 # "DIRA[ DIRA]" will be appended to VARIABLE
17079 # "DIR[:DIR]"
17080 # VARIABLE will be replaced by "DIR[ DIR]"
17081 func_munge_path_list ()
17082 {
17083 case x$2 in
17084 x)
17085 ;;
17086 *:)
17087 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17088 ;;
17089 x:*)
17090 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17091 ;;
17092 *::*)
17093 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17094 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17095 ;;
17096 *)
17097 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17098 ;;
17099 esac
17100 }
17101
17102
17103 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17104 func_cc_basename ()
17105 {
17106 for cc_temp in $*""; do
17107 case $cc_temp in
17108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17110 \-*) ;;
17111 *) break;;
17112 esac
17113 done
17114 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17115 }
17116
17117
17118 # ### END FUNCTIONS SHARED WITH CONFIGURE
17119
17120 _LT_EOF
17121
17122 case $host_os in
17123 aix3*)
17124 cat <<\_LT_EOF >> "$cfgfile"
17125 # AIX sometimes has problems with the GCC collect2 program. For some
17126 # reason, if we set the COLLECT_NAMES environment variable, the problems
17127 # vanish in a puff of smoke.
17128 if test set != "${COLLECT_NAMES+set}"; then
17129 COLLECT_NAMES=
17130 export COLLECT_NAMES
17131 fi
17132 _LT_EOF
17133 ;;
17134 esac
17135
17136
17137 ltmain=$ac_aux_dir/ltmain.sh
17138
17139
17140 # We use sed instead of cat because bash on DJGPP gets confused if
17141 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17142 # text mode, it properly converts lines to CR/LF. This bash problem
17143 # is reportedly fixed, but why not run on old versions too?
17144 sed '$q' "$ltmain" >> "$cfgfile" \
17145 || (rm -f "$cfgfile"; exit 1)
17146
17147 mv -f "$cfgfile" "$ofile" ||
17148 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17149 chmod +x "$ofile"
17150
17151 ;;
17152
17153 esac
17154 done # for ac_tag
17155
17156
17157 as_fn_exit 0
17158 _ACEOF
17159 ac_clean_files=$ac_clean_files_save
17160
17161 test $ac_write_fail = 0 ||
17162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17163
17164
17165 # configure is writing to config.log, and then calls config.status.
17166 # config.status does its own redirection, appending to config.log.
17167 # Unfortunately, on DOS this fails, as config.log is still kept open
17168 # by configure, so config.status won't be able to write to it; its
17169 # output is simply discarded. So we exec the FD to /dev/null,
17170 # effectively closing config.log, so it can be properly (re)opened and
17171 # appended to by config.status. When coming back to configure, we
17172 # need to make the FD available again.
17173 if test "$no_create" != yes; then
17174 ac_cs_success=:
17175 ac_config_status_args=
17176 test "$silent" = yes &&
17177 ac_config_status_args="$ac_config_status_args --quiet"
17178 exec 5>/dev/null
17179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17180 exec 5>>config.log
17181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17182 # would make configure fail if this is the last instruction.
17183 $ac_cs_success || as_fn_exit 1
17184 fi
17185 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17187 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17188 fi
17189
17190
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration Summary ----------------------------------------------" >&5
17192 $as_echo "$as_me: Configuration Summary ----------------------------------------------" >&6;}
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
17194 $as_echo "$as_me: " >&6;}
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: Paths" >&5
17196 $as_echo "$as_me: Paths" >&6;}
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: Installation prefix ${prefix}" >&5
17198 $as_echo "$as_me: Installation prefix ${prefix}" >&6;}
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: Will put executables in $bindir" >&5
17200 $as_echo "$as_me: Will put executables in $bindir" >&6;}
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will put resources in $datadir" >&5
17202 $as_echo "$as_me: Will put resources in $datadir" >&6;}
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will put config in $sysconfdir" >&5
17204 $as_echo "$as_me: Will put config in $sysconfdir" >&6;}
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will put server runtime data in $localstatedir" >&5
17206 $as_echo "$as_me: Will put server runtime data in $localstatedir" >&6;}
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
17208 $as_echo "$as_me: " >&6;}
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: Options" >&5
17210 $as_echo "$as_me: Options" >&6;}
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: Build metaserver2 support? $ac_cv_header_curl_curl_h" >&5
17212 $as_echo "$as_me: Build metaserver2 support? $ac_cv_header_curl_curl_h" >&6;}
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: Build plugins? $cf_have_libdl" >&5
17214 $as_echo "$as_me: Build plugins? $cf_have_libdl" >&6;}
17215
17216 if test "$cf_have_libsqlite" = "yes" ; then
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: Build cflogger? $enable_logger" >&5
17218 $as_echo "$as_me: Build cflogger? $enable_logger" >&6;}
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: Build cfnewspaper? $enable_newspaper" >&5
17220 $as_echo "$as_me: Build cfnewspaper? $enable_newspaper" >&6;}
17221 fi
17222
17223 if test "$cf_have_libdl" = "yes" ; then
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: Build python plugin? $cf_will_build_python" >&5
17225 $as_echo "$as_me: Build python plugin? $cf_will_build_python" >&6;}
17226 fi
17227
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: Build random house plugin? $enable_cfrhg" >&5
17229 $as_echo "$as_me: Build random house plugin? $enable_cfrhg" >&6;}
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: Build city bell plugin? $enable_cfcitybell" >&5
17231 $as_echo "$as_me: Build city bell plugin? $enable_cfcitybell" >&6;}
17232
17233 if test x"$xsltengine" != "x" ; then
17234 check_complement="(will generate report)"
17235 fi
17236 if test "$have_check" = "yes" -a "$enable_check" = "yes" ; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: Process unit testing? yes $check_complement" >&5
17238 $as_echo "$as_me: Process unit testing? yes $check_complement" >&6;}
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: (run make; make -k check)" >&5
17240 $as_echo "$as_me: (run make; make -k check)" >&6;}
17241 else
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: Process unit testing? no" >&5
17243 $as_echo "$as_me: Process unit testing? no" >&6;}
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: If you are a developer, you MUST install the check framework" >&5
17245 $as_echo "$as_me: If you are a developer, you MUST install the check framework" >&6;}
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: and write automated tests for all your add-ons!" >&5
17247 $as_echo "$as_me: and write automated tests for all your add-ons!" >&6;}
17248 fi
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
17250 $as_echo "$as_me: " >&6;}
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: Utilities (not required to build or run the server)" >&5
17252 $as_echo "$as_me: Utilities (not required to build or run the server)" >&6;}
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: Build crossfire-mapper? $enable_mapper" >&5
17254 $as_echo "$as_me: Build crossfire-mapper? $enable_mapper" >&6;}