libdockapp: Add version 0.6.3 to repository.
[dockapps.git] / libdockapp / configure
blob896249f6a9f049bf86530f6d41c8d36a33aab64e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libdockapp 0.6.3.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='libdockapp'
589 PACKAGE_TARNAME='libdockapp'
590 PACKAGE_VERSION='0.6.3'
591 PACKAGE_STRING='libdockapp 0.6.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="src/dockapp.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 FONTDIR
637 FONTROOTDIR
638 MKFONTDIR
639 RUN_FCCACHE
640 FCCACHE
641 DFLAGS
642 xpm_LIBS
643 xpm_CFLAGS
644 Xext_LIBS
645 Xext_CFLAGS
646 X11_LIBS
647 X11_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 COND_EXAMPLES_FALSE
657 COND_EXAMPLES_TRUE
658 COND_FONT_FALSE
659 COND_FONT_TRUE
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 MANIFEST_TOOL
667 RANLIB
668 ac_ct_AR
670 DLLTOOL
671 OBJDUMP
672 LN_S
674 ac_ct_DUMPBIN
675 DUMPBIN
677 FGREP
678 EGREP
679 GREP
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 LIBTOOL
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 AM_DEFAULT_V
710 AM_V
711 am__untar
712 am__tar
713 AMTAR
714 am__leading_dot
715 SET_MAKE
717 mkdir_p
718 MKDIR_P
719 INSTALL_STRIP_PROGRAM
720 STRIP
721 install_sh
722 MAKEINFO
723 AUTOHEADER
724 AUTOMAKE
725 AUTOCONF
726 ACLOCAL
727 VERSION
728 PACKAGE
729 CYGPATH_W
730 am__isrc
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
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 enable_dependency_tracking
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
784 with_font
785 with_examples
786 with_x
787 enable_debug
788 with_fontrootdir
789 with_fontdir
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
800 XMKMF
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'
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
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 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
860 ac_prev=
861 ac_dashdash=
862 for ac_option
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
881 ac_dashdash=yes ;;
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
900 --config-cache | -C)
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 esac
1218 done
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1302 /^X\(\/\/\)$/{
1303 s//\1/
1306 /^X\(\/\).*/{
1307 s//\1/
1310 s/.*/./; q'`
1311 srcdir=$ac_confdir
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 srcdir=..
1315 else
1316 ac_srcdir_defaulted=no
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 \`configure' configures libdockapp 0.6.3 to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/libdockapp]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1403 _ACEOF
1405 cat <<\_ACEOF
1407 Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412 X features:
1413 --x-includes=DIR X include files are in DIR
1414 --x-libraries=DIR X library files are in DIR
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of libdockapp 0.6.3:";;
1425 esac
1426 cat <<\_ACEOF
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-static[=PKGS] build static libraries [default=yes]
1436 --enable-fast-install[=PKGS]
1437 optimize for fast installation [default=yes]
1438 --enable-dependency-tracking
1439 do not reject slow dependency extractors
1440 --disable-dependency-tracking
1441 speeds up one-time build
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1443 --enable-debug enable debugging
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1449 both]
1450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1451 --with-sysroot=DIR Search for dependent libraries within DIR
1452 (or the compiler's sysroot if not specified).
1453 --with-font install the dockapp font (default=yes)
1454 --with-examples install the examples (default=yes)
1455 --with-x use the X Window System
1456 --with-fontrootdir=DIR Path to root directory for font files
1457 --with-fontdir=DIR Path to misc files [FONTROOTDIR/misc]
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CPP C preprocessor
1468 XMKMF Path to xmkmf, Makefile generator for X Window System
1469 PKG_CONFIG path to pkg-config utility
1470 PKG_CONFIG_PATH
1471 directories to add to pkg-config's search path
1472 PKG_CONFIG_LIBDIR
1473 path overriding pkg-config's built-in search path
1474 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1475 X11_LIBS linker flags for X11, overriding pkg-config
1476 Xext_CFLAGS C compiler flags for Xext, overriding pkg-config
1477 Xext_LIBS linker flags for Xext, overriding pkg-config
1478 xpm_CFLAGS C compiler flags for xpm, overriding pkg-config
1479 xpm_LIBS linker flags for xpm, overriding pkg-config
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1484 Report bugs to the package provider.
1485 _ACEOF
1486 ac_status=$?
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" ||
1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 continue
1495 ac_builddir=.
1497 case "$ac_dir" in
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 esac ;;
1507 esac
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1513 case $srcdir in
1514 .) # We are building in place.
1515 ac_srcdir=.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1522 *) # Relative name.
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 esac
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1537 else
1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 fi || ac_status=$?
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1541 done
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546 cat <<\_ACEOF
1547 libdockapp configure 0.6.3
1548 generated by GNU Autoconf 2.69
1550 Copyright (C) 2012 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554 exit
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1592 ac_retval=1
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1597 } # ac_fn_c_try_compile
1599 # ac_fn_c_try_link LINENO
1600 # -----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_link ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext conftest$ac_exeext
1606 if { { ac_try="$ac_link"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest$ac_exeext && {
1625 test "$cross_compiling" = yes ||
1626 test -x conftest$ac_exeext
1627 }; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=1
1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1637 # interfere with the next link command; also delete a directory that is
1638 # left behind by Apple's compiler. We do this before executing the actions.
1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1643 } # ac_fn_c_try_link
1645 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists and can be compiled using the include files in
1648 # INCLUDES, setting the cache variable VAR accordingly.
1649 ac_fn_c_check_header_compile ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1656 else
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 eval "$3=yes"
1664 else
1665 eval "$3=no"
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 } # ac_fn_c_check_header_compile
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1706 ac_retval=1
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_cpp
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_run
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1783 #undef $2
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1800 main ()
1802 return $2 ();
1804 return 0;
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_func
1821 cat >config.log <<_ACEOF
1822 This file contains any messages produced by compilers while
1823 running configure, to aid debugging if configure makes a mistake.
1825 It was created by libdockapp $as_me 0.6.3, which was
1826 generated by GNU Autoconf 2.69. Invocation command line was
1828 $ $0 $@
1830 _ACEOF
1831 exec 5>>config.log
1833 cat <<_ASUNAME
1834 ## --------- ##
1835 ## Platform. ##
1836 ## --------- ##
1838 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1844 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1847 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1848 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1849 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1851 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1852 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1853 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1855 _ASUNAME
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 $as_echo "PATH: $as_dir"
1863 done
1864 IFS=$as_save_IFS
1866 } >&5
1868 cat >&5 <<_ACEOF
1871 ## ----------- ##
1872 ## Core tests. ##
1873 ## ----------- ##
1875 _ACEOF
1878 # Keep a trace of the command line.
1879 # Strip out --no-create and --no-recursion so they do not pile up.
1880 # Strip out --silent because we don't want to record it for future runs.
1881 # Also quote any args containing shell meta-characters.
1882 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_configure_args=
1884 ac_configure_args0=
1885 ac_configure_args1=
1886 ac_must_keep_next=false
1887 for ac_pass in 1 2
1889 for ac_arg
1891 case $ac_arg in
1892 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894 | -silent | --silent | --silen | --sile | --sil)
1895 continue ;;
1896 *\'*)
1897 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 esac
1899 case $ac_pass in
1900 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1902 as_fn_append ac_configure_args1 " '$ac_arg'"
1903 if test $ac_must_keep_next = true; then
1904 ac_must_keep_next=false # Got value, back to normal.
1905 else
1906 case $ac_arg in
1907 *=* | --config-cache | -C | -disable-* | --disable-* \
1908 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910 | -with-* | --with-* | -without-* | --without-* | --x)
1911 case "$ac_configure_args0 " in
1912 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913 esac
1915 -* ) ac_must_keep_next=true ;;
1916 esac
1918 as_fn_append ac_configure_args " '$ac_arg'"
1920 esac
1921 done
1922 done
1923 { ac_configure_args0=; unset ac_configure_args0;}
1924 { ac_configure_args1=; unset ac_configure_args1;}
1926 # When interrupted or exit'd, cleanup temporary files, and complete
1927 # config.log. We remove comments because anyway the quotes in there
1928 # would cause problems or look ugly.
1929 # WARNING: Use '\'' to represent an apostrophe within the trap.
1930 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931 trap 'exit_status=$?
1932 # Save into config.log some information that might help in debugging.
1934 echo
1936 $as_echo "## ---------------- ##
1937 ## Cache variables. ##
1938 ## ---------------- ##"
1939 echo
1940 # The following way of writing the cache mishandles newlines in values,
1942 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943 eval ac_val=\$$ac_var
1944 case $ac_val in #(
1945 *${as_nl}*)
1946 case $ac_var in #(
1947 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949 esac
1950 case $ac_var in #(
1951 _ | IFS | as_nl) ;; #(
1952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1953 *) { eval $ac_var=; unset $ac_var;} ;;
1954 esac ;;
1955 esac
1956 done
1957 (set) 2>&1 |
1958 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959 *${as_nl}ac_space=\ *)
1960 sed -n \
1961 "s/'\''/'\''\\\\'\'''\''/g;
1962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963 ;; #(
1965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1967 esac |
1968 sort
1970 echo
1972 $as_echo "## ----------------- ##
1973 ## Output variables. ##
1974 ## ----------------- ##"
1975 echo
1976 for ac_var in $ac_subst_vars
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1986 if test -n "$ac_subst_files"; then
1987 $as_echo "## ------------------- ##
1988 ## File substitutions. ##
1989 ## ------------------- ##"
1990 echo
1991 for ac_var in $ac_subst_files
1993 eval ac_val=\$$ac_var
1994 case $ac_val in
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 esac
1997 $as_echo "$ac_var='\''$ac_val'\''"
1998 done | sort
1999 echo
2002 if test -s confdefs.h; then
2003 $as_echo "## ----------- ##
2004 ## confdefs.h. ##
2005 ## ----------- ##"
2006 echo
2007 cat confdefs.h
2008 echo
2010 test "$ac_signal" != 0 &&
2011 $as_echo "$as_me: caught signal $ac_signal"
2012 $as_echo "$as_me: exit $exit_status"
2013 } >&5
2014 rm -f core *.core core.conftest.* &&
2015 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016 exit $exit_status
2018 for ac_signal in 1 2 13 15; do
2019 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020 done
2021 ac_signal=0
2023 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2024 rm -f -r conftest* confdefs.h
2026 $as_echo "/* confdefs.h */" > confdefs.h
2028 # Predefined preprocessor variables.
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_NAME "$PACKAGE_NAME"
2032 _ACEOF
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036 _ACEOF
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2040 _ACEOF
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_STRING "$PACKAGE_STRING"
2044 _ACEOF
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048 _ACEOF
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_URL "$PACKAGE_URL"
2052 _ACEOF
2055 # Let the site file select an alternate cache file if it wants to.
2056 # Prefer an explicitly selected file to automatically selected ones.
2057 ac_site_file1=NONE
2058 ac_site_file2=NONE
2059 if test -n "$CONFIG_SITE"; then
2060 # We do not want a PATH search for config.site.
2061 case $CONFIG_SITE in #((
2062 -*) ac_site_file1=./$CONFIG_SITE;;
2063 */*) ac_site_file1=$CONFIG_SITE;;
2064 *) ac_site_file1=./$CONFIG_SITE;;
2065 esac
2066 elif test "x$prefix" != xNONE; then
2067 ac_site_file1=$prefix/share/config.site
2068 ac_site_file2=$prefix/etc/config.site
2069 else
2070 ac_site_file1=$ac_default_prefix/share/config.site
2071 ac_site_file2=$ac_default_prefix/etc/config.site
2073 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075 test "x$ac_site_file" = xNONE && continue
2076 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079 sed 's/^/| /' "$ac_site_file" >&5
2080 . "$ac_site_file" \
2081 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2083 as_fn_error $? "failed to load site script $ac_site_file
2084 See \`config.log' for more details" "$LINENO" 5; }
2086 done
2088 if test -r "$cache_file"; then
2089 # Some versions of bash will fail to source /dev/null (special files
2090 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2091 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093 $as_echo "$as_me: loading cache $cache_file" >&6;}
2094 case $cache_file in
2095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096 *) . "./$cache_file";;
2097 esac
2099 else
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101 $as_echo "$as_me: creating cache $cache_file" >&6;}
2102 >$cache_file
2105 # Check that the precious variables saved in the cache have kept the same
2106 # value.
2107 ac_cache_corrupted=false
2108 for ac_var in $ac_precious_vars; do
2109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110 eval ac_new_set=\$ac_env_${ac_var}_set
2111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112 eval ac_new_val=\$ac_env_${ac_var}_value
2113 case $ac_old_set,$ac_new_set in
2114 set,)
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117 ac_cache_corrupted=: ;;
2118 ,set)
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2122 ,);;
2124 if test "x$ac_old_val" != "x$ac_new_val"; then
2125 # differences in whitespace do not lead to failure.
2126 ac_old_val_w=`echo x $ac_old_val`
2127 ac_new_val_w=`echo x $ac_new_val`
2128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131 ac_cache_corrupted=:
2132 else
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135 eval $ac_var=\$ac_old_val
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2141 fi;;
2142 esac
2143 # Pass precious variables to config.status.
2144 if test "$ac_new_set" = set; then
2145 case $ac_new_val in
2146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147 *) ac_arg=$ac_var=$ac_new_val ;;
2148 esac
2149 case " $ac_configure_args " in
2150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152 esac
2154 done
2155 if $ac_cache_corrupted; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162 ## -------------------- ##
2163 ## Main body of script. ##
2164 ## -------------------- ##
2166 ac_ext=c
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174 am__api_version='1.14'
2176 ac_aux_dir=
2177 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2178 if test -f "$ac_dir/install-sh"; then
2179 ac_aux_dir=$ac_dir
2180 ac_install_sh="$ac_aux_dir/install-sh -c"
2181 break
2182 elif test -f "$ac_dir/install.sh"; then
2183 ac_aux_dir=$ac_dir
2184 ac_install_sh="$ac_aux_dir/install.sh -c"
2185 break
2186 elif test -f "$ac_dir/shtool"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/shtool install -c"
2189 break
2191 done
2192 if test -z "$ac_aux_dir"; then
2193 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2196 # These three variables are undocumented and unsupported,
2197 # and are intended to be withdrawn in a future Autoconf release.
2198 # They can cause serious problems if a builder's source tree is in a directory
2199 # whose full name contains unusual characters.
2200 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2201 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2202 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2205 # Find a good install program. We prefer a C program (faster),
2206 # so one script is as good as another. But avoid the broken or
2207 # incompatible versions:
2208 # SysV /etc/install, /usr/sbin/install
2209 # SunOS /usr/etc/install
2210 # IRIX /sbin/install
2211 # AIX /bin/install
2212 # AmigaOS /C/install, which installs bootblocks on floppy discs
2213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2216 # OS/2's system install, which has a completely different semantic
2217 # ./install, which can be erroneously created by make from ./install.sh.
2218 # Reject install programs that cannot install multiple files.
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2220 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2221 if test -z "$INSTALL"; then
2222 if ${ac_cv_path_install+:} false; then :
2223 $as_echo_n "(cached) " >&6
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 # Account for people who put trailing slashes in PATH elements.
2231 case $as_dir/ in #((
2232 ./ | .// | /[cC]/* | \
2233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2234 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2235 /usr/ucb/* ) ;;
2237 # OSF1 and SCO ODT 3.0 have their own names for install.
2238 # Don't use installbsd from OSF since it installs stuff as root
2239 # by default.
2240 for ac_prog in ginstall scoinst install; do
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2243 if test $ac_prog = install &&
2244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2245 # AIX install. It has an incompatible calling convention.
2247 elif test $ac_prog = install &&
2248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # program-specific install script used by HP pwplus--don't use.
2251 else
2252 rm -rf conftest.one conftest.two conftest.dir
2253 echo one > conftest.one
2254 echo two > conftest.two
2255 mkdir conftest.dir
2256 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2257 test -s conftest.one && test -s conftest.two &&
2258 test -s conftest.dir/conftest.one &&
2259 test -s conftest.dir/conftest.two
2260 then
2261 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2262 break 3
2266 done
2267 done
2269 esac
2271 done
2272 IFS=$as_save_IFS
2274 rm -rf conftest.one conftest.two conftest.dir
2277 if test "${ac_cv_path_install+set}" = set; then
2278 INSTALL=$ac_cv_path_install
2279 else
2280 # As a last resort, use the slow shell script. Don't cache a
2281 # value for INSTALL within a source directory, because that will
2282 # break other packages using the cache if that directory is
2283 # removed, or if the value is a relative name.
2284 INSTALL=$ac_install_sh
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2288 $as_echo "$INSTALL" >&6; }
2290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2291 # It thinks the first close brace ends the variable substitution.
2292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2299 $as_echo_n "checking whether build environment is sane... " >&6; }
2300 # Reject unsafe characters in $srcdir or the absolute working directory
2301 # name. Accept space and tab only in the latter.
2302 am_lf='
2304 case `pwd` in
2305 *[\\\"\#\$\&\'\`$am_lf]*)
2306 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2307 esac
2308 case $srcdir in
2309 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2310 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2311 esac
2313 # Do 'set' in a subshell so we don't clobber the current shell's
2314 # arguments. Must try -L first in case configure is actually a
2315 # symlink; some systems play weird games with the mod time of symlinks
2316 # (eg FreeBSD returns the mod time of the symlink's containing
2317 # directory).
2318 if (
2319 am_has_slept=no
2320 for am_try in 1 2; do
2321 echo "timestamp, slept: $am_has_slept" > conftest.file
2322 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2323 if test "$*" = "X"; then
2324 # -L didn't work.
2325 set X `ls -t "$srcdir/configure" conftest.file`
2327 if test "$*" != "X $srcdir/configure conftest.file" \
2328 && test "$*" != "X conftest.file $srcdir/configure"; then
2330 # If neither matched, then we have a broken ls. This can happen
2331 # if, for instance, CONFIG_SHELL is bash and it inherits a
2332 # broken ls alias from the environment. This has actually
2333 # happened. Such a system could not be considered "sane".
2334 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2335 alias in your environment" "$LINENO" 5
2337 if test "$2" = conftest.file || test $am_try -eq 2; then
2338 break
2340 # Just in case.
2341 sleep 1
2342 am_has_slept=yes
2343 done
2344 test "$2" = conftest.file
2346 then
2347 # Ok.
2349 else
2350 as_fn_error $? "newly created file is older than distributed files!
2351 Check your system clock" "$LINENO" 5
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2354 $as_echo "yes" >&6; }
2355 # If we didn't sleep, we still need to ensure time stamps of config.status and
2356 # generated files are strictly newer.
2357 am_sleep_pid=
2358 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2359 ( sleep 1 ) &
2360 am_sleep_pid=$!
2363 rm -f conftest.file
2365 test "$program_prefix" != NONE &&
2366 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2367 # Use a double $ so make ignores it.
2368 test "$program_suffix" != NONE &&
2369 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2370 # Double any \ or $.
2371 # By default was `s,x,x', remove it if useless.
2372 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2373 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2375 # expand $ac_aux_dir to an absolute path
2376 am_aux_dir=`cd $ac_aux_dir && pwd`
2378 if test x"${MISSING+set}" != xset; then
2379 case $am_aux_dir in
2380 *\ * | *\ *)
2381 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2383 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2384 esac
2386 # Use eval to expand $SHELL
2387 if eval "$MISSING --is-lightweight"; then
2388 am_missing_run="$MISSING "
2389 else
2390 am_missing_run=
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2392 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2395 if test x"${install_sh}" != xset; then
2396 case $am_aux_dir in
2397 *\ * | *\ *)
2398 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2400 install_sh="\${SHELL} $am_aux_dir/install-sh"
2401 esac
2404 # Installed binaries are usually stripped using 'strip' when the user
2405 # run "make install-strip". However 'strip' might not be the right
2406 # tool to use in cross-compilation environments, therefore Automake
2407 # will honor the 'STRIP' environment variable to overrule this program.
2408 if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}strip; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if ${ac_cv_prog_STRIP+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2431 done
2432 done
2433 IFS=$as_save_IFS
2437 STRIP=$ac_cv_prog_STRIP
2438 if test -n "$STRIP"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2440 $as_echo "$STRIP" >&6; }
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2448 if test -z "$ac_cv_prog_STRIP"; then
2449 ac_ct_STRIP=$STRIP
2450 # Extract the first word of "strip", so it can be a program name with args.
2451 set dummy strip; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_ac_ct_STRIP="strip"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2471 done
2472 done
2473 IFS=$as_save_IFS
2477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478 if test -n "$ac_ct_STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2480 $as_echo "$ac_ct_STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2486 if test "x$ac_ct_STRIP" = x; then
2487 STRIP=":"
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490 yes:)
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495 STRIP=$ac_ct_STRIP
2497 else
2498 STRIP="$ac_cv_prog_STRIP"
2502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2505 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2506 if test -z "$MKDIR_P"; then
2507 if ${ac_cv_path_mkdir+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_prog in mkdir gmkdir; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2518 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2519 'mkdir (GNU coreutils) '* | \
2520 'mkdir (coreutils) '* | \
2521 'mkdir (fileutils) '4.1*)
2522 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2523 break 3;;
2524 esac
2525 done
2526 done
2527 done
2528 IFS=$as_save_IFS
2532 test -d ./--version && rmdir ./--version
2533 if test "${ac_cv_path_mkdir+set}" = set; then
2534 MKDIR_P="$ac_cv_path_mkdir -p"
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for MKDIR_P within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 MKDIR_P="$ac_install_sh -d"
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2544 $as_echo "$MKDIR_P" >&6; }
2546 for ac_prog in gawk mawk nawk awk
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549 set dummy $ac_prog; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_AWK+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test -n "$AWK"; then
2556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565 ac_cv_prog_AWK="$ac_prog"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2569 done
2570 done
2571 IFS=$as_save_IFS
2575 AWK=$ac_cv_prog_AWK
2576 if test -n "$AWK"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2578 $as_echo "$AWK" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2585 test -n "$AWK" && break
2586 done
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2589 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2590 set x ${MAKE-make}
2591 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2592 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 cat >conftest.make <<\_ACEOF
2596 SHELL = /bin/sh
2597 all:
2598 @echo '@@@%%%=$(MAKE)=@@@%%%'
2599 _ACEOF
2600 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2601 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2602 *@@@%%%=?*=@@@%%%*)
2603 eval ac_cv_prog_make_${ac_make}_set=yes;;
2605 eval ac_cv_prog_make_${ac_make}_set=no;;
2606 esac
2607 rm -f conftest.make
2609 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 SET_MAKE=
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 SET_MAKE="MAKE=${MAKE-make}"
2619 rm -rf .tst 2>/dev/null
2620 mkdir .tst 2>/dev/null
2621 if test -d .tst; then
2622 am__leading_dot=.
2623 else
2624 am__leading_dot=_
2626 rmdir .tst 2>/dev/null
2628 # Check whether --enable-silent-rules was given.
2629 if test "${enable_silent_rules+set}" = set; then :
2630 enableval=$enable_silent_rules;
2633 case $enable_silent_rules in # (((
2634 yes) AM_DEFAULT_VERBOSITY=0;;
2635 no) AM_DEFAULT_VERBOSITY=1;;
2636 *) AM_DEFAULT_VERBOSITY=1;;
2637 esac
2638 am_make=${MAKE-make}
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2640 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2641 if ${am_cv_make_support_nested_variables+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if $as_echo 'TRUE=$(BAR$(V))
2645 BAR0=false
2646 BAR1=true
2648 am__doit:
2649 @$(TRUE)
2650 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2651 am_cv_make_support_nested_variables=yes
2652 else
2653 am_cv_make_support_nested_variables=no
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2657 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2658 if test $am_cv_make_support_nested_variables = yes; then
2659 AM_V='$(V)'
2660 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2661 else
2662 AM_V=$AM_DEFAULT_VERBOSITY
2663 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2665 AM_BACKSLASH='\'
2667 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2668 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2669 # is not polluted with repeated "-I."
2670 am__isrc=' -I$(srcdir)'
2671 # test to see if srcdir already configured
2672 if test -f $srcdir/config.status; then
2673 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2677 # test whether we have cygpath
2678 if test -z "$CYGPATH_W"; then
2679 if (cygpath --version) >/dev/null 2>/dev/null; then
2680 CYGPATH_W='cygpath -w'
2681 else
2682 CYGPATH_W=echo
2687 # Define the identity of the package.
2688 PACKAGE='libdockapp'
2689 VERSION='0.6.3'
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE "$PACKAGE"
2694 _ACEOF
2697 cat >>confdefs.h <<_ACEOF
2698 #define VERSION "$VERSION"
2699 _ACEOF
2701 # Some tools Automake needs.
2703 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2706 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2709 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2712 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2715 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2717 # For better backward compatibility. To be removed once Automake 1.9.x
2718 # dies out for good. For more background, see:
2719 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2720 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2721 mkdir_p='$(MKDIR_P)'
2723 # We need awk for the "check" target. The system "awk" is bad on
2724 # some platforms.
2725 # Always define AMTAR for backward compatibility. Yes, it's still used
2726 # in the wild :-( We should find a proper way to deprecate it ...
2727 AMTAR='$${TAR-tar}'
2730 # We'll loop over all known methods to create a tar archive until one works.
2731 _am_tools='gnutar pax cpio none'
2733 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2740 # POSIX will say in a future version that running "rm -f" with no argument
2741 # is OK; and we want to be able to make that assumption in our Makefile
2742 # recipes. So use an aggressive probe to check that the usage we want is
2743 # actually supported "in the wild" to an acceptable degree.
2744 # See automake bug#10828.
2745 # To make any issue more visible, cause the running configure to be aborted
2746 # by default if the 'rm' program in use doesn't match our expectations; the
2747 # user can still override this though.
2748 if rm -f && rm -fr && rm -rf; then : OK; else
2749 cat >&2 <<'END'
2750 Oops!
2752 Your 'rm' program seems unable to run without file operands specified
2753 on the command line, even when the '-f' option is present. This is contrary
2754 to the behaviour of most rm programs out there, and not conforming with
2755 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2757 Please tell bug-automake@gnu.org about your system, including the value
2758 of your $PATH and any error possibly output before this message. This
2759 can help us improve future automake versions.
2762 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2763 echo 'Configuration will proceed anyway, since you have set the' >&2
2764 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2765 echo >&2
2766 else
2767 cat >&2 <<'END'
2768 Aborting the configuration process, to ensure you take notice of the issue.
2770 You can download and install GNU coreutils to get an 'rm' implementation
2771 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2773 If you want to complete the configuration process using your problematic
2774 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2775 to "yes", and re-run configure.
2778 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2782 case `pwd` in
2783 *\ * | *\ *)
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2785 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2786 esac
2790 macro_version='2.4.2'
2791 macro_revision='1.3337'
2805 ltmain="$ac_aux_dir/ltmain.sh"
2807 # Make sure we can run config.sub.
2808 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2809 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2812 $as_echo_n "checking build system type... " >&6; }
2813 if ${ac_cv_build+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 ac_build_alias=$build_alias
2817 test "x$ac_build_alias" = x &&
2818 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2819 test "x$ac_build_alias" = x &&
2820 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2821 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2822 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2826 $as_echo "$ac_cv_build" >&6; }
2827 case $ac_cv_build in
2828 *-*-*) ;;
2829 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2830 esac
2831 build=$ac_cv_build
2832 ac_save_IFS=$IFS; IFS='-'
2833 set x $ac_cv_build
2834 shift
2835 build_cpu=$1
2836 build_vendor=$2
2837 shift; shift
2838 # Remember, the first character of IFS is used to create $*,
2839 # except with old shells:
2840 build_os=$*
2841 IFS=$ac_save_IFS
2842 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2846 $as_echo_n "checking host system type... " >&6; }
2847 if ${ac_cv_host+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test "x$host_alias" = x; then
2851 ac_cv_host=$ac_cv_build
2852 else
2853 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2854 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2859 $as_echo "$ac_cv_host" >&6; }
2860 case $ac_cv_host in
2861 *-*-*) ;;
2862 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2863 esac
2864 host=$ac_cv_host
2865 ac_save_IFS=$IFS; IFS='-'
2866 set x $ac_cv_host
2867 shift
2868 host_cpu=$1
2869 host_vendor=$2
2870 shift; shift
2871 # Remember, the first character of IFS is used to create $*,
2872 # except with old shells:
2873 host_os=$*
2874 IFS=$ac_save_IFS
2875 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2878 # Backslashify metacharacters that are still active within
2879 # double-quoted strings.
2880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2882 # Same as above, but do not quote variable references.
2883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2885 # Sed substitution to delay expansion of an escaped shell variable in a
2886 # double_quote_subst'ed string.
2887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2889 # Sed substitution to delay expansion of an escaped single quote.
2890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2892 # Sed substitution to avoid accidental globbing in evaled expressions
2893 no_glob_subst='s/\*/\\\*/g'
2895 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2900 $as_echo_n "checking how to print strings... " >&6; }
2901 # Test print first, because it will be a builtin if present.
2902 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2903 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2904 ECHO='print -r --'
2905 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2906 ECHO='printf %s\n'
2907 else
2908 # Use this function as a fallback that always works.
2909 func_fallback_echo ()
2911 eval 'cat <<_LTECHO_EOF
2913 _LTECHO_EOF'
2915 ECHO='func_fallback_echo'
2918 # func_echo_all arg...
2919 # Invoke $ECHO with all args, space-separated.
2920 func_echo_all ()
2922 $ECHO ""
2925 case "$ECHO" in
2926 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2927 $as_echo "printf" >&6; } ;;
2928 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2929 $as_echo "print -r" >&6; } ;;
2930 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2931 $as_echo "cat" >&6; } ;;
2932 esac
2947 DEPDIR="${am__leading_dot}deps"
2949 ac_config_commands="$ac_config_commands depfiles"
2952 am_make=${MAKE-make}
2953 cat > confinc << 'END'
2954 am__doit:
2955 @echo this is the am__doit target
2956 .PHONY: am__doit
2958 # If we don't find an include directive, just comment out the code.
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2960 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2961 am__include="#"
2962 am__quote=
2963 _am_result=none
2964 # First try GNU make style include.
2965 echo "include confinc" > confmf
2966 # Ignore all kinds of additional output from 'make'.
2967 case `$am_make -s -f confmf 2> /dev/null` in #(
2968 *the\ am__doit\ target*)
2969 am__include=include
2970 am__quote=
2971 _am_result=GNU
2973 esac
2974 # Now try BSD make style include.
2975 if test "$am__include" = "#"; then
2976 echo '.include "confinc"' > confmf
2977 case `$am_make -s -f confmf 2> /dev/null` in #(
2978 *the\ am__doit\ target*)
2979 am__include=.include
2980 am__quote="\""
2981 _am_result=BSD
2983 esac
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2988 $as_echo "$_am_result" >&6; }
2989 rm -f confinc confmf
2991 # Check whether --enable-dependency-tracking was given.
2992 if test "${enable_dependency_tracking+set}" = set; then :
2993 enableval=$enable_dependency_tracking;
2996 if test "x$enable_dependency_tracking" != xno; then
2997 am_depcomp="$ac_aux_dir/depcomp"
2998 AMDEPBACKSLASH='\'
2999 am__nodep='_no'
3001 if test "x$enable_dependency_tracking" != xno; then
3002 AMDEP_TRUE=
3003 AMDEP_FALSE='#'
3004 else
3005 AMDEP_TRUE='#'
3006 AMDEP_FALSE=
3010 ac_ext=c
3011 ac_cpp='$CPP $CPPFLAGS'
3012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3047 else
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3054 if test -z "$ac_cv_prog_CC"; then
3055 ac_ct_CC=$CC
3056 # Extract the first word of "gcc", so it can be a program name with args.
3057 set dummy gcc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_ac_ct_CC="gcc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3086 $as_echo "$ac_ct_CC" >&6; }
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3092 if test "x$ac_ct_CC" = x; then
3093 CC=""
3094 else
3095 case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101 CC=$ac_ct_CC
3103 else
3104 CC="$ac_cv_prog_CC"
3107 if test -z "$CC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3110 set dummy ${ac_tool_prefix}cc; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_CC+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_CC="${ac_tool_prefix}cc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3130 done
3131 done
3132 IFS=$as_save_IFS
3136 CC=$ac_cv_prog_CC
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3148 if test -z "$CC"; then
3149 # Extract the first word of "cc", so it can be a program name with args.
3150 set dummy cc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 ac_prog_rejected=no
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3168 ac_prog_rejected=yes
3169 continue
3171 ac_cv_prog_CC="cc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3177 IFS=$as_save_IFS
3179 if test $ac_prog_rejected = yes; then
3180 # We found a bogon in the path, so make sure we never use it.
3181 set dummy $ac_cv_prog_CC
3182 shift
3183 if test $# != 0; then
3184 # We chose a different compiler from the bogus one.
3185 # However, it has the same basename, so the bogon will be chosen
3186 # first if we set CC to just the basename; use the full file name.
3187 shift
3188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3193 CC=$ac_cv_prog_CC
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3204 if test -z "$CC"; then
3205 if test -n "$ac_tool_prefix"; then
3206 for ac_prog in cl.exe
3208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3229 done
3230 done
3231 IFS=$as_save_IFS
3235 CC=$ac_cv_prog_CC
3236 if test -n "$CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3238 $as_echo "$CC" >&6; }
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3245 test -n "$CC" && break
3246 done
3248 if test -z "$CC"; then
3249 ac_ct_CC=$CC
3250 for ac_prog in cl.exe
3252 # Extract the first word of "$ac_prog", so it can be a program name with args.
3253 set dummy $ac_prog; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test -n "$ac_ct_CC"; then
3260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_ac_ct_CC="$ac_prog"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3273 done
3274 done
3275 IFS=$as_save_IFS
3279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3280 if test -n "$ac_ct_CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282 $as_echo "$ac_ct_CC" >&6; }
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3289 test -n "$ac_ct_CC" && break
3290 done
3292 if test "x$ac_ct_CC" = x; then
3293 CC=""
3294 else
3295 case $cross_compiling:$ac_tool_warned in
3296 yes:)
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned=yes ;;
3300 esac
3301 CC=$ac_ct_CC
3308 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error $? "no acceptable C compiler found in \$PATH
3311 See \`config.log' for more details" "$LINENO" 5; }
3313 # Provide some information about the compiler.
3314 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3315 set X $ac_compile
3316 ac_compiler=$2
3317 for ac_option in --version -v -V -qversion; do
3318 { { ac_try="$ac_compiler $ac_option >&5"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3326 ac_status=$?
3327 if test -s conftest.err; then
3328 sed '10a\
3329 ... rest of stderr output deleted ...
3330 10q' conftest.err >conftest.er1
3331 cat conftest.er1 >&5
3333 rm -f conftest.er1 conftest.err
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }
3336 done
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3342 main ()
3346 return 0;
3348 _ACEOF
3349 ac_clean_files_save=$ac_clean_files
3350 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3351 # Try to create an executable without -o first, disregard a.out.
3352 # It will help us diagnose broken compilers, and finding out an intuition
3353 # of exeext.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3355 $as_echo_n "checking whether the C compiler works... " >&6; }
3356 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3358 # The possible output files:
3359 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3361 ac_rmfiles=
3362 for ac_file in $ac_files
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3367 esac
3368 done
3369 rm -f $ac_rmfiles
3371 if { { ac_try="$ac_link_default"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link_default") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3383 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3384 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3385 # so that the user can short-circuit this test for compilers unknown to
3386 # Autoconf.
3387 for ac_file in $ac_files ''
3389 test -f "$ac_file" || continue
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3393 [ab].out )
3394 # We found the default executable, but exeext='' is most
3395 # certainly right.
3396 break;;
3397 *.* )
3398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3399 then :; else
3400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 # We set ac_cv_exeext here because the later test for it is not
3403 # safe: cross compilers may not add the suffix if given an `-o'
3404 # argument, so we may need to know it at that point already.
3405 # Even if this section looks crufty: it has the advantage of
3406 # actually working.
3407 break;;
3409 break;;
3410 esac
3411 done
3412 test "$ac_cv_exeext" = no && ac_cv_exeext=
3414 else
3415 ac_file=''
3417 if test -z "$ac_file"; then :
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 $as_echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error 77 "C compiler cannot create executables
3426 See \`config.log' for more details" "$LINENO" 5; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3429 $as_echo "yes" >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3432 $as_echo_n "checking for C compiler default output file name... " >&6; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3434 $as_echo "$ac_file" >&6; }
3435 ac_exeext=$ac_cv_exeext
3437 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3438 ac_clean_files=$ac_clean_files_save
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3440 $as_echo_n "checking for suffix of executables... " >&6; }
3441 if { { ac_try="$ac_link"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_link") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3453 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3454 # work properly (i.e., refer to `conftest.exe'), while it won't with
3455 # `rm'.
3456 for ac_file in conftest.exe conftest conftest.*; do
3457 test -f "$ac_file" || continue
3458 case $ac_file in
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3461 break;;
3462 * ) break;;
3463 esac
3464 done
3465 else
3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3469 See \`config.log' for more details" "$LINENO" 5; }
3471 rm -f conftest conftest$ac_cv_exeext
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3473 $as_echo "$ac_cv_exeext" >&6; }
3475 rm -f conftest.$ac_ext
3476 EXEEXT=$ac_cv_exeext
3477 ac_exeext=$EXEEXT
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480 #include <stdio.h>
3482 main ()
3484 FILE *f = fopen ("conftest.out", "w");
3485 return ferror (f) || fclose (f) != 0;
3488 return 0;
3490 _ACEOF
3491 ac_clean_files="$ac_clean_files conftest.out"
3492 # Check that the compiler produces executables we can run. If not, either
3493 # the compiler is broken, or we cross compile.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3495 $as_echo_n "checking whether we are cross compiling... " >&6; }
3496 if test "$cross_compiling" != yes; then
3497 { { ac_try="$ac_link"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_link") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }
3508 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3516 ac_status=$?
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }; }; then
3519 cross_compiling=no
3520 else
3521 if test "$cross_compiling" = maybe; then
3522 cross_compiling=yes
3523 else
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot run C compiled programs.
3527 If you meant to cross compile, use \`--host'.
3528 See \`config.log' for more details" "$LINENO" 5; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3533 $as_echo "$cross_compiling" >&6; }
3535 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3536 ac_clean_files=$ac_clean_files_save
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3538 $as_echo_n "checking for suffix of object files... " >&6; }
3539 if ${ac_cv_objext+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3546 main ()
3550 return 0;
3552 _ACEOF
3553 rm -f conftest.o conftest.obj
3554 if { { ac_try="$ac_compile"
3555 case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_compile") 2>&5
3562 ac_status=$?
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }; then :
3565 for ac_file in conftest.o conftest.obj conftest.*; do
3566 test -f "$ac_file" || continue;
3567 case $ac_file in
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3569 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3570 break;;
3571 esac
3572 done
3573 else
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error $? "cannot compute suffix of object files: cannot compile
3580 See \`config.log' for more details" "$LINENO" 5; }
3582 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3585 $as_echo "$ac_cv_objext" >&6; }
3586 OBJEXT=$ac_cv_objext
3587 ac_objext=$OBJEXT
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3589 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3590 if ${ac_cv_c_compiler_gnu+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3597 main ()
3599 #ifndef __GNUC__
3600 choke me
3601 #endif
3604 return 0;
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_compiler_gnu=yes
3609 else
3610 ac_compiler_gnu=no
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3617 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3618 if test $ac_compiler_gnu = yes; then
3619 GCC=yes
3620 else
3621 GCC=
3623 ac_test_CFLAGS=${CFLAGS+set}
3624 ac_save_CFLAGS=$CFLAGS
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3626 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3627 if ${ac_cv_prog_cc_g+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 ac_save_c_werror_flag=$ac_c_werror_flag
3631 ac_c_werror_flag=yes
3632 ac_cv_prog_cc_g=no
3633 CFLAGS="-g"
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3638 main ()
3642 return 0;
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_g=yes
3647 else
3648 CFLAGS=""
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3653 main ()
3657 return 0;
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3662 else
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3664 CFLAGS="-g"
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3669 main ()
3673 return 0;
3675 _ACEOF
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_cv_prog_cc_g=yes
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3687 $as_echo "$ac_cv_prog_cc_g" >&6; }
3688 if test "$ac_test_CFLAGS" = set; then
3689 CFLAGS=$ac_save_CFLAGS
3690 elif test $ac_cv_prog_cc_g = yes; then
3691 if test "$GCC" = yes; then
3692 CFLAGS="-g -O2"
3693 else
3694 CFLAGS="-g"
3696 else
3697 if test "$GCC" = yes; then
3698 CFLAGS="-O2"
3699 else
3700 CFLAGS=
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3704 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3705 if ${ac_cv_prog_cc_c89+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 ac_cv_prog_cc_c89=no
3709 ac_save_CC=$CC
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <stdarg.h>
3713 #include <stdio.h>
3714 struct stat;
3715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3716 struct buf { int x; };
3717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3718 static char *e (p, i)
3719 char **p;
3720 int i;
3722 return p[i];
3724 static char *f (char * (*g) (char **, int), char **p, ...)
3726 char *s;
3727 va_list v;
3728 va_start (v,p);
3729 s = g (p, va_arg (v,int));
3730 va_end (v);
3731 return s;
3734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3735 function prototypes and stuff, but not '\xHH' hex character constants.
3736 These don't provoke an error unfortunately, instead are silently treated
3737 as 'x'. The following induces an error, until -std is added to get
3738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3739 array size at least. It's necessary to write '\x00'==0 to get something
3740 that's true only with -std. */
3741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3744 inside strings and character constants. */
3745 #define FOO(x) 'x'
3746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748 int test (int i, double x);
3749 struct s1 {int (*f) (int a);};
3750 struct s2 {int (*f) (double a);};
3751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3752 int argc;
3753 char **argv;
3755 main ()
3757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3759 return 0;
3761 _ACEOF
3762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 CC="$ac_save_CC $ac_arg"
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_prog_cc_c89=$ac_arg
3769 rm -f core conftest.err conftest.$ac_objext
3770 test "x$ac_cv_prog_cc_c89" != "xno" && break
3771 done
3772 rm -f conftest.$ac_ext
3773 CC=$ac_save_CC
3776 # AC_CACHE_VAL
3777 case "x$ac_cv_prog_cc_c89" in
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3780 $as_echo "none needed" >&6; } ;;
3781 xno)
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3783 $as_echo "unsupported" >&6; } ;;
3785 CC="$CC $ac_cv_prog_cc_c89"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3787 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3788 esac
3789 if test "x$ac_cv_prog_cc_c89" != xno; then :
3793 ac_ext=c
3794 ac_cpp='$CPP $CPPFLAGS'
3795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 ac_ext=c
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3805 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3806 if ${am_cv_prog_cc_c_o+:} false; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3813 main ()
3817 return 0;
3819 _ACEOF
3820 # Make sure it works both with $CC and with simple cc.
3821 # Following AC_PROG_CC_C_O, we do the test twice because some
3822 # compilers refuse to overwrite an existing .o file with -o,
3823 # though they will create one.
3824 am_cv_prog_cc_c_o=yes
3825 for am_i in 1 2; do
3826 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3827 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } \
3831 && test -f conftest2.$ac_objext; then
3832 : OK
3833 else
3834 am_cv_prog_cc_c_o=no
3835 break
3837 done
3838 rm -f core conftest*
3839 unset am_i
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3842 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3843 if test "$am_cv_prog_cc_c_o" != yes; then
3844 # Losing compiler, so override with the script.
3845 # FIXME: It is wrong to rewrite CC.
3846 # But if we don't then we get into trouble of one sort or another.
3847 # A longer-term fix would be to have automake use am__CC in this case,
3848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3849 CC="$am_aux_dir/compile $CC"
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 depcc="$CC" am_compiler_list=
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3861 $as_echo_n "checking dependency style of $depcc... " >&6; }
3862 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3866 # We make a subdir and do the tests there. Otherwise we can end up
3867 # making bogus files that we don't know about and never remove. For
3868 # instance it was reported that on HP-UX the gcc test will end up
3869 # making a dummy file named 'D' -- because '-MD' means "put the output
3870 # in D".
3871 rm -rf conftest.dir
3872 mkdir conftest.dir
3873 # Copy depcomp to subdir because otherwise we won't find it if we're
3874 # using a relative directory.
3875 cp "$am_depcomp" conftest.dir
3876 cd conftest.dir
3877 # We will build objects and dependencies in a subdirectory because
3878 # it helps to detect inapplicable dependency modes. For instance
3879 # both Tru64's cc and ICC support -MD to output dependencies as a
3880 # side effect of compilation, but ICC will put the dependencies in
3881 # the current directory while Tru64 will put them in the object
3882 # directory.
3883 mkdir sub
3885 am_cv_CC_dependencies_compiler_type=none
3886 if test "$am_compiler_list" = ""; then
3887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3889 am__universal=false
3890 case " $depcc " in #(
3891 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3892 esac
3894 for depmode in $am_compiler_list; do
3895 # Setup a source with many dependencies, because some compilers
3896 # like to wrap large dependency lists on column 80 (with \), and
3897 # we should not choose a depcomp mode which is confused by this.
3899 # We need to recreate these files for each test, as the compiler may
3900 # overwrite some of them when testing with obscure command lines.
3901 # This happens at least with the AIX C compiler.
3902 : > sub/conftest.c
3903 for i in 1 2 3 4 5 6; do
3904 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3905 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3906 # Solaris 10 /bin/sh.
3907 echo '/* dummy */' > sub/conftst$i.h
3908 done
3909 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3911 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3912 # mode. It turns out that the SunPro C++ compiler does not properly
3913 # handle '-M -o', and we need to detect this. Also, some Intel
3914 # versions had trouble with output in subdirs.
3915 am__obj=sub/conftest.${OBJEXT-o}
3916 am__minus_obj="-o $am__obj"
3917 case $depmode in
3918 gcc)
3919 # This depmode causes a compiler race in universal mode.
3920 test "$am__universal" = false || continue
3922 nosideeffect)
3923 # After this tag, mechanisms are not by side-effect, so they'll
3924 # only be used when explicitly requested.
3925 if test "x$enable_dependency_tracking" = xyes; then
3926 continue
3927 else
3928 break
3931 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3932 # This compiler won't grok '-c -o', but also, the minuso test has
3933 # not run yet. These depmodes are late enough in the game, and
3934 # so weak that their functioning should not be impacted.
3935 am__obj=conftest.${OBJEXT-o}
3936 am__minus_obj=
3938 none) break ;;
3939 esac
3940 if depmode=$depmode \
3941 source=sub/conftest.c object=$am__obj \
3942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3943 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3944 >/dev/null 2>conftest.err &&
3945 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949 # icc doesn't choke on unknown options, it will just issue warnings
3950 # or remarks (even with -Werror). So we grep stderr for any message
3951 # that says an option was ignored or not supported.
3952 # When given -MP, icc 7.0 and 7.1 complain thusly:
3953 # icc: Command line warning: ignoring option '-M'; no argument required
3954 # The diagnosis changed in icc 8.0:
3955 # icc: Command line remark: option '-MP' not supported
3956 if (grep 'ignoring option' conftest.err ||
3957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958 am_cv_CC_dependencies_compiler_type=$depmode
3959 break
3962 done
3964 cd ..
3965 rm -rf conftest.dir
3966 else
3967 am_cv_CC_dependencies_compiler_type=none
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3972 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3976 test "x$enable_dependency_tracking" != xno \
3977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3978 am__fastdepCC_TRUE=
3979 am__fastdepCC_FALSE='#'
3980 else
3981 am__fastdepCC_TRUE='#'
3982 am__fastdepCC_FALSE=
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3987 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3988 if ${ac_cv_path_SED+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3992 for ac_i in 1 2 3 4 5 6 7; do
3993 ac_script="$ac_script$as_nl$ac_script"
3994 done
3995 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3996 { ac_script=; unset ac_script;}
3997 if test -z "$SED"; then
3998 ac_path_SED_found=false
3999 # Loop through the user's path and test for each of PROGNAME-LIST
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_prog in sed gsed; do
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4008 as_fn_executable_p "$ac_path_SED" || continue
4009 # Check for GNU ac_path_SED and select it if it is found.
4010 # Check for GNU $ac_path_SED
4011 case `"$ac_path_SED" --version 2>&1` in
4012 *GNU*)
4013 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4015 ac_count=0
4016 $as_echo_n 0123456789 >"conftest.in"
4017 while :
4019 cat "conftest.in" "conftest.in" >"conftest.tmp"
4020 mv "conftest.tmp" "conftest.in"
4021 cp "conftest.in" "conftest.nl"
4022 $as_echo '' >> "conftest.nl"
4023 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4025 as_fn_arith $ac_count + 1 && ac_count=$as_val
4026 if test $ac_count -gt ${ac_path_SED_max-0}; then
4027 # Best one so far, save it but keep looking for a better one
4028 ac_cv_path_SED="$ac_path_SED"
4029 ac_path_SED_max=$ac_count
4031 # 10*(2^10) chars as input seems more than enough
4032 test $ac_count -gt 10 && break
4033 done
4034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4035 esac
4037 $ac_path_SED_found && break 3
4038 done
4039 done
4040 done
4041 IFS=$as_save_IFS
4042 if test -z "$ac_cv_path_SED"; then
4043 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4045 else
4046 ac_cv_path_SED=$SED
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4051 $as_echo "$ac_cv_path_SED" >&6; }
4052 SED="$ac_cv_path_SED"
4053 rm -f conftest.sed
4055 test -z "$SED" && SED=sed
4056 Xsed="$SED -e 1s/^X//"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4069 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4070 if ${ac_cv_path_GREP+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -z "$GREP"; then
4074 ac_path_GREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in grep ggrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4084 as_fn_executable_p "$ac_path_GREP" || continue
4085 # Check for GNU ac_path_GREP and select it if it is found.
4086 # Check for GNU $ac_path_GREP
4087 case `"$ac_path_GREP" --version 2>&1` in
4088 *GNU*)
4089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4091 ac_count=0
4092 $as_echo_n 0123456789 >"conftest.in"
4093 while :
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 $as_echo 'GREP' >> "conftest.nl"
4099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 as_fn_arith $ac_count + 1 && ac_count=$as_val
4102 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_GREP="$ac_path_GREP"
4105 ac_path_GREP_max=$ac_count
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4109 done
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4113 $ac_path_GREP_found && break 3
4114 done
4115 done
4116 done
4117 IFS=$as_save_IFS
4118 if test -z "$ac_cv_path_GREP"; then
4119 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4121 else
4122 ac_cv_path_GREP=$GREP
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4127 $as_echo "$ac_cv_path_GREP" >&6; }
4128 GREP="$ac_cv_path_GREP"
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4132 $as_echo_n "checking for egrep... " >&6; }
4133 if ${ac_cv_path_EGREP+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4137 then ac_cv_path_EGREP="$GREP -E"
4138 else
4139 if test -z "$EGREP"; then
4140 ac_path_EGREP_found=false
4141 # Loop through the user's path and test for each of PROGNAME-LIST
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_prog in egrep; do
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4150 as_fn_executable_p "$ac_path_EGREP" || continue
4151 # Check for GNU ac_path_EGREP and select it if it is found.
4152 # Check for GNU $ac_path_EGREP
4153 case `"$ac_path_EGREP" --version 2>&1` in
4154 *GNU*)
4155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4157 ac_count=0
4158 $as_echo_n 0123456789 >"conftest.in"
4159 while :
4161 cat "conftest.in" "conftest.in" >"conftest.tmp"
4162 mv "conftest.tmp" "conftest.in"
4163 cp "conftest.in" "conftest.nl"
4164 $as_echo 'EGREP' >> "conftest.nl"
4165 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167 as_fn_arith $ac_count + 1 && ac_count=$as_val
4168 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4169 # Best one so far, save it but keep looking for a better one
4170 ac_cv_path_EGREP="$ac_path_EGREP"
4171 ac_path_EGREP_max=$ac_count
4173 # 10*(2^10) chars as input seems more than enough
4174 test $ac_count -gt 10 && break
4175 done
4176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4177 esac
4179 $ac_path_EGREP_found && break 3
4180 done
4181 done
4182 done
4183 IFS=$as_save_IFS
4184 if test -z "$ac_cv_path_EGREP"; then
4185 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4187 else
4188 ac_cv_path_EGREP=$EGREP
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4194 $as_echo "$ac_cv_path_EGREP" >&6; }
4195 EGREP="$ac_cv_path_EGREP"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4199 $as_echo_n "checking for fgrep... " >&6; }
4200 if ${ac_cv_path_FGREP+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4204 then ac_cv_path_FGREP="$GREP -F"
4205 else
4206 if test -z "$FGREP"; then
4207 ac_path_FGREP_found=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_prog in fgrep; do
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4217 as_fn_executable_p "$ac_path_FGREP" || continue
4218 # Check for GNU ac_path_FGREP and select it if it is found.
4219 # Check for GNU $ac_path_FGREP
4220 case `"$ac_path_FGREP" --version 2>&1` in
4221 *GNU*)
4222 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4224 ac_count=0
4225 $as_echo_n 0123456789 >"conftest.in"
4226 while :
4228 cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 mv "conftest.tmp" "conftest.in"
4230 cp "conftest.in" "conftest.nl"
4231 $as_echo 'FGREP' >> "conftest.nl"
4232 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234 as_fn_arith $ac_count + 1 && ac_count=$as_val
4235 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4236 # Best one so far, save it but keep looking for a better one
4237 ac_cv_path_FGREP="$ac_path_FGREP"
4238 ac_path_FGREP_max=$ac_count
4240 # 10*(2^10) chars as input seems more than enough
4241 test $ac_count -gt 10 && break
4242 done
4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 esac
4246 $ac_path_FGREP_found && break 3
4247 done
4248 done
4249 done
4250 IFS=$as_save_IFS
4251 if test -z "$ac_cv_path_FGREP"; then
4252 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254 else
4255 ac_cv_path_FGREP=$FGREP
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4261 $as_echo "$ac_cv_path_FGREP" >&6; }
4262 FGREP="$ac_cv_path_FGREP"
4265 test -z "$GREP" && GREP=grep
4285 # Check whether --with-gnu-ld was given.
4286 if test "${with_gnu_ld+set}" = set; then :
4287 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4288 else
4289 with_gnu_ld=no
4292 ac_prog=ld
4293 if test "$GCC" = yes; then
4294 # Check if gcc -print-prog-name=ld gives a path.
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4296 $as_echo_n "checking for ld used by $CC... " >&6; }
4297 case $host in
4298 *-*-mingw*)
4299 # gcc leaves a trailing carriage return which upsets mingw
4300 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4302 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4303 esac
4304 case $ac_prog in
4305 # Accept absolute paths.
4306 [\\/]* | ?:[\\/]*)
4307 re_direlt='/[^/][^/]*/\.\./'
4308 # Canonicalize the pathname of ld
4309 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4310 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4311 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4312 done
4313 test -z "$LD" && LD="$ac_prog"
4316 # If it fails, then pretend we aren't using GCC.
4317 ac_prog=ld
4320 # If it is relative, then search for the first ld in PATH.
4321 with_gnu_ld=unknown
4323 esac
4324 elif test "$with_gnu_ld" = yes; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4326 $as_echo_n "checking for GNU ld... " >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4329 $as_echo_n "checking for non-GNU ld... " >&6; }
4331 if ${lt_cv_path_LD+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if test -z "$LD"; then
4335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4336 for ac_dir in $PATH; do
4337 IFS="$lt_save_ifs"
4338 test -z "$ac_dir" && ac_dir=.
4339 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4340 lt_cv_path_LD="$ac_dir/$ac_prog"
4341 # Check to see if the program is GNU ld. I'd rather use --version,
4342 # but apparently some variants of GNU ld only accept -v.
4343 # Break only if it was the GNU/non-GNU ld that we prefer.
4344 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4345 *GNU* | *'with BFD'*)
4346 test "$with_gnu_ld" != no && break
4349 test "$with_gnu_ld" != yes && break
4351 esac
4353 done
4354 IFS="$lt_save_ifs"
4355 else
4356 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4360 LD="$lt_cv_path_LD"
4361 if test -n "$LD"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4363 $as_echo "$LD" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4368 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4370 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4371 if ${lt_cv_prog_gnu_ld+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4375 case `$LD -v 2>&1 </dev/null` in
4376 *GNU* | *'with BFD'*)
4377 lt_cv_prog_gnu_ld=yes
4380 lt_cv_prog_gnu_ld=no
4382 esac
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4385 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4386 with_gnu_ld=$lt_cv_prog_gnu_ld
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4397 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4398 if ${lt_cv_path_NM+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$NM"; then
4402 # Let the user override the test.
4403 lt_cv_path_NM="$NM"
4404 else
4405 lt_nm_to_check="${ac_tool_prefix}nm"
4406 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4407 lt_nm_to_check="$lt_nm_to_check nm"
4409 for lt_tmp_nm in $lt_nm_to_check; do
4410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4411 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4412 IFS="$lt_save_ifs"
4413 test -z "$ac_dir" && ac_dir=.
4414 tmp_nm="$ac_dir/$lt_tmp_nm"
4415 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4416 # Check to see if the nm accepts a BSD-compat flag.
4417 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4418 # nm: unknown option "B" ignored
4419 # Tru64's nm complains that /dev/null is an invalid object file
4420 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4421 */dev/null* | *'Invalid file or object type'*)
4422 lt_cv_path_NM="$tmp_nm -B"
4423 break
4426 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4427 */dev/null*)
4428 lt_cv_path_NM="$tmp_nm -p"
4429 break
4432 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4433 continue # so that we can try to find one that supports BSD flags
4435 esac
4437 esac
4439 done
4440 IFS="$lt_save_ifs"
4441 done
4442 : ${lt_cv_path_NM=no}
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4446 $as_echo "$lt_cv_path_NM" >&6; }
4447 if test "$lt_cv_path_NM" != "no"; then
4448 NM="$lt_cv_path_NM"
4449 else
4450 # Didn't find any BSD compatible name lister, look for dumpbin.
4451 if test -n "$DUMPBIN"; then :
4452 # Let the user override the test.
4453 else
4454 if test -n "$ac_tool_prefix"; then
4455 for ac_prog in dumpbin "link -dump"
4457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460 $as_echo_n "checking for $ac_word... " >&6; }
4461 if ${ac_cv_prog_DUMPBIN+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -n "$DUMPBIN"; then
4465 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4478 done
4479 done
4480 IFS=$as_save_IFS
4484 DUMPBIN=$ac_cv_prog_DUMPBIN
4485 if test -n "$DUMPBIN"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4487 $as_echo "$DUMPBIN" >&6; }
4488 else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4494 test -n "$DUMPBIN" && break
4495 done
4497 if test -z "$DUMPBIN"; then
4498 ac_ct_DUMPBIN=$DUMPBIN
4499 for ac_prog in dumpbin "link -dump"
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -n "$ac_ct_DUMPBIN"; then
4509 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4524 IFS=$as_save_IFS
4528 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4529 if test -n "$ac_ct_DUMPBIN"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4531 $as_echo "$ac_ct_DUMPBIN" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4538 test -n "$ac_ct_DUMPBIN" && break
4539 done
4541 if test "x$ac_ct_DUMPBIN" = x; then
4542 DUMPBIN=":"
4543 else
4544 case $cross_compiling:$ac_tool_warned in
4545 yes:)
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4548 ac_tool_warned=yes ;;
4549 esac
4550 DUMPBIN=$ac_ct_DUMPBIN
4554 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4555 *COFF*)
4556 DUMPBIN="$DUMPBIN -symbols"
4559 DUMPBIN=:
4561 esac
4564 if test "$DUMPBIN" != ":"; then
4565 NM="$DUMPBIN"
4568 test -z "$NM" && NM=nm
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4576 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4577 if ${lt_cv_nm_interface+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 lt_cv_nm_interface="BSD nm"
4581 echo "int some_variable = 0;" > conftest.$ac_ext
4582 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4583 (eval "$ac_compile" 2>conftest.err)
4584 cat conftest.err >&5
4585 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4586 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4587 cat conftest.err >&5
4588 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4589 cat conftest.out >&5
4590 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4591 lt_cv_nm_interface="MS dumpbin"
4593 rm -f conftest*
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4596 $as_echo "$lt_cv_nm_interface" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4599 $as_echo_n "checking whether ln -s works... " >&6; }
4600 LN_S=$as_ln_s
4601 if test "$LN_S" = "ln -s"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603 $as_echo "yes" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4606 $as_echo "no, using $LN_S" >&6; }
4609 # find the maximum length of command line arguments
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4611 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4612 if ${lt_cv_sys_max_cmd_len+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4616 teststring="ABCD"
4618 case $build_os in
4619 msdosdjgpp*)
4620 # On DJGPP, this test can blow up pretty badly due to problems in libc
4621 # (any single argument exceeding 2000 bytes causes a buffer overrun
4622 # during glob expansion). Even if it were fixed, the result of this
4623 # check would be larger than it should be.
4624 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4627 gnu*)
4628 # Under GNU Hurd, this test is not required because there is
4629 # no limit to the length of command line arguments.
4630 # Libtool will interpret -1 as no limit whatsoever
4631 lt_cv_sys_max_cmd_len=-1;
4634 cygwin* | mingw* | cegcc*)
4635 # On Win9x/ME, this test blows up -- it succeeds, but takes
4636 # about 5 minutes as the teststring grows exponentially.
4637 # Worse, since 9x/ME are not pre-emptively multitasking,
4638 # you end up with a "frozen" computer, even though with patience
4639 # the test eventually succeeds (with a max line length of 256k).
4640 # Instead, let's just punt: use the minimum linelength reported by
4641 # all of the supported platforms: 8192 (on NT/2K/XP).
4642 lt_cv_sys_max_cmd_len=8192;
4645 mint*)
4646 # On MiNT this can take a long time and run out of memory.
4647 lt_cv_sys_max_cmd_len=8192;
4650 amigaos*)
4651 # On AmigaOS with pdksh, this test takes hours, literally.
4652 # So we just punt and use a minimum line length of 8192.
4653 lt_cv_sys_max_cmd_len=8192;
4656 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4657 # This has been around since 386BSD, at least. Likely further.
4658 if test -x /sbin/sysctl; then
4659 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4660 elif test -x /usr/sbin/sysctl; then
4661 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4662 else
4663 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4665 # And add a safety zone
4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4670 interix*)
4671 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4672 lt_cv_sys_max_cmd_len=196608
4675 os2*)
4676 # The test takes a long time on OS/2.
4677 lt_cv_sys_max_cmd_len=8192
4680 osf*)
4681 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4682 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4683 # nice to cause kernel panics so lets avoid the loop below.
4684 # First set a reasonable default.
4685 lt_cv_sys_max_cmd_len=16384
4687 if test -x /sbin/sysconfig; then
4688 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4689 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4690 esac
4693 sco3.2v5*)
4694 lt_cv_sys_max_cmd_len=102400
4696 sysv5* | sco5v6* | sysv4.2uw2*)
4697 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4698 if test -n "$kargmax"; then
4699 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4700 else
4701 lt_cv_sys_max_cmd_len=32768
4705 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4706 if test -n "$lt_cv_sys_max_cmd_len" && \
4707 test undefined != "$lt_cv_sys_max_cmd_len"; then
4708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4710 else
4711 # Make teststring a little bigger before we do anything with it.
4712 # a 1K string should be a reasonable start.
4713 for i in 1 2 3 4 5 6 7 8 ; do
4714 teststring=$teststring$teststring
4715 done
4716 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4717 # If test is not a shell built-in, we'll probably end up computing a
4718 # maximum length that is only half of the actual maximum length, but
4719 # we can't tell.
4720 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4721 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4722 test $i != 17 # 1/2 MB should be enough
4724 i=`expr $i + 1`
4725 teststring=$teststring$teststring
4726 done
4727 # Only check the string length outside the loop.
4728 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4729 teststring=
4730 # Add a significant safety factor because C++ compilers can tack on
4731 # massive amounts of additional arguments before passing them to the
4732 # linker. It appears as though 1/2 is a usable value.
4733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4736 esac
4740 if test -n $lt_cv_sys_max_cmd_len ; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4742 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4745 $as_echo "none" >&6; }
4747 max_cmd_len=$lt_cv_sys_max_cmd_len
4754 : ${CP="cp -f"}
4755 : ${MV="mv -f"}
4756 : ${RM="rm -f"}
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4759 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4760 # Try some XSI features
4761 xsi_shell=no
4762 ( _lt_dummy="a/b/c"
4763 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4764 = c,a/b,b/c, \
4765 && eval 'test $(( 1 + 1 )) -eq 2 \
4766 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4767 && xsi_shell=yes
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4769 $as_echo "$xsi_shell" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4773 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4774 lt_shell_append=no
4775 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4776 >/dev/null 2>&1 \
4777 && lt_shell_append=yes
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4779 $as_echo "$lt_shell_append" >&6; }
4782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4783 lt_unset=unset
4784 else
4785 lt_unset=false
4792 # test EBCDIC or ASCII
4793 case `echo X|tr X '\101'` in
4794 A) # ASCII based system
4795 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4796 lt_SP2NL='tr \040 \012'
4797 lt_NL2SP='tr \015\012 \040\040'
4799 *) # EBCDIC based system
4800 lt_SP2NL='tr \100 \n'
4801 lt_NL2SP='tr \r\n \100\100'
4803 esac
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4814 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4815 if ${lt_cv_to_host_file_cmd+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 case $host in
4819 *-*-mingw* )
4820 case $build in
4821 *-*-mingw* ) # actually msys
4822 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4824 *-*-cygwin* )
4825 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4827 * ) # otherwise, assume *nix
4828 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4830 esac
4832 *-*-cygwin* )
4833 case $build in
4834 *-*-mingw* ) # actually msys
4835 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4837 *-*-cygwin* )
4838 lt_cv_to_host_file_cmd=func_convert_file_noop
4840 * ) # otherwise, assume *nix
4841 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4843 esac
4845 * ) # unhandled hosts (and "normal" native builds)
4846 lt_cv_to_host_file_cmd=func_convert_file_noop
4848 esac
4852 to_host_file_cmd=$lt_cv_to_host_file_cmd
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4854 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4861 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4862 if ${lt_cv_to_tool_file_cmd+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 #assume ordinary cross tools, or native build.
4866 lt_cv_to_tool_file_cmd=func_convert_file_noop
4867 case $host in
4868 *-*-mingw* )
4869 case $build in
4870 *-*-mingw* ) # actually msys
4871 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4873 esac
4875 esac
4879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4881 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4888 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4889 if ${lt_cv_ld_reload_flag+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 lt_cv_ld_reload_flag='-r'
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4895 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4896 reload_flag=$lt_cv_ld_reload_flag
4897 case $reload_flag in
4898 "" | " "*) ;;
4899 *) reload_flag=" $reload_flag" ;;
4900 esac
4901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4902 case $host_os in
4903 cygwin* | mingw* | pw32* | cegcc*)
4904 if test "$GCC" != yes; then
4905 reload_cmds=false
4908 darwin*)
4909 if test "$GCC" = yes; then
4910 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4911 else
4912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4915 esac
4925 if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_OBJDUMP+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$OBJDUMP"; then
4934 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4947 done
4948 done
4949 IFS=$as_save_IFS
4953 OBJDUMP=$ac_cv_prog_OBJDUMP
4954 if test -n "$OBJDUMP"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4956 $as_echo "$OBJDUMP" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4964 if test -z "$ac_cv_prog_OBJDUMP"; then
4965 ac_ct_OBJDUMP=$OBJDUMP
4966 # Extract the first word of "objdump", so it can be a program name with args.
4967 set dummy objdump; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$ac_ct_OBJDUMP"; then
4974 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4994 if test -n "$ac_ct_OBJDUMP"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4996 $as_echo "$ac_ct_OBJDUMP" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5002 if test "x$ac_ct_OBJDUMP" = x; then
5003 OBJDUMP="false"
5004 else
5005 case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5009 ac_tool_warned=yes ;;
5010 esac
5011 OBJDUMP=$ac_ct_OBJDUMP
5013 else
5014 OBJDUMP="$ac_cv_prog_OBJDUMP"
5017 test -z "$OBJDUMP" && OBJDUMP=objdump
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5028 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5029 if ${lt_cv_deplibs_check_method+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 lt_cv_file_magic_cmd='$MAGIC_CMD'
5033 lt_cv_file_magic_test_file=
5034 lt_cv_deplibs_check_method='unknown'
5035 # Need to set the preceding variable on all platforms that support
5036 # interlibrary dependencies.
5037 # 'none' -- dependencies not supported.
5038 # `unknown' -- same as none, but documents that we really don't know.
5039 # 'pass_all' -- all dependencies passed with no checks.
5040 # 'test_compile' -- check by making test program.
5041 # 'file_magic [[regex]]' -- check by looking for files in library path
5042 # which responds to the $file_magic_cmd with a given extended regex.
5043 # If you have `file' or equivalent on your system and you're not sure
5044 # whether `pass_all' will *always* work, you probably want this one.
5046 case $host_os in
5047 aix[4-9]*)
5048 lt_cv_deplibs_check_method=pass_all
5051 beos*)
5052 lt_cv_deplibs_check_method=pass_all
5055 bsdi[45]*)
5056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5057 lt_cv_file_magic_cmd='/usr/bin/file -L'
5058 lt_cv_file_magic_test_file=/shlib/libc.so
5061 cygwin*)
5062 # func_win32_libid is a shell function defined in ltmain.sh
5063 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5064 lt_cv_file_magic_cmd='func_win32_libid'
5067 mingw* | pw32*)
5068 # Base MSYS/MinGW do not provide the 'file' command needed by
5069 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5070 # unless we find 'file', for example because we are cross-compiling.
5071 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5072 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5073 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5074 lt_cv_file_magic_cmd='func_win32_libid'
5075 else
5076 # Keep this pattern in sync with the one in func_win32_libid.
5077 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5078 lt_cv_file_magic_cmd='$OBJDUMP -f'
5082 cegcc*)
5083 # use the weaker test based on 'objdump'. See mingw*.
5084 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5085 lt_cv_file_magic_cmd='$OBJDUMP -f'
5088 darwin* | rhapsody*)
5089 lt_cv_deplibs_check_method=pass_all
5092 freebsd* | dragonfly*)
5093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5094 case $host_cpu in
5095 i*86 )
5096 # Not sure whether the presence of OpenBSD here was a mistake.
5097 # Let's accept both of them until this is cleared up.
5098 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5099 lt_cv_file_magic_cmd=/usr/bin/file
5100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5102 esac
5103 else
5104 lt_cv_deplibs_check_method=pass_all
5108 haiku*)
5109 lt_cv_deplibs_check_method=pass_all
5112 hpux10.20* | hpux11*)
5113 lt_cv_file_magic_cmd=/usr/bin/file
5114 case $host_cpu in
5115 ia64*)
5116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5117 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5119 hppa*64*)
5120 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]'
5121 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5125 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5127 esac
5130 interix[3-9]*)
5131 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5135 irix5* | irix6* | nonstopux*)
5136 case $LD in
5137 *-32|*"-32 ") libmagic=32-bit;;
5138 *-n32|*"-n32 ") libmagic=N32;;
5139 *-64|*"-64 ") libmagic=64-bit;;
5140 *) libmagic=never-match;;
5141 esac
5142 lt_cv_deplibs_check_method=pass_all
5145 # This must be glibc/ELF.
5146 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5147 lt_cv_deplibs_check_method=pass_all
5150 netbsd* | netbsdelf*-gnu)
5151 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5153 else
5154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5158 newos6*)
5159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5160 lt_cv_file_magic_cmd=/usr/bin/file
5161 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5164 *nto* | *qnx*)
5165 lt_cv_deplibs_check_method=pass_all
5168 openbsd*)
5169 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5171 else
5172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5176 osf3* | osf4* | osf5*)
5177 lt_cv_deplibs_check_method=pass_all
5180 rdos*)
5181 lt_cv_deplibs_check_method=pass_all
5184 solaris*)
5185 lt_cv_deplibs_check_method=pass_all
5188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5189 lt_cv_deplibs_check_method=pass_all
5192 sysv4 | sysv4.3*)
5193 case $host_vendor in
5194 motorola)
5195 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]'
5196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5198 ncr)
5199 lt_cv_deplibs_check_method=pass_all
5201 sequent)
5202 lt_cv_file_magic_cmd='/bin/file'
5203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5205 sni)
5206 lt_cv_file_magic_cmd='/bin/file'
5207 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5208 lt_cv_file_magic_test_file=/lib/libc.so
5210 siemens)
5211 lt_cv_deplibs_check_method=pass_all
5214 lt_cv_deplibs_check_method=pass_all
5216 esac
5219 tpf*)
5220 lt_cv_deplibs_check_method=pass_all
5222 esac
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5226 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5228 file_magic_glob=
5229 want_nocaseglob=no
5230 if test "$build" = "$host"; then
5231 case $host_os in
5232 mingw* | pw32*)
5233 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5234 want_nocaseglob=yes
5235 else
5236 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5239 esac
5242 file_magic_cmd=$lt_cv_file_magic_cmd
5243 deplibs_check_method=$lt_cv_deplibs_check_method
5244 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5269 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_DLLTOOL+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$DLLTOOL"; then
5276 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5295 DLLTOOL=$ac_cv_prog_DLLTOOL
5296 if test -n "$DLLTOOL"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5298 $as_echo "$DLLTOOL" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5306 if test -z "$ac_cv_prog_DLLTOOL"; then
5307 ac_ct_DLLTOOL=$DLLTOOL
5308 # Extract the first word of "dlltool", so it can be a program name with args.
5309 set dummy dlltool; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$ac_ct_DLLTOOL"; then
5316 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5335 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5336 if test -n "$ac_ct_DLLTOOL"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5338 $as_echo "$ac_ct_DLLTOOL" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5344 if test "x$ac_ct_DLLTOOL" = x; then
5345 DLLTOOL="false"
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348 yes:)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5352 esac
5353 DLLTOOL=$ac_ct_DLLTOOL
5355 else
5356 DLLTOOL="$ac_cv_prog_DLLTOOL"
5359 test -z "$DLLTOOL" && DLLTOOL=dlltool
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5371 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5372 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 lt_cv_sharedlib_from_linklib_cmd='unknown'
5377 case $host_os in
5378 cygwin* | mingw* | pw32* | cegcc*)
5379 # two different shell functions defined in ltmain.sh
5380 # decide which to use based on capabilities of $DLLTOOL
5381 case `$DLLTOOL --help 2>&1` in
5382 *--identify-strict*)
5383 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5386 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5388 esac
5391 # fallback: assume linklib IS sharedlib
5392 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5394 esac
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5398 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5399 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5400 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5409 if test -n "$ac_tool_prefix"; then
5410 for ac_prog in ar
5412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_AR+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$AR"; then
5420 ac_cv_prog_AR="$AR" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5433 done
5434 done
5435 IFS=$as_save_IFS
5439 AR=$ac_cv_prog_AR
5440 if test -n "$AR"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5442 $as_echo "$AR" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5449 test -n "$AR" && break
5450 done
5452 if test -z "$AR"; then
5453 ac_ct_AR=$AR
5454 for ac_prog in ar
5456 # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy $ac_prog; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$ac_ct_AR"; then
5464 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_AR="$ac_prog"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5477 done
5478 done
5479 IFS=$as_save_IFS
5483 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5484 if test -n "$ac_ct_AR"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5486 $as_echo "$ac_ct_AR" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5493 test -n "$ac_ct_AR" && break
5494 done
5496 if test "x$ac_ct_AR" = x; then
5497 AR="false"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505 AR=$ac_ct_AR
5509 : ${AR=ar}
5510 : ${AR_FLAGS=cru}
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5523 $as_echo_n "checking for archiver @FILE support... " >&6; }
5524 if ${lt_cv_ar_at_file+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 lt_cv_ar_at_file=no
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5532 main ()
5536 return 0;
5538 _ACEOF
5539 if ac_fn_c_try_compile "$LINENO"; then :
5540 echo conftest.$ac_objext > conftest.lst
5541 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5543 (eval $lt_ar_try) 2>&5
5544 ac_status=$?
5545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5546 test $ac_status = 0; }
5547 if test "$ac_status" -eq 0; then
5548 # Ensure the archiver fails upon bogus file names.
5549 rm -f conftest.$ac_objext libconftest.a
5550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5551 (eval $lt_ar_try) 2>&5
5552 ac_status=$?
5553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5554 test $ac_status = 0; }
5555 if test "$ac_status" -ne 0; then
5556 lt_cv_ar_at_file=@
5559 rm -f conftest.* libconftest.a
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5566 $as_echo "$lt_cv_ar_at_file" >&6; }
5568 if test "x$lt_cv_ar_at_file" = xno; then
5569 archiver_list_spec=
5570 else
5571 archiver_list_spec=$lt_cv_ar_at_file
5580 if test -n "$ac_tool_prefix"; then
5581 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5582 set dummy ${ac_tool_prefix}strip; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_STRIP+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if test -n "$STRIP"; then
5589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5602 done
5603 done
5604 IFS=$as_save_IFS
5608 STRIP=$ac_cv_prog_STRIP
5609 if test -n "$STRIP"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5611 $as_echo "$STRIP" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5619 if test -z "$ac_cv_prog_STRIP"; then
5620 ac_ct_STRIP=$STRIP
5621 # Extract the first word of "strip", so it can be a program name with args.
5622 set dummy strip; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 if test -n "$ac_ct_STRIP"; then
5629 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_ac_ct_STRIP="strip"
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5642 done
5643 done
5644 IFS=$as_save_IFS
5648 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5649 if test -n "$ac_ct_STRIP"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5651 $as_echo "$ac_ct_STRIP" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5657 if test "x$ac_ct_STRIP" = x; then
5658 STRIP=":"
5659 else
5660 case $cross_compiling:$ac_tool_warned in
5661 yes:)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664 ac_tool_warned=yes ;;
5665 esac
5666 STRIP=$ac_ct_STRIP
5668 else
5669 STRIP="$ac_cv_prog_STRIP"
5672 test -z "$STRIP" && STRIP=:
5679 if test -n "$ac_tool_prefix"; then
5680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_RANLIB+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$RANLIB"; then
5688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5701 done
5702 done
5703 IFS=$as_save_IFS
5707 RANLIB=$ac_cv_prog_RANLIB
5708 if test -n "$RANLIB"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5710 $as_echo "$RANLIB" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5718 if test -z "$ac_cv_prog_RANLIB"; then
5719 ac_ct_RANLIB=$RANLIB
5720 # Extract the first word of "ranlib", so it can be a program name with args.
5721 set dummy ranlib; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -n "$ac_ct_RANLIB"; then
5728 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_ac_ct_RANLIB="ranlib"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5741 done
5742 done
5743 IFS=$as_save_IFS
5747 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5748 if test -n "$ac_ct_RANLIB"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5750 $as_echo "$ac_ct_RANLIB" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5756 if test "x$ac_ct_RANLIB" = x; then
5757 RANLIB=":"
5758 else
5759 case $cross_compiling:$ac_tool_warned in
5760 yes:)
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5763 ac_tool_warned=yes ;;
5764 esac
5765 RANLIB=$ac_ct_RANLIB
5767 else
5768 RANLIB="$ac_cv_prog_RANLIB"
5771 test -z "$RANLIB" && RANLIB=:
5778 # Determine commands to create old-style static archives.
5779 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5780 old_postinstall_cmds='chmod 644 $oldlib'
5781 old_postuninstall_cmds=
5783 if test -n "$RANLIB"; then
5784 case $host_os in
5785 openbsd*)
5786 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5789 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5791 esac
5792 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5795 case $host_os in
5796 darwin*)
5797 lock_old_archive_extraction=yes ;;
5799 lock_old_archive_extraction=no ;;
5800 esac
5840 # If no C compiler was specified, use CC.
5841 LTCC=${LTCC-"$CC"}
5843 # If no C compiler flags were specified, use CFLAGS.
5844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5846 # Allow CC to be a program name with arguments.
5847 compiler=$CC
5850 # Check for command to grab the raw symbol name followed by C symbol from nm.
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5852 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5853 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5857 # These are sane defaults that work on at least a few old systems.
5858 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5860 # Character class describing NM global symbol codes.
5861 symcode='[BCDEGRST]'
5863 # Regexp to match symbols that can be accessed directly from C.
5864 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5866 # Define system-specific variables.
5867 case $host_os in
5868 aix*)
5869 symcode='[BCDT]'
5871 cygwin* | mingw* | pw32* | cegcc*)
5872 symcode='[ABCDGISTW]'
5874 hpux*)
5875 if test "$host_cpu" = ia64; then
5876 symcode='[ABCDEGRST]'
5879 irix* | nonstopux*)
5880 symcode='[BCDEGRST]'
5882 osf*)
5883 symcode='[BCDEGQRST]'
5885 solaris*)
5886 symcode='[BDRT]'
5888 sco3.2v5*)
5889 symcode='[DT]'
5891 sysv4.2uw2*)
5892 symcode='[DT]'
5894 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5895 symcode='[ABDT]'
5897 sysv4)
5898 symcode='[DFNSTU]'
5900 esac
5902 # If we're using GNU nm, then use its standard symbol codes.
5903 case `$NM -V 2>&1` in
5904 *GNU* | *'with BFD'*)
5905 symcode='[ABCDGIRSTW]' ;;
5906 esac
5908 # Transform an extracted symbol line into a proper C declaration.
5909 # Some systems (esp. on ia64) link data and code symbols differently,
5910 # so use this general approach.
5911 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5913 # Transform an extracted symbol line into symbol name and symbol address
5914 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5915 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5917 # Handle CRLF in mingw tool chain
5918 opt_cr=
5919 case $build_os in
5920 mingw*)
5921 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5923 esac
5925 # Try without a prefix underscore, then with it.
5926 for ac_symprfx in "" "_"; do
5928 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5929 symxfrm="\\1 $ac_symprfx\\2 \\2"
5931 # Write the raw and C identifiers.
5932 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5933 # Fake it for dumpbin and say T for any non-static function
5934 # and D for any global variable.
5935 # Also find C++ and __fastcall symbols from MSVC++,
5936 # which start with @ or ?.
5937 lt_cv_sys_global_symbol_pipe="$AWK '"\
5938 " {last_section=section; section=\$ 3};"\
5939 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5940 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5941 " \$ 0!~/External *\|/{next};"\
5942 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5943 " {if(hide[section]) next};"\
5944 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5945 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5946 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5947 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5948 " ' prfx=^$ac_symprfx"
5949 else
5950 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5952 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5954 # Check to see that the pipe works correctly.
5955 pipe_works=no
5957 rm -f conftest*
5958 cat > conftest.$ac_ext <<_LT_EOF
5959 #ifdef __cplusplus
5960 extern "C" {
5961 #endif
5962 char nm_test_var;
5963 void nm_test_func(void);
5964 void nm_test_func(void){}
5965 #ifdef __cplusplus
5967 #endif
5968 int main(){nm_test_var='a';nm_test_func();return(0);}
5969 _LT_EOF
5971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5972 (eval $ac_compile) 2>&5
5973 ac_status=$?
5974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; }; then
5976 # Now try to grab the symbols.
5977 nlist=conftest.nm
5978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5979 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5980 ac_status=$?
5981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5982 test $ac_status = 0; } && test -s "$nlist"; then
5983 # Try sorting and uniquifying the output.
5984 if sort "$nlist" | uniq > "$nlist"T; then
5985 mv -f "$nlist"T "$nlist"
5986 else
5987 rm -f "$nlist"T
5990 # Make sure that we snagged all the symbols we need.
5991 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5992 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5993 cat <<_LT_EOF > conftest.$ac_ext
5994 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5995 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5996 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5997 relocations are performed -- see ld's documentation on pseudo-relocs. */
5998 # define LT_DLSYM_CONST
5999 #elif defined(__osf__)
6000 /* This system does not cope well with relocations in const data. */
6001 # define LT_DLSYM_CONST
6002 #else
6003 # define LT_DLSYM_CONST const
6004 #endif
6006 #ifdef __cplusplus
6007 extern "C" {
6008 #endif
6010 _LT_EOF
6011 # Now generate the symbol file.
6012 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6014 cat <<_LT_EOF >> conftest.$ac_ext
6016 /* The mapping between symbol names and symbols. */
6017 LT_DLSYM_CONST struct {
6018 const char *name;
6019 void *address;
6021 lt__PROGRAM__LTX_preloaded_symbols[] =
6023 { "@PROGRAM@", (void *) 0 },
6024 _LT_EOF
6025 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6026 cat <<\_LT_EOF >> conftest.$ac_ext
6027 {0, (void *) 0}
6030 /* This works around a problem in FreeBSD linker */
6031 #ifdef FREEBSD_WORKAROUND
6032 static const void *lt_preloaded_setup() {
6033 return lt__PROGRAM__LTX_preloaded_symbols;
6035 #endif
6037 #ifdef __cplusplus
6039 #endif
6040 _LT_EOF
6041 # Now try linking the two files.
6042 mv conftest.$ac_objext conftstm.$ac_objext
6043 lt_globsym_save_LIBS=$LIBS
6044 lt_globsym_save_CFLAGS=$CFLAGS
6045 LIBS="conftstm.$ac_objext"
6046 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6048 (eval $ac_link) 2>&5
6049 ac_status=$?
6050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6051 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6052 pipe_works=yes
6054 LIBS=$lt_globsym_save_LIBS
6055 CFLAGS=$lt_globsym_save_CFLAGS
6056 else
6057 echo "cannot find nm_test_func in $nlist" >&5
6059 else
6060 echo "cannot find nm_test_var in $nlist" >&5
6062 else
6063 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6065 else
6066 echo "$progname: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6069 rm -rf conftest* conftst*
6071 # Do not use the global_symbol_pipe unless it works.
6072 if test "$pipe_works" = yes; then
6073 break
6074 else
6075 lt_cv_sys_global_symbol_pipe=
6077 done
6081 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6082 lt_cv_sys_global_symbol_to_cdecl=
6084 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6086 $as_echo "failed" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6089 $as_echo "ok" >&6; }
6092 # Response file support.
6093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6094 nm_file_list_spec='@'
6095 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6096 nm_file_list_spec='@'
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6126 $as_echo_n "checking for sysroot... " >&6; }
6128 # Check whether --with-sysroot was given.
6129 if test "${with_sysroot+set}" = set; then :
6130 withval=$with_sysroot;
6131 else
6132 with_sysroot=no
6136 lt_sysroot=
6137 case ${with_sysroot} in #(
6138 yes)
6139 if test "$GCC" = yes; then
6140 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6142 ;; #(
6144 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6145 ;; #(
6146 no|'')
6147 ;; #(
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6150 $as_echo "${with_sysroot}" >&6; }
6151 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6153 esac
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6156 $as_echo "${lt_sysroot:-no}" >&6; }
6162 # Check whether --enable-libtool-lock was given.
6163 if test "${enable_libtool_lock+set}" = set; then :
6164 enableval=$enable_libtool_lock;
6167 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6169 # Some flags need to be propagated to the compiler or linker for good
6170 # libtool support.
6171 case $host in
6172 ia64-*-hpux*)
6173 # Find out which ABI we are using.
6174 echo 'int i;' > conftest.$ac_ext
6175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176 (eval $ac_compile) 2>&5
6177 ac_status=$?
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }; then
6180 case `/usr/bin/file conftest.$ac_objext` in
6181 *ELF-32*)
6182 HPUX_IA64_MODE="32"
6184 *ELF-64*)
6185 HPUX_IA64_MODE="64"
6187 esac
6189 rm -rf conftest*
6191 *-*-irix6*)
6192 # Find out which ABI we are using.
6193 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195 (eval $ac_compile) 2>&5
6196 ac_status=$?
6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }; then
6199 if test "$lt_cv_prog_gnu_ld" = yes; then
6200 case `/usr/bin/file conftest.$ac_objext` in
6201 *32-bit*)
6202 LD="${LD-ld} -melf32bsmip"
6204 *N32*)
6205 LD="${LD-ld} -melf32bmipn32"
6207 *64-bit*)
6208 LD="${LD-ld} -melf64bmip"
6210 esac
6211 else
6212 case `/usr/bin/file conftest.$ac_objext` in
6213 *32-bit*)
6214 LD="${LD-ld} -32"
6216 *N32*)
6217 LD="${LD-ld} -n32"
6219 *64-bit*)
6220 LD="${LD-ld} -64"
6222 esac
6225 rm -rf conftest*
6228 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6229 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6230 # Find out which ABI we are using.
6231 echo 'int i;' > conftest.$ac_ext
6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6233 (eval $ac_compile) 2>&5
6234 ac_status=$?
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; }; then
6237 case `/usr/bin/file conftest.o` in
6238 *32-bit*)
6239 case $host in
6240 x86_64-*kfreebsd*-gnu)
6241 LD="${LD-ld} -m elf_i386_fbsd"
6243 x86_64-*linux*)
6244 case `/usr/bin/file conftest.o` in
6245 *x86-64*)
6246 LD="${LD-ld} -m elf32_x86_64"
6249 LD="${LD-ld} -m elf_i386"
6251 esac
6253 powerpc64le-*)
6254 LD="${LD-ld} -m elf32lppclinux"
6256 powerpc64-*)
6257 LD="${LD-ld} -m elf32ppclinux"
6259 s390x-*linux*)
6260 LD="${LD-ld} -m elf_s390"
6262 sparc64-*linux*)
6263 LD="${LD-ld} -m elf32_sparc"
6265 esac
6267 *64-bit*)
6268 case $host in
6269 x86_64-*kfreebsd*-gnu)
6270 LD="${LD-ld} -m elf_x86_64_fbsd"
6272 x86_64-*linux*)
6273 LD="${LD-ld} -m elf_x86_64"
6275 powerpcle-*)
6276 LD="${LD-ld} -m elf64lppc"
6278 powerpc-*)
6279 LD="${LD-ld} -m elf64ppc"
6281 s390*-*linux*|s390*-*tpf*)
6282 LD="${LD-ld} -m elf64_s390"
6284 sparc*-*linux*)
6285 LD="${LD-ld} -m elf64_sparc"
6287 esac
6289 esac
6291 rm -rf conftest*
6294 *-*-sco3.2v5*)
6295 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6296 SAVE_CFLAGS="$CFLAGS"
6297 CFLAGS="$CFLAGS -belf"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6299 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6300 if ${lt_cv_cc_needs_belf+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 ac_ext=c
6304 ac_cpp='$CPP $CPPFLAGS'
6305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6313 main ()
6317 return 0;
6319 _ACEOF
6320 if ac_fn_c_try_link "$LINENO"; then :
6321 lt_cv_cc_needs_belf=yes
6322 else
6323 lt_cv_cc_needs_belf=no
6325 rm -f core conftest.err conftest.$ac_objext \
6326 conftest$ac_exeext conftest.$ac_ext
6327 ac_ext=c
6328 ac_cpp='$CPP $CPPFLAGS'
6329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6335 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6336 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6337 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6338 CFLAGS="$SAVE_CFLAGS"
6341 *-*solaris*)
6342 # Find out which ABI we are using.
6343 echo 'int i;' > conftest.$ac_ext
6344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6345 (eval $ac_compile) 2>&5
6346 ac_status=$?
6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6348 test $ac_status = 0; }; then
6349 case `/usr/bin/file conftest.o` in
6350 *64-bit*)
6351 case $lt_cv_prog_gnu_ld in
6352 yes*)
6353 case $host in
6354 i?86-*-solaris*)
6355 LD="${LD-ld} -m elf_x86_64"
6357 sparc*-*-solaris*)
6358 LD="${LD-ld} -m elf64_sparc"
6360 esac
6361 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6362 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6363 LD="${LD-ld}_sol2"
6367 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6368 LD="${LD-ld} -64"
6371 esac
6373 esac
6375 rm -rf conftest*
6377 esac
6379 need_locks="$enable_libtool_lock"
6381 if test -n "$ac_tool_prefix"; then
6382 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6383 set dummy ${ac_tool_prefix}mt; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 if test -n "$MANIFEST_TOOL"; then
6390 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6403 done
6404 done
6405 IFS=$as_save_IFS
6409 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6410 if test -n "$MANIFEST_TOOL"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6412 $as_echo "$MANIFEST_TOOL" >&6; }
6413 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6420 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6421 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6422 # Extract the first word of "mt", so it can be a program name with args.
6423 set dummy mt; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 if test -n "$ac_ct_MANIFEST_TOOL"; then
6430 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6439 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6443 done
6444 done
6445 IFS=$as_save_IFS
6449 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6450 if test -n "$ac_ct_MANIFEST_TOOL"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6452 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6453 else
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6458 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6459 MANIFEST_TOOL=":"
6460 else
6461 case $cross_compiling:$ac_tool_warned in
6462 yes:)
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6465 ac_tool_warned=yes ;;
6466 esac
6467 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6469 else
6470 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6473 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6475 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6476 if ${lt_cv_path_mainfest_tool+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 lt_cv_path_mainfest_tool=no
6480 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6481 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6482 cat conftest.err >&5
6483 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6484 lt_cv_path_mainfest_tool=yes
6486 rm -f conftest*
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6489 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6490 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6491 MANIFEST_TOOL=:
6499 case $host_os in
6500 rhapsody* | darwin*)
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 if test -n "$DSYMUTIL"; then
6510 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6523 done
6524 done
6525 IFS=$as_save_IFS
6529 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6530 if test -n "$DSYMUTIL"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6532 $as_echo "$DSYMUTIL" >&6; }
6533 else
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_prog_DSYMUTIL"; then
6541 ac_ct_DSYMUTIL=$DSYMUTIL
6542 # Extract the first word of "dsymutil", so it can be a program name with args.
6543 set dummy dsymutil; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 if test -n "$ac_ct_DSYMUTIL"; then
6550 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6563 done
6564 done
6565 IFS=$as_save_IFS
6569 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6570 if test -n "$ac_ct_DSYMUTIL"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6572 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6578 if test "x$ac_ct_DSYMUTIL" = x; then
6579 DSYMUTIL=":"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587 DSYMUTIL=$ac_ct_DSYMUTIL
6589 else
6590 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_NMEDIT+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 if test -n "$NMEDIT"; then
6602 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6615 done
6616 done
6617 IFS=$as_save_IFS
6621 NMEDIT=$ac_cv_prog_NMEDIT
6622 if test -n "$NMEDIT"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6624 $as_echo "$NMEDIT" >&6; }
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6632 if test -z "$ac_cv_prog_NMEDIT"; then
6633 ac_ct_NMEDIT=$NMEDIT
6634 # Extract the first word of "nmedit", so it can be a program name with args.
6635 set dummy nmedit; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$ac_ct_NMEDIT"; then
6642 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6655 done
6656 done
6657 IFS=$as_save_IFS
6661 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6662 if test -n "$ac_ct_NMEDIT"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6664 $as_echo "$ac_ct_NMEDIT" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6670 if test "x$ac_ct_NMEDIT" = x; then
6671 NMEDIT=":"
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677 ac_tool_warned=yes ;;
6678 esac
6679 NMEDIT=$ac_ct_NMEDIT
6681 else
6682 NMEDIT="$ac_cv_prog_NMEDIT"
6685 if test -n "$ac_tool_prefix"; then
6686 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6687 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_prog_LIPO+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 if test -n "$LIPO"; then
6694 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6707 done
6708 done
6709 IFS=$as_save_IFS
6713 LIPO=$ac_cv_prog_LIPO
6714 if test -n "$LIPO"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6716 $as_echo "$LIPO" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6724 if test -z "$ac_cv_prog_LIPO"; then
6725 ac_ct_LIPO=$LIPO
6726 # Extract the first word of "lipo", so it can be a program name with args.
6727 set dummy lipo; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$ac_ct_LIPO"; then
6734 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_ac_ct_LIPO="lipo"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6747 done
6748 done
6749 IFS=$as_save_IFS
6753 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6754 if test -n "$ac_ct_LIPO"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6756 $as_echo "$ac_ct_LIPO" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6762 if test "x$ac_ct_LIPO" = x; then
6763 LIPO=":"
6764 else
6765 case $cross_compiling:$ac_tool_warned in
6766 yes:)
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769 ac_tool_warned=yes ;;
6770 esac
6771 LIPO=$ac_ct_LIPO
6773 else
6774 LIPO="$ac_cv_prog_LIPO"
6777 if test -n "$ac_tool_prefix"; then
6778 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6779 set dummy ${ac_tool_prefix}otool; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if ${ac_cv_prog_OTOOL+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 if test -n "$OTOOL"; then
6786 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6799 done
6800 done
6801 IFS=$as_save_IFS
6805 OTOOL=$ac_cv_prog_OTOOL
6806 if test -n "$OTOOL"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6808 $as_echo "$OTOOL" >&6; }
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6816 if test -z "$ac_cv_prog_OTOOL"; then
6817 ac_ct_OTOOL=$OTOOL
6818 # Extract the first word of "otool", so it can be a program name with args.
6819 set dummy otool; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$ac_ct_OTOOL"; then
6826 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_ac_ct_OTOOL="otool"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6839 done
6840 done
6841 IFS=$as_save_IFS
6845 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6846 if test -n "$ac_ct_OTOOL"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6848 $as_echo "$ac_ct_OTOOL" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6854 if test "x$ac_ct_OTOOL" = x; then
6855 OTOOL=":"
6856 else
6857 case $cross_compiling:$ac_tool_warned in
6858 yes:)
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863 OTOOL=$ac_ct_OTOOL
6865 else
6866 OTOOL="$ac_cv_prog_OTOOL"
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_OTOOL64+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$OTOOL64"; then
6878 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6891 done
6892 done
6893 IFS=$as_save_IFS
6897 OTOOL64=$ac_cv_prog_OTOOL64
6898 if test -n "$OTOOL64"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6900 $as_echo "$OTOOL64" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6908 if test -z "$ac_cv_prog_OTOOL64"; then
6909 ac_ct_OTOOL64=$OTOOL64
6910 # Extract the first word of "otool64", so it can be a program name with args.
6911 set dummy otool64; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$ac_ct_OTOOL64"; then
6918 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927 ac_cv_prog_ac_ct_OTOOL64="otool64"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6931 done
6932 done
6933 IFS=$as_save_IFS
6937 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6938 if test -n "$ac_ct_OTOOL64"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6940 $as_echo "$ac_ct_OTOOL64" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$ac_ct_OTOOL64" = x; then
6947 OTOOL64=":"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6954 esac
6955 OTOOL64=$ac_ct_OTOOL64
6957 else
6958 OTOOL64="$ac_cv_prog_OTOOL64"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6988 $as_echo_n "checking for -single_module linker flag... " >&6; }
6989 if ${lt_cv_apple_cc_single_mod+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 lt_cv_apple_cc_single_mod=no
6993 if test -z "${LT_MULTI_MODULE}"; then
6994 # By default we will add the -single_module flag. You can override
6995 # by either setting the environment variable LT_MULTI_MODULE
6996 # non-empty at configure time, or by adding -multi_module to the
6997 # link flags.
6998 rm -rf libconftest.dylib*
6999 echo "int foo(void){return 1;}" > conftest.c
7000 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7001 -dynamiclib -Wl,-single_module conftest.c" >&5
7002 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7003 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7004 _lt_result=$?
7005 # If there is a non-empty error log, and "single_module"
7006 # appears in it, assume the flag caused a linker warning
7007 if test -s conftest.err && $GREP single_module conftest.err; then
7008 cat conftest.err >&5
7009 # Otherwise, if the output was created with a 0 exit code from
7010 # the compiler, it worked.
7011 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7012 lt_cv_apple_cc_single_mod=yes
7013 else
7014 cat conftest.err >&5
7016 rm -rf libconftest.dylib*
7017 rm -f conftest.*
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7021 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7024 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7025 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 lt_cv_ld_exported_symbols_list=no
7029 save_LDFLAGS=$LDFLAGS
7030 echo "_main" > conftest.sym
7031 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7036 main ()
7040 return 0;
7042 _ACEOF
7043 if ac_fn_c_try_link "$LINENO"; then :
7044 lt_cv_ld_exported_symbols_list=yes
7045 else
7046 lt_cv_ld_exported_symbols_list=no
7048 rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 LDFLAGS="$save_LDFLAGS"
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7054 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7057 $as_echo_n "checking for -force_load linker flag... " >&6; }
7058 if ${lt_cv_ld_force_load+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 lt_cv_ld_force_load=no
7062 cat > conftest.c << _LT_EOF
7063 int forced_loaded() { return 2;}
7064 _LT_EOF
7065 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7066 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7067 echo "$AR cru libconftest.a conftest.o" >&5
7068 $AR cru libconftest.a conftest.o 2>&5
7069 echo "$RANLIB libconftest.a" >&5
7070 $RANLIB libconftest.a 2>&5
7071 cat > conftest.c << _LT_EOF
7072 int main() { return 0;}
7073 _LT_EOF
7074 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7075 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7076 _lt_result=$?
7077 if test -s conftest.err && $GREP force_load conftest.err; then
7078 cat conftest.err >&5
7079 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7080 lt_cv_ld_force_load=yes
7081 else
7082 cat conftest.err >&5
7084 rm -f conftest.err libconftest.a conftest conftest.c
7085 rm -rf conftest.dSYM
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7089 $as_echo "$lt_cv_ld_force_load" >&6; }
7090 case $host_os in
7091 rhapsody* | darwin1.[012])
7092 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7093 darwin1.*)
7094 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7095 darwin*) # darwin 5.x on
7096 # if running on 10.5 or later, the deployment target defaults
7097 # to the OS version, if on x86, and 10.4, the deployment
7098 # target defaults to 10.4. Don't you love it?
7099 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7100 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7101 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7102 10.[012]*)
7103 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7104 10.*)
7105 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7106 esac
7108 esac
7109 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7110 _lt_dar_single_mod='$single_module'
7112 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7113 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7114 else
7115 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7117 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7118 _lt_dsymutil='~$DSYMUTIL $lib || :'
7119 else
7120 _lt_dsymutil=
7123 esac
7125 ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7131 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7132 # On Suns, sometimes $CPP names a directory.
7133 if test -n "$CPP" && test -d "$CPP"; then
7134 CPP=
7136 if test -z "$CPP"; then
7137 if ${ac_cv_prog_CPP+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 # Double quotes because CPP needs to be expanded
7141 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7143 ac_preproc_ok=false
7144 for ac_c_preproc_warn_flag in '' yes
7146 # Use a header file that comes with gcc, so configuring glibc
7147 # with a fresh cross-compiler works.
7148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7149 # <limits.h> exists even on freestanding compilers.
7150 # On the NeXT, cc -E runs the code through the compiler's parser,
7151 # not just through cpp. "Syntax error" is here to catch this case.
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 #ifdef __STDC__
7155 # include <limits.h>
7156 #else
7157 # include <assert.h>
7158 #endif
7159 Syntax error
7160 _ACEOF
7161 if ac_fn_c_try_cpp "$LINENO"; then :
7163 else
7164 # Broken: fails on valid input.
7165 continue
7167 rm -f conftest.err conftest.i conftest.$ac_ext
7169 # OK, works on sane cases. Now check whether nonexistent headers
7170 # can be detected and how.
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 #include <ac_nonexistent.h>
7174 _ACEOF
7175 if ac_fn_c_try_cpp "$LINENO"; then :
7176 # Broken: success on invalid input.
7177 continue
7178 else
7179 # Passes both tests.
7180 ac_preproc_ok=:
7181 break
7183 rm -f conftest.err conftest.i conftest.$ac_ext
7185 done
7186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7187 rm -f conftest.i conftest.err conftest.$ac_ext
7188 if $ac_preproc_ok; then :
7189 break
7192 done
7193 ac_cv_prog_CPP=$CPP
7196 CPP=$ac_cv_prog_CPP
7197 else
7198 ac_cv_prog_CPP=$CPP
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7201 $as_echo "$CPP" >&6; }
7202 ac_preproc_ok=false
7203 for ac_c_preproc_warn_flag in '' yes
7205 # Use a header file that comes with gcc, so configuring glibc
7206 # with a fresh cross-compiler works.
7207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208 # <limits.h> exists even on freestanding compilers.
7209 # On the NeXT, cc -E runs the code through the compiler's parser,
7210 # not just through cpp. "Syntax error" is here to catch this case.
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #ifdef __STDC__
7214 # include <limits.h>
7215 #else
7216 # include <assert.h>
7217 #endif
7218 Syntax error
7219 _ACEOF
7220 if ac_fn_c_try_cpp "$LINENO"; then :
7222 else
7223 # Broken: fails on valid input.
7224 continue
7226 rm -f conftest.err conftest.i conftest.$ac_ext
7228 # OK, works on sane cases. Now check whether nonexistent headers
7229 # can be detected and how.
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 #include <ac_nonexistent.h>
7233 _ACEOF
7234 if ac_fn_c_try_cpp "$LINENO"; then :
7235 # Broken: success on invalid input.
7236 continue
7237 else
7238 # Passes both tests.
7239 ac_preproc_ok=:
7240 break
7242 rm -f conftest.err conftest.i conftest.$ac_ext
7244 done
7245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7246 rm -f conftest.i conftest.err conftest.$ac_ext
7247 if $ac_preproc_ok; then :
7249 else
7250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7252 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7253 See \`config.log' for more details" "$LINENO" 5; }
7256 ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7264 $as_echo_n "checking for ANSI C header files... " >&6; }
7265 if ${ac_cv_header_stdc+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 #include <stdlib.h>
7271 #include <stdarg.h>
7272 #include <string.h>
7273 #include <float.h>
7276 main ()
7280 return 0;
7282 _ACEOF
7283 if ac_fn_c_try_compile "$LINENO"; then :
7284 ac_cv_header_stdc=yes
7285 else
7286 ac_cv_header_stdc=no
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 if test $ac_cv_header_stdc = yes; then
7291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 #include <string.h>
7296 _ACEOF
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 $EGREP "memchr" >/dev/null 2>&1; then :
7300 else
7301 ac_cv_header_stdc=no
7303 rm -f conftest*
7307 if test $ac_cv_header_stdc = yes; then
7308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311 #include <stdlib.h>
7313 _ACEOF
7314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7315 $EGREP "free" >/dev/null 2>&1; then :
7317 else
7318 ac_cv_header_stdc=no
7320 rm -f conftest*
7324 if test $ac_cv_header_stdc = yes; then
7325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7326 if test "$cross_compiling" = yes; then :
7328 else
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 #include <ctype.h>
7332 #include <stdlib.h>
7333 #if ((' ' & 0x0FF) == 0x020)
7334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7336 #else
7337 # define ISLOWER(c) \
7338 (('a' <= (c) && (c) <= 'i') \
7339 || ('j' <= (c) && (c) <= 'r') \
7340 || ('s' <= (c) && (c) <= 'z'))
7341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7342 #endif
7344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7346 main ()
7348 int i;
7349 for (i = 0; i < 256; i++)
7350 if (XOR (islower (i), ISLOWER (i))
7351 || toupper (i) != TOUPPER (i))
7352 return 2;
7353 return 0;
7355 _ACEOF
7356 if ac_fn_c_try_run "$LINENO"; then :
7358 else
7359 ac_cv_header_stdc=no
7361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7362 conftest.$ac_objext conftest.beam conftest.$ac_ext
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7368 $as_echo "$ac_cv_header_stdc" >&6; }
7369 if test $ac_cv_header_stdc = yes; then
7371 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7376 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7377 inttypes.h stdint.h unistd.h
7378 do :
7379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7380 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7382 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7383 cat >>confdefs.h <<_ACEOF
7384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385 _ACEOF
7389 done
7392 for ac_header in dlfcn.h
7393 do :
7394 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7396 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7397 cat >>confdefs.h <<_ACEOF
7398 #define HAVE_DLFCN_H 1
7399 _ACEOF
7403 done
7409 # Set options
7413 enable_dlopen=no
7416 enable_win32_dll=no
7419 # Check whether --enable-shared was given.
7420 if test "${enable_shared+set}" = set; then :
7421 enableval=$enable_shared; p=${PACKAGE-default}
7422 case $enableval in
7423 yes) enable_shared=yes ;;
7424 no) enable_shared=no ;;
7426 enable_shared=no
7427 # Look at the argument we got. We use all the common list separators.
7428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7429 for pkg in $enableval; do
7430 IFS="$lt_save_ifs"
7431 if test "X$pkg" = "X$p"; then
7432 enable_shared=yes
7434 done
7435 IFS="$lt_save_ifs"
7437 esac
7438 else
7439 enable_shared=yes
7450 # Check whether --enable-static was given.
7451 if test "${enable_static+set}" = set; then :
7452 enableval=$enable_static; p=${PACKAGE-default}
7453 case $enableval in
7454 yes) enable_static=yes ;;
7455 no) enable_static=no ;;
7457 enable_static=no
7458 # Look at the argument we got. We use all the common list separators.
7459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7460 for pkg in $enableval; do
7461 IFS="$lt_save_ifs"
7462 if test "X$pkg" = "X$p"; then
7463 enable_static=yes
7465 done
7466 IFS="$lt_save_ifs"
7468 esac
7469 else
7470 enable_static=yes
7482 # Check whether --with-pic was given.
7483 if test "${with_pic+set}" = set; then :
7484 withval=$with_pic; lt_p=${PACKAGE-default}
7485 case $withval in
7486 yes|no) pic_mode=$withval ;;
7488 pic_mode=default
7489 # Look at the argument we got. We use all the common list separators.
7490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491 for lt_pkg in $withval; do
7492 IFS="$lt_save_ifs"
7493 if test "X$lt_pkg" = "X$lt_p"; then
7494 pic_mode=yes
7496 done
7497 IFS="$lt_save_ifs"
7499 esac
7500 else
7501 pic_mode=default
7505 test -z "$pic_mode" && pic_mode=default
7513 # Check whether --enable-fast-install was given.
7514 if test "${enable_fast_install+set}" = set; then :
7515 enableval=$enable_fast_install; p=${PACKAGE-default}
7516 case $enableval in
7517 yes) enable_fast_install=yes ;;
7518 no) enable_fast_install=no ;;
7520 enable_fast_install=no
7521 # Look at the argument we got. We use all the common list separators.
7522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7523 for pkg in $enableval; do
7524 IFS="$lt_save_ifs"
7525 if test "X$pkg" = "X$p"; then
7526 enable_fast_install=yes
7528 done
7529 IFS="$lt_save_ifs"
7531 esac
7532 else
7533 enable_fast_install=yes
7546 # This can be used to rebuild libtool when needed
7547 LIBTOOL_DEPS="$ltmain"
7549 # Always use our own libtool.
7550 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7581 test -z "$LN_S" && LN_S="ln -s"
7596 if test -n "${ZSH_VERSION+set}" ; then
7597 setopt NO_GLOB_SUBST
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7601 $as_echo_n "checking for objdir... " >&6; }
7602 if ${lt_cv_objdir+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 rm -f .libs 2>/dev/null
7606 mkdir .libs 2>/dev/null
7607 if test -d .libs; then
7608 lt_cv_objdir=.libs
7609 else
7610 # MS-DOS does not allow filenames that begin with a dot.
7611 lt_cv_objdir=_libs
7613 rmdir .libs 2>/dev/null
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7616 $as_echo "$lt_cv_objdir" >&6; }
7617 objdir=$lt_cv_objdir
7623 cat >>confdefs.h <<_ACEOF
7624 #define LT_OBJDIR "$lt_cv_objdir/"
7625 _ACEOF
7630 case $host_os in
7631 aix3*)
7632 # AIX sometimes has problems with the GCC collect2 program. For some
7633 # reason, if we set the COLLECT_NAMES environment variable, the problems
7634 # vanish in a puff of smoke.
7635 if test "X${COLLECT_NAMES+set}" != Xset; then
7636 COLLECT_NAMES=
7637 export COLLECT_NAMES
7640 esac
7642 # Global variables:
7643 ofile=libtool
7644 can_build_shared=yes
7646 # All known linkers require a `.a' archive for static linking (except MSVC,
7647 # which needs '.lib').
7648 libext=a
7650 with_gnu_ld="$lt_cv_prog_gnu_ld"
7652 old_CC="$CC"
7653 old_CFLAGS="$CFLAGS"
7655 # Set sane defaults for various variables
7656 test -z "$CC" && CC=cc
7657 test -z "$LTCC" && LTCC=$CC
7658 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7659 test -z "$LD" && LD=ld
7660 test -z "$ac_objext" && ac_objext=o
7662 for cc_temp in $compiler""; do
7663 case $cc_temp in
7664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7666 \-*) ;;
7667 *) break;;
7668 esac
7669 done
7670 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7673 # Only perform the check for file, if the check method requires it
7674 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7675 case $deplibs_check_method in
7676 file_magic*)
7677 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7679 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7680 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 case $MAGIC_CMD in
7684 [\\/*] | ?:[\\/]*)
7685 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7688 lt_save_MAGIC_CMD="$MAGIC_CMD"
7689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7691 for ac_dir in $ac_dummy; do
7692 IFS="$lt_save_ifs"
7693 test -z "$ac_dir" && ac_dir=.
7694 if test -f $ac_dir/${ac_tool_prefix}file; then
7695 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7696 if test -n "$file_magic_test_file"; then
7697 case $deplibs_check_method in
7698 "file_magic "*)
7699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7702 $EGREP "$file_magic_regex" > /dev/null; then
7704 else
7705 cat <<_LT_EOF 1>&2
7707 *** Warning: the command libtool uses to detect shared libraries,
7708 *** $file_magic_cmd, produces output that libtool cannot recognize.
7709 *** The result is that libtool may fail to recognize shared libraries
7710 *** as such. This will affect the creation of libtool libraries that
7711 *** depend on shared libraries, but programs linked with such libtool
7712 *** libraries will work regardless of this problem. Nevertheless, you
7713 *** may want to report the problem to your system manager and/or to
7714 *** bug-libtool@gnu.org
7716 _LT_EOF
7717 fi ;;
7718 esac
7720 break
7722 done
7723 IFS="$lt_save_ifs"
7724 MAGIC_CMD="$lt_save_MAGIC_CMD"
7726 esac
7729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7730 if test -n "$MAGIC_CMD"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7732 $as_echo "$MAGIC_CMD" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7742 if test -z "$lt_cv_path_MAGIC_CMD"; then
7743 if test -n "$ac_tool_prefix"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7745 $as_echo_n "checking for file... " >&6; }
7746 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 case $MAGIC_CMD in
7750 [\\/*] | ?:[\\/]*)
7751 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7754 lt_save_MAGIC_CMD="$MAGIC_CMD"
7755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7756 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7757 for ac_dir in $ac_dummy; do
7758 IFS="$lt_save_ifs"
7759 test -z "$ac_dir" && ac_dir=.
7760 if test -f $ac_dir/file; then
7761 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7762 if test -n "$file_magic_test_file"; then
7763 case $deplibs_check_method in
7764 "file_magic "*)
7765 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7768 $EGREP "$file_magic_regex" > /dev/null; then
7770 else
7771 cat <<_LT_EOF 1>&2
7773 *** Warning: the command libtool uses to detect shared libraries,
7774 *** $file_magic_cmd, produces output that libtool cannot recognize.
7775 *** The result is that libtool may fail to recognize shared libraries
7776 *** as such. This will affect the creation of libtool libraries that
7777 *** depend on shared libraries, but programs linked with such libtool
7778 *** libraries will work regardless of this problem. Nevertheless, you
7779 *** may want to report the problem to your system manager and/or to
7780 *** bug-libtool@gnu.org
7782 _LT_EOF
7783 fi ;;
7784 esac
7786 break
7788 done
7789 IFS="$lt_save_ifs"
7790 MAGIC_CMD="$lt_save_MAGIC_CMD"
7792 esac
7795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7796 if test -n "$MAGIC_CMD"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7798 $as_echo "$MAGIC_CMD" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7805 else
7806 MAGIC_CMD=:
7812 esac
7814 # Use C for the default configuration in the libtool script
7816 lt_save_CC="$CC"
7817 ac_ext=c
7818 ac_cpp='$CPP $CPPFLAGS'
7819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824 # Source file extension for C test sources.
7825 ac_ext=c
7827 # Object file extension for compiled C test sources.
7828 objext=o
7829 objext=$objext
7831 # Code to be used in simple compile tests
7832 lt_simple_compile_test_code="int some_variable = 0;"
7834 # Code to be used in simple link tests
7835 lt_simple_link_test_code='int main(){return(0);}'
7843 # If no C compiler was specified, use CC.
7844 LTCC=${LTCC-"$CC"}
7846 # If no C compiler flags were specified, use CFLAGS.
7847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7849 # Allow CC to be a program name with arguments.
7850 compiler=$CC
7852 # Save the default compiler, since it gets overwritten when the other
7853 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7854 compiler_DEFAULT=$CC
7856 # save warnings/boilerplate of simple test code
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860 _lt_compiler_boilerplate=`cat conftest.err`
7861 $RM conftest*
7863 ac_outfile=conftest.$ac_objext
7864 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7866 _lt_linker_boilerplate=`cat conftest.err`
7867 $RM -r conftest*
7870 if test -n "$compiler"; then
7872 lt_prog_compiler_no_builtin_flag=
7874 if test "$GCC" = yes; then
7875 case $cc_basename in
7876 nvcc*)
7877 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7879 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7880 esac
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7883 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7884 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 lt_cv_prog_compiler_rtti_exceptions=no
7888 ac_outfile=conftest.$ac_objext
7889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7890 lt_compiler_flag="-fno-rtti -fno-exceptions"
7891 # Insert the option either (1) after the last *FLAGS variable, or
7892 # (2) before a word containing "conftest.", or (3) at the end.
7893 # Note that $ac_compile itself does not contain backslashes and begins
7894 # with a dollar sign (not a hyphen), so the echo should work correctly.
7895 # The option is referenced via a variable to avoid confusing sed.
7896 lt_compile=`echo "$ac_compile" | $SED \
7897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7899 -e 's:$: $lt_compiler_flag:'`
7900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7901 (eval "$lt_compile" 2>conftest.err)
7902 ac_status=$?
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 if (exit $ac_status) && test -s "$ac_outfile"; then
7906 # The compiler can only warn and ignore the option if not recognized
7907 # So say no if there are warnings other than the usual output.
7908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7911 lt_cv_prog_compiler_rtti_exceptions=yes
7914 $RM conftest*
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7918 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7920 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7921 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7922 else
7933 lt_prog_compiler_wl=
7934 lt_prog_compiler_pic=
7935 lt_prog_compiler_static=
7938 if test "$GCC" = yes; then
7939 lt_prog_compiler_wl='-Wl,'
7940 lt_prog_compiler_static='-static'
7942 case $host_os in
7943 aix*)
7944 # All AIX code is PIC.
7945 if test "$host_cpu" = ia64; then
7946 # AIX 5 now supports IA64 processor
7947 lt_prog_compiler_static='-Bstatic'
7951 amigaos*)
7952 case $host_cpu in
7953 powerpc)
7954 # see comment about AmigaOS4 .so support
7955 lt_prog_compiler_pic='-fPIC'
7957 m68k)
7958 # FIXME: we need at least 68020 code to build shared libraries, but
7959 # adding the `-m68020' flag to GCC prevents building anything better,
7960 # like `-m68040'.
7961 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7963 esac
7966 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7967 # PIC is the default for these OSes.
7970 mingw* | cygwin* | pw32* | os2* | cegcc*)
7971 # This hack is so that the source file can tell whether it is being
7972 # built for inclusion in a dll (and should export symbols for example).
7973 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7974 # (--disable-auto-import) libraries
7975 lt_prog_compiler_pic='-DDLL_EXPORT'
7978 darwin* | rhapsody*)
7979 # PIC is the default on this platform
7980 # Common symbols not allowed in MH_DYLIB files
7981 lt_prog_compiler_pic='-fno-common'
7984 haiku*)
7985 # PIC is the default for Haiku.
7986 # The "-static" flag exists, but is broken.
7987 lt_prog_compiler_static=
7990 hpux*)
7991 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7992 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7993 # sets the default TLS model and affects inlining.
7994 case $host_cpu in
7995 hppa*64*)
7996 # +Z the default
7999 lt_prog_compiler_pic='-fPIC'
8001 esac
8004 interix[3-9]*)
8005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8006 # Instead, we relocate shared libraries at runtime.
8009 msdosdjgpp*)
8010 # Just because we use GCC doesn't mean we suddenly get shared libraries
8011 # on systems that don't support them.
8012 lt_prog_compiler_can_build_shared=no
8013 enable_shared=no
8016 *nto* | *qnx*)
8017 # QNX uses GNU C++, but need to define -shared option too, otherwise
8018 # it will coredump.
8019 lt_prog_compiler_pic='-fPIC -shared'
8022 sysv4*MP*)
8023 if test -d /usr/nec; then
8024 lt_prog_compiler_pic=-Kconform_pic
8029 lt_prog_compiler_pic='-fPIC'
8031 esac
8033 case $cc_basename in
8034 nvcc*) # Cuda Compiler Driver 2.2
8035 lt_prog_compiler_wl='-Xlinker '
8036 if test -n "$lt_prog_compiler_pic"; then
8037 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8040 esac
8041 else
8042 # PORTME Check for flag to pass linker flags through the system compiler.
8043 case $host_os in
8044 aix*)
8045 lt_prog_compiler_wl='-Wl,'
8046 if test "$host_cpu" = ia64; then
8047 # AIX 5 now supports IA64 processor
8048 lt_prog_compiler_static='-Bstatic'
8049 else
8050 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8054 mingw* | cygwin* | pw32* | os2* | cegcc*)
8055 # This hack is so that the source file can tell whether it is being
8056 # built for inclusion in a dll (and should export symbols for example).
8057 lt_prog_compiler_pic='-DDLL_EXPORT'
8060 hpux9* | hpux10* | hpux11*)
8061 lt_prog_compiler_wl='-Wl,'
8062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8063 # not for PA HP-UX.
8064 case $host_cpu in
8065 hppa*64*|ia64*)
8066 # +Z the default
8069 lt_prog_compiler_pic='+Z'
8071 esac
8072 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8073 lt_prog_compiler_static='${wl}-a ${wl}archive'
8076 irix5* | irix6* | nonstopux*)
8077 lt_prog_compiler_wl='-Wl,'
8078 # PIC (with -KPIC) is the default.
8079 lt_prog_compiler_static='-non_shared'
8082 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8083 case $cc_basename in
8084 # old Intel for x86_64 which still supported -KPIC.
8085 ecc*)
8086 lt_prog_compiler_wl='-Wl,'
8087 lt_prog_compiler_pic='-KPIC'
8088 lt_prog_compiler_static='-static'
8090 # icc used to be incompatible with GCC.
8091 # ICC 10 doesn't accept -KPIC any more.
8092 icc* | ifort*)
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='-fPIC'
8095 lt_prog_compiler_static='-static'
8097 # Lahey Fortran 8.1.
8098 lf95*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='--shared'
8101 lt_prog_compiler_static='--static'
8103 nagfor*)
8104 # NAG Fortran compiler
8105 lt_prog_compiler_wl='-Wl,-Wl,,'
8106 lt_prog_compiler_pic='-PIC'
8107 lt_prog_compiler_static='-Bstatic'
8109 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8110 # Portland Group compilers (*not* the Pentium gcc compiler,
8111 # which looks to be a dead project)
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='-fpic'
8114 lt_prog_compiler_static='-Bstatic'
8116 ccc*)
8117 lt_prog_compiler_wl='-Wl,'
8118 # All Alpha code is PIC.
8119 lt_prog_compiler_static='-non_shared'
8121 xl* | bgxl* | bgf* | mpixl*)
8122 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8123 lt_prog_compiler_wl='-Wl,'
8124 lt_prog_compiler_pic='-qpic'
8125 lt_prog_compiler_static='-qstaticlink'
8128 case `$CC -V 2>&1 | sed 5q` in
8129 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 lt_prog_compiler_wl=''
8135 *Sun\ F* | *Sun*Fortran*)
8136 lt_prog_compiler_pic='-KPIC'
8137 lt_prog_compiler_static='-Bstatic'
8138 lt_prog_compiler_wl='-Qoption ld '
8140 *Sun\ C*)
8141 # Sun C 5.9
8142 lt_prog_compiler_pic='-KPIC'
8143 lt_prog_compiler_static='-Bstatic'
8144 lt_prog_compiler_wl='-Wl,'
8146 *Intel*\ [CF]*Compiler*)
8147 lt_prog_compiler_wl='-Wl,'
8148 lt_prog_compiler_pic='-fPIC'
8149 lt_prog_compiler_static='-static'
8151 *Portland\ Group*)
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_pic='-fpic'
8154 lt_prog_compiler_static='-Bstatic'
8156 esac
8158 esac
8161 newsos6)
8162 lt_prog_compiler_pic='-KPIC'
8163 lt_prog_compiler_static='-Bstatic'
8166 *nto* | *qnx*)
8167 # QNX uses GNU C++, but need to define -shared option too, otherwise
8168 # it will coredump.
8169 lt_prog_compiler_pic='-fPIC -shared'
8172 osf3* | osf4* | osf5*)
8173 lt_prog_compiler_wl='-Wl,'
8174 # All OSF/1 code is PIC.
8175 lt_prog_compiler_static='-non_shared'
8178 rdos*)
8179 lt_prog_compiler_static='-non_shared'
8182 solaris*)
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8185 case $cc_basename in
8186 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8187 lt_prog_compiler_wl='-Qoption ld ';;
8189 lt_prog_compiler_wl='-Wl,';;
8190 esac
8193 sunos4*)
8194 lt_prog_compiler_wl='-Qoption ld '
8195 lt_prog_compiler_pic='-PIC'
8196 lt_prog_compiler_static='-Bstatic'
8199 sysv4 | sysv4.2uw2* | sysv4.3*)
8200 lt_prog_compiler_wl='-Wl,'
8201 lt_prog_compiler_pic='-KPIC'
8202 lt_prog_compiler_static='-Bstatic'
8205 sysv4*MP*)
8206 if test -d /usr/nec ;then
8207 lt_prog_compiler_pic='-Kconform_pic'
8208 lt_prog_compiler_static='-Bstatic'
8212 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8213 lt_prog_compiler_wl='-Wl,'
8214 lt_prog_compiler_pic='-KPIC'
8215 lt_prog_compiler_static='-Bstatic'
8218 unicos*)
8219 lt_prog_compiler_wl='-Wl,'
8220 lt_prog_compiler_can_build_shared=no
8223 uts4*)
8224 lt_prog_compiler_pic='-pic'
8225 lt_prog_compiler_static='-Bstatic'
8229 lt_prog_compiler_can_build_shared=no
8231 esac
8234 case $host_os in
8235 # For platforms which do not support PIC, -DPIC is meaningless:
8236 *djgpp*)
8237 lt_prog_compiler_pic=
8240 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8242 esac
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8245 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8246 if ${lt_cv_prog_compiler_pic+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8252 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8253 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8256 # Check to make sure the PIC flag actually works.
8258 if test -n "$lt_prog_compiler_pic"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8260 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8261 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 lt_cv_prog_compiler_pic_works=no
8265 ac_outfile=conftest.$ac_objext
8266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8268 # Insert the option either (1) after the last *FLAGS variable, or
8269 # (2) before a word containing "conftest.", or (3) at the end.
8270 # Note that $ac_compile itself does not contain backslashes and begins
8271 # with a dollar sign (not a hyphen), so the echo should work correctly.
8272 # The option is referenced via a variable to avoid confusing sed.
8273 lt_compile=`echo "$ac_compile" | $SED \
8274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8276 -e 's:$: $lt_compiler_flag:'`
8277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8278 (eval "$lt_compile" 2>conftest.err)
8279 ac_status=$?
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 if (exit $ac_status) && test -s "$ac_outfile"; then
8283 # The compiler can only warn and ignore the option if not recognized
8284 # So say no if there are warnings other than the usual output.
8285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8288 lt_cv_prog_compiler_pic_works=yes
8291 $RM conftest*
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8295 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8297 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8298 case $lt_prog_compiler_pic in
8299 "" | " "*) ;;
8300 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8301 esac
8302 else
8303 lt_prog_compiler_pic=
8304 lt_prog_compiler_can_build_shared=no
8320 # Check to make sure the static flag actually works.
8322 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8324 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8325 if ${lt_cv_prog_compiler_static_works+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 lt_cv_prog_compiler_static_works=no
8329 save_LDFLAGS="$LDFLAGS"
8330 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8331 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8333 # The linker can only warn and ignore the option if not recognized
8334 # So say no if there are warnings
8335 if test -s conftest.err; then
8336 # Append any errors to the config.log.
8337 cat conftest.err 1>&5
8338 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8340 if diff conftest.exp conftest.er2 >/dev/null; then
8341 lt_cv_prog_compiler_static_works=yes
8343 else
8344 lt_cv_prog_compiler_static_works=yes
8347 $RM -r conftest*
8348 LDFLAGS="$save_LDFLAGS"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8352 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8354 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8356 else
8357 lt_prog_compiler_static=
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8367 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8368 if ${lt_cv_prog_compiler_c_o+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 lt_cv_prog_compiler_c_o=no
8372 $RM -r conftest 2>/dev/null
8373 mkdir conftest
8374 cd conftest
8375 mkdir out
8376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378 lt_compiler_flag="-o out/conftest2.$ac_objext"
8379 # Insert the option either (1) after the last *FLAGS variable, or
8380 # (2) before a word containing "conftest.", or (3) at the end.
8381 # Note that $ac_compile itself does not contain backslashes and begins
8382 # with a dollar sign (not a hyphen), so the echo should work correctly.
8383 lt_compile=`echo "$ac_compile" | $SED \
8384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386 -e 's:$: $lt_compiler_flag:'`
8387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8388 (eval "$lt_compile" 2>out/conftest.err)
8389 ac_status=$?
8390 cat out/conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8393 then
8394 # The compiler can only warn and ignore the option if not recognized
8395 # So say no if there are warnings
8396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_c_o=yes
8402 chmod u+w . 2>&5
8403 $RM conftest*
8404 # SGI C++ compiler will create directory out/ii_files/ for
8405 # template instantiation
8406 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8407 $RM out/* && rmdir out
8408 cd ..
8409 $RM -r conftest
8410 $RM conftest*
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8414 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8422 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8423 if ${lt_cv_prog_compiler_c_o+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 lt_cv_prog_compiler_c_o=no
8427 $RM -r conftest 2>/dev/null
8428 mkdir conftest
8429 cd conftest
8430 mkdir out
8431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433 lt_compiler_flag="-o out/conftest2.$ac_objext"
8434 # Insert the option either (1) after the last *FLAGS variable, or
8435 # (2) before a word containing "conftest.", or (3) at the end.
8436 # Note that $ac_compile itself does not contain backslashes and begins
8437 # with a dollar sign (not a hyphen), so the echo should work correctly.
8438 lt_compile=`echo "$ac_compile" | $SED \
8439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8441 -e 's:$: $lt_compiler_flag:'`
8442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8443 (eval "$lt_compile" 2>out/conftest.err)
8444 ac_status=$?
8445 cat out/conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8448 then
8449 # The compiler can only warn and ignore the option if not recognized
8450 # So say no if there are warnings
8451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8454 lt_cv_prog_compiler_c_o=yes
8457 chmod u+w . 2>&5
8458 $RM conftest*
8459 # SGI C++ compiler will create directory out/ii_files/ for
8460 # template instantiation
8461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8462 $RM out/* && rmdir out
8463 cd ..
8464 $RM -r conftest
8465 $RM conftest*
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8469 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8474 hard_links="nottested"
8475 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8476 # do not overwrite the value of need_locks provided by the user
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8478 $as_echo_n "checking if we can lock with hard links... " >&6; }
8479 hard_links=yes
8480 $RM conftest*
8481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8482 touch conftest.a
8483 ln conftest.a conftest.b 2>&5 || hard_links=no
8484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8486 $as_echo "$hard_links" >&6; }
8487 if test "$hard_links" = no; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8489 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8490 need_locks=warn
8492 else
8493 need_locks=no
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8502 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8504 runpath_var=
8505 allow_undefined_flag=
8506 always_export_symbols=no
8507 archive_cmds=
8508 archive_expsym_cmds=
8509 compiler_needs_object=no
8510 enable_shared_with_static_runtimes=no
8511 export_dynamic_flag_spec=
8512 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8513 hardcode_automatic=no
8514 hardcode_direct=no
8515 hardcode_direct_absolute=no
8516 hardcode_libdir_flag_spec=
8517 hardcode_libdir_separator=
8518 hardcode_minus_L=no
8519 hardcode_shlibpath_var=unsupported
8520 inherit_rpath=no
8521 link_all_deplibs=unknown
8522 module_cmds=
8523 module_expsym_cmds=
8524 old_archive_from_new_cmds=
8525 old_archive_from_expsyms_cmds=
8526 thread_safe_flag_spec=
8527 whole_archive_flag_spec=
8528 # include_expsyms should be a list of space-separated symbols to be *always*
8529 # included in the symbol list
8530 include_expsyms=
8531 # exclude_expsyms can be an extended regexp of symbols to exclude
8532 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8533 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8534 # as well as any symbol that contains `d'.
8535 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8536 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8537 # platforms (ab)use it in PIC code, but their linkers get confused if
8538 # the symbol is explicitly referenced. Since portable code cannot
8539 # rely on this symbol name, it's probably fine to never include it in
8540 # preloaded symbol tables.
8541 # Exclude shared library initialization/finalization symbols.
8542 extract_expsyms_cmds=
8544 case $host_os in
8545 cygwin* | mingw* | pw32* | cegcc*)
8546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8547 # When not using gcc, we currently assume that we are using
8548 # Microsoft Visual C++.
8549 if test "$GCC" != yes; then
8550 with_gnu_ld=no
8553 interix*)
8554 # we just hope/assume this is gcc and not c89 (= MSVC++)
8555 with_gnu_ld=yes
8557 openbsd*)
8558 with_gnu_ld=no
8560 linux* | k*bsd*-gnu | gnu*)
8561 link_all_deplibs=no
8563 esac
8565 ld_shlibs=yes
8567 # On some targets, GNU ld is compatible enough with the native linker
8568 # that we're better off using the native interface for both.
8569 lt_use_gnu_ld_interface=no
8570 if test "$with_gnu_ld" = yes; then
8571 case $host_os in
8572 aix*)
8573 # The AIX port of GNU ld has always aspired to compatibility
8574 # with the native linker. However, as the warning in the GNU ld
8575 # block says, versions before 2.19.5* couldn't really create working
8576 # shared libraries, regardless of the interface used.
8577 case `$LD -v 2>&1` in
8578 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8579 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8580 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8582 lt_use_gnu_ld_interface=yes
8584 esac
8587 lt_use_gnu_ld_interface=yes
8589 esac
8592 if test "$lt_use_gnu_ld_interface" = yes; then
8593 # If archive_cmds runs LD, not CC, wlarc should be empty
8594 wlarc='${wl}'
8596 # Set some defaults for GNU ld with shared library support. These
8597 # are reset later if shared libraries are not supported. Putting them
8598 # here allows them to be overridden if necessary.
8599 runpath_var=LD_RUN_PATH
8600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8601 export_dynamic_flag_spec='${wl}--export-dynamic'
8602 # ancient GNU ld didn't support --whole-archive et. al.
8603 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8604 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8605 else
8606 whole_archive_flag_spec=
8608 supports_anon_versioning=no
8609 case `$LD -v 2>&1` in
8610 *GNU\ gold*) supports_anon_versioning=yes ;;
8611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8614 *\ 2.11.*) ;; # other 2.11 versions
8615 *) supports_anon_versioning=yes ;;
8616 esac
8618 # See if GNU ld supports shared libraries.
8619 case $host_os in
8620 aix[3-9]*)
8621 # On AIX/PPC, the GNU linker is very broken
8622 if test "$host_cpu" != ia64; then
8623 ld_shlibs=no
8624 cat <<_LT_EOF 1>&2
8626 *** Warning: the GNU linker, at least up to release 2.19, is reported
8627 *** to be unable to reliably create shared libraries on AIX.
8628 *** Therefore, libtool is disabling shared libraries support. If you
8629 *** really care for shared libraries, you may want to install binutils
8630 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8631 *** You will then need to restart the configuration process.
8633 _LT_EOF
8637 amigaos*)
8638 case $host_cpu in
8639 powerpc)
8640 # see comment about AmigaOS4 .so support
8641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 archive_expsym_cmds=''
8644 m68k)
8645 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)'
8646 hardcode_libdir_flag_spec='-L$libdir'
8647 hardcode_minus_L=yes
8649 esac
8652 beos*)
8653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8654 allow_undefined_flag=unsupported
8655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8656 # support --undefined. This deserves some investigation. FIXME
8657 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 else
8659 ld_shlibs=no
8663 cygwin* | mingw* | pw32* | cegcc*)
8664 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8665 # as there is no search path for DLLs.
8666 hardcode_libdir_flag_spec='-L$libdir'
8667 export_dynamic_flag_spec='${wl}--export-all-symbols'
8668 allow_undefined_flag=unsupported
8669 always_export_symbols=no
8670 enable_shared_with_static_runtimes=yes
8671 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'
8672 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8674 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8676 # If the export-symbols file already is a .def file (1st line
8677 # is EXPORTS), use it as is; otherwise, prepend...
8678 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8679 cp $export_symbols $output_objdir/$soname.def;
8680 else
8681 echo EXPORTS > $output_objdir/$soname.def;
8682 cat $export_symbols >> $output_objdir/$soname.def;
8684 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8685 else
8686 ld_shlibs=no
8690 haiku*)
8691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692 link_all_deplibs=yes
8695 interix[3-9]*)
8696 hardcode_direct=no
8697 hardcode_shlibpath_var=no
8698 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8699 export_dynamic_flag_spec='${wl}-E'
8700 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8701 # Instead, shared libraries are loaded at an image base (0x10000000 by
8702 # default) and relocated if they conflict, which is a slow very memory
8703 # consuming and fragmenting process. To avoid this, we pick a random,
8704 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8705 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8706 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8707 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'
8710 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8711 tmp_diet=no
8712 if test "$host_os" = linux-dietlibc; then
8713 case $cc_basename in
8714 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8715 esac
8717 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8718 && test "$tmp_diet" = no
8719 then
8720 tmp_addflag=' $pic_flag'
8721 tmp_sharedflag='-shared'
8722 case $cc_basename,$host_cpu in
8723 pgcc*) # Portland Group C compiler
8724 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'
8725 tmp_addflag=' $pic_flag'
8727 pgf77* | pgf90* | pgf95* | pgfortran*)
8728 # Portland Group f77 and f90 compilers
8729 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'
8730 tmp_addflag=' $pic_flag -Mnomain' ;;
8731 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8732 tmp_addflag=' -i_dynamic' ;;
8733 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8734 tmp_addflag=' -i_dynamic -nofor_main' ;;
8735 ifc* | ifort*) # Intel Fortran compiler
8736 tmp_addflag=' -nofor_main' ;;
8737 lf95*) # Lahey Fortran 8.1
8738 whole_archive_flag_spec=
8739 tmp_sharedflag='--shared' ;;
8740 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8741 tmp_sharedflag='-qmkshrobj'
8742 tmp_addflag= ;;
8743 nvcc*) # Cuda Compiler Driver 2.2
8744 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'
8745 compiler_needs_object=yes
8747 esac
8748 case `$CC -V 2>&1 | sed 5q` in
8749 *Sun\ C*) # Sun C 5.9
8750 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'
8751 compiler_needs_object=yes
8752 tmp_sharedflag='-G' ;;
8753 *Sun\ F*) # Sun Fortran 8.3
8754 tmp_sharedflag='-G' ;;
8755 esac
8756 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758 if test "x$supports_anon_versioning" = xyes; then
8759 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8761 echo "local: *; };" >> $output_objdir/$libname.ver~
8762 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8765 case $cc_basename in
8766 xlf* | bgf* | bgxlf* | mpixlf*)
8767 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8768 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8771 if test "x$supports_anon_versioning" = xyes; then
8772 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8774 echo "local: *; };" >> $output_objdir/$libname.ver~
8775 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8778 esac
8779 else
8780 ld_shlibs=no
8784 netbsd* | netbsdelf*-gnu)
8785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8786 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8787 wlarc=
8788 else
8789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794 solaris*)
8795 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8796 ld_shlibs=no
8797 cat <<_LT_EOF 1>&2
8799 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8800 *** create shared libraries on Solaris systems. Therefore, libtool
8801 *** is disabling shared libraries support. We urge you to upgrade GNU
8802 *** binutils to release 2.9.1 or newer. Another option is to modify
8803 *** your PATH or compiler configuration so that the native linker is
8804 *** used, and then restart.
8806 _LT_EOF
8807 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8810 else
8811 ld_shlibs=no
8815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8816 case `$LD -v 2>&1` in
8817 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8818 ld_shlibs=no
8819 cat <<_LT_EOF 1>&2
8821 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8822 *** reliably create shared libraries on SCO systems. Therefore, libtool
8823 *** is disabling shared libraries support. We urge you to upgrade GNU
8824 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8825 *** your PATH or compiler configuration so that the native linker is
8826 *** used, and then restart.
8828 _LT_EOF
8831 # For security reasons, it is highly recommended that you always
8832 # use absolute paths for naming shared libraries, and exclude the
8833 # DT_RUNPATH tag from executables and libraries. But doing so
8834 # requires that you compile everything twice, which is a pain.
8835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8839 else
8840 ld_shlibs=no
8843 esac
8846 sunos4*)
8847 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8848 wlarc=
8849 hardcode_direct=yes
8850 hardcode_shlibpath_var=no
8854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8857 else
8858 ld_shlibs=no
8861 esac
8863 if test "$ld_shlibs" = no; then
8864 runpath_var=
8865 hardcode_libdir_flag_spec=
8866 export_dynamic_flag_spec=
8867 whole_archive_flag_spec=
8869 else
8870 # PORTME fill in a description of your system's linker (not GNU ld)
8871 case $host_os in
8872 aix3*)
8873 allow_undefined_flag=unsupported
8874 always_export_symbols=yes
8875 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'
8876 # Note: this linker hardcodes the directories in LIBPATH if there
8877 # are no directories specified by -L.
8878 hardcode_minus_L=yes
8879 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8880 # Neither direct hardcoding nor static linking is supported with a
8881 # broken collect2.
8882 hardcode_direct=unsupported
8886 aix[4-9]*)
8887 if test "$host_cpu" = ia64; then
8888 # On IA64, the linker does run time linking by default, so we don't
8889 # have to do anything special.
8890 aix_use_runtimelinking=no
8891 exp_sym_flag='-Bexport'
8892 no_entry_flag=""
8893 else
8894 # If we're using GNU nm, then we don't want the "-C" option.
8895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8896 # Also, AIX nm treats weak defined symbols like other global
8897 # defined symbols, whereas GNU nm marks them as "W".
8898 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8899 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8900 else
8901 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8903 aix_use_runtimelinking=no
8905 # Test if we are trying to use run time linking or normal
8906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8907 # need to do runtime linking.
8908 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8909 for ld_flag in $LDFLAGS; do
8910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8911 aix_use_runtimelinking=yes
8912 break
8914 done
8916 esac
8918 exp_sym_flag='-bexport'
8919 no_entry_flag='-bnoentry'
8922 # When large executables or shared objects are built, AIX ld can
8923 # have problems creating the table of contents. If linking a library
8924 # or program results in "error TOC overflow" add -mminimal-toc to
8925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8928 archive_cmds=''
8929 hardcode_direct=yes
8930 hardcode_direct_absolute=yes
8931 hardcode_libdir_separator=':'
8932 link_all_deplibs=yes
8933 file_list_spec='${wl}-f,'
8935 if test "$GCC" = yes; then
8936 case $host_os in aix4.[012]|aix4.[012].*)
8937 # We only want to do this on AIX 4.2 and lower, the check
8938 # below for broken collect2 doesn't work under 4.3+
8939 collect2name=`${CC} -print-prog-name=collect2`
8940 if test -f "$collect2name" &&
8941 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8942 then
8943 # We have reworked collect2
8945 else
8946 # We have old collect2
8947 hardcode_direct=unsupported
8948 # It fails to find uninstalled libraries when the uninstalled
8949 # path is not listed in the libpath. Setting hardcode_minus_L
8950 # to unsupported forces relinking
8951 hardcode_minus_L=yes
8952 hardcode_libdir_flag_spec='-L$libdir'
8953 hardcode_libdir_separator=
8956 esac
8957 shared_flag='-shared'
8958 if test "$aix_use_runtimelinking" = yes; then
8959 shared_flag="$shared_flag "'${wl}-G'
8961 link_all_deplibs=no
8962 else
8963 # not using gcc
8964 if test "$host_cpu" = ia64; then
8965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8966 # chokes on -Wl,-G. The following line is correct:
8967 shared_flag='-G'
8968 else
8969 if test "$aix_use_runtimelinking" = yes; then
8970 shared_flag='${wl}-G'
8971 else
8972 shared_flag='${wl}-bM:SRE'
8977 export_dynamic_flag_spec='${wl}-bexpall'
8978 # It seems that -bexpall does not export symbols beginning with
8979 # underscore (_), so it is better to generate a list of symbols to export.
8980 always_export_symbols=yes
8981 if test "$aix_use_runtimelinking" = yes; then
8982 # Warning - without using the other runtime loading flags (-brtl),
8983 # -berok will link without error, but may produce a broken library.
8984 allow_undefined_flag='-berok'
8985 # Determine the default libpath from the value encoded in an
8986 # empty executable.
8987 if test "${lt_cv_aix_libpath+set}" = set; then
8988 aix_libpath=$lt_cv_aix_libpath
8989 else
8990 if ${lt_cv_aix_libpath_+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8997 main ()
9001 return 0;
9003 _ACEOF
9004 if ac_fn_c_try_link "$LINENO"; then :
9006 lt_aix_libpath_sed='
9007 /Import File Strings/,/^$/ {
9008 /^0/ {
9009 s/^0 *\([^ ]*\) *$/\1/
9013 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9014 # Check for a 64-bit object if we didn't find anything.
9015 if test -z "$lt_cv_aix_libpath_"; then
9016 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019 rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9021 if test -z "$lt_cv_aix_libpath_"; then
9022 lt_cv_aix_libpath_="/usr/lib:/lib"
9027 aix_libpath=$lt_cv_aix_libpath_
9030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9031 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9032 else
9033 if test "$host_cpu" = ia64; then
9034 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9035 allow_undefined_flag="-z nodefs"
9036 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"
9037 else
9038 # Determine the default libpath from the value encoded in an
9039 # empty executable.
9040 if test "${lt_cv_aix_libpath+set}" = set; then
9041 aix_libpath=$lt_cv_aix_libpath
9042 else
9043 if ${lt_cv_aix_libpath_+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9050 main ()
9054 return 0;
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"; then :
9059 lt_aix_libpath_sed='
9060 /Import File Strings/,/^$/ {
9061 /^0/ {
9062 s/^0 *\([^ ]*\) *$/\1/
9066 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9067 # Check for a 64-bit object if we didn't find anything.
9068 if test -z "$lt_cv_aix_libpath_"; then
9069 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9072 rm -f core conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074 if test -z "$lt_cv_aix_libpath_"; then
9075 lt_cv_aix_libpath_="/usr/lib:/lib"
9080 aix_libpath=$lt_cv_aix_libpath_
9083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9084 # Warning - without using the other run time loading flags,
9085 # -berok will link without error, but may produce a broken library.
9086 no_undefined_flag=' ${wl}-bernotok'
9087 allow_undefined_flag=' ${wl}-berok'
9088 if test "$with_gnu_ld" = yes; then
9089 # We only use this code for GNU lds that support --whole-archive.
9090 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9091 else
9092 # Exported symbols can be pulled into shared objects from archives
9093 whole_archive_flag_spec='$convenience'
9095 archive_cmds_need_lc=yes
9096 # This is similar to how AIX traditionally builds its shared libraries.
9097 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9102 amigaos*)
9103 case $host_cpu in
9104 powerpc)
9105 # see comment about AmigaOS4 .so support
9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 archive_expsym_cmds=''
9109 m68k)
9110 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)'
9111 hardcode_libdir_flag_spec='-L$libdir'
9112 hardcode_minus_L=yes
9114 esac
9117 bsdi[45]*)
9118 export_dynamic_flag_spec=-rdynamic
9121 cygwin* | mingw* | pw32* | cegcc*)
9122 # When not using gcc, we currently assume that we are using
9123 # Microsoft Visual C++.
9124 # hardcode_libdir_flag_spec is actually meaningless, as there is
9125 # no search path for DLLs.
9126 case $cc_basename in
9127 cl*)
9128 # Native MSVC
9129 hardcode_libdir_flag_spec=' '
9130 allow_undefined_flag=unsupported
9131 always_export_symbols=yes
9132 file_list_spec='@'
9133 # Tell ltmain to make .lib files, not .a files.
9134 libext=lib
9135 # Tell ltmain to make .dll files, not .so files.
9136 shrext_cmds=".dll"
9137 # FIXME: Setting linknames here is a bad hack.
9138 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9140 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9141 else
9142 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9144 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9145 linknames='
9146 # The linker will not automatically build a static lib if we build a DLL.
9147 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9148 enable_shared_with_static_runtimes=yes
9149 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9151 # Don't use ranlib
9152 old_postinstall_cmds='chmod 644 $oldlib'
9153 postlink_cmds='lt_outputfile="@OUTPUT@"~
9154 lt_tool_outputfile="@TOOL_OUTPUT@"~
9155 case $lt_outputfile in
9156 *.exe|*.EXE) ;;
9158 lt_outputfile="$lt_outputfile.exe"
9159 lt_tool_outputfile="$lt_tool_outputfile.exe"
9161 esac~
9162 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9163 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9164 $RM "$lt_outputfile.manifest";
9168 # Assume MSVC wrapper
9169 hardcode_libdir_flag_spec=' '
9170 allow_undefined_flag=unsupported
9171 # Tell ltmain to make .lib files, not .a files.
9172 libext=lib
9173 # Tell ltmain to make .dll files, not .so files.
9174 shrext_cmds=".dll"
9175 # FIXME: Setting linknames here is a bad hack.
9176 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9177 # The linker will automatically build a .lib file if we build a DLL.
9178 old_archive_from_new_cmds='true'
9179 # FIXME: Should let the user specify the lib program.
9180 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9181 enable_shared_with_static_runtimes=yes
9183 esac
9186 darwin* | rhapsody*)
9189 archive_cmds_need_lc=no
9190 hardcode_direct=no
9191 hardcode_automatic=yes
9192 hardcode_shlibpath_var=unsupported
9193 if test "$lt_cv_ld_force_load" = "yes"; then
9194 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\"`'
9196 else
9197 whole_archive_flag_spec=''
9199 link_all_deplibs=yes
9200 allow_undefined_flag="$_lt_dar_allow_undefined"
9201 case $cc_basename in
9202 ifort*) _lt_dar_can_shared=yes ;;
9203 *) _lt_dar_can_shared=$GCC ;;
9204 esac
9205 if test "$_lt_dar_can_shared" = "yes"; then
9206 output_verbose_link_cmd=func_echo_all
9207 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9208 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9209 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}"
9210 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}"
9212 else
9213 ld_shlibs=no
9218 dgux*)
9219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9220 hardcode_libdir_flag_spec='-L$libdir'
9221 hardcode_shlibpath_var=no
9224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9225 # support. Future versions do this automatically, but an explicit c++rt0.o
9226 # does not break anything, and helps significantly (at the cost of a little
9227 # extra space).
9228 freebsd2.2*)
9229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9230 hardcode_libdir_flag_spec='-R$libdir'
9231 hardcode_direct=yes
9232 hardcode_shlibpath_var=no
9235 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9236 freebsd2.*)
9237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9238 hardcode_direct=yes
9239 hardcode_minus_L=yes
9240 hardcode_shlibpath_var=no
9243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9244 freebsd* | dragonfly*)
9245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 hardcode_direct=yes
9248 hardcode_shlibpath_var=no
9251 hpux9*)
9252 if test "$GCC" = yes; then
9253 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9254 else
9255 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9258 hardcode_libdir_separator=:
9259 hardcode_direct=yes
9261 # hardcode_minus_L: Not really in the search PATH,
9262 # but as the default location of the library.
9263 hardcode_minus_L=yes
9264 export_dynamic_flag_spec='${wl}-E'
9267 hpux10*)
9268 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9269 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9270 else
9271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9273 if test "$with_gnu_ld" = no; then
9274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9275 hardcode_libdir_separator=:
9276 hardcode_direct=yes
9277 hardcode_direct_absolute=yes
9278 export_dynamic_flag_spec='${wl}-E'
9279 # hardcode_minus_L: Not really in the search PATH,
9280 # but as the default location of the library.
9281 hardcode_minus_L=yes
9285 hpux11*)
9286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9287 case $host_cpu in
9288 hppa*64*)
9289 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9291 ia64*)
9292 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9295 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9297 esac
9298 else
9299 case $host_cpu in
9300 hppa*64*)
9301 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9303 ia64*)
9304 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9308 # Older versions of the 11.00 compiler do not understand -b yet
9309 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9311 $as_echo_n "checking if $CC understands -b... " >&6; }
9312 if ${lt_cv_prog_compiler__b+:} false; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 lt_cv_prog_compiler__b=no
9316 save_LDFLAGS="$LDFLAGS"
9317 LDFLAGS="$LDFLAGS -b"
9318 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9320 # The linker can only warn and ignore the option if not recognized
9321 # So say no if there are warnings
9322 if test -s conftest.err; then
9323 # Append any errors to the config.log.
9324 cat conftest.err 1>&5
9325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9327 if diff conftest.exp conftest.er2 >/dev/null; then
9328 lt_cv_prog_compiler__b=yes
9330 else
9331 lt_cv_prog_compiler__b=yes
9334 $RM -r conftest*
9335 LDFLAGS="$save_LDFLAGS"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9339 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9341 if test x"$lt_cv_prog_compiler__b" = xyes; then
9342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9343 else
9344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9348 esac
9350 if test "$with_gnu_ld" = no; then
9351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9352 hardcode_libdir_separator=:
9354 case $host_cpu in
9355 hppa*64*|ia64*)
9356 hardcode_direct=no
9357 hardcode_shlibpath_var=no
9360 hardcode_direct=yes
9361 hardcode_direct_absolute=yes
9362 export_dynamic_flag_spec='${wl}-E'
9364 # hardcode_minus_L: Not really in the search PATH,
9365 # but as the default location of the library.
9366 hardcode_minus_L=yes
9368 esac
9372 irix5* | irix6* | nonstopux*)
9373 if test "$GCC" = yes; then
9374 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'
9375 # Try to use the -exported_symbol ld option, if it does not
9376 # work, assume that -exports_file does not work either and
9377 # implicitly export all symbols.
9378 # This should be the same for all languages, so no per-tag cache variable.
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9380 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9381 if ${lt_cv_irix_exported_symbol+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 save_LDFLAGS="$LDFLAGS"
9385 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 int foo (void) { return 0; }
9389 _ACEOF
9390 if ac_fn_c_try_link "$LINENO"; then :
9391 lt_cv_irix_exported_symbol=yes
9392 else
9393 lt_cv_irix_exported_symbol=no
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 LDFLAGS="$save_LDFLAGS"
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9400 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9401 if test "$lt_cv_irix_exported_symbol" = yes; then
9402 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'
9404 else
9405 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'
9406 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'
9408 archive_cmds_need_lc='no'
9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410 hardcode_libdir_separator=:
9411 inherit_rpath=yes
9412 link_all_deplibs=yes
9415 netbsd* | netbsdelf*-gnu)
9416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9418 else
9419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9421 hardcode_libdir_flag_spec='-R$libdir'
9422 hardcode_direct=yes
9423 hardcode_shlibpath_var=no
9426 newsos6)
9427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_direct=yes
9429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9430 hardcode_libdir_separator=:
9431 hardcode_shlibpath_var=no
9434 *nto* | *qnx*)
9437 openbsd*)
9438 if test -f /usr/libexec/ld.so; then
9439 hardcode_direct=yes
9440 hardcode_shlibpath_var=no
9441 hardcode_direct_absolute=yes
9442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9446 export_dynamic_flag_spec='${wl}-E'
9447 else
9448 case $host_os in
9449 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_libdir_flag_spec='-R$libdir'
9454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9457 esac
9459 else
9460 ld_shlibs=no
9464 os2*)
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_minus_L=yes
9467 allow_undefined_flag=unsupported
9468 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9469 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9472 osf3*)
9473 if test "$GCC" = yes; then
9474 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9475 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'
9476 else
9477 allow_undefined_flag=' -expect_unresolved \*'
9478 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'
9480 archive_cmds_need_lc='no'
9481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9482 hardcode_libdir_separator=:
9485 osf4* | osf5*) # as osf3* with the addition of -msym flag
9486 if test "$GCC" = yes; then
9487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9488 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'
9489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490 else
9491 allow_undefined_flag=' -expect_unresolved \*'
9492 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'
9493 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~
9494 $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'
9496 # Both c and cxx compiler support -rpath directly
9497 hardcode_libdir_flag_spec='-rpath $libdir'
9499 archive_cmds_need_lc='no'
9500 hardcode_libdir_separator=:
9503 solaris*)
9504 no_undefined_flag=' -z defs'
9505 if test "$GCC" = yes; then
9506 wlarc='${wl}'
9507 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9509 $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'
9510 else
9511 case `$CC -V 2>&1` in
9512 *"Compilers 5.0"*)
9513 wlarc=''
9514 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9516 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9519 wlarc='${wl}'
9520 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9521 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9522 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9524 esac
9526 hardcode_libdir_flag_spec='-R$libdir'
9527 hardcode_shlibpath_var=no
9528 case $host_os in
9529 solaris2.[0-5] | solaris2.[0-5].*) ;;
9531 # The compiler driver will combine and reorder linker options,
9532 # but understands `-z linker_flag'. GCC discards it without `$wl',
9533 # but is careful enough not to reorder.
9534 # Supported since Solaris 2.6 (maybe 2.5.1?)
9535 if test "$GCC" = yes; then
9536 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9537 else
9538 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9541 esac
9542 link_all_deplibs=yes
9545 sunos4*)
9546 if test "x$host_vendor" = xsequent; then
9547 # Use $CC to link under sequent, because it throws in some extra .o
9548 # files that make .init and .fini sections work.
9549 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9550 else
9551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9553 hardcode_libdir_flag_spec='-L$libdir'
9554 hardcode_direct=yes
9555 hardcode_minus_L=yes
9556 hardcode_shlibpath_var=no
9559 sysv4)
9560 case $host_vendor in
9561 sni)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_direct=yes # is this really true???
9565 siemens)
9566 ## LD is ld it makes a PLAMLIB
9567 ## CC just makes a GrossModule.
9568 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9569 reload_cmds='$CC -r -o $output$reload_objs'
9570 hardcode_direct=no
9572 motorola)
9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9576 esac
9577 runpath_var='LD_RUN_PATH'
9578 hardcode_shlibpath_var=no
9581 sysv4.3*)
9582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583 hardcode_shlibpath_var=no
9584 export_dynamic_flag_spec='-Bexport'
9587 sysv4*MP*)
9588 if test -d /usr/nec; then
9589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590 hardcode_shlibpath_var=no
9591 runpath_var=LD_RUN_PATH
9592 hardcode_runpath_var=yes
9593 ld_shlibs=yes
9597 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9598 no_undefined_flag='${wl}-z,text'
9599 archive_cmds_need_lc=no
9600 hardcode_shlibpath_var=no
9601 runpath_var='LD_RUN_PATH'
9603 if test "$GCC" = yes; then
9604 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 else
9607 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9612 sysv5* | sco3.2v5* | sco5v6*)
9613 # Note: We can NOT use -z defs as we might desire, because we do not
9614 # link with -lc, and that would cause any symbols used from libc to
9615 # always be unresolved, which means just about no library would
9616 # ever link correctly. If we're not using GNU ld we use -z text
9617 # though, which does catch some bad symbols but isn't as heavy-handed
9618 # as -z defs.
9619 no_undefined_flag='${wl}-z,text'
9620 allow_undefined_flag='${wl}-z,nodefs'
9621 archive_cmds_need_lc=no
9622 hardcode_shlibpath_var=no
9623 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9624 hardcode_libdir_separator=':'
9625 link_all_deplibs=yes
9626 export_dynamic_flag_spec='${wl}-Bexport'
9627 runpath_var='LD_RUN_PATH'
9629 if test "$GCC" = yes; then
9630 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632 else
9633 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 uts4*)
9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_libdir_flag_spec='-L$libdir'
9641 hardcode_shlibpath_var=no
9645 ld_shlibs=no
9647 esac
9649 if test x$host_vendor = xsni; then
9650 case $host in
9651 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9652 export_dynamic_flag_spec='${wl}-Blargedynsym'
9654 esac
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9659 $as_echo "$ld_shlibs" >&6; }
9660 test "$ld_shlibs" = no && can_build_shared=no
9662 with_gnu_ld=$with_gnu_ld
9679 # Do we need to explicitly link libc?
9681 case "x$archive_cmds_need_lc" in
9682 x|xyes)
9683 # Assume -lc should be added
9684 archive_cmds_need_lc=yes
9686 if test "$enable_shared" = yes && test "$GCC" = yes; then
9687 case $archive_cmds in
9688 *'~'*)
9689 # FIXME: we may have to deal with multi-command sequences.
9691 '$CC '*)
9692 # Test whether the compiler implicitly links with -lc since on some
9693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9694 # to ld, don't add -lc before -lgcc.
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9696 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9697 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9698 $as_echo_n "(cached) " >&6
9699 else
9700 $RM conftest*
9701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9704 (eval $ac_compile) 2>&5
9705 ac_status=$?
9706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9707 test $ac_status = 0; } 2>conftest.err; then
9708 soname=conftest
9709 lib=conftest
9710 libobjs=conftest.$ac_objext
9711 deplibs=
9712 wl=$lt_prog_compiler_wl
9713 pic_flag=$lt_prog_compiler_pic
9714 compiler_flags=-v
9715 linker_flags=-v
9716 verstring=
9717 output_objdir=.
9718 libname=conftest
9719 lt_save_allow_undefined_flag=$allow_undefined_flag
9720 allow_undefined_flag=
9721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9722 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9723 ac_status=$?
9724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9725 test $ac_status = 0; }
9726 then
9727 lt_cv_archive_cmds_need_lc=no
9728 else
9729 lt_cv_archive_cmds_need_lc=yes
9731 allow_undefined_flag=$lt_save_allow_undefined_flag
9732 else
9733 cat conftest.err 1>&5
9735 $RM conftest*
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9739 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9740 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9742 esac
9745 esac
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9899 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9901 if test "$GCC" = yes; then
9902 case $host_os in
9903 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9904 *) lt_awk_arg="/^libraries:/" ;;
9905 esac
9906 case $host_os in
9907 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9908 *) lt_sed_strip_eq="s,=/,/,g" ;;
9909 esac
9910 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9911 case $lt_search_path_spec in
9912 *\;*)
9913 # if the path contains ";" then we assume it to be the separator
9914 # otherwise default to the standard path separator (i.e. ":") - it is
9915 # assumed that no part of a normal pathname contains ";" but that should
9916 # okay in the real world where ";" in dirpaths is itself problematic.
9917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9920 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9922 esac
9923 # Ok, now we have the path, separated by spaces, we can step through it
9924 # and add multilib dir if necessary.
9925 lt_tmp_lt_search_path_spec=
9926 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9927 for lt_sys_path in $lt_search_path_spec; do
9928 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9930 else
9931 test -d "$lt_sys_path" && \
9932 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9934 done
9935 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9936 BEGIN {RS=" "; FS="/|\n";} {
9937 lt_foo="";
9938 lt_count=0;
9939 for (lt_i = NF; lt_i > 0; lt_i--) {
9940 if ($lt_i != "" && $lt_i != ".") {
9941 if ($lt_i == "..") {
9942 lt_count++;
9943 } else {
9944 if (lt_count == 0) {
9945 lt_foo="/" $lt_i lt_foo;
9946 } else {
9947 lt_count--;
9952 if (lt_foo != "") { lt_freq[lt_foo]++; }
9953 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9955 # AWK program above erroneously prepends '/' to C:/dos/paths
9956 # for these hosts.
9957 case $host_os in
9958 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9959 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9960 esac
9961 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9962 else
9963 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9965 library_names_spec=
9966 libname_spec='lib$name'
9967 soname_spec=
9968 shrext_cmds=".so"
9969 postinstall_cmds=
9970 postuninstall_cmds=
9971 finish_cmds=
9972 finish_eval=
9973 shlibpath_var=
9974 shlibpath_overrides_runpath=unknown
9975 version_type=none
9976 dynamic_linker="$host_os ld.so"
9977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9978 need_lib_prefix=unknown
9979 hardcode_into_libs=no
9981 # when you set need_version to no, make sure it does not cause -set_version
9982 # flags to be left without arguments
9983 need_version=unknown
9985 case $host_os in
9986 aix3*)
9987 version_type=linux # correct to gnu/linux during the next big refactor
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9989 shlibpath_var=LIBPATH
9991 # AIX 3 has no versioning support, so we append a major version to the name.
9992 soname_spec='${libname}${release}${shared_ext}$major'
9995 aix[4-9]*)
9996 version_type=linux # correct to gnu/linux during the next big refactor
9997 need_lib_prefix=no
9998 need_version=no
9999 hardcode_into_libs=yes
10000 if test "$host_cpu" = ia64; then
10001 # AIX 5 supports IA64
10002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 else
10005 # With GCC up to 2.95.x, collect2 would create an import file
10006 # for dependence libraries. The import file would start with
10007 # the line `#! .'. This would cause the generated library to
10008 # depend on `.', always an invalid library. This was fixed in
10009 # development snapshots of GCC prior to 3.0.
10010 case $host_os in
10011 aix4 | aix4.[01] | aix4.[01].*)
10012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10013 echo ' yes '
10014 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10016 else
10017 can_build_shared=no
10020 esac
10021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10022 # soname into executable. Probably we can add versioning support to
10023 # collect2, so additional links can be useful in future.
10024 if test "$aix_use_runtimelinking" = yes; then
10025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10026 # instead of lib<name>.a to let people know that these are not
10027 # typical AIX shared libraries.
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 else
10030 # We preserve .a as extension for shared libraries through AIX4.2
10031 # and later when we are not doing run time linking.
10032 library_names_spec='${libname}${release}.a $libname.a'
10033 soname_spec='${libname}${release}${shared_ext}$major'
10035 shlibpath_var=LIBPATH
10039 amigaos*)
10040 case $host_cpu in
10041 powerpc)
10042 # Since July 2007 AmigaOS4 officially supports .so libraries.
10043 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 m68k)
10047 library_names_spec='$libname.ixlibrary $libname.a'
10048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10049 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10051 esac
10054 beos*)
10055 library_names_spec='${libname}${shared_ext}'
10056 dynamic_linker="$host_os ld.so"
10057 shlibpath_var=LIBRARY_PATH
10060 bsdi[45]*)
10061 version_type=linux # correct to gnu/linux during the next big refactor
10062 need_version=no
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10069 # the default ld.so.conf also contains /usr/contrib/lib and
10070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10071 # libtool to hard-code these into programs
10074 cygwin* | mingw* | pw32* | cegcc*)
10075 version_type=windows
10076 shrext_cmds=".dll"
10077 need_version=no
10078 need_lib_prefix=no
10080 case $GCC,$cc_basename in
10081 yes,*)
10082 # gcc
10083 library_names_spec='$libname.dll.a'
10084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10085 postinstall_cmds='base_file=`basename \${file}`~
10086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10087 dldir=$destdir/`dirname \$dlpath`~
10088 test -d \$dldir || mkdir -p \$dldir~
10089 $install_prog $dir/$dlname \$dldir/$dlname~
10090 chmod a+x \$dldir/$dlname~
10091 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10092 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10095 dlpath=$dir/\$dldll~
10096 $RM \$dlpath'
10097 shlibpath_overrides_runpath=yes
10099 case $host_os in
10100 cygwin*)
10101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10104 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10106 mingw* | cegcc*)
10107 # MinGW DLLs use traditional 'lib' prefix
10108 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10110 pw32*)
10111 # pw32 DLLs use 'pw' prefix rather than 'lib'
10112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10114 esac
10115 dynamic_linker='Win32 ld.exe'
10118 *,cl*)
10119 # Native MSVC
10120 libname_spec='$name'
10121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10122 library_names_spec='${libname}.dll.lib'
10124 case $build_os in
10125 mingw*)
10126 sys_lib_search_path_spec=
10127 lt_save_ifs=$IFS
10128 IFS=';'
10129 for lt_path in $LIB
10131 IFS=$lt_save_ifs
10132 # Let DOS variable expansion print the short 8.3 style file name.
10133 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10134 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10135 done
10136 IFS=$lt_save_ifs
10137 # Convert to MSYS style.
10138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10140 cygwin*)
10141 # Convert to unix form, then to dos form, then back to unix form
10142 # but this time dos style (no spaces!) so that the unix form looks
10143 # like /cygdrive/c/PROGRA~1:/cygdr...
10144 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10145 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10146 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10149 sys_lib_search_path_spec="$LIB"
10150 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10151 # It is most probably a Windows format PATH.
10152 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10153 else
10154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10156 # FIXME: find the short name or the path components, as spaces are
10157 # common. (e.g. "Program Files" -> "PROGRA~1")
10159 esac
10161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10162 postinstall_cmds='base_file=`basename \${file}`~
10163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10164 dldir=$destdir/`dirname \$dlpath`~
10165 test -d \$dldir || mkdir -p \$dldir~
10166 $install_prog $dir/$dlname \$dldir/$dlname'
10167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10168 dlpath=$dir/\$dldll~
10169 $RM \$dlpath'
10170 shlibpath_overrides_runpath=yes
10171 dynamic_linker='Win32 link.exe'
10175 # Assume MSVC wrapper
10176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10177 dynamic_linker='Win32 ld.exe'
10179 esac
10180 # FIXME: first we should search . and the directory the executable is in
10181 shlibpath_var=PATH
10184 darwin* | rhapsody*)
10185 dynamic_linker="$host_os dyld"
10186 version_type=darwin
10187 need_lib_prefix=no
10188 need_version=no
10189 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10190 soname_spec='${libname}${release}${major}$shared_ext'
10191 shlibpath_overrides_runpath=yes
10192 shlibpath_var=DYLD_LIBRARY_PATH
10193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10199 dgux*)
10200 version_type=linux # correct to gnu/linux during the next big refactor
10201 need_lib_prefix=no
10202 need_version=no
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 shlibpath_var=LD_LIBRARY_PATH
10208 freebsd* | dragonfly*)
10209 # DragonFly does not have aout. When/if they implement a new
10210 # versioning mechanism, adjust this.
10211 if test -x /usr/bin/objformat; then
10212 objformat=`/usr/bin/objformat`
10213 else
10214 case $host_os in
10215 freebsd[23].*) objformat=aout ;;
10216 *) objformat=elf ;;
10217 esac
10219 version_type=freebsd-$objformat
10220 case $version_type in
10221 freebsd-elf*)
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10223 need_version=no
10224 need_lib_prefix=no
10226 freebsd-*)
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10228 need_version=yes
10230 esac
10231 shlibpath_var=LD_LIBRARY_PATH
10232 case $host_os in
10233 freebsd2.*)
10234 shlibpath_overrides_runpath=yes
10236 freebsd3.[01]* | freebsdelf3.[01]*)
10237 shlibpath_overrides_runpath=yes
10238 hardcode_into_libs=yes
10240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10242 shlibpath_overrides_runpath=no
10243 hardcode_into_libs=yes
10245 *) # from 4.6 on, and DragonFly
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10249 esac
10252 haiku*)
10253 version_type=linux # correct to gnu/linux during the next big refactor
10254 need_lib_prefix=no
10255 need_version=no
10256 dynamic_linker="$host_os runtime_loader"
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 shlibpath_var=LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10262 hardcode_into_libs=yes
10265 hpux9* | hpux10* | hpux11*)
10266 # Give a soname corresponding to the major version so that dld.sl refuses to
10267 # link against other versions.
10268 version_type=sunos
10269 need_lib_prefix=no
10270 need_version=no
10271 case $host_cpu in
10272 ia64*)
10273 shrext_cmds='.so'
10274 hardcode_into_libs=yes
10275 dynamic_linker="$host_os dld.so"
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 if test "X$HPUX_IA64_MODE" = X32; then
10281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10282 else
10283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10287 hppa*64*)
10288 shrext_cmds='.sl'
10289 hardcode_into_libs=yes
10290 dynamic_linker="$host_os dld.sl"
10291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10299 shrext_cmds='.sl'
10300 dynamic_linker="$host_os dld.sl"
10301 shlibpath_var=SHLIB_PATH
10302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10306 esac
10307 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10308 postinstall_cmds='chmod 555 $lib'
10309 # or fails outright, so override atomically:
10310 install_override_mode=555
10313 interix[3-9]*)
10314 version_type=linux # correct to gnu/linux during the next big refactor
10315 need_lib_prefix=no
10316 need_version=no
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 shlibpath_overrides_runpath=no
10322 hardcode_into_libs=yes
10325 irix5* | irix6* | nonstopux*)
10326 case $host_os in
10327 nonstopux*) version_type=nonstopux ;;
10329 if test "$lt_cv_prog_gnu_ld" = yes; then
10330 version_type=linux # correct to gnu/linux during the next big refactor
10331 else
10332 version_type=irix
10333 fi ;;
10334 esac
10335 need_lib_prefix=no
10336 need_version=no
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10339 case $host_os in
10340 irix5* | nonstopux*)
10341 libsuff= shlibsuff=
10344 case $LD in # libtool.m4 will add one of these switches to LD
10345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10346 libsuff= shlibsuff= libmagic=32-bit;;
10347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10348 libsuff=32 shlibsuff=N32 libmagic=N32;;
10349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10350 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10351 *) libsuff= shlibsuff= libmagic=never-match;;
10352 esac
10354 esac
10355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10356 shlibpath_overrides_runpath=no
10357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10359 hardcode_into_libs=yes
10362 # No shared lib support for Linux oldld, aout, or coff.
10363 linux*oldld* | linux*aout* | linux*coff*)
10364 dynamic_linker=no
10367 # This must be glibc/ELF.
10368 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10369 version_type=linux # correct to gnu/linux during the next big refactor
10370 need_lib_prefix=no
10371 need_version=no
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=no
10378 # Some binutils ld are patched to set DT_RUNPATH
10379 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 lt_cv_shlibpath_overrides_runpath=no
10383 save_LDFLAGS=$LDFLAGS
10384 save_libdir=$libdir
10385 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10386 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10391 main ()
10395 return 0;
10397 _ACEOF
10398 if ac_fn_c_try_link "$LINENO"; then :
10399 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10400 lt_cv_shlibpath_overrides_runpath=yes
10403 rm -f core conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10405 LDFLAGS=$save_LDFLAGS
10406 libdir=$save_libdir
10410 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10412 # This implies no fast_install, which is unacceptable.
10413 # Some rework will be needed to allow for fast_install
10414 # before this can be enabled.
10415 hardcode_into_libs=yes
10417 # Append ld.so.conf contents to the search path
10418 if test -f /etc/ld.so.conf; then
10419 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' ' '`
10420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10423 # We used to test for /lib/ld.so.1 and disable shared libraries on
10424 # powerpc, because MkLinux only supported shared libraries with the
10425 # GNU dynamic linker. Since this was broken with cross compilers,
10426 # most powerpc-linux boxes support dynamic linking these days and
10427 # people can always --disable-shared, the test was removed, and we
10428 # assume the GNU/Linux dynamic linker is in use.
10429 dynamic_linker='GNU/Linux ld.so'
10432 netbsdelf*-gnu)
10433 version_type=linux
10434 need_lib_prefix=no
10435 need_version=no
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=no
10440 hardcode_into_libs=yes
10441 dynamic_linker='NetBSD ld.elf_so'
10444 netbsd*)
10445 version_type=sunos
10446 need_lib_prefix=no
10447 need_version=no
10448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10451 dynamic_linker='NetBSD (a.out) ld.so'
10452 else
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 dynamic_linker='NetBSD ld.elf_so'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=yes
10459 hardcode_into_libs=yes
10462 newsos6)
10463 version_type=linux # correct to gnu/linux during the next big refactor
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 shlibpath_overrides_runpath=yes
10469 *nto* | *qnx*)
10470 version_type=qnx
10471 need_lib_prefix=no
10472 need_version=no
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 shlibpath_overrides_runpath=no
10477 hardcode_into_libs=yes
10478 dynamic_linker='ldqnx.so'
10481 openbsd*)
10482 version_type=sunos
10483 sys_lib_dlsearch_path_spec="/usr/lib"
10484 need_lib_prefix=no
10485 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10486 case $host_os in
10487 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10488 *) need_version=no ;;
10489 esac
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10494 case $host_os in
10495 openbsd2.[89] | openbsd2.[89].*)
10496 shlibpath_overrides_runpath=no
10499 shlibpath_overrides_runpath=yes
10501 esac
10502 else
10503 shlibpath_overrides_runpath=yes
10507 os2*)
10508 libname_spec='$name'
10509 shrext_cmds=".dll"
10510 need_lib_prefix=no
10511 library_names_spec='$libname${shared_ext} $libname.a'
10512 dynamic_linker='OS/2 ld.exe'
10513 shlibpath_var=LIBPATH
10516 osf3* | osf4* | osf5*)
10517 version_type=osf
10518 need_lib_prefix=no
10519 need_version=no
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10524 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10527 rdos*)
10528 dynamic_linker=no
10531 solaris*)
10532 version_type=linux # correct to gnu/linux during the next big refactor
10533 need_lib_prefix=no
10534 need_version=no
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 shlibpath_overrides_runpath=yes
10539 hardcode_into_libs=yes
10540 # ldd complains unless libraries are executable
10541 postinstall_cmds='chmod +x $lib'
10544 sunos4*)
10545 version_type=sunos
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10547 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 if test "$with_gnu_ld" = yes; then
10551 need_lib_prefix=no
10553 need_version=yes
10556 sysv4 | sysv4.3*)
10557 version_type=linux # correct to gnu/linux during the next big refactor
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 case $host_vendor in
10562 sni)
10563 shlibpath_overrides_runpath=no
10564 need_lib_prefix=no
10565 runpath_var=LD_RUN_PATH
10567 siemens)
10568 need_lib_prefix=no
10570 motorola)
10571 need_lib_prefix=no
10572 need_version=no
10573 shlibpath_overrides_runpath=no
10574 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10576 esac
10579 sysv4*MP*)
10580 if test -d /usr/nec ;then
10581 version_type=linux # correct to gnu/linux during the next big refactor
10582 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10583 soname_spec='$libname${shared_ext}.$major'
10584 shlibpath_var=LD_LIBRARY_PATH
10588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10589 version_type=freebsd-elf
10590 need_lib_prefix=no
10591 need_version=no
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10596 hardcode_into_libs=yes
10597 if test "$with_gnu_ld" = yes; then
10598 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10599 else
10600 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10601 case $host_os in
10602 sco3.2v5*)
10603 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10605 esac
10607 sys_lib_dlsearch_path_spec='/usr/lib'
10610 tpf*)
10611 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10612 version_type=linux # correct to gnu/linux during the next big refactor
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=no
10618 hardcode_into_libs=yes
10621 uts4*)
10622 version_type=linux # correct to gnu/linux during the next big refactor
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 shlibpath_var=LD_LIBRARY_PATH
10629 dynamic_linker=no
10631 esac
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10633 $as_echo "$dynamic_linker" >&6; }
10634 test "$dynamic_linker" = no && can_build_shared=no
10636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10637 if test "$GCC" = yes; then
10638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10641 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10642 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10644 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10645 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10740 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10741 hardcode_action=
10742 if test -n "$hardcode_libdir_flag_spec" ||
10743 test -n "$runpath_var" ||
10744 test "X$hardcode_automatic" = "Xyes" ; then
10746 # We can hardcode non-existent directories.
10747 if test "$hardcode_direct" != no &&
10748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10749 # have to relink, otherwise we might link with an installed library
10750 # when we should be linking with a yet-to-be-installed one
10751 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10752 test "$hardcode_minus_L" != no; then
10753 # Linking always hardcodes the temporary library directory.
10754 hardcode_action=relink
10755 else
10756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10757 hardcode_action=immediate
10759 else
10760 # We cannot hardcode anything, or else we can only hardcode existing
10761 # directories.
10762 hardcode_action=unsupported
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10765 $as_echo "$hardcode_action" >&6; }
10767 if test "$hardcode_action" = relink ||
10768 test "$inherit_rpath" = yes; then
10769 # Fast installation is not supported
10770 enable_fast_install=no
10771 elif test "$shlibpath_overrides_runpath" = yes ||
10772 test "$enable_shared" = no; then
10773 # Fast installation is not necessary
10774 enable_fast_install=needless
10782 if test "x$enable_dlopen" != xyes; then
10783 enable_dlopen=unknown
10784 enable_dlopen_self=unknown
10785 enable_dlopen_self_static=unknown
10786 else
10787 lt_cv_dlopen=no
10788 lt_cv_dlopen_libs=
10790 case $host_os in
10791 beos*)
10792 lt_cv_dlopen="load_add_on"
10793 lt_cv_dlopen_libs=
10794 lt_cv_dlopen_self=yes
10797 mingw* | pw32* | cegcc*)
10798 lt_cv_dlopen="LoadLibrary"
10799 lt_cv_dlopen_libs=
10802 cygwin*)
10803 lt_cv_dlopen="dlopen"
10804 lt_cv_dlopen_libs=
10807 darwin*)
10808 # if libdl is installed we need to link against it
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10811 if ${ac_cv_lib_dl_dlopen+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 ac_check_lib_save_LIBS=$LIBS
10815 LIBS="-ldl $LIBS"
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10819 /* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 char dlopen ();
10827 main ()
10829 return dlopen ();
10831 return 0;
10833 _ACEOF
10834 if ac_fn_c_try_link "$LINENO"; then :
10835 ac_cv_lib_dl_dlopen=yes
10836 else
10837 ac_cv_lib_dl_dlopen=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10845 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10847 else
10849 lt_cv_dlopen="dyld"
10850 lt_cv_dlopen_libs=
10851 lt_cv_dlopen_self=yes
10858 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10859 if test "x$ac_cv_func_shl_load" = xyes; then :
10860 lt_cv_dlopen="shl_load"
10861 else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10863 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10864 if ${ac_cv_lib_dld_shl_load+:} false; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 ac_check_lib_save_LIBS=$LIBS
10868 LIBS="-ldld $LIBS"
10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10872 /* Override any GCC internal prototype to avoid an error.
10873 Use char because int might match the return type of a GCC
10874 builtin and then its argument prototype would still apply. */
10875 #ifdef __cplusplus
10876 extern "C"
10877 #endif
10878 char shl_load ();
10880 main ()
10882 return shl_load ();
10884 return 0;
10886 _ACEOF
10887 if ac_fn_c_try_link "$LINENO"; then :
10888 ac_cv_lib_dld_shl_load=yes
10889 else
10890 ac_cv_lib_dld_shl_load=no
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10897 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10898 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10899 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10900 else
10901 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10902 if test "x$ac_cv_func_dlopen" = xyes; then :
10903 lt_cv_dlopen="dlopen"
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10907 if ${ac_cv_lib_dl_dlopen+:} false; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-ldl $LIBS"
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char dlopen ();
10923 main ()
10925 return dlopen ();
10927 return 0;
10929 _ACEOF
10930 if ac_fn_c_try_link "$LINENO"; then :
10931 ac_cv_lib_dl_dlopen=yes
10932 else
10933 ac_cv_lib_dl_dlopen=no
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LIBS=$ac_check_lib_save_LIBS
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10940 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10941 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10946 if ${ac_cv_lib_svld_dlopen+:} false; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-lsvld $LIBS"
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char dlopen ();
10962 main ()
10964 return dlopen ();
10966 return 0;
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then :
10970 ac_cv_lib_svld_dlopen=yes
10971 else
10972 ac_cv_lib_svld_dlopen=no
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10979 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10980 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10984 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10985 if ${ac_cv_lib_dld_dld_link+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-ldld $LIBS"
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char dld_link ();
11001 main ()
11003 return dld_link ();
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_dld_dld_link=yes
11010 else
11011 ac_cv_lib_dld_dld_link=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11018 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11019 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11020 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11039 esac
11041 if test "x$lt_cv_dlopen" != xno; then
11042 enable_dlopen=yes
11043 else
11044 enable_dlopen=no
11047 case $lt_cv_dlopen in
11048 dlopen)
11049 save_CPPFLAGS="$CPPFLAGS"
11050 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11052 save_LDFLAGS="$LDFLAGS"
11053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11055 save_LIBS="$LIBS"
11056 LIBS="$lt_cv_dlopen_libs $LIBS"
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11059 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11060 if ${lt_cv_dlopen_self+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 if test "$cross_compiling" = yes; then :
11064 lt_cv_dlopen_self=cross
11065 else
11066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11067 lt_status=$lt_dlunknown
11068 cat > conftest.$ac_ext <<_LT_EOF
11069 #line $LINENO "configure"
11070 #include "confdefs.h"
11072 #if HAVE_DLFCN_H
11073 #include <dlfcn.h>
11074 #endif
11076 #include <stdio.h>
11078 #ifdef RTLD_GLOBAL
11079 # define LT_DLGLOBAL RTLD_GLOBAL
11080 #else
11081 # ifdef DL_GLOBAL
11082 # define LT_DLGLOBAL DL_GLOBAL
11083 # else
11084 # define LT_DLGLOBAL 0
11085 # endif
11086 #endif
11088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11089 find out it does not work in some platform. */
11090 #ifndef LT_DLLAZY_OR_NOW
11091 # ifdef RTLD_LAZY
11092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11093 # else
11094 # ifdef DL_LAZY
11095 # define LT_DLLAZY_OR_NOW DL_LAZY
11096 # else
11097 # ifdef RTLD_NOW
11098 # define LT_DLLAZY_OR_NOW RTLD_NOW
11099 # else
11100 # ifdef DL_NOW
11101 # define LT_DLLAZY_OR_NOW DL_NOW
11102 # else
11103 # define LT_DLLAZY_OR_NOW 0
11104 # endif
11105 # endif
11106 # endif
11107 # endif
11108 #endif
11110 /* When -fvisbility=hidden is used, assume the code has been annotated
11111 correspondingly for the symbols needed. */
11112 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11113 int fnord () __attribute__((visibility("default")));
11114 #endif
11116 int fnord () { return 42; }
11117 int main ()
11119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11120 int status = $lt_dlunknown;
11122 if (self)
11124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11125 else
11127 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11128 else puts (dlerror ());
11130 /* dlclose (self); */
11132 else
11133 puts (dlerror ());
11135 return status;
11137 _LT_EOF
11138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11139 (eval $ac_link) 2>&5
11140 ac_status=$?
11141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11142 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11143 (./conftest; exit; ) >&5 2>/dev/null
11144 lt_status=$?
11145 case x$lt_status in
11146 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11147 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11148 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11149 esac
11150 else :
11151 # compilation failed
11152 lt_cv_dlopen_self=no
11155 rm -fr conftest*
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11160 $as_echo "$lt_cv_dlopen_self" >&6; }
11162 if test "x$lt_cv_dlopen_self" = xyes; then
11163 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11165 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11166 if ${lt_cv_dlopen_self_static+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 if test "$cross_compiling" = yes; then :
11170 lt_cv_dlopen_self_static=cross
11171 else
11172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11173 lt_status=$lt_dlunknown
11174 cat > conftest.$ac_ext <<_LT_EOF
11175 #line $LINENO "configure"
11176 #include "confdefs.h"
11178 #if HAVE_DLFCN_H
11179 #include <dlfcn.h>
11180 #endif
11182 #include <stdio.h>
11184 #ifdef RTLD_GLOBAL
11185 # define LT_DLGLOBAL RTLD_GLOBAL
11186 #else
11187 # ifdef DL_GLOBAL
11188 # define LT_DLGLOBAL DL_GLOBAL
11189 # else
11190 # define LT_DLGLOBAL 0
11191 # endif
11192 #endif
11194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11195 find out it does not work in some platform. */
11196 #ifndef LT_DLLAZY_OR_NOW
11197 # ifdef RTLD_LAZY
11198 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11199 # else
11200 # ifdef DL_LAZY
11201 # define LT_DLLAZY_OR_NOW DL_LAZY
11202 # else
11203 # ifdef RTLD_NOW
11204 # define LT_DLLAZY_OR_NOW RTLD_NOW
11205 # else
11206 # ifdef DL_NOW
11207 # define LT_DLLAZY_OR_NOW DL_NOW
11208 # else
11209 # define LT_DLLAZY_OR_NOW 0
11210 # endif
11211 # endif
11212 # endif
11213 # endif
11214 #endif
11216 /* When -fvisbility=hidden is used, assume the code has been annotated
11217 correspondingly for the symbols needed. */
11218 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11219 int fnord () __attribute__((visibility("default")));
11220 #endif
11222 int fnord () { return 42; }
11223 int main ()
11225 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11226 int status = $lt_dlunknown;
11228 if (self)
11230 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11231 else
11233 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11234 else puts (dlerror ());
11236 /* dlclose (self); */
11238 else
11239 puts (dlerror ());
11241 return status;
11243 _LT_EOF
11244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11245 (eval $ac_link) 2>&5
11246 ac_status=$?
11247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11248 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11249 (./conftest; exit; ) >&5 2>/dev/null
11250 lt_status=$?
11251 case x$lt_status in
11252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11254 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11255 esac
11256 else :
11257 # compilation failed
11258 lt_cv_dlopen_self_static=no
11261 rm -fr conftest*
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11266 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11269 CPPFLAGS="$save_CPPFLAGS"
11270 LDFLAGS="$save_LDFLAGS"
11271 LIBS="$save_LIBS"
11273 esac
11275 case $lt_cv_dlopen_self in
11276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11277 *) enable_dlopen_self=unknown ;;
11278 esac
11280 case $lt_cv_dlopen_self_static in
11281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11282 *) enable_dlopen_self_static=unknown ;;
11283 esac
11302 striplib=
11303 old_striplib=
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11305 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11306 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11307 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11308 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11310 $as_echo "yes" >&6; }
11311 else
11312 # FIXME - insert some real tests, host_os isn't really good enough
11313 case $host_os in
11314 darwin*)
11315 if test -n "$STRIP" ; then
11316 striplib="$STRIP -x"
11317 old_striplib="$STRIP -S"
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11319 $as_echo "yes" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11329 esac
11343 # Report which library types will actually be built
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11345 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11347 $as_echo "$can_build_shared" >&6; }
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11350 $as_echo_n "checking whether to build shared libraries... " >&6; }
11351 test "$can_build_shared" = "no" && enable_shared=no
11353 # On AIX, shared libraries and static libraries use the same namespace, and
11354 # are all built from PIC.
11355 case $host_os in
11356 aix3*)
11357 test "$enable_shared" = yes && enable_static=no
11358 if test -n "$RANLIB"; then
11359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11360 postinstall_cmds='$RANLIB $lib'
11364 aix[4-9]*)
11365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11366 test "$enable_shared" = yes && enable_static=no
11369 esac
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11371 $as_echo "$enable_shared" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11374 $as_echo_n "checking whether to build static libraries... " >&6; }
11375 # Make sure either enable_shared or enable_static is yes.
11376 test "$enable_shared" = yes || enable_static=yes
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11378 $as_echo "$enable_static" >&6; }
11384 ac_ext=c
11385 ac_cpp='$CPP $CPPFLAGS'
11386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11390 CC="$lt_save_CC"
11406 ac_config_commands="$ac_config_commands libtool"
11411 # Only expand once:
11417 # Check whether --with-font was given.
11418 if test "${with_font+set}" = set; then :
11419 withval=$with_font; with_font=$withval
11420 else
11421 with_font=yes
11426 # Check whether --with-examples was given.
11427 if test "${with_examples+set}" = set; then :
11428 withval=$with_examples; with_examples=$withval
11429 else
11430 with_examples=yes
11434 if test "$with_font" = yes; then
11435 COND_FONT_TRUE=
11436 COND_FONT_FALSE='#'
11437 else
11438 COND_FONT_TRUE='#'
11439 COND_FONT_FALSE=
11442 if test "$with_examples" = yes; then
11443 COND_EXAMPLES_TRUE=
11444 COND_EXAMPLES_FALSE='#'
11445 else
11446 COND_EXAMPLES_TRUE='#'
11447 COND_EXAMPLES_FALSE=
11451 ac_ext=c
11452 ac_cpp='$CPP $CPPFLAGS'
11453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11456 if test -n "$ac_tool_prefix"; then
11457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if ${ac_cv_prog_CC+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 if test -n "$CC"; then
11465 ac_cv_prog_CC="$CC" # Let the user override the test.
11466 else
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11478 done
11479 done
11480 IFS=$as_save_IFS
11484 CC=$ac_cv_prog_CC
11485 if test -n "$CC"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11487 $as_echo "$CC" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11495 if test -z "$ac_cv_prog_CC"; then
11496 ac_ct_CC=$CC
11497 # Extract the first word of "gcc", so it can be a program name with args.
11498 set dummy gcc; ac_word=$2
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11500 $as_echo_n "checking for $ac_word... " >&6; }
11501 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 if test -n "$ac_ct_CC"; then
11505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11506 else
11507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11510 IFS=$as_save_IFS
11511 test -z "$as_dir" && as_dir=.
11512 for ac_exec_ext in '' $ac_executable_extensions; do
11513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11514 ac_cv_prog_ac_ct_CC="gcc"
11515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11516 break 2
11518 done
11519 done
11520 IFS=$as_save_IFS
11524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11525 if test -n "$ac_ct_CC"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11527 $as_echo "$ac_ct_CC" >&6; }
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11533 if test "x$ac_ct_CC" = x; then
11534 CC=""
11535 else
11536 case $cross_compiling:$ac_tool_warned in
11537 yes:)
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11540 ac_tool_warned=yes ;;
11541 esac
11542 CC=$ac_ct_CC
11544 else
11545 CC="$ac_cv_prog_CC"
11548 if test -z "$CC"; then
11549 if test -n "$ac_tool_prefix"; then
11550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11551 set dummy ${ac_tool_prefix}cc; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if ${ac_cv_prog_CC+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 if test -n "$CC"; then
11558 ac_cv_prog_CC="$CC" # Let the user override the test.
11559 else
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11567 ac_cv_prog_CC="${ac_tool_prefix}cc"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11571 done
11572 done
11573 IFS=$as_save_IFS
11577 CC=$ac_cv_prog_CC
11578 if test -n "$CC"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11580 $as_echo "$CC" >&6; }
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11589 if test -z "$CC"; then
11590 # Extract the first word of "cc", so it can be a program name with args.
11591 set dummy cc; ac_word=$2
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593 $as_echo_n "checking for $ac_word... " >&6; }
11594 if ${ac_cv_prog_CC+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 if test -n "$CC"; then
11598 ac_cv_prog_CC="$CC" # Let the user override the test.
11599 else
11600 ac_prog_rejected=no
11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602 for as_dir in $PATH
11604 IFS=$as_save_IFS
11605 test -z "$as_dir" && as_dir=.
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11609 ac_prog_rejected=yes
11610 continue
11612 ac_cv_prog_CC="cc"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11616 done
11617 done
11618 IFS=$as_save_IFS
11620 if test $ac_prog_rejected = yes; then
11621 # We found a bogon in the path, so make sure we never use it.
11622 set dummy $ac_cv_prog_CC
11623 shift
11624 if test $# != 0; then
11625 # We chose a different compiler from the bogus one.
11626 # However, it has the same basename, so the bogon will be chosen
11627 # first if we set CC to just the basename; use the full file name.
11628 shift
11629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11634 CC=$ac_cv_prog_CC
11635 if test -n "$CC"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11637 $as_echo "$CC" >&6; }
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11645 if test -z "$CC"; then
11646 if test -n "$ac_tool_prefix"; then
11647 for ac_prog in cl.exe
11649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if ${ac_cv_prog_CC+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 if test -n "$CC"; then
11657 ac_cv_prog_CC="$CC" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11670 done
11671 done
11672 IFS=$as_save_IFS
11676 CC=$ac_cv_prog_CC
11677 if test -n "$CC"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11679 $as_echo "$CC" >&6; }
11680 else
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11686 test -n "$CC" && break
11687 done
11689 if test -z "$CC"; then
11690 ac_ct_CC=$CC
11691 for ac_prog in cl.exe
11693 # Extract the first word of "$ac_prog", so it can be a program name with args.
11694 set dummy $ac_prog; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 if test -n "$ac_ct_CC"; then
11701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11702 else
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11710 ac_cv_prog_ac_ct_CC="$ac_prog"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11714 done
11715 done
11716 IFS=$as_save_IFS
11720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11721 if test -n "$ac_ct_CC"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11723 $as_echo "$ac_ct_CC" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11730 test -n "$ac_ct_CC" && break
11731 done
11733 if test "x$ac_ct_CC" = x; then
11734 CC=""
11735 else
11736 case $cross_compiling:$ac_tool_warned in
11737 yes:)
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11740 ac_tool_warned=yes ;;
11741 esac
11742 CC=$ac_ct_CC
11749 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11751 as_fn_error $? "no acceptable C compiler found in \$PATH
11752 See \`config.log' for more details" "$LINENO" 5; }
11754 # Provide some information about the compiler.
11755 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11756 set X $ac_compile
11757 ac_compiler=$2
11758 for ac_option in --version -v -V -qversion; do
11759 { { ac_try="$ac_compiler $ac_option >&5"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763 esac
11764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11765 $as_echo "$ac_try_echo"; } >&5
11766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11767 ac_status=$?
11768 if test -s conftest.err; then
11769 sed '10a\
11770 ... rest of stderr output deleted ...
11771 10q' conftest.err >conftest.er1
11772 cat conftest.er1 >&5
11774 rm -f conftest.er1 conftest.err
11775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11776 test $ac_status = 0; }
11777 done
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11780 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11781 if ${ac_cv_c_compiler_gnu+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11788 main ()
11790 #ifndef __GNUC__
11791 choke me
11792 #endif
11795 return 0;
11797 _ACEOF
11798 if ac_fn_c_try_compile "$LINENO"; then :
11799 ac_compiler_gnu=yes
11800 else
11801 ac_compiler_gnu=no
11803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11808 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11809 if test $ac_compiler_gnu = yes; then
11810 GCC=yes
11811 else
11812 GCC=
11814 ac_test_CFLAGS=${CFLAGS+set}
11815 ac_save_CFLAGS=$CFLAGS
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11817 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11818 if ${ac_cv_prog_cc_g+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 ac_save_c_werror_flag=$ac_c_werror_flag
11822 ac_c_werror_flag=yes
11823 ac_cv_prog_cc_g=no
11824 CFLAGS="-g"
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11829 main ()
11833 return 0;
11835 _ACEOF
11836 if ac_fn_c_try_compile "$LINENO"; then :
11837 ac_cv_prog_cc_g=yes
11838 else
11839 CFLAGS=""
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11844 main ()
11848 return 0;
11850 _ACEOF
11851 if ac_fn_c_try_compile "$LINENO"; then :
11853 else
11854 ac_c_werror_flag=$ac_save_c_werror_flag
11855 CFLAGS="-g"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11860 main ()
11864 return 0;
11866 _ACEOF
11867 if ac_fn_c_try_compile "$LINENO"; then :
11868 ac_cv_prog_cc_g=yes
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 ac_c_werror_flag=$ac_save_c_werror_flag
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11878 $as_echo "$ac_cv_prog_cc_g" >&6; }
11879 if test "$ac_test_CFLAGS" = set; then
11880 CFLAGS=$ac_save_CFLAGS
11881 elif test $ac_cv_prog_cc_g = yes; then
11882 if test "$GCC" = yes; then
11883 CFLAGS="-g -O2"
11884 else
11885 CFLAGS="-g"
11887 else
11888 if test "$GCC" = yes; then
11889 CFLAGS="-O2"
11890 else
11891 CFLAGS=
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11895 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11896 if ${ac_cv_prog_cc_c89+:} false; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 ac_cv_prog_cc_c89=no
11900 ac_save_CC=$CC
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903 #include <stdarg.h>
11904 #include <stdio.h>
11905 struct stat;
11906 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11907 struct buf { int x; };
11908 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11909 static char *e (p, i)
11910 char **p;
11911 int i;
11913 return p[i];
11915 static char *f (char * (*g) (char **, int), char **p, ...)
11917 char *s;
11918 va_list v;
11919 va_start (v,p);
11920 s = g (p, va_arg (v,int));
11921 va_end (v);
11922 return s;
11925 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11926 function prototypes and stuff, but not '\xHH' hex character constants.
11927 These don't provoke an error unfortunately, instead are silently treated
11928 as 'x'. The following induces an error, until -std is added to get
11929 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11930 array size at least. It's necessary to write '\x00'==0 to get something
11931 that's true only with -std. */
11932 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11934 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11935 inside strings and character constants. */
11936 #define FOO(x) 'x'
11937 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11939 int test (int i, double x);
11940 struct s1 {int (*f) (int a);};
11941 struct s2 {int (*f) (double a);};
11942 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11943 int argc;
11944 char **argv;
11946 main ()
11948 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11950 return 0;
11952 _ACEOF
11953 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11954 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11956 CC="$ac_save_CC $ac_arg"
11957 if ac_fn_c_try_compile "$LINENO"; then :
11958 ac_cv_prog_cc_c89=$ac_arg
11960 rm -f core conftest.err conftest.$ac_objext
11961 test "x$ac_cv_prog_cc_c89" != "xno" && break
11962 done
11963 rm -f conftest.$ac_ext
11964 CC=$ac_save_CC
11967 # AC_CACHE_VAL
11968 case "x$ac_cv_prog_cc_c89" in
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11971 $as_echo "none needed" >&6; } ;;
11972 xno)
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11974 $as_echo "unsupported" >&6; } ;;
11976 CC="$CC $ac_cv_prog_cc_c89"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11978 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11979 esac
11980 if test "x$ac_cv_prog_cc_c89" != xno; then :
11984 ac_ext=c
11985 ac_cpp='$CPP $CPPFLAGS'
11986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11990 ac_ext=c
11991 ac_cpp='$CPP $CPPFLAGS'
11992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11996 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11997 if ${am_cv_prog_cc_c_o+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12004 main ()
12008 return 0;
12010 _ACEOF
12011 # Make sure it works both with $CC and with simple cc.
12012 # Following AC_PROG_CC_C_O, we do the test twice because some
12013 # compilers refuse to overwrite an existing .o file with -o,
12014 # though they will create one.
12015 am_cv_prog_cc_c_o=yes
12016 for am_i in 1 2; do
12017 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12018 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } \
12022 && test -f conftest2.$ac_objext; then
12023 : OK
12024 else
12025 am_cv_prog_cc_c_o=no
12026 break
12028 done
12029 rm -f core conftest*
12030 unset am_i
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12033 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12034 if test "$am_cv_prog_cc_c_o" != yes; then
12035 # Losing compiler, so override with the script.
12036 # FIXME: It is wrong to rewrite CC.
12037 # But if we don't then we get into trouble of one sort or another.
12038 # A longer-term fix would be to have automake use am__CC in this case,
12039 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12040 CC="$am_aux_dir/compile $CC"
12042 ac_ext=c
12043 ac_cpp='$CPP $CPPFLAGS'
12044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12049 depcc="$CC" am_compiler_list=
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12052 $as_echo_n "checking dependency style of $depcc... " >&6; }
12053 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12057 # We make a subdir and do the tests there. Otherwise we can end up
12058 # making bogus files that we don't know about and never remove. For
12059 # instance it was reported that on HP-UX the gcc test will end up
12060 # making a dummy file named 'D' -- because '-MD' means "put the output
12061 # in D".
12062 rm -rf conftest.dir
12063 mkdir conftest.dir
12064 # Copy depcomp to subdir because otherwise we won't find it if we're
12065 # using a relative directory.
12066 cp "$am_depcomp" conftest.dir
12067 cd conftest.dir
12068 # We will build objects and dependencies in a subdirectory because
12069 # it helps to detect inapplicable dependency modes. For instance
12070 # both Tru64's cc and ICC support -MD to output dependencies as a
12071 # side effect of compilation, but ICC will put the dependencies in
12072 # the current directory while Tru64 will put them in the object
12073 # directory.
12074 mkdir sub
12076 am_cv_CC_dependencies_compiler_type=none
12077 if test "$am_compiler_list" = ""; then
12078 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12080 am__universal=false
12081 case " $depcc " in #(
12082 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12083 esac
12085 for depmode in $am_compiler_list; do
12086 # Setup a source with many dependencies, because some compilers
12087 # like to wrap large dependency lists on column 80 (with \), and
12088 # we should not choose a depcomp mode which is confused by this.
12090 # We need to recreate these files for each test, as the compiler may
12091 # overwrite some of them when testing with obscure command lines.
12092 # This happens at least with the AIX C compiler.
12093 : > sub/conftest.c
12094 for i in 1 2 3 4 5 6; do
12095 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12096 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12097 # Solaris 10 /bin/sh.
12098 echo '/* dummy */' > sub/conftst$i.h
12099 done
12100 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12102 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12103 # mode. It turns out that the SunPro C++ compiler does not properly
12104 # handle '-M -o', and we need to detect this. Also, some Intel
12105 # versions had trouble with output in subdirs.
12106 am__obj=sub/conftest.${OBJEXT-o}
12107 am__minus_obj="-o $am__obj"
12108 case $depmode in
12109 gcc)
12110 # This depmode causes a compiler race in universal mode.
12111 test "$am__universal" = false || continue
12113 nosideeffect)
12114 # After this tag, mechanisms are not by side-effect, so they'll
12115 # only be used when explicitly requested.
12116 if test "x$enable_dependency_tracking" = xyes; then
12117 continue
12118 else
12119 break
12122 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12123 # This compiler won't grok '-c -o', but also, the minuso test has
12124 # not run yet. These depmodes are late enough in the game, and
12125 # so weak that their functioning should not be impacted.
12126 am__obj=conftest.${OBJEXT-o}
12127 am__minus_obj=
12129 none) break ;;
12130 esac
12131 if depmode=$depmode \
12132 source=sub/conftest.c object=$am__obj \
12133 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12134 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12135 >/dev/null 2>conftest.err &&
12136 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12137 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12138 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12139 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12140 # icc doesn't choke on unknown options, it will just issue warnings
12141 # or remarks (even with -Werror). So we grep stderr for any message
12142 # that says an option was ignored or not supported.
12143 # When given -MP, icc 7.0 and 7.1 complain thusly:
12144 # icc: Command line warning: ignoring option '-M'; no argument required
12145 # The diagnosis changed in icc 8.0:
12146 # icc: Command line remark: option '-MP' not supported
12147 if (grep 'ignoring option' conftest.err ||
12148 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12149 am_cv_CC_dependencies_compiler_type=$depmode
12150 break
12153 done
12155 cd ..
12156 rm -rf conftest.dir
12157 else
12158 am_cv_CC_dependencies_compiler_type=none
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12163 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12164 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12167 test "x$enable_dependency_tracking" != xno \
12168 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12169 am__fastdepCC_TRUE=
12170 am__fastdepCC_FALSE='#'
12171 else
12172 am__fastdepCC_TRUE='#'
12173 am__fastdepCC_FALSE=
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12180 $as_echo_n "checking for X... " >&6; }
12183 # Check whether --with-x was given.
12184 if test "${with_x+set}" = set; then :
12185 withval=$with_x;
12188 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12189 if test "x$with_x" = xno; then
12190 # The user explicitly disabled X.
12191 have_x=disabled
12192 else
12193 case $x_includes,$x_libraries in #(
12194 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12195 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 # One or both of the vars are not set, and there is no cached value.
12199 ac_x_includes=no ac_x_libraries=no
12200 rm -f -r conftest.dir
12201 if mkdir conftest.dir; then
12202 cd conftest.dir
12203 cat >Imakefile <<'_ACEOF'
12204 incroot:
12205 @echo incroot='${INCROOT}'
12206 usrlibdir:
12207 @echo usrlibdir='${USRLIBDIR}'
12208 libdir:
12209 @echo libdir='${LIBDIR}'
12210 _ACEOF
12211 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12212 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12213 for ac_var in incroot usrlibdir libdir; do
12214 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12215 done
12216 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12217 for ac_extension in a so sl dylib la dll; do
12218 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12219 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12220 ac_im_usrlibdir=$ac_im_libdir; break
12222 done
12223 # Screen out bogus values from the imake configuration. They are
12224 # bogus both because they are the default anyway, and because
12225 # using them would break gcc on systems where it needs fixed includes.
12226 case $ac_im_incroot in
12227 /usr/include) ac_x_includes= ;;
12228 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12229 esac
12230 case $ac_im_usrlibdir in
12231 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12232 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12233 esac
12235 cd ..
12236 rm -f -r conftest.dir
12239 # Standard set of common directories for X headers.
12240 # Check X11 before X11Rn because it is often a symlink to the current release.
12241 ac_x_header_dirs='
12242 /usr/X11/include
12243 /usr/X11R7/include
12244 /usr/X11R6/include
12245 /usr/X11R5/include
12246 /usr/X11R4/include
12248 /usr/include/X11
12249 /usr/include/X11R7
12250 /usr/include/X11R6
12251 /usr/include/X11R5
12252 /usr/include/X11R4
12254 /usr/local/X11/include
12255 /usr/local/X11R7/include
12256 /usr/local/X11R6/include
12257 /usr/local/X11R5/include
12258 /usr/local/X11R4/include
12260 /usr/local/include/X11
12261 /usr/local/include/X11R7
12262 /usr/local/include/X11R6
12263 /usr/local/include/X11R5
12264 /usr/local/include/X11R4
12266 /usr/X386/include
12267 /usr/x386/include
12268 /usr/XFree86/include/X11
12270 /usr/include
12271 /usr/local/include
12272 /usr/unsupported/include
12273 /usr/athena/include
12274 /usr/local/x11r5/include
12275 /usr/lpp/Xamples/include
12277 /usr/openwin/include
12278 /usr/openwin/share/include'
12280 if test "$ac_x_includes" = no; then
12281 # Guess where to find include files, by looking for Xlib.h.
12282 # First, try using that file with no special directory specified.
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12285 #include <X11/Xlib.h>
12286 _ACEOF
12287 if ac_fn_c_try_cpp "$LINENO"; then :
12288 # We can compile using X headers with no special include directory.
12289 ac_x_includes=
12290 else
12291 for ac_dir in $ac_x_header_dirs; do
12292 if test -r "$ac_dir/X11/Xlib.h"; then
12293 ac_x_includes=$ac_dir
12294 break
12296 done
12298 rm -f conftest.err conftest.i conftest.$ac_ext
12299 fi # $ac_x_includes = no
12301 if test "$ac_x_libraries" = no; then
12302 # Check for the libraries.
12303 # See if we find them without any special options.
12304 # Don't add to $LIBS permanently.
12305 ac_save_LIBS=$LIBS
12306 LIBS="-lX11 $LIBS"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309 #include <X11/Xlib.h>
12311 main ()
12313 XrmInitialize ()
12315 return 0;
12317 _ACEOF
12318 if ac_fn_c_try_link "$LINENO"; then :
12319 LIBS=$ac_save_LIBS
12320 # We can link X programs with no special library path.
12321 ac_x_libraries=
12322 else
12323 LIBS=$ac_save_LIBS
12324 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12326 # Don't even attempt the hair of trying to link an X program!
12327 for ac_extension in a so sl dylib la dll; do
12328 if test -r "$ac_dir/libX11.$ac_extension"; then
12329 ac_x_libraries=$ac_dir
12330 break 2
12332 done
12333 done
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337 fi # $ac_x_libraries = no
12339 case $ac_x_includes,$ac_x_libraries in #(
12340 no,* | *,no | *\'*)
12341 # Didn't find X, or a directory has "'" in its name.
12342 ac_cv_have_x="have_x=no";; #(
12344 # Record where we found X for the cache.
12345 ac_cv_have_x="have_x=yes\
12346 ac_x_includes='$ac_x_includes'\
12347 ac_x_libraries='$ac_x_libraries'"
12348 esac
12350 ;; #(
12351 *) have_x=yes;;
12352 esac
12353 eval "$ac_cv_have_x"
12354 fi # $with_x != no
12356 if test "$have_x" != yes; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12358 $as_echo "$have_x" >&6; }
12359 no_x=yes
12360 else
12361 # If each of the values was on the command line, it overrides each guess.
12362 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12363 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12364 # Update the cache value to reflect the command line values.
12365 ac_cv_have_x="have_x=yes\
12366 ac_x_includes='$x_includes'\
12367 ac_x_libraries='$x_libraries'"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12369 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12372 if test "$no_x" = yes; then
12373 # Not all programs may use this symbol, but it does not hurt to define it.
12375 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12377 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12378 else
12379 if test -n "$x_includes"; then
12380 X_CFLAGS="$X_CFLAGS -I$x_includes"
12383 # It would also be nice to do this for all -L options, not just this one.
12384 if test -n "$x_libraries"; then
12385 X_LIBS="$X_LIBS -L$x_libraries"
12386 # For Solaris; some versions of Sun CC require a space after -R and
12387 # others require no space. Words are not sufficient . . . .
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12389 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
12390 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12391 ac_xsave_c_werror_flag=$ac_c_werror_flag
12392 ac_c_werror_flag=yes
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12397 main ()
12401 return 0;
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"; then :
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407 X_LIBS="$X_LIBS -R$x_libraries"
12408 else
12409 LIBS="$ac_xsave_LIBS -R $x_libraries"
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12414 main ()
12418 return 0;
12420 _ACEOF
12421 if ac_fn_c_try_link "$LINENO"; then :
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12423 $as_echo "yes" >&6; }
12424 X_LIBS="$X_LIBS -R $x_libraries"
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12427 $as_echo "neither works" >&6; }
12429 rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 ac_c_werror_flag=$ac_xsave_c_werror_flag
12435 LIBS=$ac_xsave_LIBS
12438 # Check for system-dependent libraries X programs must link with.
12439 # Do this before checking for the system-independent R6 libraries
12440 # (-lICE), since we may need -lsocket or whatever for X linking.
12442 if test "$ISC" = yes; then
12443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12444 else
12445 # Martyn Johnson says this is needed for Ultrix, if the X
12446 # libraries were built with DECnet support. And Karl Berry says
12447 # the Alpha needs dnet_stub (dnet does not exist).
12448 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12452 /* Override any GCC internal prototype to avoid an error.
12453 Use char because int might match the return type of a GCC
12454 builtin and then its argument prototype would still apply. */
12455 #ifdef __cplusplus
12456 extern "C"
12457 #endif
12458 char XOpenDisplay ();
12460 main ()
12462 return XOpenDisplay ();
12464 return 0;
12466 _ACEOF
12467 if ac_fn_c_try_link "$LINENO"; then :
12469 else
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12471 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12472 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-ldnet $LIBS"
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483 #ifdef __cplusplus
12484 extern "C"
12485 #endif
12486 char dnet_ntoa ();
12488 main ()
12490 return dnet_ntoa ();
12492 return 0;
12494 _ACEOF
12495 if ac_fn_c_try_link "$LINENO"; then :
12496 ac_cv_lib_dnet_dnet_ntoa=yes
12497 else
12498 ac_cv_lib_dnet_dnet_ntoa=no
12500 rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12505 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12506 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
12507 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12510 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12512 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12513 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-ldnet_stub $LIBS"
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12521 /* Override any GCC internal prototype to avoid an error.
12522 Use char because int might match the return type of a GCC
12523 builtin and then its argument prototype would still apply. */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 char dnet_ntoa ();
12529 main ()
12531 return dnet_ntoa ();
12533 return 0;
12535 _ACEOF
12536 if ac_fn_c_try_link "$LINENO"; then :
12537 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12538 else
12539 ac_cv_lib_dnet_stub_dnet_ntoa=no
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12546 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12547 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
12548 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12553 rm -f core conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext conftest.$ac_ext
12555 LIBS="$ac_xsave_LIBS"
12557 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12558 # to get the SysV transport functions.
12559 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12560 # needs -lnsl.
12561 # The nsl library prevents programs from opening the X display
12562 # on Irix 5.2, according to T.E. Dickey.
12563 # The functions gethostbyname, getservbyname, and inet_addr are
12564 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12565 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12566 if test "x$ac_cv_func_gethostbyname" = xyes; then :
12570 if test $ac_cv_func_gethostbyname = no; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12572 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12573 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_check_lib_save_LIBS=$LIBS
12577 LIBS="-lnsl $LIBS"
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584 #ifdef __cplusplus
12585 extern "C"
12586 #endif
12587 char gethostbyname ();
12589 main ()
12591 return gethostbyname ();
12593 return 0;
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597 ac_cv_lib_nsl_gethostbyname=yes
12598 else
12599 ac_cv_lib_nsl_gethostbyname=no
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12606 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12607 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12608 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12611 if test $ac_cv_lib_nsl_gethostbyname = no; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12613 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12614 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-lbsd $LIBS"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 char gethostbyname ();
12630 main ()
12632 return gethostbyname ();
12634 return 0;
12636 _ACEOF
12637 if ac_fn_c_try_link "$LINENO"; then :
12638 ac_cv_lib_bsd_gethostbyname=yes
12639 else
12640 ac_cv_lib_bsd_gethostbyname=no
12642 rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12647 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12648 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
12649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12655 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12656 # socket/setsockopt and other routines are undefined under SCO ODT
12657 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12658 # on later versions), says Simon Leinen: it contains gethostby*
12659 # variants that don't use the name server (or something). -lsocket
12660 # must be given before -lnsl if both are needed. We assume that
12661 # if connect needs -lnsl, so does gethostbyname.
12662 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12663 if test "x$ac_cv_func_connect" = xyes; then :
12667 if test $ac_cv_func_connect = no; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12669 $as_echo_n "checking for connect in -lsocket... " >&6; }
12670 if ${ac_cv_lib_socket_connect+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 ac_check_lib_save_LIBS=$LIBS
12674 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12678 /* Override any GCC internal prototype to avoid an error.
12679 Use char because int might match the return type of a GCC
12680 builtin and then its argument prototype would still apply. */
12681 #ifdef __cplusplus
12682 extern "C"
12683 #endif
12684 char connect ();
12686 main ()
12688 return connect ();
12690 return 0;
12692 _ACEOF
12693 if ac_fn_c_try_link "$LINENO"; then :
12694 ac_cv_lib_socket_connect=yes
12695 else
12696 ac_cv_lib_socket_connect=no
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700 LIBS=$ac_check_lib_save_LIBS
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12703 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12704 if test "x$ac_cv_lib_socket_connect" = xyes; then :
12705 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12710 # Guillermo Gomez says -lposix is necessary on A/UX.
12711 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12712 if test "x$ac_cv_func_remove" = xyes; then :
12716 if test $ac_cv_func_remove = no; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12718 $as_echo_n "checking for remove in -lposix... " >&6; }
12719 if ${ac_cv_lib_posix_remove+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lposix $LIBS"
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12727 /* Override any GCC internal prototype to avoid an error.
12728 Use char because int might match the return type of a GCC
12729 builtin and then its argument prototype would still apply. */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 char remove ();
12735 main ()
12737 return remove ();
12739 return 0;
12741 _ACEOF
12742 if ac_fn_c_try_link "$LINENO"; then :
12743 ac_cv_lib_posix_remove=yes
12744 else
12745 ac_cv_lib_posix_remove=no
12747 rm -f core conftest.err conftest.$ac_objext \
12748 conftest$ac_exeext conftest.$ac_ext
12749 LIBS=$ac_check_lib_save_LIBS
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12752 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12753 if test "x$ac_cv_lib_posix_remove" = xyes; then :
12754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12759 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12760 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12761 if test "x$ac_cv_func_shmat" = xyes; then :
12765 if test $ac_cv_func_shmat = no; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12767 $as_echo_n "checking for shmat in -lipc... " >&6; }
12768 if ${ac_cv_lib_ipc_shmat+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 ac_check_lib_save_LIBS=$LIBS
12772 LIBS="-lipc $LIBS"
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char shmat ();
12784 main ()
12786 return shmat ();
12788 return 0;
12790 _ACEOF
12791 if ac_fn_c_try_link "$LINENO"; then :
12792 ac_cv_lib_ipc_shmat=yes
12793 else
12794 ac_cv_lib_ipc_shmat=no
12796 rm -f core conftest.err conftest.$ac_objext \
12797 conftest$ac_exeext conftest.$ac_ext
12798 LIBS=$ac_check_lib_save_LIBS
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12801 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12802 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
12803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12809 # Check for libraries that X11R6 Xt/Xaw programs need.
12810 ac_save_LDFLAGS=$LDFLAGS
12811 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12812 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12813 # check for ICE first), but we must link in the order -lSM -lICE or
12814 # we get undefined symbols. So assume we have SM if we have ICE.
12815 # These have to be linked with before -lX11, unlike the other
12816 # libraries we check for below, so use a different variable.
12817 # John Interrante, Karl Berry
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12819 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12820 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 ac_check_lib_save_LIBS=$LIBS
12824 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 char IceConnectionNumber ();
12836 main ()
12838 return IceConnectionNumber ();
12840 return 0;
12842 _ACEOF
12843 if ac_fn_c_try_link "$LINENO"; then :
12844 ac_cv_lib_ICE_IceConnectionNumber=yes
12845 else
12846 ac_cv_lib_ICE_IceConnectionNumber=no
12848 rm -f core conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12853 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12854 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
12855 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12858 LDFLAGS=$ac_save_LDFLAGS
12870 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12871 if test -n "$ac_tool_prefix"; then
12872 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12873 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 case $PKG_CONFIG in
12880 [\\/]* | ?:[\\/]*)
12881 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 for as_dir in $PATH
12887 IFS=$as_save_IFS
12888 test -z "$as_dir" && as_dir=.
12889 for ac_exec_ext in '' $ac_executable_extensions; do
12890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12893 break 2
12895 done
12896 done
12897 IFS=$as_save_IFS
12900 esac
12902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12903 if test -n "$PKG_CONFIG"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12905 $as_echo "$PKG_CONFIG" >&6; }
12906 else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12913 if test -z "$ac_cv_path_PKG_CONFIG"; then
12914 ac_pt_PKG_CONFIG=$PKG_CONFIG
12915 # Extract the first word of "pkg-config", so it can be a program name with args.
12916 set dummy pkg-config; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 case $ac_pt_PKG_CONFIG in
12923 [\\/]* | ?:[\\/]*)
12924 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $PATH
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12934 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 break 2
12938 done
12939 done
12940 IFS=$as_save_IFS
12943 esac
12945 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12946 if test -n "$ac_pt_PKG_CONFIG"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12948 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12954 if test "x$ac_pt_PKG_CONFIG" = x; then
12955 PKG_CONFIG=""
12956 else
12957 case $cross_compiling:$ac_tool_warned in
12958 yes:)
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12961 ac_tool_warned=yes ;;
12962 esac
12963 PKG_CONFIG=$ac_pt_PKG_CONFIG
12965 else
12966 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12970 if test -n "$PKG_CONFIG"; then
12971 _pkg_min_version=0.9.0
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12973 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12974 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976 $as_echo "yes" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12980 PKG_CONFIG=""
12984 pkg_failed=no
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
12986 $as_echo_n "checking for X11... " >&6; }
12988 if test -n "$X11_CFLAGS"; then
12989 pkg_cv_X11_CFLAGS="$X11_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 \"x11\""; } >&5
12993 ($PKG_CONFIG --exists --print-errors "x11") 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_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
12998 test "x$?" != "x0" && pkg_failed=yes
12999 else
13000 pkg_failed=yes
13002 else
13003 pkg_failed=untried
13005 if test -n "$X11_LIBS"; then
13006 pkg_cv_X11_LIBS="$X11_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 \"x11\""; } >&5
13010 ($PKG_CONFIG --exists --print-errors "x11") 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_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
13015 test "x$?" != "x0" && pkg_failed=yes
13016 else
13017 pkg_failed=yes
13019 else
13020 pkg_failed=untried
13025 if test $pkg_failed = yes; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13030 _pkg_short_errors_supported=yes
13031 else
13032 _pkg_short_errors_supported=no
13034 if test $_pkg_short_errors_supported = yes; then
13035 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
13036 else
13037 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
13039 # Put the nasty error message in config.log where it belongs
13040 echo "$X11_PKG_ERRORS" >&5
13042 as_fn_error $? "Package requirements (x11) were not met:
13044 $X11_PKG_ERRORS
13046 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13047 installed software in a non-standard prefix.
13049 Alternatively, you may set the environment variables X11_CFLAGS
13050 and X11_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.
13061 Alternatively, you may set the environment variables X11_CFLAGS
13062 and X11_LIBS to avoid the need to call pkg-config.
13063 See the pkg-config man page for more details.
13065 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13066 See \`config.log' for more details" "$LINENO" 5; }
13067 else
13068 X11_CFLAGS=$pkg_cv_X11_CFLAGS
13069 X11_LIBS=$pkg_cv_X11_LIBS
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13071 $as_echo "yes" >&6; }
13075 pkg_failed=no
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xext" >&5
13077 $as_echo_n "checking for Xext... " >&6; }
13079 if test -n "$Xext_CFLAGS"; then
13080 pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
13081 elif test -n "$PKG_CONFIG"; then
13082 if test -n "$PKG_CONFIG" && \
13083 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
13084 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
13085 ac_status=$?
13086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13087 test $ac_status = 0; }; then
13088 pkg_cv_Xext_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
13089 test "x$?" != "x0" && pkg_failed=yes
13090 else
13091 pkg_failed=yes
13093 else
13094 pkg_failed=untried
13096 if test -n "$Xext_LIBS"; then
13097 pkg_cv_Xext_LIBS="$Xext_LIBS"
13098 elif test -n "$PKG_CONFIG"; then
13099 if test -n "$PKG_CONFIG" && \
13100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
13101 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
13102 ac_status=$?
13103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13104 test $ac_status = 0; }; then
13105 pkg_cv_Xext_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
13106 test "x$?" != "x0" && pkg_failed=yes
13107 else
13108 pkg_failed=yes
13110 else
13111 pkg_failed=untried
13116 if test $pkg_failed = yes; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13121 _pkg_short_errors_supported=yes
13122 else
13123 _pkg_short_errors_supported=no
13125 if test $_pkg_short_errors_supported = yes; then
13126 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
13127 else
13128 Xext_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
13130 # Put the nasty error message in config.log where it belongs
13131 echo "$Xext_PKG_ERRORS" >&5
13133 as_fn_error $? "Package requirements (xext) were not met:
13135 $Xext_PKG_ERRORS
13137 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13138 installed software in a non-standard prefix.
13140 Alternatively, you may set the environment variables Xext_CFLAGS
13141 and Xext_LIBS to avoid the need to call pkg-config.
13142 See the pkg-config man page for more details." "$LINENO" 5
13143 elif test $pkg_failed = untried; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145 $as_echo "no" >&6; }
13146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13148 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13149 is in your PATH or set the PKG_CONFIG environment variable to the full
13150 path to pkg-config.
13152 Alternatively, you may set the environment variables Xext_CFLAGS
13153 and Xext_LIBS to avoid the need to call pkg-config.
13154 See the pkg-config man page for more details.
13156 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13157 See \`config.log' for more details" "$LINENO" 5; }
13158 else
13159 Xext_CFLAGS=$pkg_cv_Xext_CFLAGS
13160 Xext_LIBS=$pkg_cv_Xext_LIBS
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13162 $as_echo "yes" >&6; }
13166 pkg_failed=no
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xpm" >&5
13168 $as_echo_n "checking for xpm... " >&6; }
13170 if test -n "$xpm_CFLAGS"; then
13171 pkg_cv_xpm_CFLAGS="$xpm_CFLAGS"
13172 elif test -n "$PKG_CONFIG"; then
13173 if test -n "$PKG_CONFIG" && \
13174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
13175 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
13176 ac_status=$?
13177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13178 test $ac_status = 0; }; then
13179 pkg_cv_xpm_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
13180 test "x$?" != "x0" && pkg_failed=yes
13181 else
13182 pkg_failed=yes
13184 else
13185 pkg_failed=untried
13187 if test -n "$xpm_LIBS"; then
13188 pkg_cv_xpm_LIBS="$xpm_LIBS"
13189 elif test -n "$PKG_CONFIG"; then
13190 if test -n "$PKG_CONFIG" && \
13191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
13192 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
13193 ac_status=$?
13194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13195 test $ac_status = 0; }; then
13196 pkg_cv_xpm_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
13197 test "x$?" != "x0" && pkg_failed=yes
13198 else
13199 pkg_failed=yes
13201 else
13202 pkg_failed=untried
13207 if test $pkg_failed = yes; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13211 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13212 _pkg_short_errors_supported=yes
13213 else
13214 _pkg_short_errors_supported=no
13216 if test $_pkg_short_errors_supported = yes; then
13217 xpm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
13218 else
13219 xpm_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
13221 # Put the nasty error message in config.log where it belongs
13222 echo "$xpm_PKG_ERRORS" >&5
13224 as_fn_error $? "Package requirements (xpm) were not met:
13226 $xpm_PKG_ERRORS
13228 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13229 installed software in a non-standard prefix.
13231 Alternatively, you may set the environment variables xpm_CFLAGS
13232 and xpm_LIBS to avoid the need to call pkg-config.
13233 See the pkg-config man page for more details." "$LINENO" 5
13234 elif test $pkg_failed = untried; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13239 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13240 is in your PATH or set the PKG_CONFIG environment variable to the full
13241 path to pkg-config.
13243 Alternatively, you may set the environment variables xpm_CFLAGS
13244 and xpm_LIBS to avoid the need to call pkg-config.
13245 See the pkg-config man page for more details.
13247 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13248 See \`config.log' for more details" "$LINENO" 5; }
13249 else
13250 xpm_CFLAGS=$pkg_cv_xpm_CFLAGS
13251 xpm_LIBS=$pkg_cv_xpm_LIBS
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13253 $as_echo "yes" >&6; }
13260 # Check whether --enable-debug was given.
13261 if test "${enable_debug+set}" = set; then :
13262 enableval=$enable_debug;
13263 else
13264 enable_debug=no
13267 if test "$enable_debug" = yes; then
13268 DFLAGS="-Wall -g -ansi -pedantic"
13286 # Extract the first word of "fc-cache", so it can be a program name with args.
13287 set dummy fc-cache; ac_word=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if ${ac_cv_path_FCCACHE+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 case $FCCACHE in
13294 [\\/]* | ?:[\\/]*)
13295 ac_cv_path_FCCACHE="$FCCACHE" # Let the user override the test with a path.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_path_FCCACHE="$as_dir/$ac_word$ac_exec_ext"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13309 done
13310 done
13311 IFS=$as_save_IFS
13314 esac
13316 FCCACHE=$ac_cv_path_FCCACHE
13317 if test -n "$FCCACHE"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCCACHE" >&5
13319 $as_echo "$FCCACHE" >&6; }
13320 else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13326 FCCACHE_WARN='echo "** Warning: fonts.cache not built" ; echo "** Generate this file manually on host system using fc-cache"'
13327 if test x"$FCCACHE" = x || test x"$cross_compiling" != x"no" ; then
13328 RUN_FCCACHE="${FCCACHE_WARN}"
13329 else
13330 RUN_FCCACHE='@(if test -z "$(DESTDIR)"; then echo $(FCCACHE) $(fontdir); $(FCCACHE) $(fontdir); else'
13331 RUN_FCCACHE="${RUN_FCCACHE} ${FCCACHE_WARN} ; fi)"
13336 if test x"$cross_compiling" != x"no" ; then
13337 # Extract the first word of "mkfontdir", so it can be a program name with args.
13338 set dummy mkfontdir; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if ${ac_cv_path_MKFONTDIR+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 case $MKFONTDIR in
13345 [\\/]* | ?:[\\/]*)
13346 ac_cv_path_MKFONTDIR="$MKFONTDIR" # Let the user override the test with a path.
13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350 for as_dir in $PATH
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356 ac_cv_path_MKFONTDIR="$as_dir/$ac_word$ac_exec_ext"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13360 done
13361 done
13362 IFS=$as_save_IFS
13364 test -z "$ac_cv_path_MKFONTDIR" && ac_cv_path_MKFONTDIR=""""
13366 esac
13368 MKFONTDIR=$ac_cv_path_MKFONTDIR
13369 if test -n "$MKFONTDIR"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKFONTDIR" >&5
13371 $as_echo "$MKFONTDIR" >&6; }
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13378 MKFONTDIR_WARN='echo "** Warning: mkfontdir not run" ; echo "** Run mkfontdir manually on host system"'
13380 if test x"$MKFONTDIR" = x; then
13381 MKFONTDIR="${MKFONTDIR_WARN} ; echo '** mkfontdir'"
13383 else
13385 # Extract the first word of "mkfontdir", so it can be a program name with args.
13386 set dummy mkfontdir; ac_word=$2
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13388 $as_echo_n "checking for $ac_word... " >&6; }
13389 if ${ac_cv_path_MKFONTDIR+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 case $MKFONTDIR in
13393 [\\/]* | ?:[\\/]*)
13394 ac_cv_path_MKFONTDIR="$MKFONTDIR" # Let the user override the test with a path.
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13400 IFS=$as_save_IFS
13401 test -z "$as_dir" && as_dir=.
13402 for ac_exec_ext in '' $ac_executable_extensions; do
13403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13404 ac_cv_path_MKFONTDIR="$as_dir/$ac_word$ac_exec_ext"
13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 break 2
13408 done
13409 done
13410 IFS=$as_save_IFS
13413 esac
13415 MKFONTDIR=$ac_cv_path_MKFONTDIR
13416 if test -n "$MKFONTDIR"; then
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKFONTDIR" >&5
13418 $as_echo "$MKFONTDIR" >&6; }
13419 else
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 $as_echo "no" >&6; }
13425 if test x"$MKFONTDIR" = x; then
13426 as_fn_error $? "mkfontdir is required to build $PACKAGE_NAME." "$LINENO" 5
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
13438 $as_echo_n "checking for root directory for font files... " >&6; }
13440 # Check whether --with-fontrootdir was given.
13441 if test "${with_fontrootdir+set}" = set; then :
13442 withval=$with_fontrootdir; FONTROOTDIR="$withval"
13445 # if --with-fontrootdir not specified...
13446 if test "x${FONTROOTDIR}" = "x"; then
13447 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
13449 # ...and if pkg-config didn't find fontdir in fontutil.pc...
13450 if test "x${FONTROOTDIR}" = "x"; then
13451 FONTROOTDIR="${datadir}/fonts/X11"
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
13455 $as_echo "${FONTROOTDIR}" >&6; }
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
13461 $as_echo_n "checking for directory for misc files... " >&6; }
13463 # Check whether --with-fontdir was given.
13464 if test "${with_fontdir+set}" = set; then :
13465 withval=$with_fontdir; FONTDIR="${withval}"
13466 else
13467 FONTDIR='${FONTROOTDIR}/misc'
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTDIR}" >&5
13472 $as_echo "${FONTDIR}" >&6; }
13475 ac_config_files="$ac_config_files Makefile src/Makefile fonts/Makefile examples/Makefile"
13477 cat >confcache <<\_ACEOF
13478 # This file is a shell script that caches the results of configure
13479 # tests run on this system so they can be shared between configure
13480 # scripts and configure runs, see configure's option --config-cache.
13481 # It is not useful on other systems. If it contains results you don't
13482 # want to keep, you may remove or edit it.
13484 # config.status only pays attention to the cache file if you give it
13485 # the --recheck option to rerun configure.
13487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13489 # following values.
13491 _ACEOF
13493 # The following way of writing the cache mishandles newlines in values,
13494 # but we know of no workaround that is simple, portable, and efficient.
13495 # So, we kill variables containing newlines.
13496 # Ultrix sh set writes to stderr and can't be redirected directly,
13497 # and sets the high bit in the cache file unless we assign to the vars.
13499 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13500 eval ac_val=\$$ac_var
13501 case $ac_val in #(
13502 *${as_nl}*)
13503 case $ac_var in #(
13504 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13505 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13506 esac
13507 case $ac_var in #(
13508 _ | IFS | as_nl) ;; #(
13509 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13510 *) { eval $ac_var=; unset $ac_var;} ;;
13511 esac ;;
13512 esac
13513 done
13515 (set) 2>&1 |
13516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13517 *${as_nl}ac_space=\ *)
13518 # `set' does not quote correctly, so add quotes: double-quote
13519 # substitution turns \\\\ into \\, and sed turns \\ into \.
13520 sed -n \
13521 "s/'/'\\\\''/g;
13522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13523 ;; #(
13525 # `set' quotes correctly as required by POSIX, so do not add quotes.
13526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13528 esac |
13529 sort
13531 sed '
13532 /^ac_cv_env_/b end
13533 t clear
13534 :clear
13535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13536 t end
13537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13538 :end' >>confcache
13539 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13540 if test -w "$cache_file"; then
13541 if test "x$cache_file" != "x/dev/null"; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13543 $as_echo "$as_me: updating cache $cache_file" >&6;}
13544 if test ! -f "$cache_file" || test -h "$cache_file"; then
13545 cat confcache >"$cache_file"
13546 else
13547 case $cache_file in #(
13548 */* | ?:*)
13549 mv -f confcache "$cache_file"$$ &&
13550 mv -f "$cache_file"$$ "$cache_file" ;; #(
13552 mv -f confcache "$cache_file" ;;
13553 esac
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13558 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13561 rm -f confcache
13563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13564 # Let make expand exec_prefix.
13565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13567 # Transform confdefs.h into DEFS.
13568 # Protect against shell expansion while executing Makefile rules.
13569 # Protect against Makefile macro expansion.
13571 # If the first sed substitution is executed (which looks for macros that
13572 # take arguments), then branch to the quote section. Otherwise,
13573 # look for a macro that doesn't take arguments.
13574 ac_script='
13575 :mline
13576 /\\$/{
13578 s,\\\n,,
13579 b mline
13581 t clear
13582 :clear
13583 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13584 t quote
13585 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13586 t quote
13587 b any
13588 :quote
13589 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13590 s/\[/\\&/g
13591 s/\]/\\&/g
13592 s/\$/$$/g
13594 :any
13597 s/^\n//
13598 s/\n/ /g
13602 DEFS=`sed -n "$ac_script" confdefs.h`
13605 ac_libobjs=
13606 ac_ltlibobjs=
13608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13609 # 1. Remove the extension, and $U if already installed.
13610 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13611 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13613 # will be set to the directory where LIBOBJS objects are built.
13614 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13615 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13616 done
13617 LIBOBJS=$ac_libobjs
13619 LTLIBOBJS=$ac_ltlibobjs
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13623 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13624 if test -n "$am_sleep_pid"; then
13625 # Hide warnings about reused PIDs.
13626 wait $am_sleep_pid 2>/dev/null
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13629 $as_echo "done" >&6; }
13630 if test -n "$EXEEXT"; then
13631 am__EXEEXT_TRUE=
13632 am__EXEEXT_FALSE='#'
13633 else
13634 am__EXEEXT_TRUE='#'
13635 am__EXEEXT_FALSE=
13638 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13639 as_fn_error $? "conditional \"AMDEP\" was never defined.
13640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13642 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13643 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13646 if test -z "${COND_FONT_TRUE}" && test -z "${COND_FONT_FALSE}"; then
13647 as_fn_error $? "conditional \"COND_FONT\" was never defined.
13648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13650 if test -z "${COND_EXAMPLES_TRUE}" && test -z "${COND_EXAMPLES_FALSE}"; then
13651 as_fn_error $? "conditional \"COND_EXAMPLES\" was never defined.
13652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13655 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13659 : "${CONFIG_STATUS=./config.status}"
13660 ac_write_fail=0
13661 ac_clean_files_save=$ac_clean_files
13662 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13664 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13665 as_write_fail=0
13666 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13667 #! $SHELL
13668 # Generated by $as_me.
13669 # Run this file to recreate the current configuration.
13670 # Compiler output produced by configure, useful for debugging
13671 # configure, is in config.log if it exists.
13673 debug=false
13674 ac_cs_recheck=false
13675 ac_cs_silent=false
13677 SHELL=\${CONFIG_SHELL-$SHELL}
13678 export SHELL
13679 _ASEOF
13680 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13681 ## -------------------- ##
13682 ## M4sh Initialization. ##
13683 ## -------------------- ##
13685 # Be more Bourne compatible
13686 DUALCASE=1; export DUALCASE # for MKS sh
13687 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13688 emulate sh
13689 NULLCMD=:
13690 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13691 # is contrary to our usage. Disable this feature.
13692 alias -g '${1+"$@"}'='"$@"'
13693 setopt NO_GLOB_SUBST
13694 else
13695 case `(set -o) 2>/dev/null` in #(
13696 *posix*) :
13697 set -o posix ;; #(
13698 *) :
13700 esac
13704 as_nl='
13706 export as_nl
13707 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13708 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13709 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13710 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13711 # Prefer a ksh shell builtin over an external printf program on Solaris,
13712 # but without wasting forks for bash or zsh.
13713 if test -z "$BASH_VERSION$ZSH_VERSION" \
13714 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13715 as_echo='print -r --'
13716 as_echo_n='print -rn --'
13717 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13718 as_echo='printf %s\n'
13719 as_echo_n='printf %s'
13720 else
13721 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13722 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13723 as_echo_n='/usr/ucb/echo -n'
13724 else
13725 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13726 as_echo_n_body='eval
13727 arg=$1;
13728 case $arg in #(
13729 *"$as_nl"*)
13730 expr "X$arg" : "X\\(.*\\)$as_nl";
13731 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13732 esac;
13733 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13735 export as_echo_n_body
13736 as_echo_n='sh -c $as_echo_n_body as_echo'
13738 export as_echo_body
13739 as_echo='sh -c $as_echo_body as_echo'
13742 # The user is always right.
13743 if test "${PATH_SEPARATOR+set}" != set; then
13744 PATH_SEPARATOR=:
13745 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13746 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13747 PATH_SEPARATOR=';'
13752 # IFS
13753 # We need space, tab and new line, in precisely that order. Quoting is
13754 # there to prevent editors from complaining about space-tab.
13755 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13756 # splitting by setting IFS to empty value.)
13757 IFS=" "" $as_nl"
13759 # Find who we are. Look in the path if we contain no directory separator.
13760 as_myself=
13761 case $0 in #((
13762 *[\\/]* ) as_myself=$0 ;;
13763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13769 done
13770 IFS=$as_save_IFS
13773 esac
13774 # We did not find ourselves, most probably we were run as `sh COMMAND'
13775 # in which case we are not to be found in the path.
13776 if test "x$as_myself" = x; then
13777 as_myself=$0
13779 if test ! -f "$as_myself"; then
13780 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13781 exit 1
13784 # Unset variables that we do not need and which cause bugs (e.g. in
13785 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13786 # suppresses any "Segmentation fault" message there. '((' could
13787 # trigger a bug in pdksh 5.2.14.
13788 for as_var in BASH_ENV ENV MAIL MAILPATH
13789 do eval test x\${$as_var+set} = xset \
13790 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13791 done
13792 PS1='$ '
13793 PS2='> '
13794 PS4='+ '
13796 # NLS nuisances.
13797 LC_ALL=C
13798 export LC_ALL
13799 LANGUAGE=C
13800 export LANGUAGE
13802 # CDPATH.
13803 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13806 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13807 # ----------------------------------------
13808 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13809 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13810 # script with STATUS, using 1 if that was 0.
13811 as_fn_error ()
13813 as_status=$1; test $as_status -eq 0 && as_status=1
13814 if test "$4"; then
13815 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13816 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13818 $as_echo "$as_me: error: $2" >&2
13819 as_fn_exit $as_status
13820 } # as_fn_error
13823 # as_fn_set_status STATUS
13824 # -----------------------
13825 # Set $? to STATUS, without forking.
13826 as_fn_set_status ()
13828 return $1
13829 } # as_fn_set_status
13831 # as_fn_exit STATUS
13832 # -----------------
13833 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13834 as_fn_exit ()
13836 set +e
13837 as_fn_set_status $1
13838 exit $1
13839 } # as_fn_exit
13841 # as_fn_unset VAR
13842 # ---------------
13843 # Portably unset VAR.
13844 as_fn_unset ()
13846 { eval $1=; unset $1;}
13848 as_unset=as_fn_unset
13849 # as_fn_append VAR VALUE
13850 # ----------------------
13851 # Append the text in VALUE to the end of the definition contained in VAR. Take
13852 # advantage of any shell optimizations that allow amortized linear growth over
13853 # repeated appends, instead of the typical quadratic growth present in naive
13854 # implementations.
13855 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13856 eval 'as_fn_append ()
13858 eval $1+=\$2
13860 else
13861 as_fn_append ()
13863 eval $1=\$$1\$2
13865 fi # as_fn_append
13867 # as_fn_arith ARG...
13868 # ------------------
13869 # Perform arithmetic evaluation on the ARGs, and store the result in the
13870 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13871 # must be portable across $(()) and expr.
13872 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13873 eval 'as_fn_arith ()
13875 as_val=$(( $* ))
13877 else
13878 as_fn_arith ()
13880 as_val=`expr "$@" || test $? -eq 1`
13882 fi # as_fn_arith
13885 if expr a : '\(a\)' >/dev/null 2>&1 &&
13886 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13887 as_expr=expr
13888 else
13889 as_expr=false
13892 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13893 as_basename=basename
13894 else
13895 as_basename=false
13898 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13899 as_dirname=dirname
13900 else
13901 as_dirname=false
13904 as_me=`$as_basename -- "$0" ||
13905 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13906 X"$0" : 'X\(//\)$' \| \
13907 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13908 $as_echo X/"$0" |
13909 sed '/^.*\/\([^/][^/]*\)\/*$/{
13910 s//\1/
13913 /^X\/\(\/\/\)$/{
13914 s//\1/
13917 /^X\/\(\/\).*/{
13918 s//\1/
13921 s/.*/./; q'`
13923 # Avoid depending upon Character Ranges.
13924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13927 as_cr_digits='0123456789'
13928 as_cr_alnum=$as_cr_Letters$as_cr_digits
13930 ECHO_C= ECHO_N= ECHO_T=
13931 case `echo -n x` in #(((((
13932 -n*)
13933 case `echo 'xy\c'` in
13934 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13935 xy) ECHO_C='\c';;
13936 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13937 ECHO_T=' ';;
13938 esac;;
13940 ECHO_N='-n';;
13941 esac
13943 rm -f conf$$ conf$$.exe conf$$.file
13944 if test -d conf$$.dir; then
13945 rm -f conf$$.dir/conf$$.file
13946 else
13947 rm -f conf$$.dir
13948 mkdir conf$$.dir 2>/dev/null
13950 if (echo >conf$$.file) 2>/dev/null; then
13951 if ln -s conf$$.file conf$$ 2>/dev/null; then
13952 as_ln_s='ln -s'
13953 # ... but there are two gotchas:
13954 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13955 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13956 # In both cases, we have to default to `cp -pR'.
13957 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13958 as_ln_s='cp -pR'
13959 elif ln conf$$.file conf$$ 2>/dev/null; then
13960 as_ln_s=ln
13961 else
13962 as_ln_s='cp -pR'
13964 else
13965 as_ln_s='cp -pR'
13967 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13968 rmdir conf$$.dir 2>/dev/null
13971 # as_fn_mkdir_p
13972 # -------------
13973 # Create "$as_dir" as a directory, including parents if necessary.
13974 as_fn_mkdir_p ()
13977 case $as_dir in #(
13978 -*) as_dir=./$as_dir;;
13979 esac
13980 test -d "$as_dir" || eval $as_mkdir_p || {
13981 as_dirs=
13982 while :; do
13983 case $as_dir in #(
13984 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13985 *) as_qdir=$as_dir;;
13986 esac
13987 as_dirs="'$as_qdir' $as_dirs"
13988 as_dir=`$as_dirname -- "$as_dir" ||
13989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13990 X"$as_dir" : 'X\(//\)[^/]' \| \
13991 X"$as_dir" : 'X\(//\)$' \| \
13992 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13993 $as_echo X"$as_dir" |
13994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13995 s//\1/
13998 /^X\(\/\/\)[^/].*/{
13999 s//\1/
14002 /^X\(\/\/\)$/{
14003 s//\1/
14006 /^X\(\/\).*/{
14007 s//\1/
14010 s/.*/./; q'`
14011 test -d "$as_dir" && break
14012 done
14013 test -z "$as_dirs" || eval "mkdir $as_dirs"
14014 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14017 } # as_fn_mkdir_p
14018 if mkdir -p . 2>/dev/null; then
14019 as_mkdir_p='mkdir -p "$as_dir"'
14020 else
14021 test -d ./-p && rmdir ./-p
14022 as_mkdir_p=false
14026 # as_fn_executable_p FILE
14027 # -----------------------
14028 # Test if FILE is an executable regular file.
14029 as_fn_executable_p ()
14031 test -f "$1" && test -x "$1"
14032 } # as_fn_executable_p
14033 as_test_x='test -x'
14034 as_executable_p=as_fn_executable_p
14036 # Sed expression to map a string onto a valid CPP name.
14037 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14039 # Sed expression to map a string onto a valid variable name.
14040 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14043 exec 6>&1
14044 ## ----------------------------------- ##
14045 ## Main body of $CONFIG_STATUS script. ##
14046 ## ----------------------------------- ##
14047 _ASEOF
14048 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14051 # Save the log message, to keep $0 and so on meaningful, and to
14052 # report actual input values of CONFIG_FILES etc. instead of their
14053 # values after options handling.
14054 ac_log="
14055 This file was extended by libdockapp $as_me 0.6.3, which was
14056 generated by GNU Autoconf 2.69. Invocation command line was
14058 CONFIG_FILES = $CONFIG_FILES
14059 CONFIG_HEADERS = $CONFIG_HEADERS
14060 CONFIG_LINKS = $CONFIG_LINKS
14061 CONFIG_COMMANDS = $CONFIG_COMMANDS
14062 $ $0 $@
14064 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14067 _ACEOF
14069 case $ac_config_files in *"
14070 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14071 esac
14075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14076 # Files that config.status was made for.
14077 config_files="$ac_config_files"
14078 config_commands="$ac_config_commands"
14080 _ACEOF
14082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14083 ac_cs_usage="\
14084 \`$as_me' instantiates files and other configuration actions
14085 from templates according to the current configuration. Unless the files
14086 and actions are specified as TAGs, all are instantiated by default.
14088 Usage: $0 [OPTION]... [TAG]...
14090 -h, --help print this help, then exit
14091 -V, --version print version number and configuration settings, then exit
14092 --config print configuration, then exit
14093 -q, --quiet, --silent
14094 do not print progress messages
14095 -d, --debug don't remove temporary files
14096 --recheck update $as_me by reconfiguring in the same conditions
14097 --file=FILE[:TEMPLATE]
14098 instantiate the configuration file FILE
14100 Configuration files:
14101 $config_files
14103 Configuration commands:
14104 $config_commands
14106 Report bugs to the package provider."
14108 _ACEOF
14109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14110 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14111 ac_cs_version="\\
14112 libdockapp config.status 0.6.3
14113 configured by $0, generated by GNU Autoconf 2.69,
14114 with options \\"\$ac_cs_config\\"
14116 Copyright (C) 2012 Free Software Foundation, Inc.
14117 This config.status script is free software; the Free Software Foundation
14118 gives unlimited permission to copy, distribute and modify it."
14120 ac_pwd='$ac_pwd'
14121 srcdir='$srcdir'
14122 INSTALL='$INSTALL'
14123 MKDIR_P='$MKDIR_P'
14124 AWK='$AWK'
14125 test -n "\$AWK" || AWK=awk
14126 _ACEOF
14128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14129 # The default lists apply if the user does not specify any file.
14130 ac_need_defaults=:
14131 while test $# != 0
14133 case $1 in
14134 --*=?*)
14135 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14136 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14137 ac_shift=:
14139 --*=)
14140 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14141 ac_optarg=
14142 ac_shift=:
14145 ac_option=$1
14146 ac_optarg=$2
14147 ac_shift=shift
14149 esac
14151 case $ac_option in
14152 # Handling of the options.
14153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14154 ac_cs_recheck=: ;;
14155 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14156 $as_echo "$ac_cs_version"; exit ;;
14157 --config | --confi | --conf | --con | --co | --c )
14158 $as_echo "$ac_cs_config"; exit ;;
14159 --debug | --debu | --deb | --de | --d | -d )
14160 debug=: ;;
14161 --file | --fil | --fi | --f )
14162 $ac_shift
14163 case $ac_optarg in
14164 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14165 '') as_fn_error $? "missing file argument" ;;
14166 esac
14167 as_fn_append CONFIG_FILES " '$ac_optarg'"
14168 ac_need_defaults=false;;
14169 --he | --h | --help | --hel | -h )
14170 $as_echo "$ac_cs_usage"; exit ;;
14171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14173 ac_cs_silent=: ;;
14175 # This is an error.
14176 -*) as_fn_error $? "unrecognized option: \`$1'
14177 Try \`$0 --help' for more information." ;;
14179 *) as_fn_append ac_config_targets " $1"
14180 ac_need_defaults=false ;;
14182 esac
14183 shift
14184 done
14186 ac_configure_extra_args=
14188 if $ac_cs_silent; then
14189 exec 6>/dev/null
14190 ac_configure_extra_args="$ac_configure_extra_args --silent"
14193 _ACEOF
14194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14195 if \$ac_cs_recheck; then
14196 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14197 shift
14198 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14199 CONFIG_SHELL='$SHELL'
14200 export CONFIG_SHELL
14201 exec "\$@"
14204 _ACEOF
14205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14206 exec 5>>config.log
14208 echo
14209 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14210 ## Running $as_me. ##
14211 _ASBOX
14212 $as_echo "$ac_log"
14213 } >&5
14215 _ACEOF
14216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14218 # INIT-COMMANDS
14220 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14223 # The HP-UX ksh and POSIX shell print the target directory to stdout
14224 # if CDPATH is set.
14225 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14227 sed_quote_subst='$sed_quote_subst'
14228 double_quote_subst='$double_quote_subst'
14229 delay_variable_subst='$delay_variable_subst'
14230 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14231 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14232 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14233 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14234 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14235 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14236 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14237 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14238 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14239 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14240 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14241 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14242 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14243 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14244 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14245 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14246 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14247 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14248 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14249 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14250 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14251 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14252 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14253 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14254 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14255 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14256 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14257 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14258 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14259 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14260 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14261 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14262 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14263 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14264 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14265 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14266 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14267 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14268 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14269 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14270 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14271 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14272 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14273 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14274 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14275 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14276 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14277 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14278 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14279 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14280 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14281 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14282 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14283 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14284 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14285 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14286 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"`'
14287 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14288 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14289 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14290 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14291 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14292 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14293 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14294 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14295 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14296 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14297 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14298 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14299 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14300 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14301 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14302 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14303 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14304 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14305 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14306 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14307 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14308 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14309 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14310 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14311 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14312 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14313 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14314 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14315 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14316 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14317 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14318 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14319 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14320 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14321 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14322 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14323 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14324 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14325 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14326 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14327 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14328 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14329 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14330 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14331 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14332 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14333 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14334 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14335 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14336 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14337 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14338 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14339 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14340 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14341 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14342 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14343 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14344 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14345 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14346 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14347 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14348 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14349 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14350 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14351 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14352 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14353 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14354 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14355 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14356 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14357 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14358 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14359 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14361 LTCC='$LTCC'
14362 LTCFLAGS='$LTCFLAGS'
14363 compiler='$compiler_DEFAULT'
14365 # A function that is used when there is no print builtin or printf.
14366 func_fallback_echo ()
14368 eval 'cat <<_LTECHO_EOF
14370 _LTECHO_EOF'
14373 # Quote evaled strings.
14374 for var in SHELL \
14375 ECHO \
14376 PATH_SEPARATOR \
14377 SED \
14378 GREP \
14379 EGREP \
14380 FGREP \
14381 LD \
14382 NM \
14383 LN_S \
14384 lt_SP2NL \
14385 lt_NL2SP \
14386 reload_flag \
14387 OBJDUMP \
14388 deplibs_check_method \
14389 file_magic_cmd \
14390 file_magic_glob \
14391 want_nocaseglob \
14392 DLLTOOL \
14393 sharedlib_from_linklib_cmd \
14394 AR \
14395 AR_FLAGS \
14396 archiver_list_spec \
14397 STRIP \
14398 RANLIB \
14399 CC \
14400 CFLAGS \
14401 compiler \
14402 lt_cv_sys_global_symbol_pipe \
14403 lt_cv_sys_global_symbol_to_cdecl \
14404 lt_cv_sys_global_symbol_to_c_name_address \
14405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14406 nm_file_list_spec \
14407 lt_prog_compiler_no_builtin_flag \
14408 lt_prog_compiler_pic \
14409 lt_prog_compiler_wl \
14410 lt_prog_compiler_static \
14411 lt_cv_prog_compiler_c_o \
14412 need_locks \
14413 MANIFEST_TOOL \
14414 DSYMUTIL \
14415 NMEDIT \
14416 LIPO \
14417 OTOOL \
14418 OTOOL64 \
14419 shrext_cmds \
14420 export_dynamic_flag_spec \
14421 whole_archive_flag_spec \
14422 compiler_needs_object \
14423 with_gnu_ld \
14424 allow_undefined_flag \
14425 no_undefined_flag \
14426 hardcode_libdir_flag_spec \
14427 hardcode_libdir_separator \
14428 exclude_expsyms \
14429 include_expsyms \
14430 file_list_spec \
14431 variables_saved_for_relink \
14432 libname_spec \
14433 library_names_spec \
14434 soname_spec \
14435 install_override_mode \
14436 finish_eval \
14437 old_striplib \
14438 striplib; do
14439 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14440 *[\\\\\\\`\\"\\\$]*)
14441 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14444 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14446 esac
14447 done
14449 # Double-quote double-evaled strings.
14450 for var in reload_cmds \
14451 old_postinstall_cmds \
14452 old_postuninstall_cmds \
14453 old_archive_cmds \
14454 extract_expsyms_cmds \
14455 old_archive_from_new_cmds \
14456 old_archive_from_expsyms_cmds \
14457 archive_cmds \
14458 archive_expsym_cmds \
14459 module_cmds \
14460 module_expsym_cmds \
14461 export_symbols_cmds \
14462 prelink_cmds \
14463 postlink_cmds \
14464 postinstall_cmds \
14465 postuninstall_cmds \
14466 finish_cmds \
14467 sys_lib_search_path_spec \
14468 sys_lib_dlsearch_path_spec; do
14469 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14470 *[\\\\\\\`\\"\\\$]*)
14471 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14474 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14476 esac
14477 done
14479 ac_aux_dir='$ac_aux_dir'
14480 xsi_shell='$xsi_shell'
14481 lt_shell_append='$lt_shell_append'
14483 # See if we are running on zsh, and set the options which allow our
14484 # commands through without removal of \ escapes INIT.
14485 if test -n "\${ZSH_VERSION+set}" ; then
14486 setopt NO_GLOB_SUBST
14490 PACKAGE='$PACKAGE'
14491 VERSION='$VERSION'
14492 TIMESTAMP='$TIMESTAMP'
14493 RM='$RM'
14494 ofile='$ofile'
14499 _ACEOF
14501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14503 # Handling of arguments.
14504 for ac_config_target in $ac_config_targets
14506 case $ac_config_target in
14507 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14508 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14509 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14510 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14511 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
14512 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14514 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14515 esac
14516 done
14519 # If the user did not use the arguments to specify the items to instantiate,
14520 # then the envvar interface is used. Set only those that are not.
14521 # We use the long form for the default assignment because of an extremely
14522 # bizarre bug on SunOS 4.1.3.
14523 if $ac_need_defaults; then
14524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14528 # Have a temporary directory for convenience. Make it in the build tree
14529 # simply because there is no reason against having it here, and in addition,
14530 # creating and moving files from /tmp can sometimes cause problems.
14531 # Hook for its removal unless debugging.
14532 # Note that there is a small window in which the directory will not be cleaned:
14533 # after its creation but before its name has been assigned to `$tmp'.
14534 $debug ||
14536 tmp= ac_tmp=
14537 trap 'exit_status=$?
14538 : "${ac_tmp:=$tmp}"
14539 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14541 trap 'as_fn_exit 1' 1 2 13 15
14543 # Create a (secure) tmp directory for tmp files.
14546 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14547 test -d "$tmp"
14548 } ||
14550 tmp=./conf$$-$RANDOM
14551 (umask 077 && mkdir "$tmp")
14552 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14553 ac_tmp=$tmp
14555 # Set up the scripts for CONFIG_FILES section.
14556 # No need to generate them if there are no CONFIG_FILES.
14557 # This happens for instance with `./config.status config.h'.
14558 if test -n "$CONFIG_FILES"; then
14561 ac_cr=`echo X | tr X '\015'`
14562 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14563 # But we know of no other shell where ac_cr would be empty at this
14564 # point, so we can use a bashism as a fallback.
14565 if test "x$ac_cr" = x; then
14566 eval ac_cr=\$\'\\r\'
14568 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14569 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14570 ac_cs_awk_cr='\\r'
14571 else
14572 ac_cs_awk_cr=$ac_cr
14575 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14576 _ACEOF
14580 echo "cat >conf$$subs.awk <<_ACEOF" &&
14581 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14582 echo "_ACEOF"
14583 } >conf$$subs.sh ||
14584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14585 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14586 ac_delim='%!_!# '
14587 for ac_last_try in false false false false false :; do
14588 . ./conf$$subs.sh ||
14589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14591 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14592 if test $ac_delim_n = $ac_delim_num; then
14593 break
14594 elif $ac_last_try; then
14595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14596 else
14597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14599 done
14600 rm -f conf$$subs.sh
14602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14604 _ACEOF
14605 sed -n '
14607 s/^/S["/; s/!.*/"]=/
14610 s/^[^!]*!//
14611 :repl
14612 t repl
14613 s/'"$ac_delim"'$//
14614 t delim
14617 s/\(.\{148\}\)..*/\1/
14618 t more1
14619 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14622 b repl
14623 :more1
14624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14627 s/.\{148\}//
14628 t nl
14629 :delim
14631 s/\(.\{148\}\)..*/\1/
14632 t more2
14633 s/["\\]/\\&/g; s/^/"/; s/$/"/
14636 :more2
14637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14640 s/.\{148\}//
14641 t delim
14642 ' <conf$$subs.awk | sed '
14643 /^[^""]/{
14645 s/\n//
14647 ' >>$CONFIG_STATUS || ac_write_fail=1
14648 rm -f conf$$subs.awk
14649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650 _ACAWK
14651 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14652 for (key in S) S_is_set[key] = 1
14653 FS = "\a"
14657 line = $ 0
14658 nfields = split(line, field, "@")
14659 substed = 0
14660 len = length(field[1])
14661 for (i = 2; i < nfields; i++) {
14662 key = field[i]
14663 keylen = length(key)
14664 if (S_is_set[key]) {
14665 value = S[key]
14666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14667 len += length(value) + length(field[++i])
14668 substed = 1
14669 } else
14670 len += 1 + keylen
14673 print line
14676 _ACAWK
14677 _ACEOF
14678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14679 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14680 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14681 else
14683 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14684 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14685 _ACEOF
14687 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14688 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14689 # trailing colons and then remove the whole line if VPATH becomes empty
14690 # (actually we leave an empty line to preserve line numbers).
14691 if test "x$srcdir" = x.; then
14692 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14694 s///
14695 s/^/:/
14696 s/[ ]*$/:/
14697 s/:\$(srcdir):/:/g
14698 s/:\${srcdir}:/:/g
14699 s/:@srcdir@:/:/g
14700 s/^:*//
14701 s/:*$//
14703 s/\(=[ ]*\).*/\1/
14705 s/\n//
14706 s/^[^=]*=[ ]*$//
14710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14711 fi # test -n "$CONFIG_FILES"
14714 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14715 shift
14716 for ac_tag
14718 case $ac_tag in
14719 :[FHLC]) ac_mode=$ac_tag; continue;;
14720 esac
14721 case $ac_mode$ac_tag in
14722 :[FHL]*:*);;
14723 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14724 :[FH]-) ac_tag=-:-;;
14725 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14726 esac
14727 ac_save_IFS=$IFS
14728 IFS=:
14729 set x $ac_tag
14730 IFS=$ac_save_IFS
14731 shift
14732 ac_file=$1
14733 shift
14735 case $ac_mode in
14736 :L) ac_source=$1;;
14737 :[FH])
14738 ac_file_inputs=
14739 for ac_f
14741 case $ac_f in
14742 -) ac_f="$ac_tmp/stdin";;
14743 *) # Look for the file first in the build tree, then in the source tree
14744 # (if the path is not absolute). The absolute path cannot be DOS-style,
14745 # because $ac_f cannot contain `:'.
14746 test -f "$ac_f" ||
14747 case $ac_f in
14748 [\\/$]*) false;;
14749 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14750 esac ||
14751 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14752 esac
14753 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14754 as_fn_append ac_file_inputs " '$ac_f'"
14755 done
14757 # Let's still pretend it is `configure' which instantiates (i.e., don't
14758 # use $as_me), people would be surprised to read:
14759 # /* config.h. Generated by config.status. */
14760 configure_input='Generated from '`
14761 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14762 `' by configure.'
14763 if test x"$ac_file" != x-; then
14764 configure_input="$ac_file. $configure_input"
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14766 $as_echo "$as_me: creating $ac_file" >&6;}
14768 # Neutralize special characters interpreted by sed in replacement strings.
14769 case $configure_input in #(
14770 *\&* | *\|* | *\\* )
14771 ac_sed_conf_input=`$as_echo "$configure_input" |
14772 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14773 *) ac_sed_conf_input=$configure_input;;
14774 esac
14776 case $ac_tag in
14777 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14779 esac
14781 esac
14783 ac_dir=`$as_dirname -- "$ac_file" ||
14784 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14785 X"$ac_file" : 'X\(//\)[^/]' \| \
14786 X"$ac_file" : 'X\(//\)$' \| \
14787 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14788 $as_echo X"$ac_file" |
14789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14790 s//\1/
14793 /^X\(\/\/\)[^/].*/{
14794 s//\1/
14797 /^X\(\/\/\)$/{
14798 s//\1/
14801 /^X\(\/\).*/{
14802 s//\1/
14805 s/.*/./; q'`
14806 as_dir="$ac_dir"; as_fn_mkdir_p
14807 ac_builddir=.
14809 case "$ac_dir" in
14810 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14812 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14813 # A ".." for each directory in $ac_dir_suffix.
14814 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14815 case $ac_top_builddir_sub in
14816 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14817 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14818 esac ;;
14819 esac
14820 ac_abs_top_builddir=$ac_pwd
14821 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14822 # for backward compatibility:
14823 ac_top_builddir=$ac_top_build_prefix
14825 case $srcdir in
14826 .) # We are building in place.
14827 ac_srcdir=.
14828 ac_top_srcdir=$ac_top_builddir_sub
14829 ac_abs_top_srcdir=$ac_pwd ;;
14830 [\\/]* | ?:[\\/]* ) # Absolute name.
14831 ac_srcdir=$srcdir$ac_dir_suffix;
14832 ac_top_srcdir=$srcdir
14833 ac_abs_top_srcdir=$srcdir ;;
14834 *) # Relative name.
14835 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14836 ac_top_srcdir=$ac_top_build_prefix$srcdir
14837 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14838 esac
14839 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14842 case $ac_mode in
14845 # CONFIG_FILE
14848 case $INSTALL in
14849 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14850 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14851 esac
14852 ac_MKDIR_P=$MKDIR_P
14853 case $MKDIR_P in
14854 [\\/$]* | ?:[\\/]* ) ;;
14855 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14856 esac
14857 _ACEOF
14859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14860 # If the template does not know about datarootdir, expand it.
14861 # FIXME: This hack should be removed a few years after 2.60.
14862 ac_datarootdir_hack=; ac_datarootdir_seen=
14863 ac_sed_dataroot='
14864 /datarootdir/ {
14868 /@datadir@/p
14869 /@docdir@/p
14870 /@infodir@/p
14871 /@localedir@/p
14872 /@mandir@/p'
14873 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14874 *datarootdir*) ac_datarootdir_seen=yes;;
14875 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14877 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14878 _ACEOF
14879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14880 ac_datarootdir_hack='
14881 s&@datadir@&$datadir&g
14882 s&@docdir@&$docdir&g
14883 s&@infodir@&$infodir&g
14884 s&@localedir@&$localedir&g
14885 s&@mandir@&$mandir&g
14886 s&\\\${datarootdir}&$datarootdir&g' ;;
14887 esac
14888 _ACEOF
14890 # Neutralize VPATH when `$srcdir' = `.'.
14891 # Shell code in configure.ac might set extrasub.
14892 # FIXME: do we really want to maintain this feature?
14893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14894 ac_sed_extra="$ac_vpsub
14895 $extrasub
14896 _ACEOF
14897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14900 s|@configure_input@|$ac_sed_conf_input|;t t
14901 s&@top_builddir@&$ac_top_builddir_sub&;t t
14902 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14903 s&@srcdir@&$ac_srcdir&;t t
14904 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14905 s&@top_srcdir@&$ac_top_srcdir&;t t
14906 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14907 s&@builddir@&$ac_builddir&;t t
14908 s&@abs_builddir@&$ac_abs_builddir&;t t
14909 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14910 s&@INSTALL@&$ac_INSTALL&;t t
14911 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14912 $ac_datarootdir_hack
14914 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14915 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14917 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14918 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14920 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14922 which seems to be undefined. Please make sure it is defined" >&5
14923 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14924 which seems to be undefined. Please make sure it is defined" >&2;}
14926 rm -f "$ac_tmp/stdin"
14927 case $ac_file in
14928 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14929 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14930 esac \
14931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14935 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14936 $as_echo "$as_me: executing $ac_file commands" >&6;}
14938 esac
14941 case $ac_file$ac_mode in
14942 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14943 # Older Autoconf quotes --file arguments for eval, but not when files
14944 # are listed without --file. Let's play safe and only enable the eval
14945 # if we detect the quoting.
14946 case $CONFIG_FILES in
14947 *\'*) eval set x "$CONFIG_FILES" ;;
14948 *) set x $CONFIG_FILES ;;
14949 esac
14950 shift
14951 for mf
14953 # Strip MF so we end up with the name of the file.
14954 mf=`echo "$mf" | sed -e 's/:.*$//'`
14955 # Check whether this is an Automake generated Makefile or not.
14956 # We used to match only the files named 'Makefile.in', but
14957 # some people rename them; so instead we look at the file content.
14958 # Grep'ing the first line is not enough: some people post-process
14959 # each Makefile.in and add a new line on top of each file to say so.
14960 # Grep'ing the whole file is not good either: AIX grep has a line
14961 # limit of 2048, but all sed's we know have understand at least 4000.
14962 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14963 dirpart=`$as_dirname -- "$mf" ||
14964 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14965 X"$mf" : 'X\(//\)[^/]' \| \
14966 X"$mf" : 'X\(//\)$' \| \
14967 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14968 $as_echo X"$mf" |
14969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14970 s//\1/
14973 /^X\(\/\/\)[^/].*/{
14974 s//\1/
14977 /^X\(\/\/\)$/{
14978 s//\1/
14981 /^X\(\/\).*/{
14982 s//\1/
14985 s/.*/./; q'`
14986 else
14987 continue
14989 # Extract the definition of DEPDIR, am__include, and am__quote
14990 # from the Makefile without running 'make'.
14991 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14992 test -z "$DEPDIR" && continue
14993 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14994 test -z "$am__include" && continue
14995 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14996 # Find all dependency output files, they are included files with
14997 # $(DEPDIR) in their names. We invoke sed twice because it is the
14998 # simplest approach to changing $(DEPDIR) to its actual value in the
14999 # expansion.
15000 for file in `sed -n "
15001 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15002 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15003 # Make sure the directory exists.
15004 test -f "$dirpart/$file" && continue
15005 fdir=`$as_dirname -- "$file" ||
15006 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15007 X"$file" : 'X\(//\)[^/]' \| \
15008 X"$file" : 'X\(//\)$' \| \
15009 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15010 $as_echo X"$file" |
15011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15012 s//\1/
15015 /^X\(\/\/\)[^/].*/{
15016 s//\1/
15019 /^X\(\/\/\)$/{
15020 s//\1/
15023 /^X\(\/\).*/{
15024 s//\1/
15027 s/.*/./; q'`
15028 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15029 # echo "creating $dirpart/$file"
15030 echo '# dummy' > "$dirpart/$file"
15031 done
15032 done
15035 "libtool":C)
15037 # See if we are running on zsh, and set the options which allow our
15038 # commands through without removal of \ escapes.
15039 if test -n "${ZSH_VERSION+set}" ; then
15040 setopt NO_GLOB_SUBST
15043 cfgfile="${ofile}T"
15044 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15045 $RM "$cfgfile"
15047 cat <<_LT_EOF >> "$cfgfile"
15048 #! $SHELL
15050 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15051 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15052 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15053 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15055 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15056 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15057 # Foundation, Inc.
15058 # Written by Gordon Matzigkeit, 1996
15060 # This file is part of GNU Libtool.
15062 # GNU Libtool is free software; you can redistribute it and/or
15063 # modify it under the terms of the GNU General Public License as
15064 # published by the Free Software Foundation; either version 2 of
15065 # the License, or (at your option) any later version.
15067 # As a special exception to the GNU General Public License,
15068 # if you distribute this file as part of a program or library that
15069 # is built using GNU Libtool, you may include this file under the
15070 # same distribution terms that you use for the rest of that program.
15072 # GNU Libtool is distributed in the hope that it will be useful,
15073 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15074 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15075 # GNU General Public License for more details.
15077 # You should have received a copy of the GNU General Public License
15078 # along with GNU Libtool; see the file COPYING. If not, a copy
15079 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15080 # obtained by writing to the Free Software Foundation, Inc.,
15081 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15084 # The names of the tagged configurations supported by this script.
15085 available_tags=""
15087 # ### BEGIN LIBTOOL CONFIG
15089 # Which release of libtool.m4 was used?
15090 macro_version=$macro_version
15091 macro_revision=$macro_revision
15093 # Whether or not to build shared libraries.
15094 build_libtool_libs=$enable_shared
15096 # Whether or not to build static libraries.
15097 build_old_libs=$enable_static
15099 # What type of objects to build.
15100 pic_mode=$pic_mode
15102 # Whether or not to optimize for fast installation.
15103 fast_install=$enable_fast_install
15105 # Shell to use when invoking shell scripts.
15106 SHELL=$lt_SHELL
15108 # An echo program that protects backslashes.
15109 ECHO=$lt_ECHO
15111 # The PATH separator for the build system.
15112 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15114 # The host system.
15115 host_alias=$host_alias
15116 host=$host
15117 host_os=$host_os
15119 # The build system.
15120 build_alias=$build_alias
15121 build=$build
15122 build_os=$build_os
15124 # A sed program that does not truncate output.
15125 SED=$lt_SED
15127 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15128 Xsed="\$SED -e 1s/^X//"
15130 # A grep program that handles long lines.
15131 GREP=$lt_GREP
15133 # An ERE matcher.
15134 EGREP=$lt_EGREP
15136 # A literal string matcher.
15137 FGREP=$lt_FGREP
15139 # A BSD- or MS-compatible name lister.
15140 NM=$lt_NM
15142 # Whether we need soft or hard links.
15143 LN_S=$lt_LN_S
15145 # What is the maximum length of a command?
15146 max_cmd_len=$max_cmd_len
15148 # Object file suffix (normally "o").
15149 objext=$ac_objext
15151 # Executable file suffix (normally "").
15152 exeext=$exeext
15154 # whether the shell understands "unset".
15155 lt_unset=$lt_unset
15157 # turn spaces into newlines.
15158 SP2NL=$lt_lt_SP2NL
15160 # turn newlines into spaces.
15161 NL2SP=$lt_lt_NL2SP
15163 # convert \$build file names to \$host format.
15164 to_host_file_cmd=$lt_cv_to_host_file_cmd
15166 # convert \$build files to toolchain format.
15167 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15169 # An object symbol dumper.
15170 OBJDUMP=$lt_OBJDUMP
15172 # Method to check whether dependent libraries are shared objects.
15173 deplibs_check_method=$lt_deplibs_check_method
15175 # Command to use when deplibs_check_method = "file_magic".
15176 file_magic_cmd=$lt_file_magic_cmd
15178 # How to find potential files when deplibs_check_method = "file_magic".
15179 file_magic_glob=$lt_file_magic_glob
15181 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15182 want_nocaseglob=$lt_want_nocaseglob
15184 # DLL creation program.
15185 DLLTOOL=$lt_DLLTOOL
15187 # Command to associate shared and link libraries.
15188 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15190 # The archiver.
15191 AR=$lt_AR
15193 # Flags to create an archive.
15194 AR_FLAGS=$lt_AR_FLAGS
15196 # How to feed a file listing to the archiver.
15197 archiver_list_spec=$lt_archiver_list_spec
15199 # A symbol stripping program.
15200 STRIP=$lt_STRIP
15202 # Commands used to install an old-style archive.
15203 RANLIB=$lt_RANLIB
15204 old_postinstall_cmds=$lt_old_postinstall_cmds
15205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15207 # Whether to use a lock for old archive extraction.
15208 lock_old_archive_extraction=$lock_old_archive_extraction
15210 # A C compiler.
15211 LTCC=$lt_CC
15213 # LTCC compiler flags.
15214 LTCFLAGS=$lt_CFLAGS
15216 # Take the output of nm and produce a listing of raw symbols and C names.
15217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15219 # Transform the output of nm in a proper C declaration.
15220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15222 # Transform the output of nm in a C name address pair.
15223 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15225 # Transform the output of nm in a C name address pair when lib prefix is needed.
15226 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15228 # Specify filename containing input files for \$NM.
15229 nm_file_list_spec=$lt_nm_file_list_spec
15231 # The root where to search for dependent libraries,and in which our libraries should be installed.
15232 lt_sysroot=$lt_sysroot
15234 # The name of the directory that contains temporary libtool files.
15235 objdir=$objdir
15237 # Used to examine libraries when file_magic_cmd begins with "file".
15238 MAGIC_CMD=$MAGIC_CMD
15240 # Must we lock files when doing compilation?
15241 need_locks=$lt_need_locks
15243 # Manifest tool.
15244 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15246 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15247 DSYMUTIL=$lt_DSYMUTIL
15249 # Tool to change global to local symbols on Mac OS X.
15250 NMEDIT=$lt_NMEDIT
15252 # Tool to manipulate fat objects and archives on Mac OS X.
15253 LIPO=$lt_LIPO
15255 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15256 OTOOL=$lt_OTOOL
15258 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15259 OTOOL64=$lt_OTOOL64
15261 # Old archive suffix (normally "a").
15262 libext=$libext
15264 # Shared library suffix (normally ".so").
15265 shrext_cmds=$lt_shrext_cmds
15267 # The commands to extract the exported symbol list from a shared archive.
15268 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15270 # Variables whose values should be saved in libtool wrapper scripts and
15271 # restored at link time.
15272 variables_saved_for_relink=$lt_variables_saved_for_relink
15274 # Do we need the "lib" prefix for modules?
15275 need_lib_prefix=$need_lib_prefix
15277 # Do we need a version for libraries?
15278 need_version=$need_version
15280 # Library versioning type.
15281 version_type=$version_type
15283 # Shared library runtime path variable.
15284 runpath_var=$runpath_var
15286 # Shared library path variable.
15287 shlibpath_var=$shlibpath_var
15289 # Is shlibpath searched before the hard-coded library search path?
15290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15292 # Format of library name prefix.
15293 libname_spec=$lt_libname_spec
15295 # List of archive names. First name is the real one, the rest are links.
15296 # The last name is the one that the linker finds with -lNAME
15297 library_names_spec=$lt_library_names_spec
15299 # The coded name of the library, if different from the real name.
15300 soname_spec=$lt_soname_spec
15302 # Permission mode override for installation of shared libraries.
15303 install_override_mode=$lt_install_override_mode
15305 # Command to use after installation of a shared archive.
15306 postinstall_cmds=$lt_postinstall_cmds
15308 # Command to use after uninstallation of a shared archive.
15309 postuninstall_cmds=$lt_postuninstall_cmds
15311 # Commands used to finish a libtool library installation in a directory.
15312 finish_cmds=$lt_finish_cmds
15314 # As "finish_cmds", except a single script fragment to be evaled but
15315 # not shown.
15316 finish_eval=$lt_finish_eval
15318 # Whether we should hardcode library paths into libraries.
15319 hardcode_into_libs=$hardcode_into_libs
15321 # Compile-time system search path for libraries.
15322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15324 # Run-time system search path for libraries.
15325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15327 # Whether dlopen is supported.
15328 dlopen_support=$enable_dlopen
15330 # Whether dlopen of programs is supported.
15331 dlopen_self=$enable_dlopen_self
15333 # Whether dlopen of statically linked programs is supported.
15334 dlopen_self_static=$enable_dlopen_self_static
15336 # Commands to strip libraries.
15337 old_striplib=$lt_old_striplib
15338 striplib=$lt_striplib
15341 # The linker used to build libraries.
15342 LD=$lt_LD
15344 # How to create reloadable object files.
15345 reload_flag=$lt_reload_flag
15346 reload_cmds=$lt_reload_cmds
15348 # Commands used to build an old-style archive.
15349 old_archive_cmds=$lt_old_archive_cmds
15351 # A language specific compiler.
15352 CC=$lt_compiler
15354 # Is the compiler the GNU compiler?
15355 with_gcc=$GCC
15357 # Compiler flag to turn off builtin functions.
15358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15360 # Additional compiler flags for building library objects.
15361 pic_flag=$lt_lt_prog_compiler_pic
15363 # How to pass a linker flag through the compiler.
15364 wl=$lt_lt_prog_compiler_wl
15366 # Compiler flag to prevent dynamic linking.
15367 link_static_flag=$lt_lt_prog_compiler_static
15369 # Does compiler simultaneously support -c and -o options?
15370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15372 # Whether or not to add -lc for building shared libraries.
15373 build_libtool_need_lc=$archive_cmds_need_lc
15375 # Whether or not to disallow shared libs when runtime libs are static.
15376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15378 # Compiler flag to allow reflexive dlopens.
15379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15381 # Compiler flag to generate shared objects directly from archives.
15382 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15384 # Whether the compiler copes with passing no objects directly.
15385 compiler_needs_object=$lt_compiler_needs_object
15387 # Create an old-style archive from a shared archive.
15388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15390 # Create a temporary old-style archive to link instead of a shared archive.
15391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15393 # Commands used to build a shared archive.
15394 archive_cmds=$lt_archive_cmds
15395 archive_expsym_cmds=$lt_archive_expsym_cmds
15397 # Commands used to build a loadable module if different from building
15398 # a shared archive.
15399 module_cmds=$lt_module_cmds
15400 module_expsym_cmds=$lt_module_expsym_cmds
15402 # Whether we are building with GNU ld or not.
15403 with_gnu_ld=$lt_with_gnu_ld
15405 # Flag that allows shared libraries with undefined symbols to be built.
15406 allow_undefined_flag=$lt_allow_undefined_flag
15408 # Flag that enforces no undefined symbols.
15409 no_undefined_flag=$lt_no_undefined_flag
15411 # Flag to hardcode \$libdir into a binary during linking.
15412 # This must work even if \$libdir does not exist
15413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15415 # Whether we need a single "-rpath" flag with a separated argument.
15416 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15418 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15419 # DIR into the resulting binary.
15420 hardcode_direct=$hardcode_direct
15422 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15423 # DIR into the resulting binary and the resulting library dependency is
15424 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15425 # library is relocated.
15426 hardcode_direct_absolute=$hardcode_direct_absolute
15428 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15429 # into the resulting binary.
15430 hardcode_minus_L=$hardcode_minus_L
15432 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15433 # into the resulting binary.
15434 hardcode_shlibpath_var=$hardcode_shlibpath_var
15436 # Set to "yes" if building a shared library automatically hardcodes DIR
15437 # into the library and all subsequent libraries and executables linked
15438 # against it.
15439 hardcode_automatic=$hardcode_automatic
15441 # Set to yes if linker adds runtime paths of dependent libraries
15442 # to runtime path list.
15443 inherit_rpath=$inherit_rpath
15445 # Whether libtool must link a program against all its dependency libraries.
15446 link_all_deplibs=$link_all_deplibs
15448 # Set to "yes" if exported symbols are required.
15449 always_export_symbols=$always_export_symbols
15451 # The commands to list exported symbols.
15452 export_symbols_cmds=$lt_export_symbols_cmds
15454 # Symbols that should not be listed in the preloaded symbols.
15455 exclude_expsyms=$lt_exclude_expsyms
15457 # Symbols that must always be exported.
15458 include_expsyms=$lt_include_expsyms
15460 # Commands necessary for linking programs (against libraries) with templates.
15461 prelink_cmds=$lt_prelink_cmds
15463 # Commands necessary for finishing linking programs.
15464 postlink_cmds=$lt_postlink_cmds
15466 # Specify filename containing input files.
15467 file_list_spec=$lt_file_list_spec
15469 # How to hardcode a shared library path into an executable.
15470 hardcode_action=$hardcode_action
15472 # ### END LIBTOOL CONFIG
15474 _LT_EOF
15476 case $host_os in
15477 aix3*)
15478 cat <<\_LT_EOF >> "$cfgfile"
15479 # AIX sometimes has problems with the GCC collect2 program. For some
15480 # reason, if we set the COLLECT_NAMES environment variable, the problems
15481 # vanish in a puff of smoke.
15482 if test "X${COLLECT_NAMES+set}" != Xset; then
15483 COLLECT_NAMES=
15484 export COLLECT_NAMES
15486 _LT_EOF
15488 esac
15491 ltmain="$ac_aux_dir/ltmain.sh"
15494 # We use sed instead of cat because bash on DJGPP gets confused if
15495 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15496 # text mode, it properly converts lines to CR/LF. This bash problem
15497 # is reportedly fixed, but why not run on old versions too?
15498 sed '$q' "$ltmain" >> "$cfgfile" \
15499 || (rm -f "$cfgfile"; exit 1)
15501 if test x"$xsi_shell" = xyes; then
15502 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15503 func_dirname ()\
15505 \ case ${1} in\
15506 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15507 \ * ) func_dirname_result="${3}" ;;\
15508 \ esac\
15509 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15510 && mv -f "$cfgfile.tmp" "$cfgfile" \
15511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15512 test 0 -eq $? || _lt_function_replace_fail=:
15515 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15516 func_basename ()\
15518 \ func_basename_result="${1##*/}"\
15519 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15520 && mv -f "$cfgfile.tmp" "$cfgfile" \
15521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15522 test 0 -eq $? || _lt_function_replace_fail=:
15525 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15526 func_dirname_and_basename ()\
15528 \ case ${1} in\
15529 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15530 \ * ) func_dirname_result="${3}" ;;\
15531 \ esac\
15532 \ func_basename_result="${1##*/}"\
15533 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15534 && mv -f "$cfgfile.tmp" "$cfgfile" \
15535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15536 test 0 -eq $? || _lt_function_replace_fail=:
15539 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15540 func_stripname ()\
15542 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15543 \ # positional parameters, so assign one to ordinary parameter first.\
15544 \ func_stripname_result=${3}\
15545 \ func_stripname_result=${func_stripname_result#"${1}"}\
15546 \ func_stripname_result=${func_stripname_result%"${2}"}\
15547 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15548 && mv -f "$cfgfile.tmp" "$cfgfile" \
15549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15550 test 0 -eq $? || _lt_function_replace_fail=:
15553 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15554 func_split_long_opt ()\
15556 \ func_split_long_opt_name=${1%%=*}\
15557 \ func_split_long_opt_arg=${1#*=}\
15558 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15559 && mv -f "$cfgfile.tmp" "$cfgfile" \
15560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15561 test 0 -eq $? || _lt_function_replace_fail=:
15564 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15565 func_split_short_opt ()\
15567 \ func_split_short_opt_arg=${1#??}\
15568 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15569 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15570 && mv -f "$cfgfile.tmp" "$cfgfile" \
15571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15572 test 0 -eq $? || _lt_function_replace_fail=:
15575 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15576 func_lo2o ()\
15578 \ case ${1} in\
15579 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15580 \ *) func_lo2o_result=${1} ;;\
15581 \ esac\
15582 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15583 && mv -f "$cfgfile.tmp" "$cfgfile" \
15584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15585 test 0 -eq $? || _lt_function_replace_fail=:
15588 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15589 func_xform ()\
15591 func_xform_result=${1%.*}.lo\
15592 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15593 && mv -f "$cfgfile.tmp" "$cfgfile" \
15594 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15595 test 0 -eq $? || _lt_function_replace_fail=:
15598 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15599 func_arith ()\
15601 func_arith_result=$(( $* ))\
15602 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15603 && mv -f "$cfgfile.tmp" "$cfgfile" \
15604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15605 test 0 -eq $? || _lt_function_replace_fail=:
15608 sed -e '/^func_len ()$/,/^} # func_len /c\
15609 func_len ()\
15611 func_len_result=${#1}\
15612 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15613 && mv -f "$cfgfile.tmp" "$cfgfile" \
15614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15615 test 0 -eq $? || _lt_function_replace_fail=:
15619 if test x"$lt_shell_append" = xyes; then
15620 sed -e '/^func_append ()$/,/^} # func_append /c\
15621 func_append ()\
15623 eval "${1}+=\\${2}"\
15624 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15625 && mv -f "$cfgfile.tmp" "$cfgfile" \
15626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15627 test 0 -eq $? || _lt_function_replace_fail=:
15630 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15631 func_append_quoted ()\
15633 \ func_quote_for_eval "${2}"\
15634 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15635 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15636 && mv -f "$cfgfile.tmp" "$cfgfile" \
15637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15638 test 0 -eq $? || _lt_function_replace_fail=:
15641 # Save a `func_append' function call where possible by direct use of '+='
15642 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15643 && mv -f "$cfgfile.tmp" "$cfgfile" \
15644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15645 test 0 -eq $? || _lt_function_replace_fail=:
15646 else
15647 # Save a `func_append' function call even when '+=' is not available
15648 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15649 && mv -f "$cfgfile.tmp" "$cfgfile" \
15650 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15651 test 0 -eq $? || _lt_function_replace_fail=:
15654 if test x"$_lt_function_replace_fail" = x":"; then
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15656 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15660 mv -f "$cfgfile" "$ofile" ||
15661 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15662 chmod +x "$ofile"
15666 esac
15667 done # for ac_tag
15670 as_fn_exit 0
15671 _ACEOF
15672 ac_clean_files=$ac_clean_files_save
15674 test $ac_write_fail = 0 ||
15675 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15678 # configure is writing to config.log, and then calls config.status.
15679 # config.status does its own redirection, appending to config.log.
15680 # Unfortunately, on DOS this fails, as config.log is still kept open
15681 # by configure, so config.status won't be able to write to it; its
15682 # output is simply discarded. So we exec the FD to /dev/null,
15683 # effectively closing config.log, so it can be properly (re)opened and
15684 # appended to by config.status. When coming back to configure, we
15685 # need to make the FD available again.
15686 if test "$no_create" != yes; then
15687 ac_cs_success=:
15688 ac_config_status_args=
15689 test "$silent" = yes &&
15690 ac_config_status_args="$ac_config_status_args --quiet"
15691 exec 5>/dev/null
15692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15693 exec 5>>config.log
15694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15695 # would make configure fail if this is the last instruction.
15696 $ac_cs_success || as_fn_exit 1
15698 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15700 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}