Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libdockapp 0.7.3.
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,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script 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='libdockapp'
592 PACKAGE_TARNAME='libdockapp'
593 PACKAGE_VERSION='0.7.3'
594 PACKAGE_STRING='libdockapp 0.7.3'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/dockapp.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 FONTDIR
640 FONTROOTDIR
641 MKFONTDIR
642 RUN_FCCACHE
643 FCCACHE
644 DFLAGS
645 xpm_LIBS
646 xpm_CFLAGS
647 Xext_LIBS
648 Xext_CFLAGS
649 X11_LIBS
650 X11_CFLAGS
651 PKG_CONFIG_LIBDIR
652 PKG_CONFIG_PATH
653 PKG_CONFIG
654 COND_EXAMPLES_FALSE
655 COND_EXAMPLES_TRUE
656 COND_FONT_FALSE
657 COND_FONT_TRUE
658 CPP
659 LT_SYS_LIBRARY_PATH
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 MANIFEST_TOOL
666 RANLIB
667 ac_ct_AR
668 AR
669 DLLTOOL
670 OBJDUMP
671 LN_S
672 NM
673 ac_ct_DUMPBIN
674 DUMPBIN
675 LD
676 FGREP
677 EGREP
678 GREP
679 SED
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 am__nodep
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 host_os
697 host_vendor
698 host_cpu
699 host
700 build_os
701 build_vendor
702 build_cpu
703 build
704 LIBTOOL
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 runstatedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL
771 am__quote'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_silent_rules
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 with_aix_soname
781 enable_dependency_tracking
782 with_gnu_ld
783 with_sysroot
784 enable_libtool_lock
785 with_font
786 with_examples
787 enable_debug
788 with_fontrootdir
789 with_fontdir
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 LT_SYS_LIBRARY_PATH
800 CPP
801 PKG_CONFIG
802 PKG_CONFIG_PATH
803 PKG_CONFIG_LIBDIR
804 X11_CFLAGS
805 X11_LIBS
806 Xext_CFLAGS
807 Xext_LIBS
808 xpm_CFLAGS
809 xpm_LIBS'
810
811
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
833
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 runstatedir='${localstatedir}/run'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
860
861 ac_prev=
862 ac_dashdash=
863 for ac_option
864 do
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
868 ac_prev=
869 continue
870 fi
871
872 case $ac_option in
873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *=) ac_optarg= ;;
875 *) ac_optarg=yes ;;
876 esac
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -runstatedir | --runstatedir | --runstatedi | --runstated \
1102 | --runstate | --runstat | --runsta | --runst | --runs \
1103 | --run | --ru | --r)
1104 ac_prev=runstatedir ;;
1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107 | --run=* | --ru=* | --r=*)
1108 runstatedir=$ac_optarg ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir runstatedir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures libdockapp 0.7.3 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/libdockapp]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of libdockapp 0.7.3:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450 --enable-debug enable debugging
1451
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1456 both]
1457 --with-aix-soname=aix|svr4|both
1458 shared library versioning (aka "SONAME") variant to
1459 provide on AIX, [default=aix].
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1462 compiler's sysroot if not specified).
1463 --with-font install the dockapp font (default=yes)
1464 --with-examples install the examples (default=yes)
1465 --with-fontrootdir=DIR Path to root directory for font files
1466 --with-fontdir=DIR Path to misc files [FONTROOTDIR/misc]
1467
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 LT_SYS_LIBRARY_PATH
1477 User-defined run-time library search path.
1478 CPP C preprocessor
1479 PKG_CONFIG path to pkg-config utility
1480 PKG_CONFIG_PATH
1481 directories to add to pkg-config's search path
1482 PKG_CONFIG_LIBDIR
1483 path overriding pkg-config's built-in search path
1484 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1485 X11_LIBS linker flags for X11, overriding pkg-config
1486 Xext_CFLAGS C compiler flags for Xext, overriding pkg-config
1487 Xext_LIBS linker flags for Xext, overriding pkg-config
1488 xpm_CFLAGS C compiler flags for xpm, overriding pkg-config
1489 xpm_LIBS linker flags for xpm, overriding pkg-config
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <[email protected]>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" ||
1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504 continue
1505 ac_builddir=.
1506
1507 case "$ac_dir" in
1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *)
1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1511 # A ".." for each directory in $ac_dir_suffix.
1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1513 case $ac_top_builddir_sub in
1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 esac ;;
1517 esac
1518 ac_abs_top_builddir=$ac_pwd
1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520 # for backward compatibility:
1521 ac_top_builddir=$ac_top_build_prefix
1522
1523 case $srcdir in
1524 .) # We are building in place.
1525 ac_srcdir=.
1526 ac_top_srcdir=$ac_top_builddir_sub
1527 ac_abs_top_srcdir=$ac_pwd ;;
1528 [\\/]* | ?:[\\/]* ) # Absolute name.
1529 ac_srcdir=$srcdir$ac_dir_suffix;
1530 ac_top_srcdir=$srcdir
1531 ac_abs_top_srcdir=$srcdir ;;
1532 *) # Relative name.
1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534 ac_top_srcdir=$ac_top_build_prefix$srcdir
1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 esac
1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539 cd "$ac_dir" || { ac_status=$?; continue; }
1540 # Check for guested configure.
1541 if test -f "$ac_srcdir/configure.gnu"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544 elif test -f "$ac_srcdir/configure"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure" --help=recursive
1547 else
1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 fi || ac_status=$?
1550 cd "$ac_pwd" || { ac_status=$?; break; }
1551 done
1552 fi
1553
1554 test -n "$ac_init_help" && exit $ac_status
1555 if $ac_init_version; then
1556 cat <<\_ACEOF
1557 libdockapp configure 0.7.3
1558 generated by GNU Autoconf 2.69
1559
1560 Copyright (C) 2012 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563 _ACEOF
1564 exit
1565 fi
1566
1567 ## ------------------------ ##
1568 ## Autoconf initialization. ##
1569 ## ------------------------ ##
1570
1571 # ac_fn_c_try_compile LINENO
1572 # --------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_compile ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext
1578 if { { ac_try="$ac_compile"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603 fi
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_compile
1608
1609 # ac_fn_c_try_link LINENO
1610 # -----------------------
1611 # Try to link conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_link ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext conftest$ac_exeext
1616 if { { ac_try="$ac_link"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_link") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest$ac_exeext && {
1635 test "$cross_compiling" = yes ||
1636 test -x conftest$ac_exeext
1637 }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1647 # interfere with the next link command; also delete a directory that is
1648 # left behind by Apple's compiler. We do this before executing the actions.
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_link
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_header_compile
1685
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_cpp ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_cpp
1722
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1727 ac_fn_c_try_run ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=$ac_status
1758 fi
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_run
1764
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1780 #define $2 innocuous_$2
1781
1782 /* System header to define __stub macros and hopefully few prototypes,
1783 which can conflict with char $2 (); below.
1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785 <limits.h> exists even on freestanding compilers. */
1786
1787 #ifdef __STDC__
1788 # include <limits.h>
1789 #else
1790 # include <assert.h>
1791 #endif
1792
1793 #undef $2
1794
1795 /* Override any GCC internal prototype to avoid an error.
1796 Use char because int might match the return type of a GCC
1797 builtin and then its argument prototype would still apply. */
1798 #ifdef __cplusplus
1799 extern "C"
1800 #endif
1801 char $2 ();
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined __stub_$2 || defined __stub___$2
1806 choke me
1807 #endif
1808
1809 int
1810 main ()
1811 {
1812 return $2 ();
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_link "$LINENO"; then :
1818 eval "$3=yes"
1819 else
1820 eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext \
1823 conftest$ac_exeext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_func
1831 cat >config.log <<_ACEOF
1832 This file contains any messages produced by compilers while
1833 running configure, to aid debugging if configure makes a mistake.
1834
1835 It was created by libdockapp $as_me 0.7.3, which was
1836 generated by GNU Autoconf 2.69. Invocation command line was
1837
1838 $ $0 $@
1839
1840 _ACEOF
1841 exec 5>>config.log
1842 {
1843 cat <<_ASUNAME
1844 ## --------- ##
1845 ## Platform. ##
1846 ## --------- ##
1847
1848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853
1854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1856
1857 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1858 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1861 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1862 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1863 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1864
1865 _ASUNAME
1866
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 $as_echo "PATH: $as_dir"
1873 done
1874 IFS=$as_save_IFS
1875
1876 } >&5
1877
1878 cat >&5 <<_ACEOF
1879
1880
1881 ## ----------- ##
1882 ## Core tests. ##
1883 ## ----------- ##
1884
1885 _ACEOF
1886
1887
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1893 ac_configure_args=
1894 ac_configure_args0=
1895 ac_configure_args1=
1896 ac_must_keep_next=false
1897 for ac_pass in 1 2
1898 do
1899 for ac_arg
1900 do
1901 case $ac_arg in
1902 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904 | -silent | --silent | --silen | --sile | --sil)
1905 continue ;;
1906 *\'*)
1907 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 esac
1909 case $ac_pass in
1910 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911 2)
1912 as_fn_append ac_configure_args1 " '$ac_arg'"
1913 if test $ac_must_keep_next = true; then
1914 ac_must_keep_next=false # Got value, back to normal.
1915 else
1916 case $ac_arg in
1917 *=* | --config-cache | -C | -disable-* | --disable-* \
1918 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920 | -with-* | --with-* | -without-* | --without-* | --x)
1921 case "$ac_configure_args0 " in
1922 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923 esac
1924 ;;
1925 -* ) ac_must_keep_next=true ;;
1926 esac
1927 fi
1928 as_fn_append ac_configure_args " '$ac_arg'"
1929 ;;
1930 esac
1931 done
1932 done
1933 { ac_configure_args0=; unset ac_configure_args0;}
1934 { ac_configure_args1=; unset ac_configure_args1;}
1935
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log. We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1942 # Save into config.log some information that might help in debugging.
1943 {
1944 echo
1945
1946 $as_echo "## ---------------- ##
1947 ## Cache variables. ##
1948 ## ---------------- ##"
1949 echo
1950 # The following way of writing the cache mishandles newlines in values,
1951 (
1952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in #(
1955 *${as_nl}*)
1956 case $ac_var in #(
1957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959 esac
1960 case $ac_var in #(
1961 _ | IFS | as_nl) ;; #(
1962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963 *) { eval $ac_var=; unset $ac_var;} ;;
1964 esac ;;
1965 esac
1966 done
1967 (set) 2>&1 |
1968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969 *${as_nl}ac_space=\ *)
1970 sed -n \
1971 "s/'\''/'\''\\\\'\'''\''/g;
1972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973 ;; #(
1974 *)
1975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976 ;;
1977 esac |
1978 sort
1979 )
1980 echo
1981
1982 $as_echo "## ----------------- ##
1983 ## Output variables. ##
1984 ## ----------------- ##"
1985 echo
1986 for ac_var in $ac_subst_vars
1987 do
1988 eval ac_val=\$$ac_var
1989 case $ac_val in
1990 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991 esac
1992 $as_echo "$ac_var='\''$ac_val'\''"
1993 done | sort
1994 echo
1995
1996 if test -n "$ac_subst_files"; then
1997 $as_echo "## ------------------- ##
1998 ## File substitutions. ##
1999 ## ------------------- ##"
2000 echo
2001 for ac_var in $ac_subst_files
2002 do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in
2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 esac
2007 $as_echo "$ac_var='\''$ac_val'\''"
2008 done | sort
2009 echo
2010 fi
2011
2012 if test -s confdefs.h; then
2013 $as_echo "## ----------- ##
2014 ## confdefs.h. ##
2015 ## ----------- ##"
2016 echo
2017 cat confdefs.h
2018 echo
2019 fi
2020 test "$ac_signal" != 0 &&
2021 $as_echo "$as_me: caught signal $ac_signal"
2022 $as_echo "$as_me: exit $exit_status"
2023 } >&5
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026 exit $exit_status
2027 ' 0
2028 for ac_signal in 1 2 13 15; do
2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030 done
2031 ac_signal=0
2032
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2035
2036 $as_echo "/* confdefs.h */" > confdefs.h
2037
2038 # Predefined preprocessor variables.
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_NAME "$PACKAGE_NAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_URL "$PACKAGE_URL"
2062 _ACEOF
2063
2064
2065 # Let the site file select an alternate cache file if it wants to.
2066 # Prefer an explicitly selected file to automatically selected ones.
2067 ac_site_file1=NONE
2068 ac_site_file2=NONE
2069 if test -n "$CONFIG_SITE"; then
2070 # We do not want a PATH search for config.site.
2071 case $CONFIG_SITE in #((
2072 -*) ac_site_file1=./$CONFIG_SITE;;
2073 */*) ac_site_file1=$CONFIG_SITE;;
2074 *) ac_site_file1=./$CONFIG_SITE;;
2075 esac
2076 elif test "x$prefix" != xNONE; then
2077 ac_site_file1=$prefix/share/config.site
2078 ac_site_file2=$prefix/etc/config.site
2079 else
2080 ac_site_file1=$ac_default_prefix/share/config.site
2081 ac_site_file2=$ac_default_prefix/etc/config.site
2082 fi
2083 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2084 do
2085 test "x$ac_site_file" = xNONE && continue
2086 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2088 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2089 sed 's/^/| /' "$ac_site_file" >&5
2090 . "$ac_site_file" \
2091 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2093 as_fn_error $? "failed to load site script $ac_site_file
2094 See \`config.log' for more details" "$LINENO" 5; }
2095 fi
2096 done
2097
2098 if test -r "$cache_file"; then
2099 # Some versions of bash will fail to source /dev/null (special files
2100 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2101 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2103 $as_echo "$as_me: loading cache $cache_file" >&6;}
2104 case $cache_file in
2105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106 *) . "./$cache_file";;
2107 esac
2108 fi
2109 else
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2111 $as_echo "$as_me: creating cache $cache_file" >&6;}
2112 >$cache_file
2113 fi
2114
2115 # Check that the precious variables saved in the cache have kept the same
2116 # value.
2117 ac_cache_corrupted=false
2118 for ac_var in $ac_precious_vars; do
2119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120 eval ac_new_set=\$ac_env_${ac_var}_set
2121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122 eval ac_new_val=\$ac_env_${ac_var}_value
2123 case $ac_old_set,$ac_new_set in
2124 set,)
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2128 ,set)
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2132 ,);;
2133 *)
2134 if test "x$ac_old_val" != "x$ac_new_val"; then
2135 # differences in whitespace do not lead to failure.
2136 ac_old_val_w=`echo x $ac_old_val`
2137 ac_new_val_w=`echo x $ac_new_val`
2138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2141 ac_cache_corrupted=:
2142 else
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2145 eval $ac_var=\$ac_old_val
2146 fi
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2151 fi;;
2152 esac
2153 # Pass precious variables to config.status.
2154 if test "$ac_new_set" = set; then
2155 case $ac_new_val in
2156 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 *) ac_arg=$ac_var=$ac_new_val ;;
2158 esac
2159 case " $ac_configure_args " in
2160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2161 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2162 esac
2163 fi
2164 done
2165 if $ac_cache_corrupted; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2171 fi
2172 ## -------------------- ##
2173 ## Main body of script. ##
2174 ## -------------------- ##
2175
2176 ac_ext=c
2177 ac_cpp='$CPP $CPPFLAGS'
2178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181
2182
2183
2184 am__api_version='1.16'
2185
2186 ac_aux_dir=
2187 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2188 if test -f "$ac_dir/install-sh"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/install-sh -c"
2191 break
2192 elif test -f "$ac_dir/install.sh"; then
2193 ac_aux_dir=$ac_dir
2194 ac_install_sh="$ac_aux_dir/install.sh -c"
2195 break
2196 elif test -f "$ac_dir/shtool"; then
2197 ac_aux_dir=$ac_dir
2198 ac_install_sh="$ac_aux_dir/shtool install -c"
2199 break
2200 fi
2201 done
2202 if test -z "$ac_aux_dir"; then
2203 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2204 fi
2205
2206 # These three variables are undocumented and unsupported,
2207 # and are intended to be withdrawn in a future Autoconf release.
2208 # They can cause serious problems if a builder's source tree is in a directory
2209 # whose full name contains unusual characters.
2210 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2211 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2212 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2213
2214
2215 # Find a good install program. We prefer a C program (faster),
2216 # so one script is as good as another. But avoid the broken or
2217 # incompatible versions:
2218 # SysV /etc/install, /usr/sbin/install
2219 # SunOS /usr/etc/install
2220 # IRIX /sbin/install
2221 # AIX /bin/install
2222 # AmigaOS /C/install, which installs bootblocks on floppy discs
2223 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2226 # OS/2's system install, which has a completely different semantic
2227 # ./install, which can be erroneously created by make from ./install.sh.
2228 # Reject install programs that cannot install multiple files.
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2230 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2231 if test -z "$INSTALL"; then
2232 if ${ac_cv_path_install+:} false; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 # Account for people who put trailing slashes in PATH elements.
2241 case $as_dir/ in #((
2242 ./ | .// | /[cC]/* | \
2243 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2244 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2245 /usr/ucb/* ) ;;
2246 *)
2247 # OSF1 and SCO ODT 3.0 have their own names for install.
2248 # Don't use installbsd from OSF since it installs stuff as root
2249 # by default.
2250 for ac_prog in ginstall scoinst install; do
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2253 if test $ac_prog = install &&
2254 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2255 # AIX install. It has an incompatible calling convention.
2256 :
2257 elif test $ac_prog = install &&
2258 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259 # program-specific install script used by HP pwplus--don't use.
2260 :
2261 else
2262 rm -rf conftest.one conftest.two conftest.dir
2263 echo one > conftest.one
2264 echo two > conftest.two
2265 mkdir conftest.dir
2266 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2267 test -s conftest.one && test -s conftest.two &&
2268 test -s conftest.dir/conftest.one &&
2269 test -s conftest.dir/conftest.two
2270 then
2271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2272 break 3
2273 fi
2274 fi
2275 fi
2276 done
2277 done
2278 ;;
2279 esac
2280
2281 done
2282 IFS=$as_save_IFS
2283
2284 rm -rf conftest.one conftest.two conftest.dir
2285
2286 fi
2287 if test "${ac_cv_path_install+set}" = set; then
2288 INSTALL=$ac_cv_path_install
2289 else
2290 # As a last resort, use the slow shell script. Don't cache a
2291 # value for INSTALL within a source directory, because that will
2292 # break other packages using the cache if that directory is
2293 # removed, or if the value is a relative name.
2294 INSTALL=$ac_install_sh
2295 fi
2296 fi
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2298 $as_echo "$INSTALL" >&6; }
2299
2300 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2301 # It thinks the first close brace ends the variable substitution.
2302 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2303
2304 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2305
2306 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2307
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2309 $as_echo_n "checking whether build environment is sane... " >&6; }
2310 # Reject unsafe characters in $srcdir or the absolute working directory
2311 # name. Accept space and tab only in the latter.
2312 am_lf='
2313 '
2314 case `pwd` in
2315 *[\\\"\#\$\&\'\`$am_lf]*)
2316 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2317 esac
2318 case $srcdir in
2319 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2320 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2321 esac
2322
2323 # Do 'set' in a subshell so we don't clobber the current shell's
2324 # arguments. Must try -L first in case configure is actually a
2325 # symlink; some systems play weird games with the mod time of symlinks
2326 # (eg FreeBSD returns the mod time of the symlink's containing
2327 # directory).
2328 if (
2329 am_has_slept=no
2330 for am_try in 1 2; do
2331 echo "timestamp, slept: $am_has_slept" > conftest.file
2332 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2333 if test "$*" = "X"; then
2334 # -L didn't work.
2335 set X `ls -t "$srcdir/configure" conftest.file`
2336 fi
2337 if test "$*" != "X $srcdir/configure conftest.file" \
2338 && test "$*" != "X conftest.file $srcdir/configure"; then
2339
2340 # If neither matched, then we have a broken ls. This can happen
2341 # if, for instance, CONFIG_SHELL is bash and it inherits a
2342 # broken ls alias from the environment. This has actually
2343 # happened. Such a system could not be considered "sane".
2344 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2345 alias in your environment" "$LINENO" 5
2346 fi
2347 if test "$2" = conftest.file || test $am_try -eq 2; then
2348 break
2349 fi
2350 # Just in case.
2351 sleep 1
2352 am_has_slept=yes
2353 done
2354 test "$2" = conftest.file
2355 )
2356 then
2357 # Ok.
2358 :
2359 else
2360 as_fn_error $? "newly created file is older than distributed files!
2361 Check your system clock" "$LINENO" 5
2362 fi
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2364 $as_echo "yes" >&6; }
2365 # If we didn't sleep, we still need to ensure time stamps of config.status and
2366 # generated files are strictly newer.
2367 am_sleep_pid=
2368 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2369 ( sleep 1 ) &
2370 am_sleep_pid=$!
2371 fi
2372
2373 rm -f conftest.file
2374
2375 test "$program_prefix" != NONE &&
2376 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2377 # Use a double $ so make ignores it.
2378 test "$program_suffix" != NONE &&
2379 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2380 # Double any \ or $.
2381 # By default was `s,x,x', remove it if useless.
2382 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2383 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2384
2385 # Expand $ac_aux_dir to an absolute path.
2386 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2387
2388 if test x"${MISSING+set}" != xset; then
2389 case $am_aux_dir in
2390 *\ * | *\ *)
2391 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2392 *)
2393 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2394 esac
2395 fi
2396 # Use eval to expand $SHELL
2397 if eval "$MISSING --is-lightweight"; then
2398 am_missing_run="$MISSING "
2399 else
2400 am_missing_run=
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2402 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2403 fi
2404
2405 if test x"${install_sh+set}" != xset; then
2406 case $am_aux_dir in
2407 *\ * | *\ *)
2408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2409 *)
2410 install_sh="\${SHELL} $am_aux_dir/install-sh"
2411 esac
2412 fi
2413
2414 # Installed binaries are usually stripped using 'strip' when the user
2415 # run "make install-strip". However 'strip' might not be the right
2416 # tool to use in cross-compilation environments, therefore Automake
2417 # will honor the 'STRIP' environment variable to overrule this program.
2418 if test "$cross_compiling" != no; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}strip; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if ${ac_cv_prog_STRIP+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test -n "$STRIP"; then
2428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 STRIP=$ac_cv_prog_STRIP
2448 if test -n "$STRIP"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2450 $as_echo "$STRIP" >&6; }
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455
2456
2457 fi
2458 if test -z "$ac_cv_prog_STRIP"; then
2459 ac_ct_STRIP=$STRIP
2460 # Extract the first word of "strip", so it can be a program name with args.
2461 set dummy strip; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$ac_ct_STRIP"; then
2468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 ac_cv_prog_ac_ct_STRIP="strip"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2488 if test -n "$ac_ct_STRIP"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2490 $as_echo "$ac_ct_STRIP" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496 if test "x$ac_ct_STRIP" = x; then
2497 STRIP=":"
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505 STRIP=$ac_ct_STRIP
2506 fi
2507 else
2508 STRIP="$ac_cv_prog_STRIP"
2509 fi
2510
2511 fi
2512 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2513
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2515 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2516 if test -z "$MKDIR_P"; then
2517 if ${ac_cv_path_mkdir+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_prog in mkdir gmkdir; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2528 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2529 'mkdir (GNU coreutils) '* | \
2530 'mkdir (coreutils) '* | \
2531 'mkdir (fileutils) '4.1*)
2532 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2533 break 3;;
2534 esac
2535 done
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541
2542 test -d ./--version && rmdir ./--version
2543 if test "${ac_cv_path_mkdir+set}" = set; then
2544 MKDIR_P="$ac_cv_path_mkdir -p"
2545 else
2546 # As a last resort, use the slow shell script. Don't cache a
2547 # value for MKDIR_P within a source directory, because that will
2548 # break other packages using the cache if that directory is
2549 # removed, or if the value is a relative name.
2550 MKDIR_P="$ac_install_sh -d"
2551 fi
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2554 $as_echo "$MKDIR_P" >&6; }
2555
2556 for ac_prog in gawk mawk nawk awk
2557 do
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_AWK+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 AWK=$ac_cv_prog_AWK
2586 if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588 $as_echo "$AWK" >&6; }
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2592 fi
2593
2594
2595 test -n "$AWK" && break
2596 done
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2599 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2600 set x ${MAKE-make}
2601 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2602 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 cat >conftest.make <<\_ACEOF
2606 SHELL = /bin/sh
2607 all:
2608 @echo '@@@%%%=$(MAKE)=@@@%%%'
2609 _ACEOF
2610 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2611 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2612 *@@@%%%=?*=@@@%%%*)
2613 eval ac_cv_prog_make_${ac_make}_set=yes;;
2614 *)
2615 eval ac_cv_prog_make_${ac_make}_set=no;;
2616 esac
2617 rm -f conftest.make
2618 fi
2619 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 SET_MAKE=
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 SET_MAKE="MAKE=${MAKE-make}"
2627 fi
2628
2629 rm -rf .tst 2>/dev/null
2630 mkdir .tst 2>/dev/null
2631 if test -d .tst; then
2632 am__leading_dot=.
2633 else
2634 am__leading_dot=_
2635 fi
2636 rmdir .tst 2>/dev/null
2637
2638 # Check whether --enable-silent-rules was given.
2639 if test "${enable_silent_rules+set}" = set; then :
2640 enableval=$enable_silent_rules;
2641 fi
2642
2643 case $enable_silent_rules in # (((
2644 yes) AM_DEFAULT_VERBOSITY=0;;
2645 no) AM_DEFAULT_VERBOSITY=1;;
2646 *) AM_DEFAULT_VERBOSITY=1;;
2647 esac
2648 am_make=${MAKE-make}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2650 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2651 if ${am_cv_make_support_nested_variables+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if $as_echo 'TRUE=$(BAR$(V))
2655 BAR0=false
2656 BAR1=true
2657 V=1
2658 am__doit:
2659 @$(TRUE)
2660 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2661 am_cv_make_support_nested_variables=yes
2662 else
2663 am_cv_make_support_nested_variables=no
2664 fi
2665 fi
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2667 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2668 if test $am_cv_make_support_nested_variables = yes; then
2669 AM_V='$(V)'
2670 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2671 else
2672 AM_V=$AM_DEFAULT_VERBOSITY
2673 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2674 fi
2675 AM_BACKSLASH='\'
2676
2677 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2678 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2679 # is not polluted with repeated "-I."
2680 am__isrc=' -I$(srcdir)'
2681 # test to see if srcdir already configured
2682 if test -f $srcdir/config.status; then
2683 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2684 fi
2685 fi
2686
2687 # test whether we have cygpath
2688 if test -z "$CYGPATH_W"; then
2689 if (cygpath --version) >/dev/null 2>/dev/null; then
2690 CYGPATH_W='cygpath -w'
2691 else
2692 CYGPATH_W=echo
2693 fi
2694 fi
2695
2696
2697 # Define the identity of the package.
2698 PACKAGE='libdockapp'
2699 VERSION='0.7.3'
2700
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE "$PACKAGE"
2704 _ACEOF
2705
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define VERSION "$VERSION"
2709 _ACEOF
2710
2711 # Some tools Automake needs.
2712
2713 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2714
2715
2716 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2717
2718
2719 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2720
2721
2722 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2723
2724
2725 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2726
2727 # For better backward compatibility. To be removed once Automake 1.9.x
2728 # dies out for good. For more background, see:
2729 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2730 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2731 mkdir_p='$(MKDIR_P)'
2732
2733 # We need awk for the "check" target (and possibly the TAP driver). The
2734 # system "awk" is bad on some platforms.
2735 # Always define AMTAR for backward compatibility. Yes, it's still used
2736 # in the wild :-( We should find a proper way to deprecate it ...
2737 AMTAR='$${TAR-tar}'
2738
2739
2740 # We'll loop over all known methods to create a tar archive until one works.
2741 _am_tools='gnutar pax cpio none'
2742
2743 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2744
2745
2746
2747
2748
2749
2750 # POSIX will say in a future version that running "rm -f" with no argument
2751 # is OK; and we want to be able to make that assumption in our Makefile
2752 # recipes. So use an aggressive probe to check that the usage we want is
2753 # actually supported "in the wild" to an acceptable degree.
2754 # See automake bug#10828.
2755 # To make any issue more visible, cause the running configure to be aborted
2756 # by default if the 'rm' program in use doesn't match our expectations; the
2757 # user can still override this though.
2758 if rm -f && rm -fr && rm -rf; then : OK; else
2759 cat >&2 <<'END'
2760 Oops!
2761
2762 Your 'rm' program seems unable to run without file operands specified
2763 on the command line, even when the '-f' option is present. This is contrary
2764 to the behaviour of most rm programs out there, and not conforming with
2765 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2766
2767 Please tell [email protected] about your system, including the value
2768 of your $PATH and any error possibly output before this message. This
2769 can help us improve future automake versions.
2770
2771 END
2772 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2773 echo 'Configuration will proceed anyway, since you have set the' >&2
2774 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2775 echo >&2
2776 else
2777 cat >&2 <<'END'
2778 Aborting the configuration process, to ensure you take notice of the issue.
2779
2780 You can download and install GNU coreutils to get an 'rm' implementation
2781 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2782
2783 If you want to complete the configuration process using your problematic
2784 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2785 to "yes", and re-run configure.
2786
2787 END
2788 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2789 fi
2790 fi
2791
2792
2793 case `pwd` in
2794 *\ * | *\ *)
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2796 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2797 esac
2798
2799
2800
2801 macro_version='2.4.6'
2802 macro_revision='2.4.6'
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816 ltmain=$ac_aux_dir/ltmain.sh
2817
2818 # Make sure we can run config.sub.
2819 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2820 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2823 $as_echo_n "checking build system type... " >&6; }
2824 if ${ac_cv_build+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 ac_build_alias=$build_alias
2828 test "x$ac_build_alias" = x &&
2829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2830 test "x$ac_build_alias" = x &&
2831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2832 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2834
2835 fi
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2837 $as_echo "$ac_cv_build" >&6; }
2838 case $ac_cv_build in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2841 esac
2842 build=$ac_cv_build
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_build
2845 shift
2846 build_cpu=$1
2847 build_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 build_os=$*
2852 IFS=$ac_save_IFS
2853 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2854
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2857 $as_echo_n "checking host system type... " >&6; }
2858 if ${ac_cv_host+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test "x$host_alias" = x; then
2862 ac_cv_host=$ac_cv_build
2863 else
2864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2865 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2866 fi
2867
2868 fi
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2870 $as_echo "$ac_cv_host" >&6; }
2871 case $ac_cv_host in
2872 *-*-*) ;;
2873 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2874 esac
2875 host=$ac_cv_host
2876 ac_save_IFS=$IFS; IFS='-'
2877 set x $ac_cv_host
2878 shift
2879 host_cpu=$1
2880 host_vendor=$2
2881 shift; shift
2882 # Remember, the first character of IFS is used to create $*,
2883 # except with old shells:
2884 host_os=$*
2885 IFS=$ac_save_IFS
2886 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2887
2888
2889 # Backslashify metacharacters that are still active within
2890 # double-quoted strings.
2891 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2892
2893 # Same as above, but do not quote variable references.
2894 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2895
2896 # Sed substitution to delay expansion of an escaped shell variable in a
2897 # double_quote_subst'ed string.
2898 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2899
2900 # Sed substitution to delay expansion of an escaped single quote.
2901 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2902
2903 # Sed substitution to avoid accidental globbing in evaled expressions
2904 no_glob_subst='s/\*/\\\*/g'
2905
2906 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2907 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2908 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2911 $as_echo_n "checking how to print strings... " >&6; }
2912 # Test print first, because it will be a builtin if present.
2913 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2914 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2915 ECHO='print -r --'
2916 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2917 ECHO='printf %s\n'
2918 else
2919 # Use this function as a fallback that always works.
2920 func_fallback_echo ()
2921 {
2922 eval 'cat <<_LTECHO_EOF
2923 $1
2924 _LTECHO_EOF'
2925 }
2926 ECHO='func_fallback_echo'
2927 fi
2928
2929 # func_echo_all arg...
2930 # Invoke $ECHO with all args, space-separated.
2931 func_echo_all ()
2932 {
2933 $ECHO ""
2934 }
2935
2936 case $ECHO in
2937 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2938 $as_echo "printf" >&6; } ;;
2939 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2940 $as_echo "print -r" >&6; } ;;
2941 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2942 $as_echo "cat" >&6; } ;;
2943 esac
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958 DEPDIR="${am__leading_dot}deps"
2959
2960 ac_config_commands="$ac_config_commands depfiles"
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2963 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2964 cat > confinc.mk << 'END'
2965 am__doit:
2966 @echo this is the am__doit target >confinc.out
2967 .PHONY: am__doit
2968 END
2969 am__include="#"
2970 am__quote=
2971 # BSD make does it like this.
2972 echo '.include "confinc.mk" # ignored' > confmf.BSD
2973 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2974 echo 'include confinc.mk # ignored' > confmf.GNU
2975 _am_result=no
2976 for s in GNU BSD; do
2977 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2978 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }
2982 case $?:`cat confinc.out 2>/dev/null` in #(
2983 '0:this is the am__doit target') :
2984 case $s in #(
2985 BSD) :
2986 am__include='.include' am__quote='"' ;; #(
2987 *) :
2988 am__include='include' am__quote='' ;;
2989 esac ;; #(
2990 *) :
2991 ;;
2992 esac
2993 if test "$am__include" != "#"; then
2994 _am_result="yes ($s style)"
2995 break
2996 fi
2997 done
2998 rm -f confinc.* confmf.*
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3000 $as_echo "${_am_result}" >&6; }
3001
3002 # Check whether --enable-dependency-tracking was given.
3003 if test "${enable_dependency_tracking+set}" = set; then :
3004 enableval=$enable_dependency_tracking;
3005 fi
3006
3007 if test "x$enable_dependency_tracking" != xno; then
3008 am_depcomp="$ac_aux_dir/depcomp"
3009 AMDEPBACKSLASH='\'
3010 am__nodep='_no'
3011 fi
3012 if test "x$enable_dependency_tracking" != xno; then
3013 AMDEP_TRUE=
3014 AMDEP_FALSE='#'
3015 else
3016 AMDEP_TRUE='#'
3017 AMDEP_FALSE=
3018 fi
3019
3020
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064 fi
3065 if test -z "$ac_cv_prog_CC"; then
3066 ac_ct_CC=$CC
3067 # Extract the first word of "gcc", so it can be a program name with args.
3068 set dummy gcc; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_ac_ct_CC="gcc"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095 if test -n "$ac_ct_CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3097 $as_echo "$ac_ct_CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103 if test "x$ac_ct_CC" = x; then
3104 CC=""
3105 else
3106 case $cross_compiling:$ac_tool_warned in
3107 yes:)
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3111 esac
3112 CC=$ac_ct_CC
3113 fi
3114 else
3115 CC="$ac_cv_prog_CC"
3116 fi
3117
3118 if test -z "$CC"; then
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}cc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CC="${ac_tool_prefix}cc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 fi
3158 fi
3159 if test -z "$CC"; then
3160 # Extract the first word of "cc", so it can be a program name with args.
3161 set dummy cc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 ac_prog_rejected=no
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3179 ac_prog_rejected=yes
3180 continue
3181 fi
3182 ac_cv_prog_CC="cc"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186 done
3187 done
3188 IFS=$as_save_IFS
3189
3190 if test $ac_prog_rejected = yes; then
3191 # We found a bogon in the path, so make sure we never use it.
3192 set dummy $ac_cv_prog_CC
3193 shift
3194 if test $# != 0; then
3195 # We chose a different compiler from the bogus one.
3196 # However, it has the same basename, so the bogon will be chosen
3197 # first if we set CC to just the basename; use the full file name.
3198 shift
3199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3200 fi
3201 fi
3202 fi
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214 fi
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog in cl.exe
3218 do
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255
3256 test -n "$CC" && break
3257 done
3258 fi
3259 if test -z "$CC"; then
3260 ac_ct_CC=$CC
3261 for ac_prog in cl.exe
3262 do
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy $ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_ac_ct_CC="$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293 $as_echo "$ac_ct_CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 test -n "$ac_ct_CC" && break
3301 done
3302
3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307 yes:)
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3311 esac
3312 CC=$ac_ct_CC
3313 fi
3314 fi
3315
3316 fi
3317
3318
3319 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "no acceptable C compiler found in \$PATH
3322 See \`config.log' for more details" "$LINENO" 5; }
3323
3324 # Provide some information about the compiler.
3325 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3326 set X $ac_compile
3327 ac_compiler=$2
3328 for ac_option in --version -v -V -qversion; do
3329 { { ac_try="$ac_compiler $ac_option >&5"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3337 ac_status=$?
3338 if test -s conftest.err; then
3339 sed '10a\
3340 ... rest of stderr output deleted ...
3341 10q' conftest.err >conftest.er1
3342 cat conftest.er1 >&5
3343 fi
3344 rm -f conftest.er1 conftest.err
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }
3347 done
3348
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 ac_clean_files_save=$ac_clean_files
3361 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3362 # Try to create an executable without -o first, disregard a.out.
3363 # It will help us diagnose broken compilers, and finding out an intuition
3364 # of exeext.
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3366 $as_echo_n "checking whether the C compiler works... " >&6; }
3367 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3368
3369 # The possible output files:
3370 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3371
3372 ac_rmfiles=
3373 for ac_file in $ac_files
3374 do
3375 case $ac_file in
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3377 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3378 esac
3379 done
3380 rm -f $ac_rmfiles
3381
3382 if { { ac_try="$ac_link_default"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link_default") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
3393 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3394 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3395 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3396 # so that the user can short-circuit this test for compilers unknown to
3397 # Autoconf.
3398 for ac_file in $ac_files ''
3399 do
3400 test -f "$ac_file" || continue
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3403 ;;
3404 [ab].out )
3405 # We found the default executable, but exeext='' is most
3406 # certainly right.
3407 break;;
3408 *.* )
3409 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3410 then :; else
3411 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 fi
3413 # We set ac_cv_exeext here because the later test for it is not
3414 # safe: cross compilers may not add the suffix if given an `-o'
3415 # argument, so we may need to know it at that point already.
3416 # Even if this section looks crufty: it has the advantage of
3417 # actually working.
3418 break;;
3419 * )
3420 break;;
3421 esac
3422 done
3423 test "$ac_cv_exeext" = no && ac_cv_exeext=
3424
3425 else
3426 ac_file=''
3427 fi
3428 if test -z "$ac_file"; then :
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 $as_echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error 77 "C compiler cannot create executables
3437 See \`config.log' for more details" "$LINENO" 5; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 $as_echo "yes" >&6; }
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3443 $as_echo_n "checking for C compiler default output file name... " >&6; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3445 $as_echo "$ac_file" >&6; }
3446 ac_exeext=$ac_cv_exeext
3447
3448 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3449 ac_clean_files=$ac_clean_files_save
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3451 $as_echo_n "checking for suffix of executables... " >&6; }
3452 if { { ac_try="$ac_link"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; then :
3463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3464 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3465 # work properly (i.e., refer to `conftest.exe'), while it won't with
3466 # `rm'.
3467 for ac_file in conftest.exe conftest conftest.*; do
3468 test -f "$ac_file" || continue
3469 case $ac_file in
3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3472 break;;
3473 * ) break;;
3474 esac
3475 done
3476 else
3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3480 See \`config.log' for more details" "$LINENO" 5; }
3481 fi
3482 rm -f conftest conftest$ac_cv_exeext
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3484 $as_echo "$ac_cv_exeext" >&6; }
3485
3486 rm -f conftest.$ac_ext
3487 EXEEXT=$ac_cv_exeext
3488 ac_exeext=$EXEEXT
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491 #include <stdio.h>
3492 int
3493 main ()
3494 {
3495 FILE *f = fopen ("conftest.out", "w");
3496 return ferror (f) || fclose (f) != 0;
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 ac_clean_files="$ac_clean_files conftest.out"
3503 # Check that the compiler produces executables we can run. If not, either
3504 # the compiler is broken, or we cross compile.
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3506 $as_echo_n "checking whether we are cross compiling... " >&6; }
3507 if test "$cross_compiling" != yes; then
3508 { { ac_try="$ac_link"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514 $as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_link") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }
3519 if { ac_try='./conftest$ac_cv_exeext'
3520 { { case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_try") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; }; then
3530 cross_compiling=no
3531 else
3532 if test "$cross_compiling" = maybe; then
3533 cross_compiling=yes
3534 else
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "cannot run C compiled programs.
3538 If you meant to cross compile, use \`--host'.
3539 See \`config.log' for more details" "$LINENO" 5; }
3540 fi
3541 fi
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3544 $as_echo "$cross_compiling" >&6; }
3545
3546 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3547 ac_clean_files=$ac_clean_files_save
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3549 $as_echo_n "checking for suffix of object files... " >&6; }
3550 if ${ac_cv_objext+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest.o conftest.obj
3565 if { { ac_try="$ac_compile"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_compile") 2>&5
3573 ac_status=$?
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
3576 for ac_file in conftest.o conftest.obj conftest.*; do
3577 test -f "$ac_file" || continue;
3578 case $ac_file in
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3581 break;;
3582 esac
3583 done
3584 else
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of object files: cannot compile
3591 See \`config.log' for more details" "$LINENO" 5; }
3592 fi
3593 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3596 $as_echo "$ac_cv_objext" >&6; }
3597 OBJEXT=$ac_cv_objext
3598 ac_objext=$OBJEXT
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3600 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3601 if ${ac_cv_c_compiler_gnu+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610 #ifndef __GNUC__
3611 choke me
3612 #endif
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_compiler_gnu=yes
3620 else
3621 ac_compiler_gnu=no
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3625
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3628 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3629 if test $ac_compiler_gnu = yes; then
3630 GCC=yes
3631 else
3632 GCC=
3633 fi
3634 ac_test_CFLAGS=${CFLAGS+set}
3635 ac_save_CFLAGS=$CFLAGS
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3637 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3638 if ${ac_cv_prog_cc_g+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 ac_save_c_werror_flag=$ac_c_werror_flag
3642 ac_c_werror_flag=yes
3643 ac_cv_prog_cc_g=no
3644 CFLAGS="-g"
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main ()
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_cv_prog_cc_g=yes
3658 else
3659 CFLAGS=""
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 int
3664 main ()
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672
3673 else
3674 ac_c_werror_flag=$ac_save_c_werror_flag
3675 CFLAGS="-g"
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_g=yes
3689 fi
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_c_werror_flag=$ac_save_c_werror_flag
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3698 $as_echo "$ac_cv_prog_cc_g" >&6; }
3699 if test "$ac_test_CFLAGS" = set; then
3700 CFLAGS=$ac_save_CFLAGS
3701 elif test $ac_cv_prog_cc_g = yes; then
3702 if test "$GCC" = yes; then
3703 CFLAGS="-g -O2"
3704 else
3705 CFLAGS="-g"
3706 fi
3707 else
3708 if test "$GCC" = yes; then
3709 CFLAGS="-O2"
3710 else
3711 CFLAGS=
3712 fi
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3716 if ${ac_cv_prog_cc_c89+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 ac_cv_prog_cc_c89=no
3720 ac_save_CC=$CC
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723 #include <stdarg.h>
3724 #include <stdio.h>
3725 struct stat;
3726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3727 struct buf { int x; };
3728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3729 static char *e (p, i)
3730 char **p;
3731 int i;
3732 {
3733 return p[i];
3734 }
3735 static char *f (char * (*g) (char **, int), char **p, ...)
3736 {
3737 char *s;
3738 va_list v;
3739 va_start (v,p);
3740 s = g (p, va_arg (v,int));
3741 va_end (v);
3742 return s;
3743 }
3744
3745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3746 function prototypes and stuff, but not '\xHH' hex character constants.
3747 These don't provoke an error unfortunately, instead are silently treated
3748 as 'x'. The following induces an error, until -std is added to get
3749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3750 array size at least. It's necessary to write '\x00'==0 to get something
3751 that's true only with -std. */
3752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753
3754 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3755 inside strings and character constants. */
3756 #define FOO(x) 'x'
3757 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3758
3759 int test (int i, double x);
3760 struct s1 {int (*f) (int a);};
3761 struct s2 {int (*f) (double a);};
3762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763 int argc;
3764 char **argv;
3765 int
3766 main ()
3767 {
3768 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3774 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775 do
3776 CC="$ac_save_CC $ac_arg"
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_cv_prog_cc_c89=$ac_arg
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext
3781 test "x$ac_cv_prog_cc_c89" != "xno" && break
3782 done
3783 rm -f conftest.$ac_ext
3784 CC=$ac_save_CC
3785
3786 fi
3787 # AC_CACHE_VAL
3788 case "x$ac_cv_prog_cc_c89" in
3789 x)
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3791 $as_echo "none needed" >&6; } ;;
3792 xno)
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3794 $as_echo "unsupported" >&6; } ;;
3795 *)
3796 CC="$CC $ac_cv_prog_cc_c89"
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3798 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3799 esac
3800 if test "x$ac_cv_prog_cc_c89" != xno; then :
3801
3802 fi
3803
3804 ac_ext=c
3805 ac_cpp='$CPP $CPPFLAGS'
3806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3816 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3817 if ${am_cv_prog_cc_c_o+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822
3823 int
3824 main ()
3825 {
3826
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 # Make sure it works both with $CC and with simple cc.
3832 # Following AC_PROG_CC_C_O, we do the test twice because some
3833 # compilers refuse to overwrite an existing .o file with -o,
3834 # though they will create one.
3835 am_cv_prog_cc_c_o=yes
3836 for am_i in 1 2; do
3837 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3838 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } \
3842 && test -f conftest2.$ac_objext; then
3843 : OK
3844 else
3845 am_cv_prog_cc_c_o=no
3846 break
3847 fi
3848 done
3849 rm -f core conftest*
3850 unset am_i
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3853 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3854 if test "$am_cv_prog_cc_c_o" != yes; then
3855 # Losing compiler, so override with the script.
3856 # FIXME: It is wrong to rewrite CC.
3857 # But if we don't then we get into trouble of one sort or another.
3858 # A longer-term fix would be to have automake use am__CC in this case,
3859 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3860 CC="$am_aux_dir/compile $CC"
3861 fi
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868
3869 depcc="$CC" am_compiler_list=
3870
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3872 $as_echo_n "checking dependency style of $depcc... " >&6; }
3873 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3877 # We make a subdir and do the tests there. Otherwise we can end up
3878 # making bogus files that we don't know about and never remove. For
3879 # instance it was reported that on HP-UX the gcc test will end up
3880 # making a dummy file named 'D' -- because '-MD' means "put the output
3881 # in D".
3882 rm -rf conftest.dir
3883 mkdir conftest.dir
3884 # Copy depcomp to subdir because otherwise we won't find it if we're
3885 # using a relative directory.
3886 cp "$am_depcomp" conftest.dir
3887 cd conftest.dir
3888 # We will build objects and dependencies in a subdirectory because
3889 # it helps to detect inapplicable dependency modes. For instance
3890 # both Tru64's cc and ICC support -MD to output dependencies as a
3891 # side effect of compilation, but ICC will put the dependencies in
3892 # the current directory while Tru64 will put them in the object
3893 # directory.
3894 mkdir sub
3895
3896 am_cv_CC_dependencies_compiler_type=none
3897 if test "$am_compiler_list" = ""; then
3898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3899 fi
3900 am__universal=false
3901 case " $depcc " in #(
3902 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3903 esac
3904
3905 for depmode in $am_compiler_list; do
3906 # Setup a source with many dependencies, because some compilers
3907 # like to wrap large dependency lists on column 80 (with \), and
3908 # we should not choose a depcomp mode which is confused by this.
3909 #
3910 # We need to recreate these files for each test, as the compiler may
3911 # overwrite some of them when testing with obscure command lines.
3912 # This happens at least with the AIX C compiler.
3913 : > sub/conftest.c
3914 for i in 1 2 3 4 5 6; do
3915 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3916 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3917 # Solaris 10 /bin/sh.
3918 echo '/* dummy */' > sub/conftst$i.h
3919 done
3920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3921
3922 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3923 # mode. It turns out that the SunPro C++ compiler does not properly
3924 # handle '-M -o', and we need to detect this. Also, some Intel
3925 # versions had trouble with output in subdirs.
3926 am__obj=sub/conftest.${OBJEXT-o}
3927 am__minus_obj="-o $am__obj"
3928 case $depmode in
3929 gcc)
3930 # This depmode causes a compiler race in universal mode.
3931 test "$am__universal" = false || continue
3932 ;;
3933 nosideeffect)
3934 # After this tag, mechanisms are not by side-effect, so they'll
3935 # only be used when explicitly requested.
3936 if test "x$enable_dependency_tracking" = xyes; then
3937 continue
3938 else
3939 break
3940 fi
3941 ;;
3942 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3943 # This compiler won't grok '-c -o', but also, the minuso test has
3944 # not run yet. These depmodes are late enough in the game, and
3945 # so weak that their functioning should not be impacted.
3946 am__obj=conftest.${OBJEXT-o}
3947 am__minus_obj=
3948 ;;
3949 none) break ;;
3950 esac
3951 if depmode=$depmode \
3952 source=sub/conftest.c object=$am__obj \
3953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3954 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3955 >/dev/null 2>conftest.err &&
3956 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3958 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3960 # icc doesn't choke on unknown options, it will just issue warnings
3961 # or remarks (even with -Werror). So we grep stderr for any message
3962 # that says an option was ignored or not supported.
3963 # When given -MP, icc 7.0 and 7.1 complain thusly:
3964 # icc: Command line warning: ignoring option '-M'; no argument required
3965 # The diagnosis changed in icc 8.0:
3966 # icc: Command line remark: option '-MP' not supported
3967 if (grep 'ignoring option' conftest.err ||
3968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3969 am_cv_CC_dependencies_compiler_type=$depmode
3970 break
3971 fi
3972 fi
3973 done
3974
3975 cd ..
3976 rm -rf conftest.dir
3977 else
3978 am_cv_CC_dependencies_compiler_type=none
3979 fi
3980
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3983 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3984 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3985
3986 if
3987 test "x$enable_dependency_tracking" != xno \
3988 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3989 am__fastdepCC_TRUE=
3990 am__fastdepCC_FALSE='#'
3991 else
3992 am__fastdepCC_TRUE='#'
3993 am__fastdepCC_FALSE=
3994 fi
3995
3996
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3998 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3999 if ${ac_cv_path_SED+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4003 for ac_i in 1 2 3 4 5 6 7; do
4004 ac_script="$ac_script$as_nl$ac_script"
4005 done
4006 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4007 { ac_script=; unset ac_script;}
4008 if test -z "$SED"; then
4009 ac_path_SED_found=false
4010 # Loop through the user's path and test for each of PROGNAME-LIST
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
4016 for ac_prog in sed gsed; do
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4019 as_fn_executable_p "$ac_path_SED" || continue
4020 # Check for GNU ac_path_SED and select it if it is found.
4021 # Check for GNU $ac_path_SED
4022 case `"$ac_path_SED" --version 2>&1` in
4023 *GNU*)
4024 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4025 *)
4026 ac_count=0
4027 $as_echo_n 0123456789 >"conftest.in"
4028 while :
4029 do
4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
4031 mv "conftest.tmp" "conftest.in"
4032 cp "conftest.in" "conftest.nl"
4033 $as_echo '' >> "conftest.nl"
4034 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036 as_fn_arith $ac_count + 1 && ac_count=$as_val
4037 if test $ac_count -gt ${ac_path_SED_max-0}; then
4038 # Best one so far, save it but keep looking for a better one
4039 ac_cv_path_SED="$ac_path_SED"
4040 ac_path_SED_max=$ac_count
4041 fi
4042 # 10*(2^10) chars as input seems more than enough
4043 test $ac_count -gt 10 && break
4044 done
4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046 esac
4047
4048 $ac_path_SED_found && break 3
4049 done
4050 done
4051 done
4052 IFS=$as_save_IFS
4053 if test -z "$ac_cv_path_SED"; then
4054 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4055 fi
4056 else
4057 ac_cv_path_SED=$SED
4058 fi
4059
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4062 $as_echo "$ac_cv_path_SED" >&6; }
4063 SED="$ac_cv_path_SED"
4064 rm -f conftest.sed
4065
4066 test -z "$SED" && SED=sed
4067 Xsed="$SED -e 1s/^X//"
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4080 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4081 if ${ac_cv_path_GREP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -z "$GREP"; then
4085 ac_path_GREP_found=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in grep ggrep; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4095 as_fn_executable_p "$ac_path_GREP" || continue
4096 # Check for GNU ac_path_GREP and select it if it is found.
4097 # Check for GNU $ac_path_GREP
4098 case `"$ac_path_GREP" --version 2>&1` in
4099 *GNU*)
4100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4101 *)
4102 ac_count=0
4103 $as_echo_n 0123456789 >"conftest.in"
4104 while :
4105 do
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 $as_echo 'GREP' >> "conftest.nl"
4110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112 as_fn_arith $ac_count + 1 && ac_count=$as_val
4113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_GREP="$ac_path_GREP"
4116 ac_path_GREP_max=$ac_count
4117 fi
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4120 done
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122 esac
4123
4124 $ac_path_GREP_found && break 3
4125 done
4126 done
4127 done
4128 IFS=$as_save_IFS
4129 if test -z "$ac_cv_path_GREP"; then
4130 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131 fi
4132 else
4133 ac_cv_path_GREP=$GREP
4134 fi
4135
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4138 $as_echo "$ac_cv_path_GREP" >&6; }
4139 GREP="$ac_cv_path_GREP"
4140
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4143 $as_echo_n "checking for egrep... " >&6; }
4144 if ${ac_cv_path_EGREP+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148 then ac_cv_path_EGREP="$GREP -E"
4149 else
4150 if test -z "$EGREP"; then
4151 ac_path_EGREP_found=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4155 do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_prog in egrep; do
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4161 as_fn_executable_p "$ac_path_EGREP" || continue
4162 # Check for GNU ac_path_EGREP and select it if it is found.
4163 # Check for GNU $ac_path_EGREP
4164 case `"$ac_path_EGREP" --version 2>&1` in
4165 *GNU*)
4166 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4167 *)
4168 ac_count=0
4169 $as_echo_n 0123456789 >"conftest.in"
4170 while :
4171 do
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'EGREP' >> "conftest.nl"
4176 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
4179 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_EGREP="$ac_path_EGREP"
4182 ac_path_EGREP_max=$ac_count
4183 fi
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4186 done
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188 esac
4189
4190 $ac_path_EGREP_found && break 3
4191 done
4192 done
4193 done
4194 IFS=$as_save_IFS
4195 if test -z "$ac_cv_path_EGREP"; then
4196 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4197 fi
4198 else
4199 ac_cv_path_EGREP=$EGREP
4200 fi
4201
4202 fi
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4205 $as_echo "$ac_cv_path_EGREP" >&6; }
4206 EGREP="$ac_cv_path_EGREP"
4207
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4210 $as_echo_n "checking for fgrep... " >&6; }
4211 if ${ac_cv_path_FGREP+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4215 then ac_cv_path_FGREP="$GREP -F"
4216 else
4217 if test -z "$FGREP"; then
4218 ac_path_FGREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in fgrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4228 as_fn_executable_p "$ac_path_FGREP" || continue
4229 # Check for GNU ac_path_FGREP and select it if it is found.
4230 # Check for GNU $ac_path_FGREP
4231 case `"$ac_path_FGREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4234 *)
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4238 do
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'FGREP' >> "conftest.nl"
4243 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 as_fn_arith $ac_count + 1 && ac_count=$as_val
4246 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_FGREP="$ac_path_FGREP"
4249 ac_path_FGREP_max=$ac_count
4250 fi
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257 $ac_path_FGREP_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_FGREP"; then
4263 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 fi
4265 else
4266 ac_cv_path_FGREP=$FGREP
4267 fi
4268
4269 fi
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4272 $as_echo "$ac_cv_path_FGREP" >&6; }
4273 FGREP="$ac_cv_path_FGREP"
4274
4275
4276 test -z "$GREP" && GREP=grep
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296 # Check whether --with-gnu-ld was given.
4297 if test "${with_gnu_ld+set}" = set; then :
4298 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4299 else
4300 with_gnu_ld=no
4301 fi
4302
4303 ac_prog=ld
4304 if test yes = "$GCC"; then
4305 # Check if gcc -print-prog-name=ld gives a path.
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4307 $as_echo_n "checking for ld used by $CC... " >&6; }
4308 case $host in
4309 *-*-mingw*)
4310 # gcc leaves a trailing carriage return, which upsets mingw
4311 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4312 *)
4313 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4314 esac
4315 case $ac_prog in
4316 # Accept absolute paths.
4317 [\\/]* | ?:[\\/]*)
4318 re_direlt='/[^/][^/]*/\.\./'
4319 # Canonicalize the pathname of ld
4320 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4321 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4322 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4323 done
4324 test -z "$LD" && LD=$ac_prog
4325 ;;
4326 "")
4327 # If it fails, then pretend we aren't using GCC.
4328 ac_prog=ld
4329 ;;
4330 *)
4331 # If it is relative, then search for the first ld in PATH.
4332 with_gnu_ld=unknown
4333 ;;
4334 esac
4335 elif test yes = "$with_gnu_ld"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4337 $as_echo_n "checking for GNU ld... " >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4340 $as_echo_n "checking for non-GNU ld... " >&6; }
4341 fi
4342 if ${lt_cv_path_LD+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test -z "$LD"; then
4346 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4347 for ac_dir in $PATH; do
4348 IFS=$lt_save_ifs
4349 test -z "$ac_dir" && ac_dir=.
4350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4351 lt_cv_path_LD=$ac_dir/$ac_prog
4352 # Check to see if the program is GNU ld. I'd rather use --version,
4353 # but apparently some variants of GNU ld only accept -v.
4354 # Break only if it was the GNU/non-GNU ld that we prefer.
4355 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4356 *GNU* | *'with BFD'*)
4357 test no != "$with_gnu_ld" && break
4358 ;;
4359 *)
4360 test yes != "$with_gnu_ld" && break
4361 ;;
4362 esac
4363 fi
4364 done
4365 IFS=$lt_save_ifs
4366 else
4367 lt_cv_path_LD=$LD # Let the user override the test with a path.
4368 fi
4369 fi
4370
4371 LD=$lt_cv_path_LD
4372 if test -n "$LD"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4374 $as_echo "$LD" >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4378 fi
4379 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4381 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4382 if ${lt_cv_prog_gnu_ld+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4386 case `$LD -v 2>&1 </dev/null` in
4387 *GNU* | *'with BFD'*)
4388 lt_cv_prog_gnu_ld=yes
4389 ;;
4390 *)
4391 lt_cv_prog_gnu_ld=no
4392 ;;
4393 esac
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4396 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4397 with_gnu_ld=$lt_cv_prog_gnu_ld
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4408 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4409 if ${lt_cv_path_NM+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$NM"; then
4413 # Let the user override the test.
4414 lt_cv_path_NM=$NM
4415 else
4416 lt_nm_to_check=${ac_tool_prefix}nm
4417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4418 lt_nm_to_check="$lt_nm_to_check nm"
4419 fi
4420 for lt_tmp_nm in $lt_nm_to_check; do
4421 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4423 IFS=$lt_save_ifs
4424 test -z "$ac_dir" && ac_dir=.
4425 tmp_nm=$ac_dir/$lt_tmp_nm
4426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4427 # Check to see if the nm accepts a BSD-compat flag.
4428 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4429 # nm: unknown option "B" ignored
4430 # Tru64's nm complains that /dev/null is an invalid object file
4431 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4432 case $build_os in
4433 mingw*) lt_bad_file=conftest.nm/nofile ;;
4434 *) lt_bad_file=/dev/null ;;
4435 esac
4436 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4437 *$lt_bad_file* | *'Invalid file or object type'*)
4438 lt_cv_path_NM="$tmp_nm -B"
4439 break 2
4440 ;;
4441 *)
4442 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4443 */dev/null*)
4444 lt_cv_path_NM="$tmp_nm -p"
4445 break 2
4446 ;;
4447 *)
4448 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4449 continue # so that we can try to find one that supports BSD flags
4450 ;;
4451 esac
4452 ;;
4453 esac
4454 fi
4455 done
4456 IFS=$lt_save_ifs
4457 done
4458 : ${lt_cv_path_NM=no}
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4462 $as_echo "$lt_cv_path_NM" >&6; }
4463 if test no != "$lt_cv_path_NM"; then
4464 NM=$lt_cv_path_NM
4465 else
4466 # Didn't find any BSD compatible name lister, look for dumpbin.
4467 if test -n "$DUMPBIN"; then :
4468 # Let the user override the test.
4469 else
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in dumpbin "link -dump"
4472 do
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if ${ac_cv_prog_DUMPBIN+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$DUMPBIN"; then
4481 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 DUMPBIN=$ac_cv_prog_DUMPBIN
4501 if test -n "$DUMPBIN"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4503 $as_echo "$DUMPBIN" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510 test -n "$DUMPBIN" && break
4511 done
4512 fi
4513 if test -z "$DUMPBIN"; then
4514 ac_ct_DUMPBIN=$DUMPBIN
4515 for ac_prog in dumpbin "link -dump"
4516 do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$ac_ct_DUMPBIN"; then
4525 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4545 if test -n "$ac_ct_DUMPBIN"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4547 $as_echo "$ac_ct_DUMPBIN" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554 test -n "$ac_ct_DUMPBIN" && break
4555 done
4556
4557 if test "x$ac_ct_DUMPBIN" = x; then
4558 DUMPBIN=":"
4559 else
4560 case $cross_compiling:$ac_tool_warned in
4561 yes:)
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4565 esac
4566 DUMPBIN=$ac_ct_DUMPBIN
4567 fi
4568 fi
4569
4570 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4571 *COFF*)
4572 DUMPBIN="$DUMPBIN -symbols -headers"
4573 ;;
4574 *)
4575 DUMPBIN=:
4576 ;;
4577 esac
4578 fi
4579
4580 if test : != "$DUMPBIN"; then
4581 NM=$DUMPBIN
4582 fi
4583 fi
4584 test -z "$NM" && NM=nm
4585
4586
4587
4588
4589
4590
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4592 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4593 if ${lt_cv_nm_interface+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 lt_cv_nm_interface="BSD nm"
4597 echo "int some_variable = 0;" > conftest.$ac_ext
4598 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4599 (eval "$ac_compile" 2>conftest.err)
4600 cat conftest.err >&5
4601 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4602 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4603 cat conftest.err >&5
4604 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4605 cat conftest.out >&5
4606 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4607 lt_cv_nm_interface="MS dumpbin"
4608 fi
4609 rm -f conftest*
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4612 $as_echo "$lt_cv_nm_interface" >&6; }
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4615 $as_echo_n "checking whether ln -s works... " >&6; }
4616 LN_S=$as_ln_s
4617 if test "$LN_S" = "ln -s"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4619 $as_echo "yes" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4622 $as_echo "no, using $LN_S" >&6; }
4623 fi
4624
4625 # find the maximum length of command line arguments
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4627 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4628 if ${lt_cv_sys_max_cmd_len+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 i=0
4632 teststring=ABCD
4633
4634 case $build_os in
4635 msdosdjgpp*)
4636 # On DJGPP, this test can blow up pretty badly due to problems in libc
4637 # (any single argument exceeding 2000 bytes causes a buffer overrun
4638 # during glob expansion). Even if it were fixed, the result of this
4639 # check would be larger than it should be.
4640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4641 ;;
4642
4643 gnu*)
4644 # Under GNU Hurd, this test is not required because there is
4645 # no limit to the length of command line arguments.
4646 # Libtool will interpret -1 as no limit whatsoever
4647 lt_cv_sys_max_cmd_len=-1;
4648 ;;
4649
4650 cygwin* | mingw* | cegcc*)
4651 # On Win9x/ME, this test blows up -- it succeeds, but takes
4652 # about 5 minutes as the teststring grows exponentially.
4653 # Worse, since 9x/ME are not pre-emptively multitasking,
4654 # you end up with a "frozen" computer, even though with patience
4655 # the test eventually succeeds (with a max line length of 256k).
4656 # Instead, let's just punt: use the minimum linelength reported by
4657 # all of the supported platforms: 8192 (on NT/2K/XP).
4658 lt_cv_sys_max_cmd_len=8192;
4659 ;;
4660
4661 mint*)
4662 # On MiNT this can take a long time and run out of memory.
4663 lt_cv_sys_max_cmd_len=8192;
4664 ;;
4665
4666 amigaos*)
4667 # On AmigaOS with pdksh, this test takes hours, literally.
4668 # So we just punt and use a minimum line length of 8192.
4669 lt_cv_sys_max_cmd_len=8192;
4670 ;;
4671
4672 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4673 # This has been around since 386BSD, at least. Likely further.
4674 if test -x /sbin/sysctl; then
4675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4676 elif test -x /usr/sbin/sysctl; then
4677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4678 else
4679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4680 fi
4681 # And add a safety zone
4682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4684 ;;
4685
4686 interix*)
4687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4688 lt_cv_sys_max_cmd_len=196608
4689 ;;
4690
4691 os2*)
4692 # The test takes a long time on OS/2.
4693 lt_cv_sys_max_cmd_len=8192
4694 ;;
4695
4696 osf*)
4697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4699 # nice to cause kernel panics so lets avoid the loop below.
4700 # First set a reasonable default.
4701 lt_cv_sys_max_cmd_len=16384
4702 #
4703 if test -x /sbin/sysconfig; then
4704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4706 esac
4707 fi
4708 ;;
4709 sco3.2v5*)
4710 lt_cv_sys_max_cmd_len=102400
4711 ;;
4712 sysv5* | sco5v6* | sysv4.2uw2*)
4713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4714 if test -n "$kargmax"; then
4715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4716 else
4717 lt_cv_sys_max_cmd_len=32768
4718 fi
4719 ;;
4720 *)
4721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4722 if test -n "$lt_cv_sys_max_cmd_len" && \
4723 test undefined != "$lt_cv_sys_max_cmd_len"; then
4724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4726 else
4727 # Make teststring a little bigger before we do anything with it.
4728 # a 1K string should be a reasonable start.
4729 for i in 1 2 3 4 5 6 7 8; do
4730 teststring=$teststring$teststring
4731 done
4732 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4733 # If test is not a shell built-in, we'll probably end up computing a
4734 # maximum length that is only half of the actual maximum length, but
4735 # we can't tell.
4736 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4737 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4738 test 17 != "$i" # 1/2 MB should be enough
4739 do
4740 i=`expr $i + 1`
4741 teststring=$teststring$teststring
4742 done
4743 # Only check the string length outside the loop.
4744 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4745 teststring=
4746 # Add a significant safety factor because C++ compilers can tack on
4747 # massive amounts of additional arguments before passing them to the
4748 # linker. It appears as though 1/2 is a usable value.
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4750 fi
4751 ;;
4752 esac
4753
4754 fi
4755
4756 if test -n "$lt_cv_sys_max_cmd_len"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4758 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4759 else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4761 $as_echo "none" >&6; }
4762 fi
4763 max_cmd_len=$lt_cv_sys_max_cmd_len
4764
4765
4766
4767
4768
4769
4770 : ${CP="cp -f"}
4771 : ${MV="mv -f"}
4772 : ${RM="rm -f"}
4773
4774 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4775 lt_unset=unset
4776 else
4777 lt_unset=false
4778 fi
4779
4780
4781
4782
4783
4784 # test EBCDIC or ASCII
4785 case `echo X|tr X '\101'` in
4786 A) # ASCII based system
4787 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4788 lt_SP2NL='tr \040 \012'
4789 lt_NL2SP='tr \015\012 \040\040'
4790 ;;
4791 *) # EBCDIC based system
4792 lt_SP2NL='tr \100 \n'
4793 lt_NL2SP='tr \r\n \100\100'
4794 ;;
4795 esac
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4806 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4807 if ${lt_cv_to_host_file_cmd+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 case $host in
4811 *-*-mingw* )
4812 case $build in
4813 *-*-mingw* ) # actually msys
4814 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4815 ;;
4816 *-*-cygwin* )
4817 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4818 ;;
4819 * ) # otherwise, assume *nix
4820 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4821 ;;
4822 esac
4823 ;;
4824 *-*-cygwin* )
4825 case $build in
4826 *-*-mingw* ) # actually msys
4827 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4828 ;;
4829 *-*-cygwin* )
4830 lt_cv_to_host_file_cmd=func_convert_file_noop
4831 ;;
4832 * ) # otherwise, assume *nix
4833 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4834 ;;
4835 esac
4836 ;;
4837 * ) # unhandled hosts (and "normal" native builds)
4838 lt_cv_to_host_file_cmd=func_convert_file_noop
4839 ;;
4840 esac
4841
4842 fi
4843
4844 to_host_file_cmd=$lt_cv_to_host_file_cmd
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4846 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4847
4848
4849
4850
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4853 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4854 if ${lt_cv_to_tool_file_cmd+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 #assume ordinary cross tools, or native build.
4858 lt_cv_to_tool_file_cmd=func_convert_file_noop
4859 case $host in
4860 *-*-mingw* )
4861 case $build in
4862 *-*-mingw* ) # actually msys
4863 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4864 ;;
4865 esac
4866 ;;
4867 esac
4868
4869 fi
4870
4871 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4873 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4874
4875
4876
4877
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4880 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4881 if ${lt_cv_ld_reload_flag+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 lt_cv_ld_reload_flag='-r'
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4887 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4888 reload_flag=$lt_cv_ld_reload_flag
4889 case $reload_flag in
4890 "" | " "*) ;;
4891 *) reload_flag=" $reload_flag" ;;
4892 esac
4893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4894 case $host_os in
4895 cygwin* | mingw* | pw32* | cegcc*)
4896 if test yes != "$GCC"; then
4897 reload_cmds=false
4898 fi
4899 ;;
4900 darwin*)
4901 if test yes = "$GCC"; then
4902 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4903 else
4904 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4905 fi
4906 ;;
4907 esac
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917 if test -n "$ac_tool_prefix"; then
4918 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4919 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_OBJDUMP+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$OBJDUMP"; then
4926 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 OBJDUMP=$ac_cv_prog_OBJDUMP
4946 if test -n "$OBJDUMP"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4948 $as_echo "$OBJDUMP" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955 fi
4956 if test -z "$ac_cv_prog_OBJDUMP"; then
4957 ac_ct_OBJDUMP=$OBJDUMP
4958 # Extract the first word of "objdump", so it can be a program name with args.
4959 set dummy objdump; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$ac_ct_OBJDUMP"; then
4966 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4975 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4978 fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982
4983 fi
4984 fi
4985 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4986 if test -n "$ac_ct_OBJDUMP"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4988 $as_echo "$ac_ct_OBJDUMP" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994 if test "x$ac_ct_OBJDUMP" = x; then
4995 OBJDUMP="false"
4996 else
4997 case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003 OBJDUMP=$ac_ct_OBJDUMP
5004 fi
5005 else
5006 OBJDUMP="$ac_cv_prog_OBJDUMP"
5007 fi
5008
5009 test -z "$OBJDUMP" && OBJDUMP=objdump
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5020 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5021 if ${lt_cv_deplibs_check_method+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 lt_cv_file_magic_cmd='$MAGIC_CMD'
5025 lt_cv_file_magic_test_file=
5026 lt_cv_deplibs_check_method='unknown'
5027 # Need to set the preceding variable on all platforms that support
5028 # interlibrary dependencies.
5029 # 'none' -- dependencies not supported.
5030 # 'unknown' -- same as none, but documents that we really don't know.
5031 # 'pass_all' -- all dependencies passed with no checks.
5032 # 'test_compile' -- check by making test program.
5033 # 'file_magic [[regex]]' -- check by looking for files in library path
5034 # that responds to the $file_magic_cmd with a given extended regex.
5035 # If you have 'file' or equivalent on your system and you're not sure
5036 # whether 'pass_all' will *always* work, you probably want this one.
5037
5038 case $host_os in
5039 aix[4-9]*)
5040 lt_cv_deplibs_check_method=pass_all
5041 ;;
5042
5043 beos*)
5044 lt_cv_deplibs_check_method=pass_all
5045 ;;
5046
5047 bsdi[45]*)
5048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5049 lt_cv_file_magic_cmd='/usr/bin/file -L'
5050 lt_cv_file_magic_test_file=/shlib/libc.so
5051 ;;
5052
5053 cygwin*)
5054 # func_win32_libid is a shell function defined in ltmain.sh
5055 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5056 lt_cv_file_magic_cmd='func_win32_libid'
5057 ;;
5058
5059 mingw* | pw32*)
5060 # Base MSYS/MinGW do not provide the 'file' command needed by
5061 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5062 # unless we find 'file', for example because we are cross-compiling.
5063 if ( file / ) >/dev/null 2>&1; then
5064 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5065 lt_cv_file_magic_cmd='func_win32_libid'
5066 else
5067 # Keep this pattern in sync with the one in func_win32_libid.
5068 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5069 lt_cv_file_magic_cmd='$OBJDUMP -f'
5070 fi
5071 ;;
5072
5073 cegcc*)
5074 # use the weaker test based on 'objdump'. See mingw*.
5075 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5076 lt_cv_file_magic_cmd='$OBJDUMP -f'
5077 ;;
5078
5079 darwin* | rhapsody*)
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082
5083 freebsd* | dragonfly*)
5084 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5085 case $host_cpu in
5086 i*86 )
5087 # Not sure whether the presence of OpenBSD here was a mistake.
5088 # Let's accept both of them until this is cleared up.
5089 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5090 lt_cv_file_magic_cmd=/usr/bin/file
5091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5092 ;;
5093 esac
5094 else
5095 lt_cv_deplibs_check_method=pass_all
5096 fi
5097 ;;
5098
5099 haiku*)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
5102
5103 hpux10.20* | hpux11*)
5104 lt_cv_file_magic_cmd=/usr/bin/file
5105 case $host_cpu in
5106 ia64*)
5107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5108 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5109 ;;
5110 hppa*64*)
5111 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]'
5112 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5113 ;;
5114 *)
5115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5116 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5117 ;;
5118 esac
5119 ;;
5120
5121 interix[3-9]*)
5122 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5124 ;;
5125
5126 irix5* | irix6* | nonstopux*)
5127 case $LD in
5128 *-32|*"-32 ") libmagic=32-bit;;
5129 *-n32|*"-n32 ") libmagic=N32;;
5130 *-64|*"-64 ") libmagic=64-bit;;
5131 *) libmagic=never-match;;
5132 esac
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135
5136 # This must be glibc/ELF.
5137 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140
5141 netbsd* | netbsdelf*-gnu)
5142 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5144 else
5145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5146 fi
5147 ;;
5148
5149 newos6*)
5150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5151 lt_cv_file_magic_cmd=/usr/bin/file
5152 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5153 ;;
5154
5155 *nto* | *qnx*)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
5158
5159 openbsd* | bitrig*)
5160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5162 else
5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5164 fi
5165 ;;
5166
5167 osf3* | osf4* | osf5*)
5168 lt_cv_deplibs_check_method=pass_all
5169 ;;
5170
5171 rdos*)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
5174
5175 solaris*)
5176 lt_cv_deplibs_check_method=pass_all
5177 ;;
5178
5179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5180 lt_cv_deplibs_check_method=pass_all
5181 ;;
5182
5183 sysv4 | sysv4.3*)
5184 case $host_vendor in
5185 motorola)
5186 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]'
5187 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5188 ;;
5189 ncr)
5190 lt_cv_deplibs_check_method=pass_all
5191 ;;
5192 sequent)
5193 lt_cv_file_magic_cmd='/bin/file'
5194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5195 ;;
5196 sni)
5197 lt_cv_file_magic_cmd='/bin/file'
5198 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5199 lt_cv_file_magic_test_file=/lib/libc.so
5200 ;;
5201 siemens)
5202 lt_cv_deplibs_check_method=pass_all
5203 ;;
5204 pc)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207 esac
5208 ;;
5209
5210 tpf*)
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213 os2*)
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
5216 esac
5217
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5220 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5221
5222 file_magic_glob=
5223 want_nocaseglob=no
5224 if test "$build" = "$host"; then
5225 case $host_os in
5226 mingw* | pw32*)
5227 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5228 want_nocaseglob=yes
5229 else
5230 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5231 fi
5232 ;;
5233 esac
5234 fi
5235
5236 file_magic_cmd=$lt_cv_file_magic_cmd
5237 deplibs_check_method=$lt_cv_deplibs_check_method
5238 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5263 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if ${ac_cv_prog_DLLTOOL+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -n "$DLLTOOL"; then
5270 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 fi
5288 fi
5289 DLLTOOL=$ac_cv_prog_DLLTOOL
5290 if test -n "$DLLTOOL"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5292 $as_echo "$DLLTOOL" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297
5298
5299 fi
5300 if test -z "$ac_cv_prog_DLLTOOL"; then
5301 ac_ct_DLLTOOL=$DLLTOOL
5302 # Extract the first word of "dlltool", so it can be a program name with args.
5303 set dummy dlltool; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if test -n "$ac_ct_DLLTOOL"; then
5310 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323 done
5324 done
5325 IFS=$as_save_IFS
5326
5327 fi
5328 fi
5329 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5330 if test -n "$ac_ct_DLLTOOL"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5332 $as_echo "$ac_ct_DLLTOOL" >&6; }
5333 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337
5338 if test "x$ac_ct_DLLTOOL" = x; then
5339 DLLTOOL="false"
5340 else
5341 case $cross_compiling:$ac_tool_warned in
5342 yes:)
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5345 ac_tool_warned=yes ;;
5346 esac
5347 DLLTOOL=$ac_ct_DLLTOOL
5348 fi
5349 else
5350 DLLTOOL="$ac_cv_prog_DLLTOOL"
5351 fi
5352
5353 test -z "$DLLTOOL" && DLLTOOL=dlltool
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5365 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5366 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 lt_cv_sharedlib_from_linklib_cmd='unknown'
5370
5371 case $host_os in
5372 cygwin* | mingw* | pw32* | cegcc*)
5373 # two different shell functions defined in ltmain.sh;
5374 # decide which one to use based on capabilities of $DLLTOOL
5375 case `$DLLTOOL --help 2>&1` in
5376 *--identify-strict*)
5377 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5378 ;;
5379 *)
5380 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5381 ;;
5382 esac
5383 ;;
5384 *)
5385 # fallback: assume linklib IS sharedlib
5386 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5387 ;;
5388 esac
5389
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5392 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5393 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5394 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5395
5396
5397
5398
5399
5400
5401
5402
5403 if test -n "$ac_tool_prefix"; then
5404 for ac_prog in ar
5405 do
5406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_prog_AR+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$AR"; then
5414 ac_cv_prog_AR="$AR" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5426 fi
5427 done
5428 done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 AR=$ac_cv_prog_AR
5434 if test -n "$AR"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5436 $as_echo "$AR" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443 test -n "$AR" && break
5444 done
5445 fi
5446 if test -z "$AR"; then
5447 ac_ct_AR=$AR
5448 for ac_prog in ar
5449 do
5450 # Extract the first word of "$ac_prog", so it can be a program name with args.
5451 set dummy $ac_prog; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$ac_ct_AR"; then
5458 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_ac_ct_AR="$ac_prog"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5478 if test -n "$ac_ct_AR"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5480 $as_echo "$ac_ct_AR" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 test -n "$ac_ct_AR" && break
5488 done
5489
5490 if test "x$ac_ct_AR" = x; then
5491 AR="false"
5492 else
5493 case $cross_compiling:$ac_tool_warned in
5494 yes:)
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5497 ac_tool_warned=yes ;;
5498 esac
5499 AR=$ac_ct_AR
5500 fi
5501 fi
5502
5503 : ${AR=ar}
5504 : ${AR_FLAGS=cr}
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5517 $as_echo_n "checking for archiver @FILE support... " >&6; }
5518 if ${lt_cv_ar_at_file+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 lt_cv_ar_at_file=no
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524
5525 int
5526 main ()
5527 {
5528
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534 echo conftest.$ac_objext > conftest.lst
5535 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5537 (eval $lt_ar_try) 2>&5
5538 ac_status=$?
5539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5540 test $ac_status = 0; }
5541 if test 0 -eq "$ac_status"; then
5542 # Ensure the archiver fails upon bogus file names.
5543 rm -f conftest.$ac_objext libconftest.a
5544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5545 (eval $lt_ar_try) 2>&5
5546 ac_status=$?
5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5548 test $ac_status = 0; }
5549 if test 0 -ne "$ac_status"; then
5550 lt_cv_ar_at_file=@
5551 fi
5552 fi
5553 rm -f conftest.* libconftest.a
5554
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5560 $as_echo "$lt_cv_ar_at_file" >&6; }
5561
5562 if test no = "$lt_cv_ar_at_file"; then
5563 archiver_list_spec=
5564 else
5565 archiver_list_spec=$lt_cv_ar_at_file
5566 fi
5567
5568
5569
5570
5571
5572
5573
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}strip; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_STRIP+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$STRIP"; then
5583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 STRIP=$ac_cv_prog_STRIP
5603 if test -n "$STRIP"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5605 $as_echo "$STRIP" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612 fi
5613 if test -z "$ac_cv_prog_STRIP"; then
5614 ac_ct_STRIP=$STRIP
5615 # Extract the first word of "strip", so it can be a program name with args.
5616 set dummy strip; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$ac_ct_STRIP"; then
5623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_ac_ct_STRIP="strip"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5643 if test -n "$ac_ct_STRIP"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5645 $as_echo "$ac_ct_STRIP" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651 if test "x$ac_ct_STRIP" = x; then
5652 STRIP=":"
5653 else
5654 case $cross_compiling:$ac_tool_warned in
5655 yes:)
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5659 esac
5660 STRIP=$ac_ct_STRIP
5661 fi
5662 else
5663 STRIP="$ac_cv_prog_STRIP"
5664 fi
5665
5666 test -z "$STRIP" && STRIP=:
5667
5668
5669
5670
5671
5672
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_RANLIB+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$RANLIB"; then
5682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 RANLIB=$ac_cv_prog_RANLIB
5702 if test -n "$RANLIB"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5704 $as_echo "$RANLIB" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 fi
5712 if test -z "$ac_cv_prog_RANLIB"; then
5713 ac_ct_RANLIB=$RANLIB
5714 # Extract the first word of "ranlib", so it can be a program name with args.
5715 set dummy ranlib; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 if test -n "$ac_ct_RANLIB"; then
5722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ac_ct_RANLIB="ranlib"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735 done
5736 done
5737 IFS=$as_save_IFS
5738
5739 fi
5740 fi
5741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5742 if test -n "$ac_ct_RANLIB"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5744 $as_echo "$ac_ct_RANLIB" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750 if test "x$ac_ct_RANLIB" = x; then
5751 RANLIB=":"
5752 else
5753 case $cross_compiling:$ac_tool_warned in
5754 yes:)
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned=yes ;;
5758 esac
5759 RANLIB=$ac_ct_RANLIB
5760 fi
5761 else
5762 RANLIB="$ac_cv_prog_RANLIB"
5763 fi
5764
5765 test -z "$RANLIB" && RANLIB=:
5766
5767
5768
5769
5770
5771
5772 # Determine commands to create old-style static archives.
5773 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5774 old_postinstall_cmds='chmod 644 $oldlib'
5775 old_postuninstall_cmds=
5776
5777 if test -n "$RANLIB"; then
5778 case $host_os in
5779 bitrig* | openbsd*)
5780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5781 ;;
5782 *)
5783 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5784 ;;
5785 esac
5786 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5787 fi
5788
5789 case $host_os in
5790 darwin*)
5791 lock_old_archive_extraction=yes ;;
5792 *)
5793 lock_old_archive_extraction=no ;;
5794 esac
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834 # If no C compiler was specified, use CC.
5835 LTCC=${LTCC-"$CC"}
5836
5837 # If no C compiler flags were specified, use CFLAGS.
5838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5839
5840 # Allow CC to be a program name with arguments.
5841 compiler=$CC
5842
5843
5844 # Check for command to grab the raw symbol name followed by C symbol from nm.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5846 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5847 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850
5851 # These are sane defaults that work on at least a few old systems.
5852 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5853
5854 # Character class describing NM global symbol codes.
5855 symcode='[BCDEGRST]'
5856
5857 # Regexp to match symbols that can be accessed directly from C.
5858 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5859
5860 # Define system-specific variables.
5861 case $host_os in
5862 aix*)
5863 symcode='[BCDT]'
5864 ;;
5865 cygwin* | mingw* | pw32* | cegcc*)
5866 symcode='[ABCDGISTW]'
5867 ;;
5868 hpux*)
5869 if test ia64 = "$host_cpu"; then
5870 symcode='[ABCDEGRST]'
5871 fi
5872 ;;
5873 irix* | nonstopux*)
5874 symcode='[BCDEGRST]'
5875 ;;
5876 osf*)
5877 symcode='[BCDEGQRST]'
5878 ;;
5879 solaris*)
5880 symcode='[BDRT]'
5881 ;;
5882 sco3.2v5*)
5883 symcode='[DT]'
5884 ;;
5885 sysv4.2uw2*)
5886 symcode='[DT]'
5887 ;;
5888 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5889 symcode='[ABDT]'
5890 ;;
5891 sysv4)
5892 symcode='[DFNSTU]'
5893 ;;
5894 esac
5895
5896 # If we're using GNU nm, then use its standard symbol codes.
5897 case `$NM -V 2>&1` in
5898 *GNU* | *'with BFD'*)
5899 symcode='[ABCDGIRSTW]' ;;
5900 esac
5901
5902 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5903 # Gets list of data symbols to import.
5904 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5905 # Adjust the below global symbol transforms to fixup imported variables.
5906 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5907 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5908 lt_c_name_lib_hook="\
5909 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5910 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5911 else
5912 # Disable hooks by default.
5913 lt_cv_sys_global_symbol_to_import=
5914 lt_cdecl_hook=
5915 lt_c_name_hook=
5916 lt_c_name_lib_hook=
5917 fi
5918
5919 # Transform an extracted symbol line into a proper C declaration.
5920 # Some systems (esp. on ia64) link data and code symbols differently,
5921 # so use this general approach.
5922 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5923 $lt_cdecl_hook\
5924 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5925 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5926
5927 # Transform an extracted symbol line into symbol name and symbol address
5928 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5929 $lt_c_name_hook\
5930 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5931 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5932
5933 # Transform an extracted symbol line into symbol name with lib prefix and
5934 # symbol address.
5935 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5936 $lt_c_name_lib_hook\
5937 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5938 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5939 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5940
5941 # Handle CRLF in mingw tool chain
5942 opt_cr=
5943 case $build_os in
5944 mingw*)
5945 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5946 ;;
5947 esac
5948
5949 # Try without a prefix underscore, then with it.
5950 for ac_symprfx in "" "_"; do
5951
5952 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5953 symxfrm="\\1 $ac_symprfx\\2 \\2"
5954
5955 # Write the raw and C identifiers.
5956 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5957 # Fake it for dumpbin and say T for any non-static function,
5958 # D for any global variable and I for any imported variable.
5959 # Also find C++ and __fastcall symbols from MSVC++,
5960 # which start with @ or ?.
5961 lt_cv_sys_global_symbol_pipe="$AWK '"\
5962 " {last_section=section; section=\$ 3};"\
5963 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5964 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5965 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5966 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5967 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5968 " \$ 0!~/External *\|/{next};"\
5969 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5970 " {if(hide[section]) next};"\
5971 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5972 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5973 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5974 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5975 " ' prfx=^$ac_symprfx"
5976 else
5977 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5978 fi
5979 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5980
5981 # Check to see that the pipe works correctly.
5982 pipe_works=no
5983
5984 rm -f conftest*
5985 cat > conftest.$ac_ext <<_LT_EOF
5986 #ifdef __cplusplus
5987 extern "C" {
5988 #endif
5989 char nm_test_var;
5990 void nm_test_func(void);
5991 void nm_test_func(void){}
5992 #ifdef __cplusplus
5993 }
5994 #endif
5995 int main(){nm_test_var='a';nm_test_func();return(0);}
5996 _LT_EOF
5997
5998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5999 (eval $ac_compile) 2>&5
6000 ac_status=$?
6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002 test $ac_status = 0; }; then
6003 # Now try to grab the symbols.
6004 nlist=conftest.nm
6005 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6006 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6007 # Try sorting and uniquifying the output.
6008 if sort "$nlist" | uniq > "$nlist"T; then
6009 mv -f "$nlist"T "$nlist"
6010 else
6011 rm -f "$nlist"T
6012 fi
6013
6014 # Make sure that we snagged all the symbols we need.
6015 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6016 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6017 cat <<_LT_EOF > conftest.$ac_ext
6018 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6019 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6020 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6021 relocations are performed -- see ld's documentation on pseudo-relocs. */
6022 # define LT_DLSYM_CONST
6023 #elif defined __osf__
6024 /* This system does not cope well with relocations in const data. */
6025 # define LT_DLSYM_CONST
6026 #else
6027 # define LT_DLSYM_CONST const
6028 #endif
6029
6030 #ifdef __cplusplus
6031 extern "C" {
6032 #endif
6033
6034 _LT_EOF
6035 # Now generate the symbol file.
6036 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6037
6038 cat <<_LT_EOF >> conftest.$ac_ext
6039
6040 /* The mapping between symbol names and symbols. */
6041 LT_DLSYM_CONST struct {
6042 const char *name;
6043 void *address;
6044 }
6045 lt__PROGRAM__LTX_preloaded_symbols[] =
6046 {
6047 { "@PROGRAM@", (void *) 0 },
6048 _LT_EOF
6049 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6050 cat <<\_LT_EOF >> conftest.$ac_ext
6051 {0, (void *) 0}
6052 };
6053
6054 /* This works around a problem in FreeBSD linker */
6055 #ifdef FREEBSD_WORKAROUND
6056 static const void *lt_preloaded_setup() {
6057 return lt__PROGRAM__LTX_preloaded_symbols;
6058 }
6059 #endif
6060
6061 #ifdef __cplusplus
6062 }
6063 #endif
6064 _LT_EOF
6065 # Now try linking the two files.
6066 mv conftest.$ac_objext conftstm.$ac_objext
6067 lt_globsym_save_LIBS=$LIBS
6068 lt_globsym_save_CFLAGS=$CFLAGS
6069 LIBS=conftstm.$ac_objext
6070 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6072 (eval $ac_link) 2>&5
6073 ac_status=$?
6074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6075 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6076 pipe_works=yes
6077 fi
6078 LIBS=$lt_globsym_save_LIBS
6079 CFLAGS=$lt_globsym_save_CFLAGS
6080 else
6081 echo "cannot find nm_test_func in $nlist" >&5
6082 fi
6083 else
6084 echo "cannot find nm_test_var in $nlist" >&5
6085 fi
6086 else
6087 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6088 fi
6089 else
6090 echo "$progname: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 fi
6093 rm -rf conftest* conftst*
6094
6095 # Do not use the global_symbol_pipe unless it works.
6096 if test yes = "$pipe_works"; then
6097 break
6098 else
6099 lt_cv_sys_global_symbol_pipe=
6100 fi
6101 done
6102
6103 fi
6104
6105 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6106 lt_cv_sys_global_symbol_to_cdecl=
6107 fi
6108 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6110 $as_echo "failed" >&6; }
6111 else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6113 $as_echo "ok" >&6; }
6114 fi
6115
6116 # Response file support.
6117 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6118 nm_file_list_spec='@'
6119 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6120 nm_file_list_spec='@'
6121 fi
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6160 $as_echo_n "checking for sysroot... " >&6; }
6161
6162 # Check whether --with-sysroot was given.
6163 if test "${with_sysroot+set}" = set; then :
6164 withval=$with_sysroot;
6165 else
6166 with_sysroot=no
6167 fi
6168
6169
6170 lt_sysroot=
6171 case $with_sysroot in #(
6172 yes)
6173 if test yes = "$GCC"; then
6174 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6175 fi
6176 ;; #(
6177 /*)
6178 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6179 ;; #(
6180 no|'')
6181 ;; #(
6182 *)
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6184 $as_echo "$with_sysroot" >&6; }
6185 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6186 ;;
6187 esac
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6190 $as_echo "${lt_sysroot:-no}" >&6; }
6191
6192
6193
6194
6195
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6197 $as_echo_n "checking for a working dd... " >&6; }
6198 if ${ac_cv_path_lt_DD+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 printf 0123456789abcdef0123456789abcdef >conftest.i
6202 cat conftest.i conftest.i >conftest2.i
6203 : ${lt_DD:=$DD}
6204 if test -z "$lt_DD"; then
6205 ac_path_lt_DD_found=false
6206 # Loop through the user's path and test for each of PROGNAME-LIST
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_prog in dd; do
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6215 as_fn_executable_p "$ac_path_lt_DD" || continue
6216 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6217 cmp -s conftest.i conftest.out \
6218 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6219 fi
6220 $ac_path_lt_DD_found && break 3
6221 done
6222 done
6223 done
6224 IFS=$as_save_IFS
6225 if test -z "$ac_cv_path_lt_DD"; then
6226 :
6227 fi
6228 else
6229 ac_cv_path_lt_DD=$lt_DD
6230 fi
6231
6232 rm -f conftest.i conftest2.i conftest.out
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6235 $as_echo "$ac_cv_path_lt_DD" >&6; }
6236
6237
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6239 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6240 if ${lt_cv_truncate_bin+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 printf 0123456789abcdef0123456789abcdef >conftest.i
6244 cat conftest.i conftest.i >conftest2.i
6245 lt_cv_truncate_bin=
6246 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6247 cmp -s conftest.i conftest.out \
6248 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6249 fi
6250 rm -f conftest.i conftest2.i conftest.out
6251 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6254 $as_echo "$lt_cv_truncate_bin" >&6; }
6255
6256
6257
6258
6259
6260
6261
6262 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6263 func_cc_basename ()
6264 {
6265 for cc_temp in $*""; do
6266 case $cc_temp in
6267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6269 \-*) ;;
6270 *) break;;
6271 esac
6272 done
6273 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6274 }
6275
6276 # Check whether --enable-libtool-lock was given.
6277 if test "${enable_libtool_lock+set}" = set; then :
6278 enableval=$enable_libtool_lock;
6279 fi
6280
6281 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6282
6283 # Some flags need to be propagated to the compiler or linker for good
6284 # libtool support.
6285 case $host in
6286 ia64-*-hpux*)
6287 # Find out what ABI is being produced by ac_compile, and set mode
6288 # options accordingly.
6289 echo 'int i;' > conftest.$ac_ext
6290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6291 (eval $ac_compile) 2>&5
6292 ac_status=$?
6293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6294 test $ac_status = 0; }; then
6295 case `/usr/bin/file conftest.$ac_objext` in
6296 *ELF-32*)
6297 HPUX_IA64_MODE=32
6298 ;;
6299 *ELF-64*)
6300 HPUX_IA64_MODE=64
6301 ;;
6302 esac
6303 fi
6304 rm -rf conftest*
6305 ;;
6306 *-*-irix6*)
6307 # Find out what ABI is being produced by ac_compile, and set linker
6308 # options accordingly.
6309 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6311 (eval $ac_compile) 2>&5
6312 ac_status=$?
6313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6314 test $ac_status = 0; }; then
6315 if test yes = "$lt_cv_prog_gnu_ld"; then
6316 case `/usr/bin/file conftest.$ac_objext` in
6317 *32-bit*)
6318 LD="${LD-ld} -melf32bsmip"
6319 ;;
6320 *N32*)
6321 LD="${LD-ld} -melf32bmipn32"
6322 ;;
6323 *64-bit*)
6324 LD="${LD-ld} -melf64bmip"
6325 ;;
6326 esac
6327 else
6328 case `/usr/bin/file conftest.$ac_objext` in
6329 *32-bit*)
6330 LD="${LD-ld} -32"
6331 ;;
6332 *N32*)
6333 LD="${LD-ld} -n32"
6334 ;;
6335 *64-bit*)
6336 LD="${LD-ld} -64"
6337 ;;
6338 esac
6339 fi
6340 fi
6341 rm -rf conftest*
6342 ;;
6343
6344 mips64*-*linux*)
6345 # Find out what ABI is being produced by ac_compile, and set linker
6346 # options accordingly.
6347 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6349 (eval $ac_compile) 2>&5
6350 ac_status=$?
6351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6352 test $ac_status = 0; }; then
6353 emul=elf
6354 case `/usr/bin/file conftest.$ac_objext` in
6355 *32-bit*)
6356 emul="${emul}32"
6357 ;;
6358 *64-bit*)
6359 emul="${emul}64"
6360 ;;
6361 esac
6362 case `/usr/bin/file conftest.$ac_objext` in
6363 *MSB*)
6364 emul="${emul}btsmip"
6365 ;;
6366 *LSB*)
6367 emul="${emul}ltsmip"
6368 ;;
6369 esac
6370 case `/usr/bin/file conftest.$ac_objext` in
6371 *N32*)
6372 emul="${emul}n32"
6373 ;;
6374 esac
6375 LD="${LD-ld} -m $emul"
6376 fi
6377 rm -rf conftest*
6378 ;;
6379
6380 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6381 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6382 # Find out what ABI is being produced by ac_compile, and set linker
6383 # options accordingly. Note that the listed cases only cover the
6384 # situations where additional linker options are needed (such as when
6385 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6386 # vice versa); the common cases where no linker options are needed do
6387 # not appear in the list.
6388 echo 'int i;' > conftest.$ac_ext
6389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390 (eval $ac_compile) 2>&5
6391 ac_status=$?
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; }; then
6394 case `/usr/bin/file conftest.o` in
6395 *32-bit*)
6396 case $host in
6397 x86_64-*kfreebsd*-gnu)
6398 LD="${LD-ld} -m elf_i386_fbsd"
6399 ;;
6400 x86_64-*linux*)
6401 case `/usr/bin/file conftest.o` in
6402 *x86-64*)
6403 LD="${LD-ld} -m elf32_x86_64"
6404 ;;
6405 *)
6406 LD="${LD-ld} -m elf_i386"
6407 ;;
6408 esac
6409 ;;
6410 powerpc64le-*linux*)
6411 LD="${LD-ld} -m elf32lppclinux"
6412 ;;
6413 powerpc64-*linux*)
6414 LD="${LD-ld} -m elf32ppclinux"
6415 ;;
6416 s390x-*linux*)
6417 LD="${LD-ld} -m elf_s390"
6418 ;;
6419 sparc64-*linux*)
6420 LD="${LD-ld} -m elf32_sparc"
6421 ;;
6422 esac
6423 ;;
6424 *64-bit*)
6425 case $host in
6426 x86_64-*kfreebsd*-gnu)
6427 LD="${LD-ld} -m elf_x86_64_fbsd"
6428 ;;
6429 x86_64-*linux*)
6430 LD="${LD-ld} -m elf_x86_64"
6431 ;;
6432 powerpcle-*linux*)
6433 LD="${LD-ld} -m elf64lppc"
6434 ;;
6435 powerpc-*linux*)
6436 LD="${LD-ld} -m elf64ppc"
6437 ;;
6438 s390*-*linux*|s390*-*tpf*)
6439 LD="${LD-ld} -m elf64_s390"
6440 ;;
6441 sparc*-*linux*)
6442 LD="${LD-ld} -m elf64_sparc"
6443 ;;
6444 esac
6445 ;;
6446 esac
6447 fi
6448 rm -rf conftest*
6449 ;;
6450
6451 *-*-sco3.2v5*)
6452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6453 SAVE_CFLAGS=$CFLAGS
6454 CFLAGS="$CFLAGS -belf"
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6456 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6457 if ${lt_cv_cc_needs_belf+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 ac_ext=c
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468
6469 int
6470 main ()
6471 {
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_link "$LINENO"; then :
6478 lt_cv_cc_needs_belf=yes
6479 else
6480 lt_cv_cc_needs_belf=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6484 ac_ext=c
6485 ac_cpp='$CPP $CPPFLAGS'
6486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6489
6490 fi
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6492 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6493 if test yes != "$lt_cv_cc_needs_belf"; then
6494 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6495 CFLAGS=$SAVE_CFLAGS
6496 fi
6497 ;;
6498 *-*solaris*)
6499 # Find out what ABI is being produced by ac_compile, and set linker
6500 # options accordingly.
6501 echo 'int i;' > conftest.$ac_ext
6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503 (eval $ac_compile) 2>&5
6504 ac_status=$?
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
6507 case `/usr/bin/file conftest.o` in
6508 *64-bit*)
6509 case $lt_cv_prog_gnu_ld in
6510 yes*)
6511 case $host in
6512 i?86-*-solaris*|x86_64-*-solaris*)
6513 LD="${LD-ld} -m elf_x86_64"
6514 ;;
6515 sparc*-*-solaris*)
6516 LD="${LD-ld} -m elf64_sparc"
6517 ;;
6518 esac
6519 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6520 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6521 LD=${LD-ld}_sol2
6522 fi
6523 ;;
6524 *)
6525 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6526 LD="${LD-ld} -64"
6527 fi
6528 ;;
6529 esac
6530 ;;
6531 esac
6532 fi
6533 rm -rf conftest*
6534 ;;
6535 esac
6536
6537 need_locks=$enable_libtool_lock
6538
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}mt; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 if test -n "$MANIFEST_TOOL"; then
6548 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6568 if test -n "$MANIFEST_TOOL"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6570 $as_echo "$MANIFEST_TOOL" >&6; }
6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6579 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6580 # Extract the first word of "mt", so it can be a program name with args.
6581 set dummy mt; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -n "$ac_ct_MANIFEST_TOOL"; then
6588 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6608 if test -n "$ac_ct_MANIFEST_TOOL"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6610 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615
6616 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6617 MANIFEST_TOOL=":"
6618 else
6619 case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6626 fi
6627 else
6628 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6629 fi
6630
6631 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6633 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6634 if ${lt_cv_path_mainfest_tool+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 lt_cv_path_mainfest_tool=no
6638 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6639 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6640 cat conftest.err >&5
6641 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6642 lt_cv_path_mainfest_tool=yes
6643 fi
6644 rm -f conftest*
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6647 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6648 if test yes != "$lt_cv_path_mainfest_tool"; then
6649 MANIFEST_TOOL=:
6650 fi
6651
6652
6653
6654
6655
6656
6657 case $host_os in
6658 rhapsody* | darwin*)
6659 if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6661 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$DSYMUTIL"; then
6668 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6688 if test -n "$DSYMUTIL"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6690 $as_echo "$DSYMUTIL" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6694 fi
6695
6696
6697 fi
6698 if test -z "$ac_cv_prog_DSYMUTIL"; then
6699 ac_ct_DSYMUTIL=$DSYMUTIL
6700 # Extract the first word of "dsymutil", so it can be a program name with args.
6701 set dummy dsymutil; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$ac_ct_DSYMUTIL"; then
6708 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6728 if test -n "$ac_ct_DSYMUTIL"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6730 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736 if test "x$ac_ct_DSYMUTIL" = x; then
6737 DSYMUTIL=":"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740 yes:)
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745 DSYMUTIL=$ac_ct_DSYMUTIL
6746 fi
6747 else
6748 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6749 fi
6750
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_NMEDIT+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$NMEDIT"; then
6760 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 NMEDIT=$ac_cv_prog_NMEDIT
6780 if test -n "$NMEDIT"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6782 $as_echo "$NMEDIT" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788
6789 fi
6790 if test -z "$ac_cv_prog_NMEDIT"; then
6791 ac_ct_NMEDIT=$NMEDIT
6792 # Extract the first word of "nmedit", so it can be a program name with args.
6793 set dummy nmedit; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$ac_ct_NMEDIT"; then
6800 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6820 if test -n "$ac_ct_NMEDIT"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6822 $as_echo "$ac_ct_NMEDIT" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828 if test "x$ac_ct_NMEDIT" = x; then
6829 NMEDIT=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832 yes:)
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835 ac_tool_warned=yes ;;
6836 esac
6837 NMEDIT=$ac_ct_NMEDIT
6838 fi
6839 else
6840 NMEDIT="$ac_cv_prog_NMEDIT"
6841 fi
6842
6843 if test -n "$ac_tool_prefix"; then
6844 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_prog_LIPO+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test -n "$LIPO"; then
6852 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 LIPO=$ac_cv_prog_LIPO
6872 if test -n "$LIPO"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6874 $as_echo "$LIPO" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880
6881 fi
6882 if test -z "$ac_cv_prog_LIPO"; then
6883 ac_ct_LIPO=$LIPO
6884 # Extract the first word of "lipo", so it can be a program name with args.
6885 set dummy lipo; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$ac_ct_LIPO"; then
6892 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_ac_ct_LIPO="lipo"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6912 if test -n "$ac_ct_LIPO"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6914 $as_echo "$ac_ct_LIPO" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920 if test "x$ac_ct_LIPO" = x; then
6921 LIPO=":"
6922 else
6923 case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929 LIPO=$ac_ct_LIPO
6930 fi
6931 else
6932 LIPO="$ac_cv_prog_LIPO"
6933 fi
6934
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}otool; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_OTOOL+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$OTOOL"; then
6944 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 OTOOL=$ac_cv_prog_OTOOL
6964 if test -n "$OTOOL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6966 $as_echo "$OTOOL" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972
6973 fi
6974 if test -z "$ac_cv_prog_OTOOL"; then
6975 ac_ct_OTOOL=$OTOOL
6976 # Extract the first word of "otool", so it can be a program name with args.
6977 set dummy otool; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_OTOOL"; then
6984 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_ac_ct_OTOOL="otool"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7004 if test -n "$ac_ct_OTOOL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7006 $as_echo "$ac_ct_OTOOL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012 if test "x$ac_ct_OTOOL" = x; then
7013 OTOOL=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 OTOOL=$ac_ct_OTOOL
7022 fi
7023 else
7024 OTOOL="$ac_cv_prog_OTOOL"
7025 fi
7026
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_OTOOL64+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$OTOOL64"; then
7036 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 OTOOL64=$ac_cv_prog_OTOOL64
7056 if test -n "$OTOOL64"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7058 $as_echo "$OTOOL64" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_OTOOL64"; then
7067 ac_ct_OTOOL64=$OTOOL64
7068 # Extract the first word of "otool64", so it can be a program name with args.
7069 set dummy otool64; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_OTOOL64"; then
7076 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_OTOOL64="otool64"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7096 if test -n "$ac_ct_OTOOL64"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7098 $as_echo "$ac_ct_OTOOL64" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104 if test "x$ac_ct_OTOOL64" = x; then
7105 OTOOL64=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 OTOOL64=$ac_ct_OTOOL64
7114 fi
7115 else
7116 OTOOL64="$ac_cv_prog_OTOOL64"
7117 fi
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7146 $as_echo_n "checking for -single_module linker flag... " >&6; }
7147 if ${lt_cv_apple_cc_single_mod+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 lt_cv_apple_cc_single_mod=no
7151 if test -z "$LT_MULTI_MODULE"; then
7152 # By default we will add the -single_module flag. You can override
7153 # by either setting the environment variable LT_MULTI_MODULE
7154 # non-empty at configure time, or by adding -multi_module to the
7155 # link flags.
7156 rm -rf libconftest.dylib*
7157 echo "int foo(void){return 1;}" > conftest.c
7158 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7159 -dynamiclib -Wl,-single_module conftest.c" >&5
7160 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7161 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7162 _lt_result=$?
7163 # If there is a non-empty error log, and "single_module"
7164 # appears in it, assume the flag caused a linker warning
7165 if test -s conftest.err && $GREP single_module conftest.err; then
7166 cat conftest.err >&5
7167 # Otherwise, if the output was created with a 0 exit code from
7168 # the compiler, it worked.
7169 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7170 lt_cv_apple_cc_single_mod=yes
7171 else
7172 cat conftest.err >&5
7173 fi
7174 rm -rf libconftest.dylib*
7175 rm -f conftest.*
7176 fi
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7179 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7180
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7183 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 lt_cv_ld_exported_symbols_list=no
7187 save_LDFLAGS=$LDFLAGS
7188 echo "_main" > conftest.sym
7189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192
7193 int
7194 main ()
7195 {
7196
7197 ;
7198 return 0;
7199 }
7200 _ACEOF
7201 if ac_fn_c_try_link "$LINENO"; then :
7202 lt_cv_ld_exported_symbols_list=yes
7203 else
7204 lt_cv_ld_exported_symbols_list=no
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext \
7207 conftest$ac_exeext conftest.$ac_ext
7208 LDFLAGS=$save_LDFLAGS
7209
7210 fi
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7213
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7215 $as_echo_n "checking for -force_load linker flag... " >&6; }
7216 if ${lt_cv_ld_force_load+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 lt_cv_ld_force_load=no
7220 cat > conftest.c << _LT_EOF
7221 int forced_loaded() { return 2;}
7222 _LT_EOF
7223 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7224 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7225 echo "$AR cr libconftest.a conftest.o" >&5
7226 $AR cr libconftest.a conftest.o 2>&5
7227 echo "$RANLIB libconftest.a" >&5
7228 $RANLIB libconftest.a 2>&5
7229 cat > conftest.c << _LT_EOF
7230 int main() { return 0;}
7231 _LT_EOF
7232 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7233 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7234 _lt_result=$?
7235 if test -s conftest.err && $GREP force_load conftest.err; then
7236 cat conftest.err >&5
7237 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7238 lt_cv_ld_force_load=yes
7239 else
7240 cat conftest.err >&5
7241 fi
7242 rm -f conftest.err libconftest.a conftest conftest.c
7243 rm -rf conftest.dSYM
7244
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7247 $as_echo "$lt_cv_ld_force_load" >&6; }
7248 case $host_os in
7249 rhapsody* | darwin1.[012])
7250 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7251 darwin1.*)
7252 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7253 darwin*) # darwin 5.x on
7254 # if running on 10.5 or later, the deployment target defaults
7255 # to the OS version, if on x86, and 10.4, the deployment
7256 # target defaults to 10.4. Don't you love it?
7257 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7258 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7259 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7260 10.[012][,.]*)
7261 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7262 10.*)
7263 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7264 esac
7265 ;;
7266 esac
7267 if test yes = "$lt_cv_apple_cc_single_mod"; then
7268 _lt_dar_single_mod='$single_module'
7269 fi
7270 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7271 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7272 else
7273 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7274 fi
7275 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7276 _lt_dsymutil='~$DSYMUTIL $lib || :'
7277 else
7278 _lt_dsymutil=
7279 fi
7280 ;;
7281 esac
7282
7283 # func_munge_path_list VARIABLE PATH
7284 # -----------------------------------
7285 # VARIABLE is name of variable containing _space_ separated list of
7286 # directories to be munged by the contents of PATH, which is string
7287 # having a format:
7288 # "DIR[:DIR]:"
7289 # string "DIR[ DIR]" will be prepended to VARIABLE
7290 # ":DIR[:DIR]"
7291 # string "DIR[ DIR]" will be appended to VARIABLE
7292 # "DIRP[:DIRP]::[DIRA:]DIRA"
7293 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7294 # "DIRA[ DIRA]" will be appended to VARIABLE
7295 # "DIR[:DIR]"
7296 # VARIABLE will be replaced by "DIR[ DIR]"
7297 func_munge_path_list ()
7298 {
7299 case x$2 in
7300 x)
7301 ;;
7302 *:)
7303 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7304 ;;
7305 x:*)
7306 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7307 ;;
7308 *::*)
7309 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7310 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7311 ;;
7312 *)
7313 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7314 ;;
7315 esac
7316 }
7317
7318 ac_ext=c
7319 ac_cpp='$CPP $CPPFLAGS'
7320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7324 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7325 # On Suns, sometimes $CPP names a directory.
7326 if test -n "$CPP" && test -d "$CPP"; then
7327 CPP=
7328 fi
7329 if test -z "$CPP"; then
7330 if ${ac_cv_prog_CPP+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 # Double quotes because CPP needs to be expanded
7334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7335 do
7336 ac_preproc_ok=false
7337 for ac_c_preproc_warn_flag in '' yes
7338 do
7339 # Use a header file that comes with gcc, so configuring glibc
7340 # with a fresh cross-compiler works.
7341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7342 # <limits.h> exists even on freestanding compilers.
7343 # On the NeXT, cc -E runs the code through the compiler's parser,
7344 # not just through cpp. "Syntax error" is here to catch this case.
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 #ifdef __STDC__
7348 # include <limits.h>
7349 #else
7350 # include <assert.h>
7351 #endif
7352 Syntax error
7353 _ACEOF
7354 if ac_fn_c_try_cpp "$LINENO"; then :
7355
7356 else
7357 # Broken: fails on valid input.
7358 continue
7359 fi
7360 rm -f conftest.err conftest.i conftest.$ac_ext
7361
7362 # OK, works on sane cases. Now check whether nonexistent headers
7363 # can be detected and how.
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 #include <ac_nonexistent.h>
7367 _ACEOF
7368 if ac_fn_c_try_cpp "$LINENO"; then :
7369 # Broken: success on invalid input.
7370 continue
7371 else
7372 # Passes both tests.
7373 ac_preproc_ok=:
7374 break
7375 fi
7376 rm -f conftest.err conftest.i conftest.$ac_ext
7377
7378 done
7379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7380 rm -f conftest.i conftest.err conftest.$ac_ext
7381 if $ac_preproc_ok; then :
7382 break
7383 fi
7384
7385 done
7386 ac_cv_prog_CPP=$CPP
7387
7388 fi
7389 CPP=$ac_cv_prog_CPP
7390 else
7391 ac_cv_prog_CPP=$CPP
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7394 $as_echo "$CPP" >&6; }
7395 ac_preproc_ok=false
7396 for ac_c_preproc_warn_flag in '' yes
7397 do
7398 # Use a header file that comes with gcc, so configuring glibc
7399 # with a fresh cross-compiler works.
7400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7401 # <limits.h> exists even on freestanding compilers.
7402 # On the NeXT, cc -E runs the code through the compiler's parser,
7403 # not just through cpp. "Syntax error" is here to catch this case.
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #ifdef __STDC__
7407 # include <limits.h>
7408 #else
7409 # include <assert.h>
7410 #endif
7411 Syntax error
7412 _ACEOF
7413 if ac_fn_c_try_cpp "$LINENO"; then :
7414
7415 else
7416 # Broken: fails on valid input.
7417 continue
7418 fi
7419 rm -f conftest.err conftest.i conftest.$ac_ext
7420
7421 # OK, works on sane cases. Now check whether nonexistent headers
7422 # can be detected and how.
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #include <ac_nonexistent.h>
7426 _ACEOF
7427 if ac_fn_c_try_cpp "$LINENO"; then :
7428 # Broken: success on invalid input.
7429 continue
7430 else
7431 # Passes both tests.
7432 ac_preproc_ok=:
7433 break
7434 fi
7435 rm -f conftest.err conftest.i conftest.$ac_ext
7436
7437 done
7438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7439 rm -f conftest.i conftest.err conftest.$ac_ext
7440 if $ac_preproc_ok; then :
7441
7442 else
7443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7445 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7446 See \`config.log' for more details" "$LINENO" 5; }
7447 fi
7448
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7457 $as_echo_n "checking for ANSI C header files... " >&6; }
7458 if ${ac_cv_header_stdc+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <stdlib.h>
7464 #include <stdarg.h>
7465 #include <string.h>
7466 #include <float.h>
7467
7468 int
7469 main ()
7470 {
7471
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 ac_cv_header_stdc=yes
7478 else
7479 ac_cv_header_stdc=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482
7483 if test $ac_cv_header_stdc = yes; then
7484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <string.h>
7488
7489 _ACEOF
7490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7491 $EGREP "memchr" >/dev/null 2>&1; then :
7492
7493 else
7494 ac_cv_header_stdc=no
7495 fi
7496 rm -f conftest*
7497
7498 fi
7499
7500 if test $ac_cv_header_stdc = yes; then
7501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 #include <stdlib.h>
7505
7506 _ACEOF
7507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7508 $EGREP "free" >/dev/null 2>&1; then :
7509
7510 else
7511 ac_cv_header_stdc=no
7512 fi
7513 rm -f conftest*
7514
7515 fi
7516
7517 if test $ac_cv_header_stdc = yes; then
7518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7519 if test "$cross_compiling" = yes; then :
7520 :
7521 else
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <ctype.h>
7525 #include <stdlib.h>
7526 #if ((' ' & 0x0FF) == 0x020)
7527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7529 #else
7530 # define ISLOWER(c) \
7531 (('a' <= (c) && (c) <= 'i') \
7532 || ('j' <= (c) && (c) <= 'r') \
7533 || ('s' <= (c) && (c) <= 'z'))
7534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7535 #endif
7536
7537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7538 int
7539 main ()
7540 {
7541 int i;
7542 for (i = 0; i < 256; i++)
7543 if (XOR (islower (i), ISLOWER (i))
7544 || toupper (i) != TOUPPER (i))
7545 return 2;
7546 return 0;
7547 }
7548 _ACEOF
7549 if ac_fn_c_try_run "$LINENO"; then :
7550
7551 else
7552 ac_cv_header_stdc=no
7553 fi
7554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7555 conftest.$ac_objext conftest.beam conftest.$ac_ext
7556 fi
7557
7558 fi
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7561 $as_echo "$ac_cv_header_stdc" >&6; }
7562 if test $ac_cv_header_stdc = yes; then
7563
7564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7565
7566 fi
7567
7568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7570 inttypes.h stdint.h unistd.h
7571 do :
7572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7574 "
7575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7576 cat >>confdefs.h <<_ACEOF
7577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7578 _ACEOF
7579
7580 fi
7581
7582 done
7583
7584
7585 for ac_header in dlfcn.h
7586 do :
7587 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7588 "
7589 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7590 cat >>confdefs.h <<_ACEOF
7591 #define HAVE_DLFCN_H 1
7592 _ACEOF
7593
7594 fi
7595
7596 done
7597
7598
7599
7600
7601
7602 # Set options
7603
7604
7605
7606 enable_dlopen=no
7607
7608
7609 enable_win32_dll=no
7610
7611
7612 # Check whether --enable-shared was given.
7613 if test "${enable_shared+set}" = set; then :
7614 enableval=$enable_shared; p=${PACKAGE-default}
7615 case $enableval in
7616 yes) enable_shared=yes ;;
7617 no) enable_shared=no ;;
7618 *)
7619 enable_shared=no
7620 # Look at the argument we got. We use all the common list separators.
7621 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7622 for pkg in $enableval; do
7623 IFS=$lt_save_ifs
7624 if test "X$pkg" = "X$p"; then
7625 enable_shared=yes
7626 fi
7627 done
7628 IFS=$lt_save_ifs
7629 ;;
7630 esac
7631 else
7632 enable_shared=yes
7633 fi
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643 # Check whether --enable-static was given.
7644 if test "${enable_static+set}" = set; then :
7645 enableval=$enable_static; p=${PACKAGE-default}
7646 case $enableval in
7647 yes) enable_static=yes ;;
7648 no) enable_static=no ;;
7649 *)
7650 enable_static=no
7651 # Look at the argument we got. We use all the common list separators.
7652 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7653 for pkg in $enableval; do
7654 IFS=$lt_save_ifs
7655 if test "X$pkg" = "X$p"; then
7656 enable_static=yes
7657 fi
7658 done
7659 IFS=$lt_save_ifs
7660 ;;
7661 esac
7662 else
7663 enable_static=yes
7664 fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 # Check whether --with-pic was given.
7676 if test "${with_pic+set}" = set; then :
7677 withval=$with_pic; lt_p=${PACKAGE-default}
7678 case $withval in
7679 yes|no) pic_mode=$withval ;;
7680 *)
7681 pic_mode=default
7682 # Look at the argument we got. We use all the common list separators.
7683 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7684 for lt_pkg in $withval; do
7685 IFS=$lt_save_ifs
7686 if test "X$lt_pkg" = "X$lt_p"; then
7687 pic_mode=yes
7688 fi
7689 done
7690 IFS=$lt_save_ifs
7691 ;;
7692 esac
7693 else
7694 pic_mode=default
7695 fi
7696
7697
7698
7699
7700
7701
7702
7703
7704 # Check whether --enable-fast-install was given.
7705 if test "${enable_fast_install+set}" = set; then :
7706 enableval=$enable_fast_install; p=${PACKAGE-default}
7707 case $enableval in
7708 yes) enable_fast_install=yes ;;
7709 no) enable_fast_install=no ;;
7710 *)
7711 enable_fast_install=no
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7714 for pkg in $enableval; do
7715 IFS=$lt_save_ifs
7716 if test "X$pkg" = "X$p"; then
7717 enable_fast_install=yes
7718 fi
7719 done
7720 IFS=$lt_save_ifs
7721 ;;
7722 esac
7723 else
7724 enable_fast_install=yes
7725 fi
7726
7727
7728
7729
7730
7731
7732
7733
7734 shared_archive_member_spec=
7735 case $host,$enable_shared in
7736 power*-*-aix[5-9]*,yes)
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7738 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7739
7740 # Check whether --with-aix-soname was given.
7741 if test "${with_aix_soname+set}" = set; then :
7742 withval=$with_aix_soname; case $withval in
7743 aix|svr4|both)
7744 ;;
7745 *)
7746 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7747 ;;
7748 esac
7749 lt_cv_with_aix_soname=$with_aix_soname
7750 else
7751 if ${lt_cv_with_aix_soname+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 lt_cv_with_aix_soname=aix
7755 fi
7756
7757 with_aix_soname=$lt_cv_with_aix_soname
7758 fi
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7761 $as_echo "$with_aix_soname" >&6; }
7762 if test aix != "$with_aix_soname"; then
7763 # For the AIX way of multilib, we name the shared archive member
7764 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7765 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7766 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7767 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7768 if test 64 = "${OBJECT_MODE-32}"; then
7769 shared_archive_member_spec=shr_64
7770 else
7771 shared_archive_member_spec=shr
7772 fi
7773 fi
7774 ;;
7775 *)
7776 with_aix_soname=aix
7777 ;;
7778 esac
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789 # This can be used to rebuild libtool when needed
7790 LIBTOOL_DEPS=$ltmain
7791
7792 # Always use our own libtool.
7793 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824 test -z "$LN_S" && LN_S="ln -s"
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 if test -n "${ZSH_VERSION+set}"; then
7840 setopt NO_GLOB_SUBST
7841 fi
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7844 $as_echo_n "checking for objdir... " >&6; }
7845 if ${lt_cv_objdir+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 rm -f .libs 2>/dev/null
7849 mkdir .libs 2>/dev/null
7850 if test -d .libs; then
7851 lt_cv_objdir=.libs
7852 else
7853 # MS-DOS does not allow filenames that begin with a dot.
7854 lt_cv_objdir=_libs
7855 fi
7856 rmdir .libs 2>/dev/null
7857 fi
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7859 $as_echo "$lt_cv_objdir" >&6; }
7860 objdir=$lt_cv_objdir
7861
7862
7863
7864
7865
7866 cat >>confdefs.h <<_ACEOF
7867 #define LT_OBJDIR "$lt_cv_objdir/"
7868 _ACEOF
7869
7870
7871
7872
7873 case $host_os in
7874 aix3*)
7875 # AIX sometimes has problems with the GCC collect2 program. For some
7876 # reason, if we set the COLLECT_NAMES environment variable, the problems
7877 # vanish in a puff of smoke.
7878 if test set != "${COLLECT_NAMES+set}"; then
7879 COLLECT_NAMES=
7880 export COLLECT_NAMES
7881 fi
7882 ;;
7883 esac
7884
7885 # Global variables:
7886 ofile=libtool
7887 can_build_shared=yes
7888
7889 # All known linkers require a '.a' archive for static linking (except MSVC,
7890 # which needs '.lib').
7891 libext=a
7892
7893 with_gnu_ld=$lt_cv_prog_gnu_ld
7894
7895 old_CC=$CC
7896 old_CFLAGS=$CFLAGS
7897
7898 # Set sane defaults for various variables
7899 test -z "$CC" && CC=cc
7900 test -z "$LTCC" && LTCC=$CC
7901 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7902 test -z "$LD" && LD=ld
7903 test -z "$ac_objext" && ac_objext=o
7904
7905 func_cc_basename $compiler
7906 cc_basename=$func_cc_basename_result
7907
7908
7909 # Only perform the check for file, if the check method requires it
7910 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7911 case $deplibs_check_method in
7912 file_magic*)
7913 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7915 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7916 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 case $MAGIC_CMD in
7920 [\\/*] | ?:[\\/]*)
7921 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7922 ;;
7923 *)
7924 lt_save_MAGIC_CMD=$MAGIC_CMD
7925 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7926 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7927 for ac_dir in $ac_dummy; do
7928 IFS=$lt_save_ifs
7929 test -z "$ac_dir" && ac_dir=.
7930 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7931 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7932 if test -n "$file_magic_test_file"; then
7933 case $deplibs_check_method in
7934 "file_magic "*)
7935 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7936 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7937 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7938 $EGREP "$file_magic_regex" > /dev/null; then
7939 :
7940 else
7941 cat <<_LT_EOF 1>&2
7942
7943 *** Warning: the command libtool uses to detect shared libraries,
7944 *** $file_magic_cmd, produces output that libtool cannot recognize.
7945 *** The result is that libtool may fail to recognize shared libraries
7946 *** as such. This will affect the creation of libtool libraries that
7947 *** depend on shared libraries, but programs linked with such libtool
7948 *** libraries will work regardless of this problem. Nevertheless, you
7949 *** may want to report the problem to your system manager and/or to
7950 *** [email protected]
7951
7952 _LT_EOF
7953 fi ;;
7954 esac
7955 fi
7956 break
7957 fi
7958 done
7959 IFS=$lt_save_ifs
7960 MAGIC_CMD=$lt_save_MAGIC_CMD
7961 ;;
7962 esac
7963 fi
7964
7965 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7966 if test -n "$MAGIC_CMD"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7968 $as_echo "$MAGIC_CMD" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974
7975
7976
7977
7978 if test -z "$lt_cv_path_MAGIC_CMD"; then
7979 if test -n "$ac_tool_prefix"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7981 $as_echo_n "checking for file... " >&6; }
7982 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 case $MAGIC_CMD in
7986 [\\/*] | ?:[\\/]*)
7987 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7988 ;;
7989 *)
7990 lt_save_MAGIC_CMD=$MAGIC_CMD
7991 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7993 for ac_dir in $ac_dummy; do
7994 IFS=$lt_save_ifs
7995 test -z "$ac_dir" && ac_dir=.
7996 if test -f "$ac_dir/file"; then
7997 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7998 if test -n "$file_magic_test_file"; then
7999 case $deplibs_check_method in
8000 "file_magic "*)
8001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8002 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8004 $EGREP "$file_magic_regex" > /dev/null; then
8005 :
8006 else
8007 cat <<_LT_EOF 1>&2
8008
8009 *** Warning: the command libtool uses to detect shared libraries,
8010 *** $file_magic_cmd, produces output that libtool cannot recognize.
8011 *** The result is that libtool may fail to recognize shared libraries
8012 *** as such. This will affect the creation of libtool libraries that
8013 *** depend on shared libraries, but programs linked with such libtool
8014 *** libraries will work regardless of this problem. Nevertheless, you
8015 *** may want to report the problem to your system manager and/or to
8016 *** [email protected]
8017
8018 _LT_EOF
8019 fi ;;
8020 esac
8021 fi
8022 break
8023 fi
8024 done
8025 IFS=$lt_save_ifs
8026 MAGIC_CMD=$lt_save_MAGIC_CMD
8027 ;;
8028 esac
8029 fi
8030
8031 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8032 if test -n "$MAGIC_CMD"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8034 $as_echo "$MAGIC_CMD" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040
8041 else
8042 MAGIC_CMD=:
8043 fi
8044 fi
8045
8046 fi
8047 ;;
8048 esac
8049
8050 # Use C for the default configuration in the libtool script
8051
8052 lt_save_CC=$CC
8053 ac_ext=c
8054 ac_cpp='$CPP $CPPFLAGS'
8055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8058
8059
8060 # Source file extension for C test sources.
8061 ac_ext=c
8062
8063 # Object file extension for compiled C test sources.
8064 objext=o
8065 objext=$objext
8066
8067 # Code to be used in simple compile tests
8068 lt_simple_compile_test_code="int some_variable = 0;"
8069
8070 # Code to be used in simple link tests
8071 lt_simple_link_test_code='int main(){return(0);}'
8072
8073
8074
8075
8076
8077
8078
8079 # If no C compiler was specified, use CC.
8080 LTCC=${LTCC-"$CC"}
8081
8082 # If no C compiler flags were specified, use CFLAGS.
8083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8084
8085 # Allow CC to be a program name with arguments.
8086 compiler=$CC
8087
8088 # Save the default compiler, since it gets overwritten when the other
8089 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8090 compiler_DEFAULT=$CC
8091
8092 # save warnings/boilerplate of simple test code
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096 _lt_compiler_boilerplate=`cat conftest.err`
8097 $RM conftest*
8098
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8102 _lt_linker_boilerplate=`cat conftest.err`
8103 $RM -r conftest*
8104
8105
8106 if test -n "$compiler"; then
8107
8108 lt_prog_compiler_no_builtin_flag=
8109
8110 if test yes = "$GCC"; then
8111 case $cc_basename in
8112 nvcc*)
8113 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8114 *)
8115 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8116 esac
8117
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8119 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8120 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 lt_cv_prog_compiler_rtti_exceptions=no
8124 ac_outfile=conftest.$ac_objext
8125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8126 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8127 # Insert the option either (1) after the last *FLAGS variable, or
8128 # (2) before a word containing "conftest.", or (3) at the end.
8129 # Note that $ac_compile itself does not contain backslashes and begins
8130 # with a dollar sign (not a hyphen), so the echo should work correctly.
8131 # The option is referenced via a variable to avoid confusing sed.
8132 lt_compile=`echo "$ac_compile" | $SED \
8133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8135 -e 's:$: $lt_compiler_flag:'`
8136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8137 (eval "$lt_compile" 2>conftest.err)
8138 ac_status=$?
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 if (exit $ac_status) && test -s "$ac_outfile"; then
8142 # The compiler can only warn and ignore the option if not recognized
8143 # So say no if there are warnings other than the usual output.
8144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8147 lt_cv_prog_compiler_rtti_exceptions=yes
8148 fi
8149 fi
8150 $RM conftest*
8151
8152 fi
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8154 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8155
8156 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8157 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8158 else
8159 :
8160 fi
8161
8162 fi
8163
8164
8165
8166
8167
8168
8169 lt_prog_compiler_wl=
8170 lt_prog_compiler_pic=
8171 lt_prog_compiler_static=
8172
8173
8174 if test yes = "$GCC"; then
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_static='-static'
8177
8178 case $host_os in
8179 aix*)
8180 # All AIX code is PIC.
8181 if test ia64 = "$host_cpu"; then
8182 # AIX 5 now supports IA64 processor
8183 lt_prog_compiler_static='-Bstatic'
8184 fi
8185 lt_prog_compiler_pic='-fPIC'
8186 ;;
8187
8188 amigaos*)
8189 case $host_cpu in
8190 powerpc)
8191 # see comment about AmigaOS4 .so support
8192 lt_prog_compiler_pic='-fPIC'
8193 ;;
8194 m68k)
8195 # FIXME: we need at least 68020 code to build shared libraries, but
8196 # adding the '-m68020' flag to GCC prevents building anything better,
8197 # like '-m68040'.
8198 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8199 ;;
8200 esac
8201 ;;
8202
8203 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8204 # PIC is the default for these OSes.
8205 ;;
8206
8207 mingw* | cygwin* | pw32* | os2* | cegcc*)
8208 # This hack is so that the source file can tell whether it is being
8209 # built for inclusion in a dll (and should export symbols for example).
8210 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8211 # (--disable-auto-import) libraries
8212 lt_prog_compiler_pic='-DDLL_EXPORT'
8213 case $host_os in
8214 os2*)
8215 lt_prog_compiler_static='$wl-static'
8216 ;;
8217 esac
8218 ;;
8219
8220 darwin* | rhapsody*)
8221 # PIC is the default on this platform
8222 # Common symbols not allowed in MH_DYLIB files
8223 lt_prog_compiler_pic='-fno-common'
8224 ;;
8225
8226 haiku*)
8227 # PIC is the default for Haiku.
8228 # The "-static" flag exists, but is broken.
8229 lt_prog_compiler_static=
8230 ;;
8231
8232 hpux*)
8233 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8234 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8235 # sets the default TLS model and affects inlining.
8236 case $host_cpu in
8237 hppa*64*)
8238 # +Z the default
8239 ;;
8240 *)
8241 lt_prog_compiler_pic='-fPIC'
8242 ;;
8243 esac
8244 ;;
8245
8246 interix[3-9]*)
8247 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8248 # Instead, we relocate shared libraries at runtime.
8249 ;;
8250
8251 msdosdjgpp*)
8252 # Just because we use GCC doesn't mean we suddenly get shared libraries
8253 # on systems that don't support them.
8254 lt_prog_compiler_can_build_shared=no
8255 enable_shared=no
8256 ;;
8257
8258 *nto* | *qnx*)
8259 # QNX uses GNU C++, but need to define -shared option too, otherwise
8260 # it will coredump.
8261 lt_prog_compiler_pic='-fPIC -shared'
8262 ;;
8263
8264 sysv4*MP*)
8265 if test -d /usr/nec; then
8266 lt_prog_compiler_pic=-Kconform_pic
8267 fi
8268 ;;
8269
8270 *)
8271 lt_prog_compiler_pic='-fPIC'
8272 ;;
8273 esac
8274
8275 case $cc_basename in
8276 nvcc*) # Cuda Compiler Driver 2.2
8277 lt_prog_compiler_wl='-Xlinker '
8278 if test -n "$lt_prog_compiler_pic"; then
8279 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8280 fi
8281 ;;
8282 esac
8283 else
8284 # PORTME Check for flag to pass linker flags through the system compiler.
8285 case $host_os in
8286 aix*)
8287 lt_prog_compiler_wl='-Wl,'
8288 if test ia64 = "$host_cpu"; then
8289 # AIX 5 now supports IA64 processor
8290 lt_prog_compiler_static='-Bstatic'
8291 else
8292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8293 fi
8294 ;;
8295
8296 darwin* | rhapsody*)
8297 # PIC is the default on this platform
8298 # Common symbols not allowed in MH_DYLIB files
8299 lt_prog_compiler_pic='-fno-common'
8300 case $cc_basename in
8301 nagfor*)
8302 # NAG Fortran compiler
8303 lt_prog_compiler_wl='-Wl,-Wl,,'
8304 lt_prog_compiler_pic='-PIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 ;;
8307 esac
8308 ;;
8309
8310 mingw* | cygwin* | pw32* | os2* | cegcc*)
8311 # This hack is so that the source file can tell whether it is being
8312 # built for inclusion in a dll (and should export symbols for example).
8313 lt_prog_compiler_pic='-DDLL_EXPORT'
8314 case $host_os in
8315 os2*)
8316 lt_prog_compiler_static='$wl-static'
8317 ;;
8318 esac
8319 ;;
8320
8321 hpux9* | hpux10* | hpux11*)
8322 lt_prog_compiler_wl='-Wl,'
8323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8324 # not for PA HP-UX.
8325 case $host_cpu in
8326 hppa*64*|ia64*)
8327 # +Z the default
8328 ;;
8329 *)
8330 lt_prog_compiler_pic='+Z'
8331 ;;
8332 esac
8333 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8334 lt_prog_compiler_static='$wl-a ${wl}archive'
8335 ;;
8336
8337 irix5* | irix6* | nonstopux*)
8338 lt_prog_compiler_wl='-Wl,'
8339 # PIC (with -KPIC) is the default.
8340 lt_prog_compiler_static='-non_shared'
8341 ;;
8342
8343 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8344 case $cc_basename in
8345 # old Intel for x86_64, which still supported -KPIC.
8346 ecc*)
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-static'
8350 ;;
8351 # flang / f18. f95 an alias for gfortran or flang on Debian
8352 flang* | f18* | f95*)
8353 lt_prog_compiler_wl='-Wl,'
8354 lt_prog_compiler_pic='-fPIC'
8355 lt_prog_compiler_static='-static'
8356 ;;
8357 # icc used to be incompatible with GCC.
8358 # ICC 10 doesn't accept -KPIC any more.
8359 icc* | ifort*)
8360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_pic='-fPIC'
8362 lt_prog_compiler_static='-static'
8363 ;;
8364 # Lahey Fortran 8.1.
8365 lf95*)
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='--shared'
8368 lt_prog_compiler_static='--static'
8369 ;;
8370 nagfor*)
8371 # NAG Fortran compiler
8372 lt_prog_compiler_wl='-Wl,-Wl,,'
8373 lt_prog_compiler_pic='-PIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 ;;
8376 tcc*)
8377 # Fabrice Bellard et al's Tiny C Compiler
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_pic='-fPIC'
8380 lt_prog_compiler_static='-static'
8381 ;;
8382 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8383 # Portland Group compilers (*not* the Pentium gcc compiler,
8384 # which looks to be a dead project)
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_pic='-fpic'
8387 lt_prog_compiler_static='-Bstatic'
8388 ;;
8389 ccc*)
8390 lt_prog_compiler_wl='-Wl,'
8391 # All Alpha code is PIC.
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394 xl* | bgxl* | bgf* | mpixl*)
8395 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='-qpic'
8398 lt_prog_compiler_static='-qstaticlink'
8399 ;;
8400 *)
8401 case `$CC -V 2>&1 | sed 5q` in
8402 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8403 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 lt_prog_compiler_wl=''
8407 ;;
8408 *Sun\ F* | *Sun*Fortran*)
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-Bstatic'
8411 lt_prog_compiler_wl='-Qoption ld '
8412 ;;
8413 *Sun\ C*)
8414 # Sun C 5.9
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-Bstatic'
8417 lt_prog_compiler_wl='-Wl,'
8418 ;;
8419 *Intel*\ [CF]*Compiler*)
8420 lt_prog_compiler_wl='-Wl,'
8421 lt_prog_compiler_pic='-fPIC'
8422 lt_prog_compiler_static='-static'
8423 ;;
8424 *Portland\ Group*)
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_pic='-fpic'
8427 lt_prog_compiler_static='-Bstatic'
8428 ;;
8429 esac
8430 ;;
8431 esac
8432 ;;
8433
8434 newsos6)
8435 lt_prog_compiler_pic='-KPIC'
8436 lt_prog_compiler_static='-Bstatic'
8437 ;;
8438
8439 *nto* | *qnx*)
8440 # QNX uses GNU C++, but need to define -shared option too, otherwise
8441 # it will coredump.
8442 lt_prog_compiler_pic='-fPIC -shared'
8443 ;;
8444
8445 osf3* | osf4* | osf5*)
8446 lt_prog_compiler_wl='-Wl,'
8447 # All OSF/1 code is PIC.
8448 lt_prog_compiler_static='-non_shared'
8449 ;;
8450
8451 rdos*)
8452 lt_prog_compiler_static='-non_shared'
8453 ;;
8454
8455 solaris*)
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8458 case $cc_basename in
8459 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8460 lt_prog_compiler_wl='-Qoption ld ';;
8461 *)
8462 lt_prog_compiler_wl='-Wl,';;
8463 esac
8464 ;;
8465
8466 sunos4*)
8467 lt_prog_compiler_wl='-Qoption ld '
8468 lt_prog_compiler_pic='-PIC'
8469 lt_prog_compiler_static='-Bstatic'
8470 ;;
8471
8472 sysv4 | sysv4.2uw2* | sysv4.3*)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='-KPIC'
8475 lt_prog_compiler_static='-Bstatic'
8476 ;;
8477
8478 sysv4*MP*)
8479 if test -d /usr/nec; then
8480 lt_prog_compiler_pic='-Kconform_pic'
8481 lt_prog_compiler_static='-Bstatic'
8482 fi
8483 ;;
8484
8485 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_pic='-KPIC'
8488 lt_prog_compiler_static='-Bstatic'
8489 ;;
8490
8491 unicos*)
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_can_build_shared=no
8494 ;;
8495
8496 uts4*)
8497 lt_prog_compiler_pic='-pic'
8498 lt_prog_compiler_static='-Bstatic'
8499 ;;
8500
8501 *)
8502 lt_prog_compiler_can_build_shared=no
8503 ;;
8504 esac
8505 fi
8506
8507 case $host_os in
8508 # For platforms that do not support PIC, -DPIC is meaningless:
8509 *djgpp*)
8510 lt_prog_compiler_pic=
8511 ;;
8512 *)
8513 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8514 ;;
8515 esac
8516
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8518 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8519 if ${lt_cv_prog_compiler_pic+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8525 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8526 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8527
8528 #
8529 # Check to make sure the PIC flag actually works.
8530 #
8531 if test -n "$lt_prog_compiler_pic"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8534 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 lt_cv_prog_compiler_pic_works=no
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
8550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8551 (eval "$lt_compile" 2>conftest.err)
8552 ac_status=$?
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
8558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_cv_prog_compiler_pic_works=yes
8562 fi
8563 fi
8564 $RM conftest*
8565
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8568 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8569
8570 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8571 case $lt_prog_compiler_pic in
8572 "" | " "*) ;;
8573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8574 esac
8575 else
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_can_build_shared=no
8578 fi
8579
8580 fi
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592 #
8593 # Check to make sure the static flag actually works.
8594 #
8595 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8597 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8598 if ${lt_cv_prog_compiler_static_works+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 lt_cv_prog_compiler_static_works=no
8602 save_LDFLAGS=$LDFLAGS
8603 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8604 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8605 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8606 # The linker can only warn and ignore the option if not recognized
8607 # So say no if there are warnings
8608 if test -s conftest.err; then
8609 # Append any errors to the config.log.
8610 cat conftest.err 1>&5
8611 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8613 if diff conftest.exp conftest.er2 >/dev/null; then
8614 lt_cv_prog_compiler_static_works=yes
8615 fi
8616 else
8617 lt_cv_prog_compiler_static_works=yes
8618 fi
8619 fi
8620 $RM -r conftest*
8621 LDFLAGS=$save_LDFLAGS
8622
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8625 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8626
8627 if test yes = "$lt_cv_prog_compiler_static_works"; then
8628 :
8629 else
8630 lt_prog_compiler_static=
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8640 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8641 if ${lt_cv_prog_compiler_c_o+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 lt_cv_prog_compiler_c_o=no
8645 $RM -r conftest 2>/dev/null
8646 mkdir conftest
8647 cd conftest
8648 mkdir out
8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650
8651 lt_compiler_flag="-o out/conftest2.$ac_objext"
8652 # Insert the option either (1) after the last *FLAGS variable, or
8653 # (2) before a word containing "conftest.", or (3) at the end.
8654 # Note that $ac_compile itself does not contain backslashes and begins
8655 # with a dollar sign (not a hyphen), so the echo should work correctly.
8656 lt_compile=`echo "$ac_compile" | $SED \
8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659 -e 's:$: $lt_compiler_flag:'`
8660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8661 (eval "$lt_compile" 2>out/conftest.err)
8662 ac_status=$?
8663 cat out/conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8666 then
8667 # The compiler can only warn and ignore the option if not recognized
8668 # So say no if there are warnings
8669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8672 lt_cv_prog_compiler_c_o=yes
8673 fi
8674 fi
8675 chmod u+w . 2>&5
8676 $RM conftest*
8677 # SGI C++ compiler will create directory out/ii_files/ for
8678 # template instantiation
8679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8680 $RM out/* && rmdir out
8681 cd ..
8682 $RM -r conftest
8683 $RM conftest*
8684
8685 fi
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8687 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8688
8689
8690
8691
8692
8693
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8695 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8696 if ${lt_cv_prog_compiler_c_o+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 lt_cv_prog_compiler_c_o=no
8700 $RM -r conftest 2>/dev/null
8701 mkdir conftest
8702 cd conftest
8703 mkdir out
8704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8705
8706 lt_compiler_flag="-o out/conftest2.$ac_objext"
8707 # Insert the option either (1) after the last *FLAGS variable, or
8708 # (2) before a word containing "conftest.", or (3) at the end.
8709 # Note that $ac_compile itself does not contain backslashes and begins
8710 # with a dollar sign (not a hyphen), so the echo should work correctly.
8711 lt_compile=`echo "$ac_compile" | $SED \
8712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8714 -e 's:$: $lt_compiler_flag:'`
8715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8716 (eval "$lt_compile" 2>out/conftest.err)
8717 ac_status=$?
8718 cat out/conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8721 then
8722 # The compiler can only warn and ignore the option if not recognized
8723 # So say no if there are warnings
8724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8727 lt_cv_prog_compiler_c_o=yes
8728 fi
8729 fi
8730 chmod u+w . 2>&5
8731 $RM conftest*
8732 # SGI C++ compiler will create directory out/ii_files/ for
8733 # template instantiation
8734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8735 $RM out/* && rmdir out
8736 cd ..
8737 $RM -r conftest
8738 $RM conftest*
8739
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8742 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8743
8744
8745
8746
8747 hard_links=nottested
8748 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8749 # do not overwrite the value of need_locks provided by the user
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8751 $as_echo_n "checking if we can lock with hard links... " >&6; }
8752 hard_links=yes
8753 $RM conftest*
8754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8755 touch conftest.a
8756 ln conftest.a conftest.b 2>&5 || hard_links=no
8757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8759 $as_echo "$hard_links" >&6; }
8760 if test no = "$hard_links"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8762 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8763 need_locks=warn
8764 fi
8765 else
8766 need_locks=no
8767 fi
8768
8769
8770
8771
8772
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8775 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8776
8777 runpath_var=
8778 allow_undefined_flag=
8779 always_export_symbols=no
8780 archive_cmds=
8781 archive_expsym_cmds=
8782 compiler_needs_object=no
8783 enable_shared_with_static_runtimes=no
8784 export_dynamic_flag_spec=
8785 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8786 hardcode_automatic=no
8787 hardcode_direct=no
8788 hardcode_direct_absolute=no
8789 hardcode_libdir_flag_spec=
8790 hardcode_libdir_separator=
8791 hardcode_minus_L=no
8792 hardcode_shlibpath_var=unsupported
8793 inherit_rpath=no
8794 link_all_deplibs=unknown
8795 module_cmds=
8796 module_expsym_cmds=
8797 old_archive_from_new_cmds=
8798 old_archive_from_expsyms_cmds=
8799 thread_safe_flag_spec=
8800 whole_archive_flag_spec=
8801 # include_expsyms should be a list of space-separated symbols to be *always*
8802 # included in the symbol list
8803 include_expsyms=
8804 # exclude_expsyms can be an extended regexp of symbols to exclude
8805 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8806 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8807 # as well as any symbol that contains 'd'.
8808 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8810 # platforms (ab)use it in PIC code, but their linkers get confused if
8811 # the symbol is explicitly referenced. Since portable code cannot
8812 # rely on this symbol name, it's probably fine to never include it in
8813 # preloaded symbol tables.
8814 # Exclude shared library initialization/finalization symbols.
8815 extract_expsyms_cmds=
8816
8817 case $host_os in
8818 cygwin* | mingw* | pw32* | cegcc*)
8819 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8820 # When not using gcc, we currently assume that we are using
8821 # Microsoft Visual C++.
8822 if test yes != "$GCC"; then
8823 with_gnu_ld=no
8824 fi
8825 ;;
8826 interix*)
8827 # we just hope/assume this is gcc and not c89 (= MSVC++)
8828 with_gnu_ld=yes
8829 ;;
8830 openbsd* | bitrig*)
8831 with_gnu_ld=no
8832 ;;
8833 linux* | k*bsd*-gnu | gnu*)
8834 link_all_deplibs=no
8835 ;;
8836 esac
8837
8838 ld_shlibs=yes
8839
8840 # On some targets, GNU ld is compatible enough with the native linker
8841 # that we're better off using the native interface for both.
8842 lt_use_gnu_ld_interface=no
8843 if test yes = "$with_gnu_ld"; then
8844 case $host_os in
8845 aix*)
8846 # The AIX port of GNU ld has always aspired to compatibility
8847 # with the native linker. However, as the warning in the GNU ld
8848 # block says, versions before 2.19.5* couldn't really create working
8849 # shared libraries, regardless of the interface used.
8850 case `$LD -v 2>&1` in
8851 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8852 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8853 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8854 *)
8855 lt_use_gnu_ld_interface=yes
8856 ;;
8857 esac
8858 ;;
8859 *)
8860 lt_use_gnu_ld_interface=yes
8861 ;;
8862 esac
8863 fi
8864
8865 if test yes = "$lt_use_gnu_ld_interface"; then
8866 # If archive_cmds runs LD, not CC, wlarc should be empty
8867 wlarc='$wl'
8868
8869 # Set some defaults for GNU ld with shared library support. These
8870 # are reset later if shared libraries are not supported. Putting them
8871 # here allows them to be overridden if necessary.
8872 runpath_var=LD_RUN_PATH
8873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8874 export_dynamic_flag_spec='$wl--export-dynamic'
8875 # ancient GNU ld didn't support --whole-archive et. al.
8876 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8877 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8878 else
8879 whole_archive_flag_spec=
8880 fi
8881 supports_anon_versioning=no
8882 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8883 *GNU\ gold*) supports_anon_versioning=yes ;;
8884 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8885 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8886 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8887 *\ 2.11.*) ;; # other 2.11 versions
8888 *) supports_anon_versioning=yes ;;
8889 esac
8890
8891 # See if GNU ld supports shared libraries.
8892 case $host_os in
8893 aix[3-9]*)
8894 # On AIX/PPC, the GNU linker is very broken
8895 if test ia64 != "$host_cpu"; then
8896 ld_shlibs=no
8897 cat <<_LT_EOF 1>&2
8898
8899 *** Warning: the GNU linker, at least up to release 2.19, is reported
8900 *** to be unable to reliably create shared libraries on AIX.
8901 *** Therefore, libtool is disabling shared libraries support. If you
8902 *** really care for shared libraries, you may want to install binutils
8903 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8904 *** You will then need to restart the configuration process.
8905
8906 _LT_EOF
8907 fi
8908 ;;
8909
8910 amigaos*)
8911 case $host_cpu in
8912 powerpc)
8913 # see comment about AmigaOS4 .so support
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8915 archive_expsym_cmds=''
8916 ;;
8917 m68k)
8918 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)'
8919 hardcode_libdir_flag_spec='-L$libdir'
8920 hardcode_minus_L=yes
8921 ;;
8922 esac
8923 ;;
8924
8925 beos*)
8926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8927 allow_undefined_flag=unsupported
8928 # Joseph Beckenbach <[email protected]> says some releases of gcc
8929 # support --undefined. This deserves some investigation. FIXME
8930 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8931 else
8932 ld_shlibs=no
8933 fi
8934 ;;
8935
8936 cygwin* | mingw* | pw32* | cegcc*)
8937 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8938 # as there is no search path for DLLs.
8939 hardcode_libdir_flag_spec='-L$libdir'
8940 export_dynamic_flag_spec='$wl--export-all-symbols'
8941 allow_undefined_flag=unsupported
8942 always_export_symbols=no
8943 enable_shared_with_static_runtimes=yes
8944 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'
8945 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8946
8947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8949 # If the export-symbols file already is a .def file, use it as
8950 # is; otherwise, prepend EXPORTS...
8951 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8952 cp $export_symbols $output_objdir/$soname.def;
8953 else
8954 echo EXPORTS > $output_objdir/$soname.def;
8955 cat $export_symbols >> $output_objdir/$soname.def;
8956 fi~
8957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
8962
8963 haiku*)
8964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8965 link_all_deplibs=yes
8966 ;;
8967
8968 os2*)
8969 hardcode_libdir_flag_spec='-L$libdir'
8970 hardcode_minus_L=yes
8971 allow_undefined_flag=unsupported
8972 shrext_cmds=.dll
8973 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8976 $ECHO EXPORTS >> $output_objdir/$libname.def~
8977 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8978 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8979 emximp -o $lib $output_objdir/$libname.def'
8980 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8981 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8982 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8983 $ECHO EXPORTS >> $output_objdir/$libname.def~
8984 prefix_cmds="$SED"~
8985 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8986 prefix_cmds="$prefix_cmds -e 1d";
8987 fi~
8988 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8989 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8990 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8991 emximp -o $lib $output_objdir/$libname.def'
8992 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8993 enable_shared_with_static_runtimes=yes
8994 ;;
8995
8996 interix[3-9]*)
8997 hardcode_direct=no
8998 hardcode_shlibpath_var=no
8999 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9000 export_dynamic_flag_spec='$wl-E'
9001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9002 # Instead, shared libraries are loaded at an image base (0x10000000 by
9003 # default) and relocated if they conflict, which is a slow very memory
9004 # consuming and fragmenting process. To avoid this, we pick a random,
9005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9008 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'
9009 ;;
9010
9011 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9012 tmp_diet=no
9013 if test linux-dietlibc = "$host_os"; then
9014 case $cc_basename in
9015 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9016 esac
9017 fi
9018 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9019 && test no = "$tmp_diet"
9020 then
9021 tmp_addflag=' $pic_flag'
9022 tmp_sharedflag='-shared'
9023 case $cc_basename,$host_cpu in
9024 pgcc*) # Portland Group C compiler
9025 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'
9026 tmp_addflag=' $pic_flag'
9027 ;;
9028 pgf77* | pgf90* | pgf95* | pgfortran*)
9029 # Portland Group f77 and f90 compilers
9030 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'
9031 tmp_addflag=' $pic_flag -Mnomain' ;;
9032 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9033 tmp_addflag=' -i_dynamic' ;;
9034 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9035 tmp_addflag=' -i_dynamic -nofor_main' ;;
9036 ifc* | ifort*) # Intel Fortran compiler
9037 tmp_addflag=' -nofor_main' ;;
9038 lf95*) # Lahey Fortran 8.1
9039 whole_archive_flag_spec=
9040 tmp_sharedflag='--shared' ;;
9041 nagfor*) # NAGFOR 5.3
9042 tmp_sharedflag='-Wl,-shared' ;;
9043 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9044 tmp_sharedflag='-qmkshrobj'
9045 tmp_addflag= ;;
9046 nvcc*) # Cuda Compiler Driver 2.2
9047 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'
9048 compiler_needs_object=yes
9049 ;;
9050 esac
9051 case `$CC -V 2>&1 | sed 5q` in
9052 *Sun\ C*) # Sun C 5.9
9053 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'
9054 compiler_needs_object=yes
9055 tmp_sharedflag='-G' ;;
9056 *Sun\ F*) # Sun Fortran 8.3
9057 tmp_sharedflag='-G' ;;
9058 esac
9059 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9060
9061 if test yes = "$supports_anon_versioning"; then
9062 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9064 echo "local: *; };" >> $output_objdir/$libname.ver~
9065 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9066 fi
9067
9068 case $cc_basename in
9069 tcc*)
9070 export_dynamic_flag_spec='-rdynamic'
9071 ;;
9072 xlf* | bgf* | bgxlf* | mpixlf*)
9073 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9074 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9075 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9076 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9077 if test yes = "$supports_anon_versioning"; then
9078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9080 echo "local: *; };" >> $output_objdir/$libname.ver~
9081 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9082 fi
9083 ;;
9084 esac
9085 else
9086 ld_shlibs=no
9087 fi
9088 ;;
9089
9090 netbsd* | netbsdelf*-gnu)
9091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9092 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9093 wlarc=
9094 else
9095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9096 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9097 fi
9098 ;;
9099
9100 solaris*)
9101 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9102 ld_shlibs=no
9103 cat <<_LT_EOF 1>&2
9104
9105 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9106 *** create shared libraries on Solaris systems. Therefore, libtool
9107 *** is disabling shared libraries support. We urge you to upgrade GNU
9108 *** binutils to release 2.9.1 or newer. Another option is to modify
9109 *** your PATH or compiler configuration so that the native linker is
9110 *** used, and then restart.
9111
9112 _LT_EOF
9113 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9115 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9116 else
9117 ld_shlibs=no
9118 fi
9119 ;;
9120
9121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9122 case `$LD -v 2>&1` in
9123 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9124 ld_shlibs=no
9125 cat <<_LT_EOF 1>&2
9126
9127 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9128 *** reliably create shared libraries on SCO systems. Therefore, libtool
9129 *** is disabling shared libraries support. We urge you to upgrade GNU
9130 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9131 *** your PATH or compiler configuration so that the native linker is
9132 *** used, and then restart.
9133
9134 _LT_EOF
9135 ;;
9136 *)
9137 # For security reasons, it is highly recommended that you always
9138 # use absolute paths for naming shared libraries, and exclude the
9139 # DT_RUNPATH tag from executables and libraries. But doing so
9140 # requires that you compile everything twice, which is a pain.
9141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9142 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9145 else
9146 ld_shlibs=no
9147 fi
9148 ;;
9149 esac
9150 ;;
9151
9152 sunos4*)
9153 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9154 wlarc=
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9157 ;;
9158
9159 *)
9160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9163 else
9164 ld_shlibs=no
9165 fi
9166 ;;
9167 esac
9168
9169 if test no = "$ld_shlibs"; then
9170 runpath_var=
9171 hardcode_libdir_flag_spec=
9172 export_dynamic_flag_spec=
9173 whole_archive_flag_spec=
9174 fi
9175 else
9176 # PORTME fill in a description of your system's linker (not GNU ld)
9177 case $host_os in
9178 aix3*)
9179 allow_undefined_flag=unsupported
9180 always_export_symbols=yes
9181 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'
9182 # Note: this linker hardcodes the directories in LIBPATH if there
9183 # are no directories specified by -L.
9184 hardcode_minus_L=yes
9185 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9186 # Neither direct hardcoding nor static linking is supported with a
9187 # broken collect2.
9188 hardcode_direct=unsupported
9189 fi
9190 ;;
9191
9192 aix[4-9]*)
9193 if test ia64 = "$host_cpu"; then
9194 # On IA64, the linker does run time linking by default, so we don't
9195 # have to do anything special.
9196 aix_use_runtimelinking=no
9197 exp_sym_flag='-Bexport'
9198 no_entry_flag=
9199 else
9200 # If we're using GNU nm, then we don't want the "-C" option.
9201 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9202 # Without the "-l" option, or with the "-B" option, AIX nm treats
9203 # weak defined symbols like other global defined symbols, whereas
9204 # GNU nm marks them as "W".
9205 # While the 'weak' keyword is ignored in the Export File, we need
9206 # it in the Import File for the 'aix-soname' feature, so we have
9207 # to replace the "-B" option with "-P" for AIX nm.
9208 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9209 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'
9210 else
9211 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'
9212 fi
9213 aix_use_runtimelinking=no
9214
9215 # Test if we are trying to use run time linking or normal
9216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9217 # have runtime linking enabled, and use it for executables.
9218 # For shared libraries, we enable/disable runtime linking
9219 # depending on the kind of the shared library created -
9220 # when "with_aix_soname,aix_use_runtimelinking" is:
9221 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9222 # "aix,yes" lib.so shared, rtl:yes, for executables
9223 # lib.a static archive
9224 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9225 # lib.a(lib.so.V) shared, rtl:no, for executables
9226 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9227 # lib.a(lib.so.V) shared, rtl:no
9228 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9229 # lib.a static archive
9230 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9231 for ld_flag in $LDFLAGS; do
9232 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9233 aix_use_runtimelinking=yes
9234 break
9235 fi
9236 done
9237 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9238 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9239 # so we don't have lib.a shared libs to link our executables.
9240 # We have to force runtime linking in this case.
9241 aix_use_runtimelinking=yes
9242 LDFLAGS="$LDFLAGS -Wl,-brtl"
9243 fi
9244 ;;
9245 esac
9246
9247 exp_sym_flag='-bexport'
9248 no_entry_flag='-bnoentry'
9249 fi
9250
9251 # When large executables or shared objects are built, AIX ld can
9252 # have problems creating the table of contents. If linking a library
9253 # or program results in "error TOC overflow" add -mminimal-toc to
9254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9256
9257 archive_cmds=''
9258 hardcode_direct=yes
9259 hardcode_direct_absolute=yes
9260 hardcode_libdir_separator=':'
9261 link_all_deplibs=yes
9262 file_list_spec='$wl-f,'
9263 case $with_aix_soname,$aix_use_runtimelinking in
9264 aix,*) ;; # traditional, no import file
9265 svr4,* | *,yes) # use import file
9266 # The Import File defines what to hardcode.
9267 hardcode_direct=no
9268 hardcode_direct_absolute=no
9269 ;;
9270 esac
9271
9272 if test yes = "$GCC"; then
9273 case $host_os in aix4.[012]|aix4.[012].*)
9274 # We only want to do this on AIX 4.2 and lower, the check
9275 # below for broken collect2 doesn't work under 4.3+
9276 collect2name=`$CC -print-prog-name=collect2`
9277 if test -f "$collect2name" &&
9278 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9279 then
9280 # We have reworked collect2
9281 :
9282 else
9283 # We have old collect2
9284 hardcode_direct=unsupported
9285 # It fails to find uninstalled libraries when the uninstalled
9286 # path is not listed in the libpath. Setting hardcode_minus_L
9287 # to unsupported forces relinking
9288 hardcode_minus_L=yes
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_libdir_separator=
9291 fi
9292 ;;
9293 esac
9294 shared_flag='-shared'
9295 if test yes = "$aix_use_runtimelinking"; then
9296 shared_flag="$shared_flag "'$wl-G'
9297 fi
9298 # Need to ensure runtime linking is disabled for the traditional
9299 # shared library, or the linker may eventually find shared libraries
9300 # /with/ Import File - we do not want to mix them.
9301 shared_flag_aix='-shared'
9302 shared_flag_svr4='-shared $wl-G'
9303 else
9304 # not using gcc
9305 if test ia64 = "$host_cpu"; then
9306 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9307 # chokes on -Wl,-G. The following line is correct:
9308 shared_flag='-G'
9309 else
9310 if test yes = "$aix_use_runtimelinking"; then
9311 shared_flag='$wl-G'
9312 else
9313 shared_flag='$wl-bM:SRE'
9314 fi
9315 shared_flag_aix='$wl-bM:SRE'
9316 shared_flag_svr4='$wl-G'
9317 fi
9318 fi
9319
9320 export_dynamic_flag_spec='$wl-bexpall'
9321 # It seems that -bexpall does not export symbols beginning with
9322 # underscore (_), so it is better to generate a list of symbols to export.
9323 always_export_symbols=yes
9324 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9325 # Warning - without using the other runtime loading flags (-brtl),
9326 # -berok will link without error, but may produce a broken library.
9327 allow_undefined_flag='-berok'
9328 # Determine the default libpath from the value encoded in an
9329 # empty executable.
9330 if test set = "${lt_cv_aix_libpath+set}"; then
9331 aix_libpath=$lt_cv_aix_libpath
9332 else
9333 if ${lt_cv_aix_libpath_+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338
9339 int
9340 main ()
9341 {
9342
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_link "$LINENO"; then :
9348
9349 lt_aix_libpath_sed='
9350 /Import File Strings/,/^$/ {
9351 /^0/ {
9352 s/^0 *\([^ ]*\) *$/\1/
9353 p
9354 }
9355 }'
9356 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9357 # Check for a 64-bit object if we didn't find anything.
9358 if test -z "$lt_cv_aix_libpath_"; then
9359 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9360 fi
9361 fi
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 if test -z "$lt_cv_aix_libpath_"; then
9365 lt_cv_aix_libpath_=/usr/lib:/lib
9366 fi
9367
9368 fi
9369
9370 aix_libpath=$lt_cv_aix_libpath_
9371 fi
9372
9373 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9374 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
9375 else
9376 if test ia64 = "$host_cpu"; then
9377 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9378 allow_undefined_flag="-z nodefs"
9379 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"
9380 else
9381 # Determine the default libpath from the value encoded in an
9382 # empty executable.
9383 if test set = "${lt_cv_aix_libpath+set}"; then
9384 aix_libpath=$lt_cv_aix_libpath
9385 else
9386 if ${lt_cv_aix_libpath_+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391
9392 int
9393 main ()
9394 {
9395
9396 ;
9397 return 0;
9398 }
9399 _ACEOF
9400 if ac_fn_c_try_link "$LINENO"; then :
9401
9402 lt_aix_libpath_sed='
9403 /Import File Strings/,/^$/ {
9404 /^0/ {
9405 s/^0 *\([^ ]*\) *$/\1/
9406 p
9407 }
9408 }'
9409 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410 # Check for a 64-bit object if we didn't find anything.
9411 if test -z "$lt_cv_aix_libpath_"; then
9412 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9413 fi
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 if test -z "$lt_cv_aix_libpath_"; then
9418 lt_cv_aix_libpath_=/usr/lib:/lib
9419 fi
9420
9421 fi
9422
9423 aix_libpath=$lt_cv_aix_libpath_
9424 fi
9425
9426 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9427 # Warning - without using the other run time loading flags,
9428 # -berok will link without error, but may produce a broken library.
9429 no_undefined_flag=' $wl-bernotok'
9430 allow_undefined_flag=' $wl-berok'
9431 if test yes = "$with_gnu_ld"; then
9432 # We only use this code for GNU lds that support --whole-archive.
9433 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9434 else
9435 # Exported symbols can be pulled into shared objects from archives
9436 whole_archive_flag_spec='$convenience'
9437 fi
9438 archive_cmds_need_lc=yes
9439 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9440 # -brtl affects multiple linker settings, -berok does not and is overridden later
9441 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9442 if test svr4 != "$with_aix_soname"; then
9443 # This is similar to how AIX traditionally builds its shared libraries.
9444 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'
9445 fi
9446 if test aix != "$with_aix_soname"; then
9447 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'
9448 else
9449 # used by -dlpreopen to get the symbols
9450 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9451 fi
9452 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9453 fi
9454 fi
9455 ;;
9456
9457 amigaos*)
9458 case $host_cpu in
9459 powerpc)
9460 # see comment about AmigaOS4 .so support
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9462 archive_expsym_cmds=''
9463 ;;
9464 m68k)
9465 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)'
9466 hardcode_libdir_flag_spec='-L$libdir'
9467 hardcode_minus_L=yes
9468 ;;
9469 esac
9470 ;;
9471
9472 bsdi[45]*)
9473 export_dynamic_flag_spec=-rdynamic
9474 ;;
9475
9476 cygwin* | mingw* | pw32* | cegcc*)
9477 # When not using gcc, we currently assume that we are using
9478 # Microsoft Visual C++.
9479 # hardcode_libdir_flag_spec is actually meaningless, as there is
9480 # no search path for DLLs.
9481 case $cc_basename in
9482 cl*)
9483 # Native MSVC
9484 hardcode_libdir_flag_spec=' '
9485 allow_undefined_flag=unsupported
9486 always_export_symbols=yes
9487 file_list_spec='@'
9488 # Tell ltmain to make .lib files, not .a files.
9489 libext=lib
9490 # Tell ltmain to make .dll files, not .so files.
9491 shrext_cmds=.dll
9492 # FIXME: Setting linknames here is a bad hack.
9493 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9494 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9495 cp "$export_symbols" "$output_objdir/$soname.def";
9496 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9497 else
9498 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9499 fi~
9500 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9501 linknames='
9502 # The linker will not automatically build a static lib if we build a DLL.
9503 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9504 enable_shared_with_static_runtimes=yes
9505 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9507 # Don't use ranlib
9508 old_postinstall_cmds='chmod 644 $oldlib'
9509 postlink_cmds='lt_outputfile="@OUTPUT@"~
9510 lt_tool_outputfile="@TOOL_OUTPUT@"~
9511 case $lt_outputfile in
9512 *.exe|*.EXE) ;;
9513 *)
9514 lt_outputfile=$lt_outputfile.exe
9515 lt_tool_outputfile=$lt_tool_outputfile.exe
9516 ;;
9517 esac~
9518 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9519 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9520 $RM "$lt_outputfile.manifest";
9521 fi'
9522 ;;
9523 *)
9524 # Assume MSVC wrapper
9525 hardcode_libdir_flag_spec=' '
9526 allow_undefined_flag=unsupported
9527 # Tell ltmain to make .lib files, not .a files.
9528 libext=lib
9529 # Tell ltmain to make .dll files, not .so files.
9530 shrext_cmds=.dll
9531 # FIXME: Setting linknames here is a bad hack.
9532 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9533 # The linker will automatically build a .lib file if we build a DLL.
9534 old_archive_from_new_cmds='true'
9535 # FIXME: Should let the user specify the lib program.
9536 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9537 enable_shared_with_static_runtimes=yes
9538 ;;
9539 esac
9540 ;;
9541
9542 darwin* | rhapsody*)
9543
9544
9545 archive_cmds_need_lc=no
9546 hardcode_direct=no
9547 hardcode_automatic=yes
9548 hardcode_shlibpath_var=unsupported
9549 if test yes = "$lt_cv_ld_force_load"; then
9550 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\"`'
9551
9552 else
9553 whole_archive_flag_spec=''
9554 fi
9555 link_all_deplibs=yes
9556 allow_undefined_flag=$_lt_dar_allow_undefined
9557 case $cc_basename in
9558 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9559 *) _lt_dar_can_shared=$GCC ;;
9560 esac
9561 if test yes = "$_lt_dar_can_shared"; then
9562 output_verbose_link_cmd=func_echo_all
9563 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9564 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9565 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"
9566 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"
9567
9568 else
9569 ld_shlibs=no
9570 fi
9571
9572 ;;
9573
9574 dgux*)
9575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576 hardcode_libdir_flag_spec='-L$libdir'
9577 hardcode_shlibpath_var=no
9578 ;;
9579
9580 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9581 # support. Future versions do this automatically, but an explicit c++rt0.o
9582 # does not break anything, and helps significantly (at the cost of a little
9583 # extra space).
9584 freebsd2.2*)
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9586 hardcode_libdir_flag_spec='-R$libdir'
9587 hardcode_direct=yes
9588 hardcode_shlibpath_var=no
9589 ;;
9590
9591 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9592 freebsd2.*)
9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9594 hardcode_direct=yes
9595 hardcode_minus_L=yes
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9600 freebsd* | dragonfly*)
9601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9602 hardcode_libdir_flag_spec='-R$libdir'
9603 hardcode_direct=yes
9604 hardcode_shlibpath_var=no
9605 ;;
9606
9607 hpux9*)
9608 if test yes = "$GCC"; then
9609 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'
9610 else
9611 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'
9612 fi
9613 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9614 hardcode_libdir_separator=:
9615 hardcode_direct=yes
9616
9617 # hardcode_minus_L: Not really in the search PATH,
9618 # but as the default location of the library.
9619 hardcode_minus_L=yes
9620 export_dynamic_flag_spec='$wl-E'
9621 ;;
9622
9623 hpux10*)
9624 if test yes,no = "$GCC,$with_gnu_ld"; then
9625 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9626 else
9627 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9628 fi
9629 if test no = "$with_gnu_ld"; then
9630 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9631 hardcode_libdir_separator=:
9632 hardcode_direct=yes
9633 hardcode_direct_absolute=yes
9634 export_dynamic_flag_spec='$wl-E'
9635 # hardcode_minus_L: Not really in the search PATH,
9636 # but as the default location of the library.
9637 hardcode_minus_L=yes
9638 fi
9639 ;;
9640
9641 hpux11*)
9642 if test yes,no = "$GCC,$with_gnu_ld"; then
9643 case $host_cpu in
9644 hppa*64*)
9645 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 ;;
9647 ia64*)
9648 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9649 ;;
9650 *)
9651 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9652 ;;
9653 esac
9654 else
9655 case $host_cpu in
9656 hppa*64*)
9657 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9658 ;;
9659 ia64*)
9660 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9661 ;;
9662 *)
9663
9664 # Older versions of the 11.00 compiler do not understand -b yet
9665 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9667 $as_echo_n "checking if $CC understands -b... " >&6; }
9668 if ${lt_cv_prog_compiler__b+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 lt_cv_prog_compiler__b=no
9672 save_LDFLAGS=$LDFLAGS
9673 LDFLAGS="$LDFLAGS -b"
9674 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9676 # The linker can only warn and ignore the option if not recognized
9677 # So say no if there are warnings
9678 if test -s conftest.err; then
9679 # Append any errors to the config.log.
9680 cat conftest.err 1>&5
9681 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9683 if diff conftest.exp conftest.er2 >/dev/null; then
9684 lt_cv_prog_compiler__b=yes
9685 fi
9686 else
9687 lt_cv_prog_compiler__b=yes
9688 fi
9689 fi
9690 $RM -r conftest*
9691 LDFLAGS=$save_LDFLAGS
9692
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9695 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9696
9697 if test yes = "$lt_cv_prog_compiler__b"; then
9698 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 else
9700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 fi
9702
9703 ;;
9704 esac
9705 fi
9706 if test no = "$with_gnu_ld"; then
9707 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9708 hardcode_libdir_separator=:
9709
9710 case $host_cpu in
9711 hppa*64*|ia64*)
9712 hardcode_direct=no
9713 hardcode_shlibpath_var=no
9714 ;;
9715 *)
9716 hardcode_direct=yes
9717 hardcode_direct_absolute=yes
9718 export_dynamic_flag_spec='$wl-E'
9719
9720 # hardcode_minus_L: Not really in the search PATH,
9721 # but as the default location of the library.
9722 hardcode_minus_L=yes
9723 ;;
9724 esac
9725 fi
9726 ;;
9727
9728 irix5* | irix6* | nonstopux*)
9729 if test yes = "$GCC"; then
9730 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'
9731 # Try to use the -exported_symbol ld option, if it does not
9732 # work, assume that -exports_file does not work either and
9733 # implicitly export all symbols.
9734 # This should be the same for all languages, so no per-tag cache variable.
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9736 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9737 if ${lt_cv_irix_exported_symbol+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739 else
9740 save_LDFLAGS=$LDFLAGS
9741 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 int foo (void) { return 0; }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 lt_cv_irix_exported_symbol=yes
9748 else
9749 lt_cv_irix_exported_symbol=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LDFLAGS=$save_LDFLAGS
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9756 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9757 if test yes = "$lt_cv_irix_exported_symbol"; then
9758 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'
9759 fi
9760 link_all_deplibs=no
9761 else
9762 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'
9763 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'
9764 fi
9765 archive_cmds_need_lc='no'
9766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9767 hardcode_libdir_separator=:
9768 inherit_rpath=yes
9769 link_all_deplibs=yes
9770 ;;
9771
9772 linux*)
9773 case $cc_basename in
9774 tcc*)
9775 # Fabrice Bellard et al's Tiny C Compiler
9776 ld_shlibs=yes
9777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9778 ;;
9779 esac
9780 ;;
9781
9782 netbsd* | netbsdelf*-gnu)
9783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9785 else
9786 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9787 fi
9788 hardcode_libdir_flag_spec='-R$libdir'
9789 hardcode_direct=yes
9790 hardcode_shlibpath_var=no
9791 ;;
9792
9793 newsos6)
9794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9795 hardcode_direct=yes
9796 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9797 hardcode_libdir_separator=:
9798 hardcode_shlibpath_var=no
9799 ;;
9800
9801 *nto* | *qnx*)
9802 ;;
9803
9804 openbsd* | bitrig*)
9805 if test -f /usr/libexec/ld.so; then
9806 hardcode_direct=yes
9807 hardcode_shlibpath_var=no
9808 hardcode_direct_absolute=yes
9809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9812 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9813 export_dynamic_flag_spec='$wl-E'
9814 else
9815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9816 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9817 fi
9818 else
9819 ld_shlibs=no
9820 fi
9821 ;;
9822
9823 os2*)
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 hardcode_minus_L=yes
9826 allow_undefined_flag=unsupported
9827 shrext_cmds=.dll
9828 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9829 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9830 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9831 $ECHO EXPORTS >> $output_objdir/$libname.def~
9832 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9833 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9834 emximp -o $lib $output_objdir/$libname.def'
9835 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9836 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9837 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9838 $ECHO EXPORTS >> $output_objdir/$libname.def~
9839 prefix_cmds="$SED"~
9840 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9841 prefix_cmds="$prefix_cmds -e 1d";
9842 fi~
9843 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9844 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9845 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9846 emximp -o $lib $output_objdir/$libname.def'
9847 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9848 enable_shared_with_static_runtimes=yes
9849 ;;
9850
9851 osf3*)
9852 if test yes = "$GCC"; then
9853 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9854 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'
9855 else
9856 allow_undefined_flag=' -expect_unresolved \*'
9857 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'
9858 fi
9859 archive_cmds_need_lc='no'
9860 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9861 hardcode_libdir_separator=:
9862 ;;
9863
9864 osf4* | osf5*) # as osf3* with the addition of -msym flag
9865 if test yes = "$GCC"; then
9866 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9867 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'
9868 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9869 else
9870 allow_undefined_flag=' -expect_unresolved \*'
9871 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'
9872 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~
9873 $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'
9874
9875 # Both c and cxx compiler support -rpath directly
9876 hardcode_libdir_flag_spec='-rpath $libdir'
9877 fi
9878 archive_cmds_need_lc='no'
9879 hardcode_libdir_separator=:
9880 ;;
9881
9882 solaris*)
9883 no_undefined_flag=' -z defs'
9884 if test yes = "$GCC"; then
9885 wlarc='$wl'
9886 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9888 $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'
9889 else
9890 case `$CC -V 2>&1` in
9891 *"Compilers 5.0"*)
9892 wlarc=''
9893 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9895 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9896 ;;
9897 *)
9898 wlarc='$wl'
9899 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9900 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9901 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9902 ;;
9903 esac
9904 fi
9905 hardcode_libdir_flag_spec='-R$libdir'
9906 hardcode_shlibpath_var=no
9907 case $host_os in
9908 solaris2.[0-5] | solaris2.[0-5].*) ;;
9909 *)
9910 # The compiler driver will combine and reorder linker options,
9911 # but understands '-z linker_flag'. GCC discards it without '$wl',
9912 # but is careful enough not to reorder.
9913 # Supported since Solaris 2.6 (maybe 2.5.1?)
9914 if test yes = "$GCC"; then
9915 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9916 else
9917 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9918 fi
9919 ;;
9920 esac
9921 link_all_deplibs=yes
9922 ;;
9923
9924 sunos4*)
9925 if test sequent = "$host_vendor"; then
9926 # Use $CC to link under sequent, because it throws in some extra .o
9927 # files that make .init and .fini sections work.
9928 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9929 else
9930 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9931 fi
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 hardcode_direct=yes
9934 hardcode_minus_L=yes
9935 hardcode_shlibpath_var=no
9936 ;;
9937
9938 sysv4)
9939 case $host_vendor in
9940 sni)
9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_direct=yes # is this really true???
9943 ;;
9944 siemens)
9945 ## LD is ld it makes a PLAMLIB
9946 ## CC just makes a GrossModule.
9947 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9948 reload_cmds='$CC -r -o $output$reload_objs'
9949 hardcode_direct=no
9950 ;;
9951 motorola)
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9954 ;;
9955 esac
9956 runpath_var='LD_RUN_PATH'
9957 hardcode_shlibpath_var=no
9958 ;;
9959
9960 sysv4.3*)
9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_shlibpath_var=no
9963 export_dynamic_flag_spec='-Bexport'
9964 ;;
9965
9966 sysv4*MP*)
9967 if test -d /usr/nec; then
9968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_shlibpath_var=no
9970 runpath_var=LD_RUN_PATH
9971 hardcode_runpath_var=yes
9972 ld_shlibs=yes
9973 fi
9974 ;;
9975
9976 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9977 no_undefined_flag='$wl-z,text'
9978 archive_cmds_need_lc=no
9979 hardcode_shlibpath_var=no
9980 runpath_var='LD_RUN_PATH'
9981
9982 if test yes = "$GCC"; then
9983 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9985 else
9986 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 fi
9989 ;;
9990
9991 sysv5* | sco3.2v5* | sco5v6*)
9992 # Note: We CANNOT use -z defs as we might desire, because we do not
9993 # link with -lc, and that would cause any symbols used from libc to
9994 # always be unresolved, which means just about no library would
9995 # ever link correctly. If we're not using GNU ld we use -z text
9996 # though, which does catch some bad symbols but isn't as heavy-handed
9997 # as -z defs.
9998 no_undefined_flag='$wl-z,text'
9999 allow_undefined_flag='$wl-z,nodefs'
10000 archive_cmds_need_lc=no
10001 hardcode_shlibpath_var=no
10002 hardcode_libdir_flag_spec='$wl-R,$libdir'
10003 hardcode_libdir_separator=':'
10004 link_all_deplibs=yes
10005 export_dynamic_flag_spec='$wl-Bexport'
10006 runpath_var='LD_RUN_PATH'
10007
10008 if test yes = "$GCC"; then
10009 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10011 else
10012 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 fi
10015 ;;
10016
10017 uts4*)
10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_libdir_flag_spec='-L$libdir'
10020 hardcode_shlibpath_var=no
10021 ;;
10022
10023 *)
10024 ld_shlibs=no
10025 ;;
10026 esac
10027
10028 if test sni = "$host_vendor"; then
10029 case $host in
10030 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10031 export_dynamic_flag_spec='$wl-Blargedynsym'
10032 ;;
10033 esac
10034 fi
10035 fi
10036
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10038 $as_echo "$ld_shlibs" >&6; }
10039 test no = "$ld_shlibs" && can_build_shared=no
10040
10041 with_gnu_ld=$with_gnu_ld
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057 #
10058 # Do we need to explicitly link libc?
10059 #
10060 case "x$archive_cmds_need_lc" in
10061 x|xyes)
10062 # Assume -lc should be added
10063 archive_cmds_need_lc=yes
10064
10065 if test yes,yes = "$GCC,$enable_shared"; then
10066 case $archive_cmds in
10067 *'~'*)
10068 # FIXME: we may have to deal with multi-command sequences.
10069 ;;
10070 '$CC '*)
10071 # Test whether the compiler implicitly links with -lc since on some
10072 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10073 # to ld, don't add -lc before -lgcc.
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10075 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10076 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 $RM conftest*
10080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10081
10082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10083 (eval $ac_compile) 2>&5
10084 ac_status=$?
10085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10086 test $ac_status = 0; } 2>conftest.err; then
10087 soname=conftest
10088 lib=conftest
10089 libobjs=conftest.$ac_objext
10090 deplibs=
10091 wl=$lt_prog_compiler_wl
10092 pic_flag=$lt_prog_compiler_pic
10093 compiler_flags=-v
10094 linker_flags=-v
10095 verstring=
10096 output_objdir=.
10097 libname=conftest
10098 lt_save_allow_undefined_flag=$allow_undefined_flag
10099 allow_undefined_flag=
10100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10101 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10102 ac_status=$?
10103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10104 test $ac_status = 0; }
10105 then
10106 lt_cv_archive_cmds_need_lc=no
10107 else
10108 lt_cv_archive_cmds_need_lc=yes
10109 fi
10110 allow_undefined_flag=$lt_save_allow_undefined_flag
10111 else
10112 cat conftest.err 1>&5
10113 fi
10114 $RM conftest*
10115
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10118 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10119 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10120 ;;
10121 esac
10122 fi
10123 ;;
10124 esac
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10278 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10279
10280 if test yes = "$GCC"; then
10281 case $host_os in
10282 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10283 *) lt_awk_arg='/^libraries:/' ;;
10284 esac
10285 case $host_os in
10286 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10287 *) lt_sed_strip_eq='s|=/|/|g' ;;
10288 esac
10289 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10290 case $lt_search_path_spec in
10291 *\;*)
10292 # if the path contains ";" then we assume it to be the separator
10293 # otherwise default to the standard path separator (i.e. ":") - it is
10294 # assumed that no part of a normal pathname contains ";" but that should
10295 # okay in the real world where ";" in dirpaths is itself problematic.
10296 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10297 ;;
10298 *)
10299 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10300 ;;
10301 esac
10302 # Ok, now we have the path, separated by spaces, we can step through it
10303 # and add multilib dir if necessary...
10304 lt_tmp_lt_search_path_spec=
10305 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10306 # ...but if some path component already ends with the multilib dir we assume
10307 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10308 case "$lt_multi_os_dir; $lt_search_path_spec " in
10309 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10310 lt_multi_os_dir=
10311 ;;
10312 esac
10313 for lt_sys_path in $lt_search_path_spec; do
10314 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10316 elif test -n "$lt_multi_os_dir"; then
10317 test -d "$lt_sys_path" && \
10318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10319 fi
10320 done
10321 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10322 BEGIN {RS = " "; FS = "/|\n";} {
10323 lt_foo = "";
10324 lt_count = 0;
10325 for (lt_i = NF; lt_i > 0; lt_i--) {
10326 if ($lt_i != "" && $lt_i != ".") {
10327 if ($lt_i == "..") {
10328 lt_count++;
10329 } else {
10330 if (lt_count == 0) {
10331 lt_foo = "/" $lt_i lt_foo;
10332 } else {
10333 lt_count--;
10334 }
10335 }
10336 }
10337 }
10338 if (lt_foo != "") { lt_freq[lt_foo]++; }
10339 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10340 }'`
10341 # AWK program above erroneously prepends '/' to C:/dos/paths
10342 # for these hosts.
10343 case $host_os in
10344 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10345 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10346 esac
10347 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10348 else
10349 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10350 fi
10351 library_names_spec=
10352 libname_spec='lib$name'
10353 soname_spec=
10354 shrext_cmds=.so
10355 postinstall_cmds=
10356 postuninstall_cmds=
10357 finish_cmds=
10358 finish_eval=
10359 shlibpath_var=
10360 shlibpath_overrides_runpath=unknown
10361 version_type=none
10362 dynamic_linker="$host_os ld.so"
10363 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10364 need_lib_prefix=unknown
10365 hardcode_into_libs=no
10366
10367 # when you set need_version to no, make sure it does not cause -set_version
10368 # flags to be left without arguments
10369 need_version=unknown
10370
10371
10372
10373 case $host_os in
10374 aix3*)
10375 version_type=linux # correct to gnu/linux during the next big refactor
10376 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10377 shlibpath_var=LIBPATH
10378
10379 # AIX 3 has no versioning support, so we append a major version to the name.
10380 soname_spec='$libname$release$shared_ext$major'
10381 ;;
10382
10383 aix[4-9]*)
10384 version_type=linux # correct to gnu/linux during the next big refactor
10385 need_lib_prefix=no
10386 need_version=no
10387 hardcode_into_libs=yes
10388 if test ia64 = "$host_cpu"; then
10389 # AIX 5 supports IA64
10390 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 else
10393 # With GCC up to 2.95.x, collect2 would create an import file
10394 # for dependence libraries. The import file would start with
10395 # the line '#! .'. This would cause the generated library to
10396 # depend on '.', always an invalid library. This was fixed in
10397 # development snapshots of GCC prior to 3.0.
10398 case $host_os in
10399 aix4 | aix4.[01] | aix4.[01].*)
10400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10401 echo ' yes '
10402 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10403 :
10404 else
10405 can_build_shared=no
10406 fi
10407 ;;
10408 esac
10409 # Using Import Files as archive members, it is possible to support
10410 # filename-based versioning of shared library archives on AIX. While
10411 # this would work for both with and without runtime linking, it will
10412 # prevent static linking of such archives. So we do filename-based
10413 # shared library versioning with .so extension only, which is used
10414 # when both runtime linking and shared linking is enabled.
10415 # Unfortunately, runtime linking may impact performance, so we do
10416 # not want this to be the default eventually. Also, we use the
10417 # versioned .so libs for executables only if there is the -brtl
10418 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10419 # To allow for filename-based versioning support, we need to create
10420 # libNAME.so.V as an archive file, containing:
10421 # *) an Import File, referring to the versioned filename of the
10422 # archive as well as the shared archive member, telling the
10423 # bitwidth (32 or 64) of that shared object, and providing the
10424 # list of exported symbols of that shared object, eventually
10425 # decorated with the 'weak' keyword
10426 # *) the shared object with the F_LOADONLY flag set, to really avoid
10427 # it being seen by the linker.
10428 # At run time we better use the real file rather than another symlink,
10429 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10430
10431 case $with_aix_soname,$aix_use_runtimelinking in
10432 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10433 # soname into executable. Probably we can add versioning support to
10434 # collect2, so additional links can be useful in future.
10435 aix,yes) # traditional libtool
10436 dynamic_linker='AIX unversionable lib.so'
10437 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10438 # instead of lib<name>.a to let people know that these are not
10439 # typical AIX shared libraries.
10440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10441 ;;
10442 aix,no) # traditional AIX only
10443 dynamic_linker='AIX lib.a(lib.so.V)'
10444 # We preserve .a as extension for shared libraries through AIX4.2
10445 # and later when we are not doing run time linking.
10446 library_names_spec='$libname$release.a $libname.a'
10447 soname_spec='$libname$release$shared_ext$major'
10448 ;;
10449 svr4,*) # full svr4 only
10450 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10451 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10452 # We do not specify a path in Import Files, so LIBPATH fires.
10453 shlibpath_overrides_runpath=yes
10454 ;;
10455 *,yes) # both, prefer svr4
10456 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10457 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10458 # unpreferred sharedlib libNAME.a needs extra handling
10459 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"'
10460 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"'
10461 # We do not specify a path in Import Files, so LIBPATH fires.
10462 shlibpath_overrides_runpath=yes
10463 ;;
10464 *,no) # both, prefer aix
10465 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10466 library_names_spec='$libname$release.a $libname.a'
10467 soname_spec='$libname$release$shared_ext$major'
10468 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10469 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)'
10470 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"'
10471 ;;
10472 esac
10473 shlibpath_var=LIBPATH
10474 fi
10475 ;;
10476
10477 amigaos*)
10478 case $host_cpu in
10479 powerpc)
10480 # Since July 2007 AmigaOS4 officially supports .so libraries.
10481 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10483 ;;
10484 m68k)
10485 library_names_spec='$libname.ixlibrary $libname.a'
10486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10487 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'
10488 ;;
10489 esac
10490 ;;
10491
10492 beos*)
10493 library_names_spec='$libname$shared_ext'
10494 dynamic_linker="$host_os ld.so"
10495 shlibpath_var=LIBRARY_PATH
10496 ;;
10497
10498 bsdi[45]*)
10499 version_type=linux # correct to gnu/linux during the next big refactor
10500 need_version=no
10501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10502 soname_spec='$libname$release$shared_ext$major'
10503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10507 # the default ld.so.conf also contains /usr/contrib/lib and
10508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10509 # libtool to hard-code these into programs
10510 ;;
10511
10512 cygwin* | mingw* | pw32* | cegcc*)
10513 version_type=windows
10514 shrext_cmds=.dll
10515 need_version=no
10516 need_lib_prefix=no
10517
10518 case $GCC,$cc_basename in
10519 yes,*)
10520 # gcc
10521 library_names_spec='$libname.dll.a'
10522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10523 postinstall_cmds='base_file=`basename \$file`~
10524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10525 dldir=$destdir/`dirname \$dlpath`~
10526 test -d \$dldir || mkdir -p \$dldir~
10527 $install_prog $dir/$dlname \$dldir/$dlname~
10528 chmod a+x \$dldir/$dlname~
10529 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10530 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10531 fi'
10532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10533 dlpath=$dir/\$dldll~
10534 $RM \$dlpath'
10535 shlibpath_overrides_runpath=yes
10536
10537 case $host_os in
10538 cygwin*)
10539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10540 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10541
10542 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10543 ;;
10544 mingw* | cegcc*)
10545 # MinGW DLLs use traditional 'lib' prefix
10546 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10547 ;;
10548 pw32*)
10549 # pw32 DLLs use 'pw' prefix rather than 'lib'
10550 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10551 ;;
10552 esac
10553 dynamic_linker='Win32 ld.exe'
10554 ;;
10555
10556 *,cl*)
10557 # Native MSVC
10558 libname_spec='$name'
10559 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10560 library_names_spec='$libname.dll.lib'
10561
10562 case $build_os in
10563 mingw*)
10564 sys_lib_search_path_spec=
10565 lt_save_ifs=$IFS
10566 IFS=';'
10567 for lt_path in $LIB
10568 do
10569 IFS=$lt_save_ifs
10570 # Let DOS variable expansion print the short 8.3 style file name.
10571 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10572 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10573 done
10574 IFS=$lt_save_ifs
10575 # Convert to MSYS style.
10576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10577 ;;
10578 cygwin*)
10579 # Convert to unix form, then to dos form, then back to unix form
10580 # but this time dos style (no spaces!) so that the unix form looks
10581 # like /cygdrive/c/PROGRA~1:/cygdr...
10582 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10583 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10584 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10585 ;;
10586 *)
10587 sys_lib_search_path_spec=$LIB
10588 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10589 # It is most probably a Windows format PATH.
10590 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10591 else
10592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10593 fi
10594 # FIXME: find the short name or the path components, as spaces are
10595 # common. (e.g. "Program Files" -> "PROGRA~1")
10596 ;;
10597 esac
10598
10599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10600 postinstall_cmds='base_file=`basename \$file`~
10601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10602 dldir=$destdir/`dirname \$dlpath`~
10603 test -d \$dldir || mkdir -p \$dldir~
10604 $install_prog $dir/$dlname \$dldir/$dlname'
10605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10606 dlpath=$dir/\$dldll~
10607 $RM \$dlpath'
10608 shlibpath_overrides_runpath=yes
10609 dynamic_linker='Win32 link.exe'
10610 ;;
10611
10612 *)
10613 # Assume MSVC wrapper
10614 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10615 dynamic_linker='Win32 ld.exe'
10616 ;;
10617 esac
10618 # FIXME: first we should search . and the directory the executable is in
10619 shlibpath_var=PATH
10620 ;;
10621
10622 darwin* | rhapsody*)
10623 dynamic_linker="$host_os dyld"
10624 version_type=darwin
10625 need_lib_prefix=no
10626 need_version=no
10627 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10628 soname_spec='$libname$release$major$shared_ext'
10629 shlibpath_overrides_runpath=yes
10630 shlibpath_var=DYLD_LIBRARY_PATH
10631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10632
10633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10634 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10635 ;;
10636
10637 dgux*)
10638 version_type=linux # correct to gnu/linux during the next big refactor
10639 need_lib_prefix=no
10640 need_version=no
10641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10642 soname_spec='$libname$release$shared_ext$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 ;;
10645
10646 freebsd* | dragonfly*)
10647 # DragonFly does not have aout. When/if they implement a new
10648 # versioning mechanism, adjust this.
10649 if test -x /usr/bin/objformat; then
10650 objformat=`/usr/bin/objformat`
10651 else
10652 case $host_os in
10653 freebsd[23].*) objformat=aout ;;
10654 *) objformat=elf ;;
10655 esac
10656 fi
10657 version_type=freebsd-$objformat
10658 case $version_type in
10659 freebsd-elf*)
10660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10661 soname_spec='$libname$release$shared_ext$major'
10662 need_version=no
10663 need_lib_prefix=no
10664 ;;
10665 freebsd-*)
10666 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10667 need_version=yes
10668 ;;
10669 esac
10670 shlibpath_var=LD_LIBRARY_PATH
10671 case $host_os in
10672 freebsd2.*)
10673 shlibpath_overrides_runpath=yes
10674 ;;
10675 freebsd3.[01]* | freebsdelf3.[01]*)
10676 shlibpath_overrides_runpath=yes
10677 hardcode_into_libs=yes
10678 ;;
10679 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10680 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10681 shlibpath_overrides_runpath=no
10682 hardcode_into_libs=yes
10683 ;;
10684 *) # from 4.6 on, and DragonFly
10685 shlibpath_overrides_runpath=yes
10686 hardcode_into_libs=yes
10687 ;;
10688 esac
10689 ;;
10690
10691 haiku*)
10692 version_type=linux # correct to gnu/linux during the next big refactor
10693 need_lib_prefix=no
10694 need_version=no
10695 dynamic_linker="$host_os runtime_loader"
10696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10697 soname_spec='$libname$release$shared_ext$major'
10698 shlibpath_var=LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10700 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10701 hardcode_into_libs=yes
10702 ;;
10703
10704 hpux9* | hpux10* | hpux11*)
10705 # Give a soname corresponding to the major version so that dld.sl refuses to
10706 # link against other versions.
10707 version_type=sunos
10708 need_lib_prefix=no
10709 need_version=no
10710 case $host_cpu in
10711 ia64*)
10712 shrext_cmds='.so'
10713 hardcode_into_libs=yes
10714 dynamic_linker="$host_os dld.so"
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10718 soname_spec='$libname$release$shared_ext$major'
10719 if test 32 = "$HPUX_IA64_MODE"; then
10720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10721 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10722 else
10723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10724 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10725 fi
10726 ;;
10727 hppa*64*)
10728 shrext_cmds='.sl'
10729 hardcode_into_libs=yes
10730 dynamic_linker="$host_os dld.sl"
10731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10734 soname_spec='$libname$release$shared_ext$major'
10735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10737 ;;
10738 *)
10739 shrext_cmds='.sl'
10740 dynamic_linker="$host_os dld.sl"
10741 shlibpath_var=SHLIB_PATH
10742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744 soname_spec='$libname$release$shared_ext$major'
10745 ;;
10746 esac
10747 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10748 postinstall_cmds='chmod 555 $lib'
10749 # or fails outright, so override atomically:
10750 install_override_mode=555
10751 ;;
10752
10753 interix[3-9]*)
10754 version_type=linux # correct to gnu/linux during the next big refactor
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10758 soname_spec='$libname$release$shared_ext$major'
10759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 shlibpath_overrides_runpath=no
10762 hardcode_into_libs=yes
10763 ;;
10764
10765 irix5* | irix6* | nonstopux*)
10766 case $host_os in
10767 nonstopux*) version_type=nonstopux ;;
10768 *)
10769 if test yes = "$lt_cv_prog_gnu_ld"; then
10770 version_type=linux # correct to gnu/linux during the next big refactor
10771 else
10772 version_type=irix
10773 fi ;;
10774 esac
10775 need_lib_prefix=no
10776 need_version=no
10777 soname_spec='$libname$release$shared_ext$major'
10778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10779 case $host_os in
10780 irix5* | nonstopux*)
10781 libsuff= shlibsuff=
10782 ;;
10783 *)
10784 case $LD in # libtool.m4 will add one of these switches to LD
10785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10786 libsuff= shlibsuff= libmagic=32-bit;;
10787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10788 libsuff=32 shlibsuff=N32 libmagic=N32;;
10789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10791 *) libsuff= shlibsuff= libmagic=never-match;;
10792 esac
10793 ;;
10794 esac
10795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10796 shlibpath_overrides_runpath=no
10797 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10798 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10799 hardcode_into_libs=yes
10800 ;;
10801
10802 # No shared lib support for Linux oldld, aout, or coff.
10803 linux*oldld* | linux*aout* | linux*coff*)
10804 dynamic_linker=no
10805 ;;
10806
10807 linux*android*)
10808 version_type=none # Android doesn't support versioned libraries.
10809 need_lib_prefix=no
10810 need_version=no
10811 library_names_spec='$libname$release$shared_ext'
10812 soname_spec='$libname$release$shared_ext'
10813 finish_cmds=
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=yes
10816
10817 # This implies no fast_install, which is unacceptable.
10818 # Some rework will be needed to allow for fast_install
10819 # before this can be enabled.
10820 hardcode_into_libs=yes
10821
10822 dynamic_linker='Android linker'
10823 # Don't embed -rpath directories since the linker doesn't support them.
10824 hardcode_libdir_flag_spec='-L$libdir'
10825 ;;
10826
10827 # This must be glibc/ELF.
10828 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10829 version_type=linux # correct to gnu/linux during the next big refactor
10830 need_lib_prefix=no
10831 need_version=no
10832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10833 soname_spec='$libname$release$shared_ext$major'
10834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 shlibpath_overrides_runpath=no
10837
10838 # Some binutils ld are patched to set DT_RUNPATH
10839 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 lt_cv_shlibpath_overrides_runpath=no
10843 save_LDFLAGS=$LDFLAGS
10844 save_libdir=$libdir
10845 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10846 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849
10850 int
10851 main ()
10852 {
10853
10854 ;
10855 return 0;
10856 }
10857 _ACEOF
10858 if ac_fn_c_try_link "$LINENO"; then :
10859 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10860 lt_cv_shlibpath_overrides_runpath=yes
10861 fi
10862 fi
10863 rm -f core conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 LDFLAGS=$save_LDFLAGS
10866 libdir=$save_libdir
10867
10868 fi
10869
10870 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10871
10872 # This implies no fast_install, which is unacceptable.
10873 # Some rework will be needed to allow for fast_install
10874 # before this can be enabled.
10875 hardcode_into_libs=yes
10876
10877 # Ideally, we could use ldconfig to report *all* directores which are
10878 # searched for libraries, however this is still not possible. Aside from not
10879 # being certain /sbin/ldconfig is available, command
10880 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10881 # even though it is searched at run-time. Try to do the best guess by
10882 # appending ld.so.conf contents (and includes) to the search path.
10883 if test -f /etc/ld.so.conf; then
10884 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' ' '`
10885 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10886 fi
10887
10888 # We used to test for /lib/ld.so.1 and disable shared libraries on
10889 # powerpc, because MkLinux only supported shared libraries with the
10890 # GNU dynamic linker. Since this was broken with cross compilers,
10891 # most powerpc-linux boxes support dynamic linking these days and
10892 # people can always --disable-shared, the test was removed, and we
10893 # assume the GNU/Linux dynamic linker is in use.
10894 dynamic_linker='GNU/Linux ld.so'
10895 ;;
10896
10897 netbsdelf*-gnu)
10898 version_type=linux
10899 need_lib_prefix=no
10900 need_version=no
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=no
10905 hardcode_into_libs=yes
10906 dynamic_linker='NetBSD ld.elf_so'
10907 ;;
10908
10909 netbsd*)
10910 version_type=sunos
10911 need_lib_prefix=no
10912 need_version=no
10913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10914 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10916 dynamic_linker='NetBSD (a.out) ld.so'
10917 else
10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919 soname_spec='$libname$release$shared_ext$major'
10920 dynamic_linker='NetBSD ld.elf_so'
10921 fi
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 hardcode_into_libs=yes
10925 ;;
10926
10927 newsos6)
10928 version_type=linux # correct to gnu/linux during the next big refactor
10929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=yes
10932 ;;
10933
10934 *nto* | *qnx*)
10935 version_type=qnx
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939 soname_spec='$libname$release$shared_ext$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=no
10942 hardcode_into_libs=yes
10943 dynamic_linker='ldqnx.so'
10944 ;;
10945
10946 openbsd* | bitrig*)
10947 version_type=sunos
10948 sys_lib_dlsearch_path_spec=/usr/lib
10949 need_lib_prefix=no
10950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10951 need_version=no
10952 else
10953 need_version=yes
10954 fi
10955 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=yes
10959 ;;
10960
10961 os2*)
10962 libname_spec='$name'
10963 version_type=windows
10964 shrext_cmds=.dll
10965 need_version=no
10966 need_lib_prefix=no
10967 # OS/2 can only load a DLL with a base name of 8 characters or less.
10968 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10969 v=$($ECHO $release$versuffix | tr -d .-);
10970 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10971 $ECHO $n$v`$shared_ext'
10972 library_names_spec='${libname}_dll.$libext'
10973 dynamic_linker='OS/2 ld.exe'
10974 shlibpath_var=BEGINLIBPATH
10975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10977 postinstall_cmds='base_file=`basename \$file`~
10978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10979 dldir=$destdir/`dirname \$dlpath`~
10980 test -d \$dldir || mkdir -p \$dldir~
10981 $install_prog $dir/$dlname \$dldir/$dlname~
10982 chmod a+x \$dldir/$dlname~
10983 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10984 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10985 fi'
10986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10987 dlpath=$dir/\$dldll~
10988 $RM \$dlpath'
10989 ;;
10990
10991 osf3* | osf4* | osf5*)
10992 version_type=osf
10993 need_lib_prefix=no
10994 need_version=no
10995 soname_spec='$libname$release$shared_ext$major'
10996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11000 ;;
11001
11002 rdos*)
11003 dynamic_linker=no
11004 ;;
11005
11006 solaris*)
11007 version_type=linux # correct to gnu/linux during the next big refactor
11008 need_lib_prefix=no
11009 need_version=no
11010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11011 soname_spec='$libname$release$shared_ext$major'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=yes
11014 hardcode_into_libs=yes
11015 # ldd complains unless libraries are executable
11016 postinstall_cmds='chmod +x $lib'
11017 ;;
11018
11019 sunos4*)
11020 version_type=sunos
11021 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=yes
11025 if test yes = "$with_gnu_ld"; then
11026 need_lib_prefix=no
11027 fi
11028 need_version=yes
11029 ;;
11030
11031 sysv4 | sysv4.3*)
11032 version_type=linux # correct to gnu/linux during the next big refactor
11033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034 soname_spec='$libname$release$shared_ext$major'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 case $host_vendor in
11037 sni)
11038 shlibpath_overrides_runpath=no
11039 need_lib_prefix=no
11040 runpath_var=LD_RUN_PATH
11041 ;;
11042 siemens)
11043 need_lib_prefix=no
11044 ;;
11045 motorola)
11046 need_lib_prefix=no
11047 need_version=no
11048 shlibpath_overrides_runpath=no
11049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11050 ;;
11051 esac
11052 ;;
11053
11054 sysv4*MP*)
11055 if test -d /usr/nec; then
11056 version_type=linux # correct to gnu/linux during the next big refactor
11057 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11058 soname_spec='$libname$shared_ext.$major'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 fi
11061 ;;
11062
11063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11064 version_type=sco
11065 need_lib_prefix=no
11066 need_version=no
11067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11068 soname_spec='$libname$release$shared_ext$major'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=yes
11071 hardcode_into_libs=yes
11072 if test yes = "$with_gnu_ld"; then
11073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11074 else
11075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11076 case $host_os in
11077 sco3.2v5*)
11078 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11079 ;;
11080 esac
11081 fi
11082 sys_lib_dlsearch_path_spec='/usr/lib'
11083 ;;
11084
11085 tpf*)
11086 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11087 version_type=linux # correct to gnu/linux during the next big refactor
11088 need_lib_prefix=no
11089 need_version=no
11090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 shlibpath_overrides_runpath=no
11093 hardcode_into_libs=yes
11094 ;;
11095
11096 uts4*)
11097 version_type=linux # correct to gnu/linux during the next big refactor
11098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099 soname_spec='$libname$release$shared_ext$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 ;;
11102
11103 *)
11104 dynamic_linker=no
11105 ;;
11106 esac
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11108 $as_echo "$dynamic_linker" >&6; }
11109 test no = "$dynamic_linker" && can_build_shared=no
11110
11111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11112 if test yes = "$GCC"; then
11113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11114 fi
11115
11116 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11117 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11118 fi
11119
11120 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11121 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11122 fi
11123
11124 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11125 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11126
11127 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11128 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11129
11130 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11131 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11230 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11231 hardcode_action=
11232 if test -n "$hardcode_libdir_flag_spec" ||
11233 test -n "$runpath_var" ||
11234 test yes = "$hardcode_automatic"; then
11235
11236 # We can hardcode non-existent directories.
11237 if test no != "$hardcode_direct" &&
11238 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11239 # have to relink, otherwise we might link with an installed library
11240 # when we should be linking with a yet-to-be-installed one
11241 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11242 test no != "$hardcode_minus_L"; then
11243 # Linking always hardcodes the temporary library directory.
11244 hardcode_action=relink
11245 else
11246 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11247 hardcode_action=immediate
11248 fi
11249 else
11250 # We cannot hardcode anything, or else we can only hardcode existing
11251 # directories.
11252 hardcode_action=unsupported
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11255 $as_echo "$hardcode_action" >&6; }
11256
11257 if test relink = "$hardcode_action" ||
11258 test yes = "$inherit_rpath"; then
11259 # Fast installation is not supported
11260 enable_fast_install=no
11261 elif test yes = "$shlibpath_overrides_runpath" ||
11262 test no = "$enable_shared"; then
11263 # Fast installation is not necessary
11264 enable_fast_install=needless
11265 fi
11266
11267
11268
11269
11270
11271
11272 if test yes != "$enable_dlopen"; then
11273 enable_dlopen=unknown
11274 enable_dlopen_self=unknown
11275 enable_dlopen_self_static=unknown
11276 else
11277 lt_cv_dlopen=no
11278 lt_cv_dlopen_libs=
11279
11280 case $host_os in
11281 beos*)
11282 lt_cv_dlopen=load_add_on
11283 lt_cv_dlopen_libs=
11284 lt_cv_dlopen_self=yes
11285 ;;
11286
11287 mingw* | pw32* | cegcc*)
11288 lt_cv_dlopen=LoadLibrary
11289 lt_cv_dlopen_libs=
11290 ;;
11291
11292 cygwin*)
11293 lt_cv_dlopen=dlopen
11294 lt_cv_dlopen_libs=
11295 ;;
11296
11297 darwin*)
11298 # if libdl is installed we need to link against it
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11300 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11301 if ${ac_cv_lib_dl_dlopen+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 ac_check_lib_save_LIBS=$LIBS
11305 LIBS="-ldl $LIBS"
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char dlopen ();
11316 int
11317 main ()
11318 {
11319 return dlopen ();
11320 ;
11321 return 0;
11322 }
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 ac_cv_lib_dl_dlopen=yes
11326 else
11327 ac_cv_lib_dl_dlopen=no
11328 fi
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11334 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11335 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11336 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11337 else
11338
11339 lt_cv_dlopen=dyld
11340 lt_cv_dlopen_libs=
11341 lt_cv_dlopen_self=yes
11342
11343 fi
11344
11345 ;;
11346
11347 tpf*)
11348 # Don't try to run any link tests for TPF. We know it's impossible
11349 # because TPF is a cross-compiler, and we know how we open DSOs.
11350 lt_cv_dlopen=dlopen
11351 lt_cv_dlopen_libs=
11352 lt_cv_dlopen_self=no
11353 ;;
11354
11355 *)
11356 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11357 if test "x$ac_cv_func_shl_load" = xyes; then :
11358 lt_cv_dlopen=shl_load
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11361 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11362 if ${ac_cv_lib_dld_shl_load+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 ac_check_lib_save_LIBS=$LIBS
11366 LIBS="-ldld $LIBS"
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369
11370 /* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 char shl_load ();
11377 int
11378 main ()
11379 {
11380 return shl_load ();
11381 ;
11382 return 0;
11383 }
11384 _ACEOF
11385 if ac_fn_c_try_link "$LINENO"; then :
11386 ac_cv_lib_dld_shl_load=yes
11387 else
11388 ac_cv_lib_dld_shl_load=no
11389 fi
11390 rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11392 LIBS=$ac_check_lib_save_LIBS
11393 fi
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11395 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11396 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11397 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11398 else
11399 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11400 if test "x$ac_cv_func_dlopen" = xyes; then :
11401 lt_cv_dlopen=dlopen
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11404 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11405 if ${ac_cv_lib_dl_dlopen+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-ldl $LIBS"
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11412
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char dlopen ();
11420 int
11421 main ()
11422 {
11423 return dlopen ();
11424 ;
11425 return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 ac_cv_lib_dl_dlopen=yes
11430 else
11431 ac_cv_lib_dl_dlopen=no
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11438 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11439 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11440 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11443 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11444 if ${ac_cv_lib_svld_dlopen+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 ac_check_lib_save_LIBS=$LIBS
11448 LIBS="-lsvld $LIBS"
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11451
11452 /* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11455 #ifdef __cplusplus
11456 extern "C"
11457 #endif
11458 char dlopen ();
11459 int
11460 main ()
11461 {
11462 return dlopen ();
11463 ;
11464 return 0;
11465 }
11466 _ACEOF
11467 if ac_fn_c_try_link "$LINENO"; then :
11468 ac_cv_lib_svld_dlopen=yes
11469 else
11470 ac_cv_lib_svld_dlopen=no
11471 fi
11472 rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11475 fi
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11477 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11478 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11479 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11482 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11483 if ${ac_cv_lib_dld_dld_link+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_check_lib_save_LIBS=$LIBS
11487 LIBS="-ldld $LIBS"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11490
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char dld_link ();
11498 int
11499 main ()
11500 {
11501 return dld_link ();
11502 ;
11503 return 0;
11504 }
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507 ac_cv_lib_dld_dld_link=yes
11508 else
11509 ac_cv_lib_dld_dld_link=no
11510 fi
11511 rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513 LIBS=$ac_check_lib_save_LIBS
11514 fi
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11516 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11517 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11518 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11519 fi
11520
11521
11522 fi
11523
11524
11525 fi
11526
11527
11528 fi
11529
11530
11531 fi
11532
11533
11534 fi
11535
11536 ;;
11537 esac
11538
11539 if test no = "$lt_cv_dlopen"; then
11540 enable_dlopen=no
11541 else
11542 enable_dlopen=yes
11543 fi
11544
11545 case $lt_cv_dlopen in
11546 dlopen)
11547 save_CPPFLAGS=$CPPFLAGS
11548 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11549
11550 save_LDFLAGS=$LDFLAGS
11551 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11552
11553 save_LIBS=$LIBS
11554 LIBS="$lt_cv_dlopen_libs $LIBS"
11555
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11557 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11558 if ${lt_cv_dlopen_self+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 if test yes = "$cross_compiling"; then :
11562 lt_cv_dlopen_self=cross
11563 else
11564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11565 lt_status=$lt_dlunknown
11566 cat > conftest.$ac_ext <<_LT_EOF
11567 #line $LINENO "configure"
11568 #include "confdefs.h"
11569
11570 #if HAVE_DLFCN_H
11571 #include <dlfcn.h>
11572 #endif
11573
11574 #include <stdio.h>
11575
11576 #ifdef RTLD_GLOBAL
11577 # define LT_DLGLOBAL RTLD_GLOBAL
11578 #else
11579 # ifdef DL_GLOBAL
11580 # define LT_DLGLOBAL DL_GLOBAL
11581 # else
11582 # define LT_DLGLOBAL 0
11583 # endif
11584 #endif
11585
11586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11587 find out it does not work in some platform. */
11588 #ifndef LT_DLLAZY_OR_NOW
11589 # ifdef RTLD_LAZY
11590 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11591 # else
11592 # ifdef DL_LAZY
11593 # define LT_DLLAZY_OR_NOW DL_LAZY
11594 # else
11595 # ifdef RTLD_NOW
11596 # define LT_DLLAZY_OR_NOW RTLD_NOW
11597 # else
11598 # ifdef DL_NOW
11599 # define LT_DLLAZY_OR_NOW DL_NOW
11600 # else
11601 # define LT_DLLAZY_OR_NOW 0
11602 # endif
11603 # endif
11604 # endif
11605 # endif
11606 #endif
11607
11608 /* When -fvisibility=hidden is used, assume the code has been annotated
11609 correspondingly for the symbols needed. */
11610 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11611 int fnord () __attribute__((visibility("default")));
11612 #endif
11613
11614 int fnord () { return 42; }
11615 int main ()
11616 {
11617 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11618 int status = $lt_dlunknown;
11619
11620 if (self)
11621 {
11622 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11623 else
11624 {
11625 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11626 else puts (dlerror ());
11627 }
11628 /* dlclose (self); */
11629 }
11630 else
11631 puts (dlerror ());
11632
11633 return status;
11634 }
11635 _LT_EOF
11636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11637 (eval $ac_link) 2>&5
11638 ac_status=$?
11639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11640 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11641 (./conftest; exit; ) >&5 2>/dev/null
11642 lt_status=$?
11643 case x$lt_status in
11644 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11645 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11646 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11647 esac
11648 else :
11649 # compilation failed
11650 lt_cv_dlopen_self=no
11651 fi
11652 fi
11653 rm -fr conftest*
11654
11655
11656 fi
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11658 $as_echo "$lt_cv_dlopen_self" >&6; }
11659
11660 if test yes = "$lt_cv_dlopen_self"; then
11661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11663 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11664 if ${lt_cv_dlopen_self_static+:} false; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 if test yes = "$cross_compiling"; then :
11668 lt_cv_dlopen_self_static=cross
11669 else
11670 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11671 lt_status=$lt_dlunknown
11672 cat > conftest.$ac_ext <<_LT_EOF
11673 #line $LINENO "configure"
11674 #include "confdefs.h"
11675
11676 #if HAVE_DLFCN_H
11677 #include <dlfcn.h>
11678 #endif
11679
11680 #include <stdio.h>
11681
11682 #ifdef RTLD_GLOBAL
11683 # define LT_DLGLOBAL RTLD_GLOBAL
11684 #else
11685 # ifdef DL_GLOBAL
11686 # define LT_DLGLOBAL DL_GLOBAL
11687 # else
11688 # define LT_DLGLOBAL 0
11689 # endif
11690 #endif
11691
11692 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11693 find out it does not work in some platform. */
11694 #ifndef LT_DLLAZY_OR_NOW
11695 # ifdef RTLD_LAZY
11696 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11697 # else
11698 # ifdef DL_LAZY
11699 # define LT_DLLAZY_OR_NOW DL_LAZY
11700 # else
11701 # ifdef RTLD_NOW
11702 # define LT_DLLAZY_OR_NOW RTLD_NOW
11703 # else
11704 # ifdef DL_NOW
11705 # define LT_DLLAZY_OR_NOW DL_NOW
11706 # else
11707 # define LT_DLLAZY_OR_NOW 0
11708 # endif
11709 # endif
11710 # endif
11711 # endif
11712 #endif
11713
11714 /* When -fvisibility=hidden is used, assume the code has been annotated
11715 correspondingly for the symbols needed. */
11716 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11717 int fnord () __attribute__((visibility("default")));
11718 #endif
11719
11720 int fnord () { return 42; }
11721 int main ()
11722 {
11723 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11724 int status = $lt_dlunknown;
11725
11726 if (self)
11727 {
11728 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11729 else
11730 {
11731 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11732 else puts (dlerror ());
11733 }
11734 /* dlclose (self); */
11735 }
11736 else
11737 puts (dlerror ());
11738
11739 return status;
11740 }
11741 _LT_EOF
11742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11743 (eval $ac_link) 2>&5
11744 ac_status=$?
11745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11746 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11747 (./conftest; exit; ) >&5 2>/dev/null
11748 lt_status=$?
11749 case x$lt_status in
11750 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11751 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11752 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11753 esac
11754 else :
11755 # compilation failed
11756 lt_cv_dlopen_self_static=no
11757 fi
11758 fi
11759 rm -fr conftest*
11760
11761
11762 fi
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11764 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11765 fi
11766
11767 CPPFLAGS=$save_CPPFLAGS
11768 LDFLAGS=$save_LDFLAGS
11769 LIBS=$save_LIBS
11770 ;;
11771 esac
11772
11773 case $lt_cv_dlopen_self in
11774 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11775 *) enable_dlopen_self=unknown ;;
11776 esac
11777
11778 case $lt_cv_dlopen_self_static in
11779 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11780 *) enable_dlopen_self_static=unknown ;;
11781 esac
11782 fi
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800 striplib=
11801 old_striplib=
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11803 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11804 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11805 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11806 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11808 $as_echo "yes" >&6; }
11809 else
11810 # FIXME - insert some real tests, host_os isn't really good enough
11811 case $host_os in
11812 darwin*)
11813 if test -n "$STRIP"; then
11814 striplib="$STRIP -x"
11815 old_striplib="$STRIP -S"
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11817 $as_echo "yes" >&6; }
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11821 fi
11822 ;;
11823 *)
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 ;;
11827 esac
11828 fi
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841 # Report what library types will actually be built
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11843 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11845 $as_echo "$can_build_shared" >&6; }
11846
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11848 $as_echo_n "checking whether to build shared libraries... " >&6; }
11849 test no = "$can_build_shared" && enable_shared=no
11850
11851 # On AIX, shared libraries and static libraries use the same namespace, and
11852 # are all built from PIC.
11853 case $host_os in
11854 aix3*)
11855 test yes = "$enable_shared" && enable_static=no
11856 if test -n "$RANLIB"; then
11857 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11858 postinstall_cmds='$RANLIB $lib'
11859 fi
11860 ;;
11861
11862 aix[4-9]*)
11863 if test ia64 != "$host_cpu"; then
11864 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11865 yes,aix,yes) ;; # shared object as lib.so file only
11866 yes,svr4,*) ;; # shared object as lib.so archive member only
11867 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11868 esac
11869 fi
11870 ;;
11871 esac
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11873 $as_echo "$enable_shared" >&6; }
11874
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11876 $as_echo_n "checking whether to build static libraries... " >&6; }
11877 # Make sure either enable_shared or enable_static is yes.
11878 test yes = "$enable_shared" || enable_static=yes
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11880 $as_echo "$enable_static" >&6; }
11881
11882
11883
11884
11885 fi
11886 ac_ext=c
11887 ac_cpp='$CPP $CPPFLAGS'
11888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11891
11892 CC=$lt_save_CC
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908 ac_config_commands="$ac_config_commands libtool"
11909
11910
11911
11912
11913 # Only expand once:
11914
11915
11916
11917
11918
11919 # Check whether --with-font was given.
11920 if test "${with_font+set}" = set; then :
11921 withval=$with_font; with_font=$withval
11922 else
11923 with_font=yes
11924 fi
11925
11926
11927
11928 # Check whether --with-examples was given.
11929 if test "${with_examples+set}" = set; then :
11930 withval=$with_examples; with_examples=$withval
11931 else
11932 with_examples=yes
11933 fi
11934
11935
11936 if test "$with_font" = yes; then
11937 COND_FONT_TRUE=
11938 COND_FONT_FALSE='#'
11939 else
11940 COND_FONT_TRUE='#'
11941 COND_FONT_FALSE=
11942 fi
11943
11944 if test "$with_examples" = yes; then
11945 COND_EXAMPLES_TRUE=
11946 COND_EXAMPLES_FALSE='#'
11947 else
11948 COND_EXAMPLES_TRUE='#'
11949 COND_EXAMPLES_FALSE=
11950 fi
11951
11952
11953 ac_ext=c
11954 ac_cpp='$CPP $CPPFLAGS'
11955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958 if test -n "$ac_tool_prefix"; then
11959 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11960 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962 $as_echo_n "checking for $ac_word... " >&6; }
11963 if ${ac_cv_prog_CC+:} false; then :
11964 $as_echo_n "(cached) " >&6
11965 else
11966 if test -n "$CC"; then
11967 ac_cv_prog_CC="$CC" # Let the user override the test.
11968 else
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11971 do
11972 IFS=$as_save_IFS
11973 test -z "$as_dir" && as_dir=.
11974 for ac_exec_ext in '' $ac_executable_extensions; do
11975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978 break 2
11979 fi
11980 done
11981 done
11982 IFS=$as_save_IFS
11983
11984 fi
11985 fi
11986 CC=$ac_cv_prog_CC
11987 if test -n "$CC"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11989 $as_echo "$CC" >&6; }
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 fi
11994
11995
11996 fi
11997 if test -z "$ac_cv_prog_CC"; then
11998 ac_ct_CC=$CC
11999 # Extract the first word of "gcc", so it can be a program name with args.
12000 set dummy gcc; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 if test -n "$ac_ct_CC"; then
12007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12008 else
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12011 do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12016 ac_cv_prog_ac_ct_CC="gcc"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12018 break 2
12019 fi
12020 done
12021 done
12022 IFS=$as_save_IFS
12023
12024 fi
12025 fi
12026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12027 if test -n "$ac_ct_CC"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12029 $as_echo "$ac_ct_CC" >&6; }
12030 else
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12033 fi
12034
12035 if test "x$ac_ct_CC" = x; then
12036 CC=""
12037 else
12038 case $cross_compiling:$ac_tool_warned in
12039 yes:)
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12042 ac_tool_warned=yes ;;
12043 esac
12044 CC=$ac_ct_CC
12045 fi
12046 else
12047 CC="$ac_cv_prog_CC"
12048 fi
12049
12050 if test -z "$CC"; then
12051 if test -n "$ac_tool_prefix"; then
12052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12053 set dummy ${ac_tool_prefix}cc; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if ${ac_cv_prog_CC+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 if test -n "$CC"; then
12060 ac_cv_prog_CC="$CC" # Let the user override the test.
12061 else
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12064 do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12069 ac_cv_prog_CC="${ac_tool_prefix}cc"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12072 fi
12073 done
12074 done
12075 IFS=$as_save_IFS
12076
12077 fi
12078 fi
12079 CC=$ac_cv_prog_CC
12080 if test -n "$CC"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12082 $as_echo "$CC" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12086 fi
12087
12088
12089 fi
12090 fi
12091 if test -z "$CC"; then
12092 # Extract the first word of "cc", so it can be a program name with args.
12093 set dummy cc; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if ${ac_cv_prog_CC+:} false; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 if test -n "$CC"; then
12100 ac_cv_prog_CC="$CC" # Let the user override the test.
12101 else
12102 ac_prog_rejected=no
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12105 do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12110 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12111 ac_prog_rejected=yes
12112 continue
12113 fi
12114 ac_cv_prog_CC="cc"
12115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 break 2
12117 fi
12118 done
12119 done
12120 IFS=$as_save_IFS
12121
12122 if test $ac_prog_rejected = yes; then
12123 # We found a bogon in the path, so make sure we never use it.
12124 set dummy $ac_cv_prog_CC
12125 shift
12126 if test $# != 0; then
12127 # We chose a different compiler from the bogus one.
12128 # However, it has the same basename, so the bogon will be chosen
12129 # first if we set CC to just the basename; use the full file name.
12130 shift
12131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12132 fi
12133 fi
12134 fi
12135 fi
12136 CC=$ac_cv_prog_CC
12137 if test -n "$CC"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12139 $as_echo "$CC" >&6; }
12140 else
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12143 fi
12144
12145
12146 fi
12147 if test -z "$CC"; then
12148 if test -n "$ac_tool_prefix"; then
12149 for ac_prog in cl.exe
12150 do
12151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_prog_CC+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 if test -n "$CC"; then
12159 ac_cv_prog_CC="$CC" # Let the user override the test.
12160 else
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12163 do
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12171 fi
12172 done
12173 done
12174 IFS=$as_save_IFS
12175
12176 fi
12177 fi
12178 CC=$ac_cv_prog_CC
12179 if test -n "$CC"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12181 $as_echo "$CC" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 fi
12186
12187
12188 test -n "$CC" && break
12189 done
12190 fi
12191 if test -z "$CC"; then
12192 ac_ct_CC=$CC
12193 for ac_prog in cl.exe
12194 do
12195 # Extract the first word of "$ac_prog", so it can be a program name with args.
12196 set dummy $ac_prog; ac_word=$2
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12198 $as_echo_n "checking for $ac_word... " >&6; }
12199 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 if test -n "$ac_ct_CC"; then
12203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12204 else
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206 for as_dir in $PATH
12207 do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12212 ac_cv_prog_ac_ct_CC="$ac_prog"
12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 break 2
12215 fi
12216 done
12217 done
12218 IFS=$as_save_IFS
12219
12220 fi
12221 fi
12222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12223 if test -n "$ac_ct_CC"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12225 $as_echo "$ac_ct_CC" >&6; }
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230
12231
12232 test -n "$ac_ct_CC" && break
12233 done
12234
12235 if test "x$ac_ct_CC" = x; then
12236 CC=""
12237 else
12238 case $cross_compiling:$ac_tool_warned in
12239 yes:)
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12242 ac_tool_warned=yes ;;
12243 esac
12244 CC=$ac_ct_CC
12245 fi
12246 fi
12247
12248 fi
12249
12250
12251 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12253 as_fn_error $? "no acceptable C compiler found in \$PATH
12254 See \`config.log' for more details" "$LINENO" 5; }
12255
12256 # Provide some information about the compiler.
12257 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12258 set X $ac_compile
12259 ac_compiler=$2
12260 for ac_option in --version -v -V -qversion; do
12261 { { ac_try="$ac_compiler $ac_option >&5"
12262 case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265 esac
12266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12267 $as_echo "$ac_try_echo"; } >&5
12268 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12269 ac_status=$?
12270 if test -s conftest.err; then
12271 sed '10a\
12272 ... rest of stderr output deleted ...
12273 10q' conftest.err >conftest.er1
12274 cat conftest.er1 >&5
12275 fi
12276 rm -f conftest.er1 conftest.err
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; }
12279 done
12280
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12282 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12283 if ${ac_cv_c_compiler_gnu+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288
12289 int
12290 main ()
12291 {
12292 #ifndef __GNUC__
12293 choke me
12294 #endif
12295
12296 ;
12297 return 0;
12298 }
12299 _ACEOF
12300 if ac_fn_c_try_compile "$LINENO"; then :
12301 ac_compiler_gnu=yes
12302 else
12303 ac_compiler_gnu=no
12304 fi
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12307
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12310 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12311 if test $ac_compiler_gnu = yes; then
12312 GCC=yes
12313 else
12314 GCC=
12315 fi
12316 ac_test_CFLAGS=${CFLAGS+set}
12317 ac_save_CFLAGS=$CFLAGS
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12319 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12320 if ${ac_cv_prog_cc_g+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 ac_save_c_werror_flag=$ac_c_werror_flag
12324 ac_c_werror_flag=yes
12325 ac_cv_prog_cc_g=no
12326 CFLAGS="-g"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329
12330 int
12331 main ()
12332 {
12333
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_compile "$LINENO"; then :
12339 ac_cv_prog_cc_g=yes
12340 else
12341 CFLAGS=""
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344
12345 int
12346 main ()
12347 {
12348
12349 ;
12350 return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_c_try_compile "$LINENO"; then :
12354
12355 else
12356 ac_c_werror_flag=$ac_save_c_werror_flag
12357 CFLAGS="-g"
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12360
12361 int
12362 main ()
12363 {
12364
12365 ;
12366 return 0;
12367 }
12368 _ACEOF
12369 if ac_fn_c_try_compile "$LINENO"; then :
12370 ac_cv_prog_cc_g=yes
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 ac_c_werror_flag=$ac_save_c_werror_flag
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12380 $as_echo "$ac_cv_prog_cc_g" >&6; }
12381 if test "$ac_test_CFLAGS" = set; then
12382 CFLAGS=$ac_save_CFLAGS
12383 elif test $ac_cv_prog_cc_g = yes; then
12384 if test "$GCC" = yes; then
12385 CFLAGS="-g -O2"
12386 else
12387 CFLAGS="-g"
12388 fi
12389 else
12390 if test "$GCC" = yes; then
12391 CFLAGS="-O2"
12392 else
12393 CFLAGS=
12394 fi
12395 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12397 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12398 if ${ac_cv_prog_cc_c89+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 ac_cv_prog_cc_c89=no
12402 ac_save_CC=$CC
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 #include <stdarg.h>
12406 #include <stdio.h>
12407 struct stat;
12408 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12409 struct buf { int x; };
12410 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12411 static char *e (p, i)
12412 char **p;
12413 int i;
12414 {
12415 return p[i];
12416 }
12417 static char *f (char * (*g) (char **, int), char **p, ...)
12418 {
12419 char *s;
12420 va_list v;
12421 va_start (v,p);
12422 s = g (p, va_arg (v,int));
12423 va_end (v);
12424 return s;
12425 }
12426
12427 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12428 function prototypes and stuff, but not '\xHH' hex character constants.
12429 These don't provoke an error unfortunately, instead are silently treated
12430 as 'x'. The following induces an error, until -std is added to get
12431 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12432 array size at least. It's necessary to write '\x00'==0 to get something
12433 that's true only with -std. */
12434 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12435
12436 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12437 inside strings and character constants. */
12438 #define FOO(x) 'x'
12439 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12440
12441 int test (int i, double x);
12442 struct s1 {int (*f) (int a);};
12443 struct s2 {int (*f) (double a);};
12444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12445 int argc;
12446 char **argv;
12447 int
12448 main ()
12449 {
12450 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12451 ;
12452 return 0;
12453 }
12454 _ACEOF
12455 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12456 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12457 do
12458 CC="$ac_save_CC $ac_arg"
12459 if ac_fn_c_try_compile "$LINENO"; then :
12460 ac_cv_prog_cc_c89=$ac_arg
12461 fi
12462 rm -f core conftest.err conftest.$ac_objext
12463 test "x$ac_cv_prog_cc_c89" != "xno" && break
12464 done
12465 rm -f conftest.$ac_ext
12466 CC=$ac_save_CC
12467
12468 fi
12469 # AC_CACHE_VAL
12470 case "x$ac_cv_prog_cc_c89" in
12471 x)
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12473 $as_echo "none needed" >&6; } ;;
12474 xno)
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12476 $as_echo "unsupported" >&6; } ;;
12477 *)
12478 CC="$CC $ac_cv_prog_cc_c89"
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12480 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12481 esac
12482 if test "x$ac_cv_prog_cc_c89" != xno; then :
12483
12484 fi
12485
12486 ac_ext=c
12487 ac_cpp='$CPP $CPPFLAGS'
12488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12491
12492 ac_ext=c
12493 ac_cpp='$CPP $CPPFLAGS'
12494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12498 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12499 if ${am_cv_prog_cc_c_o+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504
12505 int
12506 main ()
12507 {
12508
12509 ;
12510 return 0;
12511 }
12512 _ACEOF
12513 # Make sure it works both with $CC and with simple cc.
12514 # Following AC_PROG_CC_C_O, we do the test twice because some
12515 # compilers refuse to overwrite an existing .o file with -o,
12516 # though they will create one.
12517 am_cv_prog_cc_c_o=yes
12518 for am_i in 1 2; do
12519 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12520 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } \
12524 && test -f conftest2.$ac_objext; then
12525 : OK
12526 else
12527 am_cv_prog_cc_c_o=no
12528 break
12529 fi
12530 done
12531 rm -f core conftest*
12532 unset am_i
12533 fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12535 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12536 if test "$am_cv_prog_cc_c_o" != yes; then
12537 # Losing compiler, so override with the script.
12538 # FIXME: It is wrong to rewrite CC.
12539 # But if we don't then we get into trouble of one sort or another.
12540 # A longer-term fix would be to have automake use am__CC in this case,
12541 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12542 CC="$am_aux_dir/compile $CC"
12543 fi
12544 ac_ext=c
12545 ac_cpp='$CPP $CPPFLAGS'
12546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12549
12550
12551 depcc="$CC" am_compiler_list=
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12554 $as_echo_n "checking dependency style of $depcc... " >&6; }
12555 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12559 # We make a subdir and do the tests there. Otherwise we can end up
12560 # making bogus files that we don't know about and never remove. For
12561 # instance it was reported that on HP-UX the gcc test will end up
12562 # making a dummy file named 'D' -- because '-MD' means "put the output
12563 # in D".
12564 rm -rf conftest.dir
12565 mkdir conftest.dir
12566 # Copy depcomp to subdir because otherwise we won't find it if we're
12567 # using a relative directory.
12568 cp "$am_depcomp" conftest.dir
12569 cd conftest.dir
12570 # We will build objects and dependencies in a subdirectory because
12571 # it helps to detect inapplicable dependency modes. For instance
12572 # both Tru64's cc and ICC support -MD to output dependencies as a
12573 # side effect of compilation, but ICC will put the dependencies in
12574 # the current directory while Tru64 will put them in the object
12575 # directory.
12576 mkdir sub
12577
12578 am_cv_CC_dependencies_compiler_type=none
12579 if test "$am_compiler_list" = ""; then
12580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12581 fi
12582 am__universal=false
12583 case " $depcc " in #(
12584 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12585 esac
12586
12587 for depmode in $am_compiler_list; do
12588 # Setup a source with many dependencies, because some compilers
12589 # like to wrap large dependency lists on column 80 (with \), and
12590 # we should not choose a depcomp mode which is confused by this.
12591 #
12592 # We need to recreate these files for each test, as the compiler may
12593 # overwrite some of them when testing with obscure command lines.
12594 # This happens at least with the AIX C compiler.
12595 : > sub/conftest.c
12596 for i in 1 2 3 4 5 6; do
12597 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12598 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12599 # Solaris 10 /bin/sh.
12600 echo '/* dummy */' > sub/conftst$i.h
12601 done
12602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12603
12604 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12605 # mode. It turns out that the SunPro C++ compiler does not properly
12606 # handle '-M -o', and we need to detect this. Also, some Intel
12607 # versions had trouble with output in subdirs.
12608 am__obj=sub/conftest.${OBJEXT-o}
12609 am__minus_obj="-o $am__obj"
12610 case $depmode in
12611 gcc)
12612 # This depmode causes a compiler race in universal mode.
12613 test "$am__universal" = false || continue
12614 ;;
12615 nosideeffect)
12616 # After this tag, mechanisms are not by side-effect, so they'll
12617 # only be used when explicitly requested.
12618 if test "x$enable_dependency_tracking" = xyes; then
12619 continue
12620 else
12621 break
12622 fi
12623 ;;
12624 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12625 # This compiler won't grok '-c -o', but also, the minuso test has
12626 # not run yet. These depmodes are late enough in the game, and
12627 # so weak that their functioning should not be impacted.
12628 am__obj=conftest.${OBJEXT-o}
12629 am__minus_obj=
12630 ;;
12631 none) break ;;
12632 esac
12633 if depmode=$depmode \
12634 source=sub/conftest.c object=$am__obj \
12635 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12636 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12637 >/dev/null 2>conftest.err &&
12638 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12639 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12640 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12641 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12642 # icc doesn't choke on unknown options, it will just issue warnings
12643 # or remarks (even with -Werror). So we grep stderr for any message
12644 # that says an option was ignored or not supported.
12645 # When given -MP, icc 7.0 and 7.1 complain thusly:
12646 # icc: Command line warning: ignoring option '-M'; no argument required
12647 # The diagnosis changed in icc 8.0:
12648 # icc: Command line remark: option '-MP' not supported
12649 if (grep 'ignoring option' conftest.err ||
12650 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12651 am_cv_CC_dependencies_compiler_type=$depmode
12652 break
12653 fi
12654 fi
12655 done
12656
12657 cd ..
12658 rm -rf conftest.dir
12659 else
12660 am_cv_CC_dependencies_compiler_type=none
12661 fi
12662
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12665 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12666 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12667
12668 if
12669 test "x$enable_dependency_tracking" != xno \
12670 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12671 am__fastdepCC_TRUE=
12672 am__fastdepCC_FALSE='#'
12673 else
12674 am__fastdepCC_TRUE='#'
12675 am__fastdepCC_FALSE=
12676 fi
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12689 if test -n "$ac_tool_prefix"; then
12690 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12691 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 case $PKG_CONFIG in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12700 ;;
12701 *)
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH
12704 do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12712 fi
12713 done
12714 done
12715 IFS=$as_save_IFS
12716
12717 ;;
12718 esac
12719 fi
12720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12721 if test -n "$PKG_CONFIG"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12723 $as_echo "$PKG_CONFIG" >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728
12729
12730 fi
12731 if test -z "$ac_cv_path_PKG_CONFIG"; then
12732 ac_pt_PKG_CONFIG=$PKG_CONFIG
12733 # Extract the first word of "pkg-config", so it can be a program name with args.
12734 set dummy pkg-config; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 case $ac_pt_PKG_CONFIG in
12741 [\\/]* | ?:[\\/]*)
12742 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12743 ;;
12744 *)
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $PATH
12747 do
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756 done
12757 done
12758 IFS=$as_save_IFS
12759
12760 ;;
12761 esac
12762 fi
12763 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12764 if test -n "$ac_pt_PKG_CONFIG"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12766 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12770 fi
12771
12772 if test "x$ac_pt_PKG_CONFIG" = x; then
12773 PKG_CONFIG=""
12774 else
12775 case $cross_compiling:$ac_tool_warned in
12776 yes:)
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12779 ac_tool_warned=yes ;;
12780 esac
12781 PKG_CONFIG=$ac_pt_PKG_CONFIG
12782 fi
12783 else
12784 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12785 fi
12786
12787 fi
12788 if test -n "$PKG_CONFIG"; then
12789 _pkg_min_version=0.9.0
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12791 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12792 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12794 $as_echo "yes" >&6; }
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12798 PKG_CONFIG=""
12799 fi
12800 fi
12801
12802 pkg_failed=no
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
12804 $as_echo_n "checking for x11... " >&6; }
12805
12806 if test -n "$X11_CFLAGS"; then
12807 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12808 elif test -n "$PKG_CONFIG"; then
12809 if test -n "$PKG_CONFIG" && \
12810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12811 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12812 ac_status=$?
12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12814 test $ac_status = 0; }; then
12815 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
12816 test "x$?" != "x0" && pkg_failed=yes
12817 else
12818 pkg_failed=yes
12819 fi
12820 else
12821 pkg_failed=untried
12822 fi
12823 if test -n "$X11_LIBS"; then
12824 pkg_cv_X11_LIBS="$X11_LIBS"
12825 elif test -n "$PKG_CONFIG"; then
12826 if test -n "$PKG_CONFIG" && \
12827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12828 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12829 ac_status=$?
12830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831 test $ac_status = 0; }; then
12832 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
12833 test "x$?" != "x0" && pkg_failed=yes
12834 else
12835 pkg_failed=yes
12836 fi
12837 else
12838 pkg_failed=untried
12839 fi
12840
12841
12842
12843 if test $pkg_failed = yes; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12846
12847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12848 _pkg_short_errors_supported=yes
12849 else
12850 _pkg_short_errors_supported=no
12851 fi
12852 if test $_pkg_short_errors_supported = yes; then
12853 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
12854 else
12855 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
12856 fi
12857 # Put the nasty error message in config.log where it belongs
12858 echo "$X11_PKG_ERRORS" >&5
12859
12860 as_fn_error $? "Package requirements (x11) were not met:
12861
12862 $X11_PKG_ERRORS
12863
12864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12865 installed software in a non-standard prefix.
12866
12867 Alternatively, you may set the environment variables X11_CFLAGS
12868 and X11_LIBS to avoid the need to call pkg-config.
12869 See the pkg-config man page for more details." "$LINENO" 5
12870 elif test $pkg_failed = untried; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12875 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12876 is in your PATH or set the PKG_CONFIG environment variable to the full
12877 path to pkg-config.
12878
12879 Alternatively, you may set the environment variables X11_CFLAGS
12880 and X11_LIBS to avoid the need to call pkg-config.
12881 See the pkg-config man page for more details.
12882
12883 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12884 See \`config.log' for more details" "$LINENO" 5; }
12885 else
12886 X11_CFLAGS=$pkg_cv_X11_CFLAGS
12887 X11_LIBS=$pkg_cv_X11_LIBS
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12889 $as_echo "yes" >&6; }
12890
12891 fi
12892
12893 pkg_failed=no
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xext" >&5
12895 $as_echo_n "checking for xext... " >&6; }
12896
12897 if test -n "$Xext_CFLAGS"; then
12898 pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
12899 elif test -n "$PKG_CONFIG"; then
12900 if test -n "$PKG_CONFIG" && \
12901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
12902 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
12903 ac_status=$?
12904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12905 test $ac_status = 0; }; then
12906 pkg_cv_Xext_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
12907 test "x$?" != "x0" && pkg_failed=yes
12908 else
12909 pkg_failed=yes
12910 fi
12911 else
12912 pkg_failed=untried
12913 fi
12914 if test -n "$Xext_LIBS"; then
12915 pkg_cv_Xext_LIBS="$Xext_LIBS"
12916 elif test -n "$PKG_CONFIG"; then
12917 if test -n "$PKG_CONFIG" && \
12918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
12919 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
12920 ac_status=$?
12921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922 test $ac_status = 0; }; then
12923 pkg_cv_Xext_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
12924 test "x$?" != "x0" && pkg_failed=yes
12925 else
12926 pkg_failed=yes
12927 fi
12928 else
12929 pkg_failed=untried
12930 fi
12931
12932
12933
12934 if test $pkg_failed = yes; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937
12938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12939 _pkg_short_errors_supported=yes
12940 else
12941 _pkg_short_errors_supported=no
12942 fi
12943 if test $_pkg_short_errors_supported = yes; then
12944 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
12945 else
12946 Xext_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
12947 fi
12948 # Put the nasty error message in config.log where it belongs
12949 echo "$Xext_PKG_ERRORS" >&5
12950
12951 as_fn_error $? "Package requirements (xext) were not met:
12952
12953 $Xext_PKG_ERRORS
12954
12955 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12956 installed software in a non-standard prefix.
12957
12958 Alternatively, you may set the environment variables Xext_CFLAGS
12959 and Xext_LIBS to avoid the need to call pkg-config.
12960 See the pkg-config man page for more details." "$LINENO" 5
12961 elif test $pkg_failed = untried; then
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12966 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12967 is in your PATH or set the PKG_CONFIG environment variable to the full
12968 path to pkg-config.
12969
12970 Alternatively, you may set the environment variables Xext_CFLAGS
12971 and Xext_LIBS to avoid the need to call pkg-config.
12972 See the pkg-config man page for more details.
12973
12974 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12975 See \`config.log' for more details" "$LINENO" 5; }
12976 else
12977 Xext_CFLAGS=$pkg_cv_Xext_CFLAGS
12978 Xext_LIBS=$pkg_cv_Xext_LIBS
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12980 $as_echo "yes" >&6; }
12981
12982 fi
12983
12984 pkg_failed=no
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xpm" >&5
12986 $as_echo_n "checking for xpm... " >&6; }
12987
12988 if test -n "$xpm_CFLAGS"; then
12989 pkg_cv_xpm_CFLAGS="$xpm_CFLAGS"
12990 elif test -n "$PKG_CONFIG"; then
12991 if test -n "$PKG_CONFIG" && \
12992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
12993 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
12994 ac_status=$?
12995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12996 test $ac_status = 0; }; then
12997 pkg_cv_xpm_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
12998 test "x$?" != "x0" && pkg_failed=yes
12999 else
13000 pkg_failed=yes
13001 fi
13002 else
13003 pkg_failed=untried
13004 fi
13005 if test -n "$xpm_LIBS"; then
13006 pkg_cv_xpm_LIBS="$xpm_LIBS"
13007 elif test -n "$PKG_CONFIG"; then
13008 if test -n "$PKG_CONFIG" && \
13009 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
13010 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
13011 ac_status=$?
13012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13013 test $ac_status = 0; }; then
13014 pkg_cv_xpm_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
13015 test "x$?" != "x0" && pkg_failed=yes
13016 else
13017 pkg_failed=yes
13018 fi
13019 else
13020 pkg_failed=untried
13021 fi
13022
13023
13024
13025 if test $pkg_failed = yes; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13028
13029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13030 _pkg_short_errors_supported=yes
13031 else
13032 _pkg_short_errors_supported=no
13033 fi
13034 if test $_pkg_short_errors_supported = yes; then
13035 xpm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
13036 else
13037 xpm_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
13038 fi
13039 # Put the nasty error message in config.log where it belongs
13040 echo "$xpm_PKG_ERRORS" >&5
13041
13042 as_fn_error $? "Package requirements (xpm) were not met:
13043
13044 $xpm_PKG_ERRORS
13045
13046 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13047 installed software in a non-standard prefix.
13048
13049 Alternatively, you may set the environment variables xpm_CFLAGS
13050 and xpm_LIBS to avoid the need to call pkg-config.
13051 See the pkg-config man page for more details." "$LINENO" 5
13052 elif test $pkg_failed = untried; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13057 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13058 is in your PATH or set the PKG_CONFIG environment variable to the full
13059 path to pkg-config.
13060
13061 Alternatively, you may set the environment variables xpm_CFLAGS
13062 and xpm_LIBS to avoid the need to call pkg-config.
13063 See the pkg-config man page for more details.
13064
13065 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13066 See \`config.log' for more details" "$LINENO" 5; }
13067 else
13068 xpm_CFLAGS=$pkg_cv_xpm_CFLAGS
13069 xpm_LIBS=$pkg_cv_xpm_LIBS
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13071 $as_echo "yes" >&6; }
13072
13073 fi
13074
13075
13076
13077
13078 # Check whether --enable-debug was given.
13079 if test "${enable_debug+set}" = set; then :
13080 enableval=$enable_debug;
13081 else
13082 enable_debug=no
13083 fi
13084
13085 if test "$enable_debug" = yes; then
13086 DFLAGS="-Wall -g -ansi -pedantic"
13087 fi
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104 # Extract the first word of "fc-cache", so it can be a program name with args.
13105 set dummy fc-cache; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if ${ac_cv_path_FCCACHE+:} false; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 case $FCCACHE in
13112 [\\/]* | ?:[\\/]*)
13113 ac_cv_path_FCCACHE="$FCCACHE" # Let the user override the test with a path.
13114 ;;
13115 *)
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13118 do
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13123 ac_cv_path_FCCACHE="$as_dir/$ac_word$ac_exec_ext"
13124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13126 fi
13127 done
13128 done
13129 IFS=$as_save_IFS
13130
13131 ;;
13132 esac
13133 fi
13134 FCCACHE=$ac_cv_path_FCCACHE
13135 if test -n "$FCCACHE"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCCACHE" >&5
13137 $as_echo "$FCCACHE" >&6; }
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13141 fi
13142
13143
13144 FCCACHE_WARN='echo "** Warning: fonts.cache not built" ; echo "** Generate this file manually on host system using fc-cache"'
13145 if test x"$FCCACHE" = x || test x"$cross_compiling" != x"no" ; then
13146 RUN_FCCACHE="${FCCACHE_WARN}"
13147 else
13148 RUN_FCCACHE='@(if test -z "$(DESTDIR)"; then echo $(FCCACHE) $(fontdir); $(FCCACHE) $(fontdir); else'
13149 RUN_FCCACHE="${RUN_FCCACHE} ${FCCACHE_WARN} ; fi)"
13150 fi
13151
13152
13153
13154 if test x"$cross_compiling" != x"no" ; then
13155 # Extract the first word of "mkfontdir", so it can be a program name with args.
13156 set dummy mkfontdir; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158 $as_echo_n "checking for $ac_word... " >&6; }
13159 if ${ac_cv_path_MKFONTDIR+:} false; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 case $MKFONTDIR in
13163 [\\/]* | ?:[\\/]*)
13164 ac_cv_path_MKFONTDIR="$MKFONTDIR" # Let the user override the test with a path.
13165 ;;
13166 *)
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13169 do
13170 IFS=$as_save_IFS
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
13173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13174 ac_cv_path_MKFONTDIR="$as_dir/$ac_word$ac_exec_ext"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 break 2
13177 fi
13178 done
13179 done
13180 IFS=$as_save_IFS
13181
13182 test -z "$ac_cv_path_MKFONTDIR" && ac_cv_path_MKFONTDIR=""""
13183 ;;
13184 esac
13185 fi
13186 MKFONTDIR=$ac_cv_path_MKFONTDIR
13187 if test -n "$MKFONTDIR"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKFONTDIR" >&5
13189 $as_echo "$MKFONTDIR" >&6; }
13190 else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13193 fi
13194
13195
13196 MKFONTDIR_WARN='echo "** Warning: mkfontdir not run" ; echo "** Run mkfontdir manually on host system"'
13197
13198 if test x"$MKFONTDIR" = x; then
13199 MKFONTDIR="${MKFONTDIR_WARN} ; echo '** mkfontdir'"
13200 fi
13201 else
13202
13203 # Extract the first word of "mkfontdir", so it can be a program name with args.
13204 set dummy mkfontdir; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206 $as_echo_n "checking for $ac_word... " >&6; }
13207 if ${ac_cv_path_MKFONTDIR+:} false; then :
13208 $as_echo_n "(cached) " >&6
13209 else
13210 case $MKFONTDIR in
13211 [\\/]* | ?:[\\/]*)
13212 ac_cv_path_MKFONTDIR="$MKFONTDIR" # Let the user override the test with a path.
13213 ;;
13214 *)
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13217 do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222 ac_cv_path_MKFONTDIR="$as_dir/$ac_word$ac_exec_ext"
13223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226 done
13227 done
13228 IFS=$as_save_IFS
13229
13230 ;;
13231 esac
13232 fi
13233 MKFONTDIR=$ac_cv_path_MKFONTDIR
13234 if test -n "$MKFONTDIR"; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKFONTDIR" >&5
13236 $as_echo "$MKFONTDIR" >&6; }
13237 else
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13240 fi
13241
13242
13243 if test x"$MKFONTDIR" = x; then
13244 as_fn_error $? "mkfontdir is required to build $PACKAGE_NAME." "$LINENO" 5
13245 fi
13246
13247 fi
13248
13249
13250
13251
13252
13253
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
13256 $as_echo_n "checking for root directory for font files... " >&6; }
13257
13258 # Check whether --with-fontrootdir was given.
13259 if test "${with_fontrootdir+set}" = set; then :
13260 withval=$with_fontrootdir; FONTROOTDIR="$withval"
13261 fi
13262
13263 # if --with-fontrootdir not specified...
13264 if test "x${FONTROOTDIR}" = "x"; then
13265 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
13266 fi
13267 # ...and if pkg-config didn't find fontdir in fontutil.pc...
13268 if test "x${FONTROOTDIR}" = "x"; then
13269 FONTROOTDIR="${datadir}/fonts/X11"
13270 fi
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
13273 $as_echo "${FONTROOTDIR}" >&6; }
13274
13275
13276
13277
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
13279 $as_echo_n "checking for directory for misc files... " >&6; }
13280
13281 # Check whether --with-fontdir was given.
13282 if test "${with_fontdir+set}" = set; then :
13283 withval=$with_fontdir; FONTDIR="${withval}"
13284 else
13285 FONTDIR='${FONTROOTDIR}/misc'
13286 fi
13287
13288
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTDIR}" >&5
13290 $as_echo "${FONTDIR}" >&6; }
13291
13292
13293 ac_config_files="$ac_config_files Makefile src/Makefile fonts/Makefile examples/Makefile"
13294
13295 cat >confcache <<\_ACEOF
13296 # This file is a shell script that caches the results of configure
13297 # tests run on this system so they can be shared between configure
13298 # scripts and configure runs, see configure's option --config-cache.
13299 # It is not useful on other systems. If it contains results you don't
13300 # want to keep, you may remove or edit it.
13301 #
13302 # config.status only pays attention to the cache file if you give it
13303 # the --recheck option to rerun configure.
13304 #
13305 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13306 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13307 # following values.
13308
13309 _ACEOF
13310
13311 # The following way of writing the cache mishandles newlines in values,
13312 # but we know of no workaround that is simple, portable, and efficient.
13313 # So, we kill variables containing newlines.
13314 # Ultrix sh set writes to stderr and can't be redirected directly,
13315 # and sets the high bit in the cache file unless we assign to the vars.
13316 (
13317 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13318 eval ac_val=\$$ac_var
13319 case $ac_val in #(
13320 *${as_nl}*)
13321 case $ac_var in #(
13322 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13323 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13324 esac
13325 case $ac_var in #(
13326 _ | IFS | as_nl) ;; #(
13327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13328 *) { eval $ac_var=; unset $ac_var;} ;;
13329 esac ;;
13330 esac
13331 done
13332
13333 (set) 2>&1 |
13334 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13335 *${as_nl}ac_space=\ *)
13336 # `set' does not quote correctly, so add quotes: double-quote
13337 # substitution turns \\\\ into \\, and sed turns \\ into \.
13338 sed -n \
13339 "s/'/'\\\\''/g;
13340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13341 ;; #(
13342 *)
13343 # `set' quotes correctly as required by POSIX, so do not add quotes.
13344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13345 ;;
13346 esac |
13347 sort
13348 ) |
13349 sed '
13350 /^ac_cv_env_/b end
13351 t clear
13352 :clear
13353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13354 t end
13355 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13356 :end' >>confcache
13357 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13358 if test -w "$cache_file"; then
13359 if test "x$cache_file" != "x/dev/null"; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13361 $as_echo "$as_me: updating cache $cache_file" >&6;}
13362 if test ! -f "$cache_file" || test -h "$cache_file"; then
13363 cat confcache >"$cache_file"
13364 else
13365 case $cache_file in #(
13366 */* | ?:*)
13367 mv -f confcache "$cache_file"$$ &&
13368 mv -f "$cache_file"$$ "$cache_file" ;; #(
13369 *)
13370 mv -f confcache "$cache_file" ;;
13371 esac
13372 fi
13373 fi
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13376 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13377 fi
13378 fi
13379 rm -f confcache
13380
13381 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13382 # Let make expand exec_prefix.
13383 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13384
13385 # Transform confdefs.h into DEFS.
13386 # Protect against shell expansion while executing Makefile rules.
13387 # Protect against Makefile macro expansion.
13388 #
13389 # If the first sed substitution is executed (which looks for macros that
13390 # take arguments), then branch to the quote section. Otherwise,
13391 # look for a macro that doesn't take arguments.
13392 ac_script='
13393 :mline
13394 /\\$/{
13395 N
13396 s,\\\n,,
13397 b mline
13398 }
13399 t clear
13400 :clear
13401 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13402 t quote
13403 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13404 t quote
13405 b any
13406 :quote
13407 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13408 s/\[/\\&/g
13409 s/\]/\\&/g
13410 s/\$/$$/g
13411 H
13412 :any
13413 ${
13414 g
13415 s/^\n//
13416 s/\n/ /g
13417 p
13418 }
13419 '
13420 DEFS=`sed -n "$ac_script" confdefs.h`
13421
13422
13423 ac_libobjs=
13424 ac_ltlibobjs=
13425 U=
13426 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13427 # 1. Remove the extension, and $U if already installed.
13428 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13429 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13431 # will be set to the directory where LIBOBJS objects are built.
13432 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13433 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13434 done
13435 LIBOBJS=$ac_libobjs
13436
13437 LTLIBOBJS=$ac_ltlibobjs
13438
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13441 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13442 if test -n "$am_sleep_pid"; then
13443 # Hide warnings about reused PIDs.
13444 wait $am_sleep_pid 2>/dev/null
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13447 $as_echo "done" >&6; }
13448 if test -n "$EXEEXT"; then
13449 am__EXEEXT_TRUE=
13450 am__EXEEXT_FALSE='#'
13451 else
13452 am__EXEEXT_TRUE='#'
13453 am__EXEEXT_FALSE=
13454 fi
13455
13456 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13457 as_fn_error $? "conditional \"AMDEP\" was never defined.
13458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13459 fi
13460 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13461 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13463 fi
13464 if test -z "${COND_FONT_TRUE}" && test -z "${COND_FONT_FALSE}"; then
13465 as_fn_error $? "conditional \"COND_FONT\" was never defined.
13466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13467 fi
13468 if test -z "${COND_EXAMPLES_TRUE}" && test -z "${COND_EXAMPLES_FALSE}"; then
13469 as_fn_error $? "conditional \"COND_EXAMPLES\" was never defined.
13470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13471 fi
13472 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13473 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13475 fi
13476
13477 : "${CONFIG_STATUS=./config.status}"
13478 ac_write_fail=0
13479 ac_clean_files_save=$ac_clean_files
13480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13482 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13483 as_write_fail=0
13484 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13485 #! $SHELL
13486 # Generated by $as_me.
13487 # Run this file to recreate the current configuration.
13488 # Compiler output produced by configure, useful for debugging
13489 # configure, is in config.log if it exists.
13490
13491 debug=false
13492 ac_cs_recheck=false
13493 ac_cs_silent=false
13494
13495 SHELL=\${CONFIG_SHELL-$SHELL}
13496 export SHELL
13497 _ASEOF
13498 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13499 ## -------------------- ##
13500 ## M4sh Initialization. ##
13501 ## -------------------- ##
13502
13503 # Be more Bourne compatible
13504 DUALCASE=1; export DUALCASE # for MKS sh
13505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13506 emulate sh
13507 NULLCMD=:
13508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13509 # is contrary to our usage. Disable this feature.
13510 alias -g '${1+"$@"}'='"$@"'
13511 setopt NO_GLOB_SUBST
13512 else
13513 case `(set -o) 2>/dev/null` in #(
13514 *posix*) :
13515 set -o posix ;; #(
13516 *) :
13517 ;;
13518 esac
13519 fi
13520
13521
13522 as_nl='
13523 '
13524 export as_nl
13525 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13526 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13529 # Prefer a ksh shell builtin over an external printf program on Solaris,
13530 # but without wasting forks for bash or zsh.
13531 if test -z "$BASH_VERSION$ZSH_VERSION" \
13532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13533 as_echo='print -r --'
13534 as_echo_n='print -rn --'
13535 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13536 as_echo='printf %s\n'
13537 as_echo_n='printf %s'
13538 else
13539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13540 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13541 as_echo_n='/usr/ucb/echo -n'
13542 else
13543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13544 as_echo_n_body='eval
13545 arg=$1;
13546 case $arg in #(
13547 *"$as_nl"*)
13548 expr "X$arg" : "X\\(.*\\)$as_nl";
13549 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13550 esac;
13551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13552 '
13553 export as_echo_n_body
13554 as_echo_n='sh -c $as_echo_n_body as_echo'
13555 fi
13556 export as_echo_body
13557 as_echo='sh -c $as_echo_body as_echo'
13558 fi
13559
13560 # The user is always right.
13561 if test "${PATH_SEPARATOR+set}" != set; then
13562 PATH_SEPARATOR=:
13563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13564 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13565 PATH_SEPARATOR=';'
13566 }
13567 fi
13568
13569
13570 # IFS
13571 # We need space, tab and new line, in precisely that order. Quoting is
13572 # there to prevent editors from complaining about space-tab.
13573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13574 # splitting by setting IFS to empty value.)
13575 IFS=" "" $as_nl"
13576
13577 # Find who we are. Look in the path if we contain no directory separator.
13578 as_myself=
13579 case $0 in #((
13580 *[\\/]* ) as_myself=$0 ;;
13581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13583 do
13584 IFS=$as_save_IFS
13585 test -z "$as_dir" && as_dir=.
13586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13587 done
13588 IFS=$as_save_IFS
13589
13590 ;;
13591 esac
13592 # We did not find ourselves, most probably we were run as `sh COMMAND'
13593 # in which case we are not to be found in the path.
13594 if test "x$as_myself" = x; then
13595 as_myself=$0
13596 fi
13597 if test ! -f "$as_myself"; then
13598 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13599 exit 1
13600 fi
13601
13602 # Unset variables that we do not need and which cause bugs (e.g. in
13603 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13604 # suppresses any "Segmentation fault" message there. '((' could
13605 # trigger a bug in pdksh 5.2.14.
13606 for as_var in BASH_ENV ENV MAIL MAILPATH
13607 do eval test x\${$as_var+set} = xset \
13608 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13609 done
13610 PS1='$ '
13611 PS2='> '
13612 PS4='+ '
13613
13614 # NLS nuisances.
13615 LC_ALL=C
13616 export LC_ALL
13617 LANGUAGE=C
13618 export LANGUAGE
13619
13620 # CDPATH.
13621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13622
13623
13624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13625 # ----------------------------------------
13626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13628 # script with STATUS, using 1 if that was 0.
13629 as_fn_error ()
13630 {
13631 as_status=$1; test $as_status -eq 0 && as_status=1
13632 if test "$4"; then
13633 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13634 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13635 fi
13636 $as_echo "$as_me: error: $2" >&2
13637 as_fn_exit $as_status
13638 } # as_fn_error
13639
13640
13641 # as_fn_set_status STATUS
13642 # -----------------------
13643 # Set $? to STATUS, without forking.
13644 as_fn_set_status ()
13645 {
13646 return $1
13647 } # as_fn_set_status
13648
13649 # as_fn_exit STATUS
13650 # -----------------
13651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13652 as_fn_exit ()
13653 {
13654 set +e
13655 as_fn_set_status $1
13656 exit $1
13657 } # as_fn_exit
13658
13659 # as_fn_unset VAR
13660 # ---------------
13661 # Portably unset VAR.
13662 as_fn_unset ()
13663 {
13664 { eval $1=; unset $1;}
13665 }
13666 as_unset=as_fn_unset
13667 # as_fn_append VAR VALUE
13668 # ----------------------
13669 # Append the text in VALUE to the end of the definition contained in VAR. Take
13670 # advantage of any shell optimizations that allow amortized linear growth over
13671 # repeated appends, instead of the typical quadratic growth present in naive
13672 # implementations.
13673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13674 eval 'as_fn_append ()
13675 {
13676 eval $1+=\$2
13677 }'
13678 else
13679 as_fn_append ()
13680 {
13681 eval $1=\$$1\$2
13682 }
13683 fi # as_fn_append
13684
13685 # as_fn_arith ARG...
13686 # ------------------
13687 # Perform arithmetic evaluation on the ARGs, and store the result in the
13688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13689 # must be portable across $(()) and expr.
13690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13691 eval 'as_fn_arith ()
13692 {
13693 as_val=$(( $* ))
13694 }'
13695 else
13696 as_fn_arith ()
13697 {
13698 as_val=`expr "$@" || test $? -eq 1`
13699 }
13700 fi # as_fn_arith
13701
13702
13703 if expr a : '\(a\)' >/dev/null 2>&1 &&
13704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13705 as_expr=expr
13706 else
13707 as_expr=false
13708 fi
13709
13710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13711 as_basename=basename
13712 else
13713 as_basename=false
13714 fi
13715
13716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13717 as_dirname=dirname
13718 else
13719 as_dirname=false
13720 fi
13721
13722 as_me=`$as_basename -- "$0" ||
13723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13724 X"$0" : 'X\(//\)$' \| \
13725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13726 $as_echo X/"$0" |
13727 sed '/^.*\/\([^/][^/]*\)\/*$/{
13728 s//\1/
13729 q
13730 }
13731 /^X\/\(\/\/\)$/{
13732 s//\1/
13733 q
13734 }
13735 /^X\/\(\/\).*/{
13736 s//\1/
13737 q
13738 }
13739 s/.*/./; q'`
13740
13741 # Avoid depending upon Character Ranges.
13742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13745 as_cr_digits='0123456789'
13746 as_cr_alnum=$as_cr_Letters$as_cr_digits
13747
13748 ECHO_C= ECHO_N= ECHO_T=
13749 case `echo -n x` in #(((((
13750 -n*)
13751 case `echo 'xy\c'` in
13752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13753 xy) ECHO_C='\c';;
13754 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13755 ECHO_T=' ';;
13756 esac;;
13757 *)
13758 ECHO_N='-n';;
13759 esac
13760
13761 rm -f conf$$ conf$$.exe conf$$.file
13762 if test -d conf$$.dir; then
13763 rm -f conf$$.dir/conf$$.file
13764 else
13765 rm -f conf$$.dir
13766 mkdir conf$$.dir 2>/dev/null
13767 fi
13768 if (echo >conf$$.file) 2>/dev/null; then
13769 if ln -s conf$$.file conf$$ 2>/dev/null; then
13770 as_ln_s='ln -s'
13771 # ... but there are two gotchas:
13772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13774 # In both cases, we have to default to `cp -pR'.
13775 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13776 as_ln_s='cp -pR'
13777 elif ln conf$$.file conf$$ 2>/dev/null; then
13778 as_ln_s=ln
13779 else
13780 as_ln_s='cp -pR'
13781 fi
13782 else
13783 as_ln_s='cp -pR'
13784 fi
13785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13786 rmdir conf$$.dir 2>/dev/null
13787
13788
13789 # as_fn_mkdir_p
13790 # -------------
13791 # Create "$as_dir" as a directory, including parents if necessary.
13792 as_fn_mkdir_p ()
13793 {
13794
13795 case $as_dir in #(
13796 -*) as_dir=./$as_dir;;
13797 esac
13798 test -d "$as_dir" || eval $as_mkdir_p || {
13799 as_dirs=
13800 while :; do
13801 case $as_dir in #(
13802 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13803 *) as_qdir=$as_dir;;
13804 esac
13805 as_dirs="'$as_qdir' $as_dirs"
13806 as_dir=`$as_dirname -- "$as_dir" ||
13807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13808 X"$as_dir" : 'X\(//\)[^/]' \| \
13809 X"$as_dir" : 'X\(//\)$' \| \
13810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13811 $as_echo X"$as_dir" |
13812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13813 s//\1/
13814 q
13815 }
13816 /^X\(\/\/\)[^/].*/{
13817 s//\1/
13818 q
13819 }
13820 /^X\(\/\/\)$/{
13821 s//\1/
13822 q
13823 }
13824 /^X\(\/\).*/{
13825 s//\1/
13826 q
13827 }
13828 s/.*/./; q'`
13829 test -d "$as_dir" && break
13830 done
13831 test -z "$as_dirs" || eval "mkdir $as_dirs"
13832 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13833
13834
13835 } # as_fn_mkdir_p
13836 if mkdir -p . 2>/dev/null; then
13837 as_mkdir_p='mkdir -p "$as_dir"'
13838 else
13839 test -d ./-p && rmdir ./-p
13840 as_mkdir_p=false
13841 fi
13842
13843
13844 # as_fn_executable_p FILE
13845 # -----------------------
13846 # Test if FILE is an executable regular file.
13847 as_fn_executable_p ()
13848 {
13849 test -f "$1" && test -x "$1"
13850 } # as_fn_executable_p
13851 as_test_x='test -x'
13852 as_executable_p=as_fn_executable_p
13853
13854 # Sed expression to map a string onto a valid CPP name.
13855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13856
13857 # Sed expression to map a string onto a valid variable name.
13858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13859
13860
13861 exec 6>&1
13862 ## ----------------------------------- ##
13863 ## Main body of $CONFIG_STATUS script. ##
13864 ## ----------------------------------- ##
13865 _ASEOF
13866 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13867
13868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13869 # Save the log message, to keep $0 and so on meaningful, and to
13870 # report actual input values of CONFIG_FILES etc. instead of their
13871 # values after options handling.
13872 ac_log="
13873 This file was extended by libdockapp $as_me 0.7.3, which was
13874 generated by GNU Autoconf 2.69. Invocation command line was
13875
13876 CONFIG_FILES = $CONFIG_FILES
13877 CONFIG_HEADERS = $CONFIG_HEADERS
13878 CONFIG_LINKS = $CONFIG_LINKS
13879 CONFIG_COMMANDS = $CONFIG_COMMANDS
13880 $ $0 $@
13881
13882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13883 "
13884
13885 _ACEOF
13886
13887 case $ac_config_files in *"
13888 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13889 esac
13890
13891
13892
13893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13894 # Files that config.status was made for.
13895 config_files="$ac_config_files"
13896 config_commands="$ac_config_commands"
13897
13898 _ACEOF
13899
13900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13901 ac_cs_usage="\
13902 \`$as_me' instantiates files and other configuration actions
13903 from templates according to the current configuration. Unless the files
13904 and actions are specified as TAGs, all are instantiated by default.
13905
13906 Usage: $0 [OPTION]... [TAG]...
13907
13908 -h, --help print this help, then exit
13909 -V, --version print version number and configuration settings, then exit
13910 --config print configuration, then exit
13911 -q, --quiet, --silent
13912 do not print progress messages
13913 -d, --debug don't remove temporary files
13914 --recheck update $as_me by reconfiguring in the same conditions
13915 --file=FILE[:TEMPLATE]
13916 instantiate the configuration file FILE
13917
13918 Configuration files:
13919 $config_files
13920
13921 Configuration commands:
13922 $config_commands
13923
13924 Report bugs to <[email protected]>."
13925
13926 _ACEOF
13927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13928 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13929 ac_cs_version="\\
13930 libdockapp config.status 0.7.3
13931 configured by $0, generated by GNU Autoconf 2.69,
13932 with options \\"\$ac_cs_config\\"
13933
13934 Copyright (C) 2012 Free Software Foundation, Inc.
13935 This config.status script is free software; the Free Software Foundation
13936 gives unlimited permission to copy, distribute and modify it."
13937
13938 ac_pwd='$ac_pwd'
13939 srcdir='$srcdir'
13940 INSTALL='$INSTALL'
13941 MKDIR_P='$MKDIR_P'
13942 AWK='$AWK'
13943 test -n "\$AWK" || AWK=awk
13944 _ACEOF
13945
13946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13947 # The default lists apply if the user does not specify any file.
13948 ac_need_defaults=:
13949 while test $# != 0
13950 do
13951 case $1 in
13952 --*=?*)
13953 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13955 ac_shift=:
13956 ;;
13957 --*=)
13958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13959 ac_optarg=
13960 ac_shift=:
13961 ;;
13962 *)
13963 ac_option=$1
13964 ac_optarg=$2
13965 ac_shift=shift
13966 ;;
13967 esac
13968
13969 case $ac_option in
13970 # Handling of the options.
13971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13972 ac_cs_recheck=: ;;
13973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13974 $as_echo "$ac_cs_version"; exit ;;
13975 --config | --confi | --conf | --con | --co | --c )
13976 $as_echo "$ac_cs_config"; exit ;;
13977 --debug | --debu | --deb | --de | --d | -d )
13978 debug=: ;;
13979 --file | --fil | --fi | --f )
13980 $ac_shift
13981 case $ac_optarg in
13982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13983 '') as_fn_error $? "missing file argument" ;;
13984 esac
13985 as_fn_append CONFIG_FILES " '$ac_optarg'"
13986 ac_need_defaults=false;;
13987 --he | --h | --help | --hel | -h )
13988 $as_echo "$ac_cs_usage"; exit ;;
13989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13990 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13991 ac_cs_silent=: ;;
13992
13993 # This is an error.
13994 -*) as_fn_error $? "unrecognized option: \`$1'
13995 Try \`$0 --help' for more information." ;;
13996
13997 *) as_fn_append ac_config_targets " $1"
13998 ac_need_defaults=false ;;
13999
14000 esac
14001 shift
14002 done
14003
14004 ac_configure_extra_args=
14005
14006 if $ac_cs_silent; then
14007 exec 6>/dev/null
14008 ac_configure_extra_args="$ac_configure_extra_args --silent"
14009 fi
14010
14011 _ACEOF
14012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14013 if \$ac_cs_recheck; then
14014 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14015 shift
14016 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14017 CONFIG_SHELL='$SHELL'
14018 export CONFIG_SHELL
14019 exec "\$@"
14020 fi
14021
14022 _ACEOF
14023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14024 exec 5>>config.log
14025 {
14026 echo
14027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14028 ## Running $as_me. ##
14029 _ASBOX
14030 $as_echo "$ac_log"
14031 } >&5
14032
14033 _ACEOF
14034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14035 #
14036 # INIT-COMMANDS
14037 #
14038 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14039
14040
14041 # The HP-UX ksh and POSIX shell print the target directory to stdout
14042 # if CDPATH is set.
14043 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14044
14045 sed_quote_subst='$sed_quote_subst'
14046 double_quote_subst='$double_quote_subst'
14047 delay_variable_subst='$delay_variable_subst'
14048 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14049 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14050 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14051 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14052 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14053 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14054 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14055 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14056 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14057 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14058 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14059 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14060 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14061 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14062 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14063 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14064 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14065 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14066 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14067 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14068 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14069 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14070 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14071 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14072 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14073 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14074 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14075 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14076 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14077 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14078 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14079 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14080 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14081 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14082 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14083 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14084 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14085 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14086 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14087 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14088 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14089 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14090 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14091 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14092 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14093 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14094 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14095 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14096 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14097 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14098 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14099 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14100 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14101 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14102 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14103 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14104 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14105 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14106 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"`'
14107 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14108 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14109 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14110 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14111 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14112 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14113 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14114 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14115 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14116 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14117 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14118 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14119 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14120 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14121 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14122 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14123 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14124 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14125 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14126 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14127 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14128 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14129 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14130 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14131 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14132 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14133 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14134 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14135 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14136 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14137 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14138 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14139 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14140 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14141 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14142 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14143 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14144 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14145 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14146 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14147 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14148 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14149 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14150 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14151 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14152 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14153 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14154 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14155 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14156 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14157 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14158 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14159 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14160 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14161 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14162 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14163 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14164 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14165 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14166 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14167 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14168 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14169 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14170 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14171 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14172 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14173 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14174 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14175 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14176 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14177 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14178 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14179 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14180 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14181 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14182 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14183
14184 LTCC='$LTCC'
14185 LTCFLAGS='$LTCFLAGS'
14186 compiler='$compiler_DEFAULT'
14187
14188 # A function that is used when there is no print builtin or printf.
14189 func_fallback_echo ()
14190 {
14191 eval 'cat <<_LTECHO_EOF
14192 \$1
14193 _LTECHO_EOF'
14194 }
14195
14196 # Quote evaled strings.
14197 for var in SHELL \
14198 ECHO \
14199 PATH_SEPARATOR \
14200 SED \
14201 GREP \
14202 EGREP \
14203 FGREP \
14204 LD \
14205 NM \
14206 LN_S \
14207 lt_SP2NL \
14208 lt_NL2SP \
14209 reload_flag \
14210 OBJDUMP \
14211 deplibs_check_method \
14212 file_magic_cmd \
14213 file_magic_glob \
14214 want_nocaseglob \
14215 DLLTOOL \
14216 sharedlib_from_linklib_cmd \
14217 AR \
14218 AR_FLAGS \
14219 archiver_list_spec \
14220 STRIP \
14221 RANLIB \
14222 CC \
14223 CFLAGS \
14224 compiler \
14225 lt_cv_sys_global_symbol_pipe \
14226 lt_cv_sys_global_symbol_to_cdecl \
14227 lt_cv_sys_global_symbol_to_import \
14228 lt_cv_sys_global_symbol_to_c_name_address \
14229 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14230 lt_cv_nm_interface \
14231 nm_file_list_spec \
14232 lt_cv_truncate_bin \
14233 lt_prog_compiler_no_builtin_flag \
14234 lt_prog_compiler_pic \
14235 lt_prog_compiler_wl \
14236 lt_prog_compiler_static \
14237 lt_cv_prog_compiler_c_o \
14238 need_locks \
14239 MANIFEST_TOOL \
14240 DSYMUTIL \
14241 NMEDIT \
14242 LIPO \
14243 OTOOL \
14244 OTOOL64 \
14245 shrext_cmds \
14246 export_dynamic_flag_spec \
14247 whole_archive_flag_spec \
14248 compiler_needs_object \
14249 with_gnu_ld \
14250 allow_undefined_flag \
14251 no_undefined_flag \
14252 hardcode_libdir_flag_spec \
14253 hardcode_libdir_separator \
14254 exclude_expsyms \
14255 include_expsyms \
14256 file_list_spec \
14257 variables_saved_for_relink \
14258 libname_spec \
14259 library_names_spec \
14260 soname_spec \
14261 install_override_mode \
14262 finish_eval \
14263 old_striplib \
14264 striplib; do
14265 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14266 *[\\\\\\\`\\"\\\$]*)
14267 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14268 ;;
14269 *)
14270 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14271 ;;
14272 esac
14273 done
14274
14275 # Double-quote double-evaled strings.
14276 for var in reload_cmds \
14277 old_postinstall_cmds \
14278 old_postuninstall_cmds \
14279 old_archive_cmds \
14280 extract_expsyms_cmds \
14281 old_archive_from_new_cmds \
14282 old_archive_from_expsyms_cmds \
14283 archive_cmds \
14284 archive_expsym_cmds \
14285 module_cmds \
14286 module_expsym_cmds \
14287 export_symbols_cmds \
14288 prelink_cmds \
14289 postlink_cmds \
14290 postinstall_cmds \
14291 postuninstall_cmds \
14292 finish_cmds \
14293 sys_lib_search_path_spec \
14294 configure_time_dlsearch_path \
14295 configure_time_lt_sys_library_path; do
14296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14297 *[\\\\\\\`\\"\\\$]*)
14298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14299 ;;
14300 *)
14301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14302 ;;
14303 esac
14304 done
14305
14306 ac_aux_dir='$ac_aux_dir'
14307
14308 # See if we are running on zsh, and set the options that allow our
14309 # commands through without removal of \ escapes INIT.
14310 if test -n "\${ZSH_VERSION+set}"; then
14311 setopt NO_GLOB_SUBST
14312 fi
14313
14314
14315 PACKAGE='$PACKAGE'
14316 VERSION='$VERSION'
14317 RM='$RM'
14318 ofile='$ofile'
14319
14320
14321
14322
14323 _ACEOF
14324
14325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14326
14327 # Handling of arguments.
14328 for ac_config_target in $ac_config_targets
14329 do
14330 case $ac_config_target in
14331 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14332 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14333 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14334 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14335 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
14336 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14337
14338 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14339 esac
14340 done
14341
14342
14343 # If the user did not use the arguments to specify the items to instantiate,
14344 # then the envvar interface is used. Set only those that are not.
14345 # We use the long form for the default assignment because of an extremely
14346 # bizarre bug on SunOS 4.1.3.
14347 if $ac_need_defaults; then
14348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14350 fi
14351
14352 # Have a temporary directory for convenience. Make it in the build tree
14353 # simply because there is no reason against having it here, and in addition,
14354 # creating and moving files from /tmp can sometimes cause problems.
14355 # Hook for its removal unless debugging.
14356 # Note that there is a small window in which the directory will not be cleaned:
14357 # after its creation but before its name has been assigned to `$tmp'.
14358 $debug ||
14359 {
14360 tmp= ac_tmp=
14361 trap 'exit_status=$?
14362 : "${ac_tmp:=$tmp}"
14363 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14364 ' 0
14365 trap 'as_fn_exit 1' 1 2 13 15
14366 }
14367 # Create a (secure) tmp directory for tmp files.
14368
14369 {
14370 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14371 test -d "$tmp"
14372 } ||
14373 {
14374 tmp=./conf$$-$RANDOM
14375 (umask 077 && mkdir "$tmp")
14376 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14377 ac_tmp=$tmp
14378
14379 # Set up the scripts for CONFIG_FILES section.
14380 # No need to generate them if there are no CONFIG_FILES.
14381 # This happens for instance with `./config.status config.h'.
14382 if test -n "$CONFIG_FILES"; then
14383
14384
14385 ac_cr=`echo X | tr X '\015'`
14386 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14387 # But we know of no other shell where ac_cr would be empty at this
14388 # point, so we can use a bashism as a fallback.
14389 if test "x$ac_cr" = x; then
14390 eval ac_cr=\$\'\\r\'
14391 fi
14392 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14393 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14394 ac_cs_awk_cr='\\r'
14395 else
14396 ac_cs_awk_cr=$ac_cr
14397 fi
14398
14399 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14400 _ACEOF
14401
14402
14403 {
14404 echo "cat >conf$$subs.awk <<_ACEOF" &&
14405 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14406 echo "_ACEOF"
14407 } >conf$$subs.sh ||
14408 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14409 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14410 ac_delim='%!_!# '
14411 for ac_last_try in false false false false false :; do
14412 . ./conf$$subs.sh ||
14413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14414
14415 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14416 if test $ac_delim_n = $ac_delim_num; then
14417 break
14418 elif $ac_last_try; then
14419 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14420 else
14421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14422 fi
14423 done
14424 rm -f conf$$subs.sh
14425
14426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14427 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14428 _ACEOF
14429 sed -n '
14430 h
14431 s/^/S["/; s/!.*/"]=/
14432 p
14433 g
14434 s/^[^!]*!//
14435 :repl
14436 t repl
14437 s/'"$ac_delim"'$//
14438 t delim
14439 :nl
14440 h
14441 s/\(.\{148\}\)..*/\1/
14442 t more1
14443 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14444 p
14445 n
14446 b repl
14447 :more1
14448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14449 p
14450 g
14451 s/.\{148\}//
14452 t nl
14453 :delim
14454 h
14455 s/\(.\{148\}\)..*/\1/
14456 t more2
14457 s/["\\]/\\&/g; s/^/"/; s/$/"/
14458 p
14459 b
14460 :more2
14461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14462 p
14463 g
14464 s/.\{148\}//
14465 t delim
14466 ' <conf$$subs.awk | sed '
14467 /^[^""]/{
14468 N
14469 s/\n//
14470 }
14471 ' >>$CONFIG_STATUS || ac_write_fail=1
14472 rm -f conf$$subs.awk
14473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14474 _ACAWK
14475 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14476 for (key in S) S_is_set[key] = 1
14477 FS = ""
14478
14479 }
14480 {
14481 line = $ 0
14482 nfields = split(line, field, "@")
14483 substed = 0
14484 len = length(field[1])
14485 for (i = 2; i < nfields; i++) {
14486 key = field[i]
14487 keylen = length(key)
14488 if (S_is_set[key]) {
14489 value = S[key]
14490 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14491 len += length(value) + length(field[++i])
14492 substed = 1
14493 } else
14494 len += 1 + keylen
14495 }
14496
14497 print line
14498 }
14499
14500 _ACAWK
14501 _ACEOF
14502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14503 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14504 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14505 else
14506 cat
14507 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14508 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14509 _ACEOF
14510
14511 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14512 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14513 # trailing colons and then remove the whole line if VPATH becomes empty
14514 # (actually we leave an empty line to preserve line numbers).
14515 if test "x$srcdir" = x.; then
14516 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14517 h
14518 s///
14519 s/^/:/
14520 s/[ ]*$/:/
14521 s/:\$(srcdir):/:/g
14522 s/:\${srcdir}:/:/g
14523 s/:@srcdir@:/:/g
14524 s/^:*//
14525 s/:*$//
14526 x
14527 s/\(=[ ]*\).*/\1/
14528 G
14529 s/\n//
14530 s/^[^=]*=[ ]*$//
14531 }'
14532 fi
14533
14534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14535 fi # test -n "$CONFIG_FILES"
14536
14537
14538 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14539 shift
14540 for ac_tag
14541 do
14542 case $ac_tag in
14543 :[FHLC]) ac_mode=$ac_tag; continue;;
14544 esac
14545 case $ac_mode$ac_tag in
14546 :[FHL]*:*);;
14547 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14548 :[FH]-) ac_tag=-:-;;
14549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14550 esac
14551 ac_save_IFS=$IFS
14552 IFS=:
14553 set x $ac_tag
14554 IFS=$ac_save_IFS
14555 shift
14556 ac_file=$1
14557 shift
14558
14559 case $ac_mode in
14560 :L) ac_source=$1;;
14561 :[FH])
14562 ac_file_inputs=
14563 for ac_f
14564 do
14565 case $ac_f in
14566 -) ac_f="$ac_tmp/stdin";;
14567 *) # Look for the file first in the build tree, then in the source tree
14568 # (if the path is not absolute). The absolute path cannot be DOS-style,
14569 # because $ac_f cannot contain `:'.
14570 test -f "$ac_f" ||
14571 case $ac_f in
14572 [\\/$]*) false;;
14573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14574 esac ||
14575 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14576 esac
14577 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14578 as_fn_append ac_file_inputs " '$ac_f'"
14579 done
14580
14581 # Let's still pretend it is `configure' which instantiates (i.e., don't
14582 # use $as_me), people would be surprised to read:
14583 # /* config.h. Generated by config.status. */
14584 configure_input='Generated from '`
14585 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14586 `' by configure.'
14587 if test x"$ac_file" != x-; then
14588 configure_input="$ac_file. $configure_input"
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14590 $as_echo "$as_me: creating $ac_file" >&6;}
14591 fi
14592 # Neutralize special characters interpreted by sed in replacement strings.
14593 case $configure_input in #(
14594 *\&* | *\|* | *\\* )
14595 ac_sed_conf_input=`$as_echo "$configure_input" |
14596 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14597 *) ac_sed_conf_input=$configure_input;;
14598 esac
14599
14600 case $ac_tag in
14601 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14603 esac
14604 ;;
14605 esac
14606
14607 ac_dir=`$as_dirname -- "$ac_file" ||
14608 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14609 X"$ac_file" : 'X\(//\)[^/]' \| \
14610 X"$ac_file" : 'X\(//\)$' \| \
14611 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14612 $as_echo X"$ac_file" |
14613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14614 s//\1/
14615 q
14616 }
14617 /^X\(\/\/\)[^/].*/{
14618 s//\1/
14619 q
14620 }
14621 /^X\(\/\/\)$/{
14622 s//\1/
14623 q
14624 }
14625 /^X\(\/\).*/{
14626 s//\1/
14627 q
14628 }
14629 s/.*/./; q'`
14630 as_dir="$ac_dir"; as_fn_mkdir_p
14631 ac_builddir=.
14632
14633 case "$ac_dir" in
14634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14635 *)
14636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14637 # A ".." for each directory in $ac_dir_suffix.
14638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14639 case $ac_top_builddir_sub in
14640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14642 esac ;;
14643 esac
14644 ac_abs_top_builddir=$ac_pwd
14645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14646 # for backward compatibility:
14647 ac_top_builddir=$ac_top_build_prefix
14648
14649 case $srcdir in
14650 .) # We are building in place.
14651 ac_srcdir=.
14652 ac_top_srcdir=$ac_top_builddir_sub
14653 ac_abs_top_srcdir=$ac_pwd ;;
14654 [\\/]* | ?:[\\/]* ) # Absolute name.
14655 ac_srcdir=$srcdir$ac_dir_suffix;
14656 ac_top_srcdir=$srcdir
14657 ac_abs_top_srcdir=$srcdir ;;
14658 *) # Relative name.
14659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14660 ac_top_srcdir=$ac_top_build_prefix$srcdir
14661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14662 esac
14663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14664
14665
14666 case $ac_mode in
14667 :F)
14668 #
14669 # CONFIG_FILE
14670 #
14671
14672 case $INSTALL in
14673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14674 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14675 esac
14676 ac_MKDIR_P=$MKDIR_P
14677 case $MKDIR_P in
14678 [\\/$]* | ?:[\\/]* ) ;;
14679 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14680 esac
14681 _ACEOF
14682
14683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14684 # If the template does not know about datarootdir, expand it.
14685 # FIXME: This hack should be removed a few years after 2.60.
14686 ac_datarootdir_hack=; ac_datarootdir_seen=
14687 ac_sed_dataroot='
14688 /datarootdir/ {
14689 p
14690 q
14691 }
14692 /@datadir@/p
14693 /@docdir@/p
14694 /@infodir@/p
14695 /@localedir@/p
14696 /@mandir@/p'
14697 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14698 *datarootdir*) ac_datarootdir_seen=yes;;
14699 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14701 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14702 _ACEOF
14703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14704 ac_datarootdir_hack='
14705 s&@datadir@&$datadir&g
14706 s&@docdir@&$docdir&g
14707 s&@infodir@&$infodir&g
14708 s&@localedir@&$localedir&g
14709 s&@mandir@&$mandir&g
14710 s&\\\${datarootdir}&$datarootdir&g' ;;
14711 esac
14712 _ACEOF
14713
14714 # Neutralize VPATH when `$srcdir' = `.'.
14715 # Shell code in configure.ac might set extrasub.
14716 # FIXME: do we really want to maintain this feature?
14717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14718 ac_sed_extra="$ac_vpsub
14719 $extrasub
14720 _ACEOF
14721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14722 :t
14723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14724 s|@configure_input@|$ac_sed_conf_input|;t t
14725 s&@top_builddir@&$ac_top_builddir_sub&;t t
14726 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14727 s&@srcdir@&$ac_srcdir&;t t
14728 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14729 s&@top_srcdir@&$ac_top_srcdir&;t t
14730 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14731 s&@builddir@&$ac_builddir&;t t
14732 s&@abs_builddir@&$ac_abs_builddir&;t t
14733 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14734 s&@INSTALL@&$ac_INSTALL&;t t
14735 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14736 $ac_datarootdir_hack
14737 "
14738 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14739 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14740
14741 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14742 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14743 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14744 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14746 which seems to be undefined. Please make sure it is defined" >&5
14747 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14748 which seems to be undefined. Please make sure it is defined" >&2;}
14749
14750 rm -f "$ac_tmp/stdin"
14751 case $ac_file in
14752 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14753 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14754 esac \
14755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14756 ;;
14757
14758
14759 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14760 $as_echo "$as_me: executing $ac_file commands" >&6;}
14761 ;;
14762 esac
14763
14764
14765 case $ac_file$ac_mode in
14766 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14767 # Older Autoconf quotes --file arguments for eval, but not when files
14768 # are listed without --file. Let's play safe and only enable the eval
14769 # if we detect the quoting.
14770 # TODO: see whether this extra hack can be removed once we start
14771 # requiring Autoconf 2.70 or later.
14772 case $CONFIG_FILES in #(
14773 *\'*) :
14774 eval set x "$CONFIG_FILES" ;; #(
14775 *) :
14776 set x $CONFIG_FILES ;; #(
14777 *) :
14778 ;;
14779 esac
14780 shift
14781 # Used to flag and report bootstrapping failures.
14782 am_rc=0
14783 for am_mf
14784 do
14785 # Strip MF so we end up with the name of the file.
14786 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14787 # Check whether this is an Automake generated Makefile which includes
14788 # dependency-tracking related rules and includes.
14789 # Grep'ing the whole file directly is not great: AIX grep has a line
14790 # limit of 2048, but all sed's we know have understand at least 4000.
14791 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14792 || continue
14793 am_dirpart=`$as_dirname -- "$am_mf" ||
14794 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14795 X"$am_mf" : 'X\(//\)[^/]' \| \
14796 X"$am_mf" : 'X\(//\)$' \| \
14797 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14798 $as_echo X"$am_mf" |
14799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14800 s//\1/
14801 q
14802 }
14803 /^X\(\/\/\)[^/].*/{
14804 s//\1/
14805 q
14806 }
14807 /^X\(\/\/\)$/{
14808 s//\1/
14809 q
14810 }
14811 /^X\(\/\).*/{
14812 s//\1/
14813 q
14814 }
14815 s/.*/./; q'`
14816 am_filepart=`$as_basename -- "$am_mf" ||
14817 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14818 X"$am_mf" : 'X\(//\)$' \| \
14819 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14820 $as_echo X/"$am_mf" |
14821 sed '/^.*\/\([^/][^/]*\)\/*$/{
14822 s//\1/
14823 q
14824 }
14825 /^X\/\(\/\/\)$/{
14826 s//\1/
14827 q
14828 }
14829 /^X\/\(\/\).*/{
14830 s//\1/
14831 q
14832 }
14833 s/.*/./; q'`
14834 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14835 && sed -e '/# am--include-marker/d' "$am_filepart" \
14836 | $MAKE -f - am--depfiles" >&5
14837 (cd "$am_dirpart" \
14838 && sed -e '/# am--include-marker/d' "$am_filepart" \
14839 | $MAKE -f - am--depfiles) >&5 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } || am_rc=$?
14843 done
14844 if test $am_rc -ne 0; then
14845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14847 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14848 for automatic dependency tracking. If GNU make was not used, consider
14849 re-running the configure script with MAKE=\"gmake\" (or whatever is
14850 necessary). You can also try re-running configure with the
14851 '--disable-dependency-tracking' option to at least be able to build
14852 the package (albeit without support for automatic dependency tracking).
14853 See \`config.log' for more details" "$LINENO" 5; }
14854 fi
14855 { am_dirpart=; unset am_dirpart;}
14856 { am_filepart=; unset am_filepart;}
14857 { am_mf=; unset am_mf;}
14858 { am_rc=; unset am_rc;}
14859 rm -f conftest-deps.mk
14860 }
14861 ;;
14862 "libtool":C)
14863
14864 # See if we are running on zsh, and set the options that allow our
14865 # commands through without removal of \ escapes.
14866 if test -n "${ZSH_VERSION+set}"; then
14867 setopt NO_GLOB_SUBST
14868 fi
14869
14870 cfgfile=${ofile}T
14871 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14872 $RM "$cfgfile"
14873
14874 cat <<_LT_EOF >> "$cfgfile"
14875 #! $SHELL
14876 # Generated automatically by $as_me ($PACKAGE) $VERSION
14877 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14878
14879 # Provide generalized library-building support services.
14880 # Written by Gordon Matzigkeit, 1996
14881
14882 # Copyright (C) 2014 Free Software Foundation, Inc.
14883 # This is free software; see the source for copying conditions. There is NO
14884 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14885
14886 # GNU Libtool is free software; you can redistribute it and/or modify
14887 # it under the terms of the GNU General Public License as published by
14888 # the Free Software Foundation; either version 2 of of the License, or
14889 # (at your option) any later version.
14890 #
14891 # As a special exception to the GNU General Public License, if you
14892 # distribute this file as part of a program or library that is built
14893 # using GNU Libtool, you may include this file under the same
14894 # distribution terms that you use for the rest of that program.
14895 #
14896 # GNU Libtool is distributed in the hope that it will be useful, but
14897 # WITHOUT ANY WARRANTY; without even the implied warranty of
14898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14899 # GNU General Public License for more details.
14900 #
14901 # You should have received a copy of the GNU General Public License
14902 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14903
14904
14905 # The names of the tagged configurations supported by this script.
14906 available_tags=''
14907
14908 # Configured defaults for sys_lib_dlsearch_path munging.
14909 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14910
14911 # ### BEGIN LIBTOOL CONFIG
14912
14913 # Which release of libtool.m4 was used?
14914 macro_version=$macro_version
14915 macro_revision=$macro_revision
14916
14917 # Whether or not to build shared libraries.
14918 build_libtool_libs=$enable_shared
14919
14920 # Whether or not to build static libraries.
14921 build_old_libs=$enable_static
14922
14923 # What type of objects to build.
14924 pic_mode=$pic_mode
14925
14926 # Whether or not to optimize for fast installation.
14927 fast_install=$enable_fast_install
14928
14929 # Shared archive member basename,for filename based shared library versioning on AIX.
14930 shared_archive_member_spec=$shared_archive_member_spec
14931
14932 # Shell to use when invoking shell scripts.
14933 SHELL=$lt_SHELL
14934
14935 # An echo program that protects backslashes.
14936 ECHO=$lt_ECHO
14937
14938 # The PATH separator for the build system.
14939 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14940
14941 # The host system.
14942 host_alias=$host_alias
14943 host=$host
14944 host_os=$host_os
14945
14946 # The build system.
14947 build_alias=$build_alias
14948 build=$build
14949 build_os=$build_os
14950
14951 # A sed program that does not truncate output.
14952 SED=$lt_SED
14953
14954 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14955 Xsed="\$SED -e 1s/^X//"
14956
14957 # A grep program that handles long lines.
14958 GREP=$lt_GREP
14959
14960 # An ERE matcher.
14961 EGREP=$lt_EGREP
14962
14963 # A literal string matcher.
14964 FGREP=$lt_FGREP
14965
14966 # A BSD- or MS-compatible name lister.
14967 NM=$lt_NM
14968
14969 # Whether we need soft or hard links.
14970 LN_S=$lt_LN_S
14971
14972 # What is the maximum length of a command?
14973 max_cmd_len=$max_cmd_len
14974
14975 # Object file suffix (normally "o").
14976 objext=$ac_objext
14977
14978 # Executable file suffix (normally "").
14979 exeext=$exeext
14980
14981 # whether the shell understands "unset".
14982 lt_unset=$lt_unset
14983
14984 # turn spaces into newlines.
14985 SP2NL=$lt_lt_SP2NL
14986
14987 # turn newlines into spaces.
14988 NL2SP=$lt_lt_NL2SP
14989
14990 # convert \$build file names to \$host format.
14991 to_host_file_cmd=$lt_cv_to_host_file_cmd
14992
14993 # convert \$build files to toolchain format.
14994 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14995
14996 # An object symbol dumper.
14997 OBJDUMP=$lt_OBJDUMP
14998
14999 # Method to check whether dependent libraries are shared objects.
15000 deplibs_check_method=$lt_deplibs_check_method
15001
15002 # Command to use when deplibs_check_method = "file_magic".
15003 file_magic_cmd=$lt_file_magic_cmd
15004
15005 # How to find potential files when deplibs_check_method = "file_magic".
15006 file_magic_glob=$lt_file_magic_glob
15007
15008 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15009 want_nocaseglob=$lt_want_nocaseglob
15010
15011 # DLL creation program.
15012 DLLTOOL=$lt_DLLTOOL
15013
15014 # Command to associate shared and link libraries.
15015 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15016
15017 # The archiver.
15018 AR=$lt_AR
15019
15020 # Flags to create an archive.
15021 AR_FLAGS=$lt_AR_FLAGS
15022
15023 # How to feed a file listing to the archiver.
15024 archiver_list_spec=$lt_archiver_list_spec
15025
15026 # A symbol stripping program.
15027 STRIP=$lt_STRIP
15028
15029 # Commands used to install an old-style archive.
15030 RANLIB=$lt_RANLIB
15031 old_postinstall_cmds=$lt_old_postinstall_cmds
15032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15033
15034 # Whether to use a lock for old archive extraction.
15035 lock_old_archive_extraction=$lock_old_archive_extraction
15036
15037 # A C compiler.
15038 LTCC=$lt_CC
15039
15040 # LTCC compiler flags.
15041 LTCFLAGS=$lt_CFLAGS
15042
15043 # Take the output of nm and produce a listing of raw symbols and C names.
15044 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15045
15046 # Transform the output of nm in a proper C declaration.
15047 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15048
15049 # Transform the output of nm into a list of symbols to manually relocate.
15050 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15051
15052 # Transform the output of nm in a C name address pair.
15053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15054
15055 # Transform the output of nm in a C name address pair when lib prefix is needed.
15056 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15057
15058 # The name lister interface.
15059 nm_interface=$lt_lt_cv_nm_interface
15060
15061 # Specify filename containing input files for \$NM.
15062 nm_file_list_spec=$lt_nm_file_list_spec
15063
15064 # The root where to search for dependent libraries,and where our libraries should be installed.
15065 lt_sysroot=$lt_sysroot
15066
15067 # Command to truncate a binary pipe.
15068 lt_truncate_bin=$lt_lt_cv_truncate_bin
15069
15070 # The name of the directory that contains temporary libtool files.
15071 objdir=$objdir
15072
15073 # Used to examine libraries when file_magic_cmd begins with "file".
15074 MAGIC_CMD=$MAGIC_CMD
15075
15076 # Must we lock files when doing compilation?
15077 need_locks=$lt_need_locks
15078
15079 # Manifest tool.
15080 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15081
15082 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15083 DSYMUTIL=$lt_DSYMUTIL
15084
15085 # Tool to change global to local symbols on Mac OS X.
15086 NMEDIT=$lt_NMEDIT
15087
15088 # Tool to manipulate fat objects and archives on Mac OS X.
15089 LIPO=$lt_LIPO
15090
15091 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15092 OTOOL=$lt_OTOOL
15093
15094 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15095 OTOOL64=$lt_OTOOL64
15096
15097 # Old archive suffix (normally "a").
15098 libext=$libext
15099
15100 # Shared library suffix (normally ".so").
15101 shrext_cmds=$lt_shrext_cmds
15102
15103 # The commands to extract the exported symbol list from a shared archive.
15104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15105
15106 # Variables whose values should be saved in libtool wrapper scripts and
15107 # restored at link time.
15108 variables_saved_for_relink=$lt_variables_saved_for_relink
15109
15110 # Do we need the "lib" prefix for modules?
15111 need_lib_prefix=$need_lib_prefix
15112
15113 # Do we need a version for libraries?
15114 need_version=$need_version
15115
15116 # Library versioning type.
15117 version_type=$version_type
15118
15119 # Shared library runtime path variable.
15120 runpath_var=$runpath_var
15121
15122 # Shared library path variable.
15123 shlibpath_var=$shlibpath_var
15124
15125 # Is shlibpath searched before the hard-coded library search path?
15126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15127
15128 # Format of library name prefix.
15129 libname_spec=$lt_libname_spec
15130
15131 # List of archive names. First name is the real one, the rest are links.
15132 # The last name is the one that the linker finds with -lNAME
15133 library_names_spec=$lt_library_names_spec
15134
15135 # The coded name of the library, if different from the real name.
15136 soname_spec=$lt_soname_spec
15137
15138 # Permission mode override for installation of shared libraries.
15139 install_override_mode=$lt_install_override_mode
15140
15141 # Command to use after installation of a shared archive.
15142 postinstall_cmds=$lt_postinstall_cmds
15143
15144 # Command to use after uninstallation of a shared archive.
15145 postuninstall_cmds=$lt_postuninstall_cmds
15146
15147 # Commands used to finish a libtool library installation in a directory.
15148 finish_cmds=$lt_finish_cmds
15149
15150 # As "finish_cmds", except a single script fragment to be evaled but
15151 # not shown.
15152 finish_eval=$lt_finish_eval
15153
15154 # Whether we should hardcode library paths into libraries.
15155 hardcode_into_libs=$hardcode_into_libs
15156
15157 # Compile-time system search path for libraries.
15158 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15159
15160 # Detected run-time system search path for libraries.
15161 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15162
15163 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15164 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15165
15166 # Whether dlopen is supported.
15167 dlopen_support=$enable_dlopen
15168
15169 # Whether dlopen of programs is supported.
15170 dlopen_self=$enable_dlopen_self
15171
15172 # Whether dlopen of statically linked programs is supported.
15173 dlopen_self_static=$enable_dlopen_self_static
15174
15175 # Commands to strip libraries.
15176 old_striplib=$lt_old_striplib
15177 striplib=$lt_striplib
15178
15179
15180 # The linker used to build libraries.
15181 LD=$lt_LD
15182
15183 # How to create reloadable object files.
15184 reload_flag=$lt_reload_flag
15185 reload_cmds=$lt_reload_cmds
15186
15187 # Commands used to build an old-style archive.
15188 old_archive_cmds=$lt_old_archive_cmds
15189
15190 # A language specific compiler.
15191 CC=$lt_compiler
15192
15193 # Is the compiler the GNU compiler?
15194 with_gcc=$GCC
15195
15196 # Compiler flag to turn off builtin functions.
15197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15198
15199 # Additional compiler flags for building library objects.
15200 pic_flag=$lt_lt_prog_compiler_pic
15201
15202 # How to pass a linker flag through the compiler.
15203 wl=$lt_lt_prog_compiler_wl
15204
15205 # Compiler flag to prevent dynamic linking.
15206 link_static_flag=$lt_lt_prog_compiler_static
15207
15208 # Does compiler simultaneously support -c and -o options?
15209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15210
15211 # Whether or not to add -lc for building shared libraries.
15212 build_libtool_need_lc=$archive_cmds_need_lc
15213
15214 # Whether or not to disallow shared libs when runtime libs are static.
15215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15216
15217 # Compiler flag to allow reflexive dlopens.
15218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15219
15220 # Compiler flag to generate shared objects directly from archives.
15221 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15222
15223 # Whether the compiler copes with passing no objects directly.
15224 compiler_needs_object=$lt_compiler_needs_object
15225
15226 # Create an old-style archive from a shared archive.
15227 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15228
15229 # Create a temporary old-style archive to link instead of a shared archive.
15230 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15231
15232 # Commands used to build a shared archive.
15233 archive_cmds=$lt_archive_cmds
15234 archive_expsym_cmds=$lt_archive_expsym_cmds
15235
15236 # Commands used to build a loadable module if different from building
15237 # a shared archive.
15238 module_cmds=$lt_module_cmds
15239 module_expsym_cmds=$lt_module_expsym_cmds
15240
15241 # Whether we are building with GNU ld or not.
15242 with_gnu_ld=$lt_with_gnu_ld
15243
15244 # Flag that allows shared libraries with undefined symbols to be built.
15245 allow_undefined_flag=$lt_allow_undefined_flag
15246
15247 # Flag that enforces no undefined symbols.
15248 no_undefined_flag=$lt_no_undefined_flag
15249
15250 # Flag to hardcode \$libdir into a binary during linking.
15251 # This must work even if \$libdir does not exist
15252 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15253
15254 # Whether we need a single "-rpath" flag with a separated argument.
15255 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15256
15257 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15258 # DIR into the resulting binary.
15259 hardcode_direct=$hardcode_direct
15260
15261 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15262 # DIR into the resulting binary and the resulting library dependency is
15263 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15264 # library is relocated.
15265 hardcode_direct_absolute=$hardcode_direct_absolute
15266
15267 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15268 # into the resulting binary.
15269 hardcode_minus_L=$hardcode_minus_L
15270
15271 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15272 # into the resulting binary.
15273 hardcode_shlibpath_var=$hardcode_shlibpath_var
15274
15275 # Set to "yes" if building a shared library automatically hardcodes DIR
15276 # into the library and all subsequent libraries and executables linked
15277 # against it.
15278 hardcode_automatic=$hardcode_automatic
15279
15280 # Set to yes if linker adds runtime paths of dependent libraries
15281 # to runtime path list.
15282 inherit_rpath=$inherit_rpath
15283
15284 # Whether libtool must link a program against all its dependency libraries.
15285 link_all_deplibs=$link_all_deplibs
15286
15287 # Set to "yes" if exported symbols are required.
15288 always_export_symbols=$always_export_symbols
15289
15290 # The commands to list exported symbols.
15291 export_symbols_cmds=$lt_export_symbols_cmds
15292
15293 # Symbols that should not be listed in the preloaded symbols.
15294 exclude_expsyms=$lt_exclude_expsyms
15295
15296 # Symbols that must always be exported.
15297 include_expsyms=$lt_include_expsyms
15298
15299 # Commands necessary for linking programs (against libraries) with templates.
15300 prelink_cmds=$lt_prelink_cmds
15301
15302 # Commands necessary for finishing linking programs.
15303 postlink_cmds=$lt_postlink_cmds
15304
15305 # Specify filename containing input files.
15306 file_list_spec=$lt_file_list_spec
15307
15308 # How to hardcode a shared library path into an executable.
15309 hardcode_action=$hardcode_action
15310
15311 # ### END LIBTOOL CONFIG
15312
15313 _LT_EOF
15314
15315 cat <<'_LT_EOF' >> "$cfgfile"
15316
15317 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15318
15319 # func_munge_path_list VARIABLE PATH
15320 # -----------------------------------
15321 # VARIABLE is name of variable containing _space_ separated list of
15322 # directories to be munged by the contents of PATH, which is string
15323 # having a format:
15324 # "DIR[:DIR]:"
15325 # string "DIR[ DIR]" will be prepended to VARIABLE
15326 # ":DIR[:DIR]"
15327 # string "DIR[ DIR]" will be appended to VARIABLE
15328 # "DIRP[:DIRP]::[DIRA:]DIRA"
15329 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15330 # "DIRA[ DIRA]" will be appended to VARIABLE
15331 # "DIR[:DIR]"
15332 # VARIABLE will be replaced by "DIR[ DIR]"
15333 func_munge_path_list ()
15334 {
15335 case x$2 in
15336 x)
15337 ;;
15338 *:)
15339 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15340 ;;
15341 x:*)
15342 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15343 ;;
15344 *::*)
15345 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15346 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15347 ;;
15348 *)
15349 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15350 ;;
15351 esac
15352 }
15353
15354
15355 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15356 func_cc_basename ()
15357 {
15358 for cc_temp in $*""; do
15359 case $cc_temp in
15360 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15361 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15362 \-*) ;;
15363 *) break;;
15364 esac
15365 done
15366 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15367 }
15368
15369
15370 # ### END FUNCTIONS SHARED WITH CONFIGURE
15371
15372 _LT_EOF
15373
15374 case $host_os in
15375 aix3*)
15376 cat <<\_LT_EOF >> "$cfgfile"
15377 # AIX sometimes has problems with the GCC collect2 program. For some
15378 # reason, if we set the COLLECT_NAMES environment variable, the problems
15379 # vanish in a puff of smoke.
15380 if test set != "${COLLECT_NAMES+set}"; then
15381 COLLECT_NAMES=
15382 export COLLECT_NAMES
15383 fi
15384 _LT_EOF
15385 ;;
15386 esac
15387
15388
15389 ltmain=$ac_aux_dir/ltmain.sh
15390
15391
15392 # We use sed instead of cat because bash on DJGPP gets confused if
15393 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15394 # text mode, it properly converts lines to CR/LF. This bash problem
15395 # is reportedly fixed, but why not run on old versions too?
15396 sed '$q' "$ltmain" >> "$cfgfile" \
15397 || (rm -f "$cfgfile"; exit 1)
15398
15399 mv -f "$cfgfile" "$ofile" ||
15400 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15401 chmod +x "$ofile"
15402
15403 ;;
15404
15405 esac
15406 done # for ac_tag
15407
15408
15409 as_fn_exit 0
15410 _ACEOF
15411 ac_clean_files=$ac_clean_files_save
15412
15413 test $ac_write_fail = 0 ||
15414 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15415
15416
15417 # configure is writing to config.log, and then calls config.status.
15418 # config.status does its own redirection, appending to config.log.
15419 # Unfortunately, on DOS this fails, as config.log is still kept open
15420 # by configure, so config.status won't be able to write to it; its
15421 # output is simply discarded. So we exec the FD to /dev/null,
15422 # effectively closing config.log, so it can be properly (re)opened and
15423 # appended to by config.status. When coming back to configure, we
15424 # need to make the FD available again.
15425 if test "$no_create" != yes; then
15426 ac_cs_success=:
15427 ac_config_status_args=
15428 test "$silent" = yes &&
15429 ac_config_status_args="$ac_config_status_args --quiet"
15430 exec 5>/dev/null
15431 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15432 exec 5>>config.log
15433 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15434 # would make configure fail if this is the last instruction.
15435 $ac_cs_success || as_fn_exit 1
15436 fi
15437 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15439 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15440 fi
15441