Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dgedit 0.10.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
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
95 do
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
101
102 ;;
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
108 fi
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
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157 fi
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 *) :
173 ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
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
199
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
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
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
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
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
233 fi
234 fi
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
244
245
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
266 fi
267
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 [email protected] 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."
279 fi
280 exit 1
281 fi
282 fi
283 fi
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
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
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 ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
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/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
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"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
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 ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
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 ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
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 ()
417 {
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
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
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
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
444 fi
445
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/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
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
471
472
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 '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
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; }
495
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
506 }
507
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;;
517 *)
518 ECHO_N='-n';;
519 esac
520
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
527 fi
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'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
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
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
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'"
560
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'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
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`
574
575 #
576 # Initializations.
577 #
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=
586
587 # Identity of this package.
588 PACKAGE_NAME='dgedit'
589 PACKAGE_TARNAME='dgedit'
590 PACKAGE_VERSION='0.10.0'
591 PACKAGE_STRING='dgedit 0.10.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/dgedit.cc"
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"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 SNDFILE_LIBS
637 SNDFILE_CFLAGS
638 AO_LIBS
639 AO_CFLAGS
640 QT_UIC
641 QT_RCC
642 QT_MOC
643 QT_LIBS
644 QT_CFLAGS
645 PKG_CONFIG_LIBDIR
646 PKG_CONFIG_PATH
647 PKG_CONFIG
648 CXXCPP
649 CPP
650 LT_SYS_LIBRARY_PATH
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 EGREP
669 GREP
670 SED
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 ac_ct_CC
675 CFLAGS
676 CC
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 LIBTOOL
686 am__fastdepCXX_FALSE
687 am__fastdepCXX_TRUE
688 CXXDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CXX
699 CPPFLAGS
700 LDFLAGS
701 CXXFLAGS
702 CXX
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_dependency_tracking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_aix_soname
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 with_debug
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CXX
787 CXXFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CCC
792 CC
793 CFLAGS
794 LT_SYS_LIBRARY_PATH
795 CPP
796 CXXCPP
797 PKG_CONFIG
798 PKG_CONFIG_PATH
799 PKG_CONFIG_LIBDIR
800 QT_CFLAGS
801 QT_LIBS
802 AO_CFLAGS
803 AO_LIBS
804 SNDFILE_CFLAGS
805 SNDFILE_LIBS'
806
807
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
829
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
855
856 ac_prev=
857 ac_dashdash=
858 for ac_option
859 do
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
865 fi
866
867 case $ac_option in
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
871 esac
872
873 # Accept the important Cygnus configure options, so we can diagnose typos.
874
875 case $ac_dashdash$ac_option in
876 --)
877 ac_dashdash=yes ;;
878
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
883
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
888
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
895
896 --config-cache | -C)
897 cache_file=config.cache ;;
898
899 -datadir | --datadir | --datadi | --datad)
900 ac_prev=datadir ;;
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
903
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
910
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
936
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=\$ac_optarg ;;
952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
1156
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
1172
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1176
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1183
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1190
1191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1193 ;;
1194
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201 esac
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1204
1205 *)
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211 ;;
1212
1213 esac
1214 done
1215
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1219 fi
1220
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 esac
1227 fi
1228
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1234 do
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
1243 case $ac_val in
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 esac
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 done
1249
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1253 build=$build_alias
1254 host=$host_alias
1255 target=$target_alias
1256
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1263 fi
1264 fi
1265
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269 test "$silent" = yes && exec 6>/dev/null
1270
1271
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\).*/{
1303 s//\1/
1304 q
1305 }
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1310 fi
1311 else
1312 ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 fi
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1325 fi
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1338
1339 #
1340 # Report the --help message.
1341 #
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 \`configure' configures dgedit 0.10.0 to adapt to many kinds of systems.
1347
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1352
1353 Defaults for the options are specified in brackets.
1354
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1371
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1376
1377 For better control, use the options below.
1378
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/dgedit]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of dgedit 0.10.0:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-aix-soname=aix|svr4|both
1442 shared library versioning (aka "SONAME") variant to
1443 provide on AIX, [default=aix].
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1446 compiler's sysroot if not specified).
1447 --with-debug Build with debug support
1448
1449 Some influential environment variables:
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LT_SYS_LIBRARY_PATH
1460 User-defined run-time library search path.
1461 CPP C preprocessor
1462 CXXCPP C++ preprocessor
1463 PKG_CONFIG path to pkg-config utility
1464 PKG_CONFIG_PATH
1465 directories to add to pkg-config's search path
1466 PKG_CONFIG_LIBDIR
1467 path overriding pkg-config's built-in search path
1468 QT_CFLAGS C compiler flags for QT, overriding pkg-config
1469 QT_LIBS linker flags for QT, overriding pkg-config
1470 AO_CFLAGS C compiler flags for AO, overriding pkg-config
1471 AO_LIBS linker flags for AO, overriding pkg-config
1472 SNDFILE_CFLAGS
1473 C compiler flags for SNDFILE, overriding pkg-config
1474 SNDFILE_LIBS
1475 linker flags for SNDFILE, overriding pkg-config
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to the package provider.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 dgedit configure 0.10.0
1544 generated by GNU Autoconf 2.69
1545
1546 Copyright (C) 2012 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_cxx_try_compile LINENO
1558 # ----------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_cxx_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_cxx_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_cxx_try_compile
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1661 }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1671 # interfere with the next link command; also delete a directory that is
1672 # left behind by Apple's compiler. We do this before executing the actions.
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_link
1678
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 $4
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 eval "$3=yes"
1698 else
1699 eval "$3=no"
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708 } # ac_fn_c_check_header_compile
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1751 ac_fn_c_try_run ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=$ac_status
1782 fi
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_run
1788
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1805
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1810
1811 #ifdef __STDC__
1812 # include <limits.h>
1813 #else
1814 # include <assert.h>
1815 #endif
1816
1817 #undef $2
1818
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1822 #ifdef __cplusplus
1823 extern "C"
1824 #endif
1825 char $2 ();
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1830 choke me
1831 #endif
1832
1833 int
1834 main ()
1835 {
1836 return $2 ();
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_link "$LINENO"; then :
1842 eval "$3=yes"
1843 else
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_func
1855
1856 # ac_fn_cxx_try_cpp LINENO
1857 # ------------------------
1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_cpp ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_cpp conftest.$ac_ext"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } > conftest.i && {
1878 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 }; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886 ac_retval=1
1887 fi
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891 } # ac_fn_cxx_try_cpp
1892
1893 # ac_fn_cxx_try_link LINENO
1894 # -------------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_link ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928 fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_cxx_try_link
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1941
1942 It was created by dgedit $as_me 0.10.0, which was
1943 generated by GNU Autoconf 2.69. Invocation command line was
1944
1945 $ $0 $@
1946
1947 _ACEOF
1948 exec 5>>config.log
1949 {
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1954
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971
1972 _ASUNAME
1973
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 $as_echo "PATH: $as_dir"
1980 done
1981 IFS=$as_save_IFS
1982
1983 } >&5
1984
1985 cat >&5 <<_ACEOF
1986
1987
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1991
1992 _ACEOF
1993
1994
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2005 do
2006 for ac_arg
2007 do
2008 case $ac_arg in
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2012 continue ;;
2013 *\'*)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 esac
2016 case $ac_pass in
2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018 2)
2019 as_fn_append ac_configure_args1 " '$ac_arg'"
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2022 else
2023 case $ac_arg in
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030 esac
2031 ;;
2032 -* ) ac_must_keep_next=true ;;
2033 esac
2034 fi
2035 as_fn_append ac_configure_args " '$ac_arg'"
2036 ;;
2037 esac
2038 done
2039 done
2040 { ac_configure_args0=; unset ac_configure_args0;}
2041 { ac_configure_args1=; unset ac_configure_args1;}
2042
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log. We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2050 {
2051 echo
2052
2053 $as_echo "## ---------------- ##
2054 ## Cache variables. ##
2055 ## ---------------- ##"
2056 echo
2057 # The following way of writing the cache mishandles newlines in values,
2058 (
2059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in #(
2062 *${as_nl}*)
2063 case $ac_var in #(
2064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2066 esac
2067 case $ac_var in #(
2068 _ | IFS | as_nl) ;; #(
2069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2070 *) { eval $ac_var=; unset $ac_var;} ;;
2071 esac ;;
2072 esac
2073 done
2074 (set) 2>&1 |
2075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2076 *${as_nl}ac_space=\ *)
2077 sed -n \
2078 "s/'\''/'\''\\\\'\'''\''/g;
2079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2080 ;; #(
2081 *)
2082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083 ;;
2084 esac |
2085 sort
2086 )
2087 echo
2088
2089 $as_echo "## ----------------- ##
2090 ## Output variables. ##
2091 ## ----------------- ##"
2092 echo
2093 for ac_var in $ac_subst_vars
2094 do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2102
2103 if test -n "$ac_subst_files"; then
2104 $as_echo "## ------------------- ##
2105 ## File substitutions. ##
2106 ## ------------------- ##"
2107 echo
2108 for ac_var in $ac_subst_files
2109 do
2110 eval ac_val=\$$ac_var
2111 case $ac_val in
2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 esac
2114 $as_echo "$ac_var='\''$ac_val'\''"
2115 done | sort
2116 echo
2117 fi
2118
2119 if test -s confdefs.h; then
2120 $as_echo "## ----------- ##
2121 ## confdefs.h. ##
2122 ## ----------- ##"
2123 echo
2124 cat confdefs.h
2125 echo
2126 fi
2127 test "$ac_signal" != 0 &&
2128 $as_echo "$as_me: caught signal $ac_signal"
2129 $as_echo "$as_me: exit $exit_status"
2130 } >&5
2131 rm -f core *.core core.conftest.* &&
2132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2133 exit $exit_status
2134 ' 0
2135 for ac_signal in 1 2 13 15; do
2136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2137 done
2138 ac_signal=0
2139
2140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2141 rm -f -r conftest* confdefs.h
2142
2143 $as_echo "/* confdefs.h */" > confdefs.h
2144
2145 # Predefined preprocessor variables.
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_NAME "$PACKAGE_NAME"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_STRING "$PACKAGE_STRING"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_URL "$PACKAGE_URL"
2169 _ACEOF
2170
2171
2172 # Let the site file select an alternate cache file if it wants to.
2173 # Prefer an explicitly selected file to automatically selected ones.
2174 ac_site_file1=NONE
2175 ac_site_file2=NONE
2176 if test -n "$CONFIG_SITE"; then
2177 # We do not want a PATH search for config.site.
2178 case $CONFIG_SITE in #((
2179 -*) ac_site_file1=./$CONFIG_SITE;;
2180 */*) ac_site_file1=$CONFIG_SITE;;
2181 *) ac_site_file1=./$CONFIG_SITE;;
2182 esac
2183 elif test "x$prefix" != xNONE; then
2184 ac_site_file1=$prefix/share/config.site
2185 ac_site_file2=$prefix/etc/config.site
2186 else
2187 ac_site_file1=$ac_default_prefix/share/config.site
2188 ac_site_file2=$ac_default_prefix/etc/config.site
2189 fi
2190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 do
2192 test "x$ac_site_file" = xNONE && continue
2193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2196 sed 's/^/| /' "$ac_site_file" >&5
2197 . "$ac_site_file" \
2198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 as_fn_error $? "failed to load site script $ac_site_file
2201 See \`config.log' for more details" "$LINENO" 5; }
2202 fi
2203 done
2204
2205 if test -r "$cache_file"; then
2206 # Some versions of bash will fail to source /dev/null (special files
2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210 $as_echo "$as_me: loading cache $cache_file" >&6;}
2211 case $cache_file in
2212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213 *) . "./$cache_file";;
2214 esac
2215 fi
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219 >$cache_file
2220 fi
2221
2222 # Check that the precious variables saved in the cache have kept the same
2223 # value.
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227 eval ac_new_set=\$ac_env_${ac_var}_set
2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229 eval ac_new_val=\$ac_env_${ac_var}_value
2230 case $ac_old_set,$ac_new_set in
2231 set,)
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234 ac_cache_corrupted=: ;;
2235 ,set)
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238 ac_cache_corrupted=: ;;
2239 ,);;
2240 *)
2241 if test "x$ac_old_val" != "x$ac_new_val"; then
2242 # differences in whitespace do not lead to failure.
2243 ac_old_val_w=`echo x $ac_old_val`
2244 ac_new_val_w=`echo x $ac_new_val`
2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248 ac_cache_corrupted=:
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252 eval $ac_var=\$ac_old_val
2253 fi
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2258 fi;;
2259 esac
2260 # Pass precious variables to config.status.
2261 if test "$ac_new_set" = set; then
2262 case $ac_new_val in
2263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 *) ac_arg=$ac_var=$ac_new_val ;;
2265 esac
2266 case " $ac_configure_args " in
2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269 esac
2270 fi
2271 done
2272 if $ac_cache_corrupted; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 fi
2279 ## -------------------- ##
2280 ## Main body of script. ##
2281 ## -------------------- ##
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291 am__api_version='1.15'
2292
2293 ac_aux_dir=
2294 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2295 if test -f "$ac_dir/install-sh"; then
2296 ac_aux_dir=$ac_dir
2297 ac_install_sh="$ac_aux_dir/install-sh -c"
2298 break
2299 elif test -f "$ac_dir/install.sh"; then
2300 ac_aux_dir=$ac_dir
2301 ac_install_sh="$ac_aux_dir/install.sh -c"
2302 break
2303 elif test -f "$ac_dir/shtool"; then
2304 ac_aux_dir=$ac_dir
2305 ac_install_sh="$ac_aux_dir/shtool install -c"
2306 break
2307 fi
2308 done
2309 if test -z "$ac_aux_dir"; then
2310 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2311 fi
2312
2313 # These three variables are undocumented and unsupported,
2314 # and are intended to be withdrawn in a future Autoconf release.
2315 # They can cause serious problems if a builder's source tree is in a directory
2316 # whose full name contains unusual characters.
2317 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2318 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2319 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2320
2321
2322 # Find a good install program. We prefer a C program (faster),
2323 # so one script is as good as another. But avoid the broken or
2324 # incompatible versions:
2325 # SysV /etc/install, /usr/sbin/install
2326 # SunOS /usr/etc/install
2327 # IRIX /sbin/install
2328 # AIX /bin/install
2329 # AmigaOS /C/install, which installs bootblocks on floppy discs
2330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2333 # OS/2's system install, which has a completely different semantic
2334 # ./install, which can be erroneously created by make from ./install.sh.
2335 # Reject install programs that cannot install multiple files.
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2337 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2338 if test -z "$INSTALL"; then
2339 if ${ac_cv_path_install+:} false; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 # Account for people who put trailing slashes in PATH elements.
2348 case $as_dir/ in #((
2349 ./ | .// | /[cC]/* | \
2350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2351 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2352 /usr/ucb/* ) ;;
2353 *)
2354 # OSF1 and SCO ODT 3.0 have their own names for install.
2355 # Don't use installbsd from OSF since it installs stuff as root
2356 # by default.
2357 for ac_prog in ginstall scoinst install; do
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2360 if test $ac_prog = install &&
2361 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2362 # AIX install. It has an incompatible calling convention.
2363 :
2364 elif test $ac_prog = install &&
2365 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # program-specific install script used by HP pwplus--don't use.
2367 :
2368 else
2369 rm -rf conftest.one conftest.two conftest.dir
2370 echo one > conftest.one
2371 echo two > conftest.two
2372 mkdir conftest.dir
2373 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2374 test -s conftest.one && test -s conftest.two &&
2375 test -s conftest.dir/conftest.one &&
2376 test -s conftest.dir/conftest.two
2377 then
2378 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2379 break 3
2380 fi
2381 fi
2382 fi
2383 done
2384 done
2385 ;;
2386 esac
2387
2388 done
2389 IFS=$as_save_IFS
2390
2391 rm -rf conftest.one conftest.two conftest.dir
2392
2393 fi
2394 if test "${ac_cv_path_install+set}" = set; then
2395 INSTALL=$ac_cv_path_install
2396 else
2397 # As a last resort, use the slow shell script. Don't cache a
2398 # value for INSTALL within a source directory, because that will
2399 # break other packages using the cache if that directory is
2400 # removed, or if the value is a relative name.
2401 INSTALL=$ac_install_sh
2402 fi
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2405 $as_echo "$INSTALL" >&6; }
2406
2407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2408 # It thinks the first close brace ends the variable substitution.
2409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2410
2411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2412
2413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2414
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2416 $as_echo_n "checking whether build environment is sane... " >&6; }
2417 # Reject unsafe characters in $srcdir or the absolute working directory
2418 # name. Accept space and tab only in the latter.
2419 am_lf='
2420 '
2421 case `pwd` in
2422 *[\\\"\#\$\&\'\`$am_lf]*)
2423 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2424 esac
2425 case $srcdir in
2426 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2427 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2428 esac
2429
2430 # Do 'set' in a subshell so we don't clobber the current shell's
2431 # arguments. Must try -L first in case configure is actually a
2432 # symlink; some systems play weird games with the mod time of symlinks
2433 # (eg FreeBSD returns the mod time of the symlink's containing
2434 # directory).
2435 if (
2436 am_has_slept=no
2437 for am_try in 1 2; do
2438 echo "timestamp, slept: $am_has_slept" > conftest.file
2439 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2440 if test "$*" = "X"; then
2441 # -L didn't work.
2442 set X `ls -t "$srcdir/configure" conftest.file`
2443 fi
2444 if test "$*" != "X $srcdir/configure conftest.file" \
2445 && test "$*" != "X conftest.file $srcdir/configure"; then
2446
2447 # If neither matched, then we have a broken ls. This can happen
2448 # if, for instance, CONFIG_SHELL is bash and it inherits a
2449 # broken ls alias from the environment. This has actually
2450 # happened. Such a system could not be considered "sane".
2451 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2452 alias in your environment" "$LINENO" 5
2453 fi
2454 if test "$2" = conftest.file || test $am_try -eq 2; then
2455 break
2456 fi
2457 # Just in case.
2458 sleep 1
2459 am_has_slept=yes
2460 done
2461 test "$2" = conftest.file
2462 )
2463 then
2464 # Ok.
2465 :
2466 else
2467 as_fn_error $? "newly created file is older than distributed files!
2468 Check your system clock" "$LINENO" 5
2469 fi
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471 $as_echo "yes" >&6; }
2472 # If we didn't sleep, we still need to ensure time stamps of config.status and
2473 # generated files are strictly newer.
2474 am_sleep_pid=
2475 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2476 ( sleep 1 ) &
2477 am_sleep_pid=$!
2478 fi
2479
2480 rm -f conftest.file
2481
2482 test "$program_prefix" != NONE &&
2483 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2484 # Use a double $ so make ignores it.
2485 test "$program_suffix" != NONE &&
2486 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2487 # Double any \ or $.
2488 # By default was `s,x,x', remove it if useless.
2489 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2490 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2491
2492 # Expand $ac_aux_dir to an absolute path.
2493 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2494
2495 if test x"${MISSING+set}" != xset; then
2496 case $am_aux_dir in
2497 *\ * | *\ *)
2498 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2499 *)
2500 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2501 esac
2502 fi
2503 # Use eval to expand $SHELL
2504 if eval "$MISSING --is-lightweight"; then
2505 am_missing_run="$MISSING "
2506 else
2507 am_missing_run=
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2509 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2510 fi
2511
2512 if test x"${install_sh+set}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2516 *)
2517 install_sh="\${SHELL} $am_aux_dir/install-sh"
2518 esac
2519 fi
2520
2521 # Installed binaries are usually stripped using 'strip' when the user
2522 # run "make install-strip". However 'strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the 'STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_STRIP+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2557 $as_echo "$STRIP" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 fi
2565 if test -z "$ac_cv_prog_STRIP"; then
2566 ac_ct_STRIP=$STRIP
2567 # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2597 $as_echo "$ac_ct_STRIP" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2601 fi
2602
2603 if test "x$ac_ct_STRIP" = x; then
2604 STRIP=":"
2605 else
2606 case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610 ac_tool_warned=yes ;;
2611 esac
2612 STRIP=$ac_ct_STRIP
2613 fi
2614 else
2615 STRIP="$ac_cv_prog_STRIP"
2616 fi
2617
2618 fi
2619 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2620
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2623 if test -z "$MKDIR_P"; then
2624 if ${ac_cv_path_mkdir+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_prog in mkdir gmkdir; do
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2635 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2636 'mkdir (GNU coreutils) '* | \
2637 'mkdir (coreutils) '* | \
2638 'mkdir (fileutils) '4.1*)
2639 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2640 break 3;;
2641 esac
2642 done
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648
2649 test -d ./--version && rmdir ./--version
2650 if test "${ac_cv_path_mkdir+set}" = set; then
2651 MKDIR_P="$ac_cv_path_mkdir -p"
2652 else
2653 # As a last resort, use the slow shell script. Don't cache a
2654 # value for MKDIR_P within a source directory, because that will
2655 # break other packages using the cache if that directory is
2656 # removed, or if the value is a relative name.
2657 MKDIR_P="$ac_install_sh -d"
2658 fi
2659 fi
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2661 $as_echo "$MKDIR_P" >&6; }
2662
2663 for ac_prog in gawk mawk nawk awk
2664 do
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666 set dummy $ac_prog; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_AWK+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$AWK"; then
2673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_AWK="$ac_prog"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686 done
2687 done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 AWK=$ac_cv_prog_AWK
2693 if test -n "$AWK"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2695 $as_echo "$AWK" >&6; }
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701
2702 test -n "$AWK" && break
2703 done
2704
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2706 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2707 set x ${MAKE-make}
2708 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2709 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 cat >conftest.make <<\_ACEOF
2713 SHELL = /bin/sh
2714 all:
2715 @echo '@@@%%%=$(MAKE)=@@@%%%'
2716 _ACEOF
2717 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2718 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2719 *@@@%%%=?*=@@@%%%*)
2720 eval ac_cv_prog_make_${ac_make}_set=yes;;
2721 *)
2722 eval ac_cv_prog_make_${ac_make}_set=no;;
2723 esac
2724 rm -f conftest.make
2725 fi
2726 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2728 $as_echo "yes" >&6; }
2729 SET_MAKE=
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 SET_MAKE="MAKE=${MAKE-make}"
2734 fi
2735
2736 rm -rf .tst 2>/dev/null
2737 mkdir .tst 2>/dev/null
2738 if test -d .tst; then
2739 am__leading_dot=.
2740 else
2741 am__leading_dot=_
2742 fi
2743 rmdir .tst 2>/dev/null
2744
2745 # Check whether --enable-silent-rules was given.
2746 if test "${enable_silent_rules+set}" = set; then :
2747 enableval=$enable_silent_rules;
2748 fi
2749
2750 case $enable_silent_rules in # (((
2751 yes) AM_DEFAULT_VERBOSITY=0;;
2752 no) AM_DEFAULT_VERBOSITY=1;;
2753 *) AM_DEFAULT_VERBOSITY=1;;
2754 esac
2755 am_make=${MAKE-make}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2757 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2758 if ${am_cv_make_support_nested_variables+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if $as_echo 'TRUE=$(BAR$(V))
2762 BAR0=false
2763 BAR1=true
2764 V=1
2765 am__doit:
2766 @$(TRUE)
2767 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2768 am_cv_make_support_nested_variables=yes
2769 else
2770 am_cv_make_support_nested_variables=no
2771 fi
2772 fi
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2774 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2775 if test $am_cv_make_support_nested_variables = yes; then
2776 AM_V='$(V)'
2777 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2778 else
2779 AM_V=$AM_DEFAULT_VERBOSITY
2780 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2781 fi
2782 AM_BACKSLASH='\'
2783
2784 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2785 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2786 # is not polluted with repeated "-I."
2787 am__isrc=' -I$(srcdir)'
2788 # test to see if srcdir already configured
2789 if test -f $srcdir/config.status; then
2790 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791 fi
2792 fi
2793
2794 # test whether we have cygpath
2795 if test -z "$CYGPATH_W"; then
2796 if (cygpath --version) >/dev/null 2>/dev/null; then
2797 CYGPATH_W='cygpath -w'
2798 else
2799 CYGPATH_W=echo
2800 fi
2801 fi
2802
2803
2804 # Define the identity of the package.
2805 PACKAGE='dgedit'
2806 VERSION='0.10.0'
2807
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE "$PACKAGE"
2811 _ACEOF
2812
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define VERSION "$VERSION"
2816 _ACEOF
2817
2818 # Some tools Automake needs.
2819
2820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2821
2822
2823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2824
2825
2826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2827
2828
2829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2830
2831
2832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2833
2834 # For better backward compatibility. To be removed once Automake 1.9.x
2835 # dies out for good. For more background, see:
2836 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2837 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2838 mkdir_p='$(MKDIR_P)'
2839
2840 # We need awk for the "check" target (and possibly the TAP driver). The
2841 # system "awk" is bad on some platforms.
2842 # Always define AMTAR for backward compatibility. Yes, it's still used
2843 # in the wild :-( We should find a proper way to deprecate it ...
2844 AMTAR='$${TAR-tar}'
2845
2846
2847 # We'll loop over all known methods to create a tar archive until one works.
2848 _am_tools='gnutar pax cpio none'
2849
2850 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2851
2852
2853
2854
2855
2856
2857 # POSIX will say in a future version that running "rm -f" with no argument
2858 # is OK; and we want to be able to make that assumption in our Makefile
2859 # recipes. So use an aggressive probe to check that the usage we want is
2860 # actually supported "in the wild" to an acceptable degree.
2861 # See automake bug#10828.
2862 # To make any issue more visible, cause the running configure to be aborted
2863 # by default if the 'rm' program in use doesn't match our expectations; the
2864 # user can still override this though.
2865 if rm -f && rm -fr && rm -rf; then : OK; else
2866 cat >&2 <<'END'
2867 Oops!
2868
2869 Your 'rm' program seems unable to run without file operands specified
2870 on the command line, even when the '-f' option is present. This is contrary
2871 to the behaviour of most rm programs out there, and not conforming with
2872 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2873
2874 Please tell [email protected] about your system, including the value
2875 of your $PATH and any error possibly output before this message. This
2876 can help us improve future automake versions.
2877
2878 END
2879 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2880 echo 'Configuration will proceed anyway, since you have set the' >&2
2881 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2882 echo >&2
2883 else
2884 cat >&2 <<'END'
2885 Aborting the configuration process, to ensure you take notice of the issue.
2886
2887 You can download and install GNU coreutils to get an 'rm' implementation
2888 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2889
2890 If you want to complete the configuration process using your problematic
2891 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2892 to "yes", and re-run configure.
2893
2894 END
2895 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2896 fi
2897 fi
2898
2899
2900 ac_ext=cpp
2901 ac_cpp='$CXXCPP $CPPFLAGS'
2902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2905 if test -z "$CXX"; then
2906 if test -n "$CCC"; then
2907 CXX=$CCC
2908 else
2909 if test -n "$ac_tool_prefix"; then
2910 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2911 do
2912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_CXX+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$CXX"; then
2920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 CXX=$ac_cv_prog_CXX
2940 if test -n "$CXX"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2942 $as_echo "$CXX" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 test -n "$CXX" && break
2950 done
2951 fi
2952 if test -z "$CXX"; then
2953 ac_ct_CXX=$CXX
2954 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2955 do
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$ac_ct_CXX"; then
2964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_ac_ct_CXX="$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2984 if test -n "$ac_ct_CXX"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2986 $as_echo "$ac_ct_CXX" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 test -n "$ac_ct_CXX" && break
2994 done
2995
2996 if test "x$ac_ct_CXX" = x; then
2997 CXX="g++"
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005 CXX=$ac_ct_CXX
3006 fi
3007 fi
3008
3009 fi
3010 fi
3011 # Provide some information about the compiler.
3012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3013 set X $ac_compile
3014 ac_compiler=$2
3015 for ac_option in --version -v -V -qversion; do
3016 { { ac_try="$ac_compiler $ac_option >&5"
3017 case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020 esac
3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3024 ac_status=$?
3025 if test -s conftest.err; then
3026 sed '10a\
3027 ... rest of stderr output deleted ...
3028 10q' conftest.err >conftest.er1
3029 cat conftest.er1 >&5
3030 fi
3031 rm -f conftest.er1 conftest.err
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }
3034 done
3035
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3038
3039 int
3040 main ()
3041 {
3042
3043 ;
3044 return 0;
3045 }
3046 _ACEOF
3047 ac_clean_files_save=$ac_clean_files
3048 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3049 # Try to create an executable without -o first, disregard a.out.
3050 # It will help us diagnose broken compilers, and finding out an intuition
3051 # of exeext.
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3053 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3054 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3055
3056 # The possible output files:
3057 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3058
3059 ac_rmfiles=
3060 for ac_file in $ac_files
3061 do
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3065 esac
3066 done
3067 rm -f $ac_rmfiles
3068
3069 if { { ac_try="$ac_link_default"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link_default") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3081 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3082 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3083 # so that the user can short-circuit this test for compilers unknown to
3084 # Autoconf.
3085 for ac_file in $ac_files ''
3086 do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3090 ;;
3091 [ab].out )
3092 # We found the default executable, but exeext='' is most
3093 # certainly right.
3094 break;;
3095 *.* )
3096 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3097 then :; else
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 fi
3100 # We set ac_cv_exeext here because the later test for it is not
3101 # safe: cross compilers may not add the suffix if given an `-o'
3102 # argument, so we may need to know it at that point already.
3103 # Even if this section looks crufty: it has the advantage of
3104 # actually working.
3105 break;;
3106 * )
3107 break;;
3108 esac
3109 done
3110 test "$ac_cv_exeext" = no && ac_cv_exeext=
3111
3112 else
3113 ac_file=''
3114 fi
3115 if test -z "$ac_file"; then :
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 $as_echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error 77 "C++ compiler cannot create executables
3124 See \`config.log' for more details" "$LINENO" 5; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3130 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3132 $as_echo "$ac_file" >&6; }
3133 ac_exeext=$ac_cv_exeext
3134
3135 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3138 $as_echo_n "checking for suffix of executables... " >&6; }
3139 if { { ac_try="$ac_link"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3151 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3152 # work properly (i.e., refer to `conftest.exe'), while it won't with
3153 # `rm'.
3154 for ac_file in conftest.exe conftest conftest.*; do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3159 break;;
3160 * ) break;;
3161 esac
3162 done
3163 else
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details" "$LINENO" 5; }
3168 fi
3169 rm -f conftest conftest$ac_cv_exeext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3171 $as_echo "$ac_cv_exeext" >&6; }
3172
3173 rm -f conftest.$ac_ext
3174 EXEEXT=$ac_cv_exeext
3175 ac_exeext=$EXEEXT
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178 #include <stdio.h>
3179 int
3180 main ()
3181 {
3182 FILE *f = fopen ("conftest.out", "w");
3183 return ferror (f) || fclose (f) != 0;
3184
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 ac_clean_files="$ac_clean_files conftest.out"
3190 # Check that the compiler produces executables we can run. If not, either
3191 # the compiler is broken, or we cross compile.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3193 $as_echo_n "checking whether we are cross compiling... " >&6; }
3194 if test "$cross_compiling" != yes; then
3195 { { ac_try="$ac_link"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_link") 2>&5
3203 ac_status=$?
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3206 if { ac_try='./conftest$ac_cv_exeext'
3207 { { case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; }; then
3217 cross_compiling=no
3218 else
3219 if test "$cross_compiling" = maybe; then
3220 cross_compiling=yes
3221 else
3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $? "cannot run C++ compiled programs.
3225 If you meant to cross compile, use \`--host'.
3226 See \`config.log' for more details" "$LINENO" 5; }
3227 fi
3228 fi
3229 fi
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3231 $as_echo "$cross_compiling" >&6; }
3232
3233 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3234 ac_clean_files=$ac_clean_files_save
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3236 $as_echo_n "checking for suffix of object files... " >&6; }
3237 if ${ac_cv_objext+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242
3243 int
3244 main ()
3245 {
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.o conftest.obj
3252 if { { ac_try="$ac_compile"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compile") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3268 break;;
3269 esac
3270 done
3271 else
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "cannot compute suffix of object files: cannot compile
3278 See \`config.log' for more details" "$LINENO" 5; }
3279 fi
3280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283 $as_echo "$ac_cv_objext" >&6; }
3284 OBJEXT=$ac_cv_objext
3285 ac_objext=$OBJEXT
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3287 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3288 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293
3294 int
3295 main ()
3296 {
3297 #ifndef __GNUC__
3298 choke me
3299 #endif
3300
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 if ac_fn_cxx_try_compile "$LINENO"; then :
3306 ac_compiler_gnu=yes
3307 else
3308 ac_compiler_gnu=no
3309 fi
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3312
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3315 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3316 if test $ac_compiler_gnu = yes; then
3317 GXX=yes
3318 else
3319 GXX=
3320 fi
3321 ac_test_CXXFLAGS=${CXXFLAGS+set}
3322 ac_save_CXXFLAGS=$CXXFLAGS
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3324 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3325 if ${ac_cv_prog_cxx_g+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3329 ac_cxx_werror_flag=yes
3330 ac_cv_prog_cxx_g=no
3331 CXXFLAGS="-g"
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334
3335 int
3336 main ()
3337 {
3338
3339 ;
3340 return 0;
3341 }
3342 _ACEOF
3343 if ac_fn_cxx_try_compile "$LINENO"; then :
3344 ac_cv_prog_cxx_g=yes
3345 else
3346 CXXFLAGS=""
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349
3350 int
3351 main ()
3352 {
3353
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 if ac_fn_cxx_try_compile "$LINENO"; then :
3359
3360 else
3361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3362 CXXFLAGS="-g"
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365
3366 int
3367 main ()
3368 {
3369
3370 ;
3371 return 0;
3372 }
3373 _ACEOF
3374 if ac_fn_cxx_try_compile "$LINENO"; then :
3375 ac_cv_prog_cxx_g=yes
3376 fi
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 fi
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 fi
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3385 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3386 if test "$ac_test_CXXFLAGS" = set; then
3387 CXXFLAGS=$ac_save_CXXFLAGS
3388 elif test $ac_cv_prog_cxx_g = yes; then
3389 if test "$GXX" = yes; then
3390 CXXFLAGS="-g -O2"
3391 else
3392 CXXFLAGS="-g"
3393 fi
3394 else
3395 if test "$GXX" = yes; then
3396 CXXFLAGS="-O2"
3397 else
3398 CXXFLAGS=
3399 fi
3400 fi
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 DEPDIR="${am__leading_dot}deps"
3407
3408 ac_config_commands="$ac_config_commands depfiles"
3409
3410
3411 am_make=${MAKE-make}
3412 cat > confinc << 'END'
3413 am__doit:
3414 @echo this is the am__doit target
3415 .PHONY: am__doit
3416 END
3417 # If we don't find an include directive, just comment out the code.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3419 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3420 am__include="#"
3421 am__quote=
3422 _am_result=none
3423 # First try GNU make style include.
3424 echo "include confinc" > confmf
3425 # Ignore all kinds of additional output from 'make'.
3426 case `$am_make -s -f confmf 2> /dev/null` in #(
3427 *the\ am__doit\ target*)
3428 am__include=include
3429 am__quote=
3430 _am_result=GNU
3431 ;;
3432 esac
3433 # Now try BSD make style include.
3434 if test "$am__include" = "#"; then
3435 echo '.include "confinc"' > confmf
3436 case `$am_make -s -f confmf 2> /dev/null` in #(
3437 *the\ am__doit\ target*)
3438 am__include=.include
3439 am__quote="\""
3440 _am_result=BSD
3441 ;;
3442 esac
3443 fi
3444
3445
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3447 $as_echo "$_am_result" >&6; }
3448 rm -f confinc confmf
3449
3450 # Check whether --enable-dependency-tracking was given.
3451 if test "${enable_dependency_tracking+set}" = set; then :
3452 enableval=$enable_dependency_tracking;
3453 fi
3454
3455 if test "x$enable_dependency_tracking" != xno; then
3456 am_depcomp="$ac_aux_dir/depcomp"
3457 AMDEPBACKSLASH='\'
3458 am__nodep='_no'
3459 fi
3460 if test "x$enable_dependency_tracking" != xno; then
3461 AMDEP_TRUE=
3462 AMDEP_FALSE='#'
3463 else
3464 AMDEP_TRUE='#'
3465 AMDEP_FALSE=
3466 fi
3467
3468
3469
3470 depcc="$CXX" am_compiler_list=
3471
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3473 $as_echo_n "checking dependency style of $depcc... " >&6; }
3474 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3478 # We make a subdir and do the tests there. Otherwise we can end up
3479 # making bogus files that we don't know about and never remove. For
3480 # instance it was reported that on HP-UX the gcc test will end up
3481 # making a dummy file named 'D' -- because '-MD' means "put the output
3482 # in D".
3483 rm -rf conftest.dir
3484 mkdir conftest.dir
3485 # Copy depcomp to subdir because otherwise we won't find it if we're
3486 # using a relative directory.
3487 cp "$am_depcomp" conftest.dir
3488 cd conftest.dir
3489 # We will build objects and dependencies in a subdirectory because
3490 # it helps to detect inapplicable dependency modes. For instance
3491 # both Tru64's cc and ICC support -MD to output dependencies as a
3492 # side effect of compilation, but ICC will put the dependencies in
3493 # the current directory while Tru64 will put them in the object
3494 # directory.
3495 mkdir sub
3496
3497 am_cv_CXX_dependencies_compiler_type=none
3498 if test "$am_compiler_list" = ""; then
3499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3500 fi
3501 am__universal=false
3502 case " $depcc " in #(
3503 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3504 esac
3505
3506 for depmode in $am_compiler_list; do
3507 # Setup a source with many dependencies, because some compilers
3508 # like to wrap large dependency lists on column 80 (with \), and
3509 # we should not choose a depcomp mode which is confused by this.
3510 #
3511 # We need to recreate these files for each test, as the compiler may
3512 # overwrite some of them when testing with obscure command lines.
3513 # This happens at least with the AIX C compiler.
3514 : > sub/conftest.c
3515 for i in 1 2 3 4 5 6; do
3516 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3517 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3518 # Solaris 10 /bin/sh.
3519 echo '/* dummy */' > sub/conftst$i.h
3520 done
3521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3522
3523 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3524 # mode. It turns out that the SunPro C++ compiler does not properly
3525 # handle '-M -o', and we need to detect this. Also, some Intel
3526 # versions had trouble with output in subdirs.
3527 am__obj=sub/conftest.${OBJEXT-o}
3528 am__minus_obj="-o $am__obj"
3529 case $depmode in
3530 gcc)
3531 # This depmode causes a compiler race in universal mode.
3532 test "$am__universal" = false || continue
3533 ;;
3534 nosideeffect)
3535 # After this tag, mechanisms are not by side-effect, so they'll
3536 # only be used when explicitly requested.
3537 if test "x$enable_dependency_tracking" = xyes; then
3538 continue
3539 else
3540 break
3541 fi
3542 ;;
3543 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3544 # This compiler won't grok '-c -o', but also, the minuso test has
3545 # not run yet. These depmodes are late enough in the game, and
3546 # so weak that their functioning should not be impacted.
3547 am__obj=conftest.${OBJEXT-o}
3548 am__minus_obj=
3549 ;;
3550 none) break ;;
3551 esac
3552 if depmode=$depmode \
3553 source=sub/conftest.c object=$am__obj \
3554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3555 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3556 >/dev/null 2>conftest.err &&
3557 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3559 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3561 # icc doesn't choke on unknown options, it will just issue warnings
3562 # or remarks (even with -Werror). So we grep stderr for any message
3563 # that says an option was ignored or not supported.
3564 # When given -MP, icc 7.0 and 7.1 complain thusly:
3565 # icc: Command line warning: ignoring option '-M'; no argument required
3566 # The diagnosis changed in icc 8.0:
3567 # icc: Command line remark: option '-MP' not supported
3568 if (grep 'ignoring option' conftest.err ||
3569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3570 am_cv_CXX_dependencies_compiler_type=$depmode
3571 break
3572 fi
3573 fi
3574 done
3575
3576 cd ..
3577 rm -rf conftest.dir
3578 else
3579 am_cv_CXX_dependencies_compiler_type=none
3580 fi
3581
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3584 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3585 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3586
3587 if
3588 test "x$enable_dependency_tracking" != xno \
3589 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3590 am__fastdepCXX_TRUE=
3591 am__fastdepCXX_FALSE='#'
3592 else
3593 am__fastdepCXX_TRUE='#'
3594 am__fastdepCXX_FALSE=
3595 fi
3596
3597
3598 #AM_PROG_CC_C_O
3599
3600 case `pwd` in
3601 *\ * | *\ *)
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3603 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3604 esac
3605
3606
3607
3608 macro_version='2.4.6'
3609 macro_revision='2.4.6'
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623 ltmain=$ac_aux_dir/ltmain.sh
3624
3625 # Make sure we can run config.sub.
3626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3627 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3628
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3630 $as_echo_n "checking build system type... " >&6; }
3631 if ${ac_cv_build+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 ac_build_alias=$build_alias
3635 test "x$ac_build_alias" = x &&
3636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3637 test "x$ac_build_alias" = x &&
3638 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3640 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3641
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3644 $as_echo "$ac_cv_build" >&6; }
3645 case $ac_cv_build in
3646 *-*-*) ;;
3647 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3648 esac
3649 build=$ac_cv_build
3650 ac_save_IFS=$IFS; IFS='-'
3651 set x $ac_cv_build
3652 shift
3653 build_cpu=$1
3654 build_vendor=$2
3655 shift; shift
3656 # Remember, the first character of IFS is used to create $*,
3657 # except with old shells:
3658 build_os=$*
3659 IFS=$ac_save_IFS
3660 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3661
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3664 $as_echo_n "checking host system type... " >&6; }
3665 if ${ac_cv_host+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test "x$host_alias" = x; then
3669 ac_cv_host=$ac_cv_build
3670 else
3671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3672 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3673 fi
3674
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3677 $as_echo "$ac_cv_host" >&6; }
3678 case $ac_cv_host in
3679 *-*-*) ;;
3680 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3681 esac
3682 host=$ac_cv_host
3683 ac_save_IFS=$IFS; IFS='-'
3684 set x $ac_cv_host
3685 shift
3686 host_cpu=$1
3687 host_vendor=$2
3688 shift; shift
3689 # Remember, the first character of IFS is used to create $*,
3690 # except with old shells:
3691 host_os=$*
3692 IFS=$ac_save_IFS
3693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3694
3695
3696 # Backslashify metacharacters that are still active within
3697 # double-quoted strings.
3698 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3699
3700 # Same as above, but do not quote variable references.
3701 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3702
3703 # Sed substitution to delay expansion of an escaped shell variable in a
3704 # double_quote_subst'ed string.
3705 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3706
3707 # Sed substitution to delay expansion of an escaped single quote.
3708 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3709
3710 # Sed substitution to avoid accidental globbing in evaled expressions
3711 no_glob_subst='s/\*/\\\*/g'
3712
3713 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3714 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3715 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3716
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3718 $as_echo_n "checking how to print strings... " >&6; }
3719 # Test print first, because it will be a builtin if present.
3720 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3721 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3722 ECHO='print -r --'
3723 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3724 ECHO='printf %s\n'
3725 else
3726 # Use this function as a fallback that always works.
3727 func_fallback_echo ()
3728 {
3729 eval 'cat <<_LTECHO_EOF
3730 $1
3731 _LTECHO_EOF'
3732 }
3733 ECHO='func_fallback_echo'
3734 fi
3735
3736 # func_echo_all arg...
3737 # Invoke $ECHO with all args, space-separated.
3738 func_echo_all ()
3739 {
3740 $ECHO ""
3741 }
3742
3743 case $ECHO in
3744 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3745 $as_echo "printf" >&6; } ;;
3746 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3747 $as_echo "print -r" >&6; } ;;
3748 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3749 $as_echo "cat" >&6; } ;;
3750 esac
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765 ac_ext=c
3766 ac_cpp='$CPP $CPPFLAGS'
3767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 if test -n "$ac_tool_prefix"; then
3771 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3772 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if ${ac_cv_prog_CC+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$CC"; then
3779 ac_cv_prog_CC="$CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 CC=$ac_cv_prog_CC
3799 if test -n "$CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3801 $as_echo "$CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3805 fi
3806
3807
3808 fi
3809 if test -z "$ac_cv_prog_CC"; then
3810 ac_ct_CC=$CC
3811 # Extract the first word of "gcc", so it can be a program name with args.
3812 set dummy gcc; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 if test -n "$ac_ct_CC"; then
3819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_CC="gcc"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 $as_echo "$ac_ct_CC" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847 if test "x$ac_ct_CC" = x; then
3848 CC=""
3849 else
3850 case $cross_compiling:$ac_tool_warned in
3851 yes:)
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3854 ac_tool_warned=yes ;;
3855 esac
3856 CC=$ac_ct_CC
3857 fi
3858 else
3859 CC="$ac_cv_prog_CC"
3860 fi
3861
3862 if test -z "$CC"; then
3863 if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3865 set dummy ${ac_tool_prefix}cc; ac_word=$2
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if ${ac_cv_prog_CC+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 if test -n "$CC"; then
3872 ac_cv_prog_CC="$CC" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_CC="${ac_tool_prefix}cc"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885 done
3886 done
3887 IFS=$as_save_IFS
3888
3889 fi
3890 fi
3891 CC=$ac_cv_prog_CC
3892 if test -n "$CC"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894 $as_echo "$CC" >&6; }
3895 else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3898 fi
3899
3900
3901 fi
3902 fi
3903 if test -z "$CC"; then
3904 # Extract the first word of "cc", so it can be a program name with args.
3905 set dummy cc; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_CC+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3913 else
3914 ac_prog_rejected=no
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3923 ac_prog_rejected=yes
3924 continue
3925 fi
3926 ac_cv_prog_CC="cc"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3929 fi
3930 done
3931 done
3932 IFS=$as_save_IFS
3933
3934 if test $ac_prog_rejected = yes; then
3935 # We found a bogon in the path, so make sure we never use it.
3936 set dummy $ac_cv_prog_CC
3937 shift
3938 if test $# != 0; then
3939 # We chose a different compiler from the bogus one.
3940 # However, it has the same basename, so the bogon will be chosen
3941 # first if we set CC to just the basename; use the full file name.
3942 shift
3943 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3944 fi
3945 fi
3946 fi
3947 fi
3948 CC=$ac_cv_prog_CC
3949 if test -n "$CC"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3951 $as_echo "$CC" >&6; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 fi
3956
3957
3958 fi
3959 if test -z "$CC"; then
3960 if test -n "$ac_tool_prefix"; then
3961 for ac_prog in cl.exe
3962 do
3963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CC+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 CC=$ac_cv_prog_CC
3991 if test -n "$CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 test -n "$CC" && break
4001 done
4002 fi
4003 if test -z "$CC"; then
4004 ac_ct_CC=$CC
4005 for ac_prog in cl.exe
4006 do
4007 # Extract the first word of "$ac_prog", so it can be a program name with args.
4008 set dummy $ac_prog; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$ac_ct_CC"; then
4015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_ac_ct_CC="$ac_prog"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4027 fi
4028 done
4029 done
4030 IFS=$as_save_IFS
4031
4032 fi
4033 fi
4034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4035 if test -n "$ac_ct_CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4037 $as_echo "$ac_ct_CC" >&6; }
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 fi
4042
4043
4044 test -n "$ac_ct_CC" && break
4045 done
4046
4047 if test "x$ac_ct_CC" = x; then
4048 CC=""
4049 else
4050 case $cross_compiling:$ac_tool_warned in
4051 yes:)
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4054 ac_tool_warned=yes ;;
4055 esac
4056 CC=$ac_ct_CC
4057 fi
4058 fi
4059
4060 fi
4061
4062
4063 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error $? "no acceptable C compiler found in \$PATH
4066 See \`config.log' for more details" "$LINENO" 5; }
4067
4068 # Provide some information about the compiler.
4069 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4070 set X $ac_compile
4071 ac_compiler=$2
4072 for ac_option in --version -v -V -qversion; do
4073 { { ac_try="$ac_compiler $ac_option >&5"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4081 ac_status=$?
4082 if test -s conftest.err; then
4083 sed '10a\
4084 ... rest of stderr output deleted ...
4085 10q' conftest.err >conftest.er1
4086 cat conftest.er1 >&5
4087 fi
4088 rm -f conftest.er1 conftest.err
4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }
4091 done
4092
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4094 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4095 if ${ac_cv_c_compiler_gnu+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100
4101 int
4102 main ()
4103 {
4104 #ifndef __GNUC__
4105 choke me
4106 #endif
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113 ac_compiler_gnu=yes
4114 else
4115 ac_compiler_gnu=no
4116 fi
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4119
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4122 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4123 if test $ac_compiler_gnu = yes; then
4124 GCC=yes
4125 else
4126 GCC=
4127 fi
4128 ac_test_CFLAGS=${CFLAGS+set}
4129 ac_save_CFLAGS=$CFLAGS
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4131 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4132 if ${ac_cv_prog_cc_g+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 ac_save_c_werror_flag=$ac_c_werror_flag
4136 ac_c_werror_flag=yes
4137 ac_cv_prog_cc_g=no
4138 CFLAGS="-g"
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_g=yes
4152 else
4153 CFLAGS=""
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156
4157 int
4158 main ()
4159 {
4160
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166
4167 else
4168 ac_c_werror_flag=$ac_save_c_werror_flag
4169 CFLAGS="-g"
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172
4173 int
4174 main ()
4175 {
4176
4177 ;
4178 return 0;
4179 }
4180 _ACEOF
4181 if ac_fn_c_try_compile "$LINENO"; then :
4182 ac_cv_prog_cc_g=yes
4183 fi
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 fi
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 ac_c_werror_flag=$ac_save_c_werror_flag
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4192 $as_echo "$ac_cv_prog_cc_g" >&6; }
4193 if test "$ac_test_CFLAGS" = set; then
4194 CFLAGS=$ac_save_CFLAGS
4195 elif test $ac_cv_prog_cc_g = yes; then
4196 if test "$GCC" = yes; then
4197 CFLAGS="-g -O2"
4198 else
4199 CFLAGS="-g"
4200 fi
4201 else
4202 if test "$GCC" = yes; then
4203 CFLAGS="-O2"
4204 else
4205 CFLAGS=
4206 fi
4207 fi
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4209 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4210 if ${ac_cv_prog_cc_c89+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 ac_cv_prog_cc_c89=no
4214 ac_save_CC=$CC
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #include <stdarg.h>
4218 #include <stdio.h>
4219 struct stat;
4220 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4221 struct buf { int x; };
4222 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4223 static char *e (p, i)
4224 char **p;
4225 int i;
4226 {
4227 return p[i];
4228 }
4229 static char *f (char * (*g) (char **, int), char **p, ...)
4230 {
4231 char *s;
4232 va_list v;
4233 va_start (v,p);
4234 s = g (p, va_arg (v,int));
4235 va_end (v);
4236 return s;
4237 }
4238
4239 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4240 function prototypes and stuff, but not '\xHH' hex character constants.
4241 These don't provoke an error unfortunately, instead are silently treated
4242 as 'x'. The following induces an error, until -std is added to get
4243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4244 array size at least. It's necessary to write '\x00'==0 to get something
4245 that's true only with -std. */
4246 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4247
4248 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4249 inside strings and character constants. */
4250 #define FOO(x) 'x'
4251 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4252
4253 int test (int i, double x);
4254 struct s1 {int (*f) (int a);};
4255 struct s2 {int (*f) (double a);};
4256 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4257 int argc;
4258 char **argv;
4259 int
4260 main ()
4261 {
4262 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4269 do
4270 CC="$ac_save_CC $ac_arg"
4271 if ac_fn_c_try_compile "$LINENO"; then :
4272 ac_cv_prog_cc_c89=$ac_arg
4273 fi
4274 rm -f core conftest.err conftest.$ac_objext
4275 test "x$ac_cv_prog_cc_c89" != "xno" && break
4276 done
4277 rm -f conftest.$ac_ext
4278 CC=$ac_save_CC
4279
4280 fi
4281 # AC_CACHE_VAL
4282 case "x$ac_cv_prog_cc_c89" in
4283 x)
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4285 $as_echo "none needed" >&6; } ;;
4286 xno)
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4288 $as_echo "unsupported" >&6; } ;;
4289 *)
4290 CC="$CC $ac_cv_prog_cc_c89"
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4292 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4293 esac
4294 if test "x$ac_cv_prog_cc_c89" != xno; then :
4295
4296 fi
4297
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4310 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4311 if ${am_cv_prog_cc_c_o+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 # Make sure it works both with $CC and with simple cc.
4326 # Following AC_PROG_CC_C_O, we do the test twice because some
4327 # compilers refuse to overwrite an existing .o file with -o,
4328 # though they will create one.
4329 am_cv_prog_cc_c_o=yes
4330 for am_i in 1 2; do
4331 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4332 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } \
4336 && test -f conftest2.$ac_objext; then
4337 : OK
4338 else
4339 am_cv_prog_cc_c_o=no
4340 break
4341 fi
4342 done
4343 rm -f core conftest*
4344 unset am_i
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4347 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4348 if test "$am_cv_prog_cc_c_o" != yes; then
4349 # Losing compiler, so override with the script.
4350 # FIXME: It is wrong to rewrite CC.
4351 # But if we don't then we get into trouble of one sort or another.
4352 # A longer-term fix would be to have automake use am__CC in this case,
4353 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4354 CC="$am_aux_dir/compile $CC"
4355 fi
4356 ac_ext=c
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362
4363 depcc="$CC" am_compiler_list=
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4366 $as_echo_n "checking dependency style of $depcc... " >&6; }
4367 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4371 # We make a subdir and do the tests there. Otherwise we can end up
4372 # making bogus files that we don't know about and never remove. For
4373 # instance it was reported that on HP-UX the gcc test will end up
4374 # making a dummy file named 'D' -- because '-MD' means "put the output
4375 # in D".
4376 rm -rf conftest.dir
4377 mkdir conftest.dir
4378 # Copy depcomp to subdir because otherwise we won't find it if we're
4379 # using a relative directory.
4380 cp "$am_depcomp" conftest.dir
4381 cd conftest.dir
4382 # We will build objects and dependencies in a subdirectory because
4383 # it helps to detect inapplicable dependency modes. For instance
4384 # both Tru64's cc and ICC support -MD to output dependencies as a
4385 # side effect of compilation, but ICC will put the dependencies in
4386 # the current directory while Tru64 will put them in the object
4387 # directory.
4388 mkdir sub
4389
4390 am_cv_CC_dependencies_compiler_type=none
4391 if test "$am_compiler_list" = ""; then
4392 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4393 fi
4394 am__universal=false
4395 case " $depcc " in #(
4396 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4397 esac
4398
4399 for depmode in $am_compiler_list; do
4400 # Setup a source with many dependencies, because some compilers
4401 # like to wrap large dependency lists on column 80 (with \), and
4402 # we should not choose a depcomp mode which is confused by this.
4403 #
4404 # We need to recreate these files for each test, as the compiler may
4405 # overwrite some of them when testing with obscure command lines.
4406 # This happens at least with the AIX C compiler.
4407 : > sub/conftest.c
4408 for i in 1 2 3 4 5 6; do
4409 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4410 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4411 # Solaris 10 /bin/sh.
4412 echo '/* dummy */' > sub/conftst$i.h
4413 done
4414 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4415
4416 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4417 # mode. It turns out that the SunPro C++ compiler does not properly
4418 # handle '-M -o', and we need to detect this. Also, some Intel
4419 # versions had trouble with output in subdirs.
4420 am__obj=sub/conftest.${OBJEXT-o}
4421 am__minus_obj="-o $am__obj"
4422 case $depmode in
4423 gcc)
4424 # This depmode causes a compiler race in universal mode.
4425 test "$am__universal" = false || continue
4426 ;;
4427 nosideeffect)
4428 # After this tag, mechanisms are not by side-effect, so they'll
4429 # only be used when explicitly requested.
4430 if test "x$enable_dependency_tracking" = xyes; then
4431 continue
4432 else
4433 break
4434 fi
4435 ;;
4436 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4437 # This compiler won't grok '-c -o', but also, the minuso test has
4438 # not run yet. These depmodes are late enough in the game, and
4439 # so weak that their functioning should not be impacted.
4440 am__obj=conftest.${OBJEXT-o}
4441 am__minus_obj=
4442 ;;
4443 none) break ;;
4444 esac
4445 if depmode=$depmode \
4446 source=sub/conftest.c object=$am__obj \
4447 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4448 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4449 >/dev/null 2>conftest.err &&
4450 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4451 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4452 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4453 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4454 # icc doesn't choke on unknown options, it will just issue warnings
4455 # or remarks (even with -Werror). So we grep stderr for any message
4456 # that says an option was ignored or not supported.
4457 # When given -MP, icc 7.0 and 7.1 complain thusly:
4458 # icc: Command line warning: ignoring option '-M'; no argument required
4459 # The diagnosis changed in icc 8.0:
4460 # icc: Command line remark: option '-MP' not supported
4461 if (grep 'ignoring option' conftest.err ||
4462 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4463 am_cv_CC_dependencies_compiler_type=$depmode
4464 break
4465 fi
4466 fi
4467 done
4468
4469 cd ..
4470 rm -rf conftest.dir
4471 else
4472 am_cv_CC_dependencies_compiler_type=none
4473 fi
4474
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4477 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4478 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4479
4480 if
4481 test "x$enable_dependency_tracking" != xno \
4482 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4483 am__fastdepCC_TRUE=
4484 am__fastdepCC_FALSE='#'
4485 else
4486 am__fastdepCC_TRUE='#'
4487 am__fastdepCC_FALSE=
4488 fi
4489
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4492 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4493 if ${ac_cv_path_SED+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4497 for ac_i in 1 2 3 4 5 6 7; do
4498 ac_script="$ac_script$as_nl$ac_script"
4499 done
4500 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4501 { ac_script=; unset ac_script;}
4502 if test -z "$SED"; then
4503 ac_path_SED_found=false
4504 # Loop through the user's path and test for each of PROGNAME-LIST
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_prog in sed gsed; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4513 as_fn_executable_p "$ac_path_SED" || continue
4514 # Check for GNU ac_path_SED and select it if it is found.
4515 # Check for GNU $ac_path_SED
4516 case `"$ac_path_SED" --version 2>&1` in
4517 *GNU*)
4518 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4519 *)
4520 ac_count=0
4521 $as_echo_n 0123456789 >"conftest.in"
4522 while :
4523 do
4524 cat "conftest.in" "conftest.in" >"conftest.tmp"
4525 mv "conftest.tmp" "conftest.in"
4526 cp "conftest.in" "conftest.nl"
4527 $as_echo '' >> "conftest.nl"
4528 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530 as_fn_arith $ac_count + 1 && ac_count=$as_val
4531 if test $ac_count -gt ${ac_path_SED_max-0}; then
4532 # Best one so far, save it but keep looking for a better one
4533 ac_cv_path_SED="$ac_path_SED"
4534 ac_path_SED_max=$ac_count
4535 fi
4536 # 10*(2^10) chars as input seems more than enough
4537 test $ac_count -gt 10 && break
4538 done
4539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 esac
4541
4542 $ac_path_SED_found && break 3
4543 done
4544 done
4545 done
4546 IFS=$as_save_IFS
4547 if test -z "$ac_cv_path_SED"; then
4548 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4549 fi
4550 else
4551 ac_cv_path_SED=$SED
4552 fi
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4556 $as_echo "$ac_cv_path_SED" >&6; }
4557 SED="$ac_cv_path_SED"
4558 rm -f conftest.sed
4559
4560 test -z "$SED" && SED=sed
4561 Xsed="$SED -e 1s/^X//"
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4574 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4575 if ${ac_cv_path_GREP+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -z "$GREP"; then
4579 ac_path_GREP_found=false
4580 # Loop through the user's path and test for each of PROGNAME-LIST
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_prog in grep ggrep; do
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4589 as_fn_executable_p "$ac_path_GREP" || continue
4590 # Check for GNU ac_path_GREP and select it if it is found.
4591 # Check for GNU $ac_path_GREP
4592 case `"$ac_path_GREP" --version 2>&1` in
4593 *GNU*)
4594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4595 *)
4596 ac_count=0
4597 $as_echo_n 0123456789 >"conftest.in"
4598 while :
4599 do
4600 cat "conftest.in" "conftest.in" >"conftest.tmp"
4601 mv "conftest.tmp" "conftest.in"
4602 cp "conftest.in" "conftest.nl"
4603 $as_echo 'GREP' >> "conftest.nl"
4604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4606 as_fn_arith $ac_count + 1 && ac_count=$as_val
4607 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4608 # Best one so far, save it but keep looking for a better one
4609 ac_cv_path_GREP="$ac_path_GREP"
4610 ac_path_GREP_max=$ac_count
4611 fi
4612 # 10*(2^10) chars as input seems more than enough
4613 test $ac_count -gt 10 && break
4614 done
4615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4616 esac
4617
4618 $ac_path_GREP_found && break 3
4619 done
4620 done
4621 done
4622 IFS=$as_save_IFS
4623 if test -z "$ac_cv_path_GREP"; then
4624 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4625 fi
4626 else
4627 ac_cv_path_GREP=$GREP
4628 fi
4629
4630 fi
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4632 $as_echo "$ac_cv_path_GREP" >&6; }
4633 GREP="$ac_cv_path_GREP"
4634
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4637 $as_echo_n "checking for egrep... " >&6; }
4638 if ${ac_cv_path_EGREP+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4642 then ac_cv_path_EGREP="$GREP -E"
4643 else
4644 if test -z "$EGREP"; then
4645 ac_path_EGREP_found=false
4646 # Loop through the user's path and test for each of PROGNAME-LIST
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_prog in egrep; do
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4655 as_fn_executable_p "$ac_path_EGREP" || continue
4656 # Check for GNU ac_path_EGREP and select it if it is found.
4657 # Check for GNU $ac_path_EGREP
4658 case `"$ac_path_EGREP" --version 2>&1` in
4659 *GNU*)
4660 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4661 *)
4662 ac_count=0
4663 $as_echo_n 0123456789 >"conftest.in"
4664 while :
4665 do
4666 cat "conftest.in" "conftest.in" >"conftest.tmp"
4667 mv "conftest.tmp" "conftest.in"
4668 cp "conftest.in" "conftest.nl"
4669 $as_echo 'EGREP' >> "conftest.nl"
4670 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4672 as_fn_arith $ac_count + 1 && ac_count=$as_val
4673 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4674 # Best one so far, save it but keep looking for a better one
4675 ac_cv_path_EGREP="$ac_path_EGREP"
4676 ac_path_EGREP_max=$ac_count
4677 fi
4678 # 10*(2^10) chars as input seems more than enough
4679 test $ac_count -gt 10 && break
4680 done
4681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4682 esac
4683
4684 $ac_path_EGREP_found && break 3
4685 done
4686 done
4687 done
4688 IFS=$as_save_IFS
4689 if test -z "$ac_cv_path_EGREP"; then
4690 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4691 fi
4692 else
4693 ac_cv_path_EGREP=$EGREP
4694 fi
4695
4696 fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4699 $as_echo "$ac_cv_path_EGREP" >&6; }
4700 EGREP="$ac_cv_path_EGREP"
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4704 $as_echo_n "checking for fgrep... " >&6; }
4705 if ${ac_cv_path_FGREP+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4709 then ac_cv_path_FGREP="$GREP -F"
4710 else
4711 if test -z "$FGREP"; then
4712 ac_path_FGREP_found=false
4713 # Loop through the user's path and test for each of PROGNAME-LIST
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4716 do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_prog in fgrep; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4722 as_fn_executable_p "$ac_path_FGREP" || continue
4723 # Check for GNU ac_path_FGREP and select it if it is found.
4724 # Check for GNU $ac_path_FGREP
4725 case `"$ac_path_FGREP" --version 2>&1` in
4726 *GNU*)
4727 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4728 *)
4729 ac_count=0
4730 $as_echo_n 0123456789 >"conftest.in"
4731 while :
4732 do
4733 cat "conftest.in" "conftest.in" >"conftest.tmp"
4734 mv "conftest.tmp" "conftest.in"
4735 cp "conftest.in" "conftest.nl"
4736 $as_echo 'FGREP' >> "conftest.nl"
4737 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4739 as_fn_arith $ac_count + 1 && ac_count=$as_val
4740 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4741 # Best one so far, save it but keep looking for a better one
4742 ac_cv_path_FGREP="$ac_path_FGREP"
4743 ac_path_FGREP_max=$ac_count
4744 fi
4745 # 10*(2^10) chars as input seems more than enough
4746 test $ac_count -gt 10 && break
4747 done
4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4749 esac
4750
4751 $ac_path_FGREP_found && break 3
4752 done
4753 done
4754 done
4755 IFS=$as_save_IFS
4756 if test -z "$ac_cv_path_FGREP"; then
4757 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4758 fi
4759 else
4760 ac_cv_path_FGREP=$FGREP
4761 fi
4762
4763 fi
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4766 $as_echo "$ac_cv_path_FGREP" >&6; }
4767 FGREP="$ac_cv_path_FGREP"
4768
4769
4770 test -z "$GREP" && GREP=grep
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790 # Check whether --with-gnu-ld was given.
4791 if test "${with_gnu_ld+set}" = set; then :
4792 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4793 else
4794 with_gnu_ld=no
4795 fi
4796
4797 ac_prog=ld
4798 if test yes = "$GCC"; then
4799 # Check if gcc -print-prog-name=ld gives a path.
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4801 $as_echo_n "checking for ld used by $CC... " >&6; }
4802 case $host in
4803 *-*-mingw*)
4804 # gcc leaves a trailing carriage return, which upsets mingw
4805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4806 *)
4807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4808 esac
4809 case $ac_prog in
4810 # Accept absolute paths.
4811 [\\/]* | ?:[\\/]*)
4812 re_direlt='/[^/][^/]*/\.\./'
4813 # Canonicalize the pathname of ld
4814 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4815 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4816 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4817 done
4818 test -z "$LD" && LD=$ac_prog
4819 ;;
4820 "")
4821 # If it fails, then pretend we aren't using GCC.
4822 ac_prog=ld
4823 ;;
4824 *)
4825 # If it is relative, then search for the first ld in PATH.
4826 with_gnu_ld=unknown
4827 ;;
4828 esac
4829 elif test yes = "$with_gnu_ld"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4831 $as_echo_n "checking for GNU ld... " >&6; }
4832 else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4834 $as_echo_n "checking for non-GNU ld... " >&6; }
4835 fi
4836 if ${lt_cv_path_LD+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -z "$LD"; then
4840 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4841 for ac_dir in $PATH; do
4842 IFS=$lt_save_ifs
4843 test -z "$ac_dir" && ac_dir=.
4844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4845 lt_cv_path_LD=$ac_dir/$ac_prog
4846 # Check to see if the program is GNU ld. I'd rather use --version,
4847 # but apparently some variants of GNU ld only accept -v.
4848 # Break only if it was the GNU/non-GNU ld that we prefer.
4849 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4850 *GNU* | *'with BFD'*)
4851 test no != "$with_gnu_ld" && break
4852 ;;
4853 *)
4854 test yes != "$with_gnu_ld" && break
4855 ;;
4856 esac
4857 fi
4858 done
4859 IFS=$lt_save_ifs
4860 else
4861 lt_cv_path_LD=$LD # Let the user override the test with a path.
4862 fi
4863 fi
4864
4865 LD=$lt_cv_path_LD
4866 if test -n "$LD"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4868 $as_echo "$LD" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 fi
4873 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4875 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4876 if ${lt_cv_prog_gnu_ld+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4880 case `$LD -v 2>&1 </dev/null` in
4881 *GNU* | *'with BFD'*)
4882 lt_cv_prog_gnu_ld=yes
4883 ;;
4884 *)
4885 lt_cv_prog_gnu_ld=no
4886 ;;
4887 esac
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4890 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4891 with_gnu_ld=$lt_cv_prog_gnu_ld
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4902 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4903 if ${lt_cv_path_NM+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$NM"; then
4907 # Let the user override the test.
4908 lt_cv_path_NM=$NM
4909 else
4910 lt_nm_to_check=${ac_tool_prefix}nm
4911 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4912 lt_nm_to_check="$lt_nm_to_check nm"
4913 fi
4914 for lt_tmp_nm in $lt_nm_to_check; do
4915 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4916 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4917 IFS=$lt_save_ifs
4918 test -z "$ac_dir" && ac_dir=.
4919 tmp_nm=$ac_dir/$lt_tmp_nm
4920 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4921 # Check to see if the nm accepts a BSD-compat flag.
4922 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4923 # nm: unknown option "B" ignored
4924 # Tru64's nm complains that /dev/null is an invalid object file
4925 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4926 case $build_os in
4927 mingw*) lt_bad_file=conftest.nm/nofile ;;
4928 *) lt_bad_file=/dev/null ;;
4929 esac
4930 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4931 *$lt_bad_file* | *'Invalid file or object type'*)
4932 lt_cv_path_NM="$tmp_nm -B"
4933 break 2
4934 ;;
4935 *)
4936 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4937 */dev/null*)
4938 lt_cv_path_NM="$tmp_nm -p"
4939 break 2
4940 ;;
4941 *)
4942 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4943 continue # so that we can try to find one that supports BSD flags
4944 ;;
4945 esac
4946 ;;
4947 esac
4948 fi
4949 done
4950 IFS=$lt_save_ifs
4951 done
4952 : ${lt_cv_path_NM=no}
4953 fi
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4956 $as_echo "$lt_cv_path_NM" >&6; }
4957 if test no != "$lt_cv_path_NM"; then
4958 NM=$lt_cv_path_NM
4959 else
4960 # Didn't find any BSD compatible name lister, look for dumpbin.
4961 if test -n "$DUMPBIN"; then :
4962 # Let the user override the test.
4963 else
4964 if test -n "$ac_tool_prefix"; then
4965 for ac_prog in dumpbin "link -dump"
4966 do
4967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_DUMPBIN+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$DUMPBIN"; then
4975 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992 fi
4993 fi
4994 DUMPBIN=$ac_cv_prog_DUMPBIN
4995 if test -n "$DUMPBIN"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4997 $as_echo "$DUMPBIN" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 fi
5002
5003
5004 test -n "$DUMPBIN" && break
5005 done
5006 fi
5007 if test -z "$DUMPBIN"; then
5008 ac_ct_DUMPBIN=$DUMPBIN
5009 for ac_prog in dumpbin "link -dump"
5010 do
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$ac_ct_DUMPBIN"; then
5019 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036 fi
5037 fi
5038 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5039 if test -n "$ac_ct_DUMPBIN"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5041 $as_echo "$ac_ct_DUMPBIN" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046
5047
5048 test -n "$ac_ct_DUMPBIN" && break
5049 done
5050
5051 if test "x$ac_ct_DUMPBIN" = x; then
5052 DUMPBIN=":"
5053 else
5054 case $cross_compiling:$ac_tool_warned in
5055 yes:)
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5058 ac_tool_warned=yes ;;
5059 esac
5060 DUMPBIN=$ac_ct_DUMPBIN
5061 fi
5062 fi
5063
5064 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5065 *COFF*)
5066 DUMPBIN="$DUMPBIN -symbols -headers"
5067 ;;
5068 *)
5069 DUMPBIN=:
5070 ;;
5071 esac
5072 fi
5073
5074 if test : != "$DUMPBIN"; then
5075 NM=$DUMPBIN
5076 fi
5077 fi
5078 test -z "$NM" && NM=nm
5079
5080
5081
5082
5083
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5086 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5087 if ${lt_cv_nm_interface+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 lt_cv_nm_interface="BSD nm"
5091 echo "int some_variable = 0;" > conftest.$ac_ext
5092 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5093 (eval "$ac_compile" 2>conftest.err)
5094 cat conftest.err >&5
5095 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5096 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5097 cat conftest.err >&5
5098 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5099 cat conftest.out >&5
5100 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5101 lt_cv_nm_interface="MS dumpbin"
5102 fi
5103 rm -f conftest*
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5106 $as_echo "$lt_cv_nm_interface" >&6; }
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5109 $as_echo_n "checking whether ln -s works... " >&6; }
5110 LN_S=$as_ln_s
5111 if test "$LN_S" = "ln -s"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113 $as_echo "yes" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5116 $as_echo "no, using $LN_S" >&6; }
5117 fi
5118
5119 # find the maximum length of command line arguments
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5121 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5122 if ${lt_cv_sys_max_cmd_len+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 i=0
5126 teststring=ABCD
5127
5128 case $build_os in
5129 msdosdjgpp*)
5130 # On DJGPP, this test can blow up pretty badly due to problems in libc
5131 # (any single argument exceeding 2000 bytes causes a buffer overrun
5132 # during glob expansion). Even if it were fixed, the result of this
5133 # check would be larger than it should be.
5134 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5135 ;;
5136
5137 gnu*)
5138 # Under GNU Hurd, this test is not required because there is
5139 # no limit to the length of command line arguments.
5140 # Libtool will interpret -1 as no limit whatsoever
5141 lt_cv_sys_max_cmd_len=-1;
5142 ;;
5143
5144 cygwin* | mingw* | cegcc*)
5145 # On Win9x/ME, this test blows up -- it succeeds, but takes
5146 # about 5 minutes as the teststring grows exponentially.
5147 # Worse, since 9x/ME are not pre-emptively multitasking,
5148 # you end up with a "frozen" computer, even though with patience
5149 # the test eventually succeeds (with a max line length of 256k).
5150 # Instead, let's just punt: use the minimum linelength reported by
5151 # all of the supported platforms: 8192 (on NT/2K/XP).
5152 lt_cv_sys_max_cmd_len=8192;
5153 ;;
5154
5155 mint*)
5156 # On MiNT this can take a long time and run out of memory.
5157 lt_cv_sys_max_cmd_len=8192;
5158 ;;
5159
5160 amigaos*)
5161 # On AmigaOS with pdksh, this test takes hours, literally.
5162 # So we just punt and use a minimum line length of 8192.
5163 lt_cv_sys_max_cmd_len=8192;
5164 ;;
5165
5166 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5167 # This has been around since 386BSD, at least. Likely further.
5168 if test -x /sbin/sysctl; then
5169 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5170 elif test -x /usr/sbin/sysctl; then
5171 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5172 else
5173 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5174 fi
5175 # And add a safety zone
5176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5178 ;;
5179
5180 interix*)
5181 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5182 lt_cv_sys_max_cmd_len=196608
5183 ;;
5184
5185 os2*)
5186 # The test takes a long time on OS/2.
5187 lt_cv_sys_max_cmd_len=8192
5188 ;;
5189
5190 osf*)
5191 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5192 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5193 # nice to cause kernel panics so lets avoid the loop below.
5194 # First set a reasonable default.
5195 lt_cv_sys_max_cmd_len=16384
5196 #
5197 if test -x /sbin/sysconfig; then
5198 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5199 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5200 esac
5201 fi
5202 ;;
5203 sco3.2v5*)
5204 lt_cv_sys_max_cmd_len=102400
5205 ;;
5206 sysv5* | sco5v6* | sysv4.2uw2*)
5207 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5208 if test -n "$kargmax"; then
5209 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5210 else
5211 lt_cv_sys_max_cmd_len=32768
5212 fi
5213 ;;
5214 *)
5215 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5216 if test -n "$lt_cv_sys_max_cmd_len" && \
5217 test undefined != "$lt_cv_sys_max_cmd_len"; then
5218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5220 else
5221 # Make teststring a little bigger before we do anything with it.
5222 # a 1K string should be a reasonable start.
5223 for i in 1 2 3 4 5 6 7 8; do
5224 teststring=$teststring$teststring
5225 done
5226 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5227 # If test is not a shell built-in, we'll probably end up computing a
5228 # maximum length that is only half of the actual maximum length, but
5229 # we can't tell.
5230 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5231 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5232 test 17 != "$i" # 1/2 MB should be enough
5233 do
5234 i=`expr $i + 1`
5235 teststring=$teststring$teststring
5236 done
5237 # Only check the string length outside the loop.
5238 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5239 teststring=
5240 # Add a significant safety factor because C++ compilers can tack on
5241 # massive amounts of additional arguments before passing them to the
5242 # linker. It appears as though 1/2 is a usable value.
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5244 fi
5245 ;;
5246 esac
5247
5248 fi
5249
5250 if test -n "$lt_cv_sys_max_cmd_len"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5252 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5255 $as_echo "none" >&6; }
5256 fi
5257 max_cmd_len=$lt_cv_sys_max_cmd_len
5258
5259
5260
5261
5262
5263
5264 : ${CP="cp -f"}
5265 : ${MV="mv -f"}
5266 : ${RM="rm -f"}
5267
5268 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5269 lt_unset=unset
5270 else
5271 lt_unset=false
5272 fi
5273
5274
5275
5276
5277
5278 # test EBCDIC or ASCII
5279 case `echo X|tr X '\101'` in
5280 A) # ASCII based system
5281 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5282 lt_SP2NL='tr \040 \012'
5283 lt_NL2SP='tr \015\012 \040\040'
5284 ;;
5285 *) # EBCDIC based system
5286 lt_SP2NL='tr \100 \n'
5287 lt_NL2SP='tr \r\n \100\100'
5288 ;;
5289 esac
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5300 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5301 if ${lt_cv_to_host_file_cmd+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 case $host in
5305 *-*-mingw* )
5306 case $build in
5307 *-*-mingw* ) # actually msys
5308 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5309 ;;
5310 *-*-cygwin* )
5311 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5312 ;;
5313 * ) # otherwise, assume *nix
5314 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5315 ;;
5316 esac
5317 ;;
5318 *-*-cygwin* )
5319 case $build in
5320 *-*-mingw* ) # actually msys
5321 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5322 ;;
5323 *-*-cygwin* )
5324 lt_cv_to_host_file_cmd=func_convert_file_noop
5325 ;;
5326 * ) # otherwise, assume *nix
5327 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5328 ;;
5329 esac
5330 ;;
5331 * ) # unhandled hosts (and "normal" native builds)
5332 lt_cv_to_host_file_cmd=func_convert_file_noop
5333 ;;
5334 esac
5335
5336 fi
5337
5338 to_host_file_cmd=$lt_cv_to_host_file_cmd
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5340 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5341
5342
5343
5344
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5347 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5348 if ${lt_cv_to_tool_file_cmd+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 #assume ordinary cross tools, or native build.
5352 lt_cv_to_tool_file_cmd=func_convert_file_noop
5353 case $host in
5354 *-*-mingw* )
5355 case $build in
5356 *-*-mingw* ) # actually msys
5357 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5358 ;;
5359 esac
5360 ;;
5361 esac
5362
5363 fi
5364
5365 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5367 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5368
5369
5370
5371
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5374 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5375 if ${lt_cv_ld_reload_flag+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 lt_cv_ld_reload_flag='-r'
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5381 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5382 reload_flag=$lt_cv_ld_reload_flag
5383 case $reload_flag in
5384 "" | " "*) ;;
5385 *) reload_flag=" $reload_flag" ;;
5386 esac
5387 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5388 case $host_os in
5389 cygwin* | mingw* | pw32* | cegcc*)
5390 if test yes != "$GCC"; then
5391 reload_cmds=false
5392 fi
5393 ;;
5394 darwin*)
5395 if test yes = "$GCC"; then
5396 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5397 else
5398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5399 fi
5400 ;;
5401 esac
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411 if test -n "$ac_tool_prefix"; then
5412 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5413 set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$OBJDUMP"; then
5420 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
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_OBJDUMP="${ac_tool_prefix}objdump"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5432 fi
5433 done
5434 done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 OBJDUMP=$ac_cv_prog_OBJDUMP
5440 if test -n "$OBJDUMP"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5442 $as_echo "$OBJDUMP" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448
5449 fi
5450 if test -z "$ac_cv_prog_OBJDUMP"; then
5451 ac_ct_OBJDUMP=$OBJDUMP
5452 # Extract the first word of "objdump", so it can be a program name with args.
5453 set dummy objdump; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$ac_ct_OBJDUMP"; then
5460 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473 done
5474 done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5480 if test -n "$ac_ct_OBJDUMP"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5482 $as_echo "$ac_ct_OBJDUMP" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488 if test "x$ac_ct_OBJDUMP" = x; then
5489 OBJDUMP="false"
5490 else
5491 case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495 ac_tool_warned=yes ;;
5496 esac
5497 OBJDUMP=$ac_ct_OBJDUMP
5498 fi
5499 else
5500 OBJDUMP="$ac_cv_prog_OBJDUMP"
5501 fi
5502
5503 test -z "$OBJDUMP" && OBJDUMP=objdump
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5514 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5515 if ${lt_cv_deplibs_check_method+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 lt_cv_file_magic_cmd='$MAGIC_CMD'
5519 lt_cv_file_magic_test_file=
5520 lt_cv_deplibs_check_method='unknown'
5521 # Need to set the preceding variable on all platforms that support
5522 # interlibrary dependencies.
5523 # 'none' -- dependencies not supported.
5524 # 'unknown' -- same as none, but documents that we really don't know.
5525 # 'pass_all' -- all dependencies passed with no checks.
5526 # 'test_compile' -- check by making test program.
5527 # 'file_magic [[regex]]' -- check by looking for files in library path
5528 # that responds to the $file_magic_cmd with a given extended regex.
5529 # If you have 'file' or equivalent on your system and you're not sure
5530 # whether 'pass_all' will *always* work, you probably want this one.
5531
5532 case $host_os in
5533 aix[4-9]*)
5534 lt_cv_deplibs_check_method=pass_all
5535 ;;
5536
5537 beos*)
5538 lt_cv_deplibs_check_method=pass_all
5539 ;;
5540
5541 bsdi[45]*)
5542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5543 lt_cv_file_magic_cmd='/usr/bin/file -L'
5544 lt_cv_file_magic_test_file=/shlib/libc.so
5545 ;;
5546
5547 cygwin*)
5548 # func_win32_libid is a shell function defined in ltmain.sh
5549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5550 lt_cv_file_magic_cmd='func_win32_libid'
5551 ;;
5552
5553 mingw* | pw32*)
5554 # Base MSYS/MinGW do not provide the 'file' command needed by
5555 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5556 # unless we find 'file', for example because we are cross-compiling.
5557 if ( file / ) >/dev/null 2>&1; then
5558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5559 lt_cv_file_magic_cmd='func_win32_libid'
5560 else
5561 # Keep this pattern in sync with the one in func_win32_libid.
5562 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5563 lt_cv_file_magic_cmd='$OBJDUMP -f'
5564 fi
5565 ;;
5566
5567 cegcc*)
5568 # use the weaker test based on 'objdump'. See mingw*.
5569 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5570 lt_cv_file_magic_cmd='$OBJDUMP -f'
5571 ;;
5572
5573 darwin* | rhapsody*)
5574 lt_cv_deplibs_check_method=pass_all
5575 ;;
5576
5577 freebsd* | dragonfly*)
5578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579 case $host_cpu in
5580 i*86 )
5581 # Not sure whether the presence of OpenBSD here was a mistake.
5582 # Let's accept both of them until this is cleared up.
5583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5586 ;;
5587 esac
5588 else
5589 lt_cv_deplibs_check_method=pass_all
5590 fi
5591 ;;
5592
5593 haiku*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 hpux10.20* | hpux11*)
5598 lt_cv_file_magic_cmd=/usr/bin/file
5599 case $host_cpu in
5600 ia64*)
5601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5603 ;;
5604 hppa*64*)
5605 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]'
5606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5607 ;;
5608 *)
5609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5611 ;;
5612 esac
5613 ;;
5614
5615 interix[3-9]*)
5616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5618 ;;
5619
5620 irix5* | irix6* | nonstopux*)
5621 case $LD in
5622 *-32|*"-32 ") libmagic=32-bit;;
5623 *-n32|*"-n32 ") libmagic=N32;;
5624 *-64|*"-64 ") libmagic=64-bit;;
5625 *) libmagic=never-match;;
5626 esac
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629
5630 # This must be glibc/ELF.
5631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 netbsd*)
5636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5638 else
5639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5640 fi
5641 ;;
5642
5643 newos6*)
5644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5645 lt_cv_file_magic_cmd=/usr/bin/file
5646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5647 ;;
5648
5649 *nto* | *qnx*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 openbsd* | bitrig*)
5654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5656 else
5657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5658 fi
5659 ;;
5660
5661 osf3* | osf4* | osf5*)
5662 lt_cv_deplibs_check_method=pass_all
5663 ;;
5664
5665 rdos*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669 solaris*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5676
5677 sysv4 | sysv4.3*)
5678 case $host_vendor in
5679 motorola)
5680 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]'
5681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5682 ;;
5683 ncr)
5684 lt_cv_deplibs_check_method=pass_all
5685 ;;
5686 sequent)
5687 lt_cv_file_magic_cmd='/bin/file'
5688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5689 ;;
5690 sni)
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5693 lt_cv_file_magic_test_file=/lib/libc.so
5694 ;;
5695 siemens)
5696 lt_cv_deplibs_check_method=pass_all
5697 ;;
5698 pc)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701 esac
5702 ;;
5703
5704 tpf*)
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707 os2*)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710 esac
5711
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5714 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5715
5716 file_magic_glob=
5717 want_nocaseglob=no
5718 if test "$build" = "$host"; then
5719 case $host_os in
5720 mingw* | pw32*)
5721 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5722 want_nocaseglob=yes
5723 else
5724 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5725 fi
5726 ;;
5727 esac
5728 fi
5729
5730 file_magic_cmd=$lt_cv_file_magic_cmd
5731 deplibs_check_method=$lt_cv_deplibs_check_method
5732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755 if test -n "$ac_tool_prefix"; then
5756 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5757 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_DLLTOOL+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$DLLTOOL"; then
5764 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5776 fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 DLLTOOL=$ac_cv_prog_DLLTOOL
5784 if test -n "$DLLTOOL"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5786 $as_echo "$DLLTOOL" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792
5793 fi
5794 if test -z "$ac_cv_prog_DLLTOOL"; then
5795 ac_ct_DLLTOOL=$DLLTOOL
5796 # Extract the first word of "dlltool", so it can be a program name with args.
5797 set dummy dlltool; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if test -n "$ac_ct_DLLTOOL"; then
5804 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5824 if test -n "$ac_ct_DLLTOOL"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5826 $as_echo "$ac_ct_DLLTOOL" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832 if test "x$ac_ct_DLLTOOL" = x; then
5833 DLLTOOL="false"
5834 else
5835 case $cross_compiling:$ac_tool_warned in
5836 yes:)
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839 ac_tool_warned=yes ;;
5840 esac
5841 DLLTOOL=$ac_ct_DLLTOOL
5842 fi
5843 else
5844 DLLTOOL="$ac_cv_prog_DLLTOOL"
5845 fi
5846
5847 test -z "$DLLTOOL" && DLLTOOL=dlltool
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5859 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5860 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 lt_cv_sharedlib_from_linklib_cmd='unknown'
5864
5865 case $host_os in
5866 cygwin* | mingw* | pw32* | cegcc*)
5867 # two different shell functions defined in ltmain.sh;
5868 # decide which one to use based on capabilities of $DLLTOOL
5869 case `$DLLTOOL --help 2>&1` in
5870 *--identify-strict*)
5871 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5872 ;;
5873 *)
5874 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5875 ;;
5876 esac
5877 ;;
5878 *)
5879 # fallback: assume linklib IS sharedlib
5880 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5881 ;;
5882 esac
5883
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5886 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5887 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5888 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5889
5890
5891
5892
5893
5894
5895
5896
5897 if test -n "$ac_tool_prefix"; then
5898 for ac_prog in ar
5899 do
5900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_AR+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -n "$AR"; then
5908 ac_cv_prog_AR="$AR" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5924
5925 fi
5926 fi
5927 AR=$ac_cv_prog_AR
5928 if test -n "$AR"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5930 $as_echo "$AR" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936
5937 test -n "$AR" && break
5938 done
5939 fi
5940 if test -z "$AR"; then
5941 ac_ct_AR=$AR
5942 for ac_prog in ar
5943 do
5944 # Extract the first word of "$ac_prog", so it can be a program name with args.
5945 set dummy $ac_prog; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$ac_ct_AR"; then
5952 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_AR="$ac_prog"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5972 if test -n "$ac_ct_AR"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5974 $as_echo "$ac_ct_AR" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980
5981 test -n "$ac_ct_AR" && break
5982 done
5983
5984 if test "x$ac_ct_AR" = x; then
5985 AR="false"
5986 else
5987 case $cross_compiling:$ac_tool_warned in
5988 yes:)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993 AR=$ac_ct_AR
5994 fi
5995 fi
5996
5997 : ${AR=ar}
5998 : ${AR_FLAGS=cru}
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6011 $as_echo_n "checking for archiver @FILE support... " >&6; }
6012 if ${lt_cv_ar_at_file+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 lt_cv_ar_at_file=no
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018
6019 int
6020 main ()
6021 {
6022
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028 echo conftest.$ac_objext > conftest.lst
6029 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6031 (eval $lt_ar_try) 2>&5
6032 ac_status=$?
6033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034 test $ac_status = 0; }
6035 if test 0 -eq "$ac_status"; then
6036 # Ensure the archiver fails upon bogus file names.
6037 rm -f conftest.$ac_objext libconftest.a
6038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6039 (eval $lt_ar_try) 2>&5
6040 ac_status=$?
6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042 test $ac_status = 0; }
6043 if test 0 -ne "$ac_status"; then
6044 lt_cv_ar_at_file=@
6045 fi
6046 fi
6047 rm -f conftest.* libconftest.a
6048
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051
6052 fi
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6054 $as_echo "$lt_cv_ar_at_file" >&6; }
6055
6056 if test no = "$lt_cv_ar_at_file"; then
6057 archiver_list_spec=
6058 else
6059 archiver_list_spec=$lt_cv_ar_at_file
6060 fi
6061
6062
6063
6064
6065
6066
6067
6068 if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6070 set dummy ${ac_tool_prefix}strip; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_STRIP+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$STRIP"; then
6077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 STRIP=$ac_cv_prog_STRIP
6097 if test -n "$STRIP"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6099 $as_echo "$STRIP" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105
6106 fi
6107 if test -z "$ac_cv_prog_STRIP"; then
6108 ac_ct_STRIP=$STRIP
6109 # Extract the first word of "strip", so it can be a program name with args.
6110 set dummy strip; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$ac_ct_STRIP"; then
6117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_ac_ct_STRIP="strip"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130 done
6131 done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6137 if test -n "$ac_ct_STRIP"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6139 $as_echo "$ac_ct_STRIP" >&6; }
6140 else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145 if test "x$ac_ct_STRIP" = x; then
6146 STRIP=":"
6147 else
6148 case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152 ac_tool_warned=yes ;;
6153 esac
6154 STRIP=$ac_ct_STRIP
6155 fi
6156 else
6157 STRIP="$ac_cv_prog_STRIP"
6158 fi
6159
6160 test -z "$STRIP" && STRIP=:
6161
6162
6163
6164
6165
6166
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if ${ac_cv_prog_RANLIB+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$RANLIB"; then
6176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6198 $as_echo "$RANLIB" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204
6205 fi
6206 if test -z "$ac_cv_prog_RANLIB"; then
6207 ac_ct_RANLIB=$RANLIB
6208 # Extract the first word of "ranlib", so it can be a program name with args.
6209 set dummy ranlib; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if test -n "$ac_ct_RANLIB"; then
6216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_ac_ct_RANLIB="ranlib"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6236 if test -n "$ac_ct_RANLIB"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6238 $as_echo "$ac_ct_RANLIB" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244 if test "x$ac_ct_RANLIB" = x; then
6245 RANLIB=":"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253 RANLIB=$ac_ct_RANLIB
6254 fi
6255 else
6256 RANLIB="$ac_cv_prog_RANLIB"
6257 fi
6258
6259 test -z "$RANLIB" && RANLIB=:
6260
6261
6262
6263
6264
6265
6266 # Determine commands to create old-style static archives.
6267 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6268 old_postinstall_cmds='chmod 644 $oldlib'
6269 old_postuninstall_cmds=
6270
6271 if test -n "$RANLIB"; then
6272 case $host_os in
6273 bitrig* | openbsd*)
6274 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6275 ;;
6276 *)
6277 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6278 ;;
6279 esac
6280 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6281 fi
6282
6283 case $host_os in
6284 darwin*)
6285 lock_old_archive_extraction=yes ;;
6286 *)
6287 lock_old_archive_extraction=no ;;
6288 esac
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 # If no C compiler was specified, use CC.
6329 LTCC=${LTCC-"$CC"}
6330
6331 # If no C compiler flags were specified, use CFLAGS.
6332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6333
6334 # Allow CC to be a program name with arguments.
6335 compiler=$CC
6336
6337
6338 # Check for command to grab the raw symbol name followed by C symbol from nm.
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6340 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6341 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344
6345 # These are sane defaults that work on at least a few old systems.
6346 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6347
6348 # Character class describing NM global symbol codes.
6349 symcode='[BCDEGRST]'
6350
6351 # Regexp to match symbols that can be accessed directly from C.
6352 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6353
6354 # Define system-specific variables.
6355 case $host_os in
6356 aix*)
6357 symcode='[BCDT]'
6358 ;;
6359 cygwin* | mingw* | pw32* | cegcc*)
6360 symcode='[ABCDGISTW]'
6361 ;;
6362 hpux*)
6363 if test ia64 = "$host_cpu"; then
6364 symcode='[ABCDEGRST]'
6365 fi
6366 ;;
6367 irix* | nonstopux*)
6368 symcode='[BCDEGRST]'
6369 ;;
6370 osf*)
6371 symcode='[BCDEGQRST]'
6372 ;;
6373 solaris*)
6374 symcode='[BDRT]'
6375 ;;
6376 sco3.2v5*)
6377 symcode='[DT]'
6378 ;;
6379 sysv4.2uw2*)
6380 symcode='[DT]'
6381 ;;
6382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6383 symcode='[ABDT]'
6384 ;;
6385 sysv4)
6386 symcode='[DFNSTU]'
6387 ;;
6388 esac
6389
6390 # If we're using GNU nm, then use its standard symbol codes.
6391 case `$NM -V 2>&1` in
6392 *GNU* | *'with BFD'*)
6393 symcode='[ABCDGIRSTW]' ;;
6394 esac
6395
6396 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6397 # Gets list of data symbols to import.
6398 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6399 # Adjust the below global symbol transforms to fixup imported variables.
6400 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6401 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6402 lt_c_name_lib_hook="\
6403 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6404 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6405 else
6406 # Disable hooks by default.
6407 lt_cv_sys_global_symbol_to_import=
6408 lt_cdecl_hook=
6409 lt_c_name_hook=
6410 lt_c_name_lib_hook=
6411 fi
6412
6413 # Transform an extracted symbol line into a proper C declaration.
6414 # Some systems (esp. on ia64) link data and code symbols differently,
6415 # so use this general approach.
6416 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6417 $lt_cdecl_hook\
6418 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6419 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6420
6421 # Transform an extracted symbol line into symbol name and symbol address
6422 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6423 $lt_c_name_hook\
6424 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6425 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6426
6427 # Transform an extracted symbol line into symbol name with lib prefix and
6428 # symbol address.
6429 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6430 $lt_c_name_lib_hook\
6431 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6432 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6433 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6434
6435 # Handle CRLF in mingw tool chain
6436 opt_cr=
6437 case $build_os in
6438 mingw*)
6439 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6440 ;;
6441 esac
6442
6443 # Try without a prefix underscore, then with it.
6444 for ac_symprfx in "" "_"; do
6445
6446 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6447 symxfrm="\\1 $ac_symprfx\\2 \\2"
6448
6449 # Write the raw and C identifiers.
6450 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6451 # Fake it for dumpbin and say T for any non-static function,
6452 # D for any global variable and I for any imported variable.
6453 # Also find C++ and __fastcall symbols from MSVC++,
6454 # which start with @ or ?.
6455 lt_cv_sys_global_symbol_pipe="$AWK '"\
6456 " {last_section=section; section=\$ 3};"\
6457 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6458 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6459 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6460 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6461 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6462 " \$ 0!~/External *\|/{next};"\
6463 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6464 " {if(hide[section]) next};"\
6465 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6466 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6467 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6468 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6469 " ' prfx=^$ac_symprfx"
6470 else
6471 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6472 fi
6473 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6474
6475 # Check to see that the pipe works correctly.
6476 pipe_works=no
6477
6478 rm -f conftest*
6479 cat > conftest.$ac_ext <<_LT_EOF
6480 #ifdef __cplusplus
6481 extern "C" {
6482 #endif
6483 char nm_test_var;
6484 void nm_test_func(void);
6485 void nm_test_func(void){}
6486 #ifdef __cplusplus
6487 }
6488 #endif
6489 int main(){nm_test_var='a';nm_test_func();return(0);}
6490 _LT_EOF
6491
6492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6493 (eval $ac_compile) 2>&5
6494 ac_status=$?
6495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496 test $ac_status = 0; }; then
6497 # Now try to grab the symbols.
6498 nlist=conftest.nm
6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6500 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6501 ac_status=$?
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; } && test -s "$nlist"; then
6504 # Try sorting and uniquifying the output.
6505 if sort "$nlist" | uniq > "$nlist"T; then
6506 mv -f "$nlist"T "$nlist"
6507 else
6508 rm -f "$nlist"T
6509 fi
6510
6511 # Make sure that we snagged all the symbols we need.
6512 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6513 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6514 cat <<_LT_EOF > conftest.$ac_ext
6515 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6516 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6517 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6518 relocations are performed -- see ld's documentation on pseudo-relocs. */
6519 # define LT_DLSYM_CONST
6520 #elif defined __osf__
6521 /* This system does not cope well with relocations in const data. */
6522 # define LT_DLSYM_CONST
6523 #else
6524 # define LT_DLSYM_CONST const
6525 #endif
6526
6527 #ifdef __cplusplus
6528 extern "C" {
6529 #endif
6530
6531 _LT_EOF
6532 # Now generate the symbol file.
6533 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6534
6535 cat <<_LT_EOF >> conftest.$ac_ext
6536
6537 /* The mapping between symbol names and symbols. */
6538 LT_DLSYM_CONST struct {
6539 const char *name;
6540 void *address;
6541 }
6542 lt__PROGRAM__LTX_preloaded_symbols[] =
6543 {
6544 { "@PROGRAM@", (void *) 0 },
6545 _LT_EOF
6546 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6547 cat <<\_LT_EOF >> conftest.$ac_ext
6548 {0, (void *) 0}
6549 };
6550
6551 /* This works around a problem in FreeBSD linker */
6552 #ifdef FREEBSD_WORKAROUND
6553 static const void *lt_preloaded_setup() {
6554 return lt__PROGRAM__LTX_preloaded_symbols;
6555 }
6556 #endif
6557
6558 #ifdef __cplusplus
6559 }
6560 #endif
6561 _LT_EOF
6562 # Now try linking the two files.
6563 mv conftest.$ac_objext conftstm.$ac_objext
6564 lt_globsym_save_LIBS=$LIBS
6565 lt_globsym_save_CFLAGS=$CFLAGS
6566 LIBS=conftstm.$ac_objext
6567 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6569 (eval $ac_link) 2>&5
6570 ac_status=$?
6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6572 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6573 pipe_works=yes
6574 fi
6575 LIBS=$lt_globsym_save_LIBS
6576 CFLAGS=$lt_globsym_save_CFLAGS
6577 else
6578 echo "cannot find nm_test_func in $nlist" >&5
6579 fi
6580 else
6581 echo "cannot find nm_test_var in $nlist" >&5
6582 fi
6583 else
6584 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6585 fi
6586 else
6587 echo "$progname: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6589 fi
6590 rm -rf conftest* conftst*
6591
6592 # Do not use the global_symbol_pipe unless it works.
6593 if test yes = "$pipe_works"; then
6594 break
6595 else
6596 lt_cv_sys_global_symbol_pipe=
6597 fi
6598 done
6599
6600 fi
6601
6602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6603 lt_cv_sys_global_symbol_to_cdecl=
6604 fi
6605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6607 $as_echo "failed" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6610 $as_echo "ok" >&6; }
6611 fi
6612
6613 # Response file support.
6614 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6615 nm_file_list_spec='@'
6616 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6617 nm_file_list_spec='@'
6618 fi
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6657 $as_echo_n "checking for sysroot... " >&6; }
6658
6659 # Check whether --with-sysroot was given.
6660 if test "${with_sysroot+set}" = set; then :
6661 withval=$with_sysroot;
6662 else
6663 with_sysroot=no
6664 fi
6665
6666
6667 lt_sysroot=
6668 case $with_sysroot in #(
6669 yes)
6670 if test yes = "$GCC"; then
6671 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6672 fi
6673 ;; #(
6674 /*)
6675 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6676 ;; #(
6677 no|'')
6678 ;; #(
6679 *)
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6681 $as_echo "$with_sysroot" >&6; }
6682 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6683 ;;
6684 esac
6685
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6687 $as_echo "${lt_sysroot:-no}" >&6; }
6688
6689
6690
6691
6692
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6694 $as_echo_n "checking for a working dd... " >&6; }
6695 if ${ac_cv_path_lt_DD+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 printf 0123456789abcdef0123456789abcdef >conftest.i
6699 cat conftest.i conftest.i >conftest2.i
6700 : ${lt_DD:=$DD}
6701 if test -z "$lt_DD"; then
6702 ac_path_lt_DD_found=false
6703 # Loop through the user's path and test for each of PROGNAME-LIST
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_prog in dd; do
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6712 as_fn_executable_p "$ac_path_lt_DD" || continue
6713 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6714 cmp -s conftest.i conftest.out \
6715 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6716 fi
6717 $ac_path_lt_DD_found && break 3
6718 done
6719 done
6720 done
6721 IFS=$as_save_IFS
6722 if test -z "$ac_cv_path_lt_DD"; then
6723 :
6724 fi
6725 else
6726 ac_cv_path_lt_DD=$lt_DD
6727 fi
6728
6729 rm -f conftest.i conftest2.i conftest.out
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6732 $as_echo "$ac_cv_path_lt_DD" >&6; }
6733
6734
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6736 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6737 if ${lt_cv_truncate_bin+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 printf 0123456789abcdef0123456789abcdef >conftest.i
6741 cat conftest.i conftest.i >conftest2.i
6742 lt_cv_truncate_bin=
6743 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6744 cmp -s conftest.i conftest.out \
6745 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6746 fi
6747 rm -f conftest.i conftest2.i conftest.out
6748 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6749 fi
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6751 $as_echo "$lt_cv_truncate_bin" >&6; }
6752
6753
6754
6755
6756
6757
6758
6759 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6760 func_cc_basename ()
6761 {
6762 for cc_temp in $*""; do
6763 case $cc_temp in
6764 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6765 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6766 \-*) ;;
6767 *) break;;
6768 esac
6769 done
6770 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6771 }
6772
6773 # Check whether --enable-libtool-lock was given.
6774 if test "${enable_libtool_lock+set}" = set; then :
6775 enableval=$enable_libtool_lock;
6776 fi
6777
6778 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6779
6780 # Some flags need to be propagated to the compiler or linker for good
6781 # libtool support.
6782 case $host in
6783 ia64-*-hpux*)
6784 # Find out what ABI is being produced by ac_compile, and set mode
6785 # options accordingly.
6786 echo 'int i;' > conftest.$ac_ext
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 case `/usr/bin/file conftest.$ac_objext` in
6793 *ELF-32*)
6794 HPUX_IA64_MODE=32
6795 ;;
6796 *ELF-64*)
6797 HPUX_IA64_MODE=64
6798 ;;
6799 esac
6800 fi
6801 rm -rf conftest*
6802 ;;
6803 *-*-irix6*)
6804 # Find out what ABI is being produced by ac_compile, and set linker
6805 # options accordingly.
6806 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6808 (eval $ac_compile) 2>&5
6809 ac_status=$?
6810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811 test $ac_status = 0; }; then
6812 if test yes = "$lt_cv_prog_gnu_ld"; then
6813 case `/usr/bin/file conftest.$ac_objext` in
6814 *32-bit*)
6815 LD="${LD-ld} -melf32bsmip"
6816 ;;
6817 *N32*)
6818 LD="${LD-ld} -melf32bmipn32"
6819 ;;
6820 *64-bit*)
6821 LD="${LD-ld} -melf64bmip"
6822 ;;
6823 esac
6824 else
6825 case `/usr/bin/file conftest.$ac_objext` in
6826 *32-bit*)
6827 LD="${LD-ld} -32"
6828 ;;
6829 *N32*)
6830 LD="${LD-ld} -n32"
6831 ;;
6832 *64-bit*)
6833 LD="${LD-ld} -64"
6834 ;;
6835 esac
6836 fi
6837 fi
6838 rm -rf conftest*
6839 ;;
6840
6841 mips64*-*linux*)
6842 # Find out what ABI is being produced by ac_compile, and set linker
6843 # options accordingly.
6844 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6846 (eval $ac_compile) 2>&5
6847 ac_status=$?
6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849 test $ac_status = 0; }; then
6850 emul=elf
6851 case `/usr/bin/file conftest.$ac_objext` in
6852 *32-bit*)
6853 emul="${emul}32"
6854 ;;
6855 *64-bit*)
6856 emul="${emul}64"
6857 ;;
6858 esac
6859 case `/usr/bin/file conftest.$ac_objext` in
6860 *MSB*)
6861 emul="${emul}btsmip"
6862 ;;
6863 *LSB*)
6864 emul="${emul}ltsmip"
6865 ;;
6866 esac
6867 case `/usr/bin/file conftest.$ac_objext` in
6868 *N32*)
6869 emul="${emul}n32"
6870 ;;
6871 esac
6872 LD="${LD-ld} -m $emul"
6873 fi
6874 rm -rf conftest*
6875 ;;
6876
6877 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6878 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6879 # Find out what ABI is being produced by ac_compile, and set linker
6880 # options accordingly. Note that the listed cases only cover the
6881 # situations where additional linker options are needed (such as when
6882 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6883 # vice versa); the common cases where no linker options are needed do
6884 # not appear in the list.
6885 echo 'int i;' > conftest.$ac_ext
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
6891 case `/usr/bin/file conftest.o` in
6892 *32-bit*)
6893 case $host in
6894 x86_64-*kfreebsd*-gnu)
6895 LD="${LD-ld} -m elf_i386_fbsd"
6896 ;;
6897 x86_64-*linux*)
6898 case `/usr/bin/file conftest.o` in
6899 *x86-64*)
6900 LD="${LD-ld} -m elf32_x86_64"
6901 ;;
6902 *)
6903 LD="${LD-ld} -m elf_i386"
6904 ;;
6905 esac
6906 ;;
6907 powerpc64le-*linux*)
6908 LD="${LD-ld} -m elf32lppclinux"
6909 ;;
6910 powerpc64-*linux*)
6911 LD="${LD-ld} -m elf32ppclinux"
6912 ;;
6913 s390x-*linux*)
6914 LD="${LD-ld} -m elf_s390"
6915 ;;
6916 sparc64-*linux*)
6917 LD="${LD-ld} -m elf32_sparc"
6918 ;;
6919 esac
6920 ;;
6921 *64-bit*)
6922 case $host in
6923 x86_64-*kfreebsd*-gnu)
6924 LD="${LD-ld} -m elf_x86_64_fbsd"
6925 ;;
6926 x86_64-*linux*)
6927 LD="${LD-ld} -m elf_x86_64"
6928 ;;
6929 powerpcle-*linux*|powerpc64le-*linux*)
6930 LD="${LD-ld} -m elf64lppc"
6931 ;;
6932 powerpc-*linux*|powerpc64-*linux*)
6933 LD="${LD-ld} -m elf64ppc"
6934 ;;
6935 s390*-*linux*|s390*-*tpf*)
6936 LD="${LD-ld} -m elf64_s390"
6937 ;;
6938 sparc*-*linux*)
6939 LD="${LD-ld} -m elf64_sparc"
6940 ;;
6941 esac
6942 ;;
6943 esac
6944 fi
6945 rm -rf conftest*
6946 ;;
6947
6948 *-*-sco3.2v5*)
6949 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6950 SAVE_CFLAGS=$CFLAGS
6951 CFLAGS="$CFLAGS -belf"
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6953 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6954 if ${lt_cv_cc_needs_belf+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 ac_ext=c
6958 ac_cpp='$CPP $CPPFLAGS'
6959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965
6966 int
6967 main ()
6968 {
6969
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_link "$LINENO"; then :
6975 lt_cv_cc_needs_belf=yes
6976 else
6977 lt_cv_cc_needs_belf=no
6978 fi
6979 rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6981 ac_ext=c
6982 ac_cpp='$CPP $CPPFLAGS'
6983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6986
6987 fi
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6989 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6990 if test yes != "$lt_cv_cc_needs_belf"; then
6991 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6992 CFLAGS=$SAVE_CFLAGS
6993 fi
6994 ;;
6995 *-*solaris*)
6996 # Find out what ABI is being produced by ac_compile, and set linker
6997 # options accordingly.
6998 echo 'int i;' > conftest.$ac_ext
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 (eval $ac_compile) 2>&5
7001 ac_status=$?
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 case `/usr/bin/file conftest.o` in
7005 *64-bit*)
7006 case $lt_cv_prog_gnu_ld in
7007 yes*)
7008 case $host in
7009 i?86-*-solaris*|x86_64-*-solaris*)
7010 LD="${LD-ld} -m elf_x86_64"
7011 ;;
7012 sparc*-*-solaris*)
7013 LD="${LD-ld} -m elf64_sparc"
7014 ;;
7015 esac
7016 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7017 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7018 LD=${LD-ld}_sol2
7019 fi
7020 ;;
7021 *)
7022 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7023 LD="${LD-ld} -64"
7024 fi
7025 ;;
7026 esac
7027 ;;
7028 esac
7029 fi
7030 rm -rf conftest*
7031 ;;
7032 esac
7033
7034 need_locks=$enable_libtool_lock
7035
7036 if test -n "$ac_tool_prefix"; then
7037 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}mt; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test -n "$MANIFEST_TOOL"; then
7045 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7065 if test -n "$MANIFEST_TOOL"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7067 $as_echo "$MANIFEST_TOOL" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072
7073
7074 fi
7075 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7076 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7077 # Extract the first word of "mt", so it can be a program name with args.
7078 set dummy mt; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$ac_ct_MANIFEST_TOOL"; then
7085 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7105 if test -n "$ac_ct_MANIFEST_TOOL"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7107 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7114 MANIFEST_TOOL=":"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7123 fi
7124 else
7125 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7126 fi
7127
7128 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7130 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7131 if ${lt_cv_path_mainfest_tool+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 lt_cv_path_mainfest_tool=no
7135 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7136 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7137 cat conftest.err >&5
7138 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7139 lt_cv_path_mainfest_tool=yes
7140 fi
7141 rm -f conftest*
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7144 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7145 if test yes != "$lt_cv_path_mainfest_tool"; then
7146 MANIFEST_TOOL=:
7147 fi
7148
7149
7150
7151
7152
7153
7154 case $host_os in
7155 rhapsody* | darwin*)
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$DSYMUTIL"; then
7165 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7185 if test -n "$DSYMUTIL"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7187 $as_echo "$DSYMUTIL" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_DSYMUTIL"; then
7196 ac_ct_DSYMUTIL=$DSYMUTIL
7197 # Extract the first word of "dsymutil", so it can be a program name with args.
7198 set dummy dsymutil; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if test -n "$ac_ct_DSYMUTIL"; then
7205 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7225 if test -n "$ac_ct_DSYMUTIL"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7227 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233 if test "x$ac_ct_DSYMUTIL" = x; then
7234 DSYMUTIL=":"
7235 else
7236 case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242 DSYMUTIL=$ac_ct_DSYMUTIL
7243 fi
7244 else
7245 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7246 fi
7247
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_NMEDIT+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 if test -n "$NMEDIT"; then
7257 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 NMEDIT=$ac_cv_prog_NMEDIT
7277 if test -n "$NMEDIT"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7279 $as_echo "$NMEDIT" >&6; }
7280 else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_NMEDIT"; then
7288 ac_ct_NMEDIT=$NMEDIT
7289 # Extract the first word of "nmedit", so it can be a program name with args.
7290 set dummy nmedit; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 if test -n "$ac_ct_NMEDIT"; then
7297 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7317 if test -n "$ac_ct_NMEDIT"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7319 $as_echo "$ac_ct_NMEDIT" >&6; }
7320 else
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325 if test "x$ac_ct_NMEDIT" = x; then
7326 NMEDIT=":"
7327 else
7328 case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334 NMEDIT=$ac_ct_NMEDIT
7335 fi
7336 else
7337 NMEDIT="$ac_cv_prog_NMEDIT"
7338 fi
7339
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_LIPO+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 if test -n "$LIPO"; then
7349 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 LIPO=$ac_cv_prog_LIPO
7369 if test -n "$LIPO"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7371 $as_echo "$LIPO" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_LIPO"; then
7380 ac_ct_LIPO=$LIPO
7381 # Extract the first word of "lipo", so it can be a program name with args.
7382 set dummy lipo; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 if test -n "$ac_ct_LIPO"; then
7389 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_ac_ct_LIPO="lipo"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7409 if test -n "$ac_ct_LIPO"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7411 $as_echo "$ac_ct_LIPO" >&6; }
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417 if test "x$ac_ct_LIPO" = x; then
7418 LIPO=":"
7419 else
7420 case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426 LIPO=$ac_ct_LIPO
7427 fi
7428 else
7429 LIPO="$ac_cv_prog_LIPO"
7430 fi
7431
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}otool; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_OTOOL+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 if test -n "$OTOOL"; then
7441 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7453 fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 OTOOL=$ac_cv_prog_OTOOL
7461 if test -n "$OTOOL"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7463 $as_echo "$OTOOL" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470 fi
7471 if test -z "$ac_cv_prog_OTOOL"; then
7472 ac_ct_OTOOL=$OTOOL
7473 # Extract the first word of "otool", so it can be a program name with args.
7474 set dummy otool; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 if test -n "$ac_ct_OTOOL"; then
7481 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490 ac_cv_prog_ac_ct_OTOOL="otool"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7501 if test -n "$ac_ct_OTOOL"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7503 $as_echo "$ac_ct_OTOOL" >&6; }
7504 else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509 if test "x$ac_ct_OTOOL" = x; then
7510 OTOOL=":"
7511 else
7512 case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518 OTOOL=$ac_ct_OTOOL
7519 fi
7520 else
7521 OTOOL="$ac_cv_prog_OTOOL"
7522 fi
7523
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_OTOOL64+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$OTOOL64"; then
7533 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 OTOOL64=$ac_cv_prog_OTOOL64
7553 if test -n "$OTOOL64"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7555 $as_echo "$OTOOL64" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562 fi
7563 if test -z "$ac_cv_prog_OTOOL64"; then
7564 ac_ct_OTOOL64=$OTOOL64
7565 # Extract the first word of "otool64", so it can be a program name with args.
7566 set dummy otool64; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if test -n "$ac_ct_OTOOL64"; then
7573 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_ac_ct_OTOOL64="otool64"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7593 if test -n "$ac_ct_OTOOL64"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7595 $as_echo "$ac_ct_OTOOL64" >&6; }
7596 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601 if test "x$ac_ct_OTOOL64" = x; then
7602 OTOOL64=":"
7603 else
7604 case $cross_compiling:$ac_tool_warned in
7605 yes:)
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7609 esac
7610 OTOOL64=$ac_ct_OTOOL64
7611 fi
7612 else
7613 OTOOL64="$ac_cv_prog_OTOOL64"
7614 fi
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7643 $as_echo_n "checking for -single_module linker flag... " >&6; }
7644 if ${lt_cv_apple_cc_single_mod+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 lt_cv_apple_cc_single_mod=no
7648 if test -z "$LT_MULTI_MODULE"; then
7649 # By default we will add the -single_module flag. You can override
7650 # by either setting the environment variable LT_MULTI_MODULE
7651 # non-empty at configure time, or by adding -multi_module to the
7652 # link flags.
7653 rm -rf libconftest.dylib*
7654 echo "int foo(void){return 1;}" > conftest.c
7655 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7656 -dynamiclib -Wl,-single_module conftest.c" >&5
7657 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7658 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7659 _lt_result=$?
7660 # If there is a non-empty error log, and "single_module"
7661 # appears in it, assume the flag caused a linker warning
7662 if test -s conftest.err && $GREP single_module conftest.err; then
7663 cat conftest.err >&5
7664 # Otherwise, if the output was created with a 0 exit code from
7665 # the compiler, it worked.
7666 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7667 lt_cv_apple_cc_single_mod=yes
7668 else
7669 cat conftest.err >&5
7670 fi
7671 rm -rf libconftest.dylib*
7672 rm -f conftest.*
7673 fi
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7676 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7677
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7679 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7680 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 lt_cv_ld_exported_symbols_list=no
7684 save_LDFLAGS=$LDFLAGS
7685 echo "_main" > conftest.sym
7686 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689
7690 int
7691 main ()
7692 {
7693
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 if ac_fn_c_try_link "$LINENO"; then :
7699 lt_cv_ld_exported_symbols_list=yes
7700 else
7701 lt_cv_ld_exported_symbols_list=no
7702 fi
7703 rm -f core conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705 LDFLAGS=$save_LDFLAGS
7706
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7709 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7710
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7712 $as_echo_n "checking for -force_load linker flag... " >&6; }
7713 if ${lt_cv_ld_force_load+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 lt_cv_ld_force_load=no
7717 cat > conftest.c << _LT_EOF
7718 int forced_loaded() { return 2;}
7719 _LT_EOF
7720 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7721 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7722 echo "$AR cru libconftest.a conftest.o" >&5
7723 $AR cru libconftest.a conftest.o 2>&5
7724 echo "$RANLIB libconftest.a" >&5
7725 $RANLIB libconftest.a 2>&5
7726 cat > conftest.c << _LT_EOF
7727 int main() { return 0;}
7728 _LT_EOF
7729 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7730 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7731 _lt_result=$?
7732 if test -s conftest.err && $GREP force_load conftest.err; then
7733 cat conftest.err >&5
7734 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7735 lt_cv_ld_force_load=yes
7736 else
7737 cat conftest.err >&5
7738 fi
7739 rm -f conftest.err libconftest.a conftest conftest.c
7740 rm -rf conftest.dSYM
7741
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7744 $as_echo "$lt_cv_ld_force_load" >&6; }
7745 case $host_os in
7746 rhapsody* | darwin1.[012])
7747 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7748 darwin1.*)
7749 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7750 darwin*) # darwin 5.x on
7751 # if running on 10.5 or later, the deployment target defaults
7752 # to the OS version, if on x86, and 10.4, the deployment
7753 # target defaults to 10.4. Don't you love it?
7754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7755 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7756 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7757 10.[012][,.]*)
7758 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7759 10.*)
7760 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7761 esac
7762 ;;
7763 esac
7764 if test yes = "$lt_cv_apple_cc_single_mod"; then
7765 _lt_dar_single_mod='$single_module'
7766 fi
7767 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7768 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7769 else
7770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7771 fi
7772 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7773 _lt_dsymutil='~$DSYMUTIL $lib || :'
7774 else
7775 _lt_dsymutil=
7776 fi
7777 ;;
7778 esac
7779
7780 # func_munge_path_list VARIABLE PATH
7781 # -----------------------------------
7782 # VARIABLE is name of variable containing _space_ separated list of
7783 # directories to be munged by the contents of PATH, which is string
7784 # having a format:
7785 # "DIR[:DIR]:"
7786 # string "DIR[ DIR]" will be prepended to VARIABLE
7787 # ":DIR[:DIR]"
7788 # string "DIR[ DIR]" will be appended to VARIABLE
7789 # "DIRP[:DIRP]::[DIRA:]DIRA"
7790 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7791 # "DIRA[ DIRA]" will be appended to VARIABLE
7792 # "DIR[:DIR]"
7793 # VARIABLE will be replaced by "DIR[ DIR]"
7794 func_munge_path_list ()
7795 {
7796 case x$2 in
7797 x)
7798 ;;
7799 *:)
7800 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7801 ;;
7802 x:*)
7803 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7804 ;;
7805 *::*)
7806 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7807 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7808 ;;
7809 *)
7810 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7811 ;;
7812 esac
7813 }
7814
7815 ac_ext=c
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7821 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7822 # On Suns, sometimes $CPP names a directory.
7823 if test -n "$CPP" && test -d "$CPP"; then
7824 CPP=
7825 fi
7826 if test -z "$CPP"; then
7827 if ${ac_cv_prog_CPP+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 # Double quotes because CPP needs to be expanded
7831 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7832 do
7833 ac_preproc_ok=false
7834 for ac_c_preproc_warn_flag in '' yes
7835 do
7836 # Use a header file that comes with gcc, so configuring glibc
7837 # with a fresh cross-compiler works.
7838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7839 # <limits.h> exists even on freestanding compilers.
7840 # On the NeXT, cc -E runs the code through the compiler's parser,
7841 # not just through cpp. "Syntax error" is here to catch this case.
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 #ifdef __STDC__
7845 # include <limits.h>
7846 #else
7847 # include <assert.h>
7848 #endif
7849 Syntax error
7850 _ACEOF
7851 if ac_fn_c_try_cpp "$LINENO"; then :
7852
7853 else
7854 # Broken: fails on valid input.
7855 continue
7856 fi
7857 rm -f conftest.err conftest.i conftest.$ac_ext
7858
7859 # OK, works on sane cases. Now check whether nonexistent headers
7860 # can be detected and how.
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 #include <ac_nonexistent.h>
7864 _ACEOF
7865 if ac_fn_c_try_cpp "$LINENO"; then :
7866 # Broken: success on invalid input.
7867 continue
7868 else
7869 # Passes both tests.
7870 ac_preproc_ok=:
7871 break
7872 fi
7873 rm -f conftest.err conftest.i conftest.$ac_ext
7874
7875 done
7876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7877 rm -f conftest.i conftest.err conftest.$ac_ext
7878 if $ac_preproc_ok; then :
7879 break
7880 fi
7881
7882 done
7883 ac_cv_prog_CPP=$CPP
7884
7885 fi
7886 CPP=$ac_cv_prog_CPP
7887 else
7888 ac_cv_prog_CPP=$CPP
7889 fi
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7891 $as_echo "$CPP" >&6; }
7892 ac_preproc_ok=false
7893 for ac_c_preproc_warn_flag in '' yes
7894 do
7895 # Use a header file that comes with gcc, so configuring glibc
7896 # with a fresh cross-compiler works.
7897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898 # <limits.h> exists even on freestanding compilers.
7899 # On the NeXT, cc -E runs the code through the compiler's parser,
7900 # not just through cpp. "Syntax error" is here to catch this case.
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 #ifdef __STDC__
7904 # include <limits.h>
7905 #else
7906 # include <assert.h>
7907 #endif
7908 Syntax error
7909 _ACEOF
7910 if ac_fn_c_try_cpp "$LINENO"; then :
7911
7912 else
7913 # Broken: fails on valid input.
7914 continue
7915 fi
7916 rm -f conftest.err conftest.i conftest.$ac_ext
7917
7918 # OK, works on sane cases. Now check whether nonexistent headers
7919 # can be detected and how.
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 #include <ac_nonexistent.h>
7923 _ACEOF
7924 if ac_fn_c_try_cpp "$LINENO"; then :
7925 # Broken: success on invalid input.
7926 continue
7927 else
7928 # Passes both tests.
7929 ac_preproc_ok=:
7930 break
7931 fi
7932 rm -f conftest.err conftest.i conftest.$ac_ext
7933
7934 done
7935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7936 rm -f conftest.i conftest.err conftest.$ac_ext
7937 if $ac_preproc_ok; then :
7938
7939 else
7940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7942 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7943 See \`config.log' for more details" "$LINENO" 5; }
7944 fi
7945
7946 ac_ext=c
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951
7952
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7954 $as_echo_n "checking for ANSI C header files... " >&6; }
7955 if ${ac_cv_header_stdc+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7960 #include <stdlib.h>
7961 #include <stdarg.h>
7962 #include <string.h>
7963 #include <float.h>
7964
7965 int
7966 main ()
7967 {
7968
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 if ac_fn_c_try_compile "$LINENO"; then :
7974 ac_cv_header_stdc=yes
7975 else
7976 ac_cv_header_stdc=no
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979
7980 if test $ac_cv_header_stdc = yes; then
7981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 #include <string.h>
7985
7986 _ACEOF
7987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7988 $EGREP "memchr" >/dev/null 2>&1; then :
7989
7990 else
7991 ac_cv_header_stdc=no
7992 fi
7993 rm -f conftest*
7994
7995 fi
7996
7997 if test $ac_cv_header_stdc = yes; then
7998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 #include <stdlib.h>
8002
8003 _ACEOF
8004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8005 $EGREP "free" >/dev/null 2>&1; then :
8006
8007 else
8008 ac_cv_header_stdc=no
8009 fi
8010 rm -f conftest*
8011
8012 fi
8013
8014 if test $ac_cv_header_stdc = yes; then
8015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8016 if test "$cross_compiling" = yes; then :
8017 :
8018 else
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 #include <ctype.h>
8022 #include <stdlib.h>
8023 #if ((' ' & 0x0FF) == 0x020)
8024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8026 #else
8027 # define ISLOWER(c) \
8028 (('a' <= (c) && (c) <= 'i') \
8029 || ('j' <= (c) && (c) <= 'r') \
8030 || ('s' <= (c) && (c) <= 'z'))
8031 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8032 #endif
8033
8034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8035 int
8036 main ()
8037 {
8038 int i;
8039 for (i = 0; i < 256; i++)
8040 if (XOR (islower (i), ISLOWER (i))
8041 || toupper (i) != TOUPPER (i))
8042 return 2;
8043 return 0;
8044 }
8045 _ACEOF
8046 if ac_fn_c_try_run "$LINENO"; then :
8047
8048 else
8049 ac_cv_header_stdc=no
8050 fi
8051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8052 conftest.$ac_objext conftest.beam conftest.$ac_ext
8053 fi
8054
8055 fi
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8058 $as_echo "$ac_cv_header_stdc" >&6; }
8059 if test $ac_cv_header_stdc = yes; then
8060
8061 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8062
8063 fi
8064
8065 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8066 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8067 inttypes.h stdint.h unistd.h
8068 do :
8069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8070 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8071 "
8072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8073 cat >>confdefs.h <<_ACEOF
8074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8075 _ACEOF
8076
8077 fi
8078
8079 done
8080
8081
8082 for ac_header in dlfcn.h
8083 do :
8084 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8085 "
8086 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8087 cat >>confdefs.h <<_ACEOF
8088 #define HAVE_DLFCN_H 1
8089 _ACEOF
8090
8091 fi
8092
8093 done
8094
8095
8096
8097
8098 func_stripname_cnf ()
8099 {
8100 case $2 in
8101 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8102 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8103 esac
8104 } # func_stripname_cnf
8105
8106
8107
8108
8109
8110 # Set options
8111
8112
8113
8114 enable_dlopen=no
8115
8116
8117 enable_win32_dll=no
8118
8119
8120 # Check whether --enable-shared was given.
8121 if test "${enable_shared+set}" = set; then :
8122 enableval=$enable_shared; p=${PACKAGE-default}
8123 case $enableval in
8124 yes) enable_shared=yes ;;
8125 no) enable_shared=no ;;
8126 *)
8127 enable_shared=no
8128 # Look at the argument we got. We use all the common list separators.
8129 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8130 for pkg in $enableval; do
8131 IFS=$lt_save_ifs
8132 if test "X$pkg" = "X$p"; then
8133 enable_shared=yes
8134 fi
8135 done
8136 IFS=$lt_save_ifs
8137 ;;
8138 esac
8139 else
8140 enable_shared=yes
8141 fi
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 # Check whether --enable-static was given.
8152 if test "${enable_static+set}" = set; then :
8153 enableval=$enable_static; p=${PACKAGE-default}
8154 case $enableval in
8155 yes) enable_static=yes ;;
8156 no) enable_static=no ;;
8157 *)
8158 enable_static=no
8159 # Look at the argument we got. We use all the common list separators.
8160 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8161 for pkg in $enableval; do
8162 IFS=$lt_save_ifs
8163 if test "X$pkg" = "X$p"; then
8164 enable_static=yes
8165 fi
8166 done
8167 IFS=$lt_save_ifs
8168 ;;
8169 esac
8170 else
8171 enable_static=yes
8172 fi
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 # Check whether --with-pic was given.
8184 if test "${with_pic+set}" = set; then :
8185 withval=$with_pic; lt_p=${PACKAGE-default}
8186 case $withval in
8187 yes|no) pic_mode=$withval ;;
8188 *)
8189 pic_mode=default
8190 # Look at the argument we got. We use all the common list separators.
8191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8192 for lt_pkg in $withval; do
8193 IFS=$lt_save_ifs
8194 if test "X$lt_pkg" = "X$lt_p"; then
8195 pic_mode=yes
8196 fi
8197 done
8198 IFS=$lt_save_ifs
8199 ;;
8200 esac
8201 else
8202 pic_mode=default
8203 fi
8204
8205
8206
8207
8208
8209
8210
8211
8212 # Check whether --enable-fast-install was given.
8213 if test "${enable_fast_install+set}" = set; then :
8214 enableval=$enable_fast_install; p=${PACKAGE-default}
8215 case $enableval in
8216 yes) enable_fast_install=yes ;;
8217 no) enable_fast_install=no ;;
8218 *)
8219 enable_fast_install=no
8220 # Look at the argument we got. We use all the common list separators.
8221 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8222 for pkg in $enableval; do
8223 IFS=$lt_save_ifs
8224 if test "X$pkg" = "X$p"; then
8225 enable_fast_install=yes
8226 fi
8227 done
8228 IFS=$lt_save_ifs
8229 ;;
8230 esac
8231 else
8232 enable_fast_install=yes
8233 fi
8234
8235
8236
8237
8238
8239
8240
8241
8242 shared_archive_member_spec=
8243 case $host,$enable_shared in
8244 power*-*-aix[5-9]*,yes)
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8246 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8247
8248 # Check whether --with-aix-soname was given.
8249 if test "${with_aix_soname+set}" = set; then :
8250 withval=$with_aix_soname; case $withval in
8251 aix|svr4|both)
8252 ;;
8253 *)
8254 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8255 ;;
8256 esac
8257 lt_cv_with_aix_soname=$with_aix_soname
8258 else
8259 if ${lt_cv_with_aix_soname+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 lt_cv_with_aix_soname=aix
8263 fi
8264
8265 with_aix_soname=$lt_cv_with_aix_soname
8266 fi
8267
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8269 $as_echo "$with_aix_soname" >&6; }
8270 if test aix != "$with_aix_soname"; then
8271 # For the AIX way of multilib, we name the shared archive member
8272 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8273 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8274 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8275 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8276 if test 64 = "${OBJECT_MODE-32}"; then
8277 shared_archive_member_spec=shr_64
8278 else
8279 shared_archive_member_spec=shr
8280 fi
8281 fi
8282 ;;
8283 *)
8284 with_aix_soname=aix
8285 ;;
8286 esac
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297 # This can be used to rebuild libtool when needed
8298 LIBTOOL_DEPS=$ltmain
8299
8300 # Always use our own libtool.
8301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332 test -z "$LN_S" && LN_S="ln -s"
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347 if test -n "${ZSH_VERSION+set}"; then
8348 setopt NO_GLOB_SUBST
8349 fi
8350
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8352 $as_echo_n "checking for objdir... " >&6; }
8353 if ${lt_cv_objdir+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 rm -f .libs 2>/dev/null
8357 mkdir .libs 2>/dev/null
8358 if test -d .libs; then
8359 lt_cv_objdir=.libs
8360 else
8361 # MS-DOS does not allow filenames that begin with a dot.
8362 lt_cv_objdir=_libs
8363 fi
8364 rmdir .libs 2>/dev/null
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8367 $as_echo "$lt_cv_objdir" >&6; }
8368 objdir=$lt_cv_objdir
8369
8370
8371
8372
8373
8374 cat >>confdefs.h <<_ACEOF
8375 #define LT_OBJDIR "$lt_cv_objdir/"
8376 _ACEOF
8377
8378
8379
8380
8381 case $host_os in
8382 aix3*)
8383 # AIX sometimes has problems with the GCC collect2 program. For some
8384 # reason, if we set the COLLECT_NAMES environment variable, the problems
8385 # vanish in a puff of smoke.
8386 if test set != "${COLLECT_NAMES+set}"; then
8387 COLLECT_NAMES=
8388 export COLLECT_NAMES
8389 fi
8390 ;;
8391 esac
8392
8393 # Global variables:
8394 ofile=libtool
8395 can_build_shared=yes
8396
8397 # All known linkers require a '.a' archive for static linking (except MSVC,
8398 # which needs '.lib').
8399 libext=a
8400
8401 with_gnu_ld=$lt_cv_prog_gnu_ld
8402
8403 old_CC=$CC
8404 old_CFLAGS=$CFLAGS
8405
8406 # Set sane defaults for various variables
8407 test -z "$CC" && CC=cc
8408 test -z "$LTCC" && LTCC=$CC
8409 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8410 test -z "$LD" && LD=ld
8411 test -z "$ac_objext" && ac_objext=o
8412
8413 func_cc_basename $compiler
8414 cc_basename=$func_cc_basename_result
8415
8416
8417 # Only perform the check for file, if the check method requires it
8418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8419 case $deplibs_check_method in
8420 file_magic*)
8421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8423 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 case $MAGIC_CMD in
8428 [\\/*] | ?:[\\/]*)
8429 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8430 ;;
8431 *)
8432 lt_save_MAGIC_CMD=$MAGIC_CMD
8433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8435 for ac_dir in $ac_dummy; do
8436 IFS=$lt_save_ifs
8437 test -z "$ac_dir" && ac_dir=.
8438 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8439 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8440 if test -n "$file_magic_test_file"; then
8441 case $deplibs_check_method in
8442 "file_magic "*)
8443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8444 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8446 $EGREP "$file_magic_regex" > /dev/null; then
8447 :
8448 else
8449 cat <<_LT_EOF 1>&2
8450
8451 *** Warning: the command libtool uses to detect shared libraries,
8452 *** $file_magic_cmd, produces output that libtool cannot recognize.
8453 *** The result is that libtool may fail to recognize shared libraries
8454 *** as such. This will affect the creation of libtool libraries that
8455 *** depend on shared libraries, but programs linked with such libtool
8456 *** libraries will work regardless of this problem. Nevertheless, you
8457 *** may want to report the problem to your system manager and/or to
8458 *** [email protected]
8459
8460 _LT_EOF
8461 fi ;;
8462 esac
8463 fi
8464 break
8465 fi
8466 done
8467 IFS=$lt_save_ifs
8468 MAGIC_CMD=$lt_save_MAGIC_CMD
8469 ;;
8470 esac
8471 fi
8472
8473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8474 if test -n "$MAGIC_CMD"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8476 $as_echo "$MAGIC_CMD" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482
8483
8484
8485
8486 if test -z "$lt_cv_path_MAGIC_CMD"; then
8487 if test -n "$ac_tool_prefix"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8489 $as_echo_n "checking for file... " >&6; }
8490 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 case $MAGIC_CMD in
8494 [\\/*] | ?:[\\/]*)
8495 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8496 ;;
8497 *)
8498 lt_save_MAGIC_CMD=$MAGIC_CMD
8499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8501 for ac_dir in $ac_dummy; do
8502 IFS=$lt_save_ifs
8503 test -z "$ac_dir" && ac_dir=.
8504 if test -f "$ac_dir/file"; then
8505 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8506 if test -n "$file_magic_test_file"; then
8507 case $deplibs_check_method in
8508 "file_magic "*)
8509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8512 $EGREP "$file_magic_regex" > /dev/null; then
8513 :
8514 else
8515 cat <<_LT_EOF 1>&2
8516
8517 *** Warning: the command libtool uses to detect shared libraries,
8518 *** $file_magic_cmd, produces output that libtool cannot recognize.
8519 *** The result is that libtool may fail to recognize shared libraries
8520 *** as such. This will affect the creation of libtool libraries that
8521 *** depend on shared libraries, but programs linked with such libtool
8522 *** libraries will work regardless of this problem. Nevertheless, you
8523 *** may want to report the problem to your system manager and/or to
8524 *** [email protected]
8525
8526 _LT_EOF
8527 fi ;;
8528 esac
8529 fi
8530 break
8531 fi
8532 done
8533 IFS=$lt_save_ifs
8534 MAGIC_CMD=$lt_save_MAGIC_CMD
8535 ;;
8536 esac
8537 fi
8538
8539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8540 if test -n "$MAGIC_CMD"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8542 $as_echo "$MAGIC_CMD" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 else
8550 MAGIC_CMD=:
8551 fi
8552 fi
8553
8554 fi
8555 ;;
8556 esac
8557
8558 # Use C for the default configuration in the libtool script
8559
8560 lt_save_CC=$CC
8561 ac_ext=c
8562 ac_cpp='$CPP $CPPFLAGS'
8563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8566
8567
8568 # Source file extension for C test sources.
8569 ac_ext=c
8570
8571 # Object file extension for compiled C test sources.
8572 objext=o
8573 objext=$objext
8574
8575 # Code to be used in simple compile tests
8576 lt_simple_compile_test_code="int some_variable = 0;"
8577
8578 # Code to be used in simple link tests
8579 lt_simple_link_test_code='int main(){return(0);}'
8580
8581
8582
8583
8584
8585
8586
8587 # If no C compiler was specified, use CC.
8588 LTCC=${LTCC-"$CC"}
8589
8590 # If no C compiler flags were specified, use CFLAGS.
8591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8592
8593 # Allow CC to be a program name with arguments.
8594 compiler=$CC
8595
8596 # Save the default compiler, since it gets overwritten when the other
8597 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8598 compiler_DEFAULT=$CC
8599
8600 # save warnings/boilerplate of simple test code
8601 ac_outfile=conftest.$ac_objext
8602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8604 _lt_compiler_boilerplate=`cat conftest.err`
8605 $RM conftest*
8606
8607 ac_outfile=conftest.$ac_objext
8608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8610 _lt_linker_boilerplate=`cat conftest.err`
8611 $RM -r conftest*
8612
8613
8614 if test -n "$compiler"; then
8615
8616 lt_prog_compiler_no_builtin_flag=
8617
8618 if test yes = "$GCC"; then
8619 case $cc_basename in
8620 nvcc*)
8621 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8622 *)
8623 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8624 esac
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 lt_cv_prog_compiler_rtti_exceptions=no
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8634 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8635 # Insert the option either (1) after the last *FLAGS variable, or
8636 # (2) before a word containing "conftest.", or (3) at the end.
8637 # Note that $ac_compile itself does not contain backslashes and begins
8638 # with a dollar sign (not a hyphen), so the echo should work correctly.
8639 # The option is referenced via a variable to avoid confusing sed.
8640 lt_compile=`echo "$ac_compile" | $SED \
8641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8643 -e 's:$: $lt_compiler_flag:'`
8644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8645 (eval "$lt_compile" 2>conftest.err)
8646 ac_status=$?
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 if (exit $ac_status) && test -s "$ac_outfile"; then
8650 # The compiler can only warn and ignore the option if not recognized
8651 # So say no if there are warnings other than the usual output.
8652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8655 lt_cv_prog_compiler_rtti_exceptions=yes
8656 fi
8657 fi
8658 $RM conftest*
8659
8660 fi
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8663
8664 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8666 else
8667 :
8668 fi
8669
8670 fi
8671
8672
8673
8674
8675
8676
8677 lt_prog_compiler_wl=
8678 lt_prog_compiler_pic=
8679 lt_prog_compiler_static=
8680
8681
8682 if test yes = "$GCC"; then
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_static='-static'
8685
8686 case $host_os in
8687 aix*)
8688 # All AIX code is PIC.
8689 if test ia64 = "$host_cpu"; then
8690 # AIX 5 now supports IA64 processor
8691 lt_prog_compiler_static='-Bstatic'
8692 fi
8693 lt_prog_compiler_pic='-fPIC'
8694 ;;
8695
8696 amigaos*)
8697 case $host_cpu in
8698 powerpc)
8699 # see comment about AmigaOS4 .so support
8700 lt_prog_compiler_pic='-fPIC'
8701 ;;
8702 m68k)
8703 # FIXME: we need at least 68020 code to build shared libraries, but
8704 # adding the '-m68020' flag to GCC prevents building anything better,
8705 # like '-m68040'.
8706 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8707 ;;
8708 esac
8709 ;;
8710
8711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8712 # PIC is the default for these OSes.
8713 ;;
8714
8715 mingw* | cygwin* | pw32* | os2* | cegcc*)
8716 # This hack is so that the source file can tell whether it is being
8717 # built for inclusion in a dll (and should export symbols for example).
8718 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8719 # (--disable-auto-import) libraries
8720 lt_prog_compiler_pic='-DDLL_EXPORT'
8721 case $host_os in
8722 os2*)
8723 lt_prog_compiler_static='$wl-static'
8724 ;;
8725 esac
8726 ;;
8727
8728 darwin* | rhapsody*)
8729 # PIC is the default on this platform
8730 # Common symbols not allowed in MH_DYLIB files
8731 lt_prog_compiler_pic='-fno-common'
8732 ;;
8733
8734 haiku*)
8735 # PIC is the default for Haiku.
8736 # The "-static" flag exists, but is broken.
8737 lt_prog_compiler_static=
8738 ;;
8739
8740 hpux*)
8741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8743 # sets the default TLS model and affects inlining.
8744 case $host_cpu in
8745 hppa*64*)
8746 # +Z the default
8747 ;;
8748 *)
8749 lt_prog_compiler_pic='-fPIC'
8750 ;;
8751 esac
8752 ;;
8753
8754 interix[3-9]*)
8755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8756 # Instead, we relocate shared libraries at runtime.
8757 ;;
8758
8759 msdosdjgpp*)
8760 # Just because we use GCC doesn't mean we suddenly get shared libraries
8761 # on systems that don't support them.
8762 lt_prog_compiler_can_build_shared=no
8763 enable_shared=no
8764 ;;
8765
8766 *nto* | *qnx*)
8767 # QNX uses GNU C++, but need to define -shared option too, otherwise
8768 # it will coredump.
8769 lt_prog_compiler_pic='-fPIC -shared'
8770 ;;
8771
8772 sysv4*MP*)
8773 if test -d /usr/nec; then
8774 lt_prog_compiler_pic=-Kconform_pic
8775 fi
8776 ;;
8777
8778 *)
8779 lt_prog_compiler_pic='-fPIC'
8780 ;;
8781 esac
8782
8783 case $cc_basename in
8784 nvcc*) # Cuda Compiler Driver 2.2
8785 lt_prog_compiler_wl='-Xlinker '
8786 if test -n "$lt_prog_compiler_pic"; then
8787 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8788 fi
8789 ;;
8790 esac
8791 else
8792 # PORTME Check for flag to pass linker flags through the system compiler.
8793 case $host_os in
8794 aix*)
8795 lt_prog_compiler_wl='-Wl,'
8796 if test ia64 = "$host_cpu"; then
8797 # AIX 5 now supports IA64 processor
8798 lt_prog_compiler_static='-Bstatic'
8799 else
8800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8801 fi
8802 ;;
8803
8804 darwin* | rhapsody*)
8805 # PIC is the default on this platform
8806 # Common symbols not allowed in MH_DYLIB files
8807 lt_prog_compiler_pic='-fno-common'
8808 case $cc_basename in
8809 nagfor*)
8810 # NAG Fortran compiler
8811 lt_prog_compiler_wl='-Wl,-Wl,,'
8812 lt_prog_compiler_pic='-PIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 ;;
8815 esac
8816 ;;
8817
8818 mingw* | cygwin* | pw32* | os2* | cegcc*)
8819 # This hack is so that the source file can tell whether it is being
8820 # built for inclusion in a dll (and should export symbols for example).
8821 lt_prog_compiler_pic='-DDLL_EXPORT'
8822 case $host_os in
8823 os2*)
8824 lt_prog_compiler_static='$wl-static'
8825 ;;
8826 esac
8827 ;;
8828
8829 hpux9* | hpux10* | hpux11*)
8830 lt_prog_compiler_wl='-Wl,'
8831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8832 # not for PA HP-UX.
8833 case $host_cpu in
8834 hppa*64*|ia64*)
8835 # +Z the default
8836 ;;
8837 *)
8838 lt_prog_compiler_pic='+Z'
8839 ;;
8840 esac
8841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8842 lt_prog_compiler_static='$wl-a ${wl}archive'
8843 ;;
8844
8845 irix5* | irix6* | nonstopux*)
8846 lt_prog_compiler_wl='-Wl,'
8847 # PIC (with -KPIC) is the default.
8848 lt_prog_compiler_static='-non_shared'
8849 ;;
8850
8851 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8852 case $cc_basename in
8853 # old Intel for x86_64, which still supported -KPIC.
8854 ecc*)
8855 lt_prog_compiler_wl='-Wl,'
8856 lt_prog_compiler_pic='-KPIC'
8857 lt_prog_compiler_static='-static'
8858 ;;
8859 # icc used to be incompatible with GCC.
8860 # ICC 10 doesn't accept -KPIC any more.
8861 icc* | ifort*)
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_pic='-fPIC'
8864 lt_prog_compiler_static='-static'
8865 ;;
8866 # Lahey Fortran 8.1.
8867 lf95*)
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='--shared'
8870 lt_prog_compiler_static='--static'
8871 ;;
8872 nagfor*)
8873 # NAG Fortran compiler
8874 lt_prog_compiler_wl='-Wl,-Wl,,'
8875 lt_prog_compiler_pic='-PIC'
8876 lt_prog_compiler_static='-Bstatic'
8877 ;;
8878 tcc*)
8879 # Fabrice Bellard et al's Tiny C Compiler
8880 lt_prog_compiler_wl='-Wl,'
8881 lt_prog_compiler_pic='-fPIC'
8882 lt_prog_compiler_static='-static'
8883 ;;
8884 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8885 # Portland Group compilers (*not* the Pentium gcc compiler,
8886 # which looks to be a dead project)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-fpic'
8889 lt_prog_compiler_static='-Bstatic'
8890 ;;
8891 ccc*)
8892 lt_prog_compiler_wl='-Wl,'
8893 # All Alpha code is PIC.
8894 lt_prog_compiler_static='-non_shared'
8895 ;;
8896 xl* | bgxl* | bgf* | mpixl*)
8897 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_pic='-qpic'
8900 lt_prog_compiler_static='-qstaticlink'
8901 ;;
8902 *)
8903 case `$CC -V 2>&1 | sed 5q` in
8904 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8905 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8906 lt_prog_compiler_pic='-KPIC'
8907 lt_prog_compiler_static='-Bstatic'
8908 lt_prog_compiler_wl=''
8909 ;;
8910 *Sun\ F* | *Sun*Fortran*)
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_wl='-Qoption ld '
8914 ;;
8915 *Sun\ C*)
8916 # Sun C 5.9
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 lt_prog_compiler_wl='-Wl,'
8920 ;;
8921 *Intel*\ [CF]*Compiler*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-fPIC'
8924 lt_prog_compiler_static='-static'
8925 ;;
8926 *Portland\ Group*)
8927 lt_prog_compiler_wl='-Wl,'
8928 lt_prog_compiler_pic='-fpic'
8929 lt_prog_compiler_static='-Bstatic'
8930 ;;
8931 esac
8932 ;;
8933 esac
8934 ;;
8935
8936 newsos6)
8937 lt_prog_compiler_pic='-KPIC'
8938 lt_prog_compiler_static='-Bstatic'
8939 ;;
8940
8941 *nto* | *qnx*)
8942 # QNX uses GNU C++, but need to define -shared option too, otherwise
8943 # it will coredump.
8944 lt_prog_compiler_pic='-fPIC -shared'
8945 ;;
8946
8947 osf3* | osf4* | osf5*)
8948 lt_prog_compiler_wl='-Wl,'
8949 # All OSF/1 code is PIC.
8950 lt_prog_compiler_static='-non_shared'
8951 ;;
8952
8953 rdos*)
8954 lt_prog_compiler_static='-non_shared'
8955 ;;
8956
8957 solaris*)
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-Bstatic'
8960 case $cc_basename in
8961 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8962 lt_prog_compiler_wl='-Qoption ld ';;
8963 *)
8964 lt_prog_compiler_wl='-Wl,';;
8965 esac
8966 ;;
8967
8968 sunos4*)
8969 lt_prog_compiler_wl='-Qoption ld '
8970 lt_prog_compiler_pic='-PIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 ;;
8973
8974 sysv4 | sysv4.2uw2* | sysv4.3*)
8975 lt_prog_compiler_wl='-Wl,'
8976 lt_prog_compiler_pic='-KPIC'
8977 lt_prog_compiler_static='-Bstatic'
8978 ;;
8979
8980 sysv4*MP*)
8981 if test -d /usr/nec; then
8982 lt_prog_compiler_pic='-Kconform_pic'
8983 lt_prog_compiler_static='-Bstatic'
8984 fi
8985 ;;
8986
8987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-Bstatic'
8991 ;;
8992
8993 unicos*)
8994 lt_prog_compiler_wl='-Wl,'
8995 lt_prog_compiler_can_build_shared=no
8996 ;;
8997
8998 uts4*)
8999 lt_prog_compiler_pic='-pic'
9000 lt_prog_compiler_static='-Bstatic'
9001 ;;
9002
9003 *)
9004 lt_prog_compiler_can_build_shared=no
9005 ;;
9006 esac
9007 fi
9008
9009 case $host_os in
9010 # For platforms that do not support PIC, -DPIC is meaningless:
9011 *djgpp*)
9012 lt_prog_compiler_pic=
9013 ;;
9014 *)
9015 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9016 ;;
9017 esac
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9020 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9021 if ${lt_cv_prog_compiler_pic+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9027 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9028 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9029
9030 #
9031 # Check to make sure the PIC flag actually works.
9032 #
9033 if test -n "$lt_prog_compiler_pic"; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9035 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9036 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 lt_cv_prog_compiler_pic_works=no
9040 ac_outfile=conftest.$ac_objext
9041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9042 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9043 # Insert the option either (1) after the last *FLAGS variable, or
9044 # (2) before a word containing "conftest.", or (3) at the end.
9045 # Note that $ac_compile itself does not contain backslashes and begins
9046 # with a dollar sign (not a hyphen), so the echo should work correctly.
9047 # The option is referenced via a variable to avoid confusing sed.
9048 lt_compile=`echo "$ac_compile" | $SED \
9049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9051 -e 's:$: $lt_compiler_flag:'`
9052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9053 (eval "$lt_compile" 2>conftest.err)
9054 ac_status=$?
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 if (exit $ac_status) && test -s "$ac_outfile"; then
9058 # The compiler can only warn and ignore the option if not recognized
9059 # So say no if there are warnings other than the usual output.
9060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9063 lt_cv_prog_compiler_pic_works=yes
9064 fi
9065 fi
9066 $RM conftest*
9067
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9070 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9071
9072 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9073 case $lt_prog_compiler_pic in
9074 "" | " "*) ;;
9075 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9076 esac
9077 else
9078 lt_prog_compiler_pic=
9079 lt_prog_compiler_can_build_shared=no
9080 fi
9081
9082 fi
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094 #
9095 # Check to make sure the static flag actually works.
9096 #
9097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9100 if ${lt_cv_prog_compiler_static_works+:} false; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 lt_cv_prog_compiler_static_works=no
9104 save_LDFLAGS=$LDFLAGS
9105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9108 # The linker can only warn and ignore the option if not recognized
9109 # So say no if there are warnings
9110 if test -s conftest.err; then
9111 # Append any errors to the config.log.
9112 cat conftest.err 1>&5
9113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9115 if diff conftest.exp conftest.er2 >/dev/null; then
9116 lt_cv_prog_compiler_static_works=yes
9117 fi
9118 else
9119 lt_cv_prog_compiler_static_works=yes
9120 fi
9121 fi
9122 $RM -r conftest*
9123 LDFLAGS=$save_LDFLAGS
9124
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9127 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9128
9129 if test yes = "$lt_cv_prog_compiler_static_works"; then
9130 :
9131 else
9132 lt_prog_compiler_static=
9133 fi
9134
9135
9136
9137
9138
9139
9140
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9143 if ${lt_cv_prog_compiler_c_o+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 lt_cv_prog_compiler_c_o=no
9147 $RM -r conftest 2>/dev/null
9148 mkdir conftest
9149 cd conftest
9150 mkdir out
9151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152
9153 lt_compiler_flag="-o out/conftest2.$ac_objext"
9154 # Insert the option either (1) after the last *FLAGS variable, or
9155 # (2) before a word containing "conftest.", or (3) at the end.
9156 # Note that $ac_compile itself does not contain backslashes and begins
9157 # with a dollar sign (not a hyphen), so the echo should work correctly.
9158 lt_compile=`echo "$ac_compile" | $SED \
9159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161 -e 's:$: $lt_compiler_flag:'`
9162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163 (eval "$lt_compile" 2>out/conftest.err)
9164 ac_status=$?
9165 cat out/conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9168 then
9169 # The compiler can only warn and ignore the option if not recognized
9170 # So say no if there are warnings
9171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler_c_o=yes
9175 fi
9176 fi
9177 chmod u+w . 2>&5
9178 $RM conftest*
9179 # SGI C++ compiler will create directory out/ii_files/ for
9180 # template instantiation
9181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9182 $RM out/* && rmdir out
9183 cd ..
9184 $RM -r conftest
9185 $RM conftest*
9186
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9190
9191
9192
9193
9194
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9198 if ${lt_cv_prog_compiler_c_o+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 lt_cv_prog_compiler_c_o=no
9202 $RM -r conftest 2>/dev/null
9203 mkdir conftest
9204 cd conftest
9205 mkdir out
9206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9207
9208 lt_compiler_flag="-o out/conftest2.$ac_objext"
9209 # Insert the option either (1) after the last *FLAGS variable, or
9210 # (2) before a word containing "conftest.", or (3) at the end.
9211 # Note that $ac_compile itself does not contain backslashes and begins
9212 # with a dollar sign (not a hyphen), so the echo should work correctly.
9213 lt_compile=`echo "$ac_compile" | $SED \
9214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9216 -e 's:$: $lt_compiler_flag:'`
9217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9218 (eval "$lt_compile" 2>out/conftest.err)
9219 ac_status=$?
9220 cat out/conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9223 then
9224 # The compiler can only warn and ignore the option if not recognized
9225 # So say no if there are warnings
9226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9229 lt_cv_prog_compiler_c_o=yes
9230 fi
9231 fi
9232 chmod u+w . 2>&5
9233 $RM conftest*
9234 # SGI C++ compiler will create directory out/ii_files/ for
9235 # template instantiation
9236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9237 $RM out/* && rmdir out
9238 cd ..
9239 $RM -r conftest
9240 $RM conftest*
9241
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9245
9246
9247
9248
9249 hard_links=nottested
9250 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9251 # do not overwrite the value of need_locks provided by the user
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9253 $as_echo_n "checking if we can lock with hard links... " >&6; }
9254 hard_links=yes
9255 $RM conftest*
9256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9257 touch conftest.a
9258 ln conftest.a conftest.b 2>&5 || hard_links=no
9259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9261 $as_echo "$hard_links" >&6; }
9262 if test no = "$hard_links"; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9264 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9265 need_locks=warn
9266 fi
9267 else
9268 need_locks=no
9269 fi
9270
9271
9272
9273
9274
9275
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9277 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9278
9279 runpath_var=
9280 allow_undefined_flag=
9281 always_export_symbols=no
9282 archive_cmds=
9283 archive_expsym_cmds=
9284 compiler_needs_object=no
9285 enable_shared_with_static_runtimes=no
9286 export_dynamic_flag_spec=
9287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9288 hardcode_automatic=no
9289 hardcode_direct=no
9290 hardcode_direct_absolute=no
9291 hardcode_libdir_flag_spec=
9292 hardcode_libdir_separator=
9293 hardcode_minus_L=no
9294 hardcode_shlibpath_var=unsupported
9295 inherit_rpath=no
9296 link_all_deplibs=unknown
9297 module_cmds=
9298 module_expsym_cmds=
9299 old_archive_from_new_cmds=
9300 old_archive_from_expsyms_cmds=
9301 thread_safe_flag_spec=
9302 whole_archive_flag_spec=
9303 # include_expsyms should be a list of space-separated symbols to be *always*
9304 # included in the symbol list
9305 include_expsyms=
9306 # exclude_expsyms can be an extended regexp of symbols to exclude
9307 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9308 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9309 # as well as any symbol that contains 'd'.
9310 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9312 # platforms (ab)use it in PIC code, but their linkers get confused if
9313 # the symbol is explicitly referenced. Since portable code cannot
9314 # rely on this symbol name, it's probably fine to never include it in
9315 # preloaded symbol tables.
9316 # Exclude shared library initialization/finalization symbols.
9317 extract_expsyms_cmds=
9318
9319 case $host_os in
9320 cygwin* | mingw* | pw32* | cegcc*)
9321 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9322 # When not using gcc, we currently assume that we are using
9323 # Microsoft Visual C++.
9324 if test yes != "$GCC"; then
9325 with_gnu_ld=no
9326 fi
9327 ;;
9328 interix*)
9329 # we just hope/assume this is gcc and not c89 (= MSVC++)
9330 with_gnu_ld=yes
9331 ;;
9332 openbsd* | bitrig*)
9333 with_gnu_ld=no
9334 ;;
9335 esac
9336
9337 ld_shlibs=yes
9338
9339 # On some targets, GNU ld is compatible enough with the native linker
9340 # that we're better off using the native interface for both.
9341 lt_use_gnu_ld_interface=no
9342 if test yes = "$with_gnu_ld"; then
9343 case $host_os in
9344 aix*)
9345 # The AIX port of GNU ld has always aspired to compatibility
9346 # with the native linker. However, as the warning in the GNU ld
9347 # block says, versions before 2.19.5* couldn't really create working
9348 # shared libraries, regardless of the interface used.
9349 case `$LD -v 2>&1` in
9350 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9351 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9352 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9353 *)
9354 lt_use_gnu_ld_interface=yes
9355 ;;
9356 esac
9357 ;;
9358 *)
9359 lt_use_gnu_ld_interface=yes
9360 ;;
9361 esac
9362 fi
9363
9364 if test yes = "$lt_use_gnu_ld_interface"; then
9365 # If archive_cmds runs LD, not CC, wlarc should be empty
9366 wlarc='$wl'
9367
9368 # Set some defaults for GNU ld with shared library support. These
9369 # are reset later if shared libraries are not supported. Putting them
9370 # here allows them to be overridden if necessary.
9371 runpath_var=LD_RUN_PATH
9372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9373 export_dynamic_flag_spec='$wl--export-dynamic'
9374 # ancient GNU ld didn't support --whole-archive et. al.
9375 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9376 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9377 else
9378 whole_archive_flag_spec=
9379 fi
9380 supports_anon_versioning=no
9381 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9382 *GNU\ gold*) supports_anon_versioning=yes ;;
9383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9386 *\ 2.11.*) ;; # other 2.11 versions
9387 *) supports_anon_versioning=yes ;;
9388 esac
9389
9390 # See if GNU ld supports shared libraries.
9391 case $host_os in
9392 aix[3-9]*)
9393 # On AIX/PPC, the GNU linker is very broken
9394 if test ia64 != "$host_cpu"; then
9395 ld_shlibs=no
9396 cat <<_LT_EOF 1>&2
9397
9398 *** Warning: the GNU linker, at least up to release 2.19, is reported
9399 *** to be unable to reliably create shared libraries on AIX.
9400 *** Therefore, libtool is disabling shared libraries support. If you
9401 *** really care for shared libraries, you may want to install binutils
9402 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9403 *** You will then need to restart the configuration process.
9404
9405 _LT_EOF
9406 fi
9407 ;;
9408
9409 amigaos*)
9410 case $host_cpu in
9411 powerpc)
9412 # see comment about AmigaOS4 .so support
9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9414 archive_expsym_cmds=''
9415 ;;
9416 m68k)
9417 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)'
9418 hardcode_libdir_flag_spec='-L$libdir'
9419 hardcode_minus_L=yes
9420 ;;
9421 esac
9422 ;;
9423
9424 beos*)
9425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9426 allow_undefined_flag=unsupported
9427 # Joseph Beckenbach <[email protected]> says some releases of gcc
9428 # support --undefined. This deserves some investigation. FIXME
9429 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9430 else
9431 ld_shlibs=no
9432 fi
9433 ;;
9434
9435 cygwin* | mingw* | pw32* | cegcc*)
9436 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9437 # as there is no search path for DLLs.
9438 hardcode_libdir_flag_spec='-L$libdir'
9439 export_dynamic_flag_spec='$wl--export-all-symbols'
9440 allow_undefined_flag=unsupported
9441 always_export_symbols=no
9442 enable_shared_with_static_runtimes=yes
9443 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'
9444 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9445
9446 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9448 # If the export-symbols file already is a .def file, use it as
9449 # is; otherwise, prepend EXPORTS...
9450 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9451 cp $export_symbols $output_objdir/$soname.def;
9452 else
9453 echo EXPORTS > $output_objdir/$soname.def;
9454 cat $export_symbols >> $output_objdir/$soname.def;
9455 fi~
9456 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9457 else
9458 ld_shlibs=no
9459 fi
9460 ;;
9461
9462 haiku*)
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9464 link_all_deplibs=yes
9465 ;;
9466
9467 os2*)
9468 hardcode_libdir_flag_spec='-L$libdir'
9469 hardcode_minus_L=yes
9470 allow_undefined_flag=unsupported
9471 shrext_cmds=.dll
9472 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9473 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9474 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9475 $ECHO EXPORTS >> $output_objdir/$libname.def~
9476 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9477 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9478 emximp -o $lib $output_objdir/$libname.def'
9479 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9480 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9481 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9482 $ECHO EXPORTS >> $output_objdir/$libname.def~
9483 prefix_cmds="$SED"~
9484 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9485 prefix_cmds="$prefix_cmds -e 1d";
9486 fi~
9487 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9488 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9489 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9490 emximp -o $lib $output_objdir/$libname.def'
9491 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9492 enable_shared_with_static_runtimes=yes
9493 ;;
9494
9495 interix[3-9]*)
9496 hardcode_direct=no
9497 hardcode_shlibpath_var=no
9498 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9499 export_dynamic_flag_spec='$wl-E'
9500 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9501 # Instead, shared libraries are loaded at an image base (0x10000000 by
9502 # default) and relocated if they conflict, which is a slow very memory
9503 # consuming and fragmenting process. To avoid this, we pick a random,
9504 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9505 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9507 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'
9508 ;;
9509
9510 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9511 tmp_diet=no
9512 if test linux-dietlibc = "$host_os"; then
9513 case $cc_basename in
9514 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9515 esac
9516 fi
9517 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9518 && test no = "$tmp_diet"
9519 then
9520 tmp_addflag=' $pic_flag'
9521 tmp_sharedflag='-shared'
9522 case $cc_basename,$host_cpu in
9523 pgcc*) # Portland Group C compiler
9524 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'
9525 tmp_addflag=' $pic_flag'
9526 ;;
9527 pgf77* | pgf90* | pgf95* | pgfortran*)
9528 # Portland Group f77 and f90 compilers
9529 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'
9530 tmp_addflag=' $pic_flag -Mnomain' ;;
9531 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9532 tmp_addflag=' -i_dynamic' ;;
9533 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9534 tmp_addflag=' -i_dynamic -nofor_main' ;;
9535 ifc* | ifort*) # Intel Fortran compiler
9536 tmp_addflag=' -nofor_main' ;;
9537 lf95*) # Lahey Fortran 8.1
9538 whole_archive_flag_spec=
9539 tmp_sharedflag='--shared' ;;
9540 nagfor*) # NAGFOR 5.3
9541 tmp_sharedflag='-Wl,-shared' ;;
9542 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9543 tmp_sharedflag='-qmkshrobj'
9544 tmp_addflag= ;;
9545 nvcc*) # Cuda Compiler Driver 2.2
9546 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'
9547 compiler_needs_object=yes
9548 ;;
9549 esac
9550 case `$CC -V 2>&1 | sed 5q` in
9551 *Sun\ C*) # Sun C 5.9
9552 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'
9553 compiler_needs_object=yes
9554 tmp_sharedflag='-G' ;;
9555 *Sun\ F*) # Sun Fortran 8.3
9556 tmp_sharedflag='-G' ;;
9557 esac
9558 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9559
9560 if test yes = "$supports_anon_versioning"; then
9561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9563 echo "local: *; };" >> $output_objdir/$libname.ver~
9564 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9565 fi
9566
9567 case $cc_basename in
9568 tcc*)
9569 export_dynamic_flag_spec='-rdynamic'
9570 ;;
9571 xlf* | bgf* | bgxlf* | mpixlf*)
9572 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9573 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9574 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9575 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9576 if test yes = "$supports_anon_versioning"; then
9577 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9579 echo "local: *; };" >> $output_objdir/$libname.ver~
9580 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9581 fi
9582 ;;
9583 esac
9584 else
9585 ld_shlibs=no
9586 fi
9587 ;;
9588
9589 netbsd*)
9590 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9591 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9592 wlarc=
9593 else
9594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9595 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9596 fi
9597 ;;
9598
9599 solaris*)
9600 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9601 ld_shlibs=no
9602 cat <<_LT_EOF 1>&2
9603
9604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9605 *** create shared libraries on Solaris systems. Therefore, libtool
9606 *** is disabling shared libraries support. We urge you to upgrade GNU
9607 *** binutils to release 2.9.1 or newer. Another option is to modify
9608 *** your PATH or compiler configuration so that the native linker is
9609 *** used, and then restart.
9610
9611 _LT_EOF
9612 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9614 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9615 else
9616 ld_shlibs=no
9617 fi
9618 ;;
9619
9620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9621 case `$LD -v 2>&1` in
9622 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9623 ld_shlibs=no
9624 cat <<_LT_EOF 1>&2
9625
9626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9627 *** reliably create shared libraries on SCO systems. Therefore, libtool
9628 *** is disabling shared libraries support. We urge you to upgrade GNU
9629 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9630 *** your PATH or compiler configuration so that the native linker is
9631 *** used, and then restart.
9632
9633 _LT_EOF
9634 ;;
9635 *)
9636 # For security reasons, it is highly recommended that you always
9637 # use absolute paths for naming shared libraries, and exclude the
9638 # DT_RUNPATH tag from executables and libraries. But doing so
9639 # requires that you compile everything twice, which is a pain.
9640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9641 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9644 else
9645 ld_shlibs=no
9646 fi
9647 ;;
9648 esac
9649 ;;
9650
9651 sunos4*)
9652 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9653 wlarc=
9654 hardcode_direct=yes
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 *)
9659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9662 else
9663 ld_shlibs=no
9664 fi
9665 ;;
9666 esac
9667
9668 if test no = "$ld_shlibs"; then
9669 runpath_var=
9670 hardcode_libdir_flag_spec=
9671 export_dynamic_flag_spec=
9672 whole_archive_flag_spec=
9673 fi
9674 else
9675 # PORTME fill in a description of your system's linker (not GNU ld)
9676 case $host_os in
9677 aix3*)
9678 allow_undefined_flag=unsupported
9679 always_export_symbols=yes
9680 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'
9681 # Note: this linker hardcodes the directories in LIBPATH if there
9682 # are no directories specified by -L.
9683 hardcode_minus_L=yes
9684 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9685 # Neither direct hardcoding nor static linking is supported with a
9686 # broken collect2.
9687 hardcode_direct=unsupported
9688 fi
9689 ;;
9690
9691 aix[4-9]*)
9692 if test ia64 = "$host_cpu"; then
9693 # On IA64, the linker does run time linking by default, so we don't
9694 # have to do anything special.
9695 aix_use_runtimelinking=no
9696 exp_sym_flag='-Bexport'
9697 no_entry_flag=
9698 else
9699 # If we're using GNU nm, then we don't want the "-C" option.
9700 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9701 # Without the "-l" option, or with the "-B" option, AIX nm treats
9702 # weak defined symbols like other global defined symbols, whereas
9703 # GNU nm marks them as "W".
9704 # While the 'weak' keyword is ignored in the Export File, we need
9705 # it in the Import File for the 'aix-soname' feature, so we have
9706 # to replace the "-B" option with "-P" for AIX nm.
9707 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9708 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9709 else
9710 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9711 fi
9712 aix_use_runtimelinking=no
9713
9714 # Test if we are trying to use run time linking or normal
9715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9716 # have runtime linking enabled, and use it for executables.
9717 # For shared libraries, we enable/disable runtime linking
9718 # depending on the kind of the shared library created -
9719 # when "with_aix_soname,aix_use_runtimelinking" is:
9720 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9721 # "aix,yes" lib.so shared, rtl:yes, for executables
9722 # lib.a static archive
9723 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9724 # lib.a(lib.so.V) shared, rtl:no, for executables
9725 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9726 # lib.a(lib.so.V) shared, rtl:no
9727 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9728 # lib.a static archive
9729 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9730 for ld_flag in $LDFLAGS; do
9731 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9732 aix_use_runtimelinking=yes
9733 break
9734 fi
9735 done
9736 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9737 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9738 # so we don't have lib.a shared libs to link our executables.
9739 # We have to force runtime linking in this case.
9740 aix_use_runtimelinking=yes
9741 LDFLAGS="$LDFLAGS -Wl,-brtl"
9742 fi
9743 ;;
9744 esac
9745
9746 exp_sym_flag='-bexport'
9747 no_entry_flag='-bnoentry'
9748 fi
9749
9750 # When large executables or shared objects are built, AIX ld can
9751 # have problems creating the table of contents. If linking a library
9752 # or program results in "error TOC overflow" add -mminimal-toc to
9753 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9754 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9755
9756 archive_cmds=''
9757 hardcode_direct=yes
9758 hardcode_direct_absolute=yes
9759 hardcode_libdir_separator=':'
9760 link_all_deplibs=yes
9761 file_list_spec='$wl-f,'
9762 case $with_aix_soname,$aix_use_runtimelinking in
9763 aix,*) ;; # traditional, no import file
9764 svr4,* | *,yes) # use import file
9765 # The Import File defines what to hardcode.
9766 hardcode_direct=no
9767 hardcode_direct_absolute=no
9768 ;;
9769 esac
9770
9771 if test yes = "$GCC"; then
9772 case $host_os in aix4.[012]|aix4.[012].*)
9773 # We only want to do this on AIX 4.2 and lower, the check
9774 # below for broken collect2 doesn't work under 4.3+
9775 collect2name=`$CC -print-prog-name=collect2`
9776 if test -f "$collect2name" &&
9777 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9778 then
9779 # We have reworked collect2
9780 :
9781 else
9782 # We have old collect2
9783 hardcode_direct=unsupported
9784 # It fails to find uninstalled libraries when the uninstalled
9785 # path is not listed in the libpath. Setting hardcode_minus_L
9786 # to unsupported forces relinking
9787 hardcode_minus_L=yes
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 hardcode_libdir_separator=
9790 fi
9791 ;;
9792 esac
9793 shared_flag='-shared'
9794 if test yes = "$aix_use_runtimelinking"; then
9795 shared_flag="$shared_flag "'$wl-G'
9796 fi
9797 # Need to ensure runtime linking is disabled for the traditional
9798 # shared library, or the linker may eventually find shared libraries
9799 # /with/ Import File - we do not want to mix them.
9800 shared_flag_aix='-shared'
9801 shared_flag_svr4='-shared $wl-G'
9802 else
9803 # not using gcc
9804 if test ia64 = "$host_cpu"; then
9805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9806 # chokes on -Wl,-G. The following line is correct:
9807 shared_flag='-G'
9808 else
9809 if test yes = "$aix_use_runtimelinking"; then
9810 shared_flag='$wl-G'
9811 else
9812 shared_flag='$wl-bM:SRE'
9813 fi
9814 shared_flag_aix='$wl-bM:SRE'
9815 shared_flag_svr4='$wl-G'
9816 fi
9817 fi
9818
9819 export_dynamic_flag_spec='$wl-bexpall'
9820 # It seems that -bexpall does not export symbols beginning with
9821 # underscore (_), so it is better to generate a list of symbols to export.
9822 always_export_symbols=yes
9823 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9824 # Warning - without using the other runtime loading flags (-brtl),
9825 # -berok will link without error, but may produce a broken library.
9826 allow_undefined_flag='-berok'
9827 # Determine the default libpath from the value encoded in an
9828 # empty executable.
9829 if test set = "${lt_cv_aix_libpath+set}"; then
9830 aix_libpath=$lt_cv_aix_libpath
9831 else
9832 if ${lt_cv_aix_libpath_+:} false; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9837
9838 int
9839 main ()
9840 {
9841
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 if ac_fn_c_try_link "$LINENO"; then :
9847
9848 lt_aix_libpath_sed='
9849 /Import File Strings/,/^$/ {
9850 /^0/ {
9851 s/^0 *\([^ ]*\) *$/\1/
9852 p
9853 }
9854 }'
9855 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9856 # Check for a 64-bit object if we didn't find anything.
9857 if test -z "$lt_cv_aix_libpath_"; then
9858 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9859 fi
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863 if test -z "$lt_cv_aix_libpath_"; then
9864 lt_cv_aix_libpath_=/usr/lib:/lib
9865 fi
9866
9867 fi
9868
9869 aix_libpath=$lt_cv_aix_libpath_
9870 fi
9871
9872 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9873 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9874 else
9875 if test ia64 = "$host_cpu"; then
9876 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9877 allow_undefined_flag="-z nodefs"
9878 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"
9879 else
9880 # Determine the default libpath from the value encoded in an
9881 # empty executable.
9882 if test set = "${lt_cv_aix_libpath+set}"; then
9883 aix_libpath=$lt_cv_aix_libpath
9884 else
9885 if ${lt_cv_aix_libpath_+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890
9891 int
9892 main ()
9893 {
9894
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_c_try_link "$LINENO"; then :
9900
9901 lt_aix_libpath_sed='
9902 /Import File Strings/,/^$/ {
9903 /^0/ {
9904 s/^0 *\([^ ]*\) *$/\1/
9905 p
9906 }
9907 }'
9908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9909 # Check for a 64-bit object if we didn't find anything.
9910 if test -z "$lt_cv_aix_libpath_"; then
9911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9912 fi
9913 fi
9914 rm -f core conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
9916 if test -z "$lt_cv_aix_libpath_"; then
9917 lt_cv_aix_libpath_=/usr/lib:/lib
9918 fi
9919
9920 fi
9921
9922 aix_libpath=$lt_cv_aix_libpath_
9923 fi
9924
9925 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9926 # Warning - without using the other run time loading flags,
9927 # -berok will link without error, but may produce a broken library.
9928 no_undefined_flag=' $wl-bernotok'
9929 allow_undefined_flag=' $wl-berok'
9930 if test yes = "$with_gnu_ld"; then
9931 # We only use this code for GNU lds that support --whole-archive.
9932 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9933 else
9934 # Exported symbols can be pulled into shared objects from archives
9935 whole_archive_flag_spec='$convenience'
9936 fi
9937 archive_cmds_need_lc=yes
9938 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9939 # -brtl affects multiple linker settings, -berok does not and is overridden later
9940 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9941 if test svr4 != "$with_aix_soname"; then
9942 # This is similar to how AIX traditionally builds its shared libraries.
9943 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9944 fi
9945 if test aix != "$with_aix_soname"; then
9946 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9947 else
9948 # used by -dlpreopen to get the symbols
9949 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9950 fi
9951 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9952 fi
9953 fi
9954 ;;
9955
9956 amigaos*)
9957 case $host_cpu in
9958 powerpc)
9959 # see comment about AmigaOS4 .so support
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9961 archive_expsym_cmds=''
9962 ;;
9963 m68k)
9964 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)'
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_minus_L=yes
9967 ;;
9968 esac
9969 ;;
9970
9971 bsdi[45]*)
9972 export_dynamic_flag_spec=-rdynamic
9973 ;;
9974
9975 cygwin* | mingw* | pw32* | cegcc*)
9976 # When not using gcc, we currently assume that we are using
9977 # Microsoft Visual C++.
9978 # hardcode_libdir_flag_spec is actually meaningless, as there is
9979 # no search path for DLLs.
9980 case $cc_basename in
9981 cl*)
9982 # Native MSVC
9983 hardcode_libdir_flag_spec=' '
9984 allow_undefined_flag=unsupported
9985 always_export_symbols=yes
9986 file_list_spec='@'
9987 # Tell ltmain to make .lib files, not .a files.
9988 libext=lib
9989 # Tell ltmain to make .dll files, not .so files.
9990 shrext_cmds=.dll
9991 # FIXME: Setting linknames here is a bad hack.
9992 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9993 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9994 cp "$export_symbols" "$output_objdir/$soname.def";
9995 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9996 else
9997 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9998 fi~
9999 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10000 linknames='
10001 # The linker will not automatically build a static lib if we build a DLL.
10002 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10003 enable_shared_with_static_runtimes=yes
10004 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10006 # Don't use ranlib
10007 old_postinstall_cmds='chmod 644 $oldlib'
10008 postlink_cmds='lt_outputfile="@OUTPUT@"~
10009 lt_tool_outputfile="@TOOL_OUTPUT@"~
10010 case $lt_outputfile in
10011 *.exe|*.EXE) ;;
10012 *)
10013 lt_outputfile=$lt_outputfile.exe
10014 lt_tool_outputfile=$lt_tool_outputfile.exe
10015 ;;
10016 esac~
10017 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10018 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10019 $RM "$lt_outputfile.manifest";
10020 fi'
10021 ;;
10022 *)
10023 # Assume MSVC wrapper
10024 hardcode_libdir_flag_spec=' '
10025 allow_undefined_flag=unsupported
10026 # Tell ltmain to make .lib files, not .a files.
10027 libext=lib
10028 # Tell ltmain to make .dll files, not .so files.
10029 shrext_cmds=.dll
10030 # FIXME: Setting linknames here is a bad hack.
10031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10032 # The linker will automatically build a .lib file if we build a DLL.
10033 old_archive_from_new_cmds='true'
10034 # FIXME: Should let the user specify the lib program.
10035 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10036 enable_shared_with_static_runtimes=yes
10037 ;;
10038 esac
10039 ;;
10040
10041 darwin* | rhapsody*)
10042
10043
10044 archive_cmds_need_lc=no
10045 hardcode_direct=no
10046 hardcode_automatic=yes
10047 hardcode_shlibpath_var=unsupported
10048 if test yes = "$lt_cv_ld_force_load"; then
10049 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\"`'
10050
10051 else
10052 whole_archive_flag_spec=''
10053 fi
10054 link_all_deplibs=yes
10055 allow_undefined_flag=$_lt_dar_allow_undefined
10056 case $cc_basename in
10057 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10058 *) _lt_dar_can_shared=$GCC ;;
10059 esac
10060 if test yes = "$_lt_dar_can_shared"; then
10061 output_verbose_link_cmd=func_echo_all
10062 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10063 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10064 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"
10065 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"
10066
10067 else
10068 ld_shlibs=no
10069 fi
10070
10071 ;;
10072
10073 dgux*)
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_libdir_flag_spec='-L$libdir'
10076 hardcode_shlibpath_var=no
10077 ;;
10078
10079 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10080 # support. Future versions do this automatically, but an explicit c++rt0.o
10081 # does not break anything, and helps significantly (at the cost of a little
10082 # extra space).
10083 freebsd2.2*)
10084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 hardcode_direct=yes
10087 hardcode_shlibpath_var=no
10088 ;;
10089
10090 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10091 freebsd2.*)
10092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10093 hardcode_direct=yes
10094 hardcode_minus_L=yes
10095 hardcode_shlibpath_var=no
10096 ;;
10097
10098 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10099 freebsd* | dragonfly*)
10100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10101 hardcode_libdir_flag_spec='-R$libdir'
10102 hardcode_direct=yes
10103 hardcode_shlibpath_var=no
10104 ;;
10105
10106 hpux9*)
10107 if test yes = "$GCC"; then
10108 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10109 else
10110 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10111 fi
10112 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10113 hardcode_libdir_separator=:
10114 hardcode_direct=yes
10115
10116 # hardcode_minus_L: Not really in the search PATH,
10117 # but as the default location of the library.
10118 hardcode_minus_L=yes
10119 export_dynamic_flag_spec='$wl-E'
10120 ;;
10121
10122 hpux10*)
10123 if test yes,no = "$GCC,$with_gnu_ld"; then
10124 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10125 else
10126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10127 fi
10128 if test no = "$with_gnu_ld"; then
10129 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10130 hardcode_libdir_separator=:
10131 hardcode_direct=yes
10132 hardcode_direct_absolute=yes
10133 export_dynamic_flag_spec='$wl-E'
10134 # hardcode_minus_L: Not really in the search PATH,
10135 # but as the default location of the library.
10136 hardcode_minus_L=yes
10137 fi
10138 ;;
10139
10140 hpux11*)
10141 if test yes,no = "$GCC,$with_gnu_ld"; then
10142 case $host_cpu in
10143 hppa*64*)
10144 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 ;;
10146 ia64*)
10147 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10148 ;;
10149 *)
10150 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10151 ;;
10152 esac
10153 else
10154 case $host_cpu in
10155 hppa*64*)
10156 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 ;;
10158 ia64*)
10159 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10160 ;;
10161 *)
10162
10163 # Older versions of the 11.00 compiler do not understand -b yet
10164 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10166 $as_echo_n "checking if $CC understands -b... " >&6; }
10167 if ${lt_cv_prog_compiler__b+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 lt_cv_prog_compiler__b=no
10171 save_LDFLAGS=$LDFLAGS
10172 LDFLAGS="$LDFLAGS -b"
10173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10175 # The linker can only warn and ignore the option if not recognized
10176 # So say no if there are warnings
10177 if test -s conftest.err; then
10178 # Append any errors to the config.log.
10179 cat conftest.err 1>&5
10180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10182 if diff conftest.exp conftest.er2 >/dev/null; then
10183 lt_cv_prog_compiler__b=yes
10184 fi
10185 else
10186 lt_cv_prog_compiler__b=yes
10187 fi
10188 fi
10189 $RM -r conftest*
10190 LDFLAGS=$save_LDFLAGS
10191
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10194 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10195
10196 if test yes = "$lt_cv_prog_compiler__b"; then
10197 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10198 else
10199 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10200 fi
10201
10202 ;;
10203 esac
10204 fi
10205 if test no = "$with_gnu_ld"; then
10206 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10207 hardcode_libdir_separator=:
10208
10209 case $host_cpu in
10210 hppa*64*|ia64*)
10211 hardcode_direct=no
10212 hardcode_shlibpath_var=no
10213 ;;
10214 *)
10215 hardcode_direct=yes
10216 hardcode_direct_absolute=yes
10217 export_dynamic_flag_spec='$wl-E'
10218
10219 # hardcode_minus_L: Not really in the search PATH,
10220 # but as the default location of the library.
10221 hardcode_minus_L=yes
10222 ;;
10223 esac
10224 fi
10225 ;;
10226
10227 irix5* | irix6* | nonstopux*)
10228 if test yes = "$GCC"; then
10229 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'
10230 # Try to use the -exported_symbol ld option, if it does not
10231 # work, assume that -exports_file does not work either and
10232 # implicitly export all symbols.
10233 # This should be the same for all languages, so no per-tag cache variable.
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10235 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10236 if ${lt_cv_irix_exported_symbol+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 save_LDFLAGS=$LDFLAGS
10240 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10243 int foo (void) { return 0; }
10244 _ACEOF
10245 if ac_fn_c_try_link "$LINENO"; then :
10246 lt_cv_irix_exported_symbol=yes
10247 else
10248 lt_cv_irix_exported_symbol=no
10249 fi
10250 rm -f core conftest.err conftest.$ac_objext \
10251 conftest$ac_exeext conftest.$ac_ext
10252 LDFLAGS=$save_LDFLAGS
10253 fi
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10255 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10256 if test yes = "$lt_cv_irix_exported_symbol"; then
10257 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'
10258 fi
10259 else
10260 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'
10261 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'
10262 fi
10263 archive_cmds_need_lc='no'
10264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10265 hardcode_libdir_separator=:
10266 inherit_rpath=yes
10267 link_all_deplibs=yes
10268 ;;
10269
10270 linux*)
10271 case $cc_basename in
10272 tcc*)
10273 # Fabrice Bellard et al's Tiny C Compiler
10274 ld_shlibs=yes
10275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10276 ;;
10277 esac
10278 ;;
10279
10280 netbsd*)
10281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10283 else
10284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10285 fi
10286 hardcode_libdir_flag_spec='-R$libdir'
10287 hardcode_direct=yes
10288 hardcode_shlibpath_var=no
10289 ;;
10290
10291 newsos6)
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_direct=yes
10294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10295 hardcode_libdir_separator=:
10296 hardcode_shlibpath_var=no
10297 ;;
10298
10299 *nto* | *qnx*)
10300 ;;
10301
10302 openbsd* | bitrig*)
10303 if test -f /usr/libexec/ld.so; then
10304 hardcode_direct=yes
10305 hardcode_shlibpath_var=no
10306 hardcode_direct_absolute=yes
10307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10310 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10311 export_dynamic_flag_spec='$wl-E'
10312 else
10313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10314 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10315 fi
10316 else
10317 ld_shlibs=no
10318 fi
10319 ;;
10320
10321 os2*)
10322 hardcode_libdir_flag_spec='-L$libdir'
10323 hardcode_minus_L=yes
10324 allow_undefined_flag=unsupported
10325 shrext_cmds=.dll
10326 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10327 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10328 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10329 $ECHO EXPORTS >> $output_objdir/$libname.def~
10330 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10331 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10332 emximp -o $lib $output_objdir/$libname.def'
10333 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10334 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10335 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10336 $ECHO EXPORTS >> $output_objdir/$libname.def~
10337 prefix_cmds="$SED"~
10338 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10339 prefix_cmds="$prefix_cmds -e 1d";
10340 fi~
10341 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10342 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10343 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10344 emximp -o $lib $output_objdir/$libname.def'
10345 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10346 enable_shared_with_static_runtimes=yes
10347 ;;
10348
10349 osf3*)
10350 if test yes = "$GCC"; then
10351 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10352 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'
10353 else
10354 allow_undefined_flag=' -expect_unresolved \*'
10355 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'
10356 fi
10357 archive_cmds_need_lc='no'
10358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10359 hardcode_libdir_separator=:
10360 ;;
10361
10362 osf4* | osf5*) # as osf3* with the addition of -msym flag
10363 if test yes = "$GCC"; then
10364 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10365 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'
10366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10367 else
10368 allow_undefined_flag=' -expect_unresolved \*'
10369 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'
10370 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~
10371 $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'
10372
10373 # Both c and cxx compiler support -rpath directly
10374 hardcode_libdir_flag_spec='-rpath $libdir'
10375 fi
10376 archive_cmds_need_lc='no'
10377 hardcode_libdir_separator=:
10378 ;;
10379
10380 solaris*)
10381 no_undefined_flag=' -z defs'
10382 if test yes = "$GCC"; then
10383 wlarc='$wl'
10384 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10386 $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'
10387 else
10388 case `$CC -V 2>&1` in
10389 *"Compilers 5.0"*)
10390 wlarc=''
10391 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10393 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10394 ;;
10395 *)
10396 wlarc='$wl'
10397 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10399 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10400 ;;
10401 esac
10402 fi
10403 hardcode_libdir_flag_spec='-R$libdir'
10404 hardcode_shlibpath_var=no
10405 case $host_os in
10406 solaris2.[0-5] | solaris2.[0-5].*) ;;
10407 *)
10408 # The compiler driver will combine and reorder linker options,
10409 # but understands '-z linker_flag'. GCC discards it without '$wl',
10410 # but is careful enough not to reorder.
10411 # Supported since Solaris 2.6 (maybe 2.5.1?)
10412 if test yes = "$GCC"; then
10413 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10414 else
10415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10416 fi
10417 ;;
10418 esac
10419 link_all_deplibs=yes
10420 ;;
10421
10422 sunos4*)
10423 if test sequent = "$host_vendor"; then
10424 # Use $CC to link under sequent, because it throws in some extra .o
10425 # files that make .init and .fini sections work.
10426 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10427 else
10428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10429 fi
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 hardcode_direct=yes
10432 hardcode_minus_L=yes
10433 hardcode_shlibpath_var=no
10434 ;;
10435
10436 sysv4)
10437 case $host_vendor in
10438 sni)
10439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440 hardcode_direct=yes # is this really true???
10441 ;;
10442 siemens)
10443 ## LD is ld it makes a PLAMLIB
10444 ## CC just makes a GrossModule.
10445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10446 reload_cmds='$CC -r -o $output$reload_objs'
10447 hardcode_direct=no
10448 ;;
10449 motorola)
10450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10452 ;;
10453 esac
10454 runpath_var='LD_RUN_PATH'
10455 hardcode_shlibpath_var=no
10456 ;;
10457
10458 sysv4.3*)
10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_shlibpath_var=no
10461 export_dynamic_flag_spec='-Bexport'
10462 ;;
10463
10464 sysv4*MP*)
10465 if test -d /usr/nec; then
10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_shlibpath_var=no
10468 runpath_var=LD_RUN_PATH
10469 hardcode_runpath_var=yes
10470 ld_shlibs=yes
10471 fi
10472 ;;
10473
10474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10475 no_undefined_flag='$wl-z,text'
10476 archive_cmds_need_lc=no
10477 hardcode_shlibpath_var=no
10478 runpath_var='LD_RUN_PATH'
10479
10480 if test yes = "$GCC"; then
10481 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 else
10484 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 fi
10487 ;;
10488
10489 sysv5* | sco3.2v5* | sco5v6*)
10490 # Note: We CANNOT use -z defs as we might desire, because we do not
10491 # link with -lc, and that would cause any symbols used from libc to
10492 # always be unresolved, which means just about no library would
10493 # ever link correctly. If we're not using GNU ld we use -z text
10494 # though, which does catch some bad symbols but isn't as heavy-handed
10495 # as -z defs.
10496 no_undefined_flag='$wl-z,text'
10497 allow_undefined_flag='$wl-z,nodefs'
10498 archive_cmds_need_lc=no
10499 hardcode_shlibpath_var=no
10500 hardcode_libdir_flag_spec='$wl-R,$libdir'
10501 hardcode_libdir_separator=':'
10502 link_all_deplibs=yes
10503 export_dynamic_flag_spec='$wl-Bexport'
10504 runpath_var='LD_RUN_PATH'
10505
10506 if test yes = "$GCC"; then
10507 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10508 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10509 else
10510 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512 fi
10513 ;;
10514
10515 uts4*)
10516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517 hardcode_libdir_flag_spec='-L$libdir'
10518 hardcode_shlibpath_var=no
10519 ;;
10520
10521 *)
10522 ld_shlibs=no
10523 ;;
10524 esac
10525
10526 if test sni = "$host_vendor"; then
10527 case $host in
10528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10529 export_dynamic_flag_spec='$wl-Blargedynsym'
10530 ;;
10531 esac
10532 fi
10533 fi
10534
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10536 $as_echo "$ld_shlibs" >&6; }
10537 test no = "$ld_shlibs" && can_build_shared=no
10538
10539 with_gnu_ld=$with_gnu_ld
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555 #
10556 # Do we need to explicitly link libc?
10557 #
10558 case "x$archive_cmds_need_lc" in
10559 x|xyes)
10560 # Assume -lc should be added
10561 archive_cmds_need_lc=yes
10562
10563 if test yes,yes = "$GCC,$enable_shared"; then
10564 case $archive_cmds in
10565 *'~'*)
10566 # FIXME: we may have to deal with multi-command sequences.
10567 ;;
10568 '$CC '*)
10569 # Test whether the compiler implicitly links with -lc since on some
10570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10571 # to ld, don't add -lc before -lgcc.
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10573 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10574 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 $RM conftest*
10578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10579
10580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10581 (eval $ac_compile) 2>&5
10582 ac_status=$?
10583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10584 test $ac_status = 0; } 2>conftest.err; then
10585 soname=conftest
10586 lib=conftest
10587 libobjs=conftest.$ac_objext
10588 deplibs=
10589 wl=$lt_prog_compiler_wl
10590 pic_flag=$lt_prog_compiler_pic
10591 compiler_flags=-v
10592 linker_flags=-v
10593 verstring=
10594 output_objdir=.
10595 libname=conftest
10596 lt_save_allow_undefined_flag=$allow_undefined_flag
10597 allow_undefined_flag=
10598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10600 ac_status=$?
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; }
10603 then
10604 lt_cv_archive_cmds_need_lc=no
10605 else
10606 lt_cv_archive_cmds_need_lc=yes
10607 fi
10608 allow_undefined_flag=$lt_save_allow_undefined_flag
10609 else
10610 cat conftest.err 1>&5
10611 fi
10612 $RM conftest*
10613
10614 fi
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10616 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10617 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10618 ;;
10619 esac
10620 fi
10621 ;;
10622 esac
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10777
10778 if test yes = "$GCC"; then
10779 case $host_os in
10780 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10781 *) lt_awk_arg='/^libraries:/' ;;
10782 esac
10783 case $host_os in
10784 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10785 *) lt_sed_strip_eq='s|=/|/|g' ;;
10786 esac
10787 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10788 case $lt_search_path_spec in
10789 *\;*)
10790 # if the path contains ";" then we assume it to be the separator
10791 # otherwise default to the standard path separator (i.e. ":") - it is
10792 # assumed that no part of a normal pathname contains ";" but that should
10793 # okay in the real world where ";" in dirpaths is itself problematic.
10794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10795 ;;
10796 *)
10797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10798 ;;
10799 esac
10800 # Ok, now we have the path, separated by spaces, we can step through it
10801 # and add multilib dir if necessary...
10802 lt_tmp_lt_search_path_spec=
10803 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10804 # ...but if some path component already ends with the multilib dir we assume
10805 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10806 case "$lt_multi_os_dir; $lt_search_path_spec " in
10807 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10808 lt_multi_os_dir=
10809 ;;
10810 esac
10811 for lt_sys_path in $lt_search_path_spec; do
10812 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10814 elif test -n "$lt_multi_os_dir"; then
10815 test -d "$lt_sys_path" && \
10816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10817 fi
10818 done
10819 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10820 BEGIN {RS = " "; FS = "/|\n";} {
10821 lt_foo = "";
10822 lt_count = 0;
10823 for (lt_i = NF; lt_i > 0; lt_i--) {
10824 if ($lt_i != "" && $lt_i != ".") {
10825 if ($lt_i == "..") {
10826 lt_count++;
10827 } else {
10828 if (lt_count == 0) {
10829 lt_foo = "/" $lt_i lt_foo;
10830 } else {
10831 lt_count--;
10832 }
10833 }
10834 }
10835 }
10836 if (lt_foo != "") { lt_freq[lt_foo]++; }
10837 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10838 }'`
10839 # AWK program above erroneously prepends '/' to C:/dos/paths
10840 # for these hosts.
10841 case $host_os in
10842 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10843 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10844 esac
10845 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10846 else
10847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10848 fi
10849 library_names_spec=
10850 libname_spec='lib$name'
10851 soname_spec=
10852 shrext_cmds=.so
10853 postinstall_cmds=
10854 postuninstall_cmds=
10855 finish_cmds=
10856 finish_eval=
10857 shlibpath_var=
10858 shlibpath_overrides_runpath=unknown
10859 version_type=none
10860 dynamic_linker="$host_os ld.so"
10861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10862 need_lib_prefix=unknown
10863 hardcode_into_libs=no
10864
10865 # when you set need_version to no, make sure it does not cause -set_version
10866 # flags to be left without arguments
10867 need_version=unknown
10868
10869
10870
10871 case $host_os in
10872 aix3*)
10873 version_type=linux # correct to gnu/linux during the next big refactor
10874 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10875 shlibpath_var=LIBPATH
10876
10877 # AIX 3 has no versioning support, so we append a major version to the name.
10878 soname_spec='$libname$release$shared_ext$major'
10879 ;;
10880
10881 aix[4-9]*)
10882 version_type=linux # correct to gnu/linux during the next big refactor
10883 need_lib_prefix=no
10884 need_version=no
10885 hardcode_into_libs=yes
10886 if test ia64 = "$host_cpu"; then
10887 # AIX 5 supports IA64
10888 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 else
10891 # With GCC up to 2.95.x, collect2 would create an import file
10892 # for dependence libraries. The import file would start with
10893 # the line '#! .'. This would cause the generated library to
10894 # depend on '.', always an invalid library. This was fixed in
10895 # development snapshots of GCC prior to 3.0.
10896 case $host_os in
10897 aix4 | aix4.[01] | aix4.[01].*)
10898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10899 echo ' yes '
10900 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10901 :
10902 else
10903 can_build_shared=no
10904 fi
10905 ;;
10906 esac
10907 # Using Import Files as archive members, it is possible to support
10908 # filename-based versioning of shared library archives on AIX. While
10909 # this would work for both with and without runtime linking, it will
10910 # prevent static linking of such archives. So we do filename-based
10911 # shared library versioning with .so extension only, which is used
10912 # when both runtime linking and shared linking is enabled.
10913 # Unfortunately, runtime linking may impact performance, so we do
10914 # not want this to be the default eventually. Also, we use the
10915 # versioned .so libs for executables only if there is the -brtl
10916 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10917 # To allow for filename-based versioning support, we need to create
10918 # libNAME.so.V as an archive file, containing:
10919 # *) an Import File, referring to the versioned filename of the
10920 # archive as well as the shared archive member, telling the
10921 # bitwidth (32 or 64) of that shared object, and providing the
10922 # list of exported symbols of that shared object, eventually
10923 # decorated with the 'weak' keyword
10924 # *) the shared object with the F_LOADONLY flag set, to really avoid
10925 # it being seen by the linker.
10926 # At run time we better use the real file rather than another symlink,
10927 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10928
10929 case $with_aix_soname,$aix_use_runtimelinking in
10930 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10931 # soname into executable. Probably we can add versioning support to
10932 # collect2, so additional links can be useful in future.
10933 aix,yes) # traditional libtool
10934 dynamic_linker='AIX unversionable lib.so'
10935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10936 # instead of lib<name>.a to let people know that these are not
10937 # typical AIX shared libraries.
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939 ;;
10940 aix,no) # traditional AIX only
10941 dynamic_linker='AIX lib.a(lib.so.V)'
10942 # We preserve .a as extension for shared libraries through AIX4.2
10943 # and later when we are not doing run time linking.
10944 library_names_spec='$libname$release.a $libname.a'
10945 soname_spec='$libname$release$shared_ext$major'
10946 ;;
10947 svr4,*) # full svr4 only
10948 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10949 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10950 # We do not specify a path in Import Files, so LIBPATH fires.
10951 shlibpath_overrides_runpath=yes
10952 ;;
10953 *,yes) # both, prefer svr4
10954 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10955 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10956 # unpreferred sharedlib libNAME.a needs extra handling
10957 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10958 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10959 # We do not specify a path in Import Files, so LIBPATH fires.
10960 shlibpath_overrides_runpath=yes
10961 ;;
10962 *,no) # both, prefer aix
10963 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10964 library_names_spec='$libname$release.a $libname.a'
10965 soname_spec='$libname$release$shared_ext$major'
10966 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10967 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10968 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10969 ;;
10970 esac
10971 shlibpath_var=LIBPATH
10972 fi
10973 ;;
10974
10975 amigaos*)
10976 case $host_cpu in
10977 powerpc)
10978 # Since July 2007 AmigaOS4 officially supports .so libraries.
10979 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10981 ;;
10982 m68k)
10983 library_names_spec='$libname.ixlibrary $libname.a'
10984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10985 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10986 ;;
10987 esac
10988 ;;
10989
10990 beos*)
10991 library_names_spec='$libname$shared_ext'
10992 dynamic_linker="$host_os ld.so"
10993 shlibpath_var=LIBRARY_PATH
10994 ;;
10995
10996 bsdi[45]*)
10997 version_type=linux # correct to gnu/linux during the next big refactor
10998 need_version=no
10999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11000 soname_spec='$libname$release$shared_ext$major'
11001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11005 # the default ld.so.conf also contains /usr/contrib/lib and
11006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11007 # libtool to hard-code these into programs
11008 ;;
11009
11010 cygwin* | mingw* | pw32* | cegcc*)
11011 version_type=windows
11012 shrext_cmds=.dll
11013 need_version=no
11014 need_lib_prefix=no
11015
11016 case $GCC,$cc_basename in
11017 yes,*)
11018 # gcc
11019 library_names_spec='$libname.dll.a'
11020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11021 postinstall_cmds='base_file=`basename \$file`~
11022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11023 dldir=$destdir/`dirname \$dlpath`~
11024 test -d \$dldir || mkdir -p \$dldir~
11025 $install_prog $dir/$dlname \$dldir/$dlname~
11026 chmod a+x \$dldir/$dlname~
11027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11029 fi'
11030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11031 dlpath=$dir/\$dldll~
11032 $RM \$dlpath'
11033 shlibpath_overrides_runpath=yes
11034
11035 case $host_os in
11036 cygwin*)
11037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11038 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11039
11040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11041 ;;
11042 mingw* | cegcc*)
11043 # MinGW DLLs use traditional 'lib' prefix
11044 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11045 ;;
11046 pw32*)
11047 # pw32 DLLs use 'pw' prefix rather than 'lib'
11048 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11049 ;;
11050 esac
11051 dynamic_linker='Win32 ld.exe'
11052 ;;
11053
11054 *,cl*)
11055 # Native MSVC
11056 libname_spec='$name'
11057 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11058 library_names_spec='$libname.dll.lib'
11059
11060 case $build_os in
11061 mingw*)
11062 sys_lib_search_path_spec=
11063 lt_save_ifs=$IFS
11064 IFS=';'
11065 for lt_path in $LIB
11066 do
11067 IFS=$lt_save_ifs
11068 # Let DOS variable expansion print the short 8.3 style file name.
11069 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11070 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11071 done
11072 IFS=$lt_save_ifs
11073 # Convert to MSYS style.
11074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11075 ;;
11076 cygwin*)
11077 # Convert to unix form, then to dos form, then back to unix form
11078 # but this time dos style (no spaces!) so that the unix form looks
11079 # like /cygdrive/c/PROGRA~1:/cygdr...
11080 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11081 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11082 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11083 ;;
11084 *)
11085 sys_lib_search_path_spec=$LIB
11086 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11087 # It is most probably a Windows format PATH.
11088 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11089 else
11090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11091 fi
11092 # FIXME: find the short name or the path components, as spaces are
11093 # common. (e.g. "Program Files" -> "PROGRA~1")
11094 ;;
11095 esac
11096
11097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11098 postinstall_cmds='base_file=`basename \$file`~
11099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11100 dldir=$destdir/`dirname \$dlpath`~
11101 test -d \$dldir || mkdir -p \$dldir~
11102 $install_prog $dir/$dlname \$dldir/$dlname'
11103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11104 dlpath=$dir/\$dldll~
11105 $RM \$dlpath'
11106 shlibpath_overrides_runpath=yes
11107 dynamic_linker='Win32 link.exe'
11108 ;;
11109
11110 *)
11111 # Assume MSVC wrapper
11112 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11113 dynamic_linker='Win32 ld.exe'
11114 ;;
11115 esac
11116 # FIXME: first we should search . and the directory the executable is in
11117 shlibpath_var=PATH
11118 ;;
11119
11120 darwin* | rhapsody*)
11121 dynamic_linker="$host_os dyld"
11122 version_type=darwin
11123 need_lib_prefix=no
11124 need_version=no
11125 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11126 soname_spec='$libname$release$major$shared_ext'
11127 shlibpath_overrides_runpath=yes
11128 shlibpath_var=DYLD_LIBRARY_PATH
11129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11130
11131 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11132 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11133 ;;
11134
11135 dgux*)
11136 version_type=linux # correct to gnu/linux during the next big refactor
11137 need_lib_prefix=no
11138 need_version=no
11139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11140 soname_spec='$libname$release$shared_ext$major'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 ;;
11143
11144 freebsd* | dragonfly*)
11145 # DragonFly does not have aout. When/if they implement a new
11146 # versioning mechanism, adjust this.
11147 if test -x /usr/bin/objformat; then
11148 objformat=`/usr/bin/objformat`
11149 else
11150 case $host_os in
11151 freebsd[23].*) objformat=aout ;;
11152 *) objformat=elf ;;
11153 esac
11154 fi
11155 # Handle Gentoo/FreeBSD as it was Linux
11156 case $host_vendor in
11157 gentoo)
11158 version_type=linux ;;
11159 *)
11160 version_type=freebsd-$objformat ;;
11161 esac
11162
11163 case $version_type in
11164 freebsd-elf*)
11165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11166 soname_spec='$libname$release$shared_ext$major'
11167 need_version=no
11168 need_lib_prefix=no
11169 ;;
11170 freebsd-*)
11171 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11172 need_version=yes
11173 ;;
11174 linux)
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 need_lib_prefix=no
11178 need_version=no
11179 ;;
11180 esac
11181 shlibpath_var=LD_LIBRARY_PATH
11182 case $host_os in
11183 freebsd2.*)
11184 shlibpath_overrides_runpath=yes
11185 ;;
11186 freebsd3.[01]* | freebsdelf3.[01]*)
11187 shlibpath_overrides_runpath=yes
11188 hardcode_into_libs=yes
11189 ;;
11190 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11191 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11192 shlibpath_overrides_runpath=no
11193 hardcode_into_libs=yes
11194 ;;
11195 *) # from 4.6 on, and DragonFly
11196 shlibpath_overrides_runpath=yes
11197 hardcode_into_libs=yes
11198 ;;
11199 esac
11200 ;;
11201
11202 haiku*)
11203 version_type=linux # correct to gnu/linux during the next big refactor
11204 need_lib_prefix=no
11205 need_version=no
11206 dynamic_linker="$host_os runtime_loader"
11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208 soname_spec='$libname$release$shared_ext$major'
11209 shlibpath_var=LIBRARY_PATH
11210 shlibpath_overrides_runpath=no
11211 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11212 hardcode_into_libs=yes
11213 ;;
11214
11215 hpux9* | hpux10* | hpux11*)
11216 # Give a soname corresponding to the major version so that dld.sl refuses to
11217 # link against other versions.
11218 version_type=sunos
11219 need_lib_prefix=no
11220 need_version=no
11221 case $host_cpu in
11222 ia64*)
11223 shrext_cmds='.so'
11224 hardcode_into_libs=yes
11225 dynamic_linker="$host_os dld.so"
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11229 soname_spec='$libname$release$shared_ext$major'
11230 if test 32 = "$HPUX_IA64_MODE"; then
11231 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11232 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11233 else
11234 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11235 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11236 fi
11237 ;;
11238 hppa*64*)
11239 shrext_cmds='.sl'
11240 hardcode_into_libs=yes
11241 dynamic_linker="$host_os dld.sl"
11242 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245 soname_spec='$libname$release$shared_ext$major'
11246 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11248 ;;
11249 *)
11250 shrext_cmds='.sl'
11251 dynamic_linker="$host_os dld.sl"
11252 shlibpath_var=SHLIB_PATH
11253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11255 soname_spec='$libname$release$shared_ext$major'
11256 ;;
11257 esac
11258 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11259 postinstall_cmds='chmod 555 $lib'
11260 # or fails outright, so override atomically:
11261 install_override_mode=555
11262 ;;
11263
11264 interix[3-9]*)
11265 version_type=linux # correct to gnu/linux during the next big refactor
11266 need_lib_prefix=no
11267 need_version=no
11268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11269 soname_spec='$libname$release$shared_ext$major'
11270 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 shlibpath_overrides_runpath=no
11273 hardcode_into_libs=yes
11274 ;;
11275
11276 irix5* | irix6* | nonstopux*)
11277 case $host_os in
11278 nonstopux*) version_type=nonstopux ;;
11279 *)
11280 if test yes = "$lt_cv_prog_gnu_ld"; then
11281 version_type=linux # correct to gnu/linux during the next big refactor
11282 else
11283 version_type=irix
11284 fi ;;
11285 esac
11286 need_lib_prefix=no
11287 need_version=no
11288 soname_spec='$libname$release$shared_ext$major'
11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11290 case $host_os in
11291 irix5* | nonstopux*)
11292 libsuff= shlibsuff=
11293 ;;
11294 *)
11295 case $LD in # libtool.m4 will add one of these switches to LD
11296 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11297 libsuff= shlibsuff= libmagic=32-bit;;
11298 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11299 libsuff=32 shlibsuff=N32 libmagic=N32;;
11300 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11301 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11302 *) libsuff= shlibsuff= libmagic=never-match;;
11303 esac
11304 ;;
11305 esac
11306 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11307 shlibpath_overrides_runpath=no
11308 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11309 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11310 hardcode_into_libs=yes
11311 ;;
11312
11313 # No shared lib support for Linux oldld, aout, or coff.
11314 linux*oldld* | linux*aout* | linux*coff*)
11315 dynamic_linker=no
11316 ;;
11317
11318 linux*android*)
11319 version_type=none # Android doesn't support versioned libraries.
11320 need_lib_prefix=no
11321 need_version=no
11322 library_names_spec='$libname$release$shared_ext'
11323 soname_spec='$libname$release$shared_ext'
11324 finish_cmds=
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11327
11328 # This implies no fast_install, which is unacceptable.
11329 # Some rework will be needed to allow for fast_install
11330 # before this can be enabled.
11331 hardcode_into_libs=yes
11332
11333 dynamic_linker='Android linker'
11334 # Don't embed -rpath directories since the linker doesn't support them.
11335 hardcode_libdir_flag_spec='-L$libdir'
11336 ;;
11337
11338 # This must be glibc/ELF.
11339 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11340 version_type=linux # correct to gnu/linux during the next big refactor
11341 need_lib_prefix=no
11342 need_version=no
11343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11344 soname_spec='$libname$release$shared_ext$major'
11345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=no
11348
11349 # Some binutils ld are patched to set DT_RUNPATH
11350 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 lt_cv_shlibpath_overrides_runpath=no
11354 save_LDFLAGS=$LDFLAGS
11355 save_libdir=$libdir
11356 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11357 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360
11361 int
11362 main ()
11363 {
11364
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11371 lt_cv_shlibpath_overrides_runpath=yes
11372 fi
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376 LDFLAGS=$save_LDFLAGS
11377 libdir=$save_libdir
11378
11379 fi
11380
11381 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11382
11383 # This implies no fast_install, which is unacceptable.
11384 # Some rework will be needed to allow for fast_install
11385 # before this can be enabled.
11386 hardcode_into_libs=yes
11387
11388 # Ideally, we could use ldconfig to report *all* directores which are
11389 # searched for libraries, however this is still not possible. Aside from not
11390 # being certain /sbin/ldconfig is available, command
11391 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11392 # even though it is searched at run-time. Try to do the best guess by
11393 # appending ld.so.conf contents (and includes) to the search path.
11394 if test -f /etc/ld.so.conf; then
11395 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' ' '`
11396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11397 fi
11398
11399 # We used to test for /lib/ld.so.1 and disable shared libraries on
11400 # powerpc, because MkLinux only supported shared libraries with the
11401 # GNU dynamic linker. Since this was broken with cross compilers,
11402 # most powerpc-linux boxes support dynamic linking these days and
11403 # people can always --disable-shared, the test was removed, and we
11404 # assume the GNU/Linux dynamic linker is in use.
11405 dynamic_linker='GNU/Linux ld.so'
11406 ;;
11407
11408 netbsd*)
11409 version_type=sunos
11410 need_lib_prefix=no
11411 need_version=no
11412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11415 dynamic_linker='NetBSD (a.out) ld.so'
11416 else
11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418 soname_spec='$libname$release$shared_ext$major'
11419 dynamic_linker='NetBSD ld.elf_so'
11420 fi
11421 shlibpath_var=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath=yes
11423 hardcode_into_libs=yes
11424 ;;
11425
11426 newsos6)
11427 version_type=linux # correct to gnu/linux during the next big refactor
11428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=yes
11431 ;;
11432
11433 *nto* | *qnx*)
11434 version_type=qnx
11435 need_lib_prefix=no
11436 need_version=no
11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438 soname_spec='$libname$release$shared_ext$major'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=no
11441 hardcode_into_libs=yes
11442 dynamic_linker='ldqnx.so'
11443 ;;
11444
11445 openbsd* | bitrig*)
11446 version_type=sunos
11447 sys_lib_dlsearch_path_spec=/usr/lib
11448 need_lib_prefix=no
11449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11450 need_version=no
11451 else
11452 need_version=yes
11453 fi
11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=yes
11458 ;;
11459
11460 os2*)
11461 libname_spec='$name'
11462 version_type=windows
11463 shrext_cmds=.dll
11464 need_version=no
11465 need_lib_prefix=no
11466 # OS/2 can only load a DLL with a base name of 8 characters or less.
11467 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11468 v=$($ECHO $release$versuffix | tr -d .-);
11469 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11470 $ECHO $n$v`$shared_ext'
11471 library_names_spec='${libname}_dll.$libext'
11472 dynamic_linker='OS/2 ld.exe'
11473 shlibpath_var=BEGINLIBPATH
11474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11476 postinstall_cmds='base_file=`basename \$file`~
11477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11478 dldir=$destdir/`dirname \$dlpath`~
11479 test -d \$dldir || mkdir -p \$dldir~
11480 $install_prog $dir/$dlname \$dldir/$dlname~
11481 chmod a+x \$dldir/$dlname~
11482 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11483 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11484 fi'
11485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11486 dlpath=$dir/\$dldll~
11487 $RM \$dlpath'
11488 ;;
11489
11490 osf3* | osf4* | osf5*)
11491 version_type=osf
11492 need_lib_prefix=no
11493 need_version=no
11494 soname_spec='$libname$release$shared_ext$major'
11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11499 ;;
11500
11501 rdos*)
11502 dynamic_linker=no
11503 ;;
11504
11505 solaris*)
11506 version_type=linux # correct to gnu/linux during the next big refactor
11507 need_lib_prefix=no
11508 need_version=no
11509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11510 soname_spec='$libname$release$shared_ext$major'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=yes
11513 hardcode_into_libs=yes
11514 # ldd complains unless libraries are executable
11515 postinstall_cmds='chmod +x $lib'
11516 ;;
11517
11518 sunos4*)
11519 version_type=sunos
11520 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=yes
11524 if test yes = "$with_gnu_ld"; then
11525 need_lib_prefix=no
11526 fi
11527 need_version=yes
11528 ;;
11529
11530 sysv4 | sysv4.3*)
11531 version_type=linux # correct to gnu/linux during the next big refactor
11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11533 soname_spec='$libname$release$shared_ext$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 case $host_vendor in
11536 sni)
11537 shlibpath_overrides_runpath=no
11538 need_lib_prefix=no
11539 runpath_var=LD_RUN_PATH
11540 ;;
11541 siemens)
11542 need_lib_prefix=no
11543 ;;
11544 motorola)
11545 need_lib_prefix=no
11546 need_version=no
11547 shlibpath_overrides_runpath=no
11548 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11549 ;;
11550 esac
11551 ;;
11552
11553 sysv4*MP*)
11554 if test -d /usr/nec; then
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11557 soname_spec='$libname$shared_ext.$major'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 fi
11560 ;;
11561
11562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11563 version_type=sco
11564 need_lib_prefix=no
11565 need_version=no
11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11567 soname_spec='$libname$release$shared_ext$major'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes
11570 hardcode_into_libs=yes
11571 if test yes = "$with_gnu_ld"; then
11572 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11573 else
11574 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11575 case $host_os in
11576 sco3.2v5*)
11577 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11578 ;;
11579 esac
11580 fi
11581 sys_lib_dlsearch_path_spec='/usr/lib'
11582 ;;
11583
11584 tpf*)
11585 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11586 version_type=linux # correct to gnu/linux during the next big refactor
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=no
11592 hardcode_into_libs=yes
11593 ;;
11594
11595 uts4*)
11596 version_type=linux # correct to gnu/linux during the next big refactor
11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 soname_spec='$libname$release$shared_ext$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 ;;
11601
11602 *)
11603 dynamic_linker=no
11604 ;;
11605 esac
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11607 $as_echo "$dynamic_linker" >&6; }
11608 test no = "$dynamic_linker" && can_build_shared=no
11609
11610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11611 if test yes = "$GCC"; then
11612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11613 fi
11614
11615 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11616 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11617 fi
11618
11619 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11620 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11621 fi
11622
11623 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11624 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11625
11626 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11627 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11628
11629 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11630 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11729 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11730 hardcode_action=
11731 if test -n "$hardcode_libdir_flag_spec" ||
11732 test -n "$runpath_var" ||
11733 test yes = "$hardcode_automatic"; then
11734
11735 # We can hardcode non-existent directories.
11736 if test no != "$hardcode_direct" &&
11737 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11738 # have to relink, otherwise we might link with an installed library
11739 # when we should be linking with a yet-to-be-installed one
11740 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11741 test no != "$hardcode_minus_L"; then
11742 # Linking always hardcodes the temporary library directory.
11743 hardcode_action=relink
11744 else
11745 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11746 hardcode_action=immediate
11747 fi
11748 else
11749 # We cannot hardcode anything, or else we can only hardcode existing
11750 # directories.
11751 hardcode_action=unsupported
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11754 $as_echo "$hardcode_action" >&6; }
11755
11756 if test relink = "$hardcode_action" ||
11757 test yes = "$inherit_rpath"; then
11758 # Fast installation is not supported
11759 enable_fast_install=no
11760 elif test yes = "$shlibpath_overrides_runpath" ||
11761 test no = "$enable_shared"; then
11762 # Fast installation is not necessary
11763 enable_fast_install=needless
11764 fi
11765
11766
11767
11768
11769
11770
11771 if test yes != "$enable_dlopen"; then
11772 enable_dlopen=unknown
11773 enable_dlopen_self=unknown
11774 enable_dlopen_self_static=unknown
11775 else
11776 lt_cv_dlopen=no
11777 lt_cv_dlopen_libs=
11778
11779 case $host_os in
11780 beos*)
11781 lt_cv_dlopen=load_add_on
11782 lt_cv_dlopen_libs=
11783 lt_cv_dlopen_self=yes
11784 ;;
11785
11786 mingw* | pw32* | cegcc*)
11787 lt_cv_dlopen=LoadLibrary
11788 lt_cv_dlopen_libs=
11789 ;;
11790
11791 cygwin*)
11792 lt_cv_dlopen=dlopen
11793 lt_cv_dlopen_libs=
11794 ;;
11795
11796 darwin*)
11797 # if libdl is installed we need to link against it
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11799 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11800 if ${ac_cv_lib_dl_dlopen+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803 ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-ldl $LIBS"
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char dlopen ();
11815 int
11816 main ()
11817 {
11818 return dlopen ();
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11824 ac_cv_lib_dl_dlopen=yes
11825 else
11826 ac_cv_lib_dl_dlopen=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11831 fi
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11833 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11834 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11835 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11836 else
11837
11838 lt_cv_dlopen=dyld
11839 lt_cv_dlopen_libs=
11840 lt_cv_dlopen_self=yes
11841
11842 fi
11843
11844 ;;
11845
11846 tpf*)
11847 # Don't try to run any link tests for TPF. We know it's impossible
11848 # because TPF is a cross-compiler, and we know how we open DSOs.
11849 lt_cv_dlopen=dlopen
11850 lt_cv_dlopen_libs=
11851 lt_cv_dlopen_self=no
11852 ;;
11853
11854 *)
11855 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11856 if test "x$ac_cv_func_shl_load" = xyes; then :
11857 lt_cv_dlopen=shl_load
11858 else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11860 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11861 if ${ac_cv_lib_dld_shl_load+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-ldld $LIBS"
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868
11869 /* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char shl_load ();
11876 int
11877 main ()
11878 {
11879 return shl_load ();
11880 ;
11881 return 0;
11882 }
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_lib_dld_shl_load=yes
11886 else
11887 ac_cv_lib_dld_shl_load=no
11888 fi
11889 rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891 LIBS=$ac_check_lib_save_LIBS
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11894 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11895 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11896 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11897 else
11898 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11899 if test "x$ac_cv_func_dlopen" = xyes; then :
11900 lt_cv_dlopen=dlopen
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11904 if ${ac_cv_lib_dl_dlopen+:} false; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 ac_check_lib_save_LIBS=$LIBS
11908 LIBS="-ldl $LIBS"
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911
11912 /* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
11915 #ifdef __cplusplus
11916 extern "C"
11917 #endif
11918 char dlopen ();
11919 int
11920 main ()
11921 {
11922 return dlopen ();
11923 ;
11924 return 0;
11925 }
11926 _ACEOF
11927 if ac_fn_c_try_link "$LINENO"; then :
11928 ac_cv_lib_dl_dlopen=yes
11929 else
11930 ac_cv_lib_dl_dlopen=no
11931 fi
11932 rm -f core conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11937 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11938 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11939 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11942 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11943 if ${ac_cv_lib_svld_dlopen+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 ac_check_lib_save_LIBS=$LIBS
11947 LIBS="-lsvld $LIBS"
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11950
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 char dlopen ();
11958 int
11959 main ()
11960 {
11961 return dlopen ();
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_lib_svld_dlopen=yes
11968 else
11969 ac_cv_lib_svld_dlopen=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11976 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11977 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11978 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11981 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11982 if ${ac_cv_lib_dld_dld_link+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-ldld $LIBS"
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989
11990 /* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
11993 #ifdef __cplusplus
11994 extern "C"
11995 #endif
11996 char dld_link ();
11997 int
11998 main ()
11999 {
12000 return dld_link ();
12001 ;
12002 return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_link "$LINENO"; then :
12006 ac_cv_lib_dld_dld_link=yes
12007 else
12008 ac_cv_lib_dld_dld_link=no
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012 LIBS=$ac_check_lib_save_LIBS
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12015 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12016 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12017 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12018 fi
12019
12020
12021 fi
12022
12023
12024 fi
12025
12026
12027 fi
12028
12029
12030 fi
12031
12032
12033 fi
12034
12035 ;;
12036 esac
12037
12038 if test no = "$lt_cv_dlopen"; then
12039 enable_dlopen=no
12040 else
12041 enable_dlopen=yes
12042 fi
12043
12044 case $lt_cv_dlopen in
12045 dlopen)
12046 save_CPPFLAGS=$CPPFLAGS
12047 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12048
12049 save_LDFLAGS=$LDFLAGS
12050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12051
12052 save_LIBS=$LIBS
12053 LIBS="$lt_cv_dlopen_libs $LIBS"
12054
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12056 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12057 if ${lt_cv_dlopen_self+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 if test yes = "$cross_compiling"; then :
12061 lt_cv_dlopen_self=cross
12062 else
12063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12064 lt_status=$lt_dlunknown
12065 cat > conftest.$ac_ext <<_LT_EOF
12066 #line $LINENO "configure"
12067 #include "confdefs.h"
12068
12069 #if HAVE_DLFCN_H
12070 #include <dlfcn.h>
12071 #endif
12072
12073 #include <stdio.h>
12074
12075 #ifdef RTLD_GLOBAL
12076 # define LT_DLGLOBAL RTLD_GLOBAL
12077 #else
12078 # ifdef DL_GLOBAL
12079 # define LT_DLGLOBAL DL_GLOBAL
12080 # else
12081 # define LT_DLGLOBAL 0
12082 # endif
12083 #endif
12084
12085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12086 find out it does not work in some platform. */
12087 #ifndef LT_DLLAZY_OR_NOW
12088 # ifdef RTLD_LAZY
12089 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12090 # else
12091 # ifdef DL_LAZY
12092 # define LT_DLLAZY_OR_NOW DL_LAZY
12093 # else
12094 # ifdef RTLD_NOW
12095 # define LT_DLLAZY_OR_NOW RTLD_NOW
12096 # else
12097 # ifdef DL_NOW
12098 # define LT_DLLAZY_OR_NOW DL_NOW
12099 # else
12100 # define LT_DLLAZY_OR_NOW 0
12101 # endif
12102 # endif
12103 # endif
12104 # endif
12105 #endif
12106
12107 /* When -fvisibility=hidden is used, assume the code has been annotated
12108 correspondingly for the symbols needed. */
12109 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12110 int fnord () __attribute__((visibility("default")));
12111 #endif
12112
12113 int fnord () { return 42; }
12114 int main ()
12115 {
12116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12117 int status = $lt_dlunknown;
12118
12119 if (self)
12120 {
12121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12122 else
12123 {
12124 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12125 else puts (dlerror ());
12126 }
12127 /* dlclose (self); */
12128 }
12129 else
12130 puts (dlerror ());
12131
12132 return status;
12133 }
12134 _LT_EOF
12135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12136 (eval $ac_link) 2>&5
12137 ac_status=$?
12138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12139 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12140 (./conftest; exit; ) >&5 2>/dev/null
12141 lt_status=$?
12142 case x$lt_status in
12143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12146 esac
12147 else :
12148 # compilation failed
12149 lt_cv_dlopen_self=no
12150 fi
12151 fi
12152 rm -fr conftest*
12153
12154
12155 fi
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12157 $as_echo "$lt_cv_dlopen_self" >&6; }
12158
12159 if test yes = "$lt_cv_dlopen_self"; then
12160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12162 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12163 if ${lt_cv_dlopen_self_static+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 if test yes = "$cross_compiling"; then :
12167 lt_cv_dlopen_self_static=cross
12168 else
12169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12170 lt_status=$lt_dlunknown
12171 cat > conftest.$ac_ext <<_LT_EOF
12172 #line $LINENO "configure"
12173 #include "confdefs.h"
12174
12175 #if HAVE_DLFCN_H
12176 #include <dlfcn.h>
12177 #endif
12178
12179 #include <stdio.h>
12180
12181 #ifdef RTLD_GLOBAL
12182 # define LT_DLGLOBAL RTLD_GLOBAL
12183 #else
12184 # ifdef DL_GLOBAL
12185 # define LT_DLGLOBAL DL_GLOBAL
12186 # else
12187 # define LT_DLGLOBAL 0
12188 # endif
12189 #endif
12190
12191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12192 find out it does not work in some platform. */
12193 #ifndef LT_DLLAZY_OR_NOW
12194 # ifdef RTLD_LAZY
12195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12196 # else
12197 # ifdef DL_LAZY
12198 # define LT_DLLAZY_OR_NOW DL_LAZY
12199 # else
12200 # ifdef RTLD_NOW
12201 # define LT_DLLAZY_OR_NOW RTLD_NOW
12202 # else
12203 # ifdef DL_NOW
12204 # define LT_DLLAZY_OR_NOW DL_NOW
12205 # else
12206 # define LT_DLLAZY_OR_NOW 0
12207 # endif
12208 # endif
12209 # endif
12210 # endif
12211 #endif
12212
12213 /* When -fvisibility=hidden is used, assume the code has been annotated
12214 correspondingly for the symbols needed. */
12215 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12216 int fnord () __attribute__((visibility("default")));
12217 #endif
12218
12219 int fnord () { return 42; }
12220 int main ()
12221 {
12222 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12223 int status = $lt_dlunknown;
12224
12225 if (self)
12226 {
12227 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12228 else
12229 {
12230 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12231 else puts (dlerror ());
12232 }
12233 /* dlclose (self); */
12234 }
12235 else
12236 puts (dlerror ());
12237
12238 return status;
12239 }
12240 _LT_EOF
12241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12242 (eval $ac_link) 2>&5
12243 ac_status=$?
12244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12245 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12246 (./conftest; exit; ) >&5 2>/dev/null
12247 lt_status=$?
12248 case x$lt_status in
12249 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12250 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12251 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12252 esac
12253 else :
12254 # compilation failed
12255 lt_cv_dlopen_self_static=no
12256 fi
12257 fi
12258 rm -fr conftest*
12259
12260
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12263 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12264 fi
12265
12266 CPPFLAGS=$save_CPPFLAGS
12267 LDFLAGS=$save_LDFLAGS
12268 LIBS=$save_LIBS
12269 ;;
12270 esac
12271
12272 case $lt_cv_dlopen_self in
12273 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12274 *) enable_dlopen_self=unknown ;;
12275 esac
12276
12277 case $lt_cv_dlopen_self_static in
12278 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12279 *) enable_dlopen_self_static=unknown ;;
12280 esac
12281 fi
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299 striplib=
12300 old_striplib=
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12302 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12303 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12304 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12305 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12307 $as_echo "yes" >&6; }
12308 else
12309 # FIXME - insert some real tests, host_os isn't really good enough
12310 case $host_os in
12311 darwin*)
12312 if test -n "$STRIP"; then
12313 striplib="$STRIP -x"
12314 old_striplib="$STRIP -S"
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316 $as_echo "yes" >&6; }
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12320 fi
12321 ;;
12322 *)
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 ;;
12326 esac
12327 fi
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340 # Report what library types will actually be built
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12342 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12344 $as_echo "$can_build_shared" >&6; }
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12347 $as_echo_n "checking whether to build shared libraries... " >&6; }
12348 test no = "$can_build_shared" && enable_shared=no
12349
12350 # On AIX, shared libraries and static libraries use the same namespace, and
12351 # are all built from PIC.
12352 case $host_os in
12353 aix3*)
12354 test yes = "$enable_shared" && enable_static=no
12355 if test -n "$RANLIB"; then
12356 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12357 postinstall_cmds='$RANLIB $lib'
12358 fi
12359 ;;
12360
12361 aix[4-9]*)
12362 if test ia64 != "$host_cpu"; then
12363 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12364 yes,aix,yes) ;; # shared object as lib.so file only
12365 yes,svr4,*) ;; # shared object as lib.so archive member only
12366 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12367 esac
12368 fi
12369 ;;
12370 esac
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12372 $as_echo "$enable_shared" >&6; }
12373
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12375 $as_echo_n "checking whether to build static libraries... " >&6; }
12376 # Make sure either enable_shared or enable_static is yes.
12377 test yes = "$enable_shared" || enable_static=yes
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12379 $as_echo "$enable_static" >&6; }
12380
12381
12382
12383
12384 fi
12385 ac_ext=c
12386 ac_cpp='$CPP $CPPFLAGS'
12387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12390
12391 CC=$lt_save_CC
12392
12393 if test -n "$CXX" && ( test no != "$CXX" &&
12394 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12395 (test g++ != "$CXX"))); then
12396 ac_ext=cpp
12397 ac_cpp='$CXXCPP $CPPFLAGS'
12398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12402 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12403 if test -z "$CXXCPP"; then
12404 if ${ac_cv_prog_CXXCPP+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 # Double quotes because CXXCPP needs to be expanded
12408 for CXXCPP in "$CXX -E" "/lib/cpp"
12409 do
12410 ac_preproc_ok=false
12411 for ac_cxx_preproc_warn_flag in '' yes
12412 do
12413 # Use a header file that comes with gcc, so configuring glibc
12414 # with a fresh cross-compiler works.
12415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416 # <limits.h> exists even on freestanding compilers.
12417 # On the NeXT, cc -E runs the code through the compiler's parser,
12418 # not just through cpp. "Syntax error" is here to catch this case.
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 #ifdef __STDC__
12422 # include <limits.h>
12423 #else
12424 # include <assert.h>
12425 #endif
12426 Syntax error
12427 _ACEOF
12428 if ac_fn_cxx_try_cpp "$LINENO"; then :
12429
12430 else
12431 # Broken: fails on valid input.
12432 continue
12433 fi
12434 rm -f conftest.err conftest.i conftest.$ac_ext
12435
12436 # OK, works on sane cases. Now check whether nonexistent headers
12437 # can be detected and how.
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12440 #include <ac_nonexistent.h>
12441 _ACEOF
12442 if ac_fn_cxx_try_cpp "$LINENO"; then :
12443 # Broken: success on invalid input.
12444 continue
12445 else
12446 # Passes both tests.
12447 ac_preproc_ok=:
12448 break
12449 fi
12450 rm -f conftest.err conftest.i conftest.$ac_ext
12451
12452 done
12453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12454 rm -f conftest.i conftest.err conftest.$ac_ext
12455 if $ac_preproc_ok; then :
12456 break
12457 fi
12458
12459 done
12460 ac_cv_prog_CXXCPP=$CXXCPP
12461
12462 fi
12463 CXXCPP=$ac_cv_prog_CXXCPP
12464 else
12465 ac_cv_prog_CXXCPP=$CXXCPP
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12468 $as_echo "$CXXCPP" >&6; }
12469 ac_preproc_ok=false
12470 for ac_cxx_preproc_warn_flag in '' yes
12471 do
12472 # Use a header file that comes with gcc, so configuring glibc
12473 # with a fresh cross-compiler works.
12474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12475 # <limits.h> exists even on freestanding compilers.
12476 # On the NeXT, cc -E runs the code through the compiler's parser,
12477 # not just through cpp. "Syntax error" is here to catch this case.
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 #ifdef __STDC__
12481 # include <limits.h>
12482 #else
12483 # include <assert.h>
12484 #endif
12485 Syntax error
12486 _ACEOF
12487 if ac_fn_cxx_try_cpp "$LINENO"; then :
12488
12489 else
12490 # Broken: fails on valid input.
12491 continue
12492 fi
12493 rm -f conftest.err conftest.i conftest.$ac_ext
12494
12495 # OK, works on sane cases. Now check whether nonexistent headers
12496 # can be detected and how.
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 #include <ac_nonexistent.h>
12500 _ACEOF
12501 if ac_fn_cxx_try_cpp "$LINENO"; then :
12502 # Broken: success on invalid input.
12503 continue
12504 else
12505 # Passes both tests.
12506 ac_preproc_ok=:
12507 break
12508 fi
12509 rm -f conftest.err conftest.i conftest.$ac_ext
12510
12511 done
12512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12513 rm -f conftest.i conftest.err conftest.$ac_ext
12514 if $ac_preproc_ok; then :
12515
12516 else
12517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12519 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12520 See \`config.log' for more details" "$LINENO" 5; }
12521 fi
12522
12523 ac_ext=c
12524 ac_cpp='$CPP $CPPFLAGS'
12525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12528
12529 else
12530 _lt_caught_CXX_error=yes
12531 fi
12532
12533 ac_ext=cpp
12534 ac_cpp='$CXXCPP $CPPFLAGS'
12535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12538
12539 archive_cmds_need_lc_CXX=no
12540 allow_undefined_flag_CXX=
12541 always_export_symbols_CXX=no
12542 archive_expsym_cmds_CXX=
12543 compiler_needs_object_CXX=no
12544 export_dynamic_flag_spec_CXX=
12545 hardcode_direct_CXX=no
12546 hardcode_direct_absolute_CXX=no
12547 hardcode_libdir_flag_spec_CXX=
12548 hardcode_libdir_separator_CXX=
12549 hardcode_minus_L_CXX=no
12550 hardcode_shlibpath_var_CXX=unsupported
12551 hardcode_automatic_CXX=no
12552 inherit_rpath_CXX=no
12553 module_cmds_CXX=
12554 module_expsym_cmds_CXX=
12555 link_all_deplibs_CXX=unknown
12556 old_archive_cmds_CXX=$old_archive_cmds
12557 reload_flag_CXX=$reload_flag
12558 reload_cmds_CXX=$reload_cmds
12559 no_undefined_flag_CXX=
12560 whole_archive_flag_spec_CXX=
12561 enable_shared_with_static_runtimes_CXX=no
12562
12563 # Source file extension for C++ test sources.
12564 ac_ext=cpp
12565
12566 # Object file extension for compiled C++ test sources.
12567 objext=o
12568 objext_CXX=$objext
12569
12570 # No sense in running all these tests if we already determined that
12571 # the CXX compiler isn't working. Some variables (like enable_shared)
12572 # are currently assumed to apply to all compilers on this platform,
12573 # and will be corrupted by setting them based on a non-working compiler.
12574 if test yes != "$_lt_caught_CXX_error"; then
12575 # Code to be used in simple compile tests
12576 lt_simple_compile_test_code="int some_variable = 0;"
12577
12578 # Code to be used in simple link tests
12579 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12580
12581 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12582
12583
12584
12585
12586
12587
12588 # If no C compiler was specified, use CC.
12589 LTCC=${LTCC-"$CC"}
12590
12591 # If no C compiler flags were specified, use CFLAGS.
12592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12593
12594 # Allow CC to be a program name with arguments.
12595 compiler=$CC
12596
12597
12598 # save warnings/boilerplate of simple test code
12599 ac_outfile=conftest.$ac_objext
12600 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12602 _lt_compiler_boilerplate=`cat conftest.err`
12603 $RM conftest*
12604
12605 ac_outfile=conftest.$ac_objext
12606 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12608 _lt_linker_boilerplate=`cat conftest.err`
12609 $RM -r conftest*
12610
12611
12612 # Allow CC to be a program name with arguments.
12613 lt_save_CC=$CC
12614 lt_save_CFLAGS=$CFLAGS
12615 lt_save_LD=$LD
12616 lt_save_GCC=$GCC
12617 GCC=$GXX
12618 lt_save_with_gnu_ld=$with_gnu_ld
12619 lt_save_path_LD=$lt_cv_path_LD
12620 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12621 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12622 else
12623 $as_unset lt_cv_prog_gnu_ld
12624 fi
12625 if test -n "${lt_cv_path_LDCXX+set}"; then
12626 lt_cv_path_LD=$lt_cv_path_LDCXX
12627 else
12628 $as_unset lt_cv_path_LD
12629 fi
12630 test -z "${LDCXX+set}" || LD=$LDCXX
12631 CC=${CXX-"c++"}
12632 CFLAGS=$CXXFLAGS
12633 compiler=$CC
12634 compiler_CXX=$CC
12635 func_cc_basename $compiler
12636 cc_basename=$func_cc_basename_result
12637
12638
12639 if test -n "$compiler"; then
12640 # We don't want -fno-exception when compiling C++ code, so set the
12641 # no_builtin_flag separately
12642 if test yes = "$GXX"; then
12643 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12644 else
12645 lt_prog_compiler_no_builtin_flag_CXX=
12646 fi
12647
12648 if test yes = "$GXX"; then
12649 # Set up default GNU C++ configuration
12650
12651
12652
12653 # Check whether --with-gnu-ld was given.
12654 if test "${with_gnu_ld+set}" = set; then :
12655 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12656 else
12657 with_gnu_ld=no
12658 fi
12659
12660 ac_prog=ld
12661 if test yes = "$GCC"; then
12662 # Check if gcc -print-prog-name=ld gives a path.
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12664 $as_echo_n "checking for ld used by $CC... " >&6; }
12665 case $host in
12666 *-*-mingw*)
12667 # gcc leaves a trailing carriage return, which upsets mingw
12668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12669 *)
12670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12671 esac
12672 case $ac_prog in
12673 # Accept absolute paths.
12674 [\\/]* | ?:[\\/]*)
12675 re_direlt='/[^/][^/]*/\.\./'
12676 # Canonicalize the pathname of ld
12677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12680 done
12681 test -z "$LD" && LD=$ac_prog
12682 ;;
12683 "")
12684 # If it fails, then pretend we aren't using GCC.
12685 ac_prog=ld
12686 ;;
12687 *)
12688 # If it is relative, then search for the first ld in PATH.
12689 with_gnu_ld=unknown
12690 ;;
12691 esac
12692 elif test yes = "$with_gnu_ld"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12694 $as_echo_n "checking for GNU ld... " >&6; }
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12697 $as_echo_n "checking for non-GNU ld... " >&6; }
12698 fi
12699 if ${lt_cv_path_LD+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test -z "$LD"; then
12703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12704 for ac_dir in $PATH; do
12705 IFS=$lt_save_ifs
12706 test -z "$ac_dir" && ac_dir=.
12707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12708 lt_cv_path_LD=$ac_dir/$ac_prog
12709 # Check to see if the program is GNU ld. I'd rather use --version,
12710 # but apparently some variants of GNU ld only accept -v.
12711 # Break only if it was the GNU/non-GNU ld that we prefer.
12712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12713 *GNU* | *'with BFD'*)
12714 test no != "$with_gnu_ld" && break
12715 ;;
12716 *)
12717 test yes != "$with_gnu_ld" && break
12718 ;;
12719 esac
12720 fi
12721 done
12722 IFS=$lt_save_ifs
12723 else
12724 lt_cv_path_LD=$LD # Let the user override the test with a path.
12725 fi
12726 fi
12727
12728 LD=$lt_cv_path_LD
12729 if test -n "$LD"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12731 $as_echo "$LD" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735 fi
12736 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12738 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12739 if ${lt_cv_prog_gnu_ld+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12743 case `$LD -v 2>&1 </dev/null` in
12744 *GNU* | *'with BFD'*)
12745 lt_cv_prog_gnu_ld=yes
12746 ;;
12747 *)
12748 lt_cv_prog_gnu_ld=no
12749 ;;
12750 esac
12751 fi
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12753 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12754 with_gnu_ld=$lt_cv_prog_gnu_ld
12755
12756
12757
12758
12759
12760
12761
12762 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12763 # archiving commands below assume that GNU ld is being used.
12764 if test yes = "$with_gnu_ld"; then
12765 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12766 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12767
12768 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12769 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12770
12771 # If archive_cmds runs LD, not CC, wlarc should be empty
12772 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12773 # investigate it a little bit more. (MM)
12774 wlarc='$wl'
12775
12776 # ancient GNU ld didn't support --whole-archive et. al.
12777 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12778 $GREP 'no-whole-archive' > /dev/null; then
12779 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12780 else
12781 whole_archive_flag_spec_CXX=
12782 fi
12783 else
12784 with_gnu_ld=no
12785 wlarc=
12786
12787 # A generic and very simple default shared library creation
12788 # command for GNU C++ for the case where it uses the native
12789 # linker, instead of GNU ld. If possible, this setting should
12790 # overridden to take advantage of the native linker features on
12791 # the platform it is being used on.
12792 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12793 fi
12794
12795 # Commands to make compiler produce verbose output that lists
12796 # what "hidden" libraries, object files and flags are used when
12797 # linking a shared library.
12798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12799
12800 else
12801 GXX=no
12802 with_gnu_ld=no
12803 wlarc=
12804 fi
12805
12806 # PORTME: fill in a description of your system's C++ link characteristics
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12808 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12809 ld_shlibs_CXX=yes
12810 case $host_os in
12811 aix3*)
12812 # FIXME: insert proper C++ library support
12813 ld_shlibs_CXX=no
12814 ;;
12815 aix[4-9]*)
12816 if test ia64 = "$host_cpu"; then
12817 # On IA64, the linker does run time linking by default, so we don't
12818 # have to do anything special.
12819 aix_use_runtimelinking=no
12820 exp_sym_flag='-Bexport'
12821 no_entry_flag=
12822 else
12823 aix_use_runtimelinking=no
12824
12825 # Test if we are trying to use run time linking or normal
12826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12827 # have runtime linking enabled, and use it for executables.
12828 # For shared libraries, we enable/disable runtime linking
12829 # depending on the kind of the shared library created -
12830 # when "with_aix_soname,aix_use_runtimelinking" is:
12831 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12832 # "aix,yes" lib.so shared, rtl:yes, for executables
12833 # lib.a static archive
12834 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12835 # lib.a(lib.so.V) shared, rtl:no, for executables
12836 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12837 # lib.a(lib.so.V) shared, rtl:no
12838 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12839 # lib.a static archive
12840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12841 for ld_flag in $LDFLAGS; do
12842 case $ld_flag in
12843 *-brtl*)
12844 aix_use_runtimelinking=yes
12845 break
12846 ;;
12847 esac
12848 done
12849 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12850 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12851 # so we don't have lib.a shared libs to link our executables.
12852 # We have to force runtime linking in this case.
12853 aix_use_runtimelinking=yes
12854 LDFLAGS="$LDFLAGS -Wl,-brtl"
12855 fi
12856 ;;
12857 esac
12858
12859 exp_sym_flag='-bexport'
12860 no_entry_flag='-bnoentry'
12861 fi
12862
12863 # When large executables or shared objects are built, AIX ld can
12864 # have problems creating the table of contents. If linking a library
12865 # or program results in "error TOC overflow" add -mminimal-toc to
12866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12868
12869 archive_cmds_CXX=''
12870 hardcode_direct_CXX=yes
12871 hardcode_direct_absolute_CXX=yes
12872 hardcode_libdir_separator_CXX=':'
12873 link_all_deplibs_CXX=yes
12874 file_list_spec_CXX='$wl-f,'
12875 case $with_aix_soname,$aix_use_runtimelinking in
12876 aix,*) ;; # no import file
12877 svr4,* | *,yes) # use import file
12878 # The Import File defines what to hardcode.
12879 hardcode_direct_CXX=no
12880 hardcode_direct_absolute_CXX=no
12881 ;;
12882 esac
12883
12884 if test yes = "$GXX"; then
12885 case $host_os in aix4.[012]|aix4.[012].*)
12886 # We only want to do this on AIX 4.2 and lower, the check
12887 # below for broken collect2 doesn't work under 4.3+
12888 collect2name=`$CC -print-prog-name=collect2`
12889 if test -f "$collect2name" &&
12890 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12891 then
12892 # We have reworked collect2
12893 :
12894 else
12895 # We have old collect2
12896 hardcode_direct_CXX=unsupported
12897 # It fails to find uninstalled libraries when the uninstalled
12898 # path is not listed in the libpath. Setting hardcode_minus_L
12899 # to unsupported forces relinking
12900 hardcode_minus_L_CXX=yes
12901 hardcode_libdir_flag_spec_CXX='-L$libdir'
12902 hardcode_libdir_separator_CXX=
12903 fi
12904 esac
12905 shared_flag='-shared'
12906 if test yes = "$aix_use_runtimelinking"; then
12907 shared_flag=$shared_flag' $wl-G'
12908 fi
12909 # Need to ensure runtime linking is disabled for the traditional
12910 # shared library, or the linker may eventually find shared libraries
12911 # /with/ Import File - we do not want to mix them.
12912 shared_flag_aix='-shared'
12913 shared_flag_svr4='-shared $wl-G'
12914 else
12915 # not using gcc
12916 if test ia64 = "$host_cpu"; then
12917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12918 # chokes on -Wl,-G. The following line is correct:
12919 shared_flag='-G'
12920 else
12921 if test yes = "$aix_use_runtimelinking"; then
12922 shared_flag='$wl-G'
12923 else
12924 shared_flag='$wl-bM:SRE'
12925 fi
12926 shared_flag_aix='$wl-bM:SRE'
12927 shared_flag_svr4='$wl-G'
12928 fi
12929 fi
12930
12931 export_dynamic_flag_spec_CXX='$wl-bexpall'
12932 # It seems that -bexpall does not export symbols beginning with
12933 # underscore (_), so it is better to generate a list of symbols to
12934 # export.
12935 always_export_symbols_CXX=yes
12936 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12937 # Warning - without using the other runtime loading flags (-brtl),
12938 # -berok will link without error, but may produce a broken library.
12939 # The "-G" linker flag allows undefined symbols.
12940 no_undefined_flag_CXX='-bernotok'
12941 # Determine the default libpath from the value encoded in an empty
12942 # executable.
12943 if test set = "${lt_cv_aix_libpath+set}"; then
12944 aix_libpath=$lt_cv_aix_libpath
12945 else
12946 if ${lt_cv_aix_libpath__CXX+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951
12952 int
12953 main ()
12954 {
12955
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_cxx_try_link "$LINENO"; then :
12961
12962 lt_aix_libpath_sed='
12963 /Import File Strings/,/^$/ {
12964 /^0/ {
12965 s/^0 *\([^ ]*\) *$/\1/
12966 p
12967 }
12968 }'
12969 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12970 # Check for a 64-bit object if we didn't find anything.
12971 if test -z "$lt_cv_aix_libpath__CXX"; then
12972 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12973 fi
12974 fi
12975 rm -f core conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext conftest.$ac_ext
12977 if test -z "$lt_cv_aix_libpath__CXX"; then
12978 lt_cv_aix_libpath__CXX=/usr/lib:/lib
12979 fi
12980
12981 fi
12982
12983 aix_libpath=$lt_cv_aix_libpath__CXX
12984 fi
12985
12986 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
12987
12988 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12989 else
12990 if test ia64 = "$host_cpu"; then
12991 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
12992 allow_undefined_flag_CXX="-z nodefs"
12993 archive_expsym_cmds_CXX="\$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"
12994 else
12995 # Determine the default libpath from the value encoded in an
12996 # empty executable.
12997 if test set = "${lt_cv_aix_libpath+set}"; then
12998 aix_libpath=$lt_cv_aix_libpath
12999 else
13000 if ${lt_cv_aix_libpath__CXX+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005
13006 int
13007 main ()
13008 {
13009
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_cxx_try_link "$LINENO"; then :
13015
13016 lt_aix_libpath_sed='
13017 /Import File Strings/,/^$/ {
13018 /^0/ {
13019 s/^0 *\([^ ]*\) *$/\1/
13020 p
13021 }
13022 }'
13023 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13024 # Check for a 64-bit object if we didn't find anything.
13025 if test -z "$lt_cv_aix_libpath__CXX"; then
13026 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027 fi
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 if test -z "$lt_cv_aix_libpath__CXX"; then
13032 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13033 fi
13034
13035 fi
13036
13037 aix_libpath=$lt_cv_aix_libpath__CXX
13038 fi
13039
13040 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13041 # Warning - without using the other run time loading flags,
13042 # -berok will link without error, but may produce a broken library.
13043 no_undefined_flag_CXX=' $wl-bernotok'
13044 allow_undefined_flag_CXX=' $wl-berok'
13045 if test yes = "$with_gnu_ld"; then
13046 # We only use this code for GNU lds that support --whole-archive.
13047 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13048 else
13049 # Exported symbols can be pulled into shared objects from archives
13050 whole_archive_flag_spec_CXX='$convenience'
13051 fi
13052 archive_cmds_need_lc_CXX=yes
13053 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13054 # -brtl affects multiple linker settings, -berok does not and is overridden later
13055 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13056 if test svr4 != "$with_aix_soname"; then
13057 # This is similar to how AIX traditionally builds its shared
13058 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13059 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13060 fi
13061 if test aix != "$with_aix_soname"; then
13062 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13063 else
13064 # used by -dlpreopen to get the symbols
13065 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13066 fi
13067 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13068 fi
13069 fi
13070 ;;
13071
13072 beos*)
13073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13074 allow_undefined_flag_CXX=unsupported
13075 # Joseph Beckenbach <[email protected]> says some releases of gcc
13076 # support --undefined. This deserves some investigation. FIXME
13077 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13078 else
13079 ld_shlibs_CXX=no
13080 fi
13081 ;;
13082
13083 chorus*)
13084 case $cc_basename in
13085 *)
13086 # FIXME: insert proper C++ library support
13087 ld_shlibs_CXX=no
13088 ;;
13089 esac
13090 ;;
13091
13092 cygwin* | mingw* | pw32* | cegcc*)
13093 case $GXX,$cc_basename in
13094 ,cl* | no,cl*)
13095 # Native MSVC
13096 # hardcode_libdir_flag_spec is actually meaningless, as there is
13097 # no search path for DLLs.
13098 hardcode_libdir_flag_spec_CXX=' '
13099 allow_undefined_flag_CXX=unsupported
13100 always_export_symbols_CXX=yes
13101 file_list_spec_CXX='@'
13102 # Tell ltmain to make .lib files, not .a files.
13103 libext=lib
13104 # Tell ltmain to make .dll files, not .so files.
13105 shrext_cmds=.dll
13106 # FIXME: Setting linknames here is a bad hack.
13107 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13108 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13109 cp "$export_symbols" "$output_objdir/$soname.def";
13110 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13111 else
13112 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13113 fi~
13114 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13115 linknames='
13116 # The linker will not automatically build a static lib if we build a DLL.
13117 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13118 enable_shared_with_static_runtimes_CXX=yes
13119 # Don't use ranlib
13120 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13121 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13122 lt_tool_outputfile="@TOOL_OUTPUT@"~
13123 case $lt_outputfile in
13124 *.exe|*.EXE) ;;
13125 *)
13126 lt_outputfile=$lt_outputfile.exe
13127 lt_tool_outputfile=$lt_tool_outputfile.exe
13128 ;;
13129 esac~
13130 func_to_tool_file "$lt_outputfile"~
13131 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13132 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13133 $RM "$lt_outputfile.manifest";
13134 fi'
13135 ;;
13136 *)
13137 # g++
13138 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13139 # as there is no search path for DLLs.
13140 hardcode_libdir_flag_spec_CXX='-L$libdir'
13141 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13142 allow_undefined_flag_CXX=unsupported
13143 always_export_symbols_CXX=no
13144 enable_shared_with_static_runtimes_CXX=yes
13145
13146 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13147 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13148 # If the export-symbols file already is a .def file, use it as
13149 # is; otherwise, prepend EXPORTS...
13150 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13151 cp $export_symbols $output_objdir/$soname.def;
13152 else
13153 echo EXPORTS > $output_objdir/$soname.def;
13154 cat $export_symbols >> $output_objdir/$soname.def;
13155 fi~
13156 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13157 else
13158 ld_shlibs_CXX=no
13159 fi
13160 ;;
13161 esac
13162 ;;
13163 darwin* | rhapsody*)
13164
13165
13166 archive_cmds_need_lc_CXX=no
13167 hardcode_direct_CXX=no
13168 hardcode_automatic_CXX=yes
13169 hardcode_shlibpath_var_CXX=unsupported
13170 if test yes = "$lt_cv_ld_force_load"; then
13171 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13172
13173 else
13174 whole_archive_flag_spec_CXX=''
13175 fi
13176 link_all_deplibs_CXX=yes
13177 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13178 case $cc_basename in
13179 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13180 *) _lt_dar_can_shared=$GCC ;;
13181 esac
13182 if test yes = "$_lt_dar_can_shared"; then
13183 output_verbose_link_cmd=func_echo_all
13184 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13185 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13186 archive_expsym_cmds_CXX="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"
13187 module_expsym_cmds_CXX="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"
13188 if test yes != "$lt_cv_apple_cc_single_mod"; then
13189 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13190 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13191 fi
13192
13193 else
13194 ld_shlibs_CXX=no
13195 fi
13196
13197 ;;
13198
13199 os2*)
13200 hardcode_libdir_flag_spec_CXX='-L$libdir'
13201 hardcode_minus_L_CXX=yes
13202 allow_undefined_flag_CXX=unsupported
13203 shrext_cmds=.dll
13204 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13205 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13206 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13207 $ECHO EXPORTS >> $output_objdir/$libname.def~
13208 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13209 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13210 emximp -o $lib $output_objdir/$libname.def'
13211 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13212 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13213 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13214 $ECHO EXPORTS >> $output_objdir/$libname.def~
13215 prefix_cmds="$SED"~
13216 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13217 prefix_cmds="$prefix_cmds -e 1d";
13218 fi~
13219 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13220 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13221 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13222 emximp -o $lib $output_objdir/$libname.def'
13223 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13224 enable_shared_with_static_runtimes_CXX=yes
13225 ;;
13226
13227 dgux*)
13228 case $cc_basename in
13229 ec++*)
13230 # FIXME: insert proper C++ library support
13231 ld_shlibs_CXX=no
13232 ;;
13233 ghcx*)
13234 # Green Hills C++ Compiler
13235 # FIXME: insert proper C++ library support
13236 ld_shlibs_CXX=no
13237 ;;
13238 *)
13239 # FIXME: insert proper C++ library support
13240 ld_shlibs_CXX=no
13241 ;;
13242 esac
13243 ;;
13244
13245 freebsd2.*)
13246 # C++ shared libraries reported to be fairly broken before
13247 # switch to ELF
13248 ld_shlibs_CXX=no
13249 ;;
13250
13251 freebsd-elf*)
13252 archive_cmds_need_lc_CXX=no
13253 ;;
13254
13255 freebsd* | dragonfly*)
13256 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13257 # conventions
13258 ld_shlibs_CXX=yes
13259 ;;
13260
13261 haiku*)
13262 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13263 link_all_deplibs_CXX=yes
13264 ;;
13265
13266 hpux9*)
13267 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13268 hardcode_libdir_separator_CXX=:
13269 export_dynamic_flag_spec_CXX='$wl-E'
13270 hardcode_direct_CXX=yes
13271 hardcode_minus_L_CXX=yes # Not in the search PATH,
13272 # but as the default
13273 # location of the library.
13274
13275 case $cc_basename in
13276 CC*)
13277 # FIXME: insert proper C++ library support
13278 ld_shlibs_CXX=no
13279 ;;
13280 aCC*)
13281 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13282 # Commands to make compiler produce verbose output that lists
13283 # what "hidden" libraries, object files and flags are used when
13284 # linking a shared library.
13285 #
13286 # There doesn't appear to be a way to prevent this compiler from
13287 # explicitly linking system object files so we need to strip them
13288 # from the output so that they don't get included in the library
13289 # dependencies.
13290 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13291 ;;
13292 *)
13293 if test yes = "$GXX"; then
13294 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13295 else
13296 # FIXME: insert proper C++ library support
13297 ld_shlibs_CXX=no
13298 fi
13299 ;;
13300 esac
13301 ;;
13302
13303 hpux10*|hpux11*)
13304 if test no = "$with_gnu_ld"; then
13305 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13306 hardcode_libdir_separator_CXX=:
13307
13308 case $host_cpu in
13309 hppa*64*|ia64*)
13310 ;;
13311 *)
13312 export_dynamic_flag_spec_CXX='$wl-E'
13313 ;;
13314 esac
13315 fi
13316 case $host_cpu in
13317 hppa*64*|ia64*)
13318 hardcode_direct_CXX=no
13319 hardcode_shlibpath_var_CXX=no
13320 ;;
13321 *)
13322 hardcode_direct_CXX=yes
13323 hardcode_direct_absolute_CXX=yes
13324 hardcode_minus_L_CXX=yes # Not in the search PATH,
13325 # but as the default
13326 # location of the library.
13327 ;;
13328 esac
13329
13330 case $cc_basename in
13331 CC*)
13332 # FIXME: insert proper C++ library support
13333 ld_shlibs_CXX=no
13334 ;;
13335 aCC*)
13336 case $host_cpu in
13337 hppa*64*)
13338 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13339 ;;
13340 ia64*)
13341 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13342 ;;
13343 *)
13344 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13345 ;;
13346 esac
13347 # Commands to make compiler produce verbose output that lists
13348 # what "hidden" libraries, object files and flags are used when
13349 # linking a shared library.
13350 #
13351 # There doesn't appear to be a way to prevent this compiler from
13352 # explicitly linking system object files so we need to strip them
13353 # from the output so that they don't get included in the library
13354 # dependencies.
13355 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13356 ;;
13357 *)
13358 if test yes = "$GXX"; then
13359 if test no = "$with_gnu_ld"; then
13360 case $host_cpu in
13361 hppa*64*)
13362 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13363 ;;
13364 ia64*)
13365 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13366 ;;
13367 *)
13368 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369 ;;
13370 esac
13371 fi
13372 else
13373 # FIXME: insert proper C++ library support
13374 ld_shlibs_CXX=no
13375 fi
13376 ;;
13377 esac
13378 ;;
13379
13380 interix[3-9]*)
13381 hardcode_direct_CXX=no
13382 hardcode_shlibpath_var_CXX=no
13383 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13384 export_dynamic_flag_spec_CXX='$wl-E'
13385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13386 # Instead, shared libraries are loaded at an image base (0x10000000 by
13387 # default) and relocated if they conflict, which is a slow very memory
13388 # consuming and fragmenting process. To avoid this, we pick a random,
13389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13391 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13392 archive_expsym_cmds_CXX='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'
13393 ;;
13394 irix5* | irix6*)
13395 case $cc_basename in
13396 CC*)
13397 # SGI C++
13398 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13399
13400 # Archives containing C++ object files must be created using
13401 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13402 # necessary to make sure instantiated templates are included
13403 # in the archive.
13404 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13405 ;;
13406 *)
13407 if test yes = "$GXX"; then
13408 if test no = "$with_gnu_ld"; then
13409 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13410 else
13411 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13412 fi
13413 fi
13414 link_all_deplibs_CXX=yes
13415 ;;
13416 esac
13417 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13418 hardcode_libdir_separator_CXX=:
13419 inherit_rpath_CXX=yes
13420 ;;
13421
13422 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13423 case $cc_basename in
13424 KCC*)
13425 # Kuck and Associates, Inc. (KAI) C++ Compiler
13426
13427 # KCC will only create a shared library if the output file
13428 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13429 # to its proper name (with version) after linking.
13430 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13431 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
13432 # Commands to make compiler produce verbose output that lists
13433 # what "hidden" libraries, object files and flags are used when
13434 # linking a shared library.
13435 #
13436 # There doesn't appear to be a way to prevent this compiler from
13437 # explicitly linking system object files so we need to strip them
13438 # from the output so that they don't get included in the library
13439 # dependencies.
13440 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13441
13442 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13443 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13444
13445 # Archives containing C++ object files must be created using
13446 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13447 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13448 ;;
13449 icpc* | ecpc* )
13450 # Intel C++
13451 with_gnu_ld=yes
13452 # version 8.0 and above of icpc choke on multiply defined symbols
13453 # if we add $predep_objects and $postdep_objects, however 7.1 and
13454 # earlier do not add the objects themselves.
13455 case `$CC -V 2>&1` in
13456 *"Version 7."*)
13457 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13458 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13459 ;;
13460 *) # Version 8.0 or newer
13461 tmp_idyn=
13462 case $host_cpu in
13463 ia64*) tmp_idyn=' -i_dynamic';;
13464 esac
13465 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13466 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13467 ;;
13468 esac
13469 archive_cmds_need_lc_CXX=no
13470 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13471 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13472 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13473 ;;
13474 pgCC* | pgcpp*)
13475 # Portland Group C++ compiler
13476 case `$CC -V` in
13477 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13478 prelink_cmds_CXX='tpldir=Template.dir~
13479 rm -rf $tpldir~
13480 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13481 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13482 old_archive_cmds_CXX='tpldir=Template.dir~
13483 rm -rf $tpldir~
13484 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13485 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13486 $RANLIB $oldlib'
13487 archive_cmds_CXX='tpldir=Template.dir~
13488 rm -rf $tpldir~
13489 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13490 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13491 archive_expsym_cmds_CXX='tpldir=Template.dir~
13492 rm -rf $tpldir~
13493 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13494 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13495 ;;
13496 *) # Version 6 and above use weak symbols
13497 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13498 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13499 ;;
13500 esac
13501
13502 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13503 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13504 whole_archive_flag_spec_CXX='$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'
13505 ;;
13506 cxx*)
13507 # Compaq C++
13508 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13509 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
13510
13511 runpath_var=LD_RUN_PATH
13512 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13513 hardcode_libdir_separator_CXX=:
13514
13515 # Commands to make compiler produce verbose output that lists
13516 # what "hidden" libraries, object files and flags are used when
13517 # linking a shared library.
13518 #
13519 # There doesn't appear to be a way to prevent this compiler from
13520 # explicitly linking system object files so we need to strip them
13521 # from the output so that they don't get included in the library
13522 # dependencies.
13523 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13524 ;;
13525 xl* | mpixl* | bgxl*)
13526 # IBM XL 8.0 on PPC, with GNU ld
13527 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13528 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13529 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13530 if test yes = "$supports_anon_versioning"; then
13531 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13533 echo "local: *; };" >> $output_objdir/$libname.ver~
13534 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13535 fi
13536 ;;
13537 *)
13538 case `$CC -V 2>&1 | sed 5q` in
13539 *Sun\ C*)
13540 # Sun C++ 5.9
13541 no_undefined_flag_CXX=' -zdefs'
13542 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13543 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
13544 hardcode_libdir_flag_spec_CXX='-R$libdir'
13545 whole_archive_flag_spec_CXX='$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'
13546 compiler_needs_object_CXX=yes
13547
13548 # Not sure whether something based on
13549 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13550 # would be better.
13551 output_verbose_link_cmd='func_echo_all'
13552
13553 # Archives containing C++ object files must be created using
13554 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13555 # necessary to make sure instantiated templates are included
13556 # in the archive.
13557 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13558 ;;
13559 esac
13560 ;;
13561 esac
13562 ;;
13563
13564 lynxos*)
13565 # FIXME: insert proper C++ library support
13566 ld_shlibs_CXX=no
13567 ;;
13568
13569 m88k*)
13570 # FIXME: insert proper C++ library support
13571 ld_shlibs_CXX=no
13572 ;;
13573
13574 mvs*)
13575 case $cc_basename in
13576 cxx*)
13577 # FIXME: insert proper C++ library support
13578 ld_shlibs_CXX=no
13579 ;;
13580 *)
13581 # FIXME: insert proper C++ library support
13582 ld_shlibs_CXX=no
13583 ;;
13584 esac
13585 ;;
13586
13587 netbsd*)
13588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13589 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13590 wlarc=
13591 hardcode_libdir_flag_spec_CXX='-R$libdir'
13592 hardcode_direct_CXX=yes
13593 hardcode_shlibpath_var_CXX=no
13594 fi
13595 # Workaround some broken pre-1.5 toolchains
13596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13597 ;;
13598
13599 *nto* | *qnx*)
13600 ld_shlibs_CXX=yes
13601 ;;
13602
13603 openbsd* | bitrig*)
13604 if test -f /usr/libexec/ld.so; then
13605 hardcode_direct_CXX=yes
13606 hardcode_shlibpath_var_CXX=no
13607 hardcode_direct_absolute_CXX=yes
13608 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13609 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13611 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13612 export_dynamic_flag_spec_CXX='$wl-E'
13613 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13614 fi
13615 output_verbose_link_cmd=func_echo_all
13616 else
13617 ld_shlibs_CXX=no
13618 fi
13619 ;;
13620
13621 osf3* | osf4* | osf5*)
13622 case $cc_basename in
13623 KCC*)
13624 # Kuck and Associates, Inc. (KAI) C++ Compiler
13625
13626 # KCC will only create a shared library if the output file
13627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13628 # to its proper name (with version) after linking.
13629 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13630
13631 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13632 hardcode_libdir_separator_CXX=:
13633
13634 # Archives containing C++ object files must be created using
13635 # the KAI C++ compiler.
13636 case $host in
13637 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13638 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13639 esac
13640 ;;
13641 RCC*)
13642 # Rational C++ 2.4.1
13643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13645 ;;
13646 cxx*)
13647 case $host in
13648 osf3*)
13649 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13650 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13651 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13652 ;;
13653 *)
13654 allow_undefined_flag_CXX=' -expect_unresolved \*'
13655 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13656 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13657 echo "-hidden">> $lib.exp~
13658 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
13659 $RM $lib.exp'
13660 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13661 ;;
13662 esac
13663
13664 hardcode_libdir_separator_CXX=:
13665
13666 # Commands to make compiler produce verbose output that lists
13667 # what "hidden" libraries, object files and flags are used when
13668 # linking a shared library.
13669 #
13670 # There doesn't appear to be a way to prevent this compiler from
13671 # explicitly linking system object files so we need to strip them
13672 # from the output so that they don't get included in the library
13673 # dependencies.
13674 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13675 ;;
13676 *)
13677 if test yes,no = "$GXX,$with_gnu_ld"; then
13678 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13679 case $host in
13680 osf3*)
13681 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
13682 ;;
13683 *)
13684 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
13685 ;;
13686 esac
13687
13688 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13689 hardcode_libdir_separator_CXX=:
13690
13691 # Commands to make compiler produce verbose output that lists
13692 # what "hidden" libraries, object files and flags are used when
13693 # linking a shared library.
13694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13695
13696 else
13697 # FIXME: insert proper C++ library support
13698 ld_shlibs_CXX=no
13699 fi
13700 ;;
13701 esac
13702 ;;
13703
13704 psos*)
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 ;;
13708
13709 sunos4*)
13710 case $cc_basename in
13711 CC*)
13712 # Sun C++ 4.x
13713 # FIXME: insert proper C++ library support
13714 ld_shlibs_CXX=no
13715 ;;
13716 lcc*)
13717 # Lucid
13718 # FIXME: insert proper C++ library support
13719 ld_shlibs_CXX=no
13720 ;;
13721 *)
13722 # FIXME: insert proper C++ library support
13723 ld_shlibs_CXX=no
13724 ;;
13725 esac
13726 ;;
13727
13728 solaris*)
13729 case $cc_basename in
13730 CC* | sunCC*)
13731 # Sun C++ 4.2, 5.x and Centerline C++
13732 archive_cmds_need_lc_CXX=yes
13733 no_undefined_flag_CXX=' -zdefs'
13734 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13735 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13736 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13737
13738 hardcode_libdir_flag_spec_CXX='-R$libdir'
13739 hardcode_shlibpath_var_CXX=no
13740 case $host_os in
13741 solaris2.[0-5] | solaris2.[0-5].*) ;;
13742 *)
13743 # The compiler driver will combine and reorder linker options,
13744 # but understands '-z linker_flag'.
13745 # Supported since Solaris 2.6 (maybe 2.5.1?)
13746 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13747 ;;
13748 esac
13749 link_all_deplibs_CXX=yes
13750
13751 output_verbose_link_cmd='func_echo_all'
13752
13753 # Archives containing C++ object files must be created using
13754 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13755 # necessary to make sure instantiated templates are included
13756 # in the archive.
13757 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13758 ;;
13759 gcx*)
13760 # Green Hills C++ Compiler
13761 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13762
13763 # The C++ compiler must be used to create the archive.
13764 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13765 ;;
13766 *)
13767 # GNU C++ compiler with Solaris linker
13768 if test yes,no = "$GXX,$with_gnu_ld"; then
13769 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13770 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13771 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13772 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13773 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13774
13775 # Commands to make compiler produce verbose output that lists
13776 # what "hidden" libraries, object files and flags are used when
13777 # linking a shared library.
13778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13779 else
13780 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13781 # platform.
13782 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13783 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13784 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13785
13786 # Commands to make compiler produce verbose output that lists
13787 # what "hidden" libraries, object files and flags are used when
13788 # linking a shared library.
13789 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13790 fi
13791
13792 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13793 case $host_os in
13794 solaris2.[0-5] | solaris2.[0-5].*) ;;
13795 *)
13796 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13797 ;;
13798 esac
13799 fi
13800 ;;
13801 esac
13802 ;;
13803
13804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13805 no_undefined_flag_CXX='$wl-z,text'
13806 archive_cmds_need_lc_CXX=no
13807 hardcode_shlibpath_var_CXX=no
13808 runpath_var='LD_RUN_PATH'
13809
13810 case $cc_basename in
13811 CC*)
13812 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 ;;
13815 *)
13816 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13817 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13818 ;;
13819 esac
13820 ;;
13821
13822 sysv5* | sco3.2v5* | sco5v6*)
13823 # Note: We CANNOT use -z defs as we might desire, because we do not
13824 # link with -lc, and that would cause any symbols used from libc to
13825 # always be unresolved, which means just about no library would
13826 # ever link correctly. If we're not using GNU ld we use -z text
13827 # though, which does catch some bad symbols but isn't as heavy-handed
13828 # as -z defs.
13829 no_undefined_flag_CXX='$wl-z,text'
13830 allow_undefined_flag_CXX='$wl-z,nodefs'
13831 archive_cmds_need_lc_CXX=no
13832 hardcode_shlibpath_var_CXX=no
13833 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13834 hardcode_libdir_separator_CXX=':'
13835 link_all_deplibs_CXX=yes
13836 export_dynamic_flag_spec_CXX='$wl-Bexport'
13837 runpath_var='LD_RUN_PATH'
13838
13839 case $cc_basename in
13840 CC*)
13841 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13844 '"$old_archive_cmds_CXX"
13845 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13846 '"$reload_cmds_CXX"
13847 ;;
13848 *)
13849 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13850 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851 ;;
13852 esac
13853 ;;
13854
13855 tandem*)
13856 case $cc_basename in
13857 NCC*)
13858 # NonStop-UX NCC 3.20
13859 # FIXME: insert proper C++ library support
13860 ld_shlibs_CXX=no
13861 ;;
13862 *)
13863 # FIXME: insert proper C++ library support
13864 ld_shlibs_CXX=no
13865 ;;
13866 esac
13867 ;;
13868
13869 vxworks*)
13870 # FIXME: insert proper C++ library support
13871 ld_shlibs_CXX=no
13872 ;;
13873
13874 *)
13875 # FIXME: insert proper C++ library support
13876 ld_shlibs_CXX=no
13877 ;;
13878 esac
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13881 $as_echo "$ld_shlibs_CXX" >&6; }
13882 test no = "$ld_shlibs_CXX" && can_build_shared=no
13883
13884 GCC_CXX=$GXX
13885 LD_CXX=$LD
13886
13887 ## CAVEAT EMPTOR:
13888 ## There is no encapsulation within the following macros, do not change
13889 ## the running order or otherwise move them around unless you know exactly
13890 ## what you are doing...
13891 # Dependencies to place before and after the object being linked:
13892 predep_objects_CXX=
13893 postdep_objects_CXX=
13894 predeps_CXX=
13895 postdeps_CXX=
13896 compiler_lib_search_path_CXX=
13897
13898 cat > conftest.$ac_ext <<_LT_EOF
13899 class Foo
13900 {
13901 public:
13902 Foo (void) { a = 0; }
13903 private:
13904 int a;
13905 };
13906 _LT_EOF
13907
13908
13909 _lt_libdeps_save_CFLAGS=$CFLAGS
13910 case "$CC $CFLAGS " in #(
13911 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13912 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13913 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13914 esac
13915
13916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13917 (eval $ac_compile) 2>&5
13918 ac_status=$?
13919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13920 test $ac_status = 0; }; then
13921 # Parse the compiler output and extract the necessary
13922 # objects, libraries and library flags.
13923
13924 # Sentinel used to keep track of whether or not we are before
13925 # the conftest object file.
13926 pre_test_object_deps_done=no
13927
13928 for p in `eval "$output_verbose_link_cmd"`; do
13929 case $prev$p in
13930
13931 -L* | -R* | -l*)
13932 # Some compilers place space between "-{L,R}" and the path.
13933 # Remove the space.
13934 if test x-L = "$p" ||
13935 test x-R = "$p"; then
13936 prev=$p
13937 continue
13938 fi
13939
13940 # Expand the sysroot to ease extracting the directories later.
13941 if test -z "$prev"; then
13942 case $p in
13943 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13944 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13945 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13946 esac
13947 fi
13948 case $p in
13949 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13950 esac
13951 if test no = "$pre_test_object_deps_done"; then
13952 case $prev in
13953 -L | -R)
13954 # Internal compiler library paths should come after those
13955 # provided the user. The postdeps already come after the
13956 # user supplied libs so there is no need to process them.
13957 if test -z "$compiler_lib_search_path_CXX"; then
13958 compiler_lib_search_path_CXX=$prev$p
13959 else
13960 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
13961 fi
13962 ;;
13963 # The "-l" case would never come before the object being
13964 # linked, so don't bother handling this case.
13965 esac
13966 else
13967 if test -z "$postdeps_CXX"; then
13968 postdeps_CXX=$prev$p
13969 else
13970 postdeps_CXX="${postdeps_CXX} $prev$p"
13971 fi
13972 fi
13973 prev=
13974 ;;
13975
13976 *.lto.$objext) ;; # Ignore GCC LTO objects
13977 *.$objext)
13978 # This assumes that the test object file only shows up
13979 # once in the compiler output.
13980 if test "$p" = "conftest.$objext"; then
13981 pre_test_object_deps_done=yes
13982 continue
13983 fi
13984
13985 if test no = "$pre_test_object_deps_done"; then
13986 if test -z "$predep_objects_CXX"; then
13987 predep_objects_CXX=$p
13988 else
13989 predep_objects_CXX="$predep_objects_CXX $p"
13990 fi
13991 else
13992 if test -z "$postdep_objects_CXX"; then
13993 postdep_objects_CXX=$p
13994 else
13995 postdep_objects_CXX="$postdep_objects_CXX $p"
13996 fi
13997 fi
13998 ;;
13999
14000 *) ;; # Ignore the rest.
14001
14002 esac
14003 done
14004
14005 # Clean up.
14006 rm -f a.out a.exe
14007 else
14008 echo "libtool.m4: error: problem compiling CXX test program"
14009 fi
14010
14011 $RM -f confest.$objext
14012 CFLAGS=$_lt_libdeps_save_CFLAGS
14013
14014 # PORTME: override above test on systems where it is broken
14015 case $host_os in
14016 interix[3-9]*)
14017 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14018 # hack all around it, let's just trust "g++" to DTRT.
14019 predep_objects_CXX=
14020 postdep_objects_CXX=
14021 postdeps_CXX=
14022 ;;
14023 esac
14024
14025
14026 case " $postdeps_CXX " in
14027 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14028 esac
14029 compiler_lib_search_dirs_CXX=
14030 if test -n "${compiler_lib_search_path_CXX}"; then
14031 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14032 fi
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064 lt_prog_compiler_wl_CXX=
14065 lt_prog_compiler_pic_CXX=
14066 lt_prog_compiler_static_CXX=
14067
14068
14069 # C++ specific cases for pic, static, wl, etc.
14070 if test yes = "$GXX"; then
14071 lt_prog_compiler_wl_CXX='-Wl,'
14072 lt_prog_compiler_static_CXX='-static'
14073
14074 case $host_os in
14075 aix*)
14076 # All AIX code is PIC.
14077 if test ia64 = "$host_cpu"; then
14078 # AIX 5 now supports IA64 processor
14079 lt_prog_compiler_static_CXX='-Bstatic'
14080 fi
14081 lt_prog_compiler_pic_CXX='-fPIC'
14082 ;;
14083
14084 amigaos*)
14085 case $host_cpu in
14086 powerpc)
14087 # see comment about AmigaOS4 .so support
14088 lt_prog_compiler_pic_CXX='-fPIC'
14089 ;;
14090 m68k)
14091 # FIXME: we need at least 68020 code to build shared libraries, but
14092 # adding the '-m68020' flag to GCC prevents building anything better,
14093 # like '-m68040'.
14094 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14095 ;;
14096 esac
14097 ;;
14098
14099 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14100 # PIC is the default for these OSes.
14101 ;;
14102 mingw* | cygwin* | os2* | pw32* | cegcc*)
14103 # This hack is so that the source file can tell whether it is being
14104 # built for inclusion in a dll (and should export symbols for example).
14105 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14106 # (--disable-auto-import) libraries
14107 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14108 case $host_os in
14109 os2*)
14110 lt_prog_compiler_static_CXX='$wl-static'
14111 ;;
14112 esac
14113 ;;
14114 darwin* | rhapsody*)
14115 # PIC is the default on this platform
14116 # Common symbols not allowed in MH_DYLIB files
14117 lt_prog_compiler_pic_CXX='-fno-common'
14118 ;;
14119 *djgpp*)
14120 # DJGPP does not support shared libraries at all
14121 lt_prog_compiler_pic_CXX=
14122 ;;
14123 haiku*)
14124 # PIC is the default for Haiku.
14125 # The "-static" flag exists, but is broken.
14126 lt_prog_compiler_static_CXX=
14127 ;;
14128 interix[3-9]*)
14129 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14130 # Instead, we relocate shared libraries at runtime.
14131 ;;
14132 sysv4*MP*)
14133 if test -d /usr/nec; then
14134 lt_prog_compiler_pic_CXX=-Kconform_pic
14135 fi
14136 ;;
14137 hpux*)
14138 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14139 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14140 # sets the default TLS model and affects inlining.
14141 case $host_cpu in
14142 hppa*64*)
14143 ;;
14144 *)
14145 lt_prog_compiler_pic_CXX='-fPIC'
14146 ;;
14147 esac
14148 ;;
14149 *qnx* | *nto*)
14150 # QNX uses GNU C++, but need to define -shared option too, otherwise
14151 # it will coredump.
14152 lt_prog_compiler_pic_CXX='-fPIC -shared'
14153 ;;
14154 *)
14155 lt_prog_compiler_pic_CXX='-fPIC'
14156 ;;
14157 esac
14158 else
14159 case $host_os in
14160 aix[4-9]*)
14161 # All AIX code is PIC.
14162 if test ia64 = "$host_cpu"; then
14163 # AIX 5 now supports IA64 processor
14164 lt_prog_compiler_static_CXX='-Bstatic'
14165 else
14166 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14167 fi
14168 ;;
14169 chorus*)
14170 case $cc_basename in
14171 cxch68*)
14172 # Green Hills C++ Compiler
14173 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14174 ;;
14175 esac
14176 ;;
14177 mingw* | cygwin* | os2* | pw32* | cegcc*)
14178 # This hack is so that the source file can tell whether it is being
14179 # built for inclusion in a dll (and should export symbols for example).
14180 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14181 ;;
14182 dgux*)
14183 case $cc_basename in
14184 ec++*)
14185 lt_prog_compiler_pic_CXX='-KPIC'
14186 ;;
14187 ghcx*)
14188 # Green Hills C++ Compiler
14189 lt_prog_compiler_pic_CXX='-pic'
14190 ;;
14191 *)
14192 ;;
14193 esac
14194 ;;
14195 freebsd* | dragonfly*)
14196 # FreeBSD uses GNU C++
14197 ;;
14198 hpux9* | hpux10* | hpux11*)
14199 case $cc_basename in
14200 CC*)
14201 lt_prog_compiler_wl_CXX='-Wl,'
14202 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14203 if test ia64 != "$host_cpu"; then
14204 lt_prog_compiler_pic_CXX='+Z'
14205 fi
14206 ;;
14207 aCC*)
14208 lt_prog_compiler_wl_CXX='-Wl,'
14209 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14210 case $host_cpu in
14211 hppa*64*|ia64*)
14212 # +Z the default
14213 ;;
14214 *)
14215 lt_prog_compiler_pic_CXX='+Z'
14216 ;;
14217 esac
14218 ;;
14219 *)
14220 ;;
14221 esac
14222 ;;
14223 interix*)
14224 # This is c89, which is MS Visual C++ (no shared libs)
14225 # Anyone wants to do a port?
14226 ;;
14227 irix5* | irix6* | nonstopux*)
14228 case $cc_basename in
14229 CC*)
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='-non_shared'
14232 # CC pic flag -KPIC is the default.
14233 ;;
14234 *)
14235 ;;
14236 esac
14237 ;;
14238 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14239 case $cc_basename in
14240 KCC*)
14241 # KAI C++ Compiler
14242 lt_prog_compiler_wl_CXX='--backend -Wl,'
14243 lt_prog_compiler_pic_CXX='-fPIC'
14244 ;;
14245 ecpc* )
14246 # old Intel C++ for x86_64, which still supported -KPIC.
14247 lt_prog_compiler_wl_CXX='-Wl,'
14248 lt_prog_compiler_pic_CXX='-KPIC'
14249 lt_prog_compiler_static_CXX='-static'
14250 ;;
14251 icpc* )
14252 # Intel C++, used to be incompatible with GCC.
14253 # ICC 10 doesn't accept -KPIC any more.
14254 lt_prog_compiler_wl_CXX='-Wl,'
14255 lt_prog_compiler_pic_CXX='-fPIC'
14256 lt_prog_compiler_static_CXX='-static'
14257 ;;
14258 pgCC* | pgcpp*)
14259 # Portland Group C++ compiler
14260 lt_prog_compiler_wl_CXX='-Wl,'
14261 lt_prog_compiler_pic_CXX='-fpic'
14262 lt_prog_compiler_static_CXX='-Bstatic'
14263 ;;
14264 cxx*)
14265 # Compaq C++
14266 # Make sure the PIC flag is empty. It appears that all Alpha
14267 # Linux and Compaq Tru64 Unix objects are PIC.
14268 lt_prog_compiler_pic_CXX=
14269 lt_prog_compiler_static_CXX='-non_shared'
14270 ;;
14271 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14272 # IBM XL 8.0, 9.0 on PPC and BlueGene
14273 lt_prog_compiler_wl_CXX='-Wl,'
14274 lt_prog_compiler_pic_CXX='-qpic'
14275 lt_prog_compiler_static_CXX='-qstaticlink'
14276 ;;
14277 *)
14278 case `$CC -V 2>&1 | sed 5q` in
14279 *Sun\ C*)
14280 # Sun C++ 5.9
14281 lt_prog_compiler_pic_CXX='-KPIC'
14282 lt_prog_compiler_static_CXX='-Bstatic'
14283 lt_prog_compiler_wl_CXX='-Qoption ld '
14284 ;;
14285 esac
14286 ;;
14287 esac
14288 ;;
14289 lynxos*)
14290 ;;
14291 m88k*)
14292 ;;
14293 mvs*)
14294 case $cc_basename in
14295 cxx*)
14296 lt_prog_compiler_pic_CXX='-W c,exportall'
14297 ;;
14298 *)
14299 ;;
14300 esac
14301 ;;
14302 netbsd*)
14303 ;;
14304 *qnx* | *nto*)
14305 # QNX uses GNU C++, but need to define -shared option too, otherwise
14306 # it will coredump.
14307 lt_prog_compiler_pic_CXX='-fPIC -shared'
14308 ;;
14309 osf3* | osf4* | osf5*)
14310 case $cc_basename in
14311 KCC*)
14312 lt_prog_compiler_wl_CXX='--backend -Wl,'
14313 ;;
14314 RCC*)
14315 # Rational C++ 2.4.1
14316 lt_prog_compiler_pic_CXX='-pic'
14317 ;;
14318 cxx*)
14319 # Digital/Compaq C++
14320 lt_prog_compiler_wl_CXX='-Wl,'
14321 # Make sure the PIC flag is empty. It appears that all Alpha
14322 # Linux and Compaq Tru64 Unix objects are PIC.
14323 lt_prog_compiler_pic_CXX=
14324 lt_prog_compiler_static_CXX='-non_shared'
14325 ;;
14326 *)
14327 ;;
14328 esac
14329 ;;
14330 psos*)
14331 ;;
14332 solaris*)
14333 case $cc_basename in
14334 CC* | sunCC*)
14335 # Sun C++ 4.2, 5.x and Centerline C++
14336 lt_prog_compiler_pic_CXX='-KPIC'
14337 lt_prog_compiler_static_CXX='-Bstatic'
14338 lt_prog_compiler_wl_CXX='-Qoption ld '
14339 ;;
14340 gcx*)
14341 # Green Hills C++ Compiler
14342 lt_prog_compiler_pic_CXX='-PIC'
14343 ;;
14344 *)
14345 ;;
14346 esac
14347 ;;
14348 sunos4*)
14349 case $cc_basename in
14350 CC*)
14351 # Sun C++ 4.x
14352 lt_prog_compiler_pic_CXX='-pic'
14353 lt_prog_compiler_static_CXX='-Bstatic'
14354 ;;
14355 lcc*)
14356 # Lucid
14357 lt_prog_compiler_pic_CXX='-pic'
14358 ;;
14359 *)
14360 ;;
14361 esac
14362 ;;
14363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14364 case $cc_basename in
14365 CC*)
14366 lt_prog_compiler_wl_CXX='-Wl,'
14367 lt_prog_compiler_pic_CXX='-KPIC'
14368 lt_prog_compiler_static_CXX='-Bstatic'
14369 ;;
14370 esac
14371 ;;
14372 tandem*)
14373 case $cc_basename in
14374 NCC*)
14375 # NonStop-UX NCC 3.20
14376 lt_prog_compiler_pic_CXX='-KPIC'
14377 ;;
14378 *)
14379 ;;
14380 esac
14381 ;;
14382 vxworks*)
14383 ;;
14384 *)
14385 lt_prog_compiler_can_build_shared_CXX=no
14386 ;;
14387 esac
14388 fi
14389
14390 case $host_os in
14391 # For platforms that do not support PIC, -DPIC is meaningless:
14392 *djgpp*)
14393 lt_prog_compiler_pic_CXX=
14394 ;;
14395 *)
14396 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14397 ;;
14398 esac
14399
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14401 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14402 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14406 fi
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14408 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14409 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14410
14411 #
14412 # Check to make sure the PIC flag actually works.
14413 #
14414 if test -n "$lt_prog_compiler_pic_CXX"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14416 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14417 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 lt_cv_prog_compiler_pic_works_CXX=no
14421 ac_outfile=conftest.$ac_objext
14422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14423 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14424 # Insert the option either (1) after the last *FLAGS variable, or
14425 # (2) before a word containing "conftest.", or (3) at the end.
14426 # Note that $ac_compile itself does not contain backslashes and begins
14427 # with a dollar sign (not a hyphen), so the echo should work correctly.
14428 # The option is referenced via a variable to avoid confusing sed.
14429 lt_compile=`echo "$ac_compile" | $SED \
14430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14432 -e 's:$: $lt_compiler_flag:'`
14433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14434 (eval "$lt_compile" 2>conftest.err)
14435 ac_status=$?
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 if (exit $ac_status) && test -s "$ac_outfile"; then
14439 # The compiler can only warn and ignore the option if not recognized
14440 # So say no if there are warnings other than the usual output.
14441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14444 lt_cv_prog_compiler_pic_works_CXX=yes
14445 fi
14446 fi
14447 $RM conftest*
14448
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14451 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14452
14453 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14454 case $lt_prog_compiler_pic_CXX in
14455 "" | " "*) ;;
14456 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14457 esac
14458 else
14459 lt_prog_compiler_pic_CXX=
14460 lt_prog_compiler_can_build_shared_CXX=no
14461 fi
14462
14463 fi
14464
14465
14466
14467
14468
14469 #
14470 # Check to make sure the static flag actually works.
14471 #
14472 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14474 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14475 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 lt_cv_prog_compiler_static_works_CXX=no
14479 save_LDFLAGS=$LDFLAGS
14480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14481 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14483 # The linker can only warn and ignore the option if not recognized
14484 # So say no if there are warnings
14485 if test -s conftest.err; then
14486 # Append any errors to the config.log.
14487 cat conftest.err 1>&5
14488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490 if diff conftest.exp conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_static_works_CXX=yes
14492 fi
14493 else
14494 lt_cv_prog_compiler_static_works_CXX=yes
14495 fi
14496 fi
14497 $RM -r conftest*
14498 LDFLAGS=$save_LDFLAGS
14499
14500 fi
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14502 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14503
14504 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14505 :
14506 else
14507 lt_prog_compiler_static_CXX=
14508 fi
14509
14510
14511
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14515 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 lt_cv_prog_compiler_c_o_CXX=no
14519 $RM -r conftest 2>/dev/null
14520 mkdir conftest
14521 cd conftest
14522 mkdir out
14523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524
14525 lt_compiler_flag="-o out/conftest2.$ac_objext"
14526 # Insert the option either (1) after the last *FLAGS variable, or
14527 # (2) before a word containing "conftest.", or (3) at the end.
14528 # Note that $ac_compile itself does not contain backslashes and begins
14529 # with a dollar sign (not a hyphen), so the echo should work correctly.
14530 lt_compile=`echo "$ac_compile" | $SED \
14531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533 -e 's:$: $lt_compiler_flag:'`
14534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14535 (eval "$lt_compile" 2>out/conftest.err)
14536 ac_status=$?
14537 cat out/conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14540 then
14541 # The compiler can only warn and ignore the option if not recognized
14542 # So say no if there are warnings
14543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14546 lt_cv_prog_compiler_c_o_CXX=yes
14547 fi
14548 fi
14549 chmod u+w . 2>&5
14550 $RM conftest*
14551 # SGI C++ compiler will create directory out/ii_files/ for
14552 # template instantiation
14553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14554 $RM out/* && rmdir out
14555 cd ..
14556 $RM -r conftest
14557 $RM conftest*
14558
14559 fi
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14561 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14562
14563
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14567 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 lt_cv_prog_compiler_c_o_CXX=no
14571 $RM -r conftest 2>/dev/null
14572 mkdir conftest
14573 cd conftest
14574 mkdir out
14575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14576
14577 lt_compiler_flag="-o out/conftest2.$ac_objext"
14578 # Insert the option either (1) after the last *FLAGS variable, or
14579 # (2) before a word containing "conftest.", or (3) at the end.
14580 # Note that $ac_compile itself does not contain backslashes and begins
14581 # with a dollar sign (not a hyphen), so the echo should work correctly.
14582 lt_compile=`echo "$ac_compile" | $SED \
14583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14585 -e 's:$: $lt_compiler_flag:'`
14586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14587 (eval "$lt_compile" 2>out/conftest.err)
14588 ac_status=$?
14589 cat out/conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14592 then
14593 # The compiler can only warn and ignore the option if not recognized
14594 # So say no if there are warnings
14595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14598 lt_cv_prog_compiler_c_o_CXX=yes
14599 fi
14600 fi
14601 chmod u+w . 2>&5
14602 $RM conftest*
14603 # SGI C++ compiler will create directory out/ii_files/ for
14604 # template instantiation
14605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14606 $RM out/* && rmdir out
14607 cd ..
14608 $RM -r conftest
14609 $RM conftest*
14610
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14613 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14614
14615
14616
14617
14618 hard_links=nottested
14619 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14620 # do not overwrite the value of need_locks provided by the user
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14622 $as_echo_n "checking if we can lock with hard links... " >&6; }
14623 hard_links=yes
14624 $RM conftest*
14625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14626 touch conftest.a
14627 ln conftest.a conftest.b 2>&5 || hard_links=no
14628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14630 $as_echo "$hard_links" >&6; }
14631 if test no = "$hard_links"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14633 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14634 need_locks=warn
14635 fi
14636 else
14637 need_locks=no
14638 fi
14639
14640
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14643 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14644
14645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14646 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14647 case $host_os in
14648 aix[4-9]*)
14649 # If we're using GNU nm, then we don't want the "-C" option.
14650 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14651 # Without the "-l" option, or with the "-B" option, AIX nm treats
14652 # weak defined symbols like other global defined symbols, whereas
14653 # GNU nm marks them as "W".
14654 # While the 'weak' keyword is ignored in the Export File, we need
14655 # it in the Import File for the 'aix-soname' feature, so we have
14656 # to replace the "-B" option with "-P" for AIX nm.
14657 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14658 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14659 else
14660 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14661 fi
14662 ;;
14663 pw32*)
14664 export_symbols_cmds_CXX=$ltdll_cmds
14665 ;;
14666 cygwin* | mingw* | cegcc*)
14667 case $cc_basename in
14668 cl*)
14669 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14670 ;;
14671 *)
14672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14673 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14674 ;;
14675 esac
14676 ;;
14677 *)
14678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14679 ;;
14680 esac
14681
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14683 $as_echo "$ld_shlibs_CXX" >&6; }
14684 test no = "$ld_shlibs_CXX" && can_build_shared=no
14685
14686 with_gnu_ld_CXX=$with_gnu_ld
14687
14688
14689
14690
14691
14692
14693 #
14694 # Do we need to explicitly link libc?
14695 #
14696 case "x$archive_cmds_need_lc_CXX" in
14697 x|xyes)
14698 # Assume -lc should be added
14699 archive_cmds_need_lc_CXX=yes
14700
14701 if test yes,yes = "$GCC,$enable_shared"; then
14702 case $archive_cmds_CXX in
14703 *'~'*)
14704 # FIXME: we may have to deal with multi-command sequences.
14705 ;;
14706 '$CC '*)
14707 # Test whether the compiler implicitly links with -lc since on some
14708 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14709 # to ld, don't add -lc before -lgcc.
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14711 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14712 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14713 $as_echo_n "(cached) " >&6
14714 else
14715 $RM conftest*
14716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14717
14718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14719 (eval $ac_compile) 2>&5
14720 ac_status=$?
14721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14722 test $ac_status = 0; } 2>conftest.err; then
14723 soname=conftest
14724 lib=conftest
14725 libobjs=conftest.$ac_objext
14726 deplibs=
14727 wl=$lt_prog_compiler_wl_CXX
14728 pic_flag=$lt_prog_compiler_pic_CXX
14729 compiler_flags=-v
14730 linker_flags=-v
14731 verstring=
14732 output_objdir=.
14733 libname=conftest
14734 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14735 allow_undefined_flag_CXX=
14736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14737 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14738 ac_status=$?
14739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14740 test $ac_status = 0; }
14741 then
14742 lt_cv_archive_cmds_need_lc_CXX=no
14743 else
14744 lt_cv_archive_cmds_need_lc_CXX=yes
14745 fi
14746 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14747 else
14748 cat conftest.err 1>&5
14749 fi
14750 $RM conftest*
14751
14752 fi
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14754 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14755 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14756 ;;
14757 esac
14758 fi
14759 ;;
14760 esac
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14824 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14825
14826 library_names_spec=
14827 libname_spec='lib$name'
14828 soname_spec=
14829 shrext_cmds=.so
14830 postinstall_cmds=
14831 postuninstall_cmds=
14832 finish_cmds=
14833 finish_eval=
14834 shlibpath_var=
14835 shlibpath_overrides_runpath=unknown
14836 version_type=none
14837 dynamic_linker="$host_os ld.so"
14838 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14839 need_lib_prefix=unknown
14840 hardcode_into_libs=no
14841
14842 # when you set need_version to no, make sure it does not cause -set_version
14843 # flags to be left without arguments
14844 need_version=unknown
14845
14846
14847
14848 case $host_os in
14849 aix3*)
14850 version_type=linux # correct to gnu/linux during the next big refactor
14851 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14852 shlibpath_var=LIBPATH
14853
14854 # AIX 3 has no versioning support, so we append a major version to the name.
14855 soname_spec='$libname$release$shared_ext$major'
14856 ;;
14857
14858 aix[4-9]*)
14859 version_type=linux # correct to gnu/linux during the next big refactor
14860 need_lib_prefix=no
14861 need_version=no
14862 hardcode_into_libs=yes
14863 if test ia64 = "$host_cpu"; then
14864 # AIX 5 supports IA64
14865 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 else
14868 # With GCC up to 2.95.x, collect2 would create an import file
14869 # for dependence libraries. The import file would start with
14870 # the line '#! .'. This would cause the generated library to
14871 # depend on '.', always an invalid library. This was fixed in
14872 # development snapshots of GCC prior to 3.0.
14873 case $host_os in
14874 aix4 | aix4.[01] | aix4.[01].*)
14875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14876 echo ' yes '
14877 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14878 :
14879 else
14880 can_build_shared=no
14881 fi
14882 ;;
14883 esac
14884 # Using Import Files as archive members, it is possible to support
14885 # filename-based versioning of shared library archives on AIX. While
14886 # this would work for both with and without runtime linking, it will
14887 # prevent static linking of such archives. So we do filename-based
14888 # shared library versioning with .so extension only, which is used
14889 # when both runtime linking and shared linking is enabled.
14890 # Unfortunately, runtime linking may impact performance, so we do
14891 # not want this to be the default eventually. Also, we use the
14892 # versioned .so libs for executables only if there is the -brtl
14893 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14894 # To allow for filename-based versioning support, we need to create
14895 # libNAME.so.V as an archive file, containing:
14896 # *) an Import File, referring to the versioned filename of the
14897 # archive as well as the shared archive member, telling the
14898 # bitwidth (32 or 64) of that shared object, and providing the
14899 # list of exported symbols of that shared object, eventually
14900 # decorated with the 'weak' keyword
14901 # *) the shared object with the F_LOADONLY flag set, to really avoid
14902 # it being seen by the linker.
14903 # At run time we better use the real file rather than another symlink,
14904 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14905
14906 case $with_aix_soname,$aix_use_runtimelinking in
14907 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14908 # soname into executable. Probably we can add versioning support to
14909 # collect2, so additional links can be useful in future.
14910 aix,yes) # traditional libtool
14911 dynamic_linker='AIX unversionable lib.so'
14912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14913 # instead of lib<name>.a to let people know that these are not
14914 # typical AIX shared libraries.
14915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14916 ;;
14917 aix,no) # traditional AIX only
14918 dynamic_linker='AIX lib.a(lib.so.V)'
14919 # We preserve .a as extension for shared libraries through AIX4.2
14920 # and later when we are not doing run time linking.
14921 library_names_spec='$libname$release.a $libname.a'
14922 soname_spec='$libname$release$shared_ext$major'
14923 ;;
14924 svr4,*) # full svr4 only
14925 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14926 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14927 # We do not specify a path in Import Files, so LIBPATH fires.
14928 shlibpath_overrides_runpath=yes
14929 ;;
14930 *,yes) # both, prefer svr4
14931 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14932 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14933 # unpreferred sharedlib libNAME.a needs extra handling
14934 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14935 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14936 # We do not specify a path in Import Files, so LIBPATH fires.
14937 shlibpath_overrides_runpath=yes
14938 ;;
14939 *,no) # both, prefer aix
14940 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14941 library_names_spec='$libname$release.a $libname.a'
14942 soname_spec='$libname$release$shared_ext$major'
14943 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14944 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14945 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14946 ;;
14947 esac
14948 shlibpath_var=LIBPATH
14949 fi
14950 ;;
14951
14952 amigaos*)
14953 case $host_cpu in
14954 powerpc)
14955 # Since July 2007 AmigaOS4 officially supports .so libraries.
14956 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14958 ;;
14959 m68k)
14960 library_names_spec='$libname.ixlibrary $libname.a'
14961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14962 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14963 ;;
14964 esac
14965 ;;
14966
14967 beos*)
14968 library_names_spec='$libname$shared_ext'
14969 dynamic_linker="$host_os ld.so"
14970 shlibpath_var=LIBRARY_PATH
14971 ;;
14972
14973 bsdi[45]*)
14974 version_type=linux # correct to gnu/linux during the next big refactor
14975 need_version=no
14976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14977 soname_spec='$libname$release$shared_ext$major'
14978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14982 # the default ld.so.conf also contains /usr/contrib/lib and
14983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14984 # libtool to hard-code these into programs
14985 ;;
14986
14987 cygwin* | mingw* | pw32* | cegcc*)
14988 version_type=windows
14989 shrext_cmds=.dll
14990 need_version=no
14991 need_lib_prefix=no
14992
14993 case $GCC,$cc_basename in
14994 yes,*)
14995 # gcc
14996 library_names_spec='$libname.dll.a'
14997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14998 postinstall_cmds='base_file=`basename \$file`~
14999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15000 dldir=$destdir/`dirname \$dlpath`~
15001 test -d \$dldir || mkdir -p \$dldir~
15002 $install_prog $dir/$dlname \$dldir/$dlname~
15003 chmod a+x \$dldir/$dlname~
15004 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15005 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15006 fi'
15007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15008 dlpath=$dir/\$dldll~
15009 $RM \$dlpath'
15010 shlibpath_overrides_runpath=yes
15011
15012 case $host_os in
15013 cygwin*)
15014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15015 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15016
15017 ;;
15018 mingw* | cegcc*)
15019 # MinGW DLLs use traditional 'lib' prefix
15020 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15021 ;;
15022 pw32*)
15023 # pw32 DLLs use 'pw' prefix rather than 'lib'
15024 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15025 ;;
15026 esac
15027 dynamic_linker='Win32 ld.exe'
15028 ;;
15029
15030 *,cl*)
15031 # Native MSVC
15032 libname_spec='$name'
15033 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15034 library_names_spec='$libname.dll.lib'
15035
15036 case $build_os in
15037 mingw*)
15038 sys_lib_search_path_spec=
15039 lt_save_ifs=$IFS
15040 IFS=';'
15041 for lt_path in $LIB
15042 do
15043 IFS=$lt_save_ifs
15044 # Let DOS variable expansion print the short 8.3 style file name.
15045 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15046 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15047 done
15048 IFS=$lt_save_ifs
15049 # Convert to MSYS style.
15050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15051 ;;
15052 cygwin*)
15053 # Convert to unix form, then to dos form, then back to unix form
15054 # but this time dos style (no spaces!) so that the unix form looks
15055 # like /cygdrive/c/PROGRA~1:/cygdr...
15056 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15057 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15058 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15059 ;;
15060 *)
15061 sys_lib_search_path_spec=$LIB
15062 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15063 # It is most probably a Windows format PATH.
15064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15065 else
15066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15067 fi
15068 # FIXME: find the short name or the path components, as spaces are
15069 # common. (e.g. "Program Files" -> "PROGRA~1")
15070 ;;
15071 esac
15072
15073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15074 postinstall_cmds='base_file=`basename \$file`~
15075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15076 dldir=$destdir/`dirname \$dlpath`~
15077 test -d \$dldir || mkdir -p \$dldir~
15078 $install_prog $dir/$dlname \$dldir/$dlname'
15079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15080 dlpath=$dir/\$dldll~
15081 $RM \$dlpath'
15082 shlibpath_overrides_runpath=yes
15083 dynamic_linker='Win32 link.exe'
15084 ;;
15085
15086 *)
15087 # Assume MSVC wrapper
15088 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15089 dynamic_linker='Win32 ld.exe'
15090 ;;
15091 esac
15092 # FIXME: first we should search . and the directory the executable is in
15093 shlibpath_var=PATH
15094 ;;
15095
15096 darwin* | rhapsody*)
15097 dynamic_linker="$host_os dyld"
15098 version_type=darwin
15099 need_lib_prefix=no
15100 need_version=no
15101 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15102 soname_spec='$libname$release$major$shared_ext'
15103 shlibpath_overrides_runpath=yes
15104 shlibpath_var=DYLD_LIBRARY_PATH
15105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15106
15107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15108 ;;
15109
15110 dgux*)
15111 version_type=linux # correct to gnu/linux during the next big refactor
15112 need_lib_prefix=no
15113 need_version=no
15114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15115 soname_spec='$libname$release$shared_ext$major'
15116 shlibpath_var=LD_LIBRARY_PATH
15117 ;;
15118
15119 freebsd* | dragonfly*)
15120 # DragonFly does not have aout. When/if they implement a new
15121 # versioning mechanism, adjust this.
15122 if test -x /usr/bin/objformat; then
15123 objformat=`/usr/bin/objformat`
15124 else
15125 case $host_os in
15126 freebsd[23].*) objformat=aout ;;
15127 *) objformat=elf ;;
15128 esac
15129 fi
15130 # Handle Gentoo/FreeBSD as it was Linux
15131 case $host_vendor in
15132 gentoo)
15133 version_type=linux ;;
15134 *)
15135 version_type=freebsd-$objformat ;;
15136 esac
15137
15138 case $version_type in
15139 freebsd-elf*)
15140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15141 soname_spec='$libname$release$shared_ext$major'
15142 need_version=no
15143 need_lib_prefix=no
15144 ;;
15145 freebsd-*)
15146 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15147 need_version=yes
15148 ;;
15149 linux)
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15151 soname_spec='${libname}${release}${shared_ext}$major'
15152 need_lib_prefix=no
15153 need_version=no
15154 ;;
15155 esac
15156 shlibpath_var=LD_LIBRARY_PATH
15157 case $host_os in
15158 freebsd2.*)
15159 shlibpath_overrides_runpath=yes
15160 ;;
15161 freebsd3.[01]* | freebsdelf3.[01]*)
15162 shlibpath_overrides_runpath=yes
15163 hardcode_into_libs=yes
15164 ;;
15165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15167 shlibpath_overrides_runpath=no
15168 hardcode_into_libs=yes
15169 ;;
15170 *) # from 4.6 on, and DragonFly
15171 shlibpath_overrides_runpath=yes
15172 hardcode_into_libs=yes
15173 ;;
15174 esac
15175 ;;
15176
15177 haiku*)
15178 version_type=linux # correct to gnu/linux during the next big refactor
15179 need_lib_prefix=no
15180 need_version=no
15181 dynamic_linker="$host_os runtime_loader"
15182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15183 soname_spec='$libname$release$shared_ext$major'
15184 shlibpath_var=LIBRARY_PATH
15185 shlibpath_overrides_runpath=no
15186 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15187 hardcode_into_libs=yes
15188 ;;
15189
15190 hpux9* | hpux10* | hpux11*)
15191 # Give a soname corresponding to the major version so that dld.sl refuses to
15192 # link against other versions.
15193 version_type=sunos
15194 need_lib_prefix=no
15195 need_version=no
15196 case $host_cpu in
15197 ia64*)
15198 shrext_cmds='.so'
15199 hardcode_into_libs=yes
15200 dynamic_linker="$host_os dld.so"
15201 shlibpath_var=LD_LIBRARY_PATH
15202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15204 soname_spec='$libname$release$shared_ext$major'
15205 if test 32 = "$HPUX_IA64_MODE"; then
15206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15207 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15208 else
15209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15210 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15211 fi
15212 ;;
15213 hppa*64*)
15214 shrext_cmds='.sl'
15215 hardcode_into_libs=yes
15216 dynamic_linker="$host_os dld.sl"
15217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15220 soname_spec='$libname$release$shared_ext$major'
15221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15223 ;;
15224 *)
15225 shrext_cmds='.sl'
15226 dynamic_linker="$host_os dld.sl"
15227 shlibpath_var=SHLIB_PATH
15228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15230 soname_spec='$libname$release$shared_ext$major'
15231 ;;
15232 esac
15233 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15234 postinstall_cmds='chmod 555 $lib'
15235 # or fails outright, so override atomically:
15236 install_override_mode=555
15237 ;;
15238
15239 interix[3-9]*)
15240 version_type=linux # correct to gnu/linux during the next big refactor
15241 need_lib_prefix=no
15242 need_version=no
15243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15244 soname_spec='$libname$release$shared_ext$major'
15245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15246 shlibpath_var=LD_LIBRARY_PATH
15247 shlibpath_overrides_runpath=no
15248 hardcode_into_libs=yes
15249 ;;
15250
15251 irix5* | irix6* | nonstopux*)
15252 case $host_os in
15253 nonstopux*) version_type=nonstopux ;;
15254 *)
15255 if test yes = "$lt_cv_prog_gnu_ld"; then
15256 version_type=linux # correct to gnu/linux during the next big refactor
15257 else
15258 version_type=irix
15259 fi ;;
15260 esac
15261 need_lib_prefix=no
15262 need_version=no
15263 soname_spec='$libname$release$shared_ext$major'
15264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15265 case $host_os in
15266 irix5* | nonstopux*)
15267 libsuff= shlibsuff=
15268 ;;
15269 *)
15270 case $LD in # libtool.m4 will add one of these switches to LD
15271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15272 libsuff= shlibsuff= libmagic=32-bit;;
15273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15274 libsuff=32 shlibsuff=N32 libmagic=N32;;
15275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15277 *) libsuff= shlibsuff= libmagic=never-match;;
15278 esac
15279 ;;
15280 esac
15281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15282 shlibpath_overrides_runpath=no
15283 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15284 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15285 hardcode_into_libs=yes
15286 ;;
15287
15288 # No shared lib support for Linux oldld, aout, or coff.
15289 linux*oldld* | linux*aout* | linux*coff*)
15290 dynamic_linker=no
15291 ;;
15292
15293 linux*android*)
15294 version_type=none # Android doesn't support versioned libraries.
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='$libname$release$shared_ext'
15298 soname_spec='$libname$release$shared_ext'
15299 finish_cmds=
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=yes
15302
15303 # This implies no fast_install, which is unacceptable.
15304 # Some rework will be needed to allow for fast_install
15305 # before this can be enabled.
15306 hardcode_into_libs=yes
15307
15308 dynamic_linker='Android linker'
15309 # Don't embed -rpath directories since the linker doesn't support them.
15310 hardcode_libdir_flag_spec_CXX='-L$libdir'
15311 ;;
15312
15313 # This must be glibc/ELF.
15314 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15315 version_type=linux # correct to gnu/linux during the next big refactor
15316 need_lib_prefix=no
15317 need_version=no
15318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15319 soname_spec='$libname$release$shared_ext$major'
15320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 shlibpath_overrides_runpath=no
15323
15324 # Some binutils ld are patched to set DT_RUNPATH
15325 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15326 $as_echo_n "(cached) " >&6
15327 else
15328 lt_cv_shlibpath_overrides_runpath=no
15329 save_LDFLAGS=$LDFLAGS
15330 save_libdir=$libdir
15331 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15332 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h. */
15335
15336 int
15337 main ()
15338 {
15339
15340 ;
15341 return 0;
15342 }
15343 _ACEOF
15344 if ac_fn_cxx_try_link "$LINENO"; then :
15345 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15346 lt_cv_shlibpath_overrides_runpath=yes
15347 fi
15348 fi
15349 rm -f core conftest.err conftest.$ac_objext \
15350 conftest$ac_exeext conftest.$ac_ext
15351 LDFLAGS=$save_LDFLAGS
15352 libdir=$save_libdir
15353
15354 fi
15355
15356 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15357
15358 # This implies no fast_install, which is unacceptable.
15359 # Some rework will be needed to allow for fast_install
15360 # before this can be enabled.
15361 hardcode_into_libs=yes
15362
15363 # Ideally, we could use ldconfig to report *all* directores which are
15364 # searched for libraries, however this is still not possible. Aside from not
15365 # being certain /sbin/ldconfig is available, command
15366 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15367 # even though it is searched at run-time. Try to do the best guess by
15368 # appending ld.so.conf contents (and includes) to the search path.
15369 if test -f /etc/ld.so.conf; then
15370 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' ' '`
15371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15372 fi
15373
15374 # We used to test for /lib/ld.so.1 and disable shared libraries on
15375 # powerpc, because MkLinux only supported shared libraries with the
15376 # GNU dynamic linker. Since this was broken with cross compilers,
15377 # most powerpc-linux boxes support dynamic linking these days and
15378 # people can always --disable-shared, the test was removed, and we
15379 # assume the GNU/Linux dynamic linker is in use.
15380 dynamic_linker='GNU/Linux ld.so'
15381 ;;
15382
15383 netbsd*)
15384 version_type=sunos
15385 need_lib_prefix=no
15386 need_version=no
15387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15388 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15390 dynamic_linker='NetBSD (a.out) ld.so'
15391 else
15392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15393 soname_spec='$libname$release$shared_ext$major'
15394 dynamic_linker='NetBSD ld.elf_so'
15395 fi
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15399 ;;
15400
15401 newsos6)
15402 version_type=linux # correct to gnu/linux during the next big refactor
15403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=yes
15406 ;;
15407
15408 *nto* | *qnx*)
15409 version_type=qnx
15410 need_lib_prefix=no
15411 need_version=no
15412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15413 soname_spec='$libname$release$shared_ext$major'
15414 shlibpath_var=LD_LIBRARY_PATH
15415 shlibpath_overrides_runpath=no
15416 hardcode_into_libs=yes
15417 dynamic_linker='ldqnx.so'
15418 ;;
15419
15420 openbsd* | bitrig*)
15421 version_type=sunos
15422 sys_lib_dlsearch_path_spec=/usr/lib
15423 need_lib_prefix=no
15424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15425 need_version=no
15426 else
15427 need_version=yes
15428 fi
15429 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes
15433 ;;
15434
15435 os2*)
15436 libname_spec='$name'
15437 version_type=windows
15438 shrext_cmds=.dll
15439 need_version=no
15440 need_lib_prefix=no
15441 # OS/2 can only load a DLL with a base name of 8 characters or less.
15442 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15443 v=$($ECHO $release$versuffix | tr -d .-);
15444 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15445 $ECHO $n$v`$shared_ext'
15446 library_names_spec='${libname}_dll.$libext'
15447 dynamic_linker='OS/2 ld.exe'
15448 shlibpath_var=BEGINLIBPATH
15449 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15451 postinstall_cmds='base_file=`basename \$file`~
15452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15453 dldir=$destdir/`dirname \$dlpath`~
15454 test -d \$dldir || mkdir -p \$dldir~
15455 $install_prog $dir/$dlname \$dldir/$dlname~
15456 chmod a+x \$dldir/$dlname~
15457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15459 fi'
15460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15461 dlpath=$dir/\$dldll~
15462 $RM \$dlpath'
15463 ;;
15464
15465 osf3* | osf4* | osf5*)
15466 version_type=osf
15467 need_lib_prefix=no
15468 need_version=no
15469 soname_spec='$libname$release$shared_ext$major'
15470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15471 shlibpath_var=LD_LIBRARY_PATH
15472 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15474 ;;
15475
15476 rdos*)
15477 dynamic_linker=no
15478 ;;
15479
15480 solaris*)
15481 version_type=linux # correct to gnu/linux during the next big refactor
15482 need_lib_prefix=no
15483 need_version=no
15484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15485 soname_spec='$libname$release$shared_ext$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=yes
15488 hardcode_into_libs=yes
15489 # ldd complains unless libraries are executable
15490 postinstall_cmds='chmod +x $lib'
15491 ;;
15492
15493 sunos4*)
15494 version_type=sunos
15495 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15496 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 shlibpath_overrides_runpath=yes
15499 if test yes = "$with_gnu_ld"; then
15500 need_lib_prefix=no
15501 fi
15502 need_version=yes
15503 ;;
15504
15505 sysv4 | sysv4.3*)
15506 version_type=linux # correct to gnu/linux during the next big refactor
15507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15508 soname_spec='$libname$release$shared_ext$major'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 case $host_vendor in
15511 sni)
15512 shlibpath_overrides_runpath=no
15513 need_lib_prefix=no
15514 runpath_var=LD_RUN_PATH
15515 ;;
15516 siemens)
15517 need_lib_prefix=no
15518 ;;
15519 motorola)
15520 need_lib_prefix=no
15521 need_version=no
15522 shlibpath_overrides_runpath=no
15523 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15524 ;;
15525 esac
15526 ;;
15527
15528 sysv4*MP*)
15529 if test -d /usr/nec; then
15530 version_type=linux # correct to gnu/linux during the next big refactor
15531 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15532 soname_spec='$libname$shared_ext.$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 fi
15535 ;;
15536
15537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15538 version_type=sco
15539 need_lib_prefix=no
15540 need_version=no
15541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15542 soname_spec='$libname$release$shared_ext$major'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 shlibpath_overrides_runpath=yes
15545 hardcode_into_libs=yes
15546 if test yes = "$with_gnu_ld"; then
15547 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15548 else
15549 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15550 case $host_os in
15551 sco3.2v5*)
15552 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15553 ;;
15554 esac
15555 fi
15556 sys_lib_dlsearch_path_spec='/usr/lib'
15557 ;;
15558
15559 tpf*)
15560 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15561 version_type=linux # correct to gnu/linux during the next big refactor
15562 need_lib_prefix=no
15563 need_version=no
15564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=no
15567 hardcode_into_libs=yes
15568 ;;
15569
15570 uts4*)
15571 version_type=linux # correct to gnu/linux during the next big refactor
15572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15573 soname_spec='$libname$release$shared_ext$major'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 ;;
15576
15577 *)
15578 dynamic_linker=no
15579 ;;
15580 esac
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15582 $as_echo "$dynamic_linker" >&6; }
15583 test no = "$dynamic_linker" && can_build_shared=no
15584
15585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15586 if test yes = "$GCC"; then
15587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15588 fi
15589
15590 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15591 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15592 fi
15593
15594 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15595 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15596 fi
15597
15598 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15599 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15600
15601 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15602 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15603
15604 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15605 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15648 hardcode_action_CXX=
15649 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15650 test -n "$runpath_var_CXX" ||
15651 test yes = "$hardcode_automatic_CXX"; then
15652
15653 # We can hardcode non-existent directories.
15654 if test no != "$hardcode_direct_CXX" &&
15655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15656 # have to relink, otherwise we might link with an installed library
15657 # when we should be linking with a yet-to-be-installed one
15658 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15659 test no != "$hardcode_minus_L_CXX"; then
15660 # Linking always hardcodes the temporary library directory.
15661 hardcode_action_CXX=relink
15662 else
15663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15664 hardcode_action_CXX=immediate
15665 fi
15666 else
15667 # We cannot hardcode anything, or else we can only hardcode existing
15668 # directories.
15669 hardcode_action_CXX=unsupported
15670 fi
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15672 $as_echo "$hardcode_action_CXX" >&6; }
15673
15674 if test relink = "$hardcode_action_CXX" ||
15675 test yes = "$inherit_rpath_CXX"; then
15676 # Fast installation is not supported
15677 enable_fast_install=no
15678 elif test yes = "$shlibpath_overrides_runpath" ||
15679 test no = "$enable_shared"; then
15680 # Fast installation is not necessary
15681 enable_fast_install=needless
15682 fi
15683
15684
15685
15686
15687
15688
15689
15690 fi # test -n "$compiler"
15691
15692 CC=$lt_save_CC
15693 CFLAGS=$lt_save_CFLAGS
15694 LDCXX=$LD
15695 LD=$lt_save_LD
15696 GCC=$lt_save_GCC
15697 with_gnu_ld=$lt_save_with_gnu_ld
15698 lt_cv_path_LDCXX=$lt_cv_path_LD
15699 lt_cv_path_LD=$lt_save_path_LD
15700 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15701 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15702 fi # test yes != "$_lt_caught_CXX_error"
15703
15704 ac_ext=c
15705 ac_cpp='$CPP $CPPFLAGS'
15706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724 ac_config_commands="$ac_config_commands libtool"
15725
15726
15727
15728
15729 # Only expand once:
15730
15731
15732
15733
15734 ac_config_headers="$ac_config_headers config.h"
15735
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15737 $as_echo_n "checking for ANSI C header files... " >&6; }
15738 if ${ac_cv_header_stdc+:} false; then :
15739 $as_echo_n "(cached) " >&6
15740 else
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743 #include <stdlib.h>
15744 #include <stdarg.h>
15745 #include <string.h>
15746 #include <float.h>
15747
15748 int
15749 main ()
15750 {
15751
15752 ;
15753 return 0;
15754 }
15755 _ACEOF
15756 if ac_fn_c_try_compile "$LINENO"; then :
15757 ac_cv_header_stdc=yes
15758 else
15759 ac_cv_header_stdc=no
15760 fi
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762
15763 if test $ac_cv_header_stdc = yes; then
15764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 #include <string.h>
15768
15769 _ACEOF
15770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15771 $EGREP "memchr" >/dev/null 2>&1; then :
15772
15773 else
15774 ac_cv_header_stdc=no
15775 fi
15776 rm -f conftest*
15777
15778 fi
15779
15780 if test $ac_cv_header_stdc = yes; then
15781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783 /* end confdefs.h. */
15784 #include <stdlib.h>
15785
15786 _ACEOF
15787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15788 $EGREP "free" >/dev/null 2>&1; then :
15789
15790 else
15791 ac_cv_header_stdc=no
15792 fi
15793 rm -f conftest*
15794
15795 fi
15796
15797 if test $ac_cv_header_stdc = yes; then
15798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15799 if test "$cross_compiling" = yes; then :
15800 :
15801 else
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 #include <ctype.h>
15805 #include <stdlib.h>
15806 #if ((' ' & 0x0FF) == 0x020)
15807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15809 #else
15810 # define ISLOWER(c) \
15811 (('a' <= (c) && (c) <= 'i') \
15812 || ('j' <= (c) && (c) <= 'r') \
15813 || ('s' <= (c) && (c) <= 'z'))
15814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15815 #endif
15816
15817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15818 int
15819 main ()
15820 {
15821 int i;
15822 for (i = 0; i < 256; i++)
15823 if (XOR (islower (i), ISLOWER (i))
15824 || toupper (i) != TOUPPER (i))
15825 return 2;
15826 return 0;
15827 }
15828 _ACEOF
15829 if ac_fn_c_try_run "$LINENO"; then :
15830
15831 else
15832 ac_cv_header_stdc=no
15833 fi
15834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15835 conftest.$ac_objext conftest.beam conftest.$ac_ext
15836 fi
15837
15838 fi
15839 fi
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15841 $as_echo "$ac_cv_header_stdc" >&6; }
15842 if test $ac_cv_header_stdc = yes; then
15843
15844 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15845
15846 fi
15847
15848
15849 need_jack=no
15850
15851
15852
15853
15854
15855
15856
15857
15858 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15859 if test -n "$ac_tool_prefix"; then
15860 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15861 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863 $as_echo_n "checking for $ac_word... " >&6; }
15864 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 case $PKG_CONFIG in
15868 [\\/]* | ?:[\\/]*)
15869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15870 ;;
15871 *)
15872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15873 for as_dir in $PATH
15874 do
15875 IFS=$as_save_IFS
15876 test -z "$as_dir" && as_dir=.
15877 for ac_exec_ext in '' $ac_executable_extensions; do
15878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15881 break 2
15882 fi
15883 done
15884 done
15885 IFS=$as_save_IFS
15886
15887 ;;
15888 esac
15889 fi
15890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15891 if test -n "$PKG_CONFIG"; then
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15893 $as_echo "$PKG_CONFIG" >&6; }
15894 else
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 $as_echo "no" >&6; }
15897 fi
15898
15899
15900 fi
15901 if test -z "$ac_cv_path_PKG_CONFIG"; then
15902 ac_pt_PKG_CONFIG=$PKG_CONFIG
15903 # Extract the first word of "pkg-config", so it can be a program name with args.
15904 set dummy pkg-config; ac_word=$2
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906 $as_echo_n "checking for $ac_word... " >&6; }
15907 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 case $ac_pt_PKG_CONFIG in
15911 [\\/]* | ?:[\\/]*)
15912 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15913 ;;
15914 *)
15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15917 do
15918 IFS=$as_save_IFS
15919 test -z "$as_dir" && as_dir=.
15920 for ac_exec_ext in '' $ac_executable_extensions; do
15921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15924 break 2
15925 fi
15926 done
15927 done
15928 IFS=$as_save_IFS
15929
15930 ;;
15931 esac
15932 fi
15933 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15934 if test -n "$ac_pt_PKG_CONFIG"; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15936 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15937 else
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 $as_echo "no" >&6; }
15940 fi
15941
15942 if test "x$ac_pt_PKG_CONFIG" = x; then
15943 PKG_CONFIG=""
15944 else
15945 case $cross_compiling:$ac_tool_warned in
15946 yes:)
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15949 ac_tool_warned=yes ;;
15950 esac
15951 PKG_CONFIG=$ac_pt_PKG_CONFIG
15952 fi
15953 else
15954 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15955 fi
15956
15957 fi
15958 if test -n "$PKG_CONFIG"; then
15959 _pkg_min_version=0.23
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15961 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15962 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15964 $as_echo "yes" >&6; }
15965 else
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15967 $as_echo "no" >&6; }
15968 PKG_CONFIG=""
15969 fi
15970 fi
15971
15972 HUGIN_PARM="-DDISABLE_HUGIN"
15973
15974 # Check whether --with-debug was given.
15975 if test "${with_debug+set}" = set; then :
15976 withval=$with_debug;
15977 fi
15978
15979 if test x$with_debug == xyes; then
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building with debug support!" >&5
15981 $as_echo "$as_me: WARNING: *** Building with debug support!" >&2;}
15982 CXXFLAGS="$CXXFLAGS -Wall -Werror -g"
15983 HUGIN_PARM=""
15984 fi
15985 CXXFLAGS="$CXXFLAGS $HUGIN_PARM"
15986
15987
15988
15989 pkg_failed=no
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
15991 $as_echo_n "checking for QT... " >&6; }
15992
15993 if test -n "$QT_CFLAGS"; then
15994 pkg_cv_QT_CFLAGS="$QT_CFLAGS"
15995 elif test -n "$PKG_CONFIG"; then
15996 if test -n "$PKG_CONFIG" && \
15997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0\""; } >&5
15998 ($PKG_CONFIG --exists --print-errors "Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0") 2>&5
15999 ac_status=$?
16000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16001 test $ac_status = 0; }; then
16002 pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0" 2>/dev/null`
16003 test "x$?" != "x0" && pkg_failed=yes
16004 else
16005 pkg_failed=yes
16006 fi
16007 else
16008 pkg_failed=untried
16009 fi
16010 if test -n "$QT_LIBS"; then
16011 pkg_cv_QT_LIBS="$QT_LIBS"
16012 elif test -n "$PKG_CONFIG"; then
16013 if test -n "$PKG_CONFIG" && \
16014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0\""; } >&5
16015 ($PKG_CONFIG --exists --print-errors "Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0") 2>&5
16016 ac_status=$?
16017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16018 test $ac_status = 0; }; then
16019 pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0" 2>/dev/null`
16020 test "x$?" != "x0" && pkg_failed=yes
16021 else
16022 pkg_failed=yes
16023 fi
16024 else
16025 pkg_failed=untried
16026 fi
16027
16028
16029
16030 if test $pkg_failed = yes; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032 $as_echo "no" >&6; }
16033
16034 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16035 _pkg_short_errors_supported=yes
16036 else
16037 _pkg_short_errors_supported=no
16038 fi
16039 if test $_pkg_short_errors_supported = yes; then
16040 QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0" 2>&1`
16041 else
16042 QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0" 2>&1`
16043 fi
16044 # Put the nasty error message in config.log where it belongs
16045 echo "$QT_PKG_ERRORS" >&5
16046
16047 as_fn_error $? "Package requirements (Qt5Widgets Qt5Core Qt5Gui Qt5Xml >= 5.0) were not met:
16048
16049 $QT_PKG_ERRORS
16050
16051 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16052 installed software in a non-standard prefix.
16053
16054 Alternatively, you may set the environment variables QT_CFLAGS
16055 and QT_LIBS to avoid the need to call pkg-config.
16056 See the pkg-config man page for more details." "$LINENO" 5
16057 elif test $pkg_failed = untried; then
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16059 $as_echo "no" >&6; }
16060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16062 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16063 is in your PATH or set the PKG_CONFIG environment variable to the full
16064 path to pkg-config.
16065
16066 Alternatively, you may set the environment variables QT_CFLAGS
16067 and QT_LIBS to avoid the need to call pkg-config.
16068 See the pkg-config man page for more details.
16069
16070 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16071 See \`config.log' for more details" "$LINENO" 5; }
16072 else
16073 QT_CFLAGS=$pkg_cv_QT_CFLAGS
16074 QT_LIBS=$pkg_cv_QT_LIBS
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16076 $as_echo "yes" >&6; }
16077
16078 fi
16079 for ac_prog in moc5 moc-qt5 moc
16080 do
16081 # Extract the first word of "$ac_prog", so it can be a program name with args.
16082 set dummy $ac_prog; ac_word=$2
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16084 $as_echo_n "checking for $ac_word... " >&6; }
16085 if ${ac_cv_prog_QT_MOC+:} false; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16088 if test -n "$QT_MOC"; then
16089 ac_cv_prog_QT_MOC="$QT_MOC" # Let the user override the test.
16090 else
16091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16092 for as_dir in $PATH
16093 do
16094 IFS=$as_save_IFS
16095 test -z "$as_dir" && as_dir=.
16096 for ac_exec_ext in '' $ac_executable_extensions; do
16097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16098 ac_cv_prog_QT_MOC="$ac_prog"
16099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16100 break 2
16101 fi
16102 done
16103 done
16104 IFS=$as_save_IFS
16105
16106 fi
16107 fi
16108 QT_MOC=$ac_cv_prog_QT_MOC
16109 if test -n "$QT_MOC"; then
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
16111 $as_echo "$QT_MOC" >&6; }
16112 else
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 $as_echo "no" >&6; }
16115 fi
16116
16117
16118 test -n "$QT_MOC" && break
16119 done
16120
16121 for ac_prog in rcc5 rcc-qt5 rcc
16122 do
16123 # Extract the first word of "$ac_prog", so it can be a program name with args.
16124 set dummy $ac_prog; ac_word=$2
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16126 $as_echo_n "checking for $ac_word... " >&6; }
16127 if ${ac_cv_prog_QT_RCC+:} false; then :
16128 $as_echo_n "(cached) " >&6
16129 else
16130 if test -n "$QT_RCC"; then
16131 ac_cv_prog_QT_RCC="$QT_RCC" # Let the user override the test.
16132 else
16133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16134 for as_dir in $PATH
16135 do
16136 IFS=$as_save_IFS
16137 test -z "$as_dir" && as_dir=.
16138 for ac_exec_ext in '' $ac_executable_extensions; do
16139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16140 ac_cv_prog_QT_RCC="$ac_prog"
16141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16142 break 2
16143 fi
16144 done
16145 done
16146 IFS=$as_save_IFS
16147
16148 fi
16149 fi
16150 QT_RCC=$ac_cv_prog_QT_RCC
16151 if test -n "$QT_RCC"; then
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_RCC" >&5
16153 $as_echo "$QT_RCC" >&6; }
16154 else
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16156 $as_echo "no" >&6; }
16157 fi
16158
16159
16160 test -n "$QT_RCC" && break
16161 done
16162
16163 for ac_prog in uic5 uic-qt5 uic
16164 do
16165 # Extract the first word of "$ac_prog", so it can be a program name with args.
16166 set dummy $ac_prog; ac_word=$2
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16168 $as_echo_n "checking for $ac_word... " >&6; }
16169 if ${ac_cv_prog_QT_UIC+:} false; then :
16170 $as_echo_n "(cached) " >&6
16171 else
16172 if test -n "$QT_UIC"; then
16173 ac_cv_prog_QT_UIC="$QT_UIC" # Let the user override the test.
16174 else
16175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $PATH
16177 do
16178 IFS=$as_save_IFS
16179 test -z "$as_dir" && as_dir=.
16180 for ac_exec_ext in '' $ac_executable_extensions; do
16181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182 ac_cv_prog_QT_UIC="$ac_prog"
16183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16184 break 2
16185 fi
16186 done
16187 done
16188 IFS=$as_save_IFS
16189
16190 fi
16191 fi
16192 QT_UIC=$ac_cv_prog_QT_UIC
16193 if test -n "$QT_UIC"; then
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_UIC" >&5
16195 $as_echo "$QT_UIC" >&6; }
16196 else
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16198 $as_echo "no" >&6; }
16199 fi
16200
16201
16202 test -n "$QT_UIC" && break
16203 done
16204
16205 if (test "$QT_MOC" = ""); then
16206 as_fn_error $? "QT5 moc is required." "$LINENO" 5
16207 fi
16208 if (test "$QT_RCC" = ""); then
16209 as_fn_error $? "QT5 rcc is required." "$LINENO" 5
16210 fi
16211 if (test "$QT_UIC" = ""); then
16212 as_fn_error $? "QT5 uic is required." "$LINENO" 5
16213 fi
16214 CXXFLAGS="$CXXFLAGS -fPIC"
16215 CXXFLAGS="$CXXFLAGS -std=c++14"
16216
16217
16218 pkg_failed=no
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AO" >&5
16220 $as_echo_n "checking for AO... " >&6; }
16221
16222 if test -n "$AO_CFLAGS"; then
16223 pkg_cv_AO_CFLAGS="$AO_CFLAGS"
16224 elif test -n "$PKG_CONFIG"; then
16225 if test -n "$PKG_CONFIG" && \
16226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao >= 0.8.8\""; } >&5
16227 ($PKG_CONFIG --exists --print-errors "ao >= 0.8.8") 2>&5
16228 ac_status=$?
16229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16230 test $ac_status = 0; }; then
16231 pkg_cv_AO_CFLAGS=`$PKG_CONFIG --cflags "ao >= 0.8.8" 2>/dev/null`
16232 test "x$?" != "x0" && pkg_failed=yes
16233 else
16234 pkg_failed=yes
16235 fi
16236 else
16237 pkg_failed=untried
16238 fi
16239 if test -n "$AO_LIBS"; then
16240 pkg_cv_AO_LIBS="$AO_LIBS"
16241 elif test -n "$PKG_CONFIG"; then
16242 if test -n "$PKG_CONFIG" && \
16243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao >= 0.8.8\""; } >&5
16244 ($PKG_CONFIG --exists --print-errors "ao >= 0.8.8") 2>&5
16245 ac_status=$?
16246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16247 test $ac_status = 0; }; then
16248 pkg_cv_AO_LIBS=`$PKG_CONFIG --libs "ao >= 0.8.8" 2>/dev/null`
16249 test "x$?" != "x0" && pkg_failed=yes
16250 else
16251 pkg_failed=yes
16252 fi
16253 else
16254 pkg_failed=untried
16255 fi
16256
16257
16258
16259 if test $pkg_failed = yes; then
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16261 $as_echo "no" >&6; }
16262
16263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16264 _pkg_short_errors_supported=yes
16265 else
16266 _pkg_short_errors_supported=no
16267 fi
16268 if test $_pkg_short_errors_supported = yes; then
16269 AO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ao >= 0.8.8" 2>&1`
16270 else
16271 AO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ao >= 0.8.8" 2>&1`
16272 fi
16273 # Put the nasty error message in config.log where it belongs
16274 echo "$AO_PKG_ERRORS" >&5
16275
16276 as_fn_error $? "Package requirements (ao >= 0.8.8) were not met:
16277
16278 $AO_PKG_ERRORS
16279
16280 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16281 installed software in a non-standard prefix.
16282
16283 Alternatively, you may set the environment variables AO_CFLAGS
16284 and AO_LIBS to avoid the need to call pkg-config.
16285 See the pkg-config man page for more details." "$LINENO" 5
16286 elif test $pkg_failed = untried; then
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16288 $as_echo "no" >&6; }
16289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16291 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16292 is in your PATH or set the PKG_CONFIG environment variable to the full
16293 path to pkg-config.
16294
16295 Alternatively, you may set the environment variables AO_CFLAGS
16296 and AO_LIBS to avoid the need to call pkg-config.
16297 See the pkg-config man page for more details.
16298
16299 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16300 See \`config.log' for more details" "$LINENO" 5; }
16301 else
16302 AO_CFLAGS=$pkg_cv_AO_CFLAGS
16303 AO_LIBS=$pkg_cv_AO_LIBS
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16305 $as_echo "yes" >&6; }
16306
16307 fi
16308
16309
16310 pkg_failed=no
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
16312 $as_echo_n "checking for SNDFILE... " >&6; }
16313
16314 if test -n "$SNDFILE_CFLAGS"; then
16315 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
16316 elif test -n "$PKG_CONFIG"; then
16317 if test -n "$PKG_CONFIG" && \
16318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.20\""; } >&5
16319 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.20") 2>&5
16320 ac_status=$?
16321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16322 test $ac_status = 0; }; then
16323 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.20" 2>/dev/null`
16324 test "x$?" != "x0" && pkg_failed=yes
16325 else
16326 pkg_failed=yes
16327 fi
16328 else
16329 pkg_failed=untried
16330 fi
16331 if test -n "$SNDFILE_LIBS"; then
16332 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
16333 elif test -n "$PKG_CONFIG"; then
16334 if test -n "$PKG_CONFIG" && \
16335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.20\""; } >&5
16336 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.20") 2>&5
16337 ac_status=$?
16338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16339 test $ac_status = 0; }; then
16340 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.20" 2>/dev/null`
16341 test "x$?" != "x0" && pkg_failed=yes
16342 else
16343 pkg_failed=yes
16344 fi
16345 else
16346 pkg_failed=untried
16347 fi
16348
16349
16350
16351 if test $pkg_failed = yes; then
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353 $as_echo "no" >&6; }
16354
16355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16356 _pkg_short_errors_supported=yes
16357 else
16358 _pkg_short_errors_supported=no
16359 fi
16360 if test $_pkg_short_errors_supported = yes; then
16361 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.20" 2>&1`
16362 else
16363 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.20" 2>&1`
16364 fi
16365 # Put the nasty error message in config.log where it belongs
16366 echo "$SNDFILE_PKG_ERRORS" >&5
16367
16368 as_fn_error $? "Package requirements (sndfile >= 1.0.20) were not met:
16369
16370 $SNDFILE_PKG_ERRORS
16371
16372 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16373 installed software in a non-standard prefix.
16374
16375 Alternatively, you may set the environment variables SNDFILE_CFLAGS
16376 and SNDFILE_LIBS to avoid the need to call pkg-config.
16377 See the pkg-config man page for more details." "$LINENO" 5
16378 elif test $pkg_failed = untried; then
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16383 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16384 is in your PATH or set the PKG_CONFIG environment variable to the full
16385 path to pkg-config.
16386
16387 Alternatively, you may set the environment variables SNDFILE_CFLAGS
16388 and SNDFILE_LIBS to avoid the need to call pkg-config.
16389 See the pkg-config man page for more details.
16390
16391 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16392 See \`config.log' for more details" "$LINENO" 5; }
16393 else
16394 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
16395 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16397 $as_echo "yes" >&6; }
16398
16399 fi
16400
16401
16402
16403
16404
16405
16406 ac_config_files="$ac_config_files Makefile tools/Makefile src/Makefile icons/Makefile"
16407
16408 cat >confcache <<\_ACEOF
16409 # This file is a shell script that caches the results of configure
16410 # tests run on this system so they can be shared between configure
16411 # scripts and configure runs, see configure's option --config-cache.
16412 # It is not useful on other systems. If it contains results you don't
16413 # want to keep, you may remove or edit it.
16414 #
16415 # config.status only pays attention to the cache file if you give it
16416 # the --recheck option to rerun configure.
16417 #
16418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16420 # following values.
16421
16422 _ACEOF
16423
16424 # The following way of writing the cache mishandles newlines in values,
16425 # but we know of no workaround that is simple, portable, and efficient.
16426 # So, we kill variables containing newlines.
16427 # Ultrix sh set writes to stderr and can't be redirected directly,
16428 # and sets the high bit in the cache file unless we assign to the vars.
16429 (
16430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16431 eval ac_val=\$$ac_var
16432 case $ac_val in #(
16433 *${as_nl}*)
16434 case $ac_var in #(
16435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16436 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16437 esac
16438 case $ac_var in #(
16439 _ | IFS | as_nl) ;; #(
16440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16441 *) { eval $ac_var=; unset $ac_var;} ;;
16442 esac ;;
16443 esac
16444 done
16445
16446 (set) 2>&1 |
16447 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16448 *${as_nl}ac_space=\ *)
16449 # `set' does not quote correctly, so add quotes: double-quote
16450 # substitution turns \\\\ into \\, and sed turns \\ into \.
16451 sed -n \
16452 "s/'/'\\\\''/g;
16453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16454 ;; #(
16455 *)
16456 # `set' quotes correctly as required by POSIX, so do not add quotes.
16457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16458 ;;
16459 esac |
16460 sort
16461 ) |
16462 sed '
16463 /^ac_cv_env_/b end
16464 t clear
16465 :clear
16466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16467 t end
16468 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16469 :end' >>confcache
16470 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16471 if test -w "$cache_file"; then
16472 if test "x$cache_file" != "x/dev/null"; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16474 $as_echo "$as_me: updating cache $cache_file" >&6;}
16475 if test ! -f "$cache_file" || test -h "$cache_file"; then
16476 cat confcache >"$cache_file"
16477 else
16478 case $cache_file in #(
16479 */* | ?:*)
16480 mv -f confcache "$cache_file"$$ &&
16481 mv -f "$cache_file"$$ "$cache_file" ;; #(
16482 *)
16483 mv -f confcache "$cache_file" ;;
16484 esac
16485 fi
16486 fi
16487 else
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16489 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16490 fi
16491 fi
16492 rm -f confcache
16493
16494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16495 # Let make expand exec_prefix.
16496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16497
16498 DEFS=-DHAVE_CONFIG_H
16499
16500 ac_libobjs=
16501 ac_ltlibobjs=
16502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16503 # 1. Remove the extension, and $U if already installed.
16504 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16505 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16507 # will be set to the directory where LIBOBJS objects are built.
16508 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16509 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16510 done
16511 LIBOBJS=$ac_libobjs
16512
16513 LTLIBOBJS=$ac_ltlibobjs
16514
16515
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16517 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16518 if test -n "$am_sleep_pid"; then
16519 # Hide warnings about reused PIDs.
16520 wait $am_sleep_pid 2>/dev/null
16521 fi
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16523 $as_echo "done" >&6; }
16524 if test -n "$EXEEXT"; then
16525 am__EXEEXT_TRUE=
16526 am__EXEEXT_FALSE='#'
16527 else
16528 am__EXEEXT_TRUE='#'
16529 am__EXEEXT_FALSE=
16530 fi
16531
16532 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16533 as_fn_error $? "conditional \"AMDEP\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 fi
16536 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16537 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 fi
16540 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16541 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543 fi
16544
16545 : "${CONFIG_STATUS=./config.status}"
16546 ac_write_fail=0
16547 ac_clean_files_save=$ac_clean_files
16548 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16550 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16551 as_write_fail=0
16552 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16553 #! $SHELL
16554 # Generated by $as_me.
16555 # Run this file to recreate the current configuration.
16556 # Compiler output produced by configure, useful for debugging
16557 # configure, is in config.log if it exists.
16558
16559 debug=false
16560 ac_cs_recheck=false
16561 ac_cs_silent=false
16562
16563 SHELL=\${CONFIG_SHELL-$SHELL}
16564 export SHELL
16565 _ASEOF
16566 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16567 ## -------------------- ##
16568 ## M4sh Initialization. ##
16569 ## -------------------- ##
16570
16571 # Be more Bourne compatible
16572 DUALCASE=1; export DUALCASE # for MKS sh
16573 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16574 emulate sh
16575 NULLCMD=:
16576 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16577 # is contrary to our usage. Disable this feature.
16578 alias -g '${1+"$@"}'='"$@"'
16579 setopt NO_GLOB_SUBST
16580 else
16581 case `(set -o) 2>/dev/null` in #(
16582 *posix*) :
16583 set -o posix ;; #(
16584 *) :
16585 ;;
16586 esac
16587 fi
16588
16589
16590 as_nl='
16591 '
16592 export as_nl
16593 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16594 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16596 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16597 # Prefer a ksh shell builtin over an external printf program on Solaris,
16598 # but without wasting forks for bash or zsh.
16599 if test -z "$BASH_VERSION$ZSH_VERSION" \
16600 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16601 as_echo='print -r --'
16602 as_echo_n='print -rn --'
16603 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16604 as_echo='printf %s\n'
16605 as_echo_n='printf %s'
16606 else
16607 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16608 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16609 as_echo_n='/usr/ucb/echo -n'
16610 else
16611 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16612 as_echo_n_body='eval
16613 arg=$1;
16614 case $arg in #(
16615 *"$as_nl"*)
16616 expr "X$arg" : "X\\(.*\\)$as_nl";
16617 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16618 esac;
16619 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16620 '
16621 export as_echo_n_body
16622 as_echo_n='sh -c $as_echo_n_body as_echo'
16623 fi
16624 export as_echo_body
16625 as_echo='sh -c $as_echo_body as_echo'
16626 fi
16627
16628 # The user is always right.
16629 if test "${PATH_SEPARATOR+set}" != set; then
16630 PATH_SEPARATOR=:
16631 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16632 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16633 PATH_SEPARATOR=';'
16634 }
16635 fi
16636
16637
16638 # IFS
16639 # We need space, tab and new line, in precisely that order. Quoting is
16640 # there to prevent editors from complaining about space-tab.
16641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16642 # splitting by setting IFS to empty value.)
16643 IFS=" "" $as_nl"
16644
16645 # Find who we are. Look in the path if we contain no directory separator.
16646 as_myself=
16647 case $0 in #((
16648 *[\\/]* ) as_myself=$0 ;;
16649 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16650 for as_dir in $PATH
16651 do
16652 IFS=$as_save_IFS
16653 test -z "$as_dir" && as_dir=.
16654 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16655 done
16656 IFS=$as_save_IFS
16657
16658 ;;
16659 esac
16660 # We did not find ourselves, most probably we were run as `sh COMMAND'
16661 # in which case we are not to be found in the path.
16662 if test "x$as_myself" = x; then
16663 as_myself=$0
16664 fi
16665 if test ! -f "$as_myself"; then
16666 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16667 exit 1
16668 fi
16669
16670 # Unset variables that we do not need and which cause bugs (e.g. in
16671 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16672 # suppresses any "Segmentation fault" message there. '((' could
16673 # trigger a bug in pdksh 5.2.14.
16674 for as_var in BASH_ENV ENV MAIL MAILPATH
16675 do eval test x\${$as_var+set} = xset \
16676 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16677 done
16678 PS1='$ '
16679 PS2='> '
16680 PS4='+ '
16681
16682 # NLS nuisances.
16683 LC_ALL=C
16684 export LC_ALL
16685 LANGUAGE=C
16686 export LANGUAGE
16687
16688 # CDPATH.
16689 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16690
16691
16692 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16693 # ----------------------------------------
16694 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16695 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16696 # script with STATUS, using 1 if that was 0.
16697 as_fn_error ()
16698 {
16699 as_status=$1; test $as_status -eq 0 && as_status=1
16700 if test "$4"; then
16701 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16702 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16703 fi
16704 $as_echo "$as_me: error: $2" >&2
16705 as_fn_exit $as_status
16706 } # as_fn_error
16707
16708
16709 # as_fn_set_status STATUS
16710 # -----------------------
16711 # Set $? to STATUS, without forking.
16712 as_fn_set_status ()
16713 {
16714 return $1
16715 } # as_fn_set_status
16716
16717 # as_fn_exit STATUS
16718 # -----------------
16719 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16720 as_fn_exit ()
16721 {
16722 set +e
16723 as_fn_set_status $1
16724 exit $1
16725 } # as_fn_exit
16726
16727 # as_fn_unset VAR
16728 # ---------------
16729 # Portably unset VAR.
16730 as_fn_unset ()
16731 {
16732 { eval $1=; unset $1;}
16733 }
16734 as_unset=as_fn_unset
16735 # as_fn_append VAR VALUE
16736 # ----------------------
16737 # Append the text in VALUE to the end of the definition contained in VAR. Take
16738 # advantage of any shell optimizations that allow amortized linear growth over
16739 # repeated appends, instead of the typical quadratic growth present in naive
16740 # implementations.
16741 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16742 eval 'as_fn_append ()
16743 {
16744 eval $1+=\$2
16745 }'
16746 else
16747 as_fn_append ()
16748 {
16749 eval $1=\$$1\$2
16750 }
16751 fi # as_fn_append
16752
16753 # as_fn_arith ARG...
16754 # ------------------
16755 # Perform arithmetic evaluation on the ARGs, and store the result in the
16756 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16757 # must be portable across $(()) and expr.
16758 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16759 eval 'as_fn_arith ()
16760 {
16761 as_val=$(( $* ))
16762 }'
16763 else
16764 as_fn_arith ()
16765 {
16766 as_val=`expr "$@" || test $? -eq 1`
16767 }
16768 fi # as_fn_arith
16769
16770
16771 if expr a : '\(a\)' >/dev/null 2>&1 &&
16772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16773 as_expr=expr
16774 else
16775 as_expr=false
16776 fi
16777
16778 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16779 as_basename=basename
16780 else
16781 as_basename=false
16782 fi
16783
16784 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16785 as_dirname=dirname
16786 else
16787 as_dirname=false
16788 fi
16789
16790 as_me=`$as_basename -- "$0" ||
16791 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16792 X"$0" : 'X\(//\)$' \| \
16793 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16794 $as_echo X/"$0" |
16795 sed '/^.*\/\([^/][^/]*\)\/*$/{
16796 s//\1/
16797 q
16798 }
16799 /^X\/\(\/\/\)$/{
16800 s//\1/
16801 q
16802 }
16803 /^X\/\(\/\).*/{
16804 s//\1/
16805 q
16806 }
16807 s/.*/./; q'`
16808
16809 # Avoid depending upon Character Ranges.
16810 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16811 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16812 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16813 as_cr_digits='0123456789'
16814 as_cr_alnum=$as_cr_Letters$as_cr_digits
16815
16816 ECHO_C= ECHO_N= ECHO_T=
16817 case `echo -n x` in #(((((
16818 -n*)
16819 case `echo 'xy\c'` in
16820 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16821 xy) ECHO_C='\c';;
16822 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16823 ECHO_T=' ';;
16824 esac;;
16825 *)
16826 ECHO_N='-n';;
16827 esac
16828
16829 rm -f conf$$ conf$$.exe conf$$.file
16830 if test -d conf$$.dir; then
16831 rm -f conf$$.dir/conf$$.file
16832 else
16833 rm -f conf$$.dir
16834 mkdir conf$$.dir 2>/dev/null
16835 fi
16836 if (echo >conf$$.file) 2>/dev/null; then
16837 if ln -s conf$$.file conf$$ 2>/dev/null; then
16838 as_ln_s='ln -s'
16839 # ... but there are two gotchas:
16840 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16841 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16842 # In both cases, we have to default to `cp -pR'.
16843 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16844 as_ln_s='cp -pR'
16845 elif ln conf$$.file conf$$ 2>/dev/null; then
16846 as_ln_s=ln
16847 else
16848 as_ln_s='cp -pR'
16849 fi
16850 else
16851 as_ln_s='cp -pR'
16852 fi
16853 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16854 rmdir conf$$.dir 2>/dev/null
16855
16856
16857 # as_fn_mkdir_p
16858 # -------------
16859 # Create "$as_dir" as a directory, including parents if necessary.
16860 as_fn_mkdir_p ()
16861 {
16862
16863 case $as_dir in #(
16864 -*) as_dir=./$as_dir;;
16865 esac
16866 test -d "$as_dir" || eval $as_mkdir_p || {
16867 as_dirs=
16868 while :; do
16869 case $as_dir in #(
16870 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16871 *) as_qdir=$as_dir;;
16872 esac
16873 as_dirs="'$as_qdir' $as_dirs"
16874 as_dir=`$as_dirname -- "$as_dir" ||
16875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16876 X"$as_dir" : 'X\(//\)[^/]' \| \
16877 X"$as_dir" : 'X\(//\)$' \| \
16878 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16879 $as_echo X"$as_dir" |
16880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16881 s//\1/
16882 q
16883 }
16884 /^X\(\/\/\)[^/].*/{
16885 s//\1/
16886 q
16887 }
16888 /^X\(\/\/\)$/{
16889 s//\1/
16890 q
16891 }
16892 /^X\(\/\).*/{
16893 s//\1/
16894 q
16895 }
16896 s/.*/./; q'`
16897 test -d "$as_dir" && break
16898 done
16899 test -z "$as_dirs" || eval "mkdir $as_dirs"
16900 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16901
16902
16903 } # as_fn_mkdir_p
16904 if mkdir -p . 2>/dev/null; then
16905 as_mkdir_p='mkdir -p "$as_dir"'
16906 else
16907 test -d ./-p && rmdir ./-p
16908 as_mkdir_p=false
16909 fi
16910
16911
16912 # as_fn_executable_p FILE
16913 # -----------------------
16914 # Test if FILE is an executable regular file.
16915 as_fn_executable_p ()
16916 {
16917 test -f "$1" && test -x "$1"
16918 } # as_fn_executable_p
16919 as_test_x='test -x'
16920 as_executable_p=as_fn_executable_p
16921
16922 # Sed expression to map a string onto a valid CPP name.
16923 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16924
16925 # Sed expression to map a string onto a valid variable name.
16926 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16927
16928
16929 exec 6>&1
16930 ## ----------------------------------- ##
16931 ## Main body of $CONFIG_STATUS script. ##
16932 ## ----------------------------------- ##
16933 _ASEOF
16934 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16935
16936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16937 # Save the log message, to keep $0 and so on meaningful, and to
16938 # report actual input values of CONFIG_FILES etc. instead of their
16939 # values after options handling.
16940 ac_log="
16941 This file was extended by dgedit $as_me 0.10.0, which was
16942 generated by GNU Autoconf 2.69. Invocation command line was
16943
16944 CONFIG_FILES = $CONFIG_FILES
16945 CONFIG_HEADERS = $CONFIG_HEADERS
16946 CONFIG_LINKS = $CONFIG_LINKS
16947 CONFIG_COMMANDS = $CONFIG_COMMANDS
16948 $ $0 $@
16949
16950 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16951 "
16952
16953 _ACEOF
16954
16955 case $ac_config_files in *"
16956 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16957 esac
16958
16959 case $ac_config_headers in *"
16960 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16961 esac
16962
16963
16964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16965 # Files that config.status was made for.
16966 config_files="$ac_config_files"
16967 config_headers="$ac_config_headers"
16968 config_commands="$ac_config_commands"
16969
16970 _ACEOF
16971
16972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16973 ac_cs_usage="\
16974 \`$as_me' instantiates files and other configuration actions
16975 from templates according to the current configuration. Unless the files
16976 and actions are specified as TAGs, all are instantiated by default.
16977
16978 Usage: $0 [OPTION]... [TAG]...
16979
16980 -h, --help print this help, then exit
16981 -V, --version print version number and configuration settings, then exit
16982 --config print configuration, then exit
16983 -q, --quiet, --silent
16984 do not print progress messages
16985 -d, --debug don't remove temporary files
16986 --recheck update $as_me by reconfiguring in the same conditions
16987 --file=FILE[:TEMPLATE]
16988 instantiate the configuration file FILE
16989 --header=FILE[:TEMPLATE]
16990 instantiate the configuration header FILE
16991
16992 Configuration files:
16993 $config_files
16994
16995 Configuration headers:
16996 $config_headers
16997
16998 Configuration commands:
16999 $config_commands
17000
17001 Report bugs to the package provider."
17002
17003 _ACEOF
17004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17005 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17006 ac_cs_version="\\
17007 dgedit config.status 0.10.0
17008 configured by $0, generated by GNU Autoconf 2.69,
17009 with options \\"\$ac_cs_config\\"
17010
17011 Copyright (C) 2012 Free Software Foundation, Inc.
17012 This config.status script is free software; the Free Software Foundation
17013 gives unlimited permission to copy, distribute and modify it."
17014
17015 ac_pwd='$ac_pwd'
17016 srcdir='$srcdir'
17017 INSTALL='$INSTALL'
17018 MKDIR_P='$MKDIR_P'
17019 AWK='$AWK'
17020 test -n "\$AWK" || AWK=awk
17021 _ACEOF
17022
17023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17024 # The default lists apply if the user does not specify any file.
17025 ac_need_defaults=:
17026 while test $# != 0
17027 do
17028 case $1 in
17029 --*=?*)
17030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17031 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17032 ac_shift=:
17033 ;;
17034 --*=)
17035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17036 ac_optarg=
17037 ac_shift=:
17038 ;;
17039 *)
17040 ac_option=$1
17041 ac_optarg=$2
17042 ac_shift=shift
17043 ;;
17044 esac
17045
17046 case $ac_option in
17047 # Handling of the options.
17048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17049 ac_cs_recheck=: ;;
17050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17051 $as_echo "$ac_cs_version"; exit ;;
17052 --config | --confi | --conf | --con | --co | --c )
17053 $as_echo "$ac_cs_config"; exit ;;
17054 --debug | --debu | --deb | --de | --d | -d )
17055 debug=: ;;
17056 --file | --fil | --fi | --f )
17057 $ac_shift
17058 case $ac_optarg in
17059 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17060 '') as_fn_error $? "missing file argument" ;;
17061 esac
17062 as_fn_append CONFIG_FILES " '$ac_optarg'"
17063 ac_need_defaults=false;;
17064 --header | --heade | --head | --hea )
17065 $ac_shift
17066 case $ac_optarg in
17067 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17068 esac
17069 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17070 ac_need_defaults=false;;
17071 --he | --h)
17072 # Conflict between --help and --header
17073 as_fn_error $? "ambiguous option: \`$1'
17074 Try \`$0 --help' for more information.";;
17075 --help | --hel | -h )
17076 $as_echo "$ac_cs_usage"; exit ;;
17077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17078 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17079 ac_cs_silent=: ;;
17080
17081 # This is an error.
17082 -*) as_fn_error $? "unrecognized option: \`$1'
17083 Try \`$0 --help' for more information." ;;
17084
17085 *) as_fn_append ac_config_targets " $1"
17086 ac_need_defaults=false ;;
17087
17088 esac
17089 shift
17090 done
17091
17092 ac_configure_extra_args=
17093
17094 if $ac_cs_silent; then
17095 exec 6>/dev/null
17096 ac_configure_extra_args="$ac_configure_extra_args --silent"
17097 fi
17098
17099 _ACEOF
17100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17101 if \$ac_cs_recheck; then
17102 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17103 shift
17104 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17105 CONFIG_SHELL='$SHELL'
17106 export CONFIG_SHELL
17107 exec "\$@"
17108 fi
17109
17110 _ACEOF
17111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17112 exec 5>>config.log
17113 {
17114 echo
17115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17116 ## Running $as_me. ##
17117 _ASBOX
17118 $as_echo "$ac_log"
17119 } >&5
17120
17121 _ACEOF
17122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17123 #
17124 # INIT-COMMANDS
17125 #
17126 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17127
17128
17129 # The HP-UX ksh and POSIX shell print the target directory to stdout
17130 # if CDPATH is set.
17131 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17132
17133 sed_quote_subst='$sed_quote_subst'
17134 double_quote_subst='$double_quote_subst'
17135 delay_variable_subst='$delay_variable_subst'
17136 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17137 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17138 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17139 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17140 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17141 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17142 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17143 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17144 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17145 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17146 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17147 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17148 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17149 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17150 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17151 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17152 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17153 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17154 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17155 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17156 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17157 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17158 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17159 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17160 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17161 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17162 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17163 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17164 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17165 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17166 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17167 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17168 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17169 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17170 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17171 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17172 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17173 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17174 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17175 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17176 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17177 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17178 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17179 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17180 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17181 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17182 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17183 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17184 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17185 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17186 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17187 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17188 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17189 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17190 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17191 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17192 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17193 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17194 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"`'
17195 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17196 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17197 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17198 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17199 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17200 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17201 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17202 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17203 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17204 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17205 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17206 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17207 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17208 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17209 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17210 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17211 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17212 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17213 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17214 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17215 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17216 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17217 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17218 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17219 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17220 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17221 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17222 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17223 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17224 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17225 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17226 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17227 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17228 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17229 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17230 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17231 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17232 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17233 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17234 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17235 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17236 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17237 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17238 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17239 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17240 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17241 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17242 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17243 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17244 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17245 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17246 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17247 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17248 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17249 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17250 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17251 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17252 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17253 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17254 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17255 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17256 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17257 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17258 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17259 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17260 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17261 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17262 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17263 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17264 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17265 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17266 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17267 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17268 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17269 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17270 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17271 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17272 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17273 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17274 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17275 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17276 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17277 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17278 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17279 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17280 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17281 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17282 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17283 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17284 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17285 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17286 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17287 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17288 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17289 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17290 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17291 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17292 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17293 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17294 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17295 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17296 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17297 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17298 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17299 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17300 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17301 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17302 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17303 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17304 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17305 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17306 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17307 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17308 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17309 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17310 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17311 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17312 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17313 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17314 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17315 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17316 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17317 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17318 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17319 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17320 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17321 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17322 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17323 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17324 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17325
17326 LTCC='$LTCC'
17327 LTCFLAGS='$LTCFLAGS'
17328 compiler='$compiler_DEFAULT'
17329
17330 # A function that is used when there is no print builtin or printf.
17331 func_fallback_echo ()
17332 {
17333 eval 'cat <<_LTECHO_EOF
17334 \$1
17335 _LTECHO_EOF'
17336 }
17337
17338 # Quote evaled strings.
17339 for var in SHELL \
17340 ECHO \
17341 PATH_SEPARATOR \
17342 SED \
17343 GREP \
17344 EGREP \
17345 FGREP \
17346 LD \
17347 NM \
17348 LN_S \
17349 lt_SP2NL \
17350 lt_NL2SP \
17351 reload_flag \
17352 OBJDUMP \
17353 deplibs_check_method \
17354 file_magic_cmd \
17355 file_magic_glob \
17356 want_nocaseglob \
17357 DLLTOOL \
17358 sharedlib_from_linklib_cmd \
17359 AR \
17360 AR_FLAGS \
17361 archiver_list_spec \
17362 STRIP \
17363 RANLIB \
17364 CC \
17365 CFLAGS \
17366 compiler \
17367 lt_cv_sys_global_symbol_pipe \
17368 lt_cv_sys_global_symbol_to_cdecl \
17369 lt_cv_sys_global_symbol_to_import \
17370 lt_cv_sys_global_symbol_to_c_name_address \
17371 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17372 lt_cv_nm_interface \
17373 nm_file_list_spec \
17374 lt_cv_truncate_bin \
17375 lt_prog_compiler_no_builtin_flag \
17376 lt_prog_compiler_pic \
17377 lt_prog_compiler_wl \
17378 lt_prog_compiler_static \
17379 lt_cv_prog_compiler_c_o \
17380 need_locks \
17381 MANIFEST_TOOL \
17382 DSYMUTIL \
17383 NMEDIT \
17384 LIPO \
17385 OTOOL \
17386 OTOOL64 \
17387 shrext_cmds \
17388 export_dynamic_flag_spec \
17389 whole_archive_flag_spec \
17390 compiler_needs_object \
17391 with_gnu_ld \
17392 allow_undefined_flag \
17393 no_undefined_flag \
17394 hardcode_libdir_flag_spec \
17395 hardcode_libdir_separator \
17396 exclude_expsyms \
17397 include_expsyms \
17398 file_list_spec \
17399 variables_saved_for_relink \
17400 libname_spec \
17401 library_names_spec \
17402 soname_spec \
17403 install_override_mode \
17404 finish_eval \
17405 old_striplib \
17406 striplib \
17407 compiler_lib_search_dirs \
17408 predep_objects \
17409 postdep_objects \
17410 predeps \
17411 postdeps \
17412 compiler_lib_search_path \
17413 LD_CXX \
17414 reload_flag_CXX \
17415 compiler_CXX \
17416 lt_prog_compiler_no_builtin_flag_CXX \
17417 lt_prog_compiler_pic_CXX \
17418 lt_prog_compiler_wl_CXX \
17419 lt_prog_compiler_static_CXX \
17420 lt_cv_prog_compiler_c_o_CXX \
17421 export_dynamic_flag_spec_CXX \
17422 whole_archive_flag_spec_CXX \
17423 compiler_needs_object_CXX \
17424 with_gnu_ld_CXX \
17425 allow_undefined_flag_CXX \
17426 no_undefined_flag_CXX \
17427 hardcode_libdir_flag_spec_CXX \
17428 hardcode_libdir_separator_CXX \
17429 exclude_expsyms_CXX \
17430 include_expsyms_CXX \
17431 file_list_spec_CXX \
17432 compiler_lib_search_dirs_CXX \
17433 predep_objects_CXX \
17434 postdep_objects_CXX \
17435 predeps_CXX \
17436 postdeps_CXX \
17437 compiler_lib_search_path_CXX; do
17438 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17439 *[\\\\\\\`\\"\\\$]*)
17440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17441 ;;
17442 *)
17443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17444 ;;
17445 esac
17446 done
17447
17448 # Double-quote double-evaled strings.
17449 for var in reload_cmds \
17450 old_postinstall_cmds \
17451 old_postuninstall_cmds \
17452 old_archive_cmds \
17453 extract_expsyms_cmds \
17454 old_archive_from_new_cmds \
17455 old_archive_from_expsyms_cmds \
17456 archive_cmds \
17457 archive_expsym_cmds \
17458 module_cmds \
17459 module_expsym_cmds \
17460 export_symbols_cmds \
17461 prelink_cmds \
17462 postlink_cmds \
17463 postinstall_cmds \
17464 postuninstall_cmds \
17465 finish_cmds \
17466 sys_lib_search_path_spec \
17467 configure_time_dlsearch_path \
17468 configure_time_lt_sys_library_path \
17469 reload_cmds_CXX \
17470 old_archive_cmds_CXX \
17471 old_archive_from_new_cmds_CXX \
17472 old_archive_from_expsyms_cmds_CXX \
17473 archive_cmds_CXX \
17474 archive_expsym_cmds_CXX \
17475 module_cmds_CXX \
17476 module_expsym_cmds_CXX \
17477 export_symbols_cmds_CXX \
17478 prelink_cmds_CXX \
17479 postlink_cmds_CXX; do
17480 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17481 *[\\\\\\\`\\"\\\$]*)
17482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17483 ;;
17484 *)
17485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17486 ;;
17487 esac
17488 done
17489
17490 ac_aux_dir='$ac_aux_dir'
17491
17492 # See if we are running on zsh, and set the options that allow our
17493 # commands through without removal of \ escapes INIT.
17494 if test -n "\${ZSH_VERSION+set}"; then
17495 setopt NO_GLOB_SUBST
17496 fi
17497
17498
17499 PACKAGE='$PACKAGE'
17500 VERSION='$VERSION'
17501 RM='$RM'
17502 ofile='$ofile'
17503
17504
17505
17506
17507
17508
17509 _ACEOF
17510
17511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17512
17513 # Handling of arguments.
17514 for ac_config_target in $ac_config_targets
17515 do
17516 case $ac_config_target in
17517 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17518 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17519 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17520 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17521 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17522 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17523 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
17524
17525 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17526 esac
17527 done
17528
17529
17530 # If the user did not use the arguments to specify the items to instantiate,
17531 # then the envvar interface is used. Set only those that are not.
17532 # We use the long form for the default assignment because of an extremely
17533 # bizarre bug on SunOS 4.1.3.
17534 if $ac_need_defaults; then
17535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17536 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17538 fi
17539
17540 # Have a temporary directory for convenience. Make it in the build tree
17541 # simply because there is no reason against having it here, and in addition,
17542 # creating and moving files from /tmp can sometimes cause problems.
17543 # Hook for its removal unless debugging.
17544 # Note that there is a small window in which the directory will not be cleaned:
17545 # after its creation but before its name has been assigned to `$tmp'.
17546 $debug ||
17547 {
17548 tmp= ac_tmp=
17549 trap 'exit_status=$?
17550 : "${ac_tmp:=$tmp}"
17551 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17552 ' 0
17553 trap 'as_fn_exit 1' 1 2 13 15
17554 }
17555 # Create a (secure) tmp directory for tmp files.
17556
17557 {
17558 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17559 test -d "$tmp"
17560 } ||
17561 {
17562 tmp=./conf$$-$RANDOM
17563 (umask 077 && mkdir "$tmp")
17564 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17565 ac_tmp=$tmp
17566
17567 # Set up the scripts for CONFIG_FILES section.
17568 # No need to generate them if there are no CONFIG_FILES.
17569 # This happens for instance with `./config.status config.h'.
17570 if test -n "$CONFIG_FILES"; then
17571
17572
17573 ac_cr=`echo X | tr X '\015'`
17574 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17575 # But we know of no other shell where ac_cr would be empty at this
17576 # point, so we can use a bashism as a fallback.
17577 if test "x$ac_cr" = x; then
17578 eval ac_cr=\$\'\\r\'
17579 fi
17580 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17581 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17582 ac_cs_awk_cr='\\r'
17583 else
17584 ac_cs_awk_cr=$ac_cr
17585 fi
17586
17587 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17588 _ACEOF
17589
17590
17591 {
17592 echo "cat >conf$$subs.awk <<_ACEOF" &&
17593 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17594 echo "_ACEOF"
17595 } >conf$$subs.sh ||
17596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17597 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17598 ac_delim='%!_!# '
17599 for ac_last_try in false false false false false :; do
17600 . ./conf$$subs.sh ||
17601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17602
17603 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17604 if test $ac_delim_n = $ac_delim_num; then
17605 break
17606 elif $ac_last_try; then
17607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17608 else
17609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17610 fi
17611 done
17612 rm -f conf$$subs.sh
17613
17614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17615 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17616 _ACEOF
17617 sed -n '
17618 h
17619 s/^/S["/; s/!.*/"]=/
17620 p
17621 g
17622 s/^[^!]*!//
17623 :repl
17624 t repl
17625 s/'"$ac_delim"'$//
17626 t delim
17627 :nl
17628 h
17629 s/\(.\{148\}\)..*/\1/
17630 t more1
17631 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17632 p
17633 n
17634 b repl
17635 :more1
17636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17637 p
17638 g
17639 s/.\{148\}//
17640 t nl
17641 :delim
17642 h
17643 s/\(.\{148\}\)..*/\1/
17644 t more2
17645 s/["\\]/\\&/g; s/^/"/; s/$/"/
17646 p
17647 b
17648 :more2
17649 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17650 p
17651 g
17652 s/.\{148\}//
17653 t delim
17654 ' <conf$$subs.awk | sed '
17655 /^[^""]/{
17656 N
17657 s/\n//
17658 }
17659 ' >>$CONFIG_STATUS || ac_write_fail=1
17660 rm -f conf$$subs.awk
17661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17662 _ACAWK
17663 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17664 for (key in S) S_is_set[key] = 1
17665 FS = ""
17666
17667 }
17668 {
17669 line = $ 0
17670 nfields = split(line, field, "@")
17671 substed = 0
17672 len = length(field[1])
17673 for (i = 2; i < nfields; i++) {
17674 key = field[i]
17675 keylen = length(key)
17676 if (S_is_set[key]) {
17677 value = S[key]
17678 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17679 len += length(value) + length(field[++i])
17680 substed = 1
17681 } else
17682 len += 1 + keylen
17683 }
17684
17685 print line
17686 }
17687
17688 _ACAWK
17689 _ACEOF
17690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17691 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17692 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17693 else
17694 cat
17695 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17696 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17697 _ACEOF
17698
17699 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17700 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17701 # trailing colons and then remove the whole line if VPATH becomes empty
17702 # (actually we leave an empty line to preserve line numbers).
17703 if test "x$srcdir" = x.; then
17704 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17705 h
17706 s///
17707 s/^/:/
17708 s/[ ]*$/:/
17709 s/:\$(srcdir):/:/g
17710 s/:\${srcdir}:/:/g
17711 s/:@srcdir@:/:/g
17712 s/^:*//
17713 s/:*$//
17714 x
17715 s/\(=[ ]*\).*/\1/
17716 G
17717 s/\n//
17718 s/^[^=]*=[ ]*$//
17719 }'
17720 fi
17721
17722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17723 fi # test -n "$CONFIG_FILES"
17724
17725 # Set up the scripts for CONFIG_HEADERS section.
17726 # No need to generate them if there are no CONFIG_HEADERS.
17727 # This happens for instance with `./config.status Makefile'.
17728 if test -n "$CONFIG_HEADERS"; then
17729 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17730 BEGIN {
17731 _ACEOF
17732
17733 # Transform confdefs.h into an awk script `defines.awk', embedded as
17734 # here-document in config.status, that substitutes the proper values into
17735 # config.h.in to produce config.h.
17736
17737 # Create a delimiter string that does not exist in confdefs.h, to ease
17738 # handling of long lines.
17739 ac_delim='%!_!# '
17740 for ac_last_try in false false :; do
17741 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17742 if test -z "$ac_tt"; then
17743 break
17744 elif $ac_last_try; then
17745 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17746 else
17747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17748 fi
17749 done
17750
17751 # For the awk script, D is an array of macro values keyed by name,
17752 # likewise P contains macro parameters if any. Preserve backslash
17753 # newline sequences.
17754
17755 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17756 sed -n '
17757 s/.\{148\}/&'"$ac_delim"'/g
17758 t rset
17759 :rset
17760 s/^[ ]*#[ ]*define[ ][ ]*/ /
17761 t def
17762 d
17763 :def
17764 s/\\$//
17765 t bsnl
17766 s/["\\]/\\&/g
17767 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17768 D["\1"]=" \3"/p
17769 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17770 d
17771 :bsnl
17772 s/["\\]/\\&/g
17773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17774 D["\1"]=" \3\\\\\\n"\\/p
17775 t cont
17776 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17777 t cont
17778 d
17779 :cont
17780 n
17781 s/.\{148\}/&'"$ac_delim"'/g
17782 t clear
17783 :clear
17784 s/\\$//
17785 t bsnlc
17786 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17787 d
17788 :bsnlc
17789 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17790 b cont
17791 ' <confdefs.h | sed '
17792 s/'"$ac_delim"'/"\\\
17793 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17794
17795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 for (key in D) D_is_set[key] = 1
17797 FS = ""
17798 }
17799 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17800 line = \$ 0
17801 split(line, arg, " ")
17802 if (arg[1] == "#") {
17803 defundef = arg[2]
17804 mac1 = arg[3]
17805 } else {
17806 defundef = substr(arg[1], 2)
17807 mac1 = arg[2]
17808 }
17809 split(mac1, mac2, "(") #)
17810 macro = mac2[1]
17811 prefix = substr(line, 1, index(line, defundef) - 1)
17812 if (D_is_set[macro]) {
17813 # Preserve the white space surrounding the "#".
17814 print prefix "define", macro P[macro] D[macro]
17815 next
17816 } else {
17817 # Replace #undef with comments. This is necessary, for example,
17818 # in the case of _POSIX_SOURCE, which is predefined and required
17819 # on some systems where configure will not decide to define it.
17820 if (defundef == "undef") {
17821 print "/*", prefix defundef, macro, "*/"
17822 next
17823 }
17824 }
17825 }
17826 { print }
17827 _ACAWK
17828 _ACEOF
17829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17830 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17831 fi # test -n "$CONFIG_HEADERS"
17832
17833
17834 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17835 shift
17836 for ac_tag
17837 do
17838 case $ac_tag in
17839 :[FHLC]) ac_mode=$ac_tag; continue;;
17840 esac
17841 case $ac_mode$ac_tag in
17842 :[FHL]*:*);;
17843 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17844 :[FH]-) ac_tag=-:-;;
17845 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17846 esac
17847 ac_save_IFS=$IFS
17848 IFS=:
17849 set x $ac_tag
17850 IFS=$ac_save_IFS
17851 shift
17852 ac_file=$1
17853 shift
17854
17855 case $ac_mode in
17856 :L) ac_source=$1;;
17857 :[FH])
17858 ac_file_inputs=
17859 for ac_f
17860 do
17861 case $ac_f in
17862 -) ac_f="$ac_tmp/stdin";;
17863 *) # Look for the file first in the build tree, then in the source tree
17864 # (if the path is not absolute). The absolute path cannot be DOS-style,
17865 # because $ac_f cannot contain `:'.
17866 test -f "$ac_f" ||
17867 case $ac_f in
17868 [\\/$]*) false;;
17869 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17870 esac ||
17871 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17872 esac
17873 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17874 as_fn_append ac_file_inputs " '$ac_f'"
17875 done
17876
17877 # Let's still pretend it is `configure' which instantiates (i.e., don't
17878 # use $as_me), people would be surprised to read:
17879 # /* config.h. Generated by config.status. */
17880 configure_input='Generated from '`
17881 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17882 `' by configure.'
17883 if test x"$ac_file" != x-; then
17884 configure_input="$ac_file. $configure_input"
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17886 $as_echo "$as_me: creating $ac_file" >&6;}
17887 fi
17888 # Neutralize special characters interpreted by sed in replacement strings.
17889 case $configure_input in #(
17890 *\&* | *\|* | *\\* )
17891 ac_sed_conf_input=`$as_echo "$configure_input" |
17892 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17893 *) ac_sed_conf_input=$configure_input;;
17894 esac
17895
17896 case $ac_tag in
17897 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17899 esac
17900 ;;
17901 esac
17902
17903 ac_dir=`$as_dirname -- "$ac_file" ||
17904 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17905 X"$ac_file" : 'X\(//\)[^/]' \| \
17906 X"$ac_file" : 'X\(//\)$' \| \
17907 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17908 $as_echo X"$ac_file" |
17909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17910 s//\1/
17911 q
17912 }
17913 /^X\(\/\/\)[^/].*/{
17914 s//\1/
17915 q
17916 }
17917 /^X\(\/\/\)$/{
17918 s//\1/
17919 q
17920 }
17921 /^X\(\/\).*/{
17922 s//\1/
17923 q
17924 }
17925 s/.*/./; q'`
17926 as_dir="$ac_dir"; as_fn_mkdir_p
17927 ac_builddir=.
17928
17929 case "$ac_dir" in
17930 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17931 *)
17932 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17933 # A ".." for each directory in $ac_dir_suffix.
17934 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17935 case $ac_top_builddir_sub in
17936 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17937 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17938 esac ;;
17939 esac
17940 ac_abs_top_builddir=$ac_pwd
17941 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17942 # for backward compatibility:
17943 ac_top_builddir=$ac_top_build_prefix
17944
17945 case $srcdir in
17946 .) # We are building in place.
17947 ac_srcdir=.
17948 ac_top_srcdir=$ac_top_builddir_sub
17949 ac_abs_top_srcdir=$ac_pwd ;;
17950 [\\/]* | ?:[\\/]* ) # Absolute name.
17951 ac_srcdir=$srcdir$ac_dir_suffix;
17952 ac_top_srcdir=$srcdir
17953 ac_abs_top_srcdir=$srcdir ;;
17954 *) # Relative name.
17955 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17956 ac_top_srcdir=$ac_top_build_prefix$srcdir
17957 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17958 esac
17959 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17960
17961
17962 case $ac_mode in
17963 :F)
17964 #
17965 # CONFIG_FILE
17966 #
17967
17968 case $INSTALL in
17969 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17970 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17971 esac
17972 ac_MKDIR_P=$MKDIR_P
17973 case $MKDIR_P in
17974 [\\/$]* | ?:[\\/]* ) ;;
17975 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17976 esac
17977 _ACEOF
17978
17979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17980 # If the template does not know about datarootdir, expand it.
17981 # FIXME: This hack should be removed a few years after 2.60.
17982 ac_datarootdir_hack=; ac_datarootdir_seen=
17983 ac_sed_dataroot='
17984 /datarootdir/ {
17985 p
17986 q
17987 }
17988 /@datadir@/p
17989 /@docdir@/p
17990 /@infodir@/p
17991 /@localedir@/p
17992 /@mandir@/p'
17993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17994 *datarootdir*) ac_datarootdir_seen=yes;;
17995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17997 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17998 _ACEOF
17999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18000 ac_datarootdir_hack='
18001 s&@datadir@&$datadir&g
18002 s&@docdir@&$docdir&g
18003 s&@infodir@&$infodir&g
18004 s&@localedir@&$localedir&g
18005 s&@mandir@&$mandir&g
18006 s&\\\${datarootdir}&$datarootdir&g' ;;
18007 esac
18008 _ACEOF
18009
18010 # Neutralize VPATH when `$srcdir' = `.'.
18011 # Shell code in configure.ac might set extrasub.
18012 # FIXME: do we really want to maintain this feature?
18013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18014 ac_sed_extra="$ac_vpsub
18015 $extrasub
18016 _ACEOF
18017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18018 :t
18019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18020 s|@configure_input@|$ac_sed_conf_input|;t t
18021 s&@top_builddir@&$ac_top_builddir_sub&;t t
18022 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18023 s&@srcdir@&$ac_srcdir&;t t
18024 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18025 s&@top_srcdir@&$ac_top_srcdir&;t t
18026 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18027 s&@builddir@&$ac_builddir&;t t
18028 s&@abs_builddir@&$ac_abs_builddir&;t t
18029 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18030 s&@INSTALL@&$ac_INSTALL&;t t
18031 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18032 $ac_datarootdir_hack
18033 "
18034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18035 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18036
18037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18038 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18040 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18042 which seems to be undefined. Please make sure it is defined" >&5
18043 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18044 which seems to be undefined. Please make sure it is defined" >&2;}
18045
18046 rm -f "$ac_tmp/stdin"
18047 case $ac_file in
18048 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18049 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18050 esac \
18051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18052 ;;
18053 :H)
18054 #
18055 # CONFIG_HEADER
18056 #
18057 if test x"$ac_file" != x-; then
18058 {
18059 $as_echo "/* $configure_input */" \
18060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18061 } >"$ac_tmp/config.h" \
18062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18063 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18065 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18066 else
18067 rm -f "$ac_file"
18068 mv "$ac_tmp/config.h" "$ac_file" \
18069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18070 fi
18071 else
18072 $as_echo "/* $configure_input */" \
18073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18074 || as_fn_error $? "could not create -" "$LINENO" 5
18075 fi
18076 # Compute "$ac_file"'s index in $config_headers.
18077 _am_arg="$ac_file"
18078 _am_stamp_count=1
18079 for _am_header in $config_headers :; do
18080 case $_am_header in
18081 $_am_arg | $_am_arg:* )
18082 break ;;
18083 * )
18084 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18085 esac
18086 done
18087 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18088 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18089 X"$_am_arg" : 'X\(//\)[^/]' \| \
18090 X"$_am_arg" : 'X\(//\)$' \| \
18091 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18092 $as_echo X"$_am_arg" |
18093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18094 s//\1/
18095 q
18096 }
18097 /^X\(\/\/\)[^/].*/{
18098 s//\1/
18099 q
18100 }
18101 /^X\(\/\/\)$/{
18102 s//\1/
18103 q
18104 }
18105 /^X\(\/\).*/{
18106 s//\1/
18107 q
18108 }
18109 s/.*/./; q'`/stamp-h$_am_stamp_count
18110 ;;
18111
18112 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18113 $as_echo "$as_me: executing $ac_file commands" >&6;}
18114 ;;
18115 esac
18116
18117
18118 case $ac_file$ac_mode in
18119 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18120 # Older Autoconf quotes --file arguments for eval, but not when files
18121 # are listed without --file. Let's play safe and only enable the eval
18122 # if we detect the quoting.
18123 case $CONFIG_FILES in
18124 *\'*) eval set x "$CONFIG_FILES" ;;
18125 *) set x $CONFIG_FILES ;;
18126 esac
18127 shift
18128 for mf
18129 do
18130 # Strip MF so we end up with the name of the file.
18131 mf=`echo "$mf" | sed -e 's/:.*$//'`
18132 # Check whether this is an Automake generated Makefile or not.
18133 # We used to match only the files named 'Makefile.in', but
18134 # some people rename them; so instead we look at the file content.
18135 # Grep'ing the first line is not enough: some people post-process
18136 # each Makefile.in and add a new line on top of each file to say so.
18137 # Grep'ing the whole file is not good either: AIX grep has a line
18138 # limit of 2048, but all sed's we know have understand at least 4000.
18139 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18140 dirpart=`$as_dirname -- "$mf" ||
18141 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18142 X"$mf" : 'X\(//\)[^/]' \| \
18143 X"$mf" : 'X\(//\)$' \| \
18144 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18145 $as_echo X"$mf" |
18146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18147 s//\1/
18148 q
18149 }
18150 /^X\(\/\/\)[^/].*/{
18151 s//\1/
18152 q
18153 }
18154 /^X\(\/\/\)$/{
18155 s//\1/
18156 q
18157 }
18158 /^X\(\/\).*/{
18159 s//\1/
18160 q
18161 }
18162 s/.*/./; q'`
18163 else
18164 continue
18165 fi
18166 # Extract the definition of DEPDIR, am__include, and am__quote
18167 # from the Makefile without running 'make'.
18168 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18169 test -z "$DEPDIR" && continue
18170 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18171 test -z "$am__include" && continue
18172 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18173 # Find all dependency output files, they are included files with
18174 # $(DEPDIR) in their names. We invoke sed twice because it is the
18175 # simplest approach to changing $(DEPDIR) to its actual value in the
18176 # expansion.
18177 for file in `sed -n "
18178 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18179 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18180 # Make sure the directory exists.
18181 test -f "$dirpart/$file" && continue
18182 fdir=`$as_dirname -- "$file" ||
18183 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18184 X"$file" : 'X\(//\)[^/]' \| \
18185 X"$file" : 'X\(//\)$' \| \
18186 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18187 $as_echo X"$file" |
18188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18189 s//\1/
18190 q
18191 }
18192 /^X\(\/\/\)[^/].*/{
18193 s//\1/
18194 q
18195 }
18196 /^X\(\/\/\)$/{
18197 s//\1/
18198 q
18199 }
18200 /^X\(\/\).*/{
18201 s//\1/
18202 q
18203 }
18204 s/.*/./; q'`
18205 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18206 # echo "creating $dirpart/$file"
18207 echo '# dummy' > "$dirpart/$file"
18208 done
18209 done
18210 }
18211 ;;
18212 "libtool":C)
18213
18214 # See if we are running on zsh, and set the options that allow our
18215 # commands through without removal of \ escapes.
18216 if test -n "${ZSH_VERSION+set}"; then
18217 setopt NO_GLOB_SUBST
18218 fi
18219
18220 cfgfile=${ofile}T
18221 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18222 $RM "$cfgfile"
18223
18224 cat <<_LT_EOF >> "$cfgfile"
18225 #! $SHELL
18226 # Generated automatically by $as_me ($PACKAGE) $VERSION
18227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18228 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18229
18230 # Provide generalized library-building support services.
18231 # Written by Gordon Matzigkeit, 1996
18232
18233 # Copyright (C) 2014 Free Software Foundation, Inc.
18234 # This is free software; see the source for copying conditions. There is NO
18235 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18236
18237 # GNU Libtool is free software; you can redistribute it and/or modify
18238 # it under the terms of the GNU General Public License as published by
18239 # the Free Software Foundation; either version 2 of of the License, or
18240 # (at your option) any later version.
18241 #
18242 # As a special exception to the GNU General Public License, if you
18243 # distribute this file as part of a program or library that is built
18244 # using GNU Libtool, you may include this file under the same
18245 # distribution terms that you use for the rest of that program.
18246 #
18247 # GNU Libtool is distributed in the hope that it will be useful, but
18248 # WITHOUT ANY WARRANTY; without even the implied warranty of
18249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18250 # GNU General Public License for more details.
18251 #
18252 # You should have received a copy of the GNU General Public License
18253 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18254
18255
18256 # The names of the tagged configurations supported by this script.
18257 available_tags='CXX '
18258
18259 # Configured defaults for sys_lib_dlsearch_path munging.
18260 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18261
18262 # ### BEGIN LIBTOOL CONFIG
18263
18264 # Which release of libtool.m4 was used?
18265 macro_version=$macro_version
18266 macro_revision=$macro_revision
18267
18268 # Whether or not to build shared libraries.
18269 build_libtool_libs=$enable_shared
18270
18271 # Whether or not to build static libraries.
18272 build_old_libs=$enable_static
18273
18274 # What type of objects to build.
18275 pic_mode=$pic_mode
18276
18277 # Whether or not to optimize for fast installation.
18278 fast_install=$enable_fast_install
18279
18280 # Shared archive member basename,for filename based shared library versioning on AIX.
18281 shared_archive_member_spec=$shared_archive_member_spec
18282
18283 # Shell to use when invoking shell scripts.
18284 SHELL=$lt_SHELL
18285
18286 # An echo program that protects backslashes.
18287 ECHO=$lt_ECHO
18288
18289 # The PATH separator for the build system.
18290 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18291
18292 # The host system.
18293 host_alias=$host_alias
18294 host=$host
18295 host_os=$host_os
18296
18297 # The build system.
18298 build_alias=$build_alias
18299 build=$build
18300 build_os=$build_os
18301
18302 # A sed program that does not truncate output.
18303 SED=$lt_SED
18304
18305 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18306 Xsed="\$SED -e 1s/^X//"
18307
18308 # A grep program that handles long lines.
18309 GREP=$lt_GREP
18310
18311 # An ERE matcher.
18312 EGREP=$lt_EGREP
18313
18314 # A literal string matcher.
18315 FGREP=$lt_FGREP
18316
18317 # A BSD- or MS-compatible name lister.
18318 NM=$lt_NM
18319
18320 # Whether we need soft or hard links.
18321 LN_S=$lt_LN_S
18322
18323 # What is the maximum length of a command?
18324 max_cmd_len=$max_cmd_len
18325
18326 # Object file suffix (normally "o").
18327 objext=$ac_objext
18328
18329 # Executable file suffix (normally "").
18330 exeext=$exeext
18331
18332 # whether the shell understands "unset".
18333 lt_unset=$lt_unset
18334
18335 # turn spaces into newlines.
18336 SP2NL=$lt_lt_SP2NL
18337
18338 # turn newlines into spaces.
18339 NL2SP=$lt_lt_NL2SP
18340
18341 # convert \$build file names to \$host format.
18342 to_host_file_cmd=$lt_cv_to_host_file_cmd
18343
18344 # convert \$build files to toolchain format.
18345 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18346
18347 # An object symbol dumper.
18348 OBJDUMP=$lt_OBJDUMP
18349
18350 # Method to check whether dependent libraries are shared objects.
18351 deplibs_check_method=$lt_deplibs_check_method
18352
18353 # Command to use when deplibs_check_method = "file_magic".
18354 file_magic_cmd=$lt_file_magic_cmd
18355
18356 # How to find potential files when deplibs_check_method = "file_magic".
18357 file_magic_glob=$lt_file_magic_glob
18358
18359 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18360 want_nocaseglob=$lt_want_nocaseglob
18361
18362 # DLL creation program.
18363 DLLTOOL=$lt_DLLTOOL
18364
18365 # Command to associate shared and link libraries.
18366 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18367
18368 # The archiver.
18369 AR=$lt_AR
18370
18371 # Flags to create an archive.
18372 AR_FLAGS=$lt_AR_FLAGS
18373
18374 # How to feed a file listing to the archiver.
18375 archiver_list_spec=$lt_archiver_list_spec
18376
18377 # A symbol stripping program.
18378 STRIP=$lt_STRIP
18379
18380 # Commands used to install an old-style archive.
18381 RANLIB=$lt_RANLIB
18382 old_postinstall_cmds=$lt_old_postinstall_cmds
18383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18384
18385 # Whether to use a lock for old archive extraction.
18386 lock_old_archive_extraction=$lock_old_archive_extraction
18387
18388 # A C compiler.
18389 LTCC=$lt_CC
18390
18391 # LTCC compiler flags.
18392 LTCFLAGS=$lt_CFLAGS
18393
18394 # Take the output of nm and produce a listing of raw symbols and C names.
18395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18396
18397 # Transform the output of nm in a proper C declaration.
18398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18399
18400 # Transform the output of nm into a list of symbols to manually relocate.
18401 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18402
18403 # Transform the output of nm in a C name address pair.
18404 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18405
18406 # Transform the output of nm in a C name address pair when lib prefix is needed.
18407 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18408
18409 # The name lister interface.
18410 nm_interface=$lt_lt_cv_nm_interface
18411
18412 # Specify filename containing input files for \$NM.
18413 nm_file_list_spec=$lt_nm_file_list_spec
18414
18415 # The root where to search for dependent libraries,and where our libraries should be installed.
18416 lt_sysroot=$lt_sysroot
18417
18418 # Command to truncate a binary pipe.
18419 lt_truncate_bin=$lt_lt_cv_truncate_bin
18420
18421 # The name of the directory that contains temporary libtool files.
18422 objdir=$objdir
18423
18424 # Used to examine libraries when file_magic_cmd begins with "file".
18425 MAGIC_CMD=$MAGIC_CMD
18426
18427 # Must we lock files when doing compilation?
18428 need_locks=$lt_need_locks
18429
18430 # Manifest tool.
18431 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18432
18433 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18434 DSYMUTIL=$lt_DSYMUTIL
18435
18436 # Tool to change global to local symbols on Mac OS X.
18437 NMEDIT=$lt_NMEDIT
18438
18439 # Tool to manipulate fat objects and archives on Mac OS X.
18440 LIPO=$lt_LIPO
18441
18442 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18443 OTOOL=$lt_OTOOL
18444
18445 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18446 OTOOL64=$lt_OTOOL64
18447
18448 # Old archive suffix (normally "a").
18449 libext=$libext
18450
18451 # Shared library suffix (normally ".so").
18452 shrext_cmds=$lt_shrext_cmds
18453
18454 # The commands to extract the exported symbol list from a shared archive.
18455 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18456
18457 # Variables whose values should be saved in libtool wrapper scripts and
18458 # restored at link time.
18459 variables_saved_for_relink=$lt_variables_saved_for_relink
18460
18461 # Do we need the "lib" prefix for modules?
18462 need_lib_prefix=$need_lib_prefix
18463
18464 # Do we need a version for libraries?
18465 need_version=$need_version
18466
18467 # Library versioning type.
18468 version_type=$version_type
18469
18470 # Shared library runtime path variable.
18471 runpath_var=$runpath_var
18472
18473 # Shared library path variable.
18474 shlibpath_var=$shlibpath_var
18475
18476 # Is shlibpath searched before the hard-coded library search path?
18477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18478
18479 # Format of library name prefix.
18480 libname_spec=$lt_libname_spec
18481
18482 # List of archive names. First name is the real one, the rest are links.
18483 # The last name is the one that the linker finds with -lNAME
18484 library_names_spec=$lt_library_names_spec
18485
18486 # The coded name of the library, if different from the real name.
18487 soname_spec=$lt_soname_spec
18488
18489 # Permission mode override for installation of shared libraries.
18490 install_override_mode=$lt_install_override_mode
18491
18492 # Command to use after installation of a shared archive.
18493 postinstall_cmds=$lt_postinstall_cmds
18494
18495 # Command to use after uninstallation of a shared archive.
18496 postuninstall_cmds=$lt_postuninstall_cmds
18497
18498 # Commands used to finish a libtool library installation in a directory.
18499 finish_cmds=$lt_finish_cmds
18500
18501 # As "finish_cmds", except a single script fragment to be evaled but
18502 # not shown.
18503 finish_eval=$lt_finish_eval
18504
18505 # Whether we should hardcode library paths into libraries.
18506 hardcode_into_libs=$hardcode_into_libs
18507
18508 # Compile-time system search path for libraries.
18509 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18510
18511 # Detected run-time system search path for libraries.
18512 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18513
18514 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18515 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18516
18517 # Whether dlopen is supported.
18518 dlopen_support=$enable_dlopen
18519
18520 # Whether dlopen of programs is supported.
18521 dlopen_self=$enable_dlopen_self
18522
18523 # Whether dlopen of statically linked programs is supported.
18524 dlopen_self_static=$enable_dlopen_self_static
18525
18526 # Commands to strip libraries.
18527 old_striplib=$lt_old_striplib
18528 striplib=$lt_striplib
18529
18530
18531 # The linker used to build libraries.
18532 LD=$lt_LD
18533
18534 # How to create reloadable object files.
18535 reload_flag=$lt_reload_flag
18536 reload_cmds=$lt_reload_cmds
18537
18538 # Commands used to build an old-style archive.
18539 old_archive_cmds=$lt_old_archive_cmds
18540
18541 # A language specific compiler.
18542 CC=$lt_compiler
18543
18544 # Is the compiler the GNU compiler?
18545 with_gcc=$GCC
18546
18547 # Compiler flag to turn off builtin functions.
18548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18549
18550 # Additional compiler flags for building library objects.
18551 pic_flag=$lt_lt_prog_compiler_pic
18552
18553 # How to pass a linker flag through the compiler.
18554 wl=$lt_lt_prog_compiler_wl
18555
18556 # Compiler flag to prevent dynamic linking.
18557 link_static_flag=$lt_lt_prog_compiler_static
18558
18559 # Does compiler simultaneously support -c and -o options?
18560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18561
18562 # Whether or not to add -lc for building shared libraries.
18563 build_libtool_need_lc=$archive_cmds_need_lc
18564
18565 # Whether or not to disallow shared libs when runtime libs are static.
18566 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18567
18568 # Compiler flag to allow reflexive dlopens.
18569 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18570
18571 # Compiler flag to generate shared objects directly from archives.
18572 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18573
18574 # Whether the compiler copes with passing no objects directly.
18575 compiler_needs_object=$lt_compiler_needs_object
18576
18577 # Create an old-style archive from a shared archive.
18578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18579
18580 # Create a temporary old-style archive to link instead of a shared archive.
18581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18582
18583 # Commands used to build a shared archive.
18584 archive_cmds=$lt_archive_cmds
18585 archive_expsym_cmds=$lt_archive_expsym_cmds
18586
18587 # Commands used to build a loadable module if different from building
18588 # a shared archive.
18589 module_cmds=$lt_module_cmds
18590 module_expsym_cmds=$lt_module_expsym_cmds
18591
18592 # Whether we are building with GNU ld or not.
18593 with_gnu_ld=$lt_with_gnu_ld
18594
18595 # Flag that allows shared libraries with undefined symbols to be built.
18596 allow_undefined_flag=$lt_allow_undefined_flag
18597
18598 # Flag that enforces no undefined symbols.
18599 no_undefined_flag=$lt_no_undefined_flag
18600
18601 # Flag to hardcode \$libdir into a binary during linking.
18602 # This must work even if \$libdir does not exist
18603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18604
18605 # Whether we need a single "-rpath" flag with a separated argument.
18606 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18607
18608 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18609 # DIR into the resulting binary.
18610 hardcode_direct=$hardcode_direct
18611
18612 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18613 # DIR into the resulting binary and the resulting library dependency is
18614 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18615 # library is relocated.
18616 hardcode_direct_absolute=$hardcode_direct_absolute
18617
18618 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18619 # into the resulting binary.
18620 hardcode_minus_L=$hardcode_minus_L
18621
18622 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18623 # into the resulting binary.
18624 hardcode_shlibpath_var=$hardcode_shlibpath_var
18625
18626 # Set to "yes" if building a shared library automatically hardcodes DIR
18627 # into the library and all subsequent libraries and executables linked
18628 # against it.
18629 hardcode_automatic=$hardcode_automatic
18630
18631 # Set to yes if linker adds runtime paths of dependent libraries
18632 # to runtime path list.
18633 inherit_rpath=$inherit_rpath
18634
18635 # Whether libtool must link a program against all its dependency libraries.
18636 link_all_deplibs=$link_all_deplibs
18637
18638 # Set to "yes" if exported symbols are required.
18639 always_export_symbols=$always_export_symbols
18640
18641 # The commands to list exported symbols.
18642 export_symbols_cmds=$lt_export_symbols_cmds
18643
18644 # Symbols that should not be listed in the preloaded symbols.
18645 exclude_expsyms=$lt_exclude_expsyms
18646
18647 # Symbols that must always be exported.
18648 include_expsyms=$lt_include_expsyms
18649
18650 # Commands necessary for linking programs (against libraries) with templates.
18651 prelink_cmds=$lt_prelink_cmds
18652
18653 # Commands necessary for finishing linking programs.
18654 postlink_cmds=$lt_postlink_cmds
18655
18656 # Specify filename containing input files.
18657 file_list_spec=$lt_file_list_spec
18658
18659 # How to hardcode a shared library path into an executable.
18660 hardcode_action=$hardcode_action
18661
18662 # The directories searched by this compiler when creating a shared library.
18663 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18664
18665 # Dependencies to place before and after the objects being linked to
18666 # create a shared library.
18667 predep_objects=$lt_predep_objects
18668 postdep_objects=$lt_postdep_objects
18669 predeps=$lt_predeps
18670 postdeps=$lt_postdeps
18671
18672 # The library search path used internally by the compiler when linking
18673 # a shared library.
18674 compiler_lib_search_path=$lt_compiler_lib_search_path
18675
18676 # ### END LIBTOOL CONFIG
18677
18678 _LT_EOF
18679
18680 cat <<'_LT_EOF' >> "$cfgfile"
18681
18682 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18683
18684 # func_munge_path_list VARIABLE PATH
18685 # -----------------------------------
18686 # VARIABLE is name of variable containing _space_ separated list of
18687 # directories to be munged by the contents of PATH, which is string
18688 # having a format:
18689 # "DIR[:DIR]:"
18690 # string "DIR[ DIR]" will be prepended to VARIABLE
18691 # ":DIR[:DIR]"
18692 # string "DIR[ DIR]" will be appended to VARIABLE
18693 # "DIRP[:DIRP]::[DIRA:]DIRA"
18694 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18695 # "DIRA[ DIRA]" will be appended to VARIABLE
18696 # "DIR[:DIR]"
18697 # VARIABLE will be replaced by "DIR[ DIR]"
18698 func_munge_path_list ()
18699 {
18700 case x$2 in
18701 x)
18702 ;;
18703 *:)
18704 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18705 ;;
18706 x:*)
18707 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18708 ;;
18709 *::*)
18710 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18711 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18712 ;;
18713 *)
18714 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18715 ;;
18716 esac
18717 }
18718
18719
18720 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18721 func_cc_basename ()
18722 {
18723 for cc_temp in $*""; do
18724 case $cc_temp in
18725 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18726 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18727 \-*) ;;
18728 *) break;;
18729 esac
18730 done
18731 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18732 }
18733
18734
18735 # ### END FUNCTIONS SHARED WITH CONFIGURE
18736
18737 _LT_EOF
18738
18739 case $host_os in
18740 aix3*)
18741 cat <<\_LT_EOF >> "$cfgfile"
18742 # AIX sometimes has problems with the GCC collect2 program. For some
18743 # reason, if we set the COLLECT_NAMES environment variable, the problems
18744 # vanish in a puff of smoke.
18745 if test set != "${COLLECT_NAMES+set}"; then
18746 COLLECT_NAMES=
18747 export COLLECT_NAMES
18748 fi
18749 _LT_EOF
18750 ;;
18751 esac
18752
18753
18754 ltmain=$ac_aux_dir/ltmain.sh
18755
18756
18757 # We use sed instead of cat because bash on DJGPP gets confused if
18758 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18759 # text mode, it properly converts lines to CR/LF. This bash problem
18760 # is reportedly fixed, but why not run on old versions too?
18761 sed '$q' "$ltmain" >> "$cfgfile" \
18762 || (rm -f "$cfgfile"; exit 1)
18763
18764 mv -f "$cfgfile" "$ofile" ||
18765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18766 chmod +x "$ofile"
18767
18768
18769 cat <<_LT_EOF >> "$ofile"
18770
18771 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18772
18773 # The linker used to build libraries.
18774 LD=$lt_LD_CXX
18775
18776 # How to create reloadable object files.
18777 reload_flag=$lt_reload_flag_CXX
18778 reload_cmds=$lt_reload_cmds_CXX
18779
18780 # Commands used to build an old-style archive.
18781 old_archive_cmds=$lt_old_archive_cmds_CXX
18782
18783 # A language specific compiler.
18784 CC=$lt_compiler_CXX
18785
18786 # Is the compiler the GNU compiler?
18787 with_gcc=$GCC_CXX
18788
18789 # Compiler flag to turn off builtin functions.
18790 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18791
18792 # Additional compiler flags for building library objects.
18793 pic_flag=$lt_lt_prog_compiler_pic_CXX
18794
18795 # How to pass a linker flag through the compiler.
18796 wl=$lt_lt_prog_compiler_wl_CXX
18797
18798 # Compiler flag to prevent dynamic linking.
18799 link_static_flag=$lt_lt_prog_compiler_static_CXX
18800
18801 # Does compiler simultaneously support -c and -o options?
18802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18803
18804 # Whether or not to add -lc for building shared libraries.
18805 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18806
18807 # Whether or not to disallow shared libs when runtime libs are static.
18808 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18809
18810 # Compiler flag to allow reflexive dlopens.
18811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18812
18813 # Compiler flag to generate shared objects directly from archives.
18814 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18815
18816 # Whether the compiler copes with passing no objects directly.
18817 compiler_needs_object=$lt_compiler_needs_object_CXX
18818
18819 # Create an old-style archive from a shared archive.
18820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18821
18822 # Create a temporary old-style archive to link instead of a shared archive.
18823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18824
18825 # Commands used to build a shared archive.
18826 archive_cmds=$lt_archive_cmds_CXX
18827 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18828
18829 # Commands used to build a loadable module if different from building
18830 # a shared archive.
18831 module_cmds=$lt_module_cmds_CXX
18832 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18833
18834 # Whether we are building with GNU ld or not.
18835 with_gnu_ld=$lt_with_gnu_ld_CXX
18836
18837 # Flag that allows shared libraries with undefined symbols to be built.
18838 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18839
18840 # Flag that enforces no undefined symbols.
18841 no_undefined_flag=$lt_no_undefined_flag_CXX
18842
18843 # Flag to hardcode \$libdir into a binary during linking.
18844 # This must work even if \$libdir does not exist
18845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18846
18847 # Whether we need a single "-rpath" flag with a separated argument.
18848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18849
18850 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18851 # DIR into the resulting binary.
18852 hardcode_direct=$hardcode_direct_CXX
18853
18854 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18855 # DIR into the resulting binary and the resulting library dependency is
18856 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18857 # library is relocated.
18858 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18859
18860 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18861 # into the resulting binary.
18862 hardcode_minus_L=$hardcode_minus_L_CXX
18863
18864 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18865 # into the resulting binary.
18866 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18867
18868 # Set to "yes" if building a shared library automatically hardcodes DIR
18869 # into the library and all subsequent libraries and executables linked
18870 # against it.
18871 hardcode_automatic=$hardcode_automatic_CXX
18872
18873 # Set to yes if linker adds runtime paths of dependent libraries
18874 # to runtime path list.
18875 inherit_rpath=$inherit_rpath_CXX
18876
18877 # Whether libtool must link a program against all its dependency libraries.
18878 link_all_deplibs=$link_all_deplibs_CXX
18879
18880 # Set to "yes" if exported symbols are required.
18881 always_export_symbols=$always_export_symbols_CXX
18882
18883 # The commands to list exported symbols.
18884 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18885
18886 # Symbols that should not be listed in the preloaded symbols.
18887 exclude_expsyms=$lt_exclude_expsyms_CXX
18888
18889 # Symbols that must always be exported.
18890 include_expsyms=$lt_include_expsyms_CXX
18891
18892 # Commands necessary for linking programs (against libraries) with templates.
18893 prelink_cmds=$lt_prelink_cmds_CXX
18894
18895 # Commands necessary for finishing linking programs.
18896 postlink_cmds=$lt_postlink_cmds_CXX
18897
18898 # Specify filename containing input files.
18899 file_list_spec=$lt_file_list_spec_CXX
18900
18901 # How to hardcode a shared library path into an executable.
18902 hardcode_action=$hardcode_action_CXX
18903
18904 # The directories searched by this compiler when creating a shared library.
18905 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18906
18907 # Dependencies to place before and after the objects being linked to
18908 # create a shared library.
18909 predep_objects=$lt_predep_objects_CXX
18910 postdep_objects=$lt_postdep_objects_CXX
18911 predeps=$lt_predeps_CXX
18912 postdeps=$lt_postdeps_CXX
18913
18914 # The library search path used internally by the compiler when linking
18915 # a shared library.
18916 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18917
18918 # ### END LIBTOOL TAG CONFIG: CXX
18919 _LT_EOF
18920
18921 ;;
18922
18923 esac
18924 done # for ac_tag
18925
18926
18927 as_fn_exit 0
18928 _ACEOF
18929 ac_clean_files=$ac_clean_files_save
18930
18931 test $ac_write_fail = 0 ||
18932 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18933
18934
18935 # configure is writing to config.log, and then calls config.status.
18936 # config.status does its own redirection, appending to config.log.
18937 # Unfortunately, on DOS this fails, as config.log is still kept open
18938 # by configure, so config.status won't be able to write to it; its
18939 # output is simply discarded. So we exec the FD to /dev/null,
18940 # effectively closing config.log, so it can be properly (re)opened and
18941 # appended to by config.status. When coming back to configure, we
18942 # need to make the FD available again.
18943 if test "$no_create" != yes; then
18944 ac_cs_success=:
18945 ac_config_status_args=
18946 test "$silent" = yes &&
18947 ac_config_status_args="$ac_config_status_args --quiet"
18948 exec 5>/dev/null
18949 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18950 exec 5>>config.log
18951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18952 # would make configure fail if this is the last instruction.
18953 $ac_cs_success || as_fn_exit 1
18954 fi
18955 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18957 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18958 fi
18959