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 music 1.2.1.
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='music'
589 PACKAGE_TARNAME='music'
590 PACKAGE_VERSION='1.2.1'
591 PACKAGE_STRING='music 1.2.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 DARWIN_FALSE
636 DARWIN_TRUE
637 LAUNCHSTYLE_SET_FALSE
638 LAUNCHSTYLE_SET_TRUE
639 LAUNCHSTYLE
640 PKGEXTRABINDIR
641 PKGDATADIR
642 LIBDIR
643 BINDIR
644 EXTRAS
645 EXAMPLESDIR
646 TESTDIR
647 OPTIONAL_UTILS
648 MPI_UTILS
649 MUSIC_ANYSOURCE
650 MUSIC_ISENDWAITALL
651 MUSIC_USE_MPI
652 MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER
653 MUSIC_HAVE_LONG_LONG
654 MUSIC_HAVE_SIZE_T
655 MPI_LDFLAGS
656 MPI_CFLAGS
657 MPI_CXXFLAGS
658 PYBUFFER_CXXFLAGS
659 PYBUFFER_CPPFLAGS
660 PYMUSIC_CXXFLAGS
661 PYMUSIC_CPPFLAGS
662 PYTHON_EXECDIR
663 ROS_SUBDIR
664 PYMUSIC_SUBDIR
665 MUSICCONFIGDIR
666 HAVE_PYTHON
667 DEB_PACKAGE_FALSE
668 DEB_PACKAGE_TRUE
669 HAVE_PYTHON_FALSE
670 HAVE_PYTHON_TRUE
671 pkgpyexecdir
672 pyexecdir
673 pkgpythondir
674 pythondir
675 PYTHON_EXEC_PREFIX
676 PYTHON_PREFIX
677 PYTHON_PLATFORM
678 PYTHON_VERSION
679 PYTHON
680 COND_USE_MPI_FALSE
681 COND_USE_MPI_TRUE
682 CXXCPP
683 CPP
684 LT_SYS_LIBRARY_PATH
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 MANIFEST_TOOL
691 RANLIB
692 ac_ct_AR
693 AR
694 DLLTOOL
695 OBJDUMP
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 LIBTOOL
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 ac_ct_CC
718 CFLAGS
719 CC
720 am__fastdepCXX_FALSE
721 am__fastdepCXX_TRUE
722 CXXDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CXX
732 CPPFLAGS
733 LDFLAGS
734 CXXFLAGS
735 CXX
736 MAINT
737 MAINTAINER_MODE_FALSE
738 MAINTAINER_MODE_TRUE
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 CSCOPE
744 ETAGS
745 CTAGS
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 runstatedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL
808 am__quote'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_silent_rules
813 enable_maintainer_mode
814 enable_dependency_tracking
815 enable_shared
816 enable_static
817 with_pic
818 enable_fast_install
819 with_aix_soname
820 with_gnu_ld
821 with_sysroot
822 enable_libtool_lock
823 enable_mpi
824 enable_isend
825 enable_anysource
826 with_python
827 with_python_sys_prefix
828 with_python_prefix
829 with_python_exec_prefix
830 enable_deb
831 with_ros
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CXX
837 CXXFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CCC
842 CC
843 CFLAGS
844 LT_SYS_LIBRARY_PATH
845 CPP
846 CXXCPP
847 PYTHON'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 runstatedir='${localstatedir}/run'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
898
899 ac_prev=
900 ac_dashdash=
901 for ac_option
902 do
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
908 fi
909
910 case $ac_option in
911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *=) ac_optarg= ;;
913 *) ac_optarg=yes ;;
914 esac
915
916 # Accept the important Cygnus configure options, so we can diagnose typos.
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures music 1.2.1 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/music]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of music 1.2.1:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --disable-mpi disable mpi support
1492 --disable-isend disable isend
1493 --disable-anysource disable any source receive
1494 --enable-deb use deb package layout for install
1495
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --with-aix-soname=aix|svr4|both
1502 shared library versioning (aka "SONAME") variant to
1503 provide on AIX, [default=aix].
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1506 compiler's sysroot if not specified).
1507 --without-python ignore the presence of Python and disable PyMUSIC
1508 --with-python-sys-prefix
1509 use Python's sys.prefix and sys.exec_prefix values
1510 --with-python_prefix override the default PYTHON_PREFIX
1511 --with-python_exec_prefix
1512 override the default PYTHON_EXEC_PREFIX
1513
1514
1515 Some influential environment variables:
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LT_SYS_LIBRARY_PATH
1526 User-defined run-time library search path.
1527 CPP C preprocessor
1528 CXXCPP C++ preprocessor
1529 PYTHON the Python interpreter
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 Report bugs to the package provider.
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 music configure 1.2.1
1598 generated by GNU Autoconf 2.69
1599
1600 Copyright (C) 2012 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1605 fi
1606
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1610
1611 # ac_fn_cxx_try_compile LINENO
1612 # ----------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_cxx_try_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_cxx_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_cxx_try_compile
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_compile
1686
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 test -x conftest$ac_exeext
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1
1722 fi
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_link
1732
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 eval "$3=yes"
1752 else
1753 eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_cpp ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } > conftest.i && {
1786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=1
1795 fi
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_cpp
1800
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1805 ac_fn_c_try_run ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1826 ac_status=$?
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=$ac_status
1836 fi
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_run
1842
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1858 #define $2 innocuous_$2
1859
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $2 (); below.
1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863 <limits.h> exists even on freestanding compilers. */
1864
1865 #ifdef __STDC__
1866 # include <limits.h>
1867 #else
1868 # include <assert.h>
1869 #endif
1870
1871 #undef $2
1872
1873 /* Override any GCC internal prototype to avoid an error.
1874 Use char because int might match the return type of a GCC
1875 builtin and then its argument prototype would still apply. */
1876 #ifdef __cplusplus
1877 extern "C"
1878 #endif
1879 char $2 ();
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined __stub_$2 || defined __stub___$2
1884 choke me
1885 #endif
1886
1887 int
1888 main ()
1889 {
1890 return $2 ();
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_link "$LINENO"; then :
1896 eval "$3=yes"
1897 else
1898 eval "$3=no"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext \
1901 conftest$ac_exeext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_func
1909
1910 # ac_fn_cxx_try_cpp LINENO
1911 # ------------------------
1912 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_cxx_try_cpp ()
1914 {
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { { ac_try="$ac_cpp conftest.$ac_ext"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } > conftest.i && {
1932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1933 test ! -s conftest.err
1934 }; then :
1935 ac_retval=0
1936 else
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 ac_retval=1
1941 fi
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1944
1945 } # ac_fn_cxx_try_cpp
1946
1947 # ac_fn_cxx_try_link LINENO
1948 # -------------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded.
1950 ac_fn_cxx_try_link ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 rm -f conftest.$ac_objext conftest$ac_exeext
1954 if { { ac_try="$ac_link"
1955 case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>conftest.err
1962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1967 fi
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
1970 test -z "$ac_cxx_werror_flag" ||
1971 test ! -s conftest.err
1972 } && test -s conftest$ac_exeext && {
1973 test "$cross_compiling" = yes ||
1974 test -x conftest$ac_exeext
1975 }; then :
1976 ac_retval=0
1977 else
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 ac_retval=1
1982 fi
1983 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1984 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1985 # interfere with the next link command; also delete a directory that is
1986 # left behind by Apple's compiler. We do this before executing the actions.
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1990
1991 } # ac_fn_cxx_try_link
1992
1993 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1994 # -------------------------------------------
1995 # Tests whether TYPE exists after having included INCLUDES, setting cache
1996 # variable VAR accordingly.
1997 ac_fn_c_check_type ()
1998 {
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 eval "$3=no"
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 int
2010 main ()
2011 {
2012 if (sizeof ($2))
2013 return 0;
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 $4
2022 int
2023 main ()
2024 {
2025 if (sizeof (($2)))
2026 return 0;
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032
2033 else
2034 eval "$3=yes"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045 } # ac_fn_c_check_type
2046
2047 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2048 # -------------------------------------------------------
2049 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2050 # the include files in INCLUDES and setting the cache variable VAR
2051 # accordingly.
2052 ac_fn_c_check_header_mongrel ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if eval \${$3+:} false; then :
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2060 fi
2061 eval ac_res=\$$3
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 else
2065 # Is the header compilable?
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2067 $as_echo_n "checking $2 usability... " >&6; }
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 $4
2071 #include <$2>
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 ac_header_compiler=yes
2075 else
2076 ac_header_compiler=no
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2080 $as_echo "$ac_header_compiler" >&6; }
2081
2082 # Is the header present?
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2084 $as_echo_n "checking $2 presence... " >&6; }
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_c_try_cpp "$LINENO"; then :
2090 ac_header_preproc=yes
2091 else
2092 ac_header_preproc=no
2093 fi
2094 rm -f conftest.err conftest.i conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2096 $as_echo "$ac_header_preproc" >&6; }
2097
2098 # So? What about this header?
2099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2100 yes:no: )
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2102 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 ;;
2106 no:yes:* )
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2108 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2110 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2112 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2114 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2116 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117 ;;
2118 esac
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if eval \${$3+:} false; then :
2122 $as_echo_n "(cached) " >&6
2123 else
2124 eval "$3=\$ac_header_compiler"
2125 fi
2126 eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 fi
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_header_mongrel
2133
2134 # ac_fn_cxx_check_func LINENO FUNC VAR
2135 # ------------------------------------
2136 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2137 ac_fn_cxx_check_func ()
2138 {
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141 $as_echo_n "checking for $2... " >&6; }
2142 if eval \${$3+:} false; then :
2143 $as_echo_n "(cached) " >&6
2144 else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2149 #define $2 innocuous_$2
2150
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char $2 (); below.
2153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2154 <limits.h> exists even on freestanding compilers. */
2155
2156 #ifdef __STDC__
2157 # include <limits.h>
2158 #else
2159 # include <assert.h>
2160 #endif
2161
2162 #undef $2
2163
2164 /* Override any GCC internal prototype to avoid an error.
2165 Use char because int might match the return type of a GCC
2166 builtin and then its argument prototype would still apply. */
2167 #ifdef __cplusplus
2168 extern "C"
2169 #endif
2170 char $2 ();
2171 /* The GNU C library defines this for functions which it implements
2172 to always fail with ENOSYS. Some functions are actually named
2173 something starting with __ and the normal name is an alias. */
2174 #if defined __stub_$2 || defined __stub___$2
2175 choke me
2176 #endif
2177
2178 int
2179 main ()
2180 {
2181 return $2 ();
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_cxx_try_link "$LINENO"; then :
2187 eval "$3=yes"
2188 else
2189 eval "$3=no"
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext \
2192 conftest$ac_exeext conftest.$ac_ext
2193 fi
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198
2199 } # ac_fn_cxx_check_func
2200 cat >config.log <<_ACEOF
2201 This file contains any messages produced by compilers while
2202 running configure, to aid debugging if configure makes a mistake.
2203
2204 It was created by music $as_me 1.2.1, which was
2205 generated by GNU Autoconf 2.69. Invocation command line was
2206
2207 $ $0 $@
2208
2209 _ACEOF
2210 exec 5>>config.log
2211 {
2212 cat <<_ASUNAME
2213 ## --------- ##
2214 ## Platform. ##
2215 ## --------- ##
2216
2217 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2218 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2219 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2220 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2221 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2222
2223 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2224 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2225
2226 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2227 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2228 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2229 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2230 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2231 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2232 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2233
2234 _ASUNAME
2235
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 $as_echo "PATH: $as_dir"
2242 done
2243 IFS=$as_save_IFS
2244
2245 } >&5
2246
2247 cat >&5 <<_ACEOF
2248
2249
2250 ## ----------- ##
2251 ## Core tests. ##
2252 ## ----------- ##
2253
2254 _ACEOF
2255
2256
2257 # Keep a trace of the command line.
2258 # Strip out --no-create and --no-recursion so they do not pile up.
2259 # Strip out --silent because we don't want to record it for future runs.
2260 # Also quote any args containing shell meta-characters.
2261 # Make two passes to allow for proper duplicate-argument suppression.
2262 ac_configure_args=
2263 ac_configure_args0=
2264 ac_configure_args1=
2265 ac_must_keep_next=false
2266 for ac_pass in 1 2
2267 do
2268 for ac_arg
2269 do
2270 case $ac_arg in
2271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2273 | -silent | --silent | --silen | --sile | --sil)
2274 continue ;;
2275 *\'*)
2276 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 esac
2278 case $ac_pass in
2279 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2280 2)
2281 as_fn_append ac_configure_args1 " '$ac_arg'"
2282 if test $ac_must_keep_next = true; then
2283 ac_must_keep_next=false # Got value, back to normal.
2284 else
2285 case $ac_arg in
2286 *=* | --config-cache | -C | -disable-* | --disable-* \
2287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2289 | -with-* | --with-* | -without-* | --without-* | --x)
2290 case "$ac_configure_args0 " in
2291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2292 esac
2293 ;;
2294 -* ) ac_must_keep_next=true ;;
2295 esac
2296 fi
2297 as_fn_append ac_configure_args " '$ac_arg'"
2298 ;;
2299 esac
2300 done
2301 done
2302 { ac_configure_args0=; unset ac_configure_args0;}
2303 { ac_configure_args1=; unset ac_configure_args1;}
2304
2305 # When interrupted or exit'd, cleanup temporary files, and complete
2306 # config.log. We remove comments because anyway the quotes in there
2307 # would cause problems or look ugly.
2308 # WARNING: Use '\'' to represent an apostrophe within the trap.
2309 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2310 trap 'exit_status=$?
2311 # Save into config.log some information that might help in debugging.
2312 {
2313 echo
2314
2315 $as_echo "## ---------------- ##
2316 ## Cache variables. ##
2317 ## ---------------- ##"
2318 echo
2319 # The following way of writing the cache mishandles newlines in values,
2320 (
2321 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in #(
2324 *${as_nl}*)
2325 case $ac_var in #(
2326 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2327 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2328 esac
2329 case $ac_var in #(
2330 _ | IFS | as_nl) ;; #(
2331 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2332 *) { eval $ac_var=; unset $ac_var;} ;;
2333 esac ;;
2334 esac
2335 done
2336 (set) 2>&1 |
2337 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2338 *${as_nl}ac_space=\ *)
2339 sed -n \
2340 "s/'\''/'\''\\\\'\'''\''/g;
2341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2342 ;; #(
2343 *)
2344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 ;;
2346 esac |
2347 sort
2348 )
2349 echo
2350
2351 $as_echo "## ----------------- ##
2352 ## Output variables. ##
2353 ## ----------------- ##"
2354 echo
2355 for ac_var in $ac_subst_vars
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364
2365 if test -n "$ac_subst_files"; then
2366 $as_echo "## ------------------- ##
2367 ## File substitutions. ##
2368 ## ------------------- ##"
2369 echo
2370 for ac_var in $ac_subst_files
2371 do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in
2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375 esac
2376 $as_echo "$ac_var='\''$ac_val'\''"
2377 done | sort
2378 echo
2379 fi
2380
2381 if test -s confdefs.h; then
2382 $as_echo "## ----------- ##
2383 ## confdefs.h. ##
2384 ## ----------- ##"
2385 echo
2386 cat confdefs.h
2387 echo
2388 fi
2389 test "$ac_signal" != 0 &&
2390 $as_echo "$as_me: caught signal $ac_signal"
2391 $as_echo "$as_me: exit $exit_status"
2392 } >&5
2393 rm -f core *.core core.conftest.* &&
2394 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2395 exit $exit_status
2396 ' 0
2397 for ac_signal in 1 2 13 15; do
2398 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2399 done
2400 ac_signal=0
2401
2402 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2403 rm -f -r conftest* confdefs.h
2404
2405 $as_echo "/* confdefs.h */" > confdefs.h
2406
2407 # Predefined preprocessor variables.
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_NAME "$PACKAGE_NAME"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_STRING "$PACKAGE_STRING"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_URL "$PACKAGE_URL"
2431 _ACEOF
2432
2433
2434 # Let the site file select an alternate cache file if it wants to.
2435 # Prefer an explicitly selected file to automatically selected ones.
2436 ac_site_file1=NONE
2437 ac_site_file2=NONE
2438 if test -n "$CONFIG_SITE"; then
2439 # We do not want a PATH search for config.site.
2440 case $CONFIG_SITE in #((
2441 -*) ac_site_file1=./$CONFIG_SITE;;
2442 */*) ac_site_file1=$CONFIG_SITE;;
2443 *) ac_site_file1=./$CONFIG_SITE;;
2444 esac
2445 elif test "x$prefix" != xNONE; then
2446 ac_site_file1=$prefix/share/config.site
2447 ac_site_file2=$prefix/etc/config.site
2448 else
2449 ac_site_file1=$ac_default_prefix/share/config.site
2450 ac_site_file2=$ac_default_prefix/etc/config.site
2451 fi
2452 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2453 do
2454 test "x$ac_site_file" = xNONE && continue
2455 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2457 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2458 sed 's/^/| /' "$ac_site_file" >&5
2459 . "$ac_site_file" \
2460 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2462 as_fn_error $? "failed to load site script $ac_site_file
2463 See \`config.log' for more details" "$LINENO" 5; }
2464 fi
2465 done
2466
2467 if test -r "$cache_file"; then
2468 # Some versions of bash will fail to source /dev/null (special files
2469 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2470 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2472 $as_echo "$as_me: loading cache $cache_file" >&6;}
2473 case $cache_file in
2474 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2475 *) . "./$cache_file";;
2476 esac
2477 fi
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2480 $as_echo "$as_me: creating cache $cache_file" >&6;}
2481 >$cache_file
2482 fi
2483
2484 # Check that the precious variables saved in the cache have kept the same
2485 # value.
2486 ac_cache_corrupted=false
2487 for ac_var in $ac_precious_vars; do
2488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2489 eval ac_new_set=\$ac_env_${ac_var}_set
2490 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2491 eval ac_new_val=\$ac_env_${ac_var}_value
2492 case $ac_old_set,$ac_new_set in
2493 set,)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2495 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,set)
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2499 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2500 ac_cache_corrupted=: ;;
2501 ,);;
2502 *)
2503 if test "x$ac_old_val" != "x$ac_new_val"; then
2504 # differences in whitespace do not lead to failure.
2505 ac_old_val_w=`echo x $ac_old_val`
2506 ac_new_val_w=`echo x $ac_new_val`
2507 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2509 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2510 ac_cache_corrupted=:
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2513 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2514 eval $ac_var=\$ac_old_val
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2517 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2519 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2520 fi;;
2521 esac
2522 # Pass precious variables to config.status.
2523 if test "$ac_new_set" = set; then
2524 case $ac_new_val in
2525 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2526 *) ac_arg=$ac_var=$ac_new_val ;;
2527 esac
2528 case " $ac_configure_args " in
2529 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2530 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2531 esac
2532 fi
2533 done
2534 if $ac_cache_corrupted; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2538 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2539 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2540 fi
2541 ## -------------------- ##
2542 ## Main body of script. ##
2543 ## -------------------- ##
2544
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550
2551
2552 am__api_version='1.16'
2553
2554 ac_aux_dir=
2555 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2556 if test -f "$ac_dir/install-sh"; then
2557 ac_aux_dir=$ac_dir
2558 ac_install_sh="$ac_aux_dir/install-sh -c"
2559 break
2560 elif test -f "$ac_dir/install.sh"; then
2561 ac_aux_dir=$ac_dir
2562 ac_install_sh="$ac_aux_dir/install.sh -c"
2563 break
2564 elif test -f "$ac_dir/shtool"; then
2565 ac_aux_dir=$ac_dir
2566 ac_install_sh="$ac_aux_dir/shtool install -c"
2567 break
2568 fi
2569 done
2570 if test -z "$ac_aux_dir"; then
2571 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2572 fi
2573
2574 # These three variables are undocumented and unsupported,
2575 # and are intended to be withdrawn in a future Autoconf release.
2576 # They can cause serious problems if a builder's source tree is in a directory
2577 # whose full name contains unusual characters.
2578 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2579 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2580 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2581
2582
2583 # Find a good install program. We prefer a C program (faster),
2584 # so one script is as good as another. But avoid the broken or
2585 # incompatible versions:
2586 # SysV /etc/install, /usr/sbin/install
2587 # SunOS /usr/etc/install
2588 # IRIX /sbin/install
2589 # AIX /bin/install
2590 # AmigaOS /C/install, which installs bootblocks on floppy discs
2591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2594 # OS/2's system install, which has a completely different semantic
2595 # ./install, which can be erroneously created by make from ./install.sh.
2596 # Reject install programs that cannot install multiple files.
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2598 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2599 if test -z "$INSTALL"; then
2600 if ${ac_cv_path_install+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 # Account for people who put trailing slashes in PATH elements.
2609 case $as_dir/ in #((
2610 ./ | .// | /[cC]/* | \
2611 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2612 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2613 /usr/ucb/* ) ;;
2614 *)
2615 # OSF1 and SCO ODT 3.0 have their own names for install.
2616 # Don't use installbsd from OSF since it installs stuff as root
2617 # by default.
2618 for ac_prog in ginstall scoinst install; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2621 if test $ac_prog = install &&
2622 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2623 # AIX install. It has an incompatible calling convention.
2624 :
2625 elif test $ac_prog = install &&
2626 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2627 # program-specific install script used by HP pwplus--don't use.
2628 :
2629 else
2630 rm -rf conftest.one conftest.two conftest.dir
2631 echo one > conftest.one
2632 echo two > conftest.two
2633 mkdir conftest.dir
2634 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2635 test -s conftest.one && test -s conftest.two &&
2636 test -s conftest.dir/conftest.one &&
2637 test -s conftest.dir/conftest.two
2638 then
2639 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2640 break 3
2641 fi
2642 fi
2643 fi
2644 done
2645 done
2646 ;;
2647 esac
2648
2649 done
2650 IFS=$as_save_IFS
2651
2652 rm -rf conftest.one conftest.two conftest.dir
2653
2654 fi
2655 if test "${ac_cv_path_install+set}" = set; then
2656 INSTALL=$ac_cv_path_install
2657 else
2658 # As a last resort, use the slow shell script. Don't cache a
2659 # value for INSTALL within a source directory, because that will
2660 # break other packages using the cache if that directory is
2661 # removed, or if the value is a relative name.
2662 INSTALL=$ac_install_sh
2663 fi
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2666 $as_echo "$INSTALL" >&6; }
2667
2668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2669 # It thinks the first close brace ends the variable substitution.
2670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2671
2672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2673
2674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2677 $as_echo_n "checking whether build environment is sane... " >&6; }
2678 # Reject unsafe characters in $srcdir or the absolute working directory
2679 # name. Accept space and tab only in the latter.
2680 am_lf='
2681 '
2682 case `pwd` in
2683 *[\\\"\#\$\&\'\`$am_lf]*)
2684 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2685 esac
2686 case $srcdir in
2687 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2688 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2689 esac
2690
2691 # Do 'set' in a subshell so we don't clobber the current shell's
2692 # arguments. Must try -L first in case configure is actually a
2693 # symlink; some systems play weird games with the mod time of symlinks
2694 # (eg FreeBSD returns the mod time of the symlink's containing
2695 # directory).
2696 if (
2697 am_has_slept=no
2698 for am_try in 1 2; do
2699 echo "timestamp, slept: $am_has_slept" > conftest.file
2700 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2701 if test "$*" = "X"; then
2702 # -L didn't work.
2703 set X `ls -t "$srcdir/configure" conftest.file`
2704 fi
2705 if test "$*" != "X $srcdir/configure conftest.file" \
2706 && test "$*" != "X conftest.file $srcdir/configure"; then
2707
2708 # If neither matched, then we have a broken ls. This can happen
2709 # if, for instance, CONFIG_SHELL is bash and it inherits a
2710 # broken ls alias from the environment. This has actually
2711 # happened. Such a system could not be considered "sane".
2712 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2713 alias in your environment" "$LINENO" 5
2714 fi
2715 if test "$2" = conftest.file || test $am_try -eq 2; then
2716 break
2717 fi
2718 # Just in case.
2719 sleep 1
2720 am_has_slept=yes
2721 done
2722 test "$2" = conftest.file
2723 )
2724 then
2725 # Ok.
2726 :
2727 else
2728 as_fn_error $? "newly created file is older than distributed files!
2729 Check your system clock" "$LINENO" 5
2730 fi
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 $as_echo "yes" >&6; }
2733 # If we didn't sleep, we still need to ensure time stamps of config.status and
2734 # generated files are strictly newer.
2735 am_sleep_pid=
2736 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2737 ( sleep 1 ) &
2738 am_sleep_pid=$!
2739 fi
2740
2741 rm -f conftest.file
2742
2743 test "$program_prefix" != NONE &&
2744 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2745 # Use a double $ so make ignores it.
2746 test "$program_suffix" != NONE &&
2747 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2748 # Double any \ or $.
2749 # By default was `s,x,x', remove it if useless.
2750 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2751 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2752
2753 # Expand $ac_aux_dir to an absolute path.
2754 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2755
2756 if test x"${MISSING+set}" != xset; then
2757 MISSING="\${SHELL} '$am_aux_dir/missing'"
2758 fi
2759 # Use eval to expand $SHELL
2760 if eval "$MISSING --is-lightweight"; then
2761 am_missing_run="$MISSING "
2762 else
2763 am_missing_run=
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2765 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2766 fi
2767
2768 if test x"${install_sh+set}" != xset; then
2769 case $am_aux_dir in
2770 *\ * | *\ *)
2771 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2772 *)
2773 install_sh="\${SHELL} $am_aux_dir/install-sh"
2774 esac
2775 fi
2776
2777 # Installed binaries are usually stripped using 'strip' when the user
2778 # run "make install-strip". However 'strip' might not be the right
2779 # tool to use in cross-compilation environments, therefore Automake
2780 # will honor the 'STRIP' environment variable to overrule this program.
2781 if test "$cross_compiling" != no; then
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}strip; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_STRIP+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$STRIP"; then
2791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 STRIP=$ac_cv_prog_STRIP
2811 if test -n "$STRIP"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2813 $as_echo "$STRIP" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819
2820 fi
2821 if test -z "$ac_cv_prog_STRIP"; then
2822 ac_ct_STRIP=$STRIP
2823 # Extract the first word of "strip", so it can be a program name with args.
2824 set dummy strip; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$ac_ct_STRIP"; then
2831 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_STRIP="strip"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2851 if test -n "$ac_ct_STRIP"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2853 $as_echo "$ac_ct_STRIP" >&6; }
2854 else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2857 fi
2858
2859 if test "x$ac_ct_STRIP" = x; then
2860 STRIP=":"
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2867 esac
2868 STRIP=$ac_ct_STRIP
2869 fi
2870 else
2871 STRIP="$ac_cv_prog_STRIP"
2872 fi
2873
2874 fi
2875 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2876
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2878 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2879 if test -z "$MKDIR_P"; then
2880 if ${ac_cv_path_mkdir+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_prog in mkdir gmkdir; do
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2891 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2892 'mkdir (GNU coreutils) '* | \
2893 'mkdir (coreutils) '* | \
2894 'mkdir (fileutils) '4.1*)
2895 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2896 break 3;;
2897 esac
2898 done
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904
2905 test -d ./--version && rmdir ./--version
2906 if test "${ac_cv_path_mkdir+set}" = set; then
2907 MKDIR_P="$ac_cv_path_mkdir -p"
2908 else
2909 # As a last resort, use the slow shell script. Don't cache a
2910 # value for MKDIR_P within a source directory, because that will
2911 # break other packages using the cache if that directory is
2912 # removed, or if the value is a relative name.
2913 MKDIR_P="$ac_install_sh -d"
2914 fi
2915 fi
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2917 $as_echo "$MKDIR_P" >&6; }
2918
2919 for ac_prog in gawk mawk nawk awk
2920 do
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_AWK+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$AWK"; then
2929 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_AWK="$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942 done
2943 done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 AWK=$ac_cv_prog_AWK
2949 if test -n "$AWK"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2951 $as_echo "$AWK" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 test -n "$AWK" && break
2959 done
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2962 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2963 set x ${MAKE-make}
2964 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2965 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 cat >conftest.make <<\_ACEOF
2969 SHELL = /bin/sh
2970 all:
2971 @echo '@@@%%%=$(MAKE)=@@@%%%'
2972 _ACEOF
2973 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2974 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2975 *@@@%%%=?*=@@@%%%*)
2976 eval ac_cv_prog_make_${ac_make}_set=yes;;
2977 *)
2978 eval ac_cv_prog_make_${ac_make}_set=no;;
2979 esac
2980 rm -f conftest.make
2981 fi
2982 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2984 $as_echo "yes" >&6; }
2985 SET_MAKE=
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 SET_MAKE="MAKE=${MAKE-make}"
2990 fi
2991
2992 rm -rf .tst 2>/dev/null
2993 mkdir .tst 2>/dev/null
2994 if test -d .tst; then
2995 am__leading_dot=.
2996 else
2997 am__leading_dot=_
2998 fi
2999 rmdir .tst 2>/dev/null
3000
3001 # Check whether --enable-silent-rules was given.
3002 if test "${enable_silent_rules+set}" = set; then :
3003 enableval=$enable_silent_rules;
3004 fi
3005
3006 case $enable_silent_rules in # (((
3007 yes) AM_DEFAULT_VERBOSITY=0;;
3008 no) AM_DEFAULT_VERBOSITY=1;;
3009 *) AM_DEFAULT_VERBOSITY=1;;
3010 esac
3011 am_make=${MAKE-make}
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3013 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3014 if ${am_cv_make_support_nested_variables+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if $as_echo 'TRUE=$(BAR$(V))
3018 BAR0=false
3019 BAR1=true
3020 V=1
3021 am__doit:
3022 @$(TRUE)
3023 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3024 am_cv_make_support_nested_variables=yes
3025 else
3026 am_cv_make_support_nested_variables=no
3027 fi
3028 fi
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3030 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3031 if test $am_cv_make_support_nested_variables = yes; then
3032 AM_V='$(V)'
3033 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3034 else
3035 AM_V=$AM_DEFAULT_VERBOSITY
3036 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3037 fi
3038 AM_BACKSLASH='\'
3039
3040 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3042 # is not polluted with repeated "-I."
3043 am__isrc=' -I$(srcdir)'
3044 # test to see if srcdir already configured
3045 if test -f $srcdir/config.status; then
3046 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3047 fi
3048 fi
3049
3050 # test whether we have cygpath
3051 if test -z "$CYGPATH_W"; then
3052 if (cygpath --version) >/dev/null 2>/dev/null; then
3053 CYGPATH_W='cygpath -w'
3054 else
3055 CYGPATH_W=echo
3056 fi
3057 fi
3058
3059
3060 # Define the identity of the package.
3061 PACKAGE='music'
3062 VERSION='1.2.1'
3063
3064
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE "$PACKAGE"
3067 _ACEOF
3068
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define VERSION "$VERSION"
3072 _ACEOF
3073
3074 # Some tools Automake needs.
3075
3076 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3077
3078
3079 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3080
3081
3082 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3083
3084
3085 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3086
3087
3088 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3089
3090 # For better backward compatibility. To be removed once Automake 1.9.x
3091 # dies out for good. For more background, see:
3092 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3093 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3094 mkdir_p='$(MKDIR_P)'
3095
3096 # We need awk for the "check" target (and possibly the TAP driver). The
3097 # system "awk" is bad on some platforms.
3098 # Always define AMTAR for backward compatibility. Yes, it's still used
3099 # in the wild :-( We should find a proper way to deprecate it ...
3100 AMTAR='$${TAR-tar}'
3101
3102
3103 # We'll loop over all known methods to create a tar archive until one works.
3104 _am_tools='gnutar pax cpio none'
3105
3106 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3107
3108
3109
3110
3111
3112 # Variables for tags utilities; see am/tags.am
3113 if test -z "$CTAGS"; then
3114 CTAGS=ctags
3115 fi
3116
3117 if test -z "$ETAGS"; then
3118 ETAGS=etags
3119 fi
3120
3121 if test -z "$CSCOPE"; then
3122 CSCOPE=cscope
3123 fi
3124
3125
3126
3127 # POSIX will say in a future version that running "rm -f" with no argument
3128 # is OK; and we want to be able to make that assumption in our Makefile
3129 # recipes. So use an aggressive probe to check that the usage we want is
3130 # actually supported "in the wild" to an acceptable degree.
3131 # See automake bug#10828.
3132 # To make any issue more visible, cause the running configure to be aborted
3133 # by default if the 'rm' program in use doesn't match our expectations; the
3134 # user can still override this though.
3135 if rm -f && rm -fr && rm -rf; then : OK; else
3136 cat >&2 <<'END'
3137 Oops!
3138
3139 Your 'rm' program seems unable to run without file operands specified
3140 on the command line, even when the '-f' option is present. This is contrary
3141 to the behaviour of most rm programs out there, and not conforming with
3142 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3143
3144 Please tell [email protected] about your system, including the value
3145 of your $PATH and any error possibly output before this message. This
3146 can help us improve future automake versions.
3147
3148 END
3149 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3150 echo 'Configuration will proceed anyway, since you have set the' >&2
3151 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3152 echo >&2
3153 else
3154 cat >&2 <<'END'
3155 Aborting the configuration process, to ensure you take notice of the issue.
3156
3157 You can download and install GNU coreutils to get an 'rm' implementation
3158 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3159
3160 If you want to complete the configuration process using your problematic
3161 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3162 to "yes", and re-run configure.
3163
3164 END
3165 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3166 fi
3167 fi
3168
3169 ac_config_headers="$ac_config_headers config.h"
3170
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3173 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3174 # Check whether --enable-maintainer-mode was given.
3175 if test "${enable_maintainer_mode+set}" = set; then :
3176 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3177 else
3178 USE_MAINTAINER_MODE=no
3179 fi
3180
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3182 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3183 if test $USE_MAINTAINER_MODE = yes; then
3184 MAINTAINER_MODE_TRUE=
3185 MAINTAINER_MODE_FALSE='#'
3186 else
3187 MAINTAINER_MODE_TRUE='#'
3188 MAINTAINER_MODE_FALSE=
3189 fi
3190
3191 MAINT=$MAINTAINER_MODE_TRUE
3192
3193
3194
3195 if test "$MPI_CXX" != ""; then
3196 CXX="$MPI_CXX"
3197 fi
3198
3199 ac_ext=cpp
3200 ac_cpp='$CXXCPP $CPPFLAGS'
3201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3204 if test -z "$CXX"; then
3205 if test -n "$CCC"; then
3206 CXX=$CCC
3207 else
3208 if test -n "$ac_tool_prefix"; then
3209 for ac_prog in mpiCC mpixlcxx mpixlcxx_r mpicxx CC
3210 do
3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CXX+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CXX"; then
3219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 CXX=$ac_cv_prog_CXX
3239 if test -n "$CXX"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3241 $as_echo "$CXX" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 test -n "$CXX" && break
3249 done
3250 fi
3251 if test -z "$CXX"; then
3252 ac_ct_CXX=$CXX
3253 for ac_prog in mpiCC mpixlcxx mpixlcxx_r mpicxx CC
3254 do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_CXX"; then
3263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_ac_ct_CXX="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3283 if test -n "$ac_ct_CXX"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3285 $as_echo "$ac_ct_CXX" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 test -n "$ac_ct_CXX" && break
3293 done
3294
3295 if test "x$ac_ct_CXX" = x; then
3296 CXX="g++"
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304 CXX=$ac_ct_CXX
3305 fi
3306 fi
3307
3308 fi
3309 fi
3310 # Provide some information about the compiler.
3311 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3312 set X $ac_compile
3313 ac_compiler=$2
3314 for ac_option in --version -v -V -qversion; do
3315 { { ac_try="$ac_compiler $ac_option >&5"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3323 ac_status=$?
3324 if test -s conftest.err; then
3325 sed '10a\
3326 ... rest of stderr output deleted ...
3327 10q' conftest.err >conftest.er1
3328 cat conftest.er1 >&5
3329 fi
3330 rm -f conftest.er1 conftest.err
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }
3333 done
3334
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3337
3338 int
3339 main ()
3340 {
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 ac_clean_files_save=$ac_clean_files
3347 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3348 # Try to create an executable without -o first, disregard a.out.
3349 # It will help us diagnose broken compilers, and finding out an intuition
3350 # of exeext.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3352 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3353 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3354
3355 # The possible output files:
3356 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3357
3358 ac_rmfiles=
3359 for ac_file in $ac_files
3360 do
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364 esac
3365 done
3366 rm -f $ac_rmfiles
3367
3368 if { { ac_try="$ac_link_default"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link_default") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3382 # so that the user can short-circuit this test for compilers unknown to
3383 # Autoconf.
3384 for ac_file in $ac_files ''
3385 do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3389 ;;
3390 [ab].out )
3391 # We found the default executable, but exeext='' is most
3392 # certainly right.
3393 break;;
3394 *.* )
3395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3396 then :; else
3397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398 fi
3399 # We set ac_cv_exeext here because the later test for it is not
3400 # safe: cross compilers may not add the suffix if given an `-o'
3401 # argument, so we may need to know it at that point already.
3402 # Even if this section looks crufty: it has the advantage of
3403 # actually working.
3404 break;;
3405 * )
3406 break;;
3407 esac
3408 done
3409 test "$ac_cv_exeext" = no && ac_cv_exeext=
3410
3411 else
3412 ac_file=''
3413 fi
3414 if test -z "$ac_file"; then :
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 $as_echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error 77 "C++ compiler cannot create executables
3423 See \`config.log' for more details" "$LINENO" 5; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426 $as_echo "yes" >&6; }
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3429 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3431 $as_echo "$ac_file" >&6; }
3432 ac_exeext=$ac_cv_exeext
3433
3434 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3435 ac_clean_files=$ac_clean_files_save
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3437 $as_echo_n "checking for suffix of executables... " >&6; }
3438 if { { ac_try="$ac_link"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_link") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
3449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3450 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3451 # work properly (i.e., refer to `conftest.exe'), while it won't with
3452 # `rm'.
3453 for ac_file in conftest.exe conftest conftest.*; do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458 break;;
3459 * ) break;;
3460 esac
3461 done
3462 else
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3466 See \`config.log' for more details" "$LINENO" 5; }
3467 fi
3468 rm -f conftest conftest$ac_cv_exeext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3470 $as_echo "$ac_cv_exeext" >&6; }
3471
3472 rm -f conftest.$ac_ext
3473 EXEEXT=$ac_cv_exeext
3474 ac_exeext=$EXEEXT
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477 #include <stdio.h>
3478 int
3479 main ()
3480 {
3481 FILE *f = fopen ("conftest.out", "w");
3482 return ferror (f) || fclose (f) != 0;
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 ac_clean_files="$ac_clean_files conftest.out"
3489 # Check that the compiler produces executables we can run. If not, either
3490 # the compiler is broken, or we cross compile.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3492 $as_echo_n "checking whether we are cross compiling... " >&6; }
3493 if test "$cross_compiling" != yes; then
3494 { { ac_try="$ac_link"
3495 case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_link") 2>&5
3502 ac_status=$?
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }
3505 if { ac_try='./conftest$ac_cv_exeext'
3506 { { case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_try") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; }; then
3516 cross_compiling=no
3517 else
3518 if test "$cross_compiling" = maybe; then
3519 cross_compiling=yes
3520 else
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot run C++ compiled programs.
3524 If you meant to cross compile, use \`--host'.
3525 See \`config.log' for more details" "$LINENO" 5; }
3526 fi
3527 fi
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3530 $as_echo "$cross_compiling" >&6; }
3531
3532 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3533 ac_clean_files=$ac_clean_files_save
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3535 $as_echo_n "checking for suffix of object files... " >&6; }
3536 if ${ac_cv_objext+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541
3542 int
3543 main ()
3544 {
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.o conftest.obj
3551 if { { ac_try="$ac_compile"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_compile") 2>&5
3559 ac_status=$?
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; then :
3562 for ac_file in conftest.o conftest.obj conftest.*; do
3563 test -f "$ac_file" || continue;
3564 case $ac_file in
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3567 break;;
3568 esac
3569 done
3570 else
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "cannot compute suffix of object files: cannot compile
3577 See \`config.log' for more details" "$LINENO" 5; }
3578 fi
3579 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3582 $as_echo "$ac_cv_objext" >&6; }
3583 OBJEXT=$ac_cv_objext
3584 ac_objext=$OBJEXT
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3586 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3587 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592
3593 int
3594 main ()
3595 {
3596 #ifndef __GNUC__
3597 choke me
3598 #endif
3599
3600 ;
3601 return 0;
3602 }
3603 _ACEOF
3604 if ac_fn_cxx_try_compile "$LINENO"; then :
3605 ac_compiler_gnu=yes
3606 else
3607 ac_compiler_gnu=no
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3611
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3614 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3615 if test $ac_compiler_gnu = yes; then
3616 GXX=yes
3617 else
3618 GXX=
3619 fi
3620 ac_test_CXXFLAGS=${CXXFLAGS+set}
3621 ac_save_CXXFLAGS=$CXXFLAGS
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3623 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3624 if ${ac_cv_prog_cxx_g+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3628 ac_cxx_werror_flag=yes
3629 ac_cv_prog_cxx_g=no
3630 CXXFLAGS="-g"
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 int
3635 main ()
3636 {
3637
3638 ;
3639 return 0;
3640 }
3641 _ACEOF
3642 if ac_fn_cxx_try_compile "$LINENO"; then :
3643 ac_cv_prog_cxx_g=yes
3644 else
3645 CXXFLAGS=""
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3648
3649 int
3650 main ()
3651 {
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 if ac_fn_cxx_try_compile "$LINENO"; then :
3658
3659 else
3660 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3661 CXXFLAGS="-g"
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 int
3666 main ()
3667 {
3668
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 if ac_fn_cxx_try_compile "$LINENO"; then :
3674 ac_cv_prog_cxx_g=yes
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3684 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3685 if test "$ac_test_CXXFLAGS" = set; then
3686 CXXFLAGS=$ac_save_CXXFLAGS
3687 elif test $ac_cv_prog_cxx_g = yes; then
3688 if test "$GXX" = yes; then
3689 CXXFLAGS="-g -O2"
3690 else
3691 CXXFLAGS="-g"
3692 fi
3693 else
3694 if test "$GXX" = yes; then
3695 CXXFLAGS="-O2"
3696 else
3697 CXXFLAGS=
3698 fi
3699 fi
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 DEPDIR="${am__leading_dot}deps"
3706
3707 ac_config_commands="$ac_config_commands depfiles"
3708
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3710 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3711 cat > confinc.mk << 'END'
3712 am__doit:
3713 @echo this is the am__doit target >confinc.out
3714 .PHONY: am__doit
3715 END
3716 am__include="#"
3717 am__quote=
3718 # BSD make does it like this.
3719 echo '.include "confinc.mk" # ignored' > confmf.BSD
3720 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3721 echo 'include confinc.mk # ignored' > confmf.GNU
3722 _am_result=no
3723 for s in GNU BSD; do
3724 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3725 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }
3729 case $?:`cat confinc.out 2>/dev/null` in #(
3730 '0:this is the am__doit target') :
3731 case $s in #(
3732 BSD) :
3733 am__include='.include' am__quote='"' ;; #(
3734 *) :
3735 am__include='include' am__quote='' ;;
3736 esac ;; #(
3737 *) :
3738 ;;
3739 esac
3740 if test "$am__include" != "#"; then
3741 _am_result="yes ($s style)"
3742 break
3743 fi
3744 done
3745 rm -f confinc.* confmf.*
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3747 $as_echo "${_am_result}" >&6; }
3748
3749 # Check whether --enable-dependency-tracking was given.
3750 if test "${enable_dependency_tracking+set}" = set; then :
3751 enableval=$enable_dependency_tracking;
3752 fi
3753
3754 if test "x$enable_dependency_tracking" != xno; then
3755 am_depcomp="$ac_aux_dir/depcomp"
3756 AMDEPBACKSLASH='\'
3757 am__nodep='_no'
3758 fi
3759 if test "x$enable_dependency_tracking" != xno; then
3760 AMDEP_TRUE=
3761 AMDEP_FALSE='#'
3762 else
3763 AMDEP_TRUE='#'
3764 AMDEP_FALSE=
3765 fi
3766
3767
3768
3769 depcc="$CXX" am_compiler_list=
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named 'D' -- because '-MD' means "put the output
3781 # in D".
3782 rm -rf conftest.dir
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3795
3796 am_cv_CXX_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3817 # Solaris 10 /bin/sh.
3818 echo '/* dummy */' > sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle '-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs.
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
3833 nosideeffect)
3834 # After this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested.
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843 # This compiler won't grok '-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CXX_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CXX_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3884 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3885
3886 if
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCXX_TRUE=
3890 am__fastdepCXX_FALSE='#'
3891 else
3892 am__fastdepCXX_TRUE='#'
3893 am__fastdepCXX_FALSE=
3894 fi
3895
3896
3897 MPI_CXX="$CXX"
3898
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MPI system we think we are using" >&5
3900 $as_echo_n "checking which MPI system we think we are using... " >&6; }
3901 case "$MPI_CXX" in
3902 mpiCC)
3903
3904 MPI_C=mpicc
3905 if $MPI_CXX -compile_info >/dev/null 2>/dev/null; then
3906 SYSGUESS=mpich
3907 CXX="`$MPI_CXX -compile_info | sed -e 's/^\([^ ]*\).*/\1/'`"
3908 else
3909 # mpiCC can be a C compiler under OpenMPI
3910 if mpicxx -showme >/dev/null 2>/dev/null; then
3911 SYSGUESS=openmpi
3912 CXX="`mpicxx -showme | sed -e 's/^\([^ ]*\).*/\1/'`"
3913 else
3914
3915 as_fn_error $? "
3916 Confused when trying to determine MPI_CXX, MPI_CXXFLAGS etc.
3917 Please set them manually." "$LINENO" 5
3918
3919 fi
3920 fi
3921 LAUNCHSTYLE=_mpirun
3922 TESTDIR=testsuite
3923 EXTRAS=extras
3924
3925 ;;
3926 mpixlcxx_r)
3927 MPI_C=mpixlc_r
3928 SYSGUESS=bgp
3929 CXX="$MPI_CXX"
3930 #CC="`echo $MPI_CXX | sed -e 's/xlcxx$/xlc/;s/cxx$/cc/'`"
3931 CC="$MPI_C"
3932 ;;
3933 mpixlcxx)
3934 MPI_C=mpixlc
3935 SYSGUESS=bgq
3936 CXX="$MPI_CXX"
3937 #CC="`echo $MPI_CXX | sed -e 's/xlcxx$/xlc/;s/cxx$/cc/'`"
3938 CC="$MPI_C"
3939 ;;
3940 mpicxx)
3941 MPI_C=mpicc
3942 CC="$MPI_C"
3943 CXX="$MPI_CXX"
3944 if mpich2version >/dev/null 2>/dev/null; then
3945 SYSGUESS=mpich2
3946
3947 $as_echo "#define HAVE_MPICH2 1" >>confdefs.h
3948
3949 else
3950 SYSGUESS=bgl
3951 fi
3952 ;;
3953 CC)
3954 # We should be checking MPI version but for the Cray we do it differently
3955 if uname -r | grep -q cray_gem_s; then
3956 SYSGUESS=cray_xe6
3957
3958 $as_echo "#define CRAY_XE6 1" >>confdefs.h
3959
3960 CC=cc
3961 CXX=CC
3962 else
3963 SYSGUESS=unknown
3964 fi
3965 ;;
3966 xlC)
3967 MPI_C=xlc
3968 SYSGUESS=bgq_seq
3969 CXX="$MPI_CXX"
3970 CC="$MPI_C"
3971 ;;
3972
3973 *)
3974 SYSGUESS=unknown
3975 ;;
3976 esac
3977 echo "SYSGUESS=$SYSGUESS"
3978
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MPI_CXXFLAGS" >&5
3980 $as_echo_n "checking MPI_CXXFLAGS... " >&6; }
3981 if test "$MPI_CXXFLAGS" != ""; then
3982 echo "$MPI_CXXFLAGS"
3983 else
3984 case "$SYSGUESS" in
3985 mpich|mpich2)
3986
3987 MPI_CXXFLAGS="`$MPI_CXX -compile_info | sed -e 's/^[^ ]* //;s/ -c / /'`"
3988
3989 ;;
3990 openmpi)
3991 MPI_CXXFLAGS="`mpicxx -showme:compile`"
3992 ;;
3993 bgp)
3994 MPI_CXXFLAGS="-qarch=450 -qtune=450 -qhot -qnostrict"
3995 enable_shared=no
3996 ;;
3997 bgq)
3998 MPI_CXXFLAGS="-qarch=qp -qtune=qp -qhot -qnostrict"
3999 enable_shared=no
4000 ;;
4001 cray_xe6)
4002 MPI_CXXFLAGS=""
4003 ;;
4004 bgq_seq)
4005 MPI_CXXFLAGS=""
4006 enable_shared=no
4007 ;;
4008 *)
4009 as_fn_error $? "
4010 Could not determine proper value for MPI_CXXFLAGS. Please see README." "$LINENO" 5
4011 ;;
4012 esac
4013 echo "$MPI_CXXFLAGS"
4014 fi
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MPI_CFLAGS" >&5
4017 $as_echo_n "checking MPI_CFLAGS... " >&6; }
4018 if test "$MPI_CFLAGS" != ""; then
4019 echo "$MPI_CFLAGS"
4020 else
4021 case "$SYSGUESS" in
4022 mpich|mpich2)
4023
4024 MPI_CFLAGS="`$MPI_C -compile_info | sed -e 's/^[^ ]* //;s/ -c / /'`"
4025
4026 ;;
4027 openmpi)
4028 MPI_CFLAGS="`mpicc -showme:compile`"
4029 ;;
4030 bgp)
4031 MPI_CFLAGS="-qarch=450 -qtune=450 -qhot -qnostrict"
4032 enable_shared=no
4033 ;;
4034 bgq)
4035 MPI_CFLAGS="-qarch=qp -qtune=qp -qhot -qnostrict"
4036 enable_shared=no
4037 ;;
4038 cray_xe6)
4039 MPI_CFLAGS=""
4040 ;;
4041 bgq_seq)
4042 MPI_CFLAGS=""
4043 enable_shared=no
4044 ;;
4045 *)
4046 as_fn_error $? "
4047 Could not determine proper value for MPI_CFLAGS. Please see README." "$LINENO" 5
4048 ;;
4049 esac
4050 echo "$MPI_CFLAGS"
4051 fi
4052
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MPI_LDFLAGS" >&5
4054 $as_echo_n "checking MPI_LDFLAGS... " >&6; }
4055 if test "$MPI_LDFLAGS" != ""; then
4056 echo "$MPI_LDFLAGS"
4057 else
4058 case "$SYSGUESS" in
4059 mpich|mpich2)
4060
4061 MPI_LDFLAGS="`$MPI_CXX -link_info | sed -e 's/^[^ ]* //;s/ -c / /'`"
4062
4063 ;;
4064 openmpi)
4065 MPI_LDFLAGS="`mpicxx -showme:link`"
4066 ;;
4067 bgp|bgq|cray_xe6|bgq_seq)
4068 MPI_LDFLAGS=""
4069 ;;
4070 *)
4071 as_fn_error $? "
4072 Could not determine proper value for MPI_LDFLAGS. Please see README." "$LINENO" 5
4073 ;;
4074 esac
4075 echo "$MPI_LDFLAGS"
4076 fi
4077
4078 CXXFLAGS="-g -O3 -std=c++11"
4079
4080 #if test "$ac_test_CXXFLAGS" != set; then
4081 # if test "$CXXFLAGS" = "-O2"; then
4082 # CXXFLAGS="-O3"
4083 # else
4084 # CXXFLAGS="-O2"
4085 # CXXFLAGS="-g -O0"
4086 if test $CXX = g++; then
4087 CXXFLAGS="-pedantic -Wall -Wno-long-long $CXXFLAGS"
4088 fi
4089 # fi
4090 #fi
4091
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 if test -n "$ac_tool_prefix"; then
4098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4099 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if ${ac_cv_prog_CC+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119 done
4120 done
4121 IFS=$as_save_IFS
4122
4123 fi
4124 fi
4125 CC=$ac_cv_prog_CC
4126 if test -n "$CC"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4128 $as_echo "$CC" >&6; }
4129 else
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4132 fi
4133
4134
4135 fi
4136 if test -z "$ac_cv_prog_CC"; then
4137 ac_ct_CC=$CC
4138 # Extract the first word of "gcc", so it can be a program name with args.
4139 set dummy gcc; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -n "$ac_ct_CC"; then
4146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_ac_ct_CC="gcc"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4158 fi
4159 done
4160 done
4161 IFS=$as_save_IFS
4162
4163 fi
4164 fi
4165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4166 if test -n "$ac_ct_CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4168 $as_echo "$ac_ct_CC" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4172 fi
4173
4174 if test "x$ac_ct_CC" = x; then
4175 CC=""
4176 else
4177 case $cross_compiling:$ac_tool_warned in
4178 yes:)
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4181 ac_tool_warned=yes ;;
4182 esac
4183 CC=$ac_ct_CC
4184 fi
4185 else
4186 CC="$ac_cv_prog_CC"
4187 fi
4188
4189 if test -z "$CC"; then
4190 if test -n "$ac_tool_prefix"; then
4191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4192 set dummy ${ac_tool_prefix}cc; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_CC+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208 ac_cv_prog_CC="${ac_tool_prefix}cc"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4211 fi
4212 done
4213 done
4214 IFS=$as_save_IFS
4215
4216 fi
4217 fi
4218 CC=$ac_cv_prog_CC
4219 if test -n "$CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 $as_echo "$CC" >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226
4227
4228 fi
4229 fi
4230 if test -z "$CC"; then
4231 # Extract the first word of "cc", so it can be a program name with args.
4232 set dummy cc; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if ${ac_cv_prog_CC+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240 else
4241 ac_prog_rejected=no
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4250 ac_prog_rejected=yes
4251 continue
4252 fi
4253 ac_cv_prog_CC="cc"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261 if test $ac_prog_rejected = yes; then
4262 # We found a bogon in the path, so make sure we never use it.
4263 set dummy $ac_cv_prog_CC
4264 shift
4265 if test $# != 0; then
4266 # We chose a different compiler from the bogus one.
4267 # However, it has the same basename, so the bogon will be chosen
4268 # first if we set CC to just the basename; use the full file name.
4269 shift
4270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4271 fi
4272 fi
4273 fi
4274 fi
4275 CC=$ac_cv_prog_CC
4276 if test -n "$CC"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4278 $as_echo "$CC" >&6; }
4279 else
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4282 fi
4283
4284
4285 fi
4286 if test -z "$CC"; then
4287 if test -n "$ac_tool_prefix"; then
4288 for ac_prog in cl.exe
4289 do
4290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 $as_echo_n "checking for $ac_word... " >&6; }
4294 if ${ac_cv_prog_CC+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 if test -n "$CC"; then
4298 ac_cv_prog_CC="$CC" # Let the user override the test.
4299 else
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 break 2
4310 fi
4311 done
4312 done
4313 IFS=$as_save_IFS
4314
4315 fi
4316 fi
4317 CC=$ac_cv_prog_CC
4318 if test -n "$CC"; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4320 $as_echo "$CC" >&6; }
4321 else
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4324 fi
4325
4326
4327 test -n "$CC" && break
4328 done
4329 fi
4330 if test -z "$CC"; then
4331 ac_ct_CC=$CC
4332 for ac_prog in cl.exe
4333 do
4334 # Extract the first word of "$ac_prog", so it can be a program name with args.
4335 set dummy $ac_prog; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$ac_ct_CC"; then
4342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351 ac_cv_prog_ac_ct_CC="$ac_prog"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4354 fi
4355 done
4356 done
4357 IFS=$as_save_IFS
4358
4359 fi
4360 fi
4361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4362 if test -n "$ac_ct_CC"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4364 $as_echo "$ac_ct_CC" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4368 fi
4369
4370
4371 test -n "$ac_ct_CC" && break
4372 done
4373
4374 if test "x$ac_ct_CC" = x; then
4375 CC=""
4376 else
4377 case $cross_compiling:$ac_tool_warned in
4378 yes:)
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381 ac_tool_warned=yes ;;
4382 esac
4383 CC=$ac_ct_CC
4384 fi
4385 fi
4386
4387 fi
4388
4389
4390 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error $? "no acceptable C compiler found in \$PATH
4393 See \`config.log' for more details" "$LINENO" 5; }
4394
4395 # Provide some information about the compiler.
4396 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4397 set X $ac_compile
4398 ac_compiler=$2
4399 for ac_option in --version -v -V -qversion; do
4400 { { ac_try="$ac_compiler $ac_option >&5"
4401 case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404 esac
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 $as_echo "$ac_try_echo"; } >&5
4407 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4408 ac_status=$?
4409 if test -s conftest.err; then
4410 sed '10a\
4411 ... rest of stderr output deleted ...
4412 10q' conftest.err >conftest.er1
4413 cat conftest.er1 >&5
4414 fi
4415 rm -f conftest.er1 conftest.err
4416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; }
4418 done
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4422 if ${ac_cv_c_compiler_gnu+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427
4428 int
4429 main ()
4430 {
4431 #ifndef __GNUC__
4432 choke me
4433 #endif
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_c_try_compile "$LINENO"; then :
4440 ac_compiler_gnu=yes
4441 else
4442 ac_compiler_gnu=no
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4446
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4449 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4450 if test $ac_compiler_gnu = yes; then
4451 GCC=yes
4452 else
4453 GCC=
4454 fi
4455 ac_test_CFLAGS=${CFLAGS+set}
4456 ac_save_CFLAGS=$CFLAGS
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4458 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4459 if ${ac_cv_prog_cc_g+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 ac_save_c_werror_flag=$ac_c_werror_flag
4463 ac_c_werror_flag=yes
4464 ac_cv_prog_cc_g=no
4465 CFLAGS="-g"
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468
4469 int
4470 main ()
4471 {
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 if ac_fn_c_try_compile "$LINENO"; then :
4478 ac_cv_prog_cc_g=yes
4479 else
4480 CFLAGS=""
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483
4484 int
4485 main ()
4486 {
4487
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493
4494 else
4495 ac_c_werror_flag=$ac_save_c_werror_flag
4496 CFLAGS="-g"
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499
4500 int
4501 main ()
4502 {
4503
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_prog_cc_g=yes
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 fi
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 ac_c_werror_flag=$ac_save_c_werror_flag
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4519 $as_echo "$ac_cv_prog_cc_g" >&6; }
4520 if test "$ac_test_CFLAGS" = set; then
4521 CFLAGS=$ac_save_CFLAGS
4522 elif test $ac_cv_prog_cc_g = yes; then
4523 if test "$GCC" = yes; then
4524 CFLAGS="-g -O2"
4525 else
4526 CFLAGS="-g"
4527 fi
4528 else
4529 if test "$GCC" = yes; then
4530 CFLAGS="-O2"
4531 else
4532 CFLAGS=
4533 fi
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4536 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4537 if ${ac_cv_prog_cc_c89+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 ac_cv_prog_cc_c89=no
4541 ac_save_CC=$CC
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <stdarg.h>
4545 #include <stdio.h>
4546 struct stat;
4547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4548 struct buf { int x; };
4549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4550 static char *e (p, i)
4551 char **p;
4552 int i;
4553 {
4554 return p[i];
4555 }
4556 static char *f (char * (*g) (char **, int), char **p, ...)
4557 {
4558 char *s;
4559 va_list v;
4560 va_start (v,p);
4561 s = g (p, va_arg (v,int));
4562 va_end (v);
4563 return s;
4564 }
4565
4566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4567 function prototypes and stuff, but not '\xHH' hex character constants.
4568 These don't provoke an error unfortunately, instead are silently treated
4569 as 'x'. The following induces an error, until -std is added to get
4570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4571 array size at least. It's necessary to write '\x00'==0 to get something
4572 that's true only with -std. */
4573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4574
4575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4576 inside strings and character constants. */
4577 #define FOO(x) 'x'
4578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4579
4580 int test (int i, double x);
4581 struct s1 {int (*f) (int a);};
4582 struct s2 {int (*f) (double a);};
4583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4584 int argc;
4585 char **argv;
4586 int
4587 main ()
4588 {
4589 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4590 ;
4591 return 0;
4592 }
4593 _ACEOF
4594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4596 do
4597 CC="$ac_save_CC $ac_arg"
4598 if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_cv_prog_cc_c89=$ac_arg
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext
4602 test "x$ac_cv_prog_cc_c89" != "xno" && break
4603 done
4604 rm -f conftest.$ac_ext
4605 CC=$ac_save_CC
4606
4607 fi
4608 # AC_CACHE_VAL
4609 case "x$ac_cv_prog_cc_c89" in
4610 x)
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4612 $as_echo "none needed" >&6; } ;;
4613 xno)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4615 $as_echo "unsupported" >&6; } ;;
4616 *)
4617 CC="$CC $ac_cv_prog_cc_c89"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4619 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4620 esac
4621 if test "x$ac_cv_prog_cc_c89" != xno; then :
4622
4623 fi
4624
4625 ac_ext=c
4626 ac_cpp='$CPP $CPPFLAGS'
4627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4630
4631 ac_ext=c
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4637 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4638 if ${am_cv_prog_cc_c_o+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 # Make sure it works both with $CC and with simple cc.
4653 # Following AC_PROG_CC_C_O, we do the test twice because some
4654 # compilers refuse to overwrite an existing .o file with -o,
4655 # though they will create one.
4656 am_cv_prog_cc_c_o=yes
4657 for am_i in 1 2; do
4658 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4659 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } \
4663 && test -f conftest2.$ac_objext; then
4664 : OK
4665 else
4666 am_cv_prog_cc_c_o=no
4667 break
4668 fi
4669 done
4670 rm -f core conftest*
4671 unset am_i
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4674 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4675 if test "$am_cv_prog_cc_c_o" != yes; then
4676 # Losing compiler, so override with the script.
4677 # FIXME: It is wrong to rewrite CC.
4678 # But if we don't then we get into trouble of one sort or another.
4679 # A longer-term fix would be to have automake use am__CC in this case,
4680 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4681 CC="$am_aux_dir/compile $CC"
4682 fi
4683 ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689
4690 depcc="$CC" am_compiler_list=
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4693 $as_echo_n "checking dependency style of $depcc... " >&6; }
4694 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4698 # We make a subdir and do the tests there. Otherwise we can end up
4699 # making bogus files that we don't know about and never remove. For
4700 # instance it was reported that on HP-UX the gcc test will end up
4701 # making a dummy file named 'D' -- because '-MD' means "put the output
4702 # in D".
4703 rm -rf conftest.dir
4704 mkdir conftest.dir
4705 # Copy depcomp to subdir because otherwise we won't find it if we're
4706 # using a relative directory.
4707 cp "$am_depcomp" conftest.dir
4708 cd conftest.dir
4709 # We will build objects and dependencies in a subdirectory because
4710 # it helps to detect inapplicable dependency modes. For instance
4711 # both Tru64's cc and ICC support -MD to output dependencies as a
4712 # side effect of compilation, but ICC will put the dependencies in
4713 # the current directory while Tru64 will put them in the object
4714 # directory.
4715 mkdir sub
4716
4717 am_cv_CC_dependencies_compiler_type=none
4718 if test "$am_compiler_list" = ""; then
4719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4720 fi
4721 am__universal=false
4722 case " $depcc " in #(
4723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4724 esac
4725
4726 for depmode in $am_compiler_list; do
4727 # Setup a source with many dependencies, because some compilers
4728 # like to wrap large dependency lists on column 80 (with \), and
4729 # we should not choose a depcomp mode which is confused by this.
4730 #
4731 # We need to recreate these files for each test, as the compiler may
4732 # overwrite some of them when testing with obscure command lines.
4733 # This happens at least with the AIX C compiler.
4734 : > sub/conftest.c
4735 for i in 1 2 3 4 5 6; do
4736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4737 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4738 # Solaris 10 /bin/sh.
4739 echo '/* dummy */' > sub/conftst$i.h
4740 done
4741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4742
4743 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4744 # mode. It turns out that the SunPro C++ compiler does not properly
4745 # handle '-M -o', and we need to detect this. Also, some Intel
4746 # versions had trouble with output in subdirs.
4747 am__obj=sub/conftest.${OBJEXT-o}
4748 am__minus_obj="-o $am__obj"
4749 case $depmode in
4750 gcc)
4751 # This depmode causes a compiler race in universal mode.
4752 test "$am__universal" = false || continue
4753 ;;
4754 nosideeffect)
4755 # After this tag, mechanisms are not by side-effect, so they'll
4756 # only be used when explicitly requested.
4757 if test "x$enable_dependency_tracking" = xyes; then
4758 continue
4759 else
4760 break
4761 fi
4762 ;;
4763 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4764 # This compiler won't grok '-c -o', but also, the minuso test has
4765 # not run yet. These depmodes are late enough in the game, and
4766 # so weak that their functioning should not be impacted.
4767 am__obj=conftest.${OBJEXT-o}
4768 am__minus_obj=
4769 ;;
4770 none) break ;;
4771 esac
4772 if depmode=$depmode \
4773 source=sub/conftest.c object=$am__obj \
4774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4776 >/dev/null 2>conftest.err &&
4777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4781 # icc doesn't choke on unknown options, it will just issue warnings
4782 # or remarks (even with -Werror). So we grep stderr for any message
4783 # that says an option was ignored or not supported.
4784 # When given -MP, icc 7.0 and 7.1 complain thusly:
4785 # icc: Command line warning: ignoring option '-M'; no argument required
4786 # The diagnosis changed in icc 8.0:
4787 # icc: Command line remark: option '-MP' not supported
4788 if (grep 'ignoring option' conftest.err ||
4789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4790 am_cv_CC_dependencies_compiler_type=$depmode
4791 break
4792 fi
4793 fi
4794 done
4795
4796 cd ..
4797 rm -rf conftest.dir
4798 else
4799 am_cv_CC_dependencies_compiler_type=none
4800 fi
4801
4802 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4806
4807 if
4808 test "x$enable_dependency_tracking" != xno \
4809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4810 am__fastdepCC_TRUE=
4811 am__fastdepCC_FALSE='#'
4812 else
4813 am__fastdepCC_TRUE='#'
4814 am__fastdepCC_FALSE=
4815 fi
4816
4817
4818 case `pwd` in
4819 *\ * | *\ *)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4822 esac
4823
4824
4825
4826 macro_version='2.4.6'
4827 macro_revision='2.4.6'
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 ltmain=$ac_aux_dir/ltmain.sh
4842
4843 # Make sure we can run config.sub.
4844 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4845 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4848 $as_echo_n "checking build system type... " >&6; }
4849 if ${ac_cv_build+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 ac_build_alias=$build_alias
4853 test "x$ac_build_alias" = x &&
4854 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4855 test "x$ac_build_alias" = x &&
4856 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4857 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4858 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4859
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4862 $as_echo "$ac_cv_build" >&6; }
4863 case $ac_cv_build in
4864 *-*-*) ;;
4865 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4866 esac
4867 build=$ac_cv_build
4868 ac_save_IFS=$IFS; IFS='-'
4869 set x $ac_cv_build
4870 shift
4871 build_cpu=$1
4872 build_vendor=$2
4873 shift; shift
4874 # Remember, the first character of IFS is used to create $*,
4875 # except with old shells:
4876 build_os=$*
4877 IFS=$ac_save_IFS
4878 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4882 $as_echo_n "checking host system type... " >&6; }
4883 if ${ac_cv_host+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test "x$host_alias" = x; then
4887 ac_cv_host=$ac_cv_build
4888 else
4889 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4890 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4891 fi
4892
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4895 $as_echo "$ac_cv_host" >&6; }
4896 case $ac_cv_host in
4897 *-*-*) ;;
4898 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4899 esac
4900 host=$ac_cv_host
4901 ac_save_IFS=$IFS; IFS='-'
4902 set x $ac_cv_host
4903 shift
4904 host_cpu=$1
4905 host_vendor=$2
4906 shift; shift
4907 # Remember, the first character of IFS is used to create $*,
4908 # except with old shells:
4909 host_os=$*
4910 IFS=$ac_save_IFS
4911 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4912
4913
4914 # Backslashify metacharacters that are still active within
4915 # double-quoted strings.
4916 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4917
4918 # Same as above, but do not quote variable references.
4919 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4920
4921 # Sed substitution to delay expansion of an escaped shell variable in a
4922 # double_quote_subst'ed string.
4923 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4924
4925 # Sed substitution to delay expansion of an escaped single quote.
4926 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4927
4928 # Sed substitution to avoid accidental globbing in evaled expressions
4929 no_glob_subst='s/\*/\\\*/g'
4930
4931 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4932 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4933 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4936 $as_echo_n "checking how to print strings... " >&6; }
4937 # Test print first, because it will be a builtin if present.
4938 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4939 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4940 ECHO='print -r --'
4941 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4942 ECHO='printf %s\n'
4943 else
4944 # Use this function as a fallback that always works.
4945 func_fallback_echo ()
4946 {
4947 eval 'cat <<_LTECHO_EOF
4948 $1
4949 _LTECHO_EOF'
4950 }
4951 ECHO='func_fallback_echo'
4952 fi
4953
4954 # func_echo_all arg...
4955 # Invoke $ECHO with all args, space-separated.
4956 func_echo_all ()
4957 {
4958 $ECHO ""
4959 }
4960
4961 case $ECHO in
4962 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4963 $as_echo "printf" >&6; } ;;
4964 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4965 $as_echo "print -r" >&6; } ;;
4966 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4967 $as_echo "cat" >&6; } ;;
4968 esac
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4984 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4985 if ${ac_cv_path_SED+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4989 for ac_i in 1 2 3 4 5 6 7; do
4990 ac_script="$ac_script$as_nl$ac_script"
4991 done
4992 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4993 { ac_script=; unset ac_script;}
4994 if test -z "$SED"; then
4995 ac_path_SED_found=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_prog in sed gsed; do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5005 as_fn_executable_p "$ac_path_SED" || continue
5006 # Check for GNU ac_path_SED and select it if it is found.
5007 # Check for GNU $ac_path_SED
5008 case `"$ac_path_SED" --version 2>&1` in
5009 *GNU*)
5010 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5011 *)
5012 ac_count=0
5013 $as_echo_n 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo '' >> "conftest.nl"
5020 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_SED_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_SED="$ac_path_SED"
5026 ac_path_SED_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_SED_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_SED"; then
5040 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_SED=$SED
5044 fi
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5048 $as_echo "$ac_cv_path_SED" >&6; }
5049 SED="$ac_cv_path_SED"
5050 rm -f conftest.sed
5051
5052 test -z "$SED" && SED=sed
5053 Xsed="$SED -e 1s/^X//"
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5066 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5067 if ${ac_cv_path_GREP+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -z "$GREP"; then
5071 ac_path_GREP_found=false
5072 # Loop through the user's path and test for each of PROGNAME-LIST
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5075 do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_prog in grep ggrep; do
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5081 as_fn_executable_p "$ac_path_GREP" || continue
5082 # Check for GNU ac_path_GREP and select it if it is found.
5083 # Check for GNU $ac_path_GREP
5084 case `"$ac_path_GREP" --version 2>&1` in
5085 *GNU*)
5086 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5087 *)
5088 ac_count=0
5089 $as_echo_n 0123456789 >"conftest.in"
5090 while :
5091 do
5092 cat "conftest.in" "conftest.in" >"conftest.tmp"
5093 mv "conftest.tmp" "conftest.in"
5094 cp "conftest.in" "conftest.nl"
5095 $as_echo 'GREP' >> "conftest.nl"
5096 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5098 as_fn_arith $ac_count + 1 && ac_count=$as_val
5099 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5100 # Best one so far, save it but keep looking for a better one
5101 ac_cv_path_GREP="$ac_path_GREP"
5102 ac_path_GREP_max=$ac_count
5103 fi
5104 # 10*(2^10) chars as input seems more than enough
5105 test $ac_count -gt 10 && break
5106 done
5107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5108 esac
5109
5110 $ac_path_GREP_found && break 3
5111 done
5112 done
5113 done
5114 IFS=$as_save_IFS
5115 if test -z "$ac_cv_path_GREP"; then
5116 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5117 fi
5118 else
5119 ac_cv_path_GREP=$GREP
5120 fi
5121
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5124 $as_echo "$ac_cv_path_GREP" >&6; }
5125 GREP="$ac_cv_path_GREP"
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5129 $as_echo_n "checking for egrep... " >&6; }
5130 if ${ac_cv_path_EGREP+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5134 then ac_cv_path_EGREP="$GREP -E"
5135 else
5136 if test -z "$EGREP"; then
5137 ac_path_EGREP_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in egrep; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5147 as_fn_executable_p "$ac_path_EGREP" || continue
5148 # Check for GNU ac_path_EGREP and select it if it is found.
5149 # Check for GNU $ac_path_EGREP
5150 case `"$ac_path_EGREP" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5153 *)
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5157 do
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo 'EGREP' >> "conftest.nl"
5162 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_EGREP="$ac_path_EGREP"
5168 ac_path_EGREP_max=$ac_count
5169 fi
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5175
5176 $ac_path_EGREP_found && break 3
5177 done
5178 done
5179 done
5180 IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_EGREP"; then
5182 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5183 fi
5184 else
5185 ac_cv_path_EGREP=$EGREP
5186 fi
5187
5188 fi
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5191 $as_echo "$ac_cv_path_EGREP" >&6; }
5192 EGREP="$ac_cv_path_EGREP"
5193
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5196 $as_echo_n "checking for fgrep... " >&6; }
5197 if ${ac_cv_path_FGREP+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5201 then ac_cv_path_FGREP="$GREP -F"
5202 else
5203 if test -z "$FGREP"; then
5204 ac_path_FGREP_found=false
5205 # Loop through the user's path and test for each of PROGNAME-LIST
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5208 do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_prog in fgrep; do
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5214 as_fn_executable_p "$ac_path_FGREP" || continue
5215 # Check for GNU ac_path_FGREP and select it if it is found.
5216 # Check for GNU $ac_path_FGREP
5217 case `"$ac_path_FGREP" --version 2>&1` in
5218 *GNU*)
5219 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5220 *)
5221 ac_count=0
5222 $as_echo_n 0123456789 >"conftest.in"
5223 while :
5224 do
5225 cat "conftest.in" "conftest.in" >"conftest.tmp"
5226 mv "conftest.tmp" "conftest.in"
5227 cp "conftest.in" "conftest.nl"
5228 $as_echo 'FGREP' >> "conftest.nl"
5229 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5231 as_fn_arith $ac_count + 1 && ac_count=$as_val
5232 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5233 # Best one so far, save it but keep looking for a better one
5234 ac_cv_path_FGREP="$ac_path_FGREP"
5235 ac_path_FGREP_max=$ac_count
5236 fi
5237 # 10*(2^10) chars as input seems more than enough
5238 test $ac_count -gt 10 && break
5239 done
5240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241 esac
5242
5243 $ac_path_FGREP_found && break 3
5244 done
5245 done
5246 done
5247 IFS=$as_save_IFS
5248 if test -z "$ac_cv_path_FGREP"; then
5249 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5250 fi
5251 else
5252 ac_cv_path_FGREP=$FGREP
5253 fi
5254
5255 fi
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5258 $as_echo "$ac_cv_path_FGREP" >&6; }
5259 FGREP="$ac_cv_path_FGREP"
5260
5261
5262 test -z "$GREP" && GREP=grep
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 # Check whether --with-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then :
5284 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5285 else
5286 with_gnu_ld=no
5287 fi
5288
5289 ac_prog=ld
5290 if test yes = "$GCC"; then
5291 # Check if gcc -print-prog-name=ld gives a path.
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5293 $as_echo_n "checking for ld used by $CC... " >&6; }
5294 case $host in
5295 *-*-mingw*)
5296 # gcc leaves a trailing carriage return, which upsets mingw
5297 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5298 *)
5299 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5300 esac
5301 case $ac_prog in
5302 # Accept absolute paths.
5303 [\\/]* | ?:[\\/]*)
5304 re_direlt='/[^/][^/]*/\.\./'
5305 # Canonicalize the pathname of ld
5306 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5307 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5308 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5309 done
5310 test -z "$LD" && LD=$ac_prog
5311 ;;
5312 "")
5313 # If it fails, then pretend we aren't using GCC.
5314 ac_prog=ld
5315 ;;
5316 *)
5317 # If it is relative, then search for the first ld in PATH.
5318 with_gnu_ld=unknown
5319 ;;
5320 esac
5321 elif test yes = "$with_gnu_ld"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5323 $as_echo_n "checking for GNU ld... " >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5326 $as_echo_n "checking for non-GNU ld... " >&6; }
5327 fi
5328 if ${lt_cv_path_LD+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -z "$LD"; then
5332 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5333 for ac_dir in $PATH; do
5334 IFS=$lt_save_ifs
5335 test -z "$ac_dir" && ac_dir=.
5336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337 lt_cv_path_LD=$ac_dir/$ac_prog
5338 # Check to see if the program is GNU ld. I'd rather use --version,
5339 # but apparently some variants of GNU ld only accept -v.
5340 # Break only if it was the GNU/non-GNU ld that we prefer.
5341 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342 *GNU* | *'with BFD'*)
5343 test no != "$with_gnu_ld" && break
5344 ;;
5345 *)
5346 test yes != "$with_gnu_ld" && break
5347 ;;
5348 esac
5349 fi
5350 done
5351 IFS=$lt_save_ifs
5352 else
5353 lt_cv_path_LD=$LD # Let the user override the test with a path.
5354 fi
5355 fi
5356
5357 LD=$lt_cv_path_LD
5358 if test -n "$LD"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5360 $as_echo "$LD" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5367 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5368 if ${lt_cv_prog_gnu_ld+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5372 case `$LD -v 2>&1 </dev/null` in
5373 *GNU* | *'with BFD'*)
5374 lt_cv_prog_gnu_ld=yes
5375 ;;
5376 *)
5377 lt_cv_prog_gnu_ld=no
5378 ;;
5379 esac
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5382 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5383 with_gnu_ld=$lt_cv_prog_gnu_ld
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5394 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5395 if ${lt_cv_path_NM+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if test -n "$NM"; then
5399 # Let the user override the test.
5400 lt_cv_path_NM=$NM
5401 else
5402 lt_nm_to_check=${ac_tool_prefix}nm
5403 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5404 lt_nm_to_check="$lt_nm_to_check nm"
5405 fi
5406 for lt_tmp_nm in $lt_nm_to_check; do
5407 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5408 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5409 IFS=$lt_save_ifs
5410 test -z "$ac_dir" && ac_dir=.
5411 tmp_nm=$ac_dir/$lt_tmp_nm
5412 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5413 # Check to see if the nm accepts a BSD-compat flag.
5414 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5415 # nm: unknown option "B" ignored
5416 # Tru64's nm complains that /dev/null is an invalid object file
5417 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5418 case $build_os in
5419 mingw*) lt_bad_file=conftest.nm/nofile ;;
5420 *) lt_bad_file=/dev/null ;;
5421 esac
5422 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5423 *$lt_bad_file* | *'Invalid file or object type'*)
5424 lt_cv_path_NM="$tmp_nm -B"
5425 break 2
5426 ;;
5427 *)
5428 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5429 */dev/null*)
5430 lt_cv_path_NM="$tmp_nm -p"
5431 break 2
5432 ;;
5433 *)
5434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5435 continue # so that we can try to find one that supports BSD flags
5436 ;;
5437 esac
5438 ;;
5439 esac
5440 fi
5441 done
5442 IFS=$lt_save_ifs
5443 done
5444 : ${lt_cv_path_NM=no}
5445 fi
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5448 $as_echo "$lt_cv_path_NM" >&6; }
5449 if test no != "$lt_cv_path_NM"; then
5450 NM=$lt_cv_path_NM
5451 else
5452 # Didn't find any BSD compatible name lister, look for dumpbin.
5453 if test -n "$DUMPBIN"; then :
5454 # Let the user override the test.
5455 else
5456 if test -n "$ac_tool_prefix"; then
5457 for ac_prog in dumpbin "link -dump"
5458 do
5459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_DUMPBIN+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$DUMPBIN"; then
5467 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 DUMPBIN=$ac_cv_prog_DUMPBIN
5487 if test -n "$DUMPBIN"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5489 $as_echo "$DUMPBIN" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496 test -n "$DUMPBIN" && break
5497 done
5498 fi
5499 if test -z "$DUMPBIN"; then
5500 ac_ct_DUMPBIN=$DUMPBIN
5501 for ac_prog in dumpbin "link -dump"
5502 do
5503 # Extract the first word of "$ac_prog", so it can be a program name with args.
5504 set dummy $ac_prog; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$ac_ct_DUMPBIN"; then
5511 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5531 if test -n "$ac_ct_DUMPBIN"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5533 $as_echo "$ac_ct_DUMPBIN" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540 test -n "$ac_ct_DUMPBIN" && break
5541 done
5542
5543 if test "x$ac_ct_DUMPBIN" = x; then
5544 DUMPBIN=":"
5545 else
5546 case $cross_compiling:$ac_tool_warned in
5547 yes:)
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550 ac_tool_warned=yes ;;
5551 esac
5552 DUMPBIN=$ac_ct_DUMPBIN
5553 fi
5554 fi
5555
5556 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5557 *COFF*)
5558 DUMPBIN="$DUMPBIN -symbols -headers"
5559 ;;
5560 *)
5561 DUMPBIN=:
5562 ;;
5563 esac
5564 fi
5565
5566 if test : != "$DUMPBIN"; then
5567 NM=$DUMPBIN
5568 fi
5569 fi
5570 test -z "$NM" && NM=nm
5571
5572
5573
5574
5575
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5578 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5579 if ${lt_cv_nm_interface+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 lt_cv_nm_interface="BSD nm"
5583 echo "int some_variable = 0;" > conftest.$ac_ext
5584 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5585 (eval "$ac_compile" 2>conftest.err)
5586 cat conftest.err >&5
5587 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5588 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5589 cat conftest.err >&5
5590 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5591 cat conftest.out >&5
5592 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5593 lt_cv_nm_interface="MS dumpbin"
5594 fi
5595 rm -f conftest*
5596 fi
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5598 $as_echo "$lt_cv_nm_interface" >&6; }
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5601 $as_echo_n "checking whether ln -s works... " >&6; }
5602 LN_S=$as_ln_s
5603 if test "$LN_S" = "ln -s"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5605 $as_echo "yes" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5608 $as_echo "no, using $LN_S" >&6; }
5609 fi
5610
5611 # find the maximum length of command line arguments
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5613 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5614 if ${lt_cv_sys_max_cmd_len+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 i=0
5618 teststring=ABCD
5619
5620 case $build_os in
5621 msdosdjgpp*)
5622 # On DJGPP, this test can blow up pretty badly due to problems in libc
5623 # (any single argument exceeding 2000 bytes causes a buffer overrun
5624 # during glob expansion). Even if it were fixed, the result of this
5625 # check would be larger than it should be.
5626 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5627 ;;
5628
5629 gnu*)
5630 # Under GNU Hurd, this test is not required because there is
5631 # no limit to the length of command line arguments.
5632 # Libtool will interpret -1 as no limit whatsoever
5633 lt_cv_sys_max_cmd_len=-1;
5634 ;;
5635
5636 cygwin* | mingw* | cegcc*)
5637 # On Win9x/ME, this test blows up -- it succeeds, but takes
5638 # about 5 minutes as the teststring grows exponentially.
5639 # Worse, since 9x/ME are not pre-emptively multitasking,
5640 # you end up with a "frozen" computer, even though with patience
5641 # the test eventually succeeds (with a max line length of 256k).
5642 # Instead, let's just punt: use the minimum linelength reported by
5643 # all of the supported platforms: 8192 (on NT/2K/XP).
5644 lt_cv_sys_max_cmd_len=8192;
5645 ;;
5646
5647 mint*)
5648 # On MiNT this can take a long time and run out of memory.
5649 lt_cv_sys_max_cmd_len=8192;
5650 ;;
5651
5652 amigaos*)
5653 # On AmigaOS with pdksh, this test takes hours, literally.
5654 # So we just punt and use a minimum line length of 8192.
5655 lt_cv_sys_max_cmd_len=8192;
5656 ;;
5657
5658 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5659 # This has been around since 386BSD, at least. Likely further.
5660 if test -x /sbin/sysctl; then
5661 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5662 elif test -x /usr/sbin/sysctl; then
5663 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5664 else
5665 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5666 fi
5667 # And add a safety zone
5668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5670 ;;
5671
5672 interix*)
5673 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5674 lt_cv_sys_max_cmd_len=196608
5675 ;;
5676
5677 os2*)
5678 # The test takes a long time on OS/2.
5679 lt_cv_sys_max_cmd_len=8192
5680 ;;
5681
5682 osf*)
5683 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5684 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5685 # nice to cause kernel panics so lets avoid the loop below.
5686 # First set a reasonable default.
5687 lt_cv_sys_max_cmd_len=16384
5688 #
5689 if test -x /sbin/sysconfig; then
5690 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5691 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5692 esac
5693 fi
5694 ;;
5695 sco3.2v5*)
5696 lt_cv_sys_max_cmd_len=102400
5697 ;;
5698 sysv5* | sco5v6* | sysv4.2uw2*)
5699 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5700 if test -n "$kargmax"; then
5701 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5702 else
5703 lt_cv_sys_max_cmd_len=32768
5704 fi
5705 ;;
5706 *)
5707 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5708 if test -n "$lt_cv_sys_max_cmd_len" && \
5709 test undefined != "$lt_cv_sys_max_cmd_len"; then
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5712 else
5713 # Make teststring a little bigger before we do anything with it.
5714 # a 1K string should be a reasonable start.
5715 for i in 1 2 3 4 5 6 7 8; do
5716 teststring=$teststring$teststring
5717 done
5718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5719 # If test is not a shell built-in, we'll probably end up computing a
5720 # maximum length that is only half of the actual maximum length, but
5721 # we can't tell.
5722 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5724 test 17 != "$i" # 1/2 MB should be enough
5725 do
5726 i=`expr $i + 1`
5727 teststring=$teststring$teststring
5728 done
5729 # Only check the string length outside the loop.
5730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5731 teststring=
5732 # Add a significant safety factor because C++ compilers can tack on
5733 # massive amounts of additional arguments before passing them to the
5734 # linker. It appears as though 1/2 is a usable value.
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5736 fi
5737 ;;
5738 esac
5739
5740 fi
5741
5742 if test -n "$lt_cv_sys_max_cmd_len"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5747 $as_echo "none" >&6; }
5748 fi
5749 max_cmd_len=$lt_cv_sys_max_cmd_len
5750
5751
5752
5753
5754
5755
5756 : ${CP="cp -f"}
5757 : ${MV="mv -f"}
5758 : ${RM="rm -f"}
5759
5760 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5761 lt_unset=unset
5762 else
5763 lt_unset=false
5764 fi
5765
5766
5767
5768
5769
5770 # test EBCDIC or ASCII
5771 case `echo X|tr X '\101'` in
5772 A) # ASCII based system
5773 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5774 lt_SP2NL='tr \040 \012'
5775 lt_NL2SP='tr \015\012 \040\040'
5776 ;;
5777 *) # EBCDIC based system
5778 lt_SP2NL='tr \100 \n'
5779 lt_NL2SP='tr \r\n \100\100'
5780 ;;
5781 esac
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5792 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5793 if ${lt_cv_to_host_file_cmd+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 case $host in
5797 *-*-mingw* )
5798 case $build in
5799 *-*-mingw* ) # actually msys
5800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5801 ;;
5802 *-*-cygwin* )
5803 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5804 ;;
5805 * ) # otherwise, assume *nix
5806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5807 ;;
5808 esac
5809 ;;
5810 *-*-cygwin* )
5811 case $build in
5812 *-*-mingw* ) # actually msys
5813 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5814 ;;
5815 *-*-cygwin* )
5816 lt_cv_to_host_file_cmd=func_convert_file_noop
5817 ;;
5818 * ) # otherwise, assume *nix
5819 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5820 ;;
5821 esac
5822 ;;
5823 * ) # unhandled hosts (and "normal" native builds)
5824 lt_cv_to_host_file_cmd=func_convert_file_noop
5825 ;;
5826 esac
5827
5828 fi
5829
5830 to_host_file_cmd=$lt_cv_to_host_file_cmd
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5832 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5833
5834
5835
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5839 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5840 if ${lt_cv_to_tool_file_cmd+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 #assume ordinary cross tools, or native build.
5844 lt_cv_to_tool_file_cmd=func_convert_file_noop
5845 case $host in
5846 *-*-mingw* )
5847 case $build in
5848 *-*-mingw* ) # actually msys
5849 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5850 ;;
5851 esac
5852 ;;
5853 esac
5854
5855 fi
5856
5857 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5859 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5860
5861
5862
5863
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5866 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5867 if ${lt_cv_ld_reload_flag+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 lt_cv_ld_reload_flag='-r'
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5873 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5874 reload_flag=$lt_cv_ld_reload_flag
5875 case $reload_flag in
5876 "" | " "*) ;;
5877 *) reload_flag=" $reload_flag" ;;
5878 esac
5879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5880 case $host_os in
5881 cygwin* | mingw* | pw32* | cegcc*)
5882 if test yes != "$GCC"; then
5883 reload_cmds=false
5884 fi
5885 ;;
5886 darwin*)
5887 if test yes = "$GCC"; then
5888 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5889 else
5890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5891 fi
5892 ;;
5893 esac
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_OBJDUMP+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$OBJDUMP"; then
5912 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 OBJDUMP=$ac_cv_prog_OBJDUMP
5932 if test -n "$OBJDUMP"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5934 $as_echo "$OBJDUMP" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 fi
5942 if test -z "$ac_cv_prog_OBJDUMP"; then
5943 ac_ct_OBJDUMP=$OBJDUMP
5944 # Extract the first word of "objdump", so it can be a program name with args.
5945 set dummy objdump; 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_OBJDUMP+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$ac_ct_OBJDUMP"; then
5952 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_OBJDUMP="objdump"
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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5972 if test -n "$ac_ct_OBJDUMP"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5974 $as_echo "$ac_ct_OBJDUMP" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980 if test "x$ac_ct_OBJDUMP" = x; then
5981 OBJDUMP="false"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987 ac_tool_warned=yes ;;
5988 esac
5989 OBJDUMP=$ac_ct_OBJDUMP
5990 fi
5991 else
5992 OBJDUMP="$ac_cv_prog_OBJDUMP"
5993 fi
5994
5995 test -z "$OBJDUMP" && OBJDUMP=objdump
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6006 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6007 if ${lt_cv_deplibs_check_method+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 lt_cv_file_magic_cmd='$MAGIC_CMD'
6011 lt_cv_file_magic_test_file=
6012 lt_cv_deplibs_check_method='unknown'
6013 # Need to set the preceding variable on all platforms that support
6014 # interlibrary dependencies.
6015 # 'none' -- dependencies not supported.
6016 # 'unknown' -- same as none, but documents that we really don't know.
6017 # 'pass_all' -- all dependencies passed with no checks.
6018 # 'test_compile' -- check by making test program.
6019 # 'file_magic [[regex]]' -- check by looking for files in library path
6020 # that responds to the $file_magic_cmd with a given extended regex.
6021 # If you have 'file' or equivalent on your system and you're not sure
6022 # whether 'pass_all' will *always* work, you probably want this one.
6023
6024 case $host_os in
6025 aix[4-9]*)
6026 lt_cv_deplibs_check_method=pass_all
6027 ;;
6028
6029 beos*)
6030 lt_cv_deplibs_check_method=pass_all
6031 ;;
6032
6033 bsdi[45]*)
6034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6035 lt_cv_file_magic_cmd='/usr/bin/file -L'
6036 lt_cv_file_magic_test_file=/shlib/libc.so
6037 ;;
6038
6039 cygwin*)
6040 # func_win32_libid is a shell function defined in ltmain.sh
6041 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6042 lt_cv_file_magic_cmd='func_win32_libid'
6043 ;;
6044
6045 mingw* | pw32*)
6046 # Base MSYS/MinGW do not provide the 'file' command needed by
6047 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6048 # unless we find 'file', for example because we are cross-compiling.
6049 if ( file / ) >/dev/null 2>&1; then
6050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6051 lt_cv_file_magic_cmd='func_win32_libid'
6052 else
6053 # Keep this pattern in sync with the one in func_win32_libid.
6054 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6055 lt_cv_file_magic_cmd='$OBJDUMP -f'
6056 fi
6057 ;;
6058
6059 cegcc*)
6060 # use the weaker test based on 'objdump'. See mingw*.
6061 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6062 lt_cv_file_magic_cmd='$OBJDUMP -f'
6063 ;;
6064
6065 darwin* | rhapsody*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 freebsd* | dragonfly*)
6070 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6071 case $host_cpu in
6072 i*86 )
6073 # Not sure whether the presence of OpenBSD here was a mistake.
6074 # Let's accept both of them until this is cleared up.
6075 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6076 lt_cv_file_magic_cmd=/usr/bin/file
6077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6078 ;;
6079 esac
6080 else
6081 lt_cv_deplibs_check_method=pass_all
6082 fi
6083 ;;
6084
6085 haiku*)
6086 lt_cv_deplibs_check_method=pass_all
6087 ;;
6088
6089 hpux10.20* | hpux11*)
6090 lt_cv_file_magic_cmd=/usr/bin/file
6091 case $host_cpu in
6092 ia64*)
6093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6094 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6095 ;;
6096 hppa*64*)
6097 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]'
6098 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6099 ;;
6100 *)
6101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6102 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6103 ;;
6104 esac
6105 ;;
6106
6107 interix[3-9]*)
6108 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6110 ;;
6111
6112 irix5* | irix6* | nonstopux*)
6113 case $LD in
6114 *-32|*"-32 ") libmagic=32-bit;;
6115 *-n32|*"-n32 ") libmagic=N32;;
6116 *-64|*"-64 ") libmagic=64-bit;;
6117 *) libmagic=never-match;;
6118 esac
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122 # This must be glibc/ELF.
6123 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6124 lt_cv_deplibs_check_method=pass_all
6125 ;;
6126
6127 netbsd* | netbsdelf*-gnu)
6128 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130 else
6131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6132 fi
6133 ;;
6134
6135 newos6*)
6136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6137 lt_cv_file_magic_cmd=/usr/bin/file
6138 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6139 ;;
6140
6141 *nto* | *qnx*)
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
6144
6145 openbsd* | bitrig*)
6146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6148 else
6149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150 fi
6151 ;;
6152
6153 osf3* | osf4* | osf5*)
6154 lt_cv_deplibs_check_method=pass_all
6155 ;;
6156
6157 rdos*)
6158 lt_cv_deplibs_check_method=pass_all
6159 ;;
6160
6161 solaris*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164
6165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6166 lt_cv_deplibs_check_method=pass_all
6167 ;;
6168
6169 sysv4 | sysv4.3*)
6170 case $host_vendor in
6171 motorola)
6172 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]'
6173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6174 ;;
6175 ncr)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178 sequent)
6179 lt_cv_file_magic_cmd='/bin/file'
6180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6181 ;;
6182 sni)
6183 lt_cv_file_magic_cmd='/bin/file'
6184 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6185 lt_cv_file_magic_test_file=/lib/libc.so
6186 ;;
6187 siemens)
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
6190 pc)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193 esac
6194 ;;
6195
6196 tpf*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199 os2*)
6200 lt_cv_deplibs_check_method=pass_all
6201 ;;
6202 esac
6203
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6206 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6207
6208 file_magic_glob=
6209 want_nocaseglob=no
6210 if test "$build" = "$host"; then
6211 case $host_os in
6212 mingw* | pw32*)
6213 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6214 want_nocaseglob=yes
6215 else
6216 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6217 fi
6218 ;;
6219 esac
6220 fi
6221
6222 file_magic_cmd=$lt_cv_file_magic_cmd
6223 deplibs_check_method=$lt_cv_deplibs_check_method
6224 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if ${ac_cv_prog_DLLTOOL+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -n "$DLLTOOL"; then
6256 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 DLLTOOL=$ac_cv_prog_DLLTOOL
6276 if test -n "$DLLTOOL"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6278 $as_echo "$DLLTOOL" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284
6285 fi
6286 if test -z "$ac_cv_prog_DLLTOOL"; then
6287 ac_ct_DLLTOOL=$DLLTOOL
6288 # Extract the first word of "dlltool", so it can be a program name with args.
6289 set dummy dlltool; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$ac_ct_DLLTOOL"; then
6296 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6316 if test -n "$ac_ct_DLLTOOL"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6318 $as_echo "$ac_ct_DLLTOOL" >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324 if test "x$ac_ct_DLLTOOL" = x; then
6325 DLLTOOL="false"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333 DLLTOOL=$ac_ct_DLLTOOL
6334 fi
6335 else
6336 DLLTOOL="$ac_cv_prog_DLLTOOL"
6337 fi
6338
6339 test -z "$DLLTOOL" && DLLTOOL=dlltool
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6351 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6352 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 lt_cv_sharedlib_from_linklib_cmd='unknown'
6356
6357 case $host_os in
6358 cygwin* | mingw* | pw32* | cegcc*)
6359 # two different shell functions defined in ltmain.sh;
6360 # decide which one to use based on capabilities of $DLLTOOL
6361 case `$DLLTOOL --help 2>&1` in
6362 *--identify-strict*)
6363 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6364 ;;
6365 *)
6366 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6367 ;;
6368 esac
6369 ;;
6370 *)
6371 # fallback: assume linklib IS sharedlib
6372 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6373 ;;
6374 esac
6375
6376 fi
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6378 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6379 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6380 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6381
6382
6383
6384
6385
6386
6387
6388
6389 if test -n "$ac_tool_prefix"; then
6390 for ac_prog in ar
6391 do
6392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_AR+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$AR"; then
6400 ac_cv_prog_AR="$AR" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 AR=$ac_cv_prog_AR
6420 if test -n "$AR"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6422 $as_echo "$AR" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428
6429 test -n "$AR" && break
6430 done
6431 fi
6432 if test -z "$AR"; then
6433 ac_ct_AR=$AR
6434 for ac_prog in ar
6435 do
6436 # Extract the first word of "$ac_prog", so it can be a program name with args.
6437 set dummy $ac_prog; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$ac_ct_AR"; then
6444 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_ac_ct_AR="$ac_prog"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6464 if test -n "$ac_ct_AR"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6466 $as_echo "$ac_ct_AR" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 test -n "$ac_ct_AR" && break
6474 done
6475
6476 if test "x$ac_ct_AR" = x; then
6477 AR="false"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485 AR=$ac_ct_AR
6486 fi
6487 fi
6488
6489 : ${AR=ar}
6490 : ${AR_FLAGS=cr}
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6503 $as_echo_n "checking for archiver @FILE support... " >&6; }
6504 if ${lt_cv_ar_at_file+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 lt_cv_ar_at_file=no
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510
6511 int
6512 main ()
6513 {
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520 echo conftest.$ac_objext > conftest.lst
6521 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6523 (eval $lt_ar_try) 2>&5
6524 ac_status=$?
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }
6527 if test 0 -eq "$ac_status"; then
6528 # Ensure the archiver fails upon bogus file names.
6529 rm -f conftest.$ac_objext libconftest.a
6530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6531 (eval $lt_ar_try) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }
6535 if test 0 -ne "$ac_status"; then
6536 lt_cv_ar_at_file=@
6537 fi
6538 fi
6539 rm -f conftest.* libconftest.a
6540
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6546 $as_echo "$lt_cv_ar_at_file" >&6; }
6547
6548 if test no = "$lt_cv_ar_at_file"; then
6549 archiver_list_spec=
6550 else
6551 archiver_list_spec=$lt_cv_ar_at_file
6552 fi
6553
6554
6555
6556
6557
6558
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}strip; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_STRIP+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$STRIP"; then
6569 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 STRIP=$ac_cv_prog_STRIP
6589 if test -n "$STRIP"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6591 $as_echo "$STRIP" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_STRIP"; then
6600 ac_ct_STRIP=$STRIP
6601 # Extract the first word of "strip", so it can be a program name with args.
6602 set dummy strip; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_STRIP"; then
6609 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_ac_ct_STRIP="strip"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6629 if test -n "$ac_ct_STRIP"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6631 $as_echo "$ac_ct_STRIP" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_STRIP" = x; then
6638 STRIP=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 STRIP=$ac_ct_STRIP
6647 fi
6648 else
6649 STRIP="$ac_cv_prog_STRIP"
6650 fi
6651
6652 test -z "$STRIP" && STRIP=:
6653
6654
6655
6656
6657
6658
6659 if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6661 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_prog_RANLIB+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$RANLIB"; then
6668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 RANLIB=$ac_cv_prog_RANLIB
6688 if test -n "$RANLIB"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6690 $as_echo "$RANLIB" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6694 fi
6695
6696
6697 fi
6698 if test -z "$ac_cv_prog_RANLIB"; then
6699 ac_ct_RANLIB=$RANLIB
6700 # Extract the first word of "ranlib", so it can be a program name with args.
6701 set dummy ranlib; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$ac_ct_RANLIB"; then
6708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_ac_ct_RANLIB="ranlib"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6728 if test -n "$ac_ct_RANLIB"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6730 $as_echo "$ac_ct_RANLIB" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736 if test "x$ac_ct_RANLIB" = x; then
6737 RANLIB=":"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740 yes:)
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745 RANLIB=$ac_ct_RANLIB
6746 fi
6747 else
6748 RANLIB="$ac_cv_prog_RANLIB"
6749 fi
6750
6751 test -z "$RANLIB" && RANLIB=:
6752
6753
6754
6755
6756
6757
6758 # Determine commands to create old-style static archives.
6759 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6760 old_postinstall_cmds='chmod 644 $oldlib'
6761 old_postuninstall_cmds=
6762
6763 if test -n "$RANLIB"; then
6764 case $host_os in
6765 bitrig* | openbsd*)
6766 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6767 ;;
6768 *)
6769 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6770 ;;
6771 esac
6772 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6773 fi
6774
6775 case $host_os in
6776 darwin*)
6777 lock_old_archive_extraction=yes ;;
6778 *)
6779 lock_old_archive_extraction=no ;;
6780 esac
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 # If no C compiler was specified, use CC.
6821 LTCC=${LTCC-"$CC"}
6822
6823 # If no C compiler flags were specified, use CFLAGS.
6824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6825
6826 # Allow CC to be a program name with arguments.
6827 compiler=$CC
6828
6829
6830 # Check for command to grab the raw symbol name followed by C symbol from nm.
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6832 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6833 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836
6837 # These are sane defaults that work on at least a few old systems.
6838 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6839
6840 # Character class describing NM global symbol codes.
6841 symcode='[BCDEGRST]'
6842
6843 # Regexp to match symbols that can be accessed directly from C.
6844 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6845
6846 # Define system-specific variables.
6847 case $host_os in
6848 aix*)
6849 symcode='[BCDT]'
6850 ;;
6851 cygwin* | mingw* | pw32* | cegcc*)
6852 symcode='[ABCDGISTW]'
6853 ;;
6854 hpux*)
6855 if test ia64 = "$host_cpu"; then
6856 symcode='[ABCDEGRST]'
6857 fi
6858 ;;
6859 irix* | nonstopux*)
6860 symcode='[BCDEGRST]'
6861 ;;
6862 osf*)
6863 symcode='[BCDEGQRST]'
6864 ;;
6865 solaris*)
6866 symcode='[BDRT]'
6867 ;;
6868 sco3.2v5*)
6869 symcode='[DT]'
6870 ;;
6871 sysv4.2uw2*)
6872 symcode='[DT]'
6873 ;;
6874 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6875 symcode='[ABDT]'
6876 ;;
6877 sysv4)
6878 symcode='[DFNSTU]'
6879 ;;
6880 esac
6881
6882 # If we're using GNU nm, then use its standard symbol codes.
6883 case `$NM -V 2>&1` in
6884 *GNU* | *'with BFD'*)
6885 symcode='[ABCDGIRSTW]' ;;
6886 esac
6887
6888 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6889 # Gets list of data symbols to import.
6890 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6891 # Adjust the below global symbol transforms to fixup imported variables.
6892 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6893 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6894 lt_c_name_lib_hook="\
6895 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6896 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6897 else
6898 # Disable hooks by default.
6899 lt_cv_sys_global_symbol_to_import=
6900 lt_cdecl_hook=
6901 lt_c_name_hook=
6902 lt_c_name_lib_hook=
6903 fi
6904
6905 # Transform an extracted symbol line into a proper C declaration.
6906 # Some systems (esp. on ia64) link data and code symbols differently,
6907 # so use this general approach.
6908 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6909 $lt_cdecl_hook\
6910 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6911 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6912
6913 # Transform an extracted symbol line into symbol name and symbol address
6914 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6915 $lt_c_name_hook\
6916 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6917 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6918
6919 # Transform an extracted symbol line into symbol name with lib prefix and
6920 # symbol address.
6921 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6922 $lt_c_name_lib_hook\
6923 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6924 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6925 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6926
6927 # Handle CRLF in mingw tool chain
6928 opt_cr=
6929 case $build_os in
6930 mingw*)
6931 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6932 ;;
6933 esac
6934
6935 # Try without a prefix underscore, then with it.
6936 for ac_symprfx in "" "_"; do
6937
6938 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6939 symxfrm="\\1 $ac_symprfx\\2 \\2"
6940
6941 # Write the raw and C identifiers.
6942 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6943 # Fake it for dumpbin and say T for any non-static function,
6944 # D for any global variable and I for any imported variable.
6945 # Also find C++ and __fastcall symbols from MSVC++,
6946 # which start with @ or ?.
6947 lt_cv_sys_global_symbol_pipe="$AWK '"\
6948 " {last_section=section; section=\$ 3};"\
6949 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6950 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6951 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6952 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6953 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6954 " \$ 0!~/External *\|/{next};"\
6955 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6956 " {if(hide[section]) next};"\
6957 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6958 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6959 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6960 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6961 " ' prfx=^$ac_symprfx"
6962 else
6963 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6964 fi
6965 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6966
6967 # Check to see that the pipe works correctly.
6968 pipe_works=no
6969
6970 rm -f conftest*
6971 cat > conftest.$ac_ext <<_LT_EOF
6972 #ifdef __cplusplus
6973 extern "C" {
6974 #endif
6975 char nm_test_var;
6976 void nm_test_func(void);
6977 void nm_test_func(void){}
6978 #ifdef __cplusplus
6979 }
6980 #endif
6981 int main(){nm_test_var='a';nm_test_func();return(0);}
6982 _LT_EOF
6983
6984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6985 (eval $ac_compile) 2>&5
6986 ac_status=$?
6987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6988 test $ac_status = 0; }; then
6989 # Now try to grab the symbols.
6990 nlist=conftest.nm
6991 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6992 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6993 # Try sorting and uniquifying the output.
6994 if sort "$nlist" | uniq > "$nlist"T; then
6995 mv -f "$nlist"T "$nlist"
6996 else
6997 rm -f "$nlist"T
6998 fi
6999
7000 # Make sure that we snagged all the symbols we need.
7001 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7002 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7003 cat <<_LT_EOF > conftest.$ac_ext
7004 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7005 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7006 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7007 relocations are performed -- see ld's documentation on pseudo-relocs. */
7008 # define LT_DLSYM_CONST
7009 #elif defined __osf__
7010 /* This system does not cope well with relocations in const data. */
7011 # define LT_DLSYM_CONST
7012 #else
7013 # define LT_DLSYM_CONST const
7014 #endif
7015
7016 #ifdef __cplusplus
7017 extern "C" {
7018 #endif
7019
7020 _LT_EOF
7021 # Now generate the symbol file.
7022 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7023
7024 cat <<_LT_EOF >> conftest.$ac_ext
7025
7026 /* The mapping between symbol names and symbols. */
7027 LT_DLSYM_CONST struct {
7028 const char *name;
7029 void *address;
7030 }
7031 lt__PROGRAM__LTX_preloaded_symbols[] =
7032 {
7033 { "@PROGRAM@", (void *) 0 },
7034 _LT_EOF
7035 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7036 cat <<\_LT_EOF >> conftest.$ac_ext
7037 {0, (void *) 0}
7038 };
7039
7040 /* This works around a problem in FreeBSD linker */
7041 #ifdef FREEBSD_WORKAROUND
7042 static const void *lt_preloaded_setup() {
7043 return lt__PROGRAM__LTX_preloaded_symbols;
7044 }
7045 #endif
7046
7047 #ifdef __cplusplus
7048 }
7049 #endif
7050 _LT_EOF
7051 # Now try linking the two files.
7052 mv conftest.$ac_objext conftstm.$ac_objext
7053 lt_globsym_save_LIBS=$LIBS
7054 lt_globsym_save_CFLAGS=$CFLAGS
7055 LIBS=conftstm.$ac_objext
7056 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7058 (eval $ac_link) 2>&5
7059 ac_status=$?
7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7062 pipe_works=yes
7063 fi
7064 LIBS=$lt_globsym_save_LIBS
7065 CFLAGS=$lt_globsym_save_CFLAGS
7066 else
7067 echo "cannot find nm_test_func in $nlist" >&5
7068 fi
7069 else
7070 echo "cannot find nm_test_var in $nlist" >&5
7071 fi
7072 else
7073 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7074 fi
7075 else
7076 echo "$progname: failed program was:" >&5
7077 cat conftest.$ac_ext >&5
7078 fi
7079 rm -rf conftest* conftst*
7080
7081 # Do not use the global_symbol_pipe unless it works.
7082 if test yes = "$pipe_works"; then
7083 break
7084 else
7085 lt_cv_sys_global_symbol_pipe=
7086 fi
7087 done
7088
7089 fi
7090
7091 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7092 lt_cv_sys_global_symbol_to_cdecl=
7093 fi
7094 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7096 $as_echo "failed" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7099 $as_echo "ok" >&6; }
7100 fi
7101
7102 # Response file support.
7103 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7104 nm_file_list_spec='@'
7105 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7106 nm_file_list_spec='@'
7107 fi
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7146 $as_echo_n "checking for sysroot... " >&6; }
7147
7148 # Check whether --with-sysroot was given.
7149 if test "${with_sysroot+set}" = set; then :
7150 withval=$with_sysroot;
7151 else
7152 with_sysroot=no
7153 fi
7154
7155
7156 lt_sysroot=
7157 case $with_sysroot in #(
7158 yes)
7159 if test yes = "$GCC"; then
7160 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7161 fi
7162 ;; #(
7163 /*)
7164 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7165 ;; #(
7166 no|'')
7167 ;; #(
7168 *)
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7170 $as_echo "$with_sysroot" >&6; }
7171 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7172 ;;
7173 esac
7174
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7176 $as_echo "${lt_sysroot:-no}" >&6; }
7177
7178
7179
7180
7181
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7183 $as_echo_n "checking for a working dd... " >&6; }
7184 if ${ac_cv_path_lt_DD+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 printf 0123456789abcdef0123456789abcdef >conftest.i
7188 cat conftest.i conftest.i >conftest2.i
7189 : ${lt_DD:=$DD}
7190 if test -z "$lt_DD"; then
7191 ac_path_lt_DD_found=false
7192 # Loop through the user's path and test for each of PROGNAME-LIST
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_prog in dd; do
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7201 as_fn_executable_p "$ac_path_lt_DD" || continue
7202 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7203 cmp -s conftest.i conftest.out \
7204 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7205 fi
7206 $ac_path_lt_DD_found && break 3
7207 done
7208 done
7209 done
7210 IFS=$as_save_IFS
7211 if test -z "$ac_cv_path_lt_DD"; then
7212 :
7213 fi
7214 else
7215 ac_cv_path_lt_DD=$lt_DD
7216 fi
7217
7218 rm -f conftest.i conftest2.i conftest.out
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7221 $as_echo "$ac_cv_path_lt_DD" >&6; }
7222
7223
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7225 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7226 if ${lt_cv_truncate_bin+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 printf 0123456789abcdef0123456789abcdef >conftest.i
7230 cat conftest.i conftest.i >conftest2.i
7231 lt_cv_truncate_bin=
7232 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7233 cmp -s conftest.i conftest.out \
7234 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7235 fi
7236 rm -f conftest.i conftest2.i conftest.out
7237 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7238 fi
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7240 $as_echo "$lt_cv_truncate_bin" >&6; }
7241
7242
7243
7244
7245
7246
7247
7248 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7249 func_cc_basename ()
7250 {
7251 for cc_temp in $*""; do
7252 case $cc_temp in
7253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7255 \-*) ;;
7256 *) break;;
7257 esac
7258 done
7259 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7260 }
7261
7262 # Check whether --enable-libtool-lock was given.
7263 if test "${enable_libtool_lock+set}" = set; then :
7264 enableval=$enable_libtool_lock;
7265 fi
7266
7267 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7268
7269 # Some flags need to be propagated to the compiler or linker for good
7270 # libtool support.
7271 case $host in
7272 ia64-*-hpux*)
7273 # Find out what ABI is being produced by ac_compile, and set mode
7274 # options accordingly.
7275 echo 'int i;' > conftest.$ac_ext
7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7277 (eval $ac_compile) 2>&5
7278 ac_status=$?
7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }; then
7281 case `/usr/bin/file conftest.$ac_objext` in
7282 *ELF-32*)
7283 HPUX_IA64_MODE=32
7284 ;;
7285 *ELF-64*)
7286 HPUX_IA64_MODE=64
7287 ;;
7288 esac
7289 fi
7290 rm -rf conftest*
7291 ;;
7292 *-*-irix6*)
7293 # Find out what ABI is being produced by ac_compile, and set linker
7294 # options accordingly.
7295 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297 (eval $ac_compile) 2>&5
7298 ac_status=$?
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; }; then
7301 if test yes = "$lt_cv_prog_gnu_ld"; then
7302 case `/usr/bin/file conftest.$ac_objext` in
7303 *32-bit*)
7304 LD="${LD-ld} -melf32bsmip"
7305 ;;
7306 *N32*)
7307 LD="${LD-ld} -melf32bmipn32"
7308 ;;
7309 *64-bit*)
7310 LD="${LD-ld} -melf64bmip"
7311 ;;
7312 esac
7313 else
7314 case `/usr/bin/file conftest.$ac_objext` in
7315 *32-bit*)
7316 LD="${LD-ld} -32"
7317 ;;
7318 *N32*)
7319 LD="${LD-ld} -n32"
7320 ;;
7321 *64-bit*)
7322 LD="${LD-ld} -64"
7323 ;;
7324 esac
7325 fi
7326 fi
7327 rm -rf conftest*
7328 ;;
7329
7330 mips64*-*linux*)
7331 # Find out what ABI is being produced by ac_compile, and set linker
7332 # options accordingly.
7333 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335 (eval $ac_compile) 2>&5
7336 ac_status=$?
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7339 emul=elf
7340 case `/usr/bin/file conftest.$ac_objext` in
7341 *32-bit*)
7342 emul="${emul}32"
7343 ;;
7344 *64-bit*)
7345 emul="${emul}64"
7346 ;;
7347 esac
7348 case `/usr/bin/file conftest.$ac_objext` in
7349 *MSB*)
7350 emul="${emul}btsmip"
7351 ;;
7352 *LSB*)
7353 emul="${emul}ltsmip"
7354 ;;
7355 esac
7356 case `/usr/bin/file conftest.$ac_objext` in
7357 *N32*)
7358 emul="${emul}n32"
7359 ;;
7360 esac
7361 LD="${LD-ld} -m $emul"
7362 fi
7363 rm -rf conftest*
7364 ;;
7365
7366 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7367 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7368 # Find out what ABI is being produced by ac_compile, and set linker
7369 # options accordingly. Note that the listed cases only cover the
7370 # situations where additional linker options are needed (such as when
7371 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7372 # vice versa); the common cases where no linker options are needed do
7373 # not appear in the list.
7374 echo 'int i;' > conftest.$ac_ext
7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7376 (eval $ac_compile) 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379 test $ac_status = 0; }; then
7380 case `/usr/bin/file conftest.o` in
7381 *32-bit*)
7382 case $host in
7383 x86_64-*kfreebsd*-gnu)
7384 LD="${LD-ld} -m elf_i386_fbsd"
7385 ;;
7386 x86_64-*linux*)
7387 case `/usr/bin/file conftest.o` in
7388 *x86-64*)
7389 LD="${LD-ld} -m elf32_x86_64"
7390 ;;
7391 *)
7392 LD="${LD-ld} -m elf_i386"
7393 ;;
7394 esac
7395 ;;
7396 powerpc64le-*linux*)
7397 LD="${LD-ld} -m elf32lppclinux"
7398 ;;
7399 powerpc64-*linux*)
7400 LD="${LD-ld} -m elf32ppclinux"
7401 ;;
7402 s390x-*linux*)
7403 LD="${LD-ld} -m elf_s390"
7404 ;;
7405 sparc64-*linux*)
7406 LD="${LD-ld} -m elf32_sparc"
7407 ;;
7408 esac
7409 ;;
7410 *64-bit*)
7411 case $host in
7412 x86_64-*kfreebsd*-gnu)
7413 LD="${LD-ld} -m elf_x86_64_fbsd"
7414 ;;
7415 x86_64-*linux*)
7416 LD="${LD-ld} -m elf_x86_64"
7417 ;;
7418 powerpcle-*linux*)
7419 LD="${LD-ld} -m elf64lppc"
7420 ;;
7421 powerpc-*linux*)
7422 LD="${LD-ld} -m elf64ppc"
7423 ;;
7424 s390*-*linux*|s390*-*tpf*)
7425 LD="${LD-ld} -m elf64_s390"
7426 ;;
7427 sparc*-*linux*)
7428 LD="${LD-ld} -m elf64_sparc"
7429 ;;
7430 esac
7431 ;;
7432 esac
7433 fi
7434 rm -rf conftest*
7435 ;;
7436
7437 *-*-sco3.2v5*)
7438 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7439 SAVE_CFLAGS=$CFLAGS
7440 CFLAGS="$CFLAGS -belf"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7442 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7443 if ${lt_cv_cc_needs_belf+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 ac_ext=c
7447 ac_cpp='$CPP $CPPFLAGS'
7448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7451
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454
7455 int
7456 main ()
7457 {
7458
7459 ;
7460 return 0;
7461 }
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"; then :
7464 lt_cv_cc_needs_belf=yes
7465 else
7466 lt_cv_cc_needs_belf=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
7470 ac_ext=c
7471 ac_cpp='$CPP $CPPFLAGS'
7472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7478 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7479 if test yes != "$lt_cv_cc_needs_belf"; then
7480 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7481 CFLAGS=$SAVE_CFLAGS
7482 fi
7483 ;;
7484 *-*solaris*)
7485 # Find out what ABI is being produced by ac_compile, and set linker
7486 # options accordingly.
7487 echo 'int i;' > conftest.$ac_ext
7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7489 (eval $ac_compile) 2>&5
7490 ac_status=$?
7491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492 test $ac_status = 0; }; then
7493 case `/usr/bin/file conftest.o` in
7494 *64-bit*)
7495 case $lt_cv_prog_gnu_ld in
7496 yes*)
7497 case $host in
7498 i?86-*-solaris*|x86_64-*-solaris*)
7499 LD="${LD-ld} -m elf_x86_64"
7500 ;;
7501 sparc*-*-solaris*)
7502 LD="${LD-ld} -m elf64_sparc"
7503 ;;
7504 esac
7505 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7506 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7507 LD=${LD-ld}_sol2
7508 fi
7509 ;;
7510 *)
7511 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7512 LD="${LD-ld} -64"
7513 fi
7514 ;;
7515 esac
7516 ;;
7517 esac
7518 fi
7519 rm -rf conftest*
7520 ;;
7521 esac
7522
7523 need_locks=$enable_libtool_lock
7524
7525 if test -n "$ac_tool_prefix"; then
7526 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7527 set dummy ${ac_tool_prefix}mt; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 if test -n "$MANIFEST_TOOL"; then
7534 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547 done
7548 done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7554 if test -n "$MANIFEST_TOOL"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7556 $as_echo "$MANIFEST_TOOL" >&6; }
7557 else
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562
7563 fi
7564 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7565 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7566 # Extract the first word of "mt", so it can be a program name with args.
7567 set dummy mt; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 if test -n "$ac_ct_MANIFEST_TOOL"; then
7574 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7586 fi
7587 done
7588 done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7594 if test -n "$ac_ct_MANIFEST_TOOL"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7596 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7597 else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7603 MANIFEST_TOOL=":"
7604 else
7605 case $cross_compiling:$ac_tool_warned in
7606 yes:)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609 ac_tool_warned=yes ;;
7610 esac
7611 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7612 fi
7613 else
7614 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7615 fi
7616
7617 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7619 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7620 if ${lt_cv_path_mainfest_tool+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 lt_cv_path_mainfest_tool=no
7624 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7625 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7626 cat conftest.err >&5
7627 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7628 lt_cv_path_mainfest_tool=yes
7629 fi
7630 rm -f conftest*
7631 fi
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7633 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7634 if test yes != "$lt_cv_path_mainfest_tool"; then
7635 MANIFEST_TOOL=:
7636 fi
7637
7638
7639
7640
7641
7642
7643 case $host_os in
7644 rhapsody* | darwin*)
7645 if test -n "$ac_tool_prefix"; then
7646 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7647 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$DSYMUTIL"; then
7654 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667 done
7668 done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7674 if test -n "$DSYMUTIL"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7676 $as_echo "$DSYMUTIL" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682
7683 fi
7684 if test -z "$ac_cv_prog_DSYMUTIL"; then
7685 ac_ct_DSYMUTIL=$DSYMUTIL
7686 # Extract the first word of "dsymutil", so it can be a program name with args.
7687 set dummy dsymutil; ac_word=$2
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689 $as_echo_n "checking for $ac_word... " >&6; }
7690 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 if test -n "$ac_ct_DSYMUTIL"; then
7694 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707 done
7708 done
7709 IFS=$as_save_IFS
7710
7711 fi
7712 fi
7713 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7714 if test -n "$ac_ct_DSYMUTIL"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7716 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7717 else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722 if test "x$ac_ct_DSYMUTIL" = x; then
7723 DSYMUTIL=":"
7724 else
7725 case $cross_compiling:$ac_tool_warned in
7726 yes:)
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7729 ac_tool_warned=yes ;;
7730 esac
7731 DSYMUTIL=$ac_ct_DSYMUTIL
7732 fi
7733 else
7734 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7735 fi
7736
7737 if test -n "$ac_tool_prefix"; then
7738 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7739 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_prog_NMEDIT+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 if test -n "$NMEDIT"; then
7746 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 NMEDIT=$ac_cv_prog_NMEDIT
7766 if test -n "$NMEDIT"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7768 $as_echo "$NMEDIT" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773
7774
7775 fi
7776 if test -z "$ac_cv_prog_NMEDIT"; then
7777 ac_ct_NMEDIT=$NMEDIT
7778 # Extract the first word of "nmedit", so it can be a program name with args.
7779 set dummy nmedit; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$ac_ct_NMEDIT"; then
7786 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7806 if test -n "$ac_ct_NMEDIT"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7808 $as_echo "$ac_ct_NMEDIT" >&6; }
7809 else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813
7814 if test "x$ac_ct_NMEDIT" = x; then
7815 NMEDIT=":"
7816 else
7817 case $cross_compiling:$ac_tool_warned in
7818 yes:)
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7821 ac_tool_warned=yes ;;
7822 esac
7823 NMEDIT=$ac_ct_NMEDIT
7824 fi
7825 else
7826 NMEDIT="$ac_cv_prog_NMEDIT"
7827 fi
7828
7829 if test -n "$ac_tool_prefix"; then
7830 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7831 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_LIPO+:} false; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$LIPO"; then
7838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7850 fi
7851 done
7852 done
7853 IFS=$as_save_IFS
7854
7855 fi
7856 fi
7857 LIPO=$ac_cv_prog_LIPO
7858 if test -n "$LIPO"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7860 $as_echo "$LIPO" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7864 fi
7865
7866
7867 fi
7868 if test -z "$ac_cv_prog_LIPO"; then
7869 ac_ct_LIPO=$LIPO
7870 # Extract the first word of "lipo", so it can be a program name with args.
7871 set dummy lipo; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 if test -n "$ac_ct_LIPO"; then
7878 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7887 ac_cv_prog_ac_ct_LIPO="lipo"
7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 break 2
7890 fi
7891 done
7892 done
7893 IFS=$as_save_IFS
7894
7895 fi
7896 fi
7897 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7898 if test -n "$ac_ct_LIPO"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7900 $as_echo "$ac_ct_LIPO" >&6; }
7901 else
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7904 fi
7905
7906 if test "x$ac_ct_LIPO" = x; then
7907 LIPO=":"
7908 else
7909 case $cross_compiling:$ac_tool_warned in
7910 yes:)
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7913 ac_tool_warned=yes ;;
7914 esac
7915 LIPO=$ac_ct_LIPO
7916 fi
7917 else
7918 LIPO="$ac_cv_prog_LIPO"
7919 fi
7920
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7923 set dummy ${ac_tool_prefix}otool; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_OTOOL+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$OTOOL"; then
7930 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 OTOOL=$ac_cv_prog_OTOOL
7950 if test -n "$OTOOL"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7952 $as_echo "$OTOOL" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 fi
7957
7958
7959 fi
7960 if test -z "$ac_cv_prog_OTOOL"; then
7961 ac_ct_OTOOL=$OTOOL
7962 # Extract the first word of "otool", so it can be a program name with args.
7963 set dummy otool; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 if test -n "$ac_ct_OTOOL"; then
7970 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_ac_ct_OTOOL="otool"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987 fi
7988 fi
7989 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7990 if test -n "$ac_ct_OTOOL"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7992 $as_echo "$ac_ct_OTOOL" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998 if test "x$ac_ct_OTOOL" = x; then
7999 OTOOL=":"
8000 else
8001 case $cross_compiling:$ac_tool_warned in
8002 yes:)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned=yes ;;
8006 esac
8007 OTOOL=$ac_ct_OTOOL
8008 fi
8009 else
8010 OTOOL="$ac_cv_prog_OTOOL"
8011 fi
8012
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if ${ac_cv_prog_OTOOL64+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$OTOOL64"; then
8022 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039 fi
8040 fi
8041 OTOOL64=$ac_cv_prog_OTOOL64
8042 if test -n "$OTOOL64"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8044 $as_echo "$OTOOL64" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050
8051 fi
8052 if test -z "$ac_cv_prog_OTOOL64"; then
8053 ac_ct_OTOOL64=$OTOOL64
8054 # Extract the first word of "otool64", so it can be a program name with args.
8055 set dummy otool64; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -n "$ac_ct_OTOOL64"; then
8062 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_ac_ct_OTOOL64="otool64"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075 done
8076 done
8077 IFS=$as_save_IFS
8078
8079 fi
8080 fi
8081 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8082 if test -n "$ac_ct_OTOOL64"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8084 $as_echo "$ac_ct_OTOOL64" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8088 fi
8089
8090 if test "x$ac_ct_OTOOL64" = x; then
8091 OTOOL64=":"
8092 else
8093 case $cross_compiling:$ac_tool_warned in
8094 yes:)
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8098 esac
8099 OTOOL64=$ac_ct_OTOOL64
8100 fi
8101 else
8102 OTOOL64="$ac_cv_prog_OTOOL64"
8103 fi
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8132 $as_echo_n "checking for -single_module linker flag... " >&6; }
8133 if ${lt_cv_apple_cc_single_mod+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 lt_cv_apple_cc_single_mod=no
8137 if test -z "$LT_MULTI_MODULE"; then
8138 # By default we will add the -single_module flag. You can override
8139 # by either setting the environment variable LT_MULTI_MODULE
8140 # non-empty at configure time, or by adding -multi_module to the
8141 # link flags.
8142 rm -rf libconftest.dylib*
8143 echo "int foo(void){return 1;}" > conftest.c
8144 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8145 -dynamiclib -Wl,-single_module conftest.c" >&5
8146 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8147 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8148 _lt_result=$?
8149 # If there is a non-empty error log, and "single_module"
8150 # appears in it, assume the flag caused a linker warning
8151 if test -s conftest.err && $GREP single_module conftest.err; then
8152 cat conftest.err >&5
8153 # Otherwise, if the output was created with a 0 exit code from
8154 # the compiler, it worked.
8155 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8156 lt_cv_apple_cc_single_mod=yes
8157 else
8158 cat conftest.err >&5
8159 fi
8160 rm -rf libconftest.dylib*
8161 rm -f conftest.*
8162 fi
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8165 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8166
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8168 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8169 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 lt_cv_ld_exported_symbols_list=no
8173 save_LDFLAGS=$LDFLAGS
8174 echo "_main" > conftest.sym
8175 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178
8179 int
8180 main ()
8181 {
8182
8183 ;
8184 return 0;
8185 }
8186 _ACEOF
8187 if ac_fn_c_try_link "$LINENO"; then :
8188 lt_cv_ld_exported_symbols_list=yes
8189 else
8190 lt_cv_ld_exported_symbols_list=no
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194 LDFLAGS=$save_LDFLAGS
8195
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8198 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8201 $as_echo_n "checking for -force_load linker flag... " >&6; }
8202 if ${lt_cv_ld_force_load+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 lt_cv_ld_force_load=no
8206 cat > conftest.c << _LT_EOF
8207 int forced_loaded() { return 2;}
8208 _LT_EOF
8209 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8210 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8211 echo "$AR cr libconftest.a conftest.o" >&5
8212 $AR cr libconftest.a conftest.o 2>&5
8213 echo "$RANLIB libconftest.a" >&5
8214 $RANLIB libconftest.a 2>&5
8215 cat > conftest.c << _LT_EOF
8216 int main() { return 0;}
8217 _LT_EOF
8218 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8219 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8220 _lt_result=$?
8221 if test -s conftest.err && $GREP force_load conftest.err; then
8222 cat conftest.err >&5
8223 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8224 lt_cv_ld_force_load=yes
8225 else
8226 cat conftest.err >&5
8227 fi
8228 rm -f conftest.err libconftest.a conftest conftest.c
8229 rm -rf conftest.dSYM
8230
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8233 $as_echo "$lt_cv_ld_force_load" >&6; }
8234 case $host_os in
8235 rhapsody* | darwin1.[012])
8236 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8237 darwin1.*)
8238 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8239 darwin*) # darwin 5.x on
8240 # if running on 10.5 or later, the deployment target defaults
8241 # to the OS version, if on x86, and 10.4, the deployment
8242 # target defaults to 10.4. Don't you love it?
8243 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8244 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8245 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8246 10.[012][,.]*)
8247 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8248 10.*|11.*)
8249 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8250 esac
8251 ;;
8252 esac
8253 if test yes = "$lt_cv_apple_cc_single_mod"; then
8254 _lt_dar_single_mod='$single_module'
8255 fi
8256 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8257 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8258 else
8259 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8260 fi
8261 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8262 _lt_dsymutil='~$DSYMUTIL $lib || :'
8263 else
8264 _lt_dsymutil=
8265 fi
8266 ;;
8267 esac
8268
8269 # func_munge_path_list VARIABLE PATH
8270 # -----------------------------------
8271 # VARIABLE is name of variable containing _space_ separated list of
8272 # directories to be munged by the contents of PATH, which is string
8273 # having a format:
8274 # "DIR[:DIR]:"
8275 # string "DIR[ DIR]" will be prepended to VARIABLE
8276 # ":DIR[:DIR]"
8277 # string "DIR[ DIR]" will be appended to VARIABLE
8278 # "DIRP[:DIRP]::[DIRA:]DIRA"
8279 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8280 # "DIRA[ DIRA]" will be appended to VARIABLE
8281 # "DIR[:DIR]"
8282 # VARIABLE will be replaced by "DIR[ DIR]"
8283 func_munge_path_list ()
8284 {
8285 case x$2 in
8286 x)
8287 ;;
8288 *:)
8289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8290 ;;
8291 x:*)
8292 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8293 ;;
8294 *::*)
8295 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8296 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8297 ;;
8298 *)
8299 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8300 ;;
8301 esac
8302 }
8303
8304 ac_ext=c
8305 ac_cpp='$CPP $CPPFLAGS'
8306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8311 # On Suns, sometimes $CPP names a directory.
8312 if test -n "$CPP" && test -d "$CPP"; then
8313 CPP=
8314 fi
8315 if test -z "$CPP"; then
8316 if ${ac_cv_prog_CPP+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 # Double quotes because CPP needs to be expanded
8320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8321 do
8322 ac_preproc_ok=false
8323 for ac_c_preproc_warn_flag in '' yes
8324 do
8325 # Use a header file that comes with gcc, so configuring glibc
8326 # with a fresh cross-compiler works.
8327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8328 # <limits.h> exists even on freestanding compilers.
8329 # On the NeXT, cc -E runs the code through the compiler's parser,
8330 # not just through cpp. "Syntax error" is here to catch this case.
8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8333 #ifdef __STDC__
8334 # include <limits.h>
8335 #else
8336 # include <assert.h>
8337 #endif
8338 Syntax error
8339 _ACEOF
8340 if ac_fn_c_try_cpp "$LINENO"; then :
8341
8342 else
8343 # Broken: fails on valid input.
8344 continue
8345 fi
8346 rm -f conftest.err conftest.i conftest.$ac_ext
8347
8348 # OK, works on sane cases. Now check whether nonexistent headers
8349 # can be detected and how.
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 #include <ac_nonexistent.h>
8353 _ACEOF
8354 if ac_fn_c_try_cpp "$LINENO"; then :
8355 # Broken: success on invalid input.
8356 continue
8357 else
8358 # Passes both tests.
8359 ac_preproc_ok=:
8360 break
8361 fi
8362 rm -f conftest.err conftest.i conftest.$ac_ext
8363
8364 done
8365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8366 rm -f conftest.i conftest.err conftest.$ac_ext
8367 if $ac_preproc_ok; then :
8368 break
8369 fi
8370
8371 done
8372 ac_cv_prog_CPP=$CPP
8373
8374 fi
8375 CPP=$ac_cv_prog_CPP
8376 else
8377 ac_cv_prog_CPP=$CPP
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8380 $as_echo "$CPP" >&6; }
8381 ac_preproc_ok=false
8382 for ac_c_preproc_warn_flag in '' yes
8383 do
8384 # Use a header file that comes with gcc, so configuring glibc
8385 # with a fresh cross-compiler works.
8386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8387 # <limits.h> exists even on freestanding compilers.
8388 # On the NeXT, cc -E runs the code through the compiler's parser,
8389 # not just through cpp. "Syntax error" is here to catch this case.
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 #ifdef __STDC__
8393 # include <limits.h>
8394 #else
8395 # include <assert.h>
8396 #endif
8397 Syntax error
8398 _ACEOF
8399 if ac_fn_c_try_cpp "$LINENO"; then :
8400
8401 else
8402 # Broken: fails on valid input.
8403 continue
8404 fi
8405 rm -f conftest.err conftest.i conftest.$ac_ext
8406
8407 # OK, works on sane cases. Now check whether nonexistent headers
8408 # can be detected and how.
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 #include <ac_nonexistent.h>
8412 _ACEOF
8413 if ac_fn_c_try_cpp "$LINENO"; then :
8414 # Broken: success on invalid input.
8415 continue
8416 else
8417 # Passes both tests.
8418 ac_preproc_ok=:
8419 break
8420 fi
8421 rm -f conftest.err conftest.i conftest.$ac_ext
8422
8423 done
8424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8425 rm -f conftest.i conftest.err conftest.$ac_ext
8426 if $ac_preproc_ok; then :
8427
8428 else
8429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8431 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8432 See \`config.log' for more details" "$LINENO" 5; }
8433 fi
8434
8435 ac_ext=c
8436 ac_cpp='$CPP $CPPFLAGS'
8437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8440
8441
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8443 $as_echo_n "checking for ANSI C header files... " >&6; }
8444 if ${ac_cv_header_stdc+:} false; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8449 #include <stdlib.h>
8450 #include <stdarg.h>
8451 #include <string.h>
8452 #include <float.h>
8453
8454 int
8455 main ()
8456 {
8457
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 if ac_fn_c_try_compile "$LINENO"; then :
8463 ac_cv_header_stdc=yes
8464 else
8465 ac_cv_header_stdc=no
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468
8469 if test $ac_cv_header_stdc = yes; then
8470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473 #include <string.h>
8474
8475 _ACEOF
8476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8477 $EGREP "memchr" >/dev/null 2>&1; then :
8478
8479 else
8480 ac_cv_header_stdc=no
8481 fi
8482 rm -f conftest*
8483
8484 fi
8485
8486 if test $ac_cv_header_stdc = yes; then
8487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 #include <stdlib.h>
8491
8492 _ACEOF
8493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8494 $EGREP "free" >/dev/null 2>&1; then :
8495
8496 else
8497 ac_cv_header_stdc=no
8498 fi
8499 rm -f conftest*
8500
8501 fi
8502
8503 if test $ac_cv_header_stdc = yes; then
8504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8505 if test "$cross_compiling" = yes; then :
8506 :
8507 else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 #include <ctype.h>
8511 #include <stdlib.h>
8512 #if ((' ' & 0x0FF) == 0x020)
8513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8515 #else
8516 # define ISLOWER(c) \
8517 (('a' <= (c) && (c) <= 'i') \
8518 || ('j' <= (c) && (c) <= 'r') \
8519 || ('s' <= (c) && (c) <= 'z'))
8520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8521 #endif
8522
8523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8524 int
8525 main ()
8526 {
8527 int i;
8528 for (i = 0; i < 256; i++)
8529 if (XOR (islower (i), ISLOWER (i))
8530 || toupper (i) != TOUPPER (i))
8531 return 2;
8532 return 0;
8533 }
8534 _ACEOF
8535 if ac_fn_c_try_run "$LINENO"; then :
8536
8537 else
8538 ac_cv_header_stdc=no
8539 fi
8540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8541 conftest.$ac_objext conftest.beam conftest.$ac_ext
8542 fi
8543
8544 fi
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8547 $as_echo "$ac_cv_header_stdc" >&6; }
8548 if test $ac_cv_header_stdc = yes; then
8549
8550 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8551
8552 fi
8553
8554 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8555 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8556 inttypes.h stdint.h unistd.h
8557 do :
8558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8560 "
8561 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8562 cat >>confdefs.h <<_ACEOF
8563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8564 _ACEOF
8565
8566 fi
8567
8568 done
8569
8570
8571 for ac_header in dlfcn.h
8572 do :
8573 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8574 "
8575 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8576 cat >>confdefs.h <<_ACEOF
8577 #define HAVE_DLFCN_H 1
8578 _ACEOF
8579
8580 fi
8581
8582 done
8583
8584
8585
8586
8587 func_stripname_cnf ()
8588 {
8589 case $2 in
8590 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8591 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8592 esac
8593 } # func_stripname_cnf
8594
8595
8596
8597
8598
8599 # Set options
8600
8601
8602
8603 enable_dlopen=no
8604
8605
8606 enable_win32_dll=no
8607
8608
8609 # Check whether --enable-shared was given.
8610 if test "${enable_shared+set}" = set; then :
8611 enableval=$enable_shared; p=${PACKAGE-default}
8612 case $enableval in
8613 yes) enable_shared=yes ;;
8614 no) enable_shared=no ;;
8615 *)
8616 enable_shared=no
8617 # Look at the argument we got. We use all the common list separators.
8618 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8619 for pkg in $enableval; do
8620 IFS=$lt_save_ifs
8621 if test "X$pkg" = "X$p"; then
8622 enable_shared=yes
8623 fi
8624 done
8625 IFS=$lt_save_ifs
8626 ;;
8627 esac
8628 else
8629 enable_shared=yes
8630 fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 # Check whether --enable-static was given.
8641 if test "${enable_static+set}" = set; then :
8642 enableval=$enable_static; p=${PACKAGE-default}
8643 case $enableval in
8644 yes) enable_static=yes ;;
8645 no) enable_static=no ;;
8646 *)
8647 enable_static=no
8648 # Look at the argument we got. We use all the common list separators.
8649 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8650 for pkg in $enableval; do
8651 IFS=$lt_save_ifs
8652 if test "X$pkg" = "X$p"; then
8653 enable_static=yes
8654 fi
8655 done
8656 IFS=$lt_save_ifs
8657 ;;
8658 esac
8659 else
8660 enable_static=yes
8661 fi
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672 # Check whether --with-pic was given.
8673 if test "${with_pic+set}" = set; then :
8674 withval=$with_pic; lt_p=${PACKAGE-default}
8675 case $withval in
8676 yes|no) pic_mode=$withval ;;
8677 *)
8678 pic_mode=default
8679 # Look at the argument we got. We use all the common list separators.
8680 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8681 for lt_pkg in $withval; do
8682 IFS=$lt_save_ifs
8683 if test "X$lt_pkg" = "X$lt_p"; then
8684 pic_mode=yes
8685 fi
8686 done
8687 IFS=$lt_save_ifs
8688 ;;
8689 esac
8690 else
8691 pic_mode=default
8692 fi
8693
8694
8695
8696
8697
8698
8699
8700
8701 # Check whether --enable-fast-install was given.
8702 if test "${enable_fast_install+set}" = set; then :
8703 enableval=$enable_fast_install; p=${PACKAGE-default}
8704 case $enableval in
8705 yes) enable_fast_install=yes ;;
8706 no) enable_fast_install=no ;;
8707 *)
8708 enable_fast_install=no
8709 # Look at the argument we got. We use all the common list separators.
8710 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8711 for pkg in $enableval; do
8712 IFS=$lt_save_ifs
8713 if test "X$pkg" = "X$p"; then
8714 enable_fast_install=yes
8715 fi
8716 done
8717 IFS=$lt_save_ifs
8718 ;;
8719 esac
8720 else
8721 enable_fast_install=yes
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731 shared_archive_member_spec=
8732 case $host,$enable_shared in
8733 power*-*-aix[5-9]*,yes)
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8735 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8736
8737 # Check whether --with-aix-soname was given.
8738 if test "${with_aix_soname+set}" = set; then :
8739 withval=$with_aix_soname; case $withval in
8740 aix|svr4|both)
8741 ;;
8742 *)
8743 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8744 ;;
8745 esac
8746 lt_cv_with_aix_soname=$with_aix_soname
8747 else
8748 if ${lt_cv_with_aix_soname+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 lt_cv_with_aix_soname=aix
8752 fi
8753
8754 with_aix_soname=$lt_cv_with_aix_soname
8755 fi
8756
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8758 $as_echo "$with_aix_soname" >&6; }
8759 if test aix != "$with_aix_soname"; then
8760 # For the AIX way of multilib, we name the shared archive member
8761 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8762 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8763 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8764 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8765 if test 64 = "${OBJECT_MODE-32}"; then
8766 shared_archive_member_spec=shr_64
8767 else
8768 shared_archive_member_spec=shr
8769 fi
8770 fi
8771 ;;
8772 *)
8773 with_aix_soname=aix
8774 ;;
8775 esac
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786 # This can be used to rebuild libtool when needed
8787 LIBTOOL_DEPS=$ltmain
8788
8789 # Always use our own libtool.
8790 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821 test -z "$LN_S" && LN_S="ln -s"
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836 if test -n "${ZSH_VERSION+set}"; then
8837 setopt NO_GLOB_SUBST
8838 fi
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8841 $as_echo_n "checking for objdir... " >&6; }
8842 if ${lt_cv_objdir+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 rm -f .libs 2>/dev/null
8846 mkdir .libs 2>/dev/null
8847 if test -d .libs; then
8848 lt_cv_objdir=.libs
8849 else
8850 # MS-DOS does not allow filenames that begin with a dot.
8851 lt_cv_objdir=_libs
8852 fi
8853 rmdir .libs 2>/dev/null
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8856 $as_echo "$lt_cv_objdir" >&6; }
8857 objdir=$lt_cv_objdir
8858
8859
8860
8861
8862
8863 cat >>confdefs.h <<_ACEOF
8864 #define LT_OBJDIR "$lt_cv_objdir/"
8865 _ACEOF
8866
8867
8868
8869
8870 case $host_os in
8871 aix3*)
8872 # AIX sometimes has problems with the GCC collect2 program. For some
8873 # reason, if we set the COLLECT_NAMES environment variable, the problems
8874 # vanish in a puff of smoke.
8875 if test set != "${COLLECT_NAMES+set}"; then
8876 COLLECT_NAMES=
8877 export COLLECT_NAMES
8878 fi
8879 ;;
8880 esac
8881
8882 # Global variables:
8883 ofile=libtool
8884 can_build_shared=yes
8885
8886 # All known linkers require a '.a' archive for static linking (except MSVC,
8887 # which needs '.lib').
8888 libext=a
8889
8890 with_gnu_ld=$lt_cv_prog_gnu_ld
8891
8892 old_CC=$CC
8893 old_CFLAGS=$CFLAGS
8894
8895 # Set sane defaults for various variables
8896 test -z "$CC" && CC=cc
8897 test -z "$LTCC" && LTCC=$CC
8898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8899 test -z "$LD" && LD=ld
8900 test -z "$ac_objext" && ac_objext=o
8901
8902 func_cc_basename $compiler
8903 cc_basename=$func_cc_basename_result
8904
8905
8906 # Only perform the check for file, if the check method requires it
8907 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8908 case $deplibs_check_method in
8909 file_magic*)
8910 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8912 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8913 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 case $MAGIC_CMD in
8917 [\\/*] | ?:[\\/]*)
8918 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8919 ;;
8920 *)
8921 lt_save_MAGIC_CMD=$MAGIC_CMD
8922 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8923 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8924 for ac_dir in $ac_dummy; do
8925 IFS=$lt_save_ifs
8926 test -z "$ac_dir" && ac_dir=.
8927 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8928 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8929 if test -n "$file_magic_test_file"; then
8930 case $deplibs_check_method in
8931 "file_magic "*)
8932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8933 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8935 $EGREP "$file_magic_regex" > /dev/null; then
8936 :
8937 else
8938 cat <<_LT_EOF 1>&2
8939
8940 *** Warning: the command libtool uses to detect shared libraries,
8941 *** $file_magic_cmd, produces output that libtool cannot recognize.
8942 *** The result is that libtool may fail to recognize shared libraries
8943 *** as such. This will affect the creation of libtool libraries that
8944 *** depend on shared libraries, but programs linked with such libtool
8945 *** libraries will work regardless of this problem. Nevertheless, you
8946 *** may want to report the problem to your system manager and/or to
8947 *** [email protected]
8948
8949 _LT_EOF
8950 fi ;;
8951 esac
8952 fi
8953 break
8954 fi
8955 done
8956 IFS=$lt_save_ifs
8957 MAGIC_CMD=$lt_save_MAGIC_CMD
8958 ;;
8959 esac
8960 fi
8961
8962 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8963 if test -n "$MAGIC_CMD"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8965 $as_echo "$MAGIC_CMD" >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8969 fi
8970
8971
8972
8973
8974
8975 if test -z "$lt_cv_path_MAGIC_CMD"; then
8976 if test -n "$ac_tool_prefix"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8978 $as_echo_n "checking for file... " >&6; }
8979 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 case $MAGIC_CMD in
8983 [\\/*] | ?:[\\/]*)
8984 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8985 ;;
8986 *)
8987 lt_save_MAGIC_CMD=$MAGIC_CMD
8988 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8989 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8990 for ac_dir in $ac_dummy; do
8991 IFS=$lt_save_ifs
8992 test -z "$ac_dir" && ac_dir=.
8993 if test -f "$ac_dir/file"; then
8994 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8995 if test -n "$file_magic_test_file"; then
8996 case $deplibs_check_method in
8997 "file_magic "*)
8998 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8999 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9000 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9001 $EGREP "$file_magic_regex" > /dev/null; then
9002 :
9003 else
9004 cat <<_LT_EOF 1>&2
9005
9006 *** Warning: the command libtool uses to detect shared libraries,
9007 *** $file_magic_cmd, produces output that libtool cannot recognize.
9008 *** The result is that libtool may fail to recognize shared libraries
9009 *** as such. This will affect the creation of libtool libraries that
9010 *** depend on shared libraries, but programs linked with such libtool
9011 *** libraries will work regardless of this problem. Nevertheless, you
9012 *** may want to report the problem to your system manager and/or to
9013 *** [email protected]
9014
9015 _LT_EOF
9016 fi ;;
9017 esac
9018 fi
9019 break
9020 fi
9021 done
9022 IFS=$lt_save_ifs
9023 MAGIC_CMD=$lt_save_MAGIC_CMD
9024 ;;
9025 esac
9026 fi
9027
9028 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9029 if test -n "$MAGIC_CMD"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9031 $as_echo "$MAGIC_CMD" >&6; }
9032 else
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9035 fi
9036
9037
9038 else
9039 MAGIC_CMD=:
9040 fi
9041 fi
9042
9043 fi
9044 ;;
9045 esac
9046
9047 # Use C for the default configuration in the libtool script
9048
9049 lt_save_CC=$CC
9050 ac_ext=c
9051 ac_cpp='$CPP $CPPFLAGS'
9052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9055
9056
9057 # Source file extension for C test sources.
9058 ac_ext=c
9059
9060 # Object file extension for compiled C test sources.
9061 objext=o
9062 objext=$objext
9063
9064 # Code to be used in simple compile tests
9065 lt_simple_compile_test_code="int some_variable = 0;"
9066
9067 # Code to be used in simple link tests
9068 lt_simple_link_test_code='int main(){return(0);}'
9069
9070
9071
9072
9073
9074
9075
9076 # If no C compiler was specified, use CC.
9077 LTCC=${LTCC-"$CC"}
9078
9079 # If no C compiler flags were specified, use CFLAGS.
9080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9081
9082 # Allow CC to be a program name with arguments.
9083 compiler=$CC
9084
9085 # Save the default compiler, since it gets overwritten when the other
9086 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9087 compiler_DEFAULT=$CC
9088
9089 # save warnings/boilerplate of simple test code
9090 ac_outfile=conftest.$ac_objext
9091 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9092 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9093 _lt_compiler_boilerplate=`cat conftest.err`
9094 $RM conftest*
9095
9096 ac_outfile=conftest.$ac_objext
9097 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9098 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9099 _lt_linker_boilerplate=`cat conftest.err`
9100 $RM -r conftest*
9101
9102
9103 if test -n "$compiler"; then
9104
9105 lt_prog_compiler_no_builtin_flag=
9106
9107 if test yes = "$GCC"; then
9108 case $cc_basename in
9109 nvcc*)
9110 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9111 *)
9112 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9113 esac
9114
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9116 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9117 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 lt_cv_prog_compiler_rtti_exceptions=no
9121 ac_outfile=conftest.$ac_objext
9122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9124 # Insert the option either (1) after the last *FLAGS variable, or
9125 # (2) before a word containing "conftest.", or (3) at the end.
9126 # Note that $ac_compile itself does not contain backslashes and begins
9127 # with a dollar sign (not a hyphen), so the echo should work correctly.
9128 # The option is referenced via a variable to avoid confusing sed.
9129 lt_compile=`echo "$ac_compile" | $SED \
9130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9132 -e 's:$: $lt_compiler_flag:'`
9133 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9134 (eval "$lt_compile" 2>conftest.err)
9135 ac_status=$?
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 if (exit $ac_status) && test -s "$ac_outfile"; then
9139 # The compiler can only warn and ignore the option if not recognized
9140 # So say no if there are warnings other than the usual output.
9141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9144 lt_cv_prog_compiler_rtti_exceptions=yes
9145 fi
9146 fi
9147 $RM conftest*
9148
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9151 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9152
9153 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9154 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9155 else
9156 :
9157 fi
9158
9159 fi
9160
9161
9162
9163
9164
9165
9166 lt_prog_compiler_wl=
9167 lt_prog_compiler_pic=
9168 lt_prog_compiler_static=
9169
9170
9171 if test yes = "$GCC"; then
9172 lt_prog_compiler_wl='-Wl,'
9173 lt_prog_compiler_static='-static'
9174
9175 case $host_os in
9176 aix*)
9177 # All AIX code is PIC.
9178 if test ia64 = "$host_cpu"; then
9179 # AIX 5 now supports IA64 processor
9180 lt_prog_compiler_static='-Bstatic'
9181 fi
9182 lt_prog_compiler_pic='-fPIC'
9183 ;;
9184
9185 amigaos*)
9186 case $host_cpu in
9187 powerpc)
9188 # see comment about AmigaOS4 .so support
9189 lt_prog_compiler_pic='-fPIC'
9190 ;;
9191 m68k)
9192 # FIXME: we need at least 68020 code to build shared libraries, but
9193 # adding the '-m68020' flag to GCC prevents building anything better,
9194 # like '-m68040'.
9195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9196 ;;
9197 esac
9198 ;;
9199
9200 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9201 # PIC is the default for these OSes.
9202 ;;
9203
9204 mingw* | cygwin* | pw32* | os2* | cegcc*)
9205 # This hack is so that the source file can tell whether it is being
9206 # built for inclusion in a dll (and should export symbols for example).
9207 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9208 # (--disable-auto-import) libraries
9209 lt_prog_compiler_pic='-DDLL_EXPORT'
9210 case $host_os in
9211 os2*)
9212 lt_prog_compiler_static='$wl-static'
9213 ;;
9214 esac
9215 ;;
9216
9217 darwin* | rhapsody*)
9218 # PIC is the default on this platform
9219 # Common symbols not allowed in MH_DYLIB files
9220 lt_prog_compiler_pic='-fno-common'
9221 ;;
9222
9223 haiku*)
9224 # PIC is the default for Haiku.
9225 # The "-static" flag exists, but is broken.
9226 lt_prog_compiler_static=
9227 ;;
9228
9229 hpux*)
9230 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9231 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9232 # sets the default TLS model and affects inlining.
9233 case $host_cpu in
9234 hppa*64*)
9235 # +Z the default
9236 ;;
9237 *)
9238 lt_prog_compiler_pic='-fPIC'
9239 ;;
9240 esac
9241 ;;
9242
9243 interix[3-9]*)
9244 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9245 # Instead, we relocate shared libraries at runtime.
9246 ;;
9247
9248 msdosdjgpp*)
9249 # Just because we use GCC doesn't mean we suddenly get shared libraries
9250 # on systems that don't support them.
9251 lt_prog_compiler_can_build_shared=no
9252 enable_shared=no
9253 ;;
9254
9255 *nto* | *qnx*)
9256 # QNX uses GNU C++, but need to define -shared option too, otherwise
9257 # it will coredump.
9258 lt_prog_compiler_pic='-fPIC -shared'
9259 ;;
9260
9261 sysv4*MP*)
9262 if test -d /usr/nec; then
9263 lt_prog_compiler_pic=-Kconform_pic
9264 fi
9265 ;;
9266
9267 *)
9268 lt_prog_compiler_pic='-fPIC'
9269 ;;
9270 esac
9271
9272 case $cc_basename in
9273 nvcc*) # Cuda Compiler Driver 2.2
9274 lt_prog_compiler_wl='-Xlinker '
9275 if test -n "$lt_prog_compiler_pic"; then
9276 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9277 fi
9278 ;;
9279 esac
9280 else
9281 # PORTME Check for flag to pass linker flags through the system compiler.
9282 case $host_os in
9283 aix*)
9284 lt_prog_compiler_wl='-Wl,'
9285 if test ia64 = "$host_cpu"; then
9286 # AIX 5 now supports IA64 processor
9287 lt_prog_compiler_static='-Bstatic'
9288 else
9289 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9290 fi
9291 ;;
9292
9293 darwin* | rhapsody*)
9294 # PIC is the default on this platform
9295 # Common symbols not allowed in MH_DYLIB files
9296 lt_prog_compiler_pic='-fno-common'
9297 case $cc_basename in
9298 nagfor*)
9299 # NAG Fortran compiler
9300 lt_prog_compiler_wl='-Wl,-Wl,,'
9301 lt_prog_compiler_pic='-PIC'
9302 lt_prog_compiler_static='-Bstatic'
9303 ;;
9304 esac
9305 ;;
9306
9307 mingw* | cygwin* | pw32* | os2* | cegcc*)
9308 # This hack is so that the source file can tell whether it is being
9309 # built for inclusion in a dll (and should export symbols for example).
9310 lt_prog_compiler_pic='-DDLL_EXPORT'
9311 case $host_os in
9312 os2*)
9313 lt_prog_compiler_static='$wl-static'
9314 ;;
9315 esac
9316 ;;
9317
9318 hpux9* | hpux10* | hpux11*)
9319 lt_prog_compiler_wl='-Wl,'
9320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9321 # not for PA HP-UX.
9322 case $host_cpu in
9323 hppa*64*|ia64*)
9324 # +Z the default
9325 ;;
9326 *)
9327 lt_prog_compiler_pic='+Z'
9328 ;;
9329 esac
9330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9331 lt_prog_compiler_static='$wl-a ${wl}archive'
9332 ;;
9333
9334 irix5* | irix6* | nonstopux*)
9335 lt_prog_compiler_wl='-Wl,'
9336 # PIC (with -KPIC) is the default.
9337 lt_prog_compiler_static='-non_shared'
9338 ;;
9339
9340 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9341 case $cc_basename in
9342 # old Intel for x86_64, which still supported -KPIC.
9343 ecc*)
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-static'
9347 ;;
9348 # flang / f18. f95 an alias for gfortran or flang on Debian
9349 flang* | f18* | f95*)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-fPIC'
9352 lt_prog_compiler_static='-static'
9353 ;;
9354 # icc used to be incompatible with GCC.
9355 # ICC 10 doesn't accept -KPIC any more.
9356 icc* | ifort*)
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='-fPIC'
9359 lt_prog_compiler_static='-static'
9360 ;;
9361 # Lahey Fortran 8.1.
9362 lf95*)
9363 lt_prog_compiler_wl='-Wl,'
9364 lt_prog_compiler_pic='--shared'
9365 lt_prog_compiler_static='--static'
9366 ;;
9367 nagfor*)
9368 # NAG Fortran compiler
9369 lt_prog_compiler_wl='-Wl,-Wl,,'
9370 lt_prog_compiler_pic='-PIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9373 tcc*)
9374 # Fabrice Bellard et al's Tiny C Compiler
9375 lt_prog_compiler_wl='-Wl,'
9376 lt_prog_compiler_pic='-fPIC'
9377 lt_prog_compiler_static='-static'
9378 ;;
9379 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9380 # Portland Group compilers (*not* the Pentium gcc compiler,
9381 # which looks to be a dead project)
9382 lt_prog_compiler_wl='-Wl,'
9383 lt_prog_compiler_pic='-fpic'
9384 lt_prog_compiler_static='-Bstatic'
9385 ;;
9386 ccc*)
9387 lt_prog_compiler_wl='-Wl,'
9388 # All Alpha code is PIC.
9389 lt_prog_compiler_static='-non_shared'
9390 ;;
9391 xl* | bgxl* | bgf* | mpixl*)
9392 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9393 lt_prog_compiler_wl='-Wl,'
9394 lt_prog_compiler_pic='-qpic'
9395 lt_prog_compiler_static='-qstaticlink'
9396 ;;
9397 *)
9398 case `$CC -V 2>&1 | sed 5q` in
9399 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9400 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9401 lt_prog_compiler_pic='-KPIC'
9402 lt_prog_compiler_static='-Bstatic'
9403 lt_prog_compiler_wl=''
9404 ;;
9405 *Sun\ F* | *Sun*Fortran*)
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9408 lt_prog_compiler_wl='-Qoption ld '
9409 ;;
9410 *Sun\ C*)
9411 # Sun C 5.9
9412 lt_prog_compiler_pic='-KPIC'
9413 lt_prog_compiler_static='-Bstatic'
9414 lt_prog_compiler_wl='-Wl,'
9415 ;;
9416 *Intel*\ [CF]*Compiler*)
9417 lt_prog_compiler_wl='-Wl,'
9418 lt_prog_compiler_pic='-fPIC'
9419 lt_prog_compiler_static='-static'
9420 ;;
9421 *Portland\ Group*)
9422 lt_prog_compiler_wl='-Wl,'
9423 lt_prog_compiler_pic='-fpic'
9424 lt_prog_compiler_static='-Bstatic'
9425 ;;
9426 esac
9427 ;;
9428 esac
9429 ;;
9430
9431 newsos6)
9432 lt_prog_compiler_pic='-KPIC'
9433 lt_prog_compiler_static='-Bstatic'
9434 ;;
9435
9436 *nto* | *qnx*)
9437 # QNX uses GNU C++, but need to define -shared option too, otherwise
9438 # it will coredump.
9439 lt_prog_compiler_pic='-fPIC -shared'
9440 ;;
9441
9442 osf3* | osf4* | osf5*)
9443 lt_prog_compiler_wl='-Wl,'
9444 # All OSF/1 code is PIC.
9445 lt_prog_compiler_static='-non_shared'
9446 ;;
9447
9448 rdos*)
9449 lt_prog_compiler_static='-non_shared'
9450 ;;
9451
9452 solaris*)
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 case $cc_basename in
9456 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9457 lt_prog_compiler_wl='-Qoption ld ';;
9458 *)
9459 lt_prog_compiler_wl='-Wl,';;
9460 esac
9461 ;;
9462
9463 sunos4*)
9464 lt_prog_compiler_wl='-Qoption ld '
9465 lt_prog_compiler_pic='-PIC'
9466 lt_prog_compiler_static='-Bstatic'
9467 ;;
9468
9469 sysv4 | sysv4.2uw2* | sysv4.3*)
9470 lt_prog_compiler_wl='-Wl,'
9471 lt_prog_compiler_pic='-KPIC'
9472 lt_prog_compiler_static='-Bstatic'
9473 ;;
9474
9475 sysv4*MP*)
9476 if test -d /usr/nec; then
9477 lt_prog_compiler_pic='-Kconform_pic'
9478 lt_prog_compiler_static='-Bstatic'
9479 fi
9480 ;;
9481
9482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9483 lt_prog_compiler_wl='-Wl,'
9484 lt_prog_compiler_pic='-KPIC'
9485 lt_prog_compiler_static='-Bstatic'
9486 ;;
9487
9488 unicos*)
9489 lt_prog_compiler_wl='-Wl,'
9490 lt_prog_compiler_can_build_shared=no
9491 ;;
9492
9493 uts4*)
9494 lt_prog_compiler_pic='-pic'
9495 lt_prog_compiler_static='-Bstatic'
9496 ;;
9497
9498 *)
9499 lt_prog_compiler_can_build_shared=no
9500 ;;
9501 esac
9502 fi
9503
9504 case $host_os in
9505 # For platforms that do not support PIC, -DPIC is meaningless:
9506 *djgpp*)
9507 lt_prog_compiler_pic=
9508 ;;
9509 *)
9510 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9511 ;;
9512 esac
9513
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9515 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9516 if ${lt_cv_prog_compiler_pic+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9520 fi
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9522 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9523 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9524
9525 #
9526 # Check to make sure the PIC flag actually works.
9527 #
9528 if test -n "$lt_prog_compiler_pic"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9530 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9531 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 lt_cv_prog_compiler_pic_works=no
9535 ac_outfile=conftest.$ac_objext
9536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9537 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9538 # Insert the option either (1) after the last *FLAGS variable, or
9539 # (2) before a word containing "conftest.", or (3) at the end.
9540 # Note that $ac_compile itself does not contain backslashes and begins
9541 # with a dollar sign (not a hyphen), so the echo should work correctly.
9542 # The option is referenced via a variable to avoid confusing sed.
9543 lt_compile=`echo "$ac_compile" | $SED \
9544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9546 -e 's:$: $lt_compiler_flag:'`
9547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9548 (eval "$lt_compile" 2>conftest.err)
9549 ac_status=$?
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 if (exit $ac_status) && test -s "$ac_outfile"; then
9553 # The compiler can only warn and ignore the option if not recognized
9554 # So say no if there are warnings other than the usual output.
9555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9558 lt_cv_prog_compiler_pic_works=yes
9559 fi
9560 fi
9561 $RM conftest*
9562
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9565 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9566
9567 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9568 case $lt_prog_compiler_pic in
9569 "" | " "*) ;;
9570 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9571 esac
9572 else
9573 lt_prog_compiler_pic=
9574 lt_prog_compiler_can_build_shared=no
9575 fi
9576
9577 fi
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589 #
9590 # Check to make sure the static flag actually works.
9591 #
9592 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9594 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9595 if ${lt_cv_prog_compiler_static_works+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 lt_cv_prog_compiler_static_works=no
9599 save_LDFLAGS=$LDFLAGS
9600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9601 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9603 # The linker can only warn and ignore the option if not recognized
9604 # So say no if there are warnings
9605 if test -s conftest.err; then
9606 # Append any errors to the config.log.
9607 cat conftest.err 1>&5
9608 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9610 if diff conftest.exp conftest.er2 >/dev/null; then
9611 lt_cv_prog_compiler_static_works=yes
9612 fi
9613 else
9614 lt_cv_prog_compiler_static_works=yes
9615 fi
9616 fi
9617 $RM -r conftest*
9618 LDFLAGS=$save_LDFLAGS
9619
9620 fi
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9622 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9623
9624 if test yes = "$lt_cv_prog_compiler_static_works"; then
9625 :
9626 else
9627 lt_prog_compiler_static=
9628 fi
9629
9630
9631
9632
9633
9634
9635
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9637 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9638 if ${lt_cv_prog_compiler_c_o+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 lt_cv_prog_compiler_c_o=no
9642 $RM -r conftest 2>/dev/null
9643 mkdir conftest
9644 cd conftest
9645 mkdir out
9646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9647
9648 lt_compiler_flag="-o out/conftest2.$ac_objext"
9649 # Insert the option either (1) after the last *FLAGS variable, or
9650 # (2) before a word containing "conftest.", or (3) at the end.
9651 # Note that $ac_compile itself does not contain backslashes and begins
9652 # with a dollar sign (not a hyphen), so the echo should work correctly.
9653 lt_compile=`echo "$ac_compile" | $SED \
9654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9656 -e 's:$: $lt_compiler_flag:'`
9657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9658 (eval "$lt_compile" 2>out/conftest.err)
9659 ac_status=$?
9660 cat out/conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9663 then
9664 # The compiler can only warn and ignore the option if not recognized
9665 # So say no if there are warnings
9666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9669 lt_cv_prog_compiler_c_o=yes
9670 fi
9671 fi
9672 chmod u+w . 2>&5
9673 $RM conftest*
9674 # SGI C++ compiler will create directory out/ii_files/ for
9675 # template instantiation
9676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9677 $RM out/* && rmdir out
9678 cd ..
9679 $RM -r conftest
9680 $RM conftest*
9681
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9684 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9685
9686
9687
9688
9689
9690
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9692 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9693 if ${lt_cv_prog_compiler_c_o+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 lt_cv_prog_compiler_c_o=no
9697 $RM -r conftest 2>/dev/null
9698 mkdir conftest
9699 cd conftest
9700 mkdir out
9701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9702
9703 lt_compiler_flag="-o out/conftest2.$ac_objext"
9704 # Insert the option either (1) after the last *FLAGS variable, or
9705 # (2) before a word containing "conftest.", or (3) at the end.
9706 # Note that $ac_compile itself does not contain backslashes and begins
9707 # with a dollar sign (not a hyphen), so the echo should work correctly.
9708 lt_compile=`echo "$ac_compile" | $SED \
9709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9711 -e 's:$: $lt_compiler_flag:'`
9712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9713 (eval "$lt_compile" 2>out/conftest.err)
9714 ac_status=$?
9715 cat out/conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9718 then
9719 # The compiler can only warn and ignore the option if not recognized
9720 # So say no if there are warnings
9721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9724 lt_cv_prog_compiler_c_o=yes
9725 fi
9726 fi
9727 chmod u+w . 2>&5
9728 $RM conftest*
9729 # SGI C++ compiler will create directory out/ii_files/ for
9730 # template instantiation
9731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9732 $RM out/* && rmdir out
9733 cd ..
9734 $RM -r conftest
9735 $RM conftest*
9736
9737 fi
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9739 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9740
9741
9742
9743
9744 hard_links=nottested
9745 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9746 # do not overwrite the value of need_locks provided by the user
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9748 $as_echo_n "checking if we can lock with hard links... " >&6; }
9749 hard_links=yes
9750 $RM conftest*
9751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9752 touch conftest.a
9753 ln conftest.a conftest.b 2>&5 || hard_links=no
9754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9756 $as_echo "$hard_links" >&6; }
9757 if test no = "$hard_links"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9759 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9760 need_locks=warn
9761 fi
9762 else
9763 need_locks=no
9764 fi
9765
9766
9767
9768
9769
9770
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9772 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9773
9774 runpath_var=
9775 allow_undefined_flag=
9776 always_export_symbols=no
9777 archive_cmds=
9778 archive_expsym_cmds=
9779 compiler_needs_object=no
9780 enable_shared_with_static_runtimes=no
9781 export_dynamic_flag_spec=
9782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9783 hardcode_automatic=no
9784 hardcode_direct=no
9785 hardcode_direct_absolute=no
9786 hardcode_libdir_flag_spec=
9787 hardcode_libdir_separator=
9788 hardcode_minus_L=no
9789 hardcode_shlibpath_var=unsupported
9790 inherit_rpath=no
9791 link_all_deplibs=unknown
9792 module_cmds=
9793 module_expsym_cmds=
9794 old_archive_from_new_cmds=
9795 old_archive_from_expsyms_cmds=
9796 thread_safe_flag_spec=
9797 whole_archive_flag_spec=
9798 # include_expsyms should be a list of space-separated symbols to be *always*
9799 # included in the symbol list
9800 include_expsyms=
9801 # exclude_expsyms can be an extended regexp of symbols to exclude
9802 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9803 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9804 # as well as any symbol that contains 'd'.
9805 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9806 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9807 # platforms (ab)use it in PIC code, but their linkers get confused if
9808 # the symbol is explicitly referenced. Since portable code cannot
9809 # rely on this symbol name, it's probably fine to never include it in
9810 # preloaded symbol tables.
9811 # Exclude shared library initialization/finalization symbols.
9812 extract_expsyms_cmds=
9813
9814 case $host_os in
9815 cygwin* | mingw* | pw32* | cegcc*)
9816 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9817 # When not using gcc, we currently assume that we are using
9818 # Microsoft Visual C++.
9819 if test yes != "$GCC"; then
9820 with_gnu_ld=no
9821 fi
9822 ;;
9823 interix*)
9824 # we just hope/assume this is gcc and not c89 (= MSVC++)
9825 with_gnu_ld=yes
9826 ;;
9827 openbsd* | bitrig*)
9828 with_gnu_ld=no
9829 ;;
9830 linux* | k*bsd*-gnu | gnu*)
9831 link_all_deplibs=no
9832 ;;
9833 esac
9834
9835 ld_shlibs=yes
9836
9837 # On some targets, GNU ld is compatible enough with the native linker
9838 # that we're better off using the native interface for both.
9839 lt_use_gnu_ld_interface=no
9840 if test yes = "$with_gnu_ld"; then
9841 case $host_os in
9842 aix*)
9843 # The AIX port of GNU ld has always aspired to compatibility
9844 # with the native linker. However, as the warning in the GNU ld
9845 # block says, versions before 2.19.5* couldn't really create working
9846 # shared libraries, regardless of the interface used.
9847 case `$LD -v 2>&1` in
9848 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9849 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9850 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9851 *)
9852 lt_use_gnu_ld_interface=yes
9853 ;;
9854 esac
9855 ;;
9856 *)
9857 lt_use_gnu_ld_interface=yes
9858 ;;
9859 esac
9860 fi
9861
9862 if test yes = "$lt_use_gnu_ld_interface"; then
9863 # If archive_cmds runs LD, not CC, wlarc should be empty
9864 wlarc='$wl'
9865
9866 # Set some defaults for GNU ld with shared library support. These
9867 # are reset later if shared libraries are not supported. Putting them
9868 # here allows them to be overridden if necessary.
9869 runpath_var=LD_RUN_PATH
9870 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9871 export_dynamic_flag_spec='$wl--export-dynamic'
9872 # ancient GNU ld didn't support --whole-archive et. al.
9873 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9874 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9875 else
9876 whole_archive_flag_spec=
9877 fi
9878 supports_anon_versioning=no
9879 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9880 *GNU\ gold*) supports_anon_versioning=yes ;;
9881 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9882 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9883 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9884 *\ 2.11.*) ;; # other 2.11 versions
9885 *) supports_anon_versioning=yes ;;
9886 esac
9887
9888 # See if GNU ld supports shared libraries.
9889 case $host_os in
9890 aix[3-9]*)
9891 # On AIX/PPC, the GNU linker is very broken
9892 if test ia64 != "$host_cpu"; then
9893 ld_shlibs=no
9894 cat <<_LT_EOF 1>&2
9895
9896 *** Warning: the GNU linker, at least up to release 2.19, is reported
9897 *** to be unable to reliably create shared libraries on AIX.
9898 *** Therefore, libtool is disabling shared libraries support. If you
9899 *** really care for shared libraries, you may want to install binutils
9900 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9901 *** You will then need to restart the configuration process.
9902
9903 _LT_EOF
9904 fi
9905 ;;
9906
9907 amigaos*)
9908 case $host_cpu in
9909 powerpc)
9910 # see comment about AmigaOS4 .so support
9911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9912 archive_expsym_cmds=''
9913 ;;
9914 m68k)
9915 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)'
9916 hardcode_libdir_flag_spec='-L$libdir'
9917 hardcode_minus_L=yes
9918 ;;
9919 esac
9920 ;;
9921
9922 beos*)
9923 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9924 allow_undefined_flag=unsupported
9925 # Joseph Beckenbach <[email protected]> says some releases of gcc
9926 # support --undefined. This deserves some investigation. FIXME
9927 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9928 else
9929 ld_shlibs=no
9930 fi
9931 ;;
9932
9933 cygwin* | mingw* | pw32* | cegcc*)
9934 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9935 # as there is no search path for DLLs.
9936 hardcode_libdir_flag_spec='-L$libdir'
9937 export_dynamic_flag_spec='$wl--export-all-symbols'
9938 allow_undefined_flag=unsupported
9939 always_export_symbols=no
9940 enable_shared_with_static_runtimes=yes
9941 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'
9942 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9943
9944 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9946 # If the export-symbols file already is a .def file, use it as
9947 # is; otherwise, prepend EXPORTS...
9948 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9949 cp $export_symbols $output_objdir/$soname.def;
9950 else
9951 echo EXPORTS > $output_objdir/$soname.def;
9952 cat $export_symbols >> $output_objdir/$soname.def;
9953 fi~
9954 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9955 else
9956 ld_shlibs=no
9957 fi
9958 ;;
9959
9960 haiku*)
9961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9962 link_all_deplibs=yes
9963 ;;
9964
9965 os2*)
9966 hardcode_libdir_flag_spec='-L$libdir'
9967 hardcode_minus_L=yes
9968 allow_undefined_flag=unsupported
9969 shrext_cmds=.dll
9970 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9971 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9972 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9973 $ECHO EXPORTS >> $output_objdir/$libname.def~
9974 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9975 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9976 emximp -o $lib $output_objdir/$libname.def'
9977 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9978 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9979 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9980 $ECHO EXPORTS >> $output_objdir/$libname.def~
9981 prefix_cmds="$SED"~
9982 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9983 prefix_cmds="$prefix_cmds -e 1d";
9984 fi~
9985 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9986 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9987 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9988 emximp -o $lib $output_objdir/$libname.def'
9989 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9990 enable_shared_with_static_runtimes=yes
9991 ;;
9992
9993 interix[3-9]*)
9994 hardcode_direct=no
9995 hardcode_shlibpath_var=no
9996 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9997 export_dynamic_flag_spec='$wl-E'
9998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9999 # Instead, shared libraries are loaded at an image base (0x10000000 by
10000 # default) and relocated if they conflict, which is a slow very memory
10001 # consuming and fragmenting process. To avoid this, we pick a random,
10002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10005 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'
10006 ;;
10007
10008 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10009 tmp_diet=no
10010 if test linux-dietlibc = "$host_os"; then
10011 case $cc_basename in
10012 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10013 esac
10014 fi
10015 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10016 && test no = "$tmp_diet"
10017 then
10018 tmp_addflag=' $pic_flag'
10019 tmp_sharedflag='-shared'
10020 case $cc_basename,$host_cpu in
10021 pgcc*) # Portland Group C compiler
10022 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'
10023 tmp_addflag=' $pic_flag'
10024 ;;
10025 pgf77* | pgf90* | pgf95* | pgfortran*)
10026 # Portland Group f77 and f90 compilers
10027 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'
10028 tmp_addflag=' $pic_flag -Mnomain' ;;
10029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10030 tmp_addflag=' -i_dynamic' ;;
10031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10032 tmp_addflag=' -i_dynamic -nofor_main' ;;
10033 ifc* | ifort*) # Intel Fortran compiler
10034 tmp_addflag=' -nofor_main' ;;
10035 lf95*) # Lahey Fortran 8.1
10036 whole_archive_flag_spec=
10037 tmp_sharedflag='--shared' ;;
10038 nagfor*) # NAGFOR 5.3
10039 tmp_sharedflag='-Wl,-shared' ;;
10040 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10041 tmp_sharedflag='-qmkshrobj'
10042 tmp_addflag= ;;
10043 nvcc*) # Cuda Compiler Driver 2.2
10044 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'
10045 compiler_needs_object=yes
10046 ;;
10047 esac
10048 case `$CC -V 2>&1 | sed 5q` in
10049 *Sun\ C*) # Sun C 5.9
10050 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'
10051 compiler_needs_object=yes
10052 tmp_sharedflag='-G' ;;
10053 *Sun\ F*) # Sun Fortran 8.3
10054 tmp_sharedflag='-G' ;;
10055 esac
10056 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10057
10058 if test yes = "$supports_anon_versioning"; then
10059 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10061 echo "local: *; };" >> $output_objdir/$libname.ver~
10062 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10063 fi
10064
10065 case $cc_basename in
10066 tcc*)
10067 export_dynamic_flag_spec='-rdynamic'
10068 ;;
10069 xlf* | bgf* | bgxlf* | mpixlf*)
10070 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10071 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10072 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10073 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10074 if test yes = "$supports_anon_versioning"; then
10075 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10077 echo "local: *; };" >> $output_objdir/$libname.ver~
10078 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10079 fi
10080 ;;
10081 esac
10082 else
10083 ld_shlibs=no
10084 fi
10085 ;;
10086
10087 netbsd* | netbsdelf*-gnu)
10088 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10089 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10090 wlarc=
10091 else
10092 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10093 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10094 fi
10095 ;;
10096
10097 solaris*)
10098 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10099 ld_shlibs=no
10100 cat <<_LT_EOF 1>&2
10101
10102 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10103 *** create shared libraries on Solaris systems. Therefore, libtool
10104 *** is disabling shared libraries support. We urge you to upgrade GNU
10105 *** binutils to release 2.9.1 or newer. Another option is to modify
10106 *** your PATH or compiler configuration so that the native linker is
10107 *** used, and then restart.
10108
10109 _LT_EOF
10110 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10112 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10113 else
10114 ld_shlibs=no
10115 fi
10116 ;;
10117
10118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10119 case `$LD -v 2>&1` in
10120 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10121 ld_shlibs=no
10122 cat <<_LT_EOF 1>&2
10123
10124 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10125 *** reliably create shared libraries on SCO systems. Therefore, libtool
10126 *** is disabling shared libraries support. We urge you to upgrade GNU
10127 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10128 *** your PATH or compiler configuration so that the native linker is
10129 *** used, and then restart.
10130
10131 _LT_EOF
10132 ;;
10133 *)
10134 # For security reasons, it is highly recommended that you always
10135 # use absolute paths for naming shared libraries, and exclude the
10136 # DT_RUNPATH tag from executables and libraries. But doing so
10137 # requires that you compile everything twice, which is a pain.
10138 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10139 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10142 else
10143 ld_shlibs=no
10144 fi
10145 ;;
10146 esac
10147 ;;
10148
10149 sunos4*)
10150 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10151 wlarc=
10152 hardcode_direct=yes
10153 hardcode_shlibpath_var=no
10154 ;;
10155
10156 *)
10157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10158 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10159 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10160 else
10161 ld_shlibs=no
10162 fi
10163 ;;
10164 esac
10165
10166 if test no = "$ld_shlibs"; then
10167 runpath_var=
10168 hardcode_libdir_flag_spec=
10169 export_dynamic_flag_spec=
10170 whole_archive_flag_spec=
10171 fi
10172 else
10173 # PORTME fill in a description of your system's linker (not GNU ld)
10174 case $host_os in
10175 aix3*)
10176 allow_undefined_flag=unsupported
10177 always_export_symbols=yes
10178 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'
10179 # Note: this linker hardcodes the directories in LIBPATH if there
10180 # are no directories specified by -L.
10181 hardcode_minus_L=yes
10182 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10183 # Neither direct hardcoding nor static linking is supported with a
10184 # broken collect2.
10185 hardcode_direct=unsupported
10186 fi
10187 ;;
10188
10189 aix[4-9]*)
10190 if test ia64 = "$host_cpu"; then
10191 # On IA64, the linker does run time linking by default, so we don't
10192 # have to do anything special.
10193 aix_use_runtimelinking=no
10194 exp_sym_flag='-Bexport'
10195 no_entry_flag=
10196 else
10197 # If we're using GNU nm, then we don't want the "-C" option.
10198 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10199 # Without the "-l" option, or with the "-B" option, AIX nm treats
10200 # weak defined symbols like other global defined symbols, whereas
10201 # GNU nm marks them as "W".
10202 # While the 'weak' keyword is ignored in the Export File, we need
10203 # it in the Import File for the 'aix-soname' feature, so we have
10204 # to replace the "-B" option with "-P" for AIX nm.
10205 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10206 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'
10207 else
10208 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'
10209 fi
10210 aix_use_runtimelinking=no
10211
10212 # Test if we are trying to use run time linking or normal
10213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10214 # have runtime linking enabled, and use it for executables.
10215 # For shared libraries, we enable/disable runtime linking
10216 # depending on the kind of the shared library created -
10217 # when "with_aix_soname,aix_use_runtimelinking" is:
10218 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10219 # "aix,yes" lib.so shared, rtl:yes, for executables
10220 # lib.a static archive
10221 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10222 # lib.a(lib.so.V) shared, rtl:no, for executables
10223 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10224 # lib.a(lib.so.V) shared, rtl:no
10225 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10226 # lib.a static archive
10227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10228 for ld_flag in $LDFLAGS; do
10229 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10230 aix_use_runtimelinking=yes
10231 break
10232 fi
10233 done
10234 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10235 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10236 # so we don't have lib.a shared libs to link our executables.
10237 # We have to force runtime linking in this case.
10238 aix_use_runtimelinking=yes
10239 LDFLAGS="$LDFLAGS -Wl,-brtl"
10240 fi
10241 ;;
10242 esac
10243
10244 exp_sym_flag='-bexport'
10245 no_entry_flag='-bnoentry'
10246 fi
10247
10248 # When large executables or shared objects are built, AIX ld can
10249 # have problems creating the table of contents. If linking a library
10250 # or program results in "error TOC overflow" add -mminimal-toc to
10251 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10252 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10253
10254 archive_cmds=''
10255 hardcode_direct=yes
10256 hardcode_direct_absolute=yes
10257 hardcode_libdir_separator=':'
10258 link_all_deplibs=yes
10259 file_list_spec='$wl-f,'
10260 case $with_aix_soname,$aix_use_runtimelinking in
10261 aix,*) ;; # traditional, no import file
10262 svr4,* | *,yes) # use import file
10263 # The Import File defines what to hardcode.
10264 hardcode_direct=no
10265 hardcode_direct_absolute=no
10266 ;;
10267 esac
10268
10269 if test yes = "$GCC"; then
10270 case $host_os in aix4.[012]|aix4.[012].*)
10271 # We only want to do this on AIX 4.2 and lower, the check
10272 # below for broken collect2 doesn't work under 4.3+
10273 collect2name=`$CC -print-prog-name=collect2`
10274 if test -f "$collect2name" &&
10275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10276 then
10277 # We have reworked collect2
10278 :
10279 else
10280 # We have old collect2
10281 hardcode_direct=unsupported
10282 # It fails to find uninstalled libraries when the uninstalled
10283 # path is not listed in the libpath. Setting hardcode_minus_L
10284 # to unsupported forces relinking
10285 hardcode_minus_L=yes
10286 hardcode_libdir_flag_spec='-L$libdir'
10287 hardcode_libdir_separator=
10288 fi
10289 ;;
10290 esac
10291 shared_flag='-shared'
10292 if test yes = "$aix_use_runtimelinking"; then
10293 shared_flag="$shared_flag "'$wl-G'
10294 fi
10295 # Need to ensure runtime linking is disabled for the traditional
10296 # shared library, or the linker may eventually find shared libraries
10297 # /with/ Import File - we do not want to mix them.
10298 shared_flag_aix='-shared'
10299 shared_flag_svr4='-shared $wl-G'
10300 else
10301 # not using gcc
10302 if test ia64 = "$host_cpu"; then
10303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10304 # chokes on -Wl,-G. The following line is correct:
10305 shared_flag='-G'
10306 else
10307 if test yes = "$aix_use_runtimelinking"; then
10308 shared_flag='$wl-G'
10309 else
10310 shared_flag='$wl-bM:SRE'
10311 fi
10312 shared_flag_aix='$wl-bM:SRE'
10313 shared_flag_svr4='$wl-G'
10314 fi
10315 fi
10316
10317 export_dynamic_flag_spec='$wl-bexpall'
10318 # It seems that -bexpall does not export symbols beginning with
10319 # underscore (_), so it is better to generate a list of symbols to export.
10320 always_export_symbols=yes
10321 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10322 # Warning - without using the other runtime loading flags (-brtl),
10323 # -berok will link without error, but may produce a broken library.
10324 allow_undefined_flag='-berok'
10325 # Determine the default libpath from the value encoded in an
10326 # empty executable.
10327 if test set = "${lt_cv_aix_libpath+set}"; then
10328 aix_libpath=$lt_cv_aix_libpath
10329 else
10330 if ${lt_cv_aix_libpath_+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10335
10336 int
10337 main ()
10338 {
10339
10340 ;
10341 return 0;
10342 }
10343 _ACEOF
10344 if ac_fn_c_try_link "$LINENO"; then :
10345
10346 lt_aix_libpath_sed='
10347 /Import File Strings/,/^$/ {
10348 /^0/ {
10349 s/^0 *\([^ ]*\) *$/\1/
10350 p
10351 }
10352 }'
10353 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10354 # Check for a 64-bit object if we didn't find anything.
10355 if test -z "$lt_cv_aix_libpath_"; then
10356 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10357 fi
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 if test -z "$lt_cv_aix_libpath_"; then
10362 lt_cv_aix_libpath_=/usr/lib:/lib
10363 fi
10364
10365 fi
10366
10367 aix_libpath=$lt_cv_aix_libpath_
10368 fi
10369
10370 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10371 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
10372 else
10373 if test ia64 = "$host_cpu"; then
10374 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10375 allow_undefined_flag="-z nodefs"
10376 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"
10377 else
10378 # Determine the default libpath from the value encoded in an
10379 # empty executable.
10380 if test set = "${lt_cv_aix_libpath+set}"; then
10381 aix_libpath=$lt_cv_aix_libpath
10382 else
10383 if ${lt_cv_aix_libpath_+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388
10389 int
10390 main ()
10391 {
10392
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_c_try_link "$LINENO"; then :
10398
10399 lt_aix_libpath_sed='
10400 /Import File Strings/,/^$/ {
10401 /^0/ {
10402 s/^0 *\([^ ]*\) *$/\1/
10403 p
10404 }
10405 }'
10406 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10407 # Check for a 64-bit object if we didn't find anything.
10408 if test -z "$lt_cv_aix_libpath_"; then
10409 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410 fi
10411 fi
10412 rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10414 if test -z "$lt_cv_aix_libpath_"; then
10415 lt_cv_aix_libpath_=/usr/lib:/lib
10416 fi
10417
10418 fi
10419
10420 aix_libpath=$lt_cv_aix_libpath_
10421 fi
10422
10423 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10424 # Warning - without using the other run time loading flags,
10425 # -berok will link without error, but may produce a broken library.
10426 no_undefined_flag=' $wl-bernotok'
10427 allow_undefined_flag=' $wl-berok'
10428 if test yes = "$with_gnu_ld"; then
10429 # We only use this code for GNU lds that support --whole-archive.
10430 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10431 else
10432 # Exported symbols can be pulled into shared objects from archives
10433 whole_archive_flag_spec='$convenience'
10434 fi
10435 archive_cmds_need_lc=yes
10436 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10437 # -brtl affects multiple linker settings, -berok does not and is overridden later
10438 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10439 if test svr4 != "$with_aix_soname"; then
10440 # This is similar to how AIX traditionally builds its shared libraries.
10441 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'
10442 fi
10443 if test aix != "$with_aix_soname"; then
10444 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'
10445 else
10446 # used by -dlpreopen to get the symbols
10447 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10448 fi
10449 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10450 fi
10451 fi
10452 ;;
10453
10454 amigaos*)
10455 case $host_cpu in
10456 powerpc)
10457 # see comment about AmigaOS4 .so support
10458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10459 archive_expsym_cmds=''
10460 ;;
10461 m68k)
10462 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)'
10463 hardcode_libdir_flag_spec='-L$libdir'
10464 hardcode_minus_L=yes
10465 ;;
10466 esac
10467 ;;
10468
10469 bsdi[45]*)
10470 export_dynamic_flag_spec=-rdynamic
10471 ;;
10472
10473 cygwin* | mingw* | pw32* | cegcc*)
10474 # When not using gcc, we currently assume that we are using
10475 # Microsoft Visual C++.
10476 # hardcode_libdir_flag_spec is actually meaningless, as there is
10477 # no search path for DLLs.
10478 case $cc_basename in
10479 cl*)
10480 # Native MSVC
10481 hardcode_libdir_flag_spec=' '
10482 allow_undefined_flag=unsupported
10483 always_export_symbols=yes
10484 file_list_spec='@'
10485 # Tell ltmain to make .lib files, not .a files.
10486 libext=lib
10487 # Tell ltmain to make .dll files, not .so files.
10488 shrext_cmds=.dll
10489 # FIXME: Setting linknames here is a bad hack.
10490 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10491 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10492 cp "$export_symbols" "$output_objdir/$soname.def";
10493 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10494 else
10495 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10496 fi~
10497 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10498 linknames='
10499 # The linker will not automatically build a static lib if we build a DLL.
10500 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10501 enable_shared_with_static_runtimes=yes
10502 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10503 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10504 # Don't use ranlib
10505 old_postinstall_cmds='chmod 644 $oldlib'
10506 postlink_cmds='lt_outputfile="@OUTPUT@"~
10507 lt_tool_outputfile="@TOOL_OUTPUT@"~
10508 case $lt_outputfile in
10509 *.exe|*.EXE) ;;
10510 *)
10511 lt_outputfile=$lt_outputfile.exe
10512 lt_tool_outputfile=$lt_tool_outputfile.exe
10513 ;;
10514 esac~
10515 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10516 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10517 $RM "$lt_outputfile.manifest";
10518 fi'
10519 ;;
10520 *)
10521 # Assume MSVC wrapper
10522 hardcode_libdir_flag_spec=' '
10523 allow_undefined_flag=unsupported
10524 # Tell ltmain to make .lib files, not .a files.
10525 libext=lib
10526 # Tell ltmain to make .dll files, not .so files.
10527 shrext_cmds=.dll
10528 # FIXME: Setting linknames here is a bad hack.
10529 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10530 # The linker will automatically build a .lib file if we build a DLL.
10531 old_archive_from_new_cmds='true'
10532 # FIXME: Should let the user specify the lib program.
10533 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10534 enable_shared_with_static_runtimes=yes
10535 ;;
10536 esac
10537 ;;
10538
10539 darwin* | rhapsody*)
10540
10541
10542 archive_cmds_need_lc=no
10543 hardcode_direct=no
10544 hardcode_automatic=yes
10545 hardcode_shlibpath_var=unsupported
10546 if test yes = "$lt_cv_ld_force_load"; then
10547 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\"`'
10548
10549 else
10550 whole_archive_flag_spec=''
10551 fi
10552 link_all_deplibs=yes
10553 allow_undefined_flag=$_lt_dar_allow_undefined
10554 case $cc_basename in
10555 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10556 *) _lt_dar_can_shared=$GCC ;;
10557 esac
10558 if test yes = "$_lt_dar_can_shared"; then
10559 output_verbose_link_cmd=func_echo_all
10560 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10561 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10562 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"
10563 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"
10564
10565 else
10566 ld_shlibs=no
10567 fi
10568
10569 ;;
10570
10571 dgux*)
10572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 hardcode_libdir_flag_spec='-L$libdir'
10574 hardcode_shlibpath_var=no
10575 ;;
10576
10577 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10578 # support. Future versions do this automatically, but an explicit c++rt0.o
10579 # does not break anything, and helps significantly (at the cost of a little
10580 # extra space).
10581 freebsd2.2*)
10582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10583 hardcode_libdir_flag_spec='-R$libdir'
10584 hardcode_direct=yes
10585 hardcode_shlibpath_var=no
10586 ;;
10587
10588 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10589 freebsd2.*)
10590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10591 hardcode_direct=yes
10592 hardcode_minus_L=yes
10593 hardcode_shlibpath_var=no
10594 ;;
10595
10596 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10597 freebsd* | dragonfly*)
10598 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10599 hardcode_libdir_flag_spec='-R$libdir'
10600 hardcode_direct=yes
10601 hardcode_shlibpath_var=no
10602 ;;
10603
10604 hpux9*)
10605 if test yes = "$GCC"; then
10606 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'
10607 else
10608 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'
10609 fi
10610 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10611 hardcode_libdir_separator=:
10612 hardcode_direct=yes
10613
10614 # hardcode_minus_L: Not really in the search PATH,
10615 # but as the default location of the library.
10616 hardcode_minus_L=yes
10617 export_dynamic_flag_spec='$wl-E'
10618 ;;
10619
10620 hpux10*)
10621 if test yes,no = "$GCC,$with_gnu_ld"; then
10622 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10623 else
10624 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10625 fi
10626 if test no = "$with_gnu_ld"; then
10627 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10628 hardcode_libdir_separator=:
10629 hardcode_direct=yes
10630 hardcode_direct_absolute=yes
10631 export_dynamic_flag_spec='$wl-E'
10632 # hardcode_minus_L: Not really in the search PATH,
10633 # but as the default location of the library.
10634 hardcode_minus_L=yes
10635 fi
10636 ;;
10637
10638 hpux11*)
10639 if test yes,no = "$GCC,$with_gnu_ld"; then
10640 case $host_cpu in
10641 hppa*64*)
10642 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 ;;
10644 ia64*)
10645 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10646 ;;
10647 *)
10648 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10649 ;;
10650 esac
10651 else
10652 case $host_cpu in
10653 hppa*64*)
10654 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10655 ;;
10656 ia64*)
10657 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10658 ;;
10659 *)
10660
10661 # Older versions of the 11.00 compiler do not understand -b yet
10662 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10664 $as_echo_n "checking if $CC understands -b... " >&6; }
10665 if ${lt_cv_prog_compiler__b+:} false; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 lt_cv_prog_compiler__b=no
10669 save_LDFLAGS=$LDFLAGS
10670 LDFLAGS="$LDFLAGS -b"
10671 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10673 # The linker can only warn and ignore the option if not recognized
10674 # So say no if there are warnings
10675 if test -s conftest.err; then
10676 # Append any errors to the config.log.
10677 cat conftest.err 1>&5
10678 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10680 if diff conftest.exp conftest.er2 >/dev/null; then
10681 lt_cv_prog_compiler__b=yes
10682 fi
10683 else
10684 lt_cv_prog_compiler__b=yes
10685 fi
10686 fi
10687 $RM -r conftest*
10688 LDFLAGS=$save_LDFLAGS
10689
10690 fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10692 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10693
10694 if test yes = "$lt_cv_prog_compiler__b"; then
10695 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10696 else
10697 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10698 fi
10699
10700 ;;
10701 esac
10702 fi
10703 if test no = "$with_gnu_ld"; then
10704 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10705 hardcode_libdir_separator=:
10706
10707 case $host_cpu in
10708 hppa*64*|ia64*)
10709 hardcode_direct=no
10710 hardcode_shlibpath_var=no
10711 ;;
10712 *)
10713 hardcode_direct=yes
10714 hardcode_direct_absolute=yes
10715 export_dynamic_flag_spec='$wl-E'
10716
10717 # hardcode_minus_L: Not really in the search PATH,
10718 # but as the default location of the library.
10719 hardcode_minus_L=yes
10720 ;;
10721 esac
10722 fi
10723 ;;
10724
10725 irix5* | irix6* | nonstopux*)
10726 if test yes = "$GCC"; then
10727 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'
10728 # Try to use the -exported_symbol ld option, if it does not
10729 # work, assume that -exports_file does not work either and
10730 # implicitly export all symbols.
10731 # This should be the same for all languages, so no per-tag cache variable.
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10733 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10734 if ${lt_cv_irix_exported_symbol+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 save_LDFLAGS=$LDFLAGS
10738 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10741 int foo (void) { return 0; }
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"; then :
10744 lt_cv_irix_exported_symbol=yes
10745 else
10746 lt_cv_irix_exported_symbol=no
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 LDFLAGS=$save_LDFLAGS
10751 fi
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10753 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10754 if test yes = "$lt_cv_irix_exported_symbol"; then
10755 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'
10756 fi
10757 link_all_deplibs=no
10758 else
10759 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'
10760 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'
10761 fi
10762 archive_cmds_need_lc='no'
10763 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10764 hardcode_libdir_separator=:
10765 inherit_rpath=yes
10766 link_all_deplibs=yes
10767 ;;
10768
10769 linux*)
10770 case $cc_basename in
10771 tcc*)
10772 # Fabrice Bellard et al's Tiny C Compiler
10773 ld_shlibs=yes
10774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10775 ;;
10776 esac
10777 ;;
10778
10779 netbsd* | netbsdelf*-gnu)
10780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10782 else
10783 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10784 fi
10785 hardcode_libdir_flag_spec='-R$libdir'
10786 hardcode_direct=yes
10787 hardcode_shlibpath_var=no
10788 ;;
10789
10790 newsos6)
10791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10792 hardcode_direct=yes
10793 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10794 hardcode_libdir_separator=:
10795 hardcode_shlibpath_var=no
10796 ;;
10797
10798 *nto* | *qnx*)
10799 ;;
10800
10801 openbsd* | bitrig*)
10802 if test -f /usr/libexec/ld.so; then
10803 hardcode_direct=yes
10804 hardcode_shlibpath_var=no
10805 hardcode_direct_absolute=yes
10806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10808 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10809 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10810 export_dynamic_flag_spec='$wl-E'
10811 else
10812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10813 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10814 fi
10815 else
10816 ld_shlibs=no
10817 fi
10818 ;;
10819
10820 os2*)
10821 hardcode_libdir_flag_spec='-L$libdir'
10822 hardcode_minus_L=yes
10823 allow_undefined_flag=unsupported
10824 shrext_cmds=.dll
10825 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10826 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10827 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10828 $ECHO EXPORTS >> $output_objdir/$libname.def~
10829 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10830 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10831 emximp -o $lib $output_objdir/$libname.def'
10832 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10833 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10834 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10835 $ECHO EXPORTS >> $output_objdir/$libname.def~
10836 prefix_cmds="$SED"~
10837 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10838 prefix_cmds="$prefix_cmds -e 1d";
10839 fi~
10840 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10841 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10842 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10843 emximp -o $lib $output_objdir/$libname.def'
10844 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10845 enable_shared_with_static_runtimes=yes
10846 ;;
10847
10848 osf3*)
10849 if test yes = "$GCC"; then
10850 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10851 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'
10852 else
10853 allow_undefined_flag=' -expect_unresolved \*'
10854 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'
10855 fi
10856 archive_cmds_need_lc='no'
10857 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10858 hardcode_libdir_separator=:
10859 ;;
10860
10861 osf4* | osf5*) # as osf3* with the addition of -msym flag
10862 if test yes = "$GCC"; then
10863 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10864 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'
10865 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10866 else
10867 allow_undefined_flag=' -expect_unresolved \*'
10868 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'
10869 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~
10870 $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'
10871
10872 # Both c and cxx compiler support -rpath directly
10873 hardcode_libdir_flag_spec='-rpath $libdir'
10874 fi
10875 archive_cmds_need_lc='no'
10876 hardcode_libdir_separator=:
10877 ;;
10878
10879 solaris*)
10880 no_undefined_flag=' -z defs'
10881 if test yes = "$GCC"; then
10882 wlarc='$wl'
10883 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10885 $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'
10886 else
10887 case `$CC -V 2>&1` in
10888 *"Compilers 5.0"*)
10889 wlarc=''
10890 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10892 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10893 ;;
10894 *)
10895 wlarc='$wl'
10896 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10898 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10899 ;;
10900 esac
10901 fi
10902 hardcode_libdir_flag_spec='-R$libdir'
10903 hardcode_shlibpath_var=no
10904 case $host_os in
10905 solaris2.[0-5] | solaris2.[0-5].*) ;;
10906 *)
10907 # The compiler driver will combine and reorder linker options,
10908 # but understands '-z linker_flag'. GCC discards it without '$wl',
10909 # but is careful enough not to reorder.
10910 # Supported since Solaris 2.6 (maybe 2.5.1?)
10911 if test yes = "$GCC"; then
10912 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10913 else
10914 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10915 fi
10916 ;;
10917 esac
10918 link_all_deplibs=yes
10919 ;;
10920
10921 sunos4*)
10922 if test sequent = "$host_vendor"; then
10923 # Use $CC to link under sequent, because it throws in some extra .o
10924 # files that make .init and .fini sections work.
10925 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10926 else
10927 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10928 fi
10929 hardcode_libdir_flag_spec='-L$libdir'
10930 hardcode_direct=yes
10931 hardcode_minus_L=yes
10932 hardcode_shlibpath_var=no
10933 ;;
10934
10935 sysv4)
10936 case $host_vendor in
10937 sni)
10938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939 hardcode_direct=yes # is this really true???
10940 ;;
10941 siemens)
10942 ## LD is ld it makes a PLAMLIB
10943 ## CC just makes a GrossModule.
10944 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10945 reload_cmds='$CC -r -o $output$reload_objs'
10946 hardcode_direct=no
10947 ;;
10948 motorola)
10949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10950 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10951 ;;
10952 esac
10953 runpath_var='LD_RUN_PATH'
10954 hardcode_shlibpath_var=no
10955 ;;
10956
10957 sysv4.3*)
10958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10959 hardcode_shlibpath_var=no
10960 export_dynamic_flag_spec='-Bexport'
10961 ;;
10962
10963 sysv4*MP*)
10964 if test -d /usr/nec; then
10965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10966 hardcode_shlibpath_var=no
10967 runpath_var=LD_RUN_PATH
10968 hardcode_runpath_var=yes
10969 ld_shlibs=yes
10970 fi
10971 ;;
10972
10973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10974 no_undefined_flag='$wl-z,text'
10975 archive_cmds_need_lc=no
10976 hardcode_shlibpath_var=no
10977 runpath_var='LD_RUN_PATH'
10978
10979 if test yes = "$GCC"; then
10980 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 else
10983 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10985 fi
10986 ;;
10987
10988 sysv5* | sco3.2v5* | sco5v6*)
10989 # Note: We CANNOT use -z defs as we might desire, because we do not
10990 # link with -lc, and that would cause any symbols used from libc to
10991 # always be unresolved, which means just about no library would
10992 # ever link correctly. If we're not using GNU ld we use -z text
10993 # though, which does catch some bad symbols but isn't as heavy-handed
10994 # as -z defs.
10995 no_undefined_flag='$wl-z,text'
10996 allow_undefined_flag='$wl-z,nodefs'
10997 archive_cmds_need_lc=no
10998 hardcode_shlibpath_var=no
10999 hardcode_libdir_flag_spec='$wl-R,$libdir'
11000 hardcode_libdir_separator=':'
11001 link_all_deplibs=yes
11002 export_dynamic_flag_spec='$wl-Bexport'
11003 runpath_var='LD_RUN_PATH'
11004
11005 if test yes = "$GCC"; then
11006 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 else
11009 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011 fi
11012 ;;
11013
11014 uts4*)
11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11016 hardcode_libdir_flag_spec='-L$libdir'
11017 hardcode_shlibpath_var=no
11018 ;;
11019
11020 *)
11021 ld_shlibs=no
11022 ;;
11023 esac
11024
11025 if test sni = "$host_vendor"; then
11026 case $host in
11027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11028 export_dynamic_flag_spec='$wl-Blargedynsym'
11029 ;;
11030 esac
11031 fi
11032 fi
11033
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11035 $as_echo "$ld_shlibs" >&6; }
11036 test no = "$ld_shlibs" && can_build_shared=no
11037
11038 with_gnu_ld=$with_gnu_ld
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054 #
11055 # Do we need to explicitly link libc?
11056 #
11057 case "x$archive_cmds_need_lc" in
11058 x|xyes)
11059 # Assume -lc should be added
11060 archive_cmds_need_lc=yes
11061
11062 if test yes,yes = "$GCC,$enable_shared"; then
11063 case $archive_cmds in
11064 *'~'*)
11065 # FIXME: we may have to deal with multi-command sequences.
11066 ;;
11067 '$CC '*)
11068 # Test whether the compiler implicitly links with -lc since on some
11069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11070 # to ld, don't add -lc before -lgcc.
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11072 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11073 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 $RM conftest*
11077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11078
11079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11080 (eval $ac_compile) 2>&5
11081 ac_status=$?
11082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11083 test $ac_status = 0; } 2>conftest.err; then
11084 soname=conftest
11085 lib=conftest
11086 libobjs=conftest.$ac_objext
11087 deplibs=
11088 wl=$lt_prog_compiler_wl
11089 pic_flag=$lt_prog_compiler_pic
11090 compiler_flags=-v
11091 linker_flags=-v
11092 verstring=
11093 output_objdir=.
11094 libname=conftest
11095 lt_save_allow_undefined_flag=$allow_undefined_flag
11096 allow_undefined_flag=
11097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11098 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11099 ac_status=$?
11100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11101 test $ac_status = 0; }
11102 then
11103 lt_cv_archive_cmds_need_lc=no
11104 else
11105 lt_cv_archive_cmds_need_lc=yes
11106 fi
11107 allow_undefined_flag=$lt_save_allow_undefined_flag
11108 else
11109 cat conftest.err 1>&5
11110 fi
11111 $RM conftest*
11112
11113 fi
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11115 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11116 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11117 ;;
11118 esac
11119 fi
11120 ;;
11121 esac
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11276
11277 if test yes = "$GCC"; then
11278 case $host_os in
11279 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11280 *) lt_awk_arg='/^libraries:/' ;;
11281 esac
11282 case $host_os in
11283 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11284 *) lt_sed_strip_eq='s|=/|/|g' ;;
11285 esac
11286 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11287 case $lt_search_path_spec in
11288 *\;*)
11289 # if the path contains ";" then we assume it to be the separator
11290 # otherwise default to the standard path separator (i.e. ":") - it is
11291 # assumed that no part of a normal pathname contains ";" but that should
11292 # okay in the real world where ";" in dirpaths is itself problematic.
11293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11294 ;;
11295 *)
11296 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11297 ;;
11298 esac
11299 # Ok, now we have the path, separated by spaces, we can step through it
11300 # and add multilib dir if necessary...
11301 lt_tmp_lt_search_path_spec=
11302 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11303 # ...but if some path component already ends with the multilib dir we assume
11304 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11305 case "$lt_multi_os_dir; $lt_search_path_spec " in
11306 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11307 lt_multi_os_dir=
11308 ;;
11309 esac
11310 for lt_sys_path in $lt_search_path_spec; do
11311 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11313 elif test -n "$lt_multi_os_dir"; then
11314 test -d "$lt_sys_path" && \
11315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11316 fi
11317 done
11318 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11319 BEGIN {RS = " "; FS = "/|\n";} {
11320 lt_foo = "";
11321 lt_count = 0;
11322 for (lt_i = NF; lt_i > 0; lt_i--) {
11323 if ($lt_i != "" && $lt_i != ".") {
11324 if ($lt_i == "..") {
11325 lt_count++;
11326 } else {
11327 if (lt_count == 0) {
11328 lt_foo = "/" $lt_i lt_foo;
11329 } else {
11330 lt_count--;
11331 }
11332 }
11333 }
11334 }
11335 if (lt_foo != "") { lt_freq[lt_foo]++; }
11336 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11337 }'`
11338 # AWK program above erroneously prepends '/' to C:/dos/paths
11339 # for these hosts.
11340 case $host_os in
11341 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11342 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11343 esac
11344 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11345 else
11346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11347 fi
11348 library_names_spec=
11349 libname_spec='lib$name'
11350 soname_spec=
11351 shrext_cmds=.so
11352 postinstall_cmds=
11353 postuninstall_cmds=
11354 finish_cmds=
11355 finish_eval=
11356 shlibpath_var=
11357 shlibpath_overrides_runpath=unknown
11358 version_type=none
11359 dynamic_linker="$host_os ld.so"
11360 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11361 need_lib_prefix=unknown
11362 hardcode_into_libs=no
11363
11364 # when you set need_version to no, make sure it does not cause -set_version
11365 # flags to be left without arguments
11366 need_version=unknown
11367
11368
11369
11370 case $host_os in
11371 aix3*)
11372 version_type=linux # correct to gnu/linux during the next big refactor
11373 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11374 shlibpath_var=LIBPATH
11375
11376 # AIX 3 has no versioning support, so we append a major version to the name.
11377 soname_spec='$libname$release$shared_ext$major'
11378 ;;
11379
11380 aix[4-9]*)
11381 version_type=linux # correct to gnu/linux during the next big refactor
11382 need_lib_prefix=no
11383 need_version=no
11384 hardcode_into_libs=yes
11385 if test ia64 = "$host_cpu"; then
11386 # AIX 5 supports IA64
11387 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 else
11390 # With GCC up to 2.95.x, collect2 would create an import file
11391 # for dependence libraries. The import file would start with
11392 # the line '#! .'. This would cause the generated library to
11393 # depend on '.', always an invalid library. This was fixed in
11394 # development snapshots of GCC prior to 3.0.
11395 case $host_os in
11396 aix4 | aix4.[01] | aix4.[01].*)
11397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11398 echo ' yes '
11399 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11400 :
11401 else
11402 can_build_shared=no
11403 fi
11404 ;;
11405 esac
11406 # Using Import Files as archive members, it is possible to support
11407 # filename-based versioning of shared library archives on AIX. While
11408 # this would work for both with and without runtime linking, it will
11409 # prevent static linking of such archives. So we do filename-based
11410 # shared library versioning with .so extension only, which is used
11411 # when both runtime linking and shared linking is enabled.
11412 # Unfortunately, runtime linking may impact performance, so we do
11413 # not want this to be the default eventually. Also, we use the
11414 # versioned .so libs for executables only if there is the -brtl
11415 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11416 # To allow for filename-based versioning support, we need to create
11417 # libNAME.so.V as an archive file, containing:
11418 # *) an Import File, referring to the versioned filename of the
11419 # archive as well as the shared archive member, telling the
11420 # bitwidth (32 or 64) of that shared object, and providing the
11421 # list of exported symbols of that shared object, eventually
11422 # decorated with the 'weak' keyword
11423 # *) the shared object with the F_LOADONLY flag set, to really avoid
11424 # it being seen by the linker.
11425 # At run time we better use the real file rather than another symlink,
11426 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11427
11428 case $with_aix_soname,$aix_use_runtimelinking in
11429 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11430 # soname into executable. Probably we can add versioning support to
11431 # collect2, so additional links can be useful in future.
11432 aix,yes) # traditional libtool
11433 dynamic_linker='AIX unversionable lib.so'
11434 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11435 # instead of lib<name>.a to let people know that these are not
11436 # typical AIX shared libraries.
11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438 ;;
11439 aix,no) # traditional AIX only
11440 dynamic_linker='AIX lib.a(lib.so.V)'
11441 # We preserve .a as extension for shared libraries through AIX4.2
11442 # and later when we are not doing run time linking.
11443 library_names_spec='$libname$release.a $libname.a'
11444 soname_spec='$libname$release$shared_ext$major'
11445 ;;
11446 svr4,*) # full svr4 only
11447 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11448 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11449 # We do not specify a path in Import Files, so LIBPATH fires.
11450 shlibpath_overrides_runpath=yes
11451 ;;
11452 *,yes) # both, prefer svr4
11453 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11454 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11455 # unpreferred sharedlib libNAME.a needs extra handling
11456 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"'
11457 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"'
11458 # We do not specify a path in Import Files, so LIBPATH fires.
11459 shlibpath_overrides_runpath=yes
11460 ;;
11461 *,no) # both, prefer aix
11462 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11463 library_names_spec='$libname$release.a $libname.a'
11464 soname_spec='$libname$release$shared_ext$major'
11465 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11466 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)'
11467 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"'
11468 ;;
11469 esac
11470 shlibpath_var=LIBPATH
11471 fi
11472 ;;
11473
11474 amigaos*)
11475 case $host_cpu in
11476 powerpc)
11477 # Since July 2007 AmigaOS4 officially supports .so libraries.
11478 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11480 ;;
11481 m68k)
11482 library_names_spec='$libname.ixlibrary $libname.a'
11483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11484 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'
11485 ;;
11486 esac
11487 ;;
11488
11489 beos*)
11490 library_names_spec='$libname$shared_ext'
11491 dynamic_linker="$host_os ld.so"
11492 shlibpath_var=LIBRARY_PATH
11493 ;;
11494
11495 bsdi[45]*)
11496 version_type=linux # correct to gnu/linux during the next big refactor
11497 need_version=no
11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499 soname_spec='$libname$release$shared_ext$major'
11500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11504 # the default ld.so.conf also contains /usr/contrib/lib and
11505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11506 # libtool to hard-code these into programs
11507 ;;
11508
11509 cygwin* | mingw* | pw32* | cegcc*)
11510 version_type=windows
11511 shrext_cmds=.dll
11512 need_version=no
11513 need_lib_prefix=no
11514
11515 case $GCC,$cc_basename in
11516 yes,*)
11517 # gcc
11518 library_names_spec='$libname.dll.a'
11519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11520 postinstall_cmds='base_file=`basename \$file`~
11521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11522 dldir=$destdir/`dirname \$dlpath`~
11523 test -d \$dldir || mkdir -p \$dldir~
11524 $install_prog $dir/$dlname \$dldir/$dlname~
11525 chmod a+x \$dldir/$dlname~
11526 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11527 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11528 fi'
11529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11530 dlpath=$dir/\$dldll~
11531 $RM \$dlpath'
11532 shlibpath_overrides_runpath=yes
11533
11534 case $host_os in
11535 cygwin*)
11536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11537 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11538
11539 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11540 ;;
11541 mingw* | cegcc*)
11542 # MinGW DLLs use traditional 'lib' prefix
11543 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11544 ;;
11545 pw32*)
11546 # pw32 DLLs use 'pw' prefix rather than 'lib'
11547 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11548 ;;
11549 esac
11550 dynamic_linker='Win32 ld.exe'
11551 ;;
11552
11553 *,cl*)
11554 # Native MSVC
11555 libname_spec='$name'
11556 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11557 library_names_spec='$libname.dll.lib'
11558
11559 case $build_os in
11560 mingw*)
11561 sys_lib_search_path_spec=
11562 lt_save_ifs=$IFS
11563 IFS=';'
11564 for lt_path in $LIB
11565 do
11566 IFS=$lt_save_ifs
11567 # Let DOS variable expansion print the short 8.3 style file name.
11568 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11569 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11570 done
11571 IFS=$lt_save_ifs
11572 # Convert to MSYS style.
11573 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11574 ;;
11575 cygwin*)
11576 # Convert to unix form, then to dos form, then back to unix form
11577 # but this time dos style (no spaces!) so that the unix form looks
11578 # like /cygdrive/c/PROGRA~1:/cygdr...
11579 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11580 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11581 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11582 ;;
11583 *)
11584 sys_lib_search_path_spec=$LIB
11585 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11586 # It is most probably a Windows format PATH.
11587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11588 else
11589 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11590 fi
11591 # FIXME: find the short name or the path components, as spaces are
11592 # common. (e.g. "Program Files" -> "PROGRA~1")
11593 ;;
11594 esac
11595
11596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11597 postinstall_cmds='base_file=`basename \$file`~
11598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11599 dldir=$destdir/`dirname \$dlpath`~
11600 test -d \$dldir || mkdir -p \$dldir~
11601 $install_prog $dir/$dlname \$dldir/$dlname'
11602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11603 dlpath=$dir/\$dldll~
11604 $RM \$dlpath'
11605 shlibpath_overrides_runpath=yes
11606 dynamic_linker='Win32 link.exe'
11607 ;;
11608
11609 *)
11610 # Assume MSVC wrapper
11611 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11612 dynamic_linker='Win32 ld.exe'
11613 ;;
11614 esac
11615 # FIXME: first we should search . and the directory the executable is in
11616 shlibpath_var=PATH
11617 ;;
11618
11619 darwin* | rhapsody*)
11620 dynamic_linker="$host_os dyld"
11621 version_type=darwin
11622 need_lib_prefix=no
11623 need_version=no
11624 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11625 soname_spec='$libname$release$major$shared_ext'
11626 shlibpath_overrides_runpath=yes
11627 shlibpath_var=DYLD_LIBRARY_PATH
11628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11629
11630 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11631 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11632 ;;
11633
11634 dgux*)
11635 version_type=linux # correct to gnu/linux during the next big refactor
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11639 soname_spec='$libname$release$shared_ext$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 ;;
11642
11643 freebsd* | dragonfly*)
11644 # DragonFly does not have aout. When/if they implement a new
11645 # versioning mechanism, adjust this.
11646 if test -x /usr/bin/objformat; then
11647 objformat=`/usr/bin/objformat`
11648 else
11649 case $host_os in
11650 freebsd[23].*) objformat=aout ;;
11651 *) objformat=elf ;;
11652 esac
11653 fi
11654 version_type=freebsd-$objformat
11655 case $version_type in
11656 freebsd-elf*)
11657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11658 soname_spec='$libname$release$shared_ext$major'
11659 need_version=no
11660 need_lib_prefix=no
11661 ;;
11662 freebsd-*)
11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11664 need_version=yes
11665 ;;
11666 esac
11667 shlibpath_var=LD_LIBRARY_PATH
11668 case $host_os in
11669 freebsd2.*)
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672 freebsd3.[01]* | freebsdelf3.[01]*)
11673 shlibpath_overrides_runpath=yes
11674 hardcode_into_libs=yes
11675 ;;
11676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11678 shlibpath_overrides_runpath=no
11679 hardcode_into_libs=yes
11680 ;;
11681 *) # from 4.6 on, and DragonFly
11682 shlibpath_overrides_runpath=yes
11683 hardcode_into_libs=yes
11684 ;;
11685 esac
11686 ;;
11687
11688 haiku*)
11689 version_type=linux # correct to gnu/linux during the next big refactor
11690 need_lib_prefix=no
11691 need_version=no
11692 dynamic_linker="$host_os runtime_loader"
11693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11694 soname_spec='$libname$release$shared_ext$major'
11695 shlibpath_var=LIBRARY_PATH
11696 shlibpath_overrides_runpath=no
11697 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11698 hardcode_into_libs=yes
11699 ;;
11700
11701 hpux9* | hpux10* | hpux11*)
11702 # Give a soname corresponding to the major version so that dld.sl refuses to
11703 # link against other versions.
11704 version_type=sunos
11705 need_lib_prefix=no
11706 need_version=no
11707 case $host_cpu in
11708 ia64*)
11709 shrext_cmds='.so'
11710 hardcode_into_libs=yes
11711 dynamic_linker="$host_os dld.so"
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11715 soname_spec='$libname$release$shared_ext$major'
11716 if test 32 = "$HPUX_IA64_MODE"; then
11717 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11718 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11719 else
11720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11721 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11722 fi
11723 ;;
11724 hppa*64*)
11725 shrext_cmds='.sl'
11726 hardcode_into_libs=yes
11727 dynamic_linker="$host_os dld.sl"
11728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11731 soname_spec='$libname$release$shared_ext$major'
11732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11734 ;;
11735 *)
11736 shrext_cmds='.sl'
11737 dynamic_linker="$host_os dld.sl"
11738 shlibpath_var=SHLIB_PATH
11739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11741 soname_spec='$libname$release$shared_ext$major'
11742 ;;
11743 esac
11744 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11745 postinstall_cmds='chmod 555 $lib'
11746 # or fails outright, so override atomically:
11747 install_override_mode=555
11748 ;;
11749
11750 interix[3-9]*)
11751 version_type=linux # correct to gnu/linux during the next big refactor
11752 need_lib_prefix=no
11753 need_version=no
11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11755 soname_spec='$libname$release$shared_ext$major'
11756 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=no
11759 hardcode_into_libs=yes
11760 ;;
11761
11762 irix5* | irix6* | nonstopux*)
11763 case $host_os in
11764 nonstopux*) version_type=nonstopux ;;
11765 *)
11766 if test yes = "$lt_cv_prog_gnu_ld"; then
11767 version_type=linux # correct to gnu/linux during the next big refactor
11768 else
11769 version_type=irix
11770 fi ;;
11771 esac
11772 need_lib_prefix=no
11773 need_version=no
11774 soname_spec='$libname$release$shared_ext$major'
11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11776 case $host_os in
11777 irix5* | nonstopux*)
11778 libsuff= shlibsuff=
11779 ;;
11780 *)
11781 case $LD in # libtool.m4 will add one of these switches to LD
11782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11783 libsuff= shlibsuff= libmagic=32-bit;;
11784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11785 libsuff=32 shlibsuff=N32 libmagic=N32;;
11786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11788 *) libsuff= shlibsuff= libmagic=never-match;;
11789 esac
11790 ;;
11791 esac
11792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11793 shlibpath_overrides_runpath=no
11794 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11795 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11796 hardcode_into_libs=yes
11797 ;;
11798
11799 # No shared lib support for Linux oldld, aout, or coff.
11800 linux*oldld* | linux*aout* | linux*coff*)
11801 dynamic_linker=no
11802 ;;
11803
11804 linux*android*)
11805 version_type=none # Android doesn't support versioned libraries.
11806 need_lib_prefix=no
11807 need_version=no
11808 library_names_spec='$libname$release$shared_ext'
11809 soname_spec='$libname$release$shared_ext'
11810 finish_cmds=
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=yes
11813
11814 # This implies no fast_install, which is unacceptable.
11815 # Some rework will be needed to allow for fast_install
11816 # before this can be enabled.
11817 hardcode_into_libs=yes
11818
11819 dynamic_linker='Android linker'
11820 # Don't embed -rpath directories since the linker doesn't support them.
11821 hardcode_libdir_flag_spec='-L$libdir'
11822 ;;
11823
11824 # This must be glibc/ELF.
11825 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11826 version_type=linux # correct to gnu/linux during the next big refactor
11827 need_lib_prefix=no
11828 need_version=no
11829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11830 soname_spec='$libname$release$shared_ext$major'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=no
11834
11835 # Some binutils ld are patched to set DT_RUNPATH
11836 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 lt_cv_shlibpath_overrides_runpath=no
11840 save_LDFLAGS=$LDFLAGS
11841 save_libdir=$libdir
11842 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11843 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11846
11847 int
11848 main ()
11849 {
11850
11851 ;
11852 return 0;
11853 }
11854 _ACEOF
11855 if ac_fn_c_try_link "$LINENO"; then :
11856 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11857 lt_cv_shlibpath_overrides_runpath=yes
11858 fi
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862 LDFLAGS=$save_LDFLAGS
11863 libdir=$save_libdir
11864
11865 fi
11866
11867 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11868
11869 # This implies no fast_install, which is unacceptable.
11870 # Some rework will be needed to allow for fast_install
11871 # before this can be enabled.
11872 hardcode_into_libs=yes
11873
11874 # Ideally, we could use ldconfig to report *all* directores which are
11875 # searched for libraries, however this is still not possible. Aside from not
11876 # being certain /sbin/ldconfig is available, command
11877 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11878 # even though it is searched at run-time. Try to do the best guess by
11879 # appending ld.so.conf contents (and includes) to the search path.
11880 if test -f /etc/ld.so.conf; then
11881 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' ' '`
11882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11883 fi
11884
11885 # We used to test for /lib/ld.so.1 and disable shared libraries on
11886 # powerpc, because MkLinux only supported shared libraries with the
11887 # GNU dynamic linker. Since this was broken with cross compilers,
11888 # most powerpc-linux boxes support dynamic linking these days and
11889 # people can always --disable-shared, the test was removed, and we
11890 # assume the GNU/Linux dynamic linker is in use.
11891 dynamic_linker='GNU/Linux ld.so'
11892 ;;
11893
11894 netbsdelf*-gnu)
11895 version_type=linux
11896 need_lib_prefix=no
11897 need_version=no
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11899 soname_spec='${libname}${release}${shared_ext}$major'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=no
11902 hardcode_into_libs=yes
11903 dynamic_linker='NetBSD ld.elf_so'
11904 ;;
11905
11906 netbsd*)
11907 version_type=sunos
11908 need_lib_prefix=no
11909 need_version=no
11910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11913 dynamic_linker='NetBSD (a.out) ld.so'
11914 else
11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11916 soname_spec='$libname$release$shared_ext$major'
11917 dynamic_linker='NetBSD ld.elf_so'
11918 fi
11919 shlibpath_var=LD_LIBRARY_PATH
11920 shlibpath_overrides_runpath=yes
11921 hardcode_into_libs=yes
11922 ;;
11923
11924 newsos6)
11925 version_type=linux # correct to gnu/linux during the next big refactor
11926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes
11929 ;;
11930
11931 *nto* | *qnx*)
11932 version_type=qnx
11933 need_lib_prefix=no
11934 need_version=no
11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936 soname_spec='$libname$release$shared_ext$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=no
11939 hardcode_into_libs=yes
11940 dynamic_linker='ldqnx.so'
11941 ;;
11942
11943 openbsd* | bitrig*)
11944 version_type=sunos
11945 sys_lib_dlsearch_path_spec=/usr/lib
11946 need_lib_prefix=no
11947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11948 need_version=no
11949 else
11950 need_version=yes
11951 fi
11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath=yes
11956 ;;
11957
11958 os2*)
11959 libname_spec='$name'
11960 version_type=windows
11961 shrext_cmds=.dll
11962 need_version=no
11963 need_lib_prefix=no
11964 # OS/2 can only load a DLL with a base name of 8 characters or less.
11965 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11966 v=$($ECHO $release$versuffix | tr -d .-);
11967 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11968 $ECHO $n$v`$shared_ext'
11969 library_names_spec='${libname}_dll.$libext'
11970 dynamic_linker='OS/2 ld.exe'
11971 shlibpath_var=BEGINLIBPATH
11972 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11974 postinstall_cmds='base_file=`basename \$file`~
11975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11976 dldir=$destdir/`dirname \$dlpath`~
11977 test -d \$dldir || mkdir -p \$dldir~
11978 $install_prog $dir/$dlname \$dldir/$dlname~
11979 chmod a+x \$dldir/$dlname~
11980 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11981 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11982 fi'
11983 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11984 dlpath=$dir/\$dldll~
11985 $RM \$dlpath'
11986 ;;
11987
11988 osf3* | osf4* | osf5*)
11989 version_type=osf
11990 need_lib_prefix=no
11991 need_version=no
11992 soname_spec='$libname$release$shared_ext$major'
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11997 ;;
11998
11999 rdos*)
12000 dynamic_linker=no
12001 ;;
12002
12003 solaris*)
12004 version_type=linux # correct to gnu/linux during the next big refactor
12005 need_lib_prefix=no
12006 need_version=no
12007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12008 soname_spec='$libname$release$shared_ext$major'
12009 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=yes
12011 hardcode_into_libs=yes
12012 # ldd complains unless libraries are executable
12013 postinstall_cmds='chmod +x $lib'
12014 ;;
12015
12016 sunos4*)
12017 version_type=sunos
12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 shlibpath_overrides_runpath=yes
12022 if test yes = "$with_gnu_ld"; then
12023 need_lib_prefix=no
12024 fi
12025 need_version=yes
12026 ;;
12027
12028 sysv4 | sysv4.3*)
12029 version_type=linux # correct to gnu/linux during the next big refactor
12030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031 soname_spec='$libname$release$shared_ext$major'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 case $host_vendor in
12034 sni)
12035 shlibpath_overrides_runpath=no
12036 need_lib_prefix=no
12037 runpath_var=LD_RUN_PATH
12038 ;;
12039 siemens)
12040 need_lib_prefix=no
12041 ;;
12042 motorola)
12043 need_lib_prefix=no
12044 need_version=no
12045 shlibpath_overrides_runpath=no
12046 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12047 ;;
12048 esac
12049 ;;
12050
12051 sysv4*MP*)
12052 if test -d /usr/nec; then
12053 version_type=linux # correct to gnu/linux during the next big refactor
12054 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12055 soname_spec='$libname$shared_ext.$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 fi
12058 ;;
12059
12060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12061 version_type=sco
12062 need_lib_prefix=no
12063 need_version=no
12064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12065 soname_spec='$libname$release$shared_ext$major'
12066 shlibpath_var=LD_LIBRARY_PATH
12067 shlibpath_overrides_runpath=yes
12068 hardcode_into_libs=yes
12069 if test yes = "$with_gnu_ld"; then
12070 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12071 else
12072 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12073 case $host_os in
12074 sco3.2v5*)
12075 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12076 ;;
12077 esac
12078 fi
12079 sys_lib_dlsearch_path_spec='/usr/lib'
12080 ;;
12081
12082 tpf*)
12083 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12084 version_type=linux # correct to gnu/linux during the next big refactor
12085 need_lib_prefix=no
12086 need_version=no
12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 shlibpath_overrides_runpath=no
12090 hardcode_into_libs=yes
12091 ;;
12092
12093 uts4*)
12094 version_type=linux # correct to gnu/linux during the next big refactor
12095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12096 soname_spec='$libname$release$shared_ext$major'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 ;;
12099
12100 *)
12101 dynamic_linker=no
12102 ;;
12103 esac
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12105 $as_echo "$dynamic_linker" >&6; }
12106 test no = "$dynamic_linker" && can_build_shared=no
12107
12108 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12109 if test yes = "$GCC"; then
12110 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12111 fi
12112
12113 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12114 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12115 fi
12116
12117 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12118 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12119 fi
12120
12121 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12122 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12123
12124 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12125 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12126
12127 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12128 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12228 hardcode_action=
12229 if test -n "$hardcode_libdir_flag_spec" ||
12230 test -n "$runpath_var" ||
12231 test yes = "$hardcode_automatic"; then
12232
12233 # We can hardcode non-existent directories.
12234 if test no != "$hardcode_direct" &&
12235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12236 # have to relink, otherwise we might link with an installed library
12237 # when we should be linking with a yet-to-be-installed one
12238 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12239 test no != "$hardcode_minus_L"; then
12240 # Linking always hardcodes the temporary library directory.
12241 hardcode_action=relink
12242 else
12243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12244 hardcode_action=immediate
12245 fi
12246 else
12247 # We cannot hardcode anything, or else we can only hardcode existing
12248 # directories.
12249 hardcode_action=unsupported
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12252 $as_echo "$hardcode_action" >&6; }
12253
12254 if test relink = "$hardcode_action" ||
12255 test yes = "$inherit_rpath"; then
12256 # Fast installation is not supported
12257 enable_fast_install=no
12258 elif test yes = "$shlibpath_overrides_runpath" ||
12259 test no = "$enable_shared"; then
12260 # Fast installation is not necessary
12261 enable_fast_install=needless
12262 fi
12263
12264
12265
12266
12267
12268
12269 if test yes != "$enable_dlopen"; then
12270 enable_dlopen=unknown
12271 enable_dlopen_self=unknown
12272 enable_dlopen_self_static=unknown
12273 else
12274 lt_cv_dlopen=no
12275 lt_cv_dlopen_libs=
12276
12277 case $host_os in
12278 beos*)
12279 lt_cv_dlopen=load_add_on
12280 lt_cv_dlopen_libs=
12281 lt_cv_dlopen_self=yes
12282 ;;
12283
12284 mingw* | pw32* | cegcc*)
12285 lt_cv_dlopen=LoadLibrary
12286 lt_cv_dlopen_libs=
12287 ;;
12288
12289 cygwin*)
12290 lt_cv_dlopen=dlopen
12291 lt_cv_dlopen_libs=
12292 ;;
12293
12294 darwin*)
12295 # if libdl is installed we need to link against it
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12297 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12298 if ${ac_cv_lib_dl_dlopen+:} false; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-ldl $LIBS"
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305
12306 /* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12309 #ifdef __cplusplus
12310 extern "C"
12311 #endif
12312 char dlopen ();
12313 int
12314 main ()
12315 {
12316 return dlopen ();
12317 ;
12318 return 0;
12319 }
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"; then :
12322 ac_cv_lib_dl_dlopen=yes
12323 else
12324 ac_cv_lib_dl_dlopen=no
12325 fi
12326 rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12328 LIBS=$ac_check_lib_save_LIBS
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12331 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12332 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12333 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12334 else
12335
12336 lt_cv_dlopen=dyld
12337 lt_cv_dlopen_libs=
12338 lt_cv_dlopen_self=yes
12339
12340 fi
12341
12342 ;;
12343
12344 tpf*)
12345 # Don't try to run any link tests for TPF. We know it's impossible
12346 # because TPF is a cross-compiler, and we know how we open DSOs.
12347 lt_cv_dlopen=dlopen
12348 lt_cv_dlopen_libs=
12349 lt_cv_dlopen_self=no
12350 ;;
12351
12352 *)
12353 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12354 if test "x$ac_cv_func_shl_load" = xyes; then :
12355 lt_cv_dlopen=shl_load
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12358 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12359 if ${ac_cv_lib_dld_shl_load+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-ldld $LIBS"
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366
12367 /* Override any GCC internal prototype to avoid an error.
12368 Use char because int might match the return type of a GCC
12369 builtin and then its argument prototype would still apply. */
12370 #ifdef __cplusplus
12371 extern "C"
12372 #endif
12373 char shl_load ();
12374 int
12375 main ()
12376 {
12377 return shl_load ();
12378 ;
12379 return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_c_try_link "$LINENO"; then :
12383 ac_cv_lib_dld_shl_load=yes
12384 else
12385 ac_cv_lib_dld_shl_load=no
12386 fi
12387 rm -f core conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12390 fi
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12392 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12393 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12394 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12395 else
12396 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12397 if test "x$ac_cv_func_dlopen" = xyes; then :
12398 lt_cv_dlopen=dlopen
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12402 if ${ac_cv_lib_dl_dlopen+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-ldl $LIBS"
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char dlopen ();
12417 int
12418 main ()
12419 {
12420 return dlopen ();
12421 ;
12422 return 0;
12423 }
12424 _ACEOF
12425 if ac_fn_c_try_link "$LINENO"; then :
12426 ac_cv_lib_dl_dlopen=yes
12427 else
12428 ac_cv_lib_dl_dlopen=no
12429 fi
12430 rm -f core conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext conftest.$ac_ext
12432 LIBS=$ac_check_lib_save_LIBS
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12437 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12440 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12441 if ${ac_cv_lib_svld_dlopen+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-lsvld $LIBS"
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12448
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 char dlopen ();
12456 int
12457 main ()
12458 {
12459 return dlopen ();
12460 ;
12461 return 0;
12462 }
12463 _ACEOF
12464 if ac_fn_c_try_link "$LINENO"; then :
12465 ac_cv_lib_svld_dlopen=yes
12466 else
12467 ac_cv_lib_svld_dlopen=no
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12475 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12476 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12477 else
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12480 if ${ac_cv_lib_dld_dld_link+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483 ac_check_lib_save_LIBS=$LIBS
12484 LIBS="-ldld $LIBS"
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487
12488 /* Override any GCC internal prototype to avoid an error.
12489 Use char because int might match the return type of a GCC
12490 builtin and then its argument prototype would still apply. */
12491 #ifdef __cplusplus
12492 extern "C"
12493 #endif
12494 char dld_link ();
12495 int
12496 main ()
12497 {
12498 return dld_link ();
12499 ;
12500 return 0;
12501 }
12502 _ACEOF
12503 if ac_fn_c_try_link "$LINENO"; then :
12504 ac_cv_lib_dld_dld_link=yes
12505 else
12506 ac_cv_lib_dld_dld_link=no
12507 fi
12508 rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12510 LIBS=$ac_check_lib_save_LIBS
12511 fi
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12513 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12514 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12515 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12516 fi
12517
12518
12519 fi
12520
12521
12522 fi
12523
12524
12525 fi
12526
12527
12528 fi
12529
12530
12531 fi
12532
12533 ;;
12534 esac
12535
12536 if test no = "$lt_cv_dlopen"; then
12537 enable_dlopen=no
12538 else
12539 enable_dlopen=yes
12540 fi
12541
12542 case $lt_cv_dlopen in
12543 dlopen)
12544 save_CPPFLAGS=$CPPFLAGS
12545 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12546
12547 save_LDFLAGS=$LDFLAGS
12548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12549
12550 save_LIBS=$LIBS
12551 LIBS="$lt_cv_dlopen_libs $LIBS"
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12554 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12555 if ${lt_cv_dlopen_self+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 if test yes = "$cross_compiling"; then :
12559 lt_cv_dlopen_self=cross
12560 else
12561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12562 lt_status=$lt_dlunknown
12563 cat > conftest.$ac_ext <<_LT_EOF
12564 #line $LINENO "configure"
12565 #include "confdefs.h"
12566
12567 #if HAVE_DLFCN_H
12568 #include <dlfcn.h>
12569 #endif
12570
12571 #include <stdio.h>
12572
12573 #ifdef RTLD_GLOBAL
12574 # define LT_DLGLOBAL RTLD_GLOBAL
12575 #else
12576 # ifdef DL_GLOBAL
12577 # define LT_DLGLOBAL DL_GLOBAL
12578 # else
12579 # define LT_DLGLOBAL 0
12580 # endif
12581 #endif
12582
12583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12584 find out it does not work in some platform. */
12585 #ifndef LT_DLLAZY_OR_NOW
12586 # ifdef RTLD_LAZY
12587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12588 # else
12589 # ifdef DL_LAZY
12590 # define LT_DLLAZY_OR_NOW DL_LAZY
12591 # else
12592 # ifdef RTLD_NOW
12593 # define LT_DLLAZY_OR_NOW RTLD_NOW
12594 # else
12595 # ifdef DL_NOW
12596 # define LT_DLLAZY_OR_NOW DL_NOW
12597 # else
12598 # define LT_DLLAZY_OR_NOW 0
12599 # endif
12600 # endif
12601 # endif
12602 # endif
12603 #endif
12604
12605 /* When -fvisibility=hidden is used, assume the code has been annotated
12606 correspondingly for the symbols needed. */
12607 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12608 int fnord () __attribute__((visibility("default")));
12609 #endif
12610
12611 int fnord () { return 42; }
12612 int main ()
12613 {
12614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12615 int status = $lt_dlunknown;
12616
12617 if (self)
12618 {
12619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12620 else
12621 {
12622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12623 else puts (dlerror ());
12624 }
12625 /* dlclose (self); */
12626 }
12627 else
12628 puts (dlerror ());
12629
12630 return status;
12631 }
12632 _LT_EOF
12633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12634 (eval $ac_link) 2>&5
12635 ac_status=$?
12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12638 (./conftest; exit; ) >&5 2>/dev/null
12639 lt_status=$?
12640 case x$lt_status in
12641 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12642 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12643 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12644 esac
12645 else :
12646 # compilation failed
12647 lt_cv_dlopen_self=no
12648 fi
12649 fi
12650 rm -fr conftest*
12651
12652
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12655 $as_echo "$lt_cv_dlopen_self" >&6; }
12656
12657 if test yes = "$lt_cv_dlopen_self"; then
12658 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12660 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12661 if ${lt_cv_dlopen_self_static+:} false; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 if test yes = "$cross_compiling"; then :
12665 lt_cv_dlopen_self_static=cross
12666 else
12667 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12668 lt_status=$lt_dlunknown
12669 cat > conftest.$ac_ext <<_LT_EOF
12670 #line $LINENO "configure"
12671 #include "confdefs.h"
12672
12673 #if HAVE_DLFCN_H
12674 #include <dlfcn.h>
12675 #endif
12676
12677 #include <stdio.h>
12678
12679 #ifdef RTLD_GLOBAL
12680 # define LT_DLGLOBAL RTLD_GLOBAL
12681 #else
12682 # ifdef DL_GLOBAL
12683 # define LT_DLGLOBAL DL_GLOBAL
12684 # else
12685 # define LT_DLGLOBAL 0
12686 # endif
12687 #endif
12688
12689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12690 find out it does not work in some platform. */
12691 #ifndef LT_DLLAZY_OR_NOW
12692 # ifdef RTLD_LAZY
12693 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12694 # else
12695 # ifdef DL_LAZY
12696 # define LT_DLLAZY_OR_NOW DL_LAZY
12697 # else
12698 # ifdef RTLD_NOW
12699 # define LT_DLLAZY_OR_NOW RTLD_NOW
12700 # else
12701 # ifdef DL_NOW
12702 # define LT_DLLAZY_OR_NOW DL_NOW
12703 # else
12704 # define LT_DLLAZY_OR_NOW 0
12705 # endif
12706 # endif
12707 # endif
12708 # endif
12709 #endif
12710
12711 /* When -fvisibility=hidden is used, assume the code has been annotated
12712 correspondingly for the symbols needed. */
12713 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12714 int fnord () __attribute__((visibility("default")));
12715 #endif
12716
12717 int fnord () { return 42; }
12718 int main ()
12719 {
12720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12721 int status = $lt_dlunknown;
12722
12723 if (self)
12724 {
12725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12726 else
12727 {
12728 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12729 else puts (dlerror ());
12730 }
12731 /* dlclose (self); */
12732 }
12733 else
12734 puts (dlerror ());
12735
12736 return status;
12737 }
12738 _LT_EOF
12739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12740 (eval $ac_link) 2>&5
12741 ac_status=$?
12742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12744 (./conftest; exit; ) >&5 2>/dev/null
12745 lt_status=$?
12746 case x$lt_status in
12747 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12748 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12749 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12750 esac
12751 else :
12752 # compilation failed
12753 lt_cv_dlopen_self_static=no
12754 fi
12755 fi
12756 rm -fr conftest*
12757
12758
12759 fi
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12761 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12762 fi
12763
12764 CPPFLAGS=$save_CPPFLAGS
12765 LDFLAGS=$save_LDFLAGS
12766 LIBS=$save_LIBS
12767 ;;
12768 esac
12769
12770 case $lt_cv_dlopen_self in
12771 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12772 *) enable_dlopen_self=unknown ;;
12773 esac
12774
12775 case $lt_cv_dlopen_self_static in
12776 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12777 *) enable_dlopen_self_static=unknown ;;
12778 esac
12779 fi
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797 striplib=
12798 old_striplib=
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12800 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12801 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12802 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12803 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12805 $as_echo "yes" >&6; }
12806 else
12807 # FIXME - insert some real tests, host_os isn't really good enough
12808 case $host_os in
12809 darwin*)
12810 if test -n "$STRIP"; then
12811 striplib="$STRIP -x"
12812 old_striplib="$STRIP -S"
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12814 $as_echo "yes" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12818 fi
12819 ;;
12820 *)
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12823 ;;
12824 esac
12825 fi
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838 # Report what library types will actually be built
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12840 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12842 $as_echo "$can_build_shared" >&6; }
12843
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12845 $as_echo_n "checking whether to build shared libraries... " >&6; }
12846 test no = "$can_build_shared" && enable_shared=no
12847
12848 # On AIX, shared libraries and static libraries use the same namespace, and
12849 # are all built from PIC.
12850 case $host_os in
12851 aix3*)
12852 test yes = "$enable_shared" && enable_static=no
12853 if test -n "$RANLIB"; then
12854 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12855 postinstall_cmds='$RANLIB $lib'
12856 fi
12857 ;;
12858
12859 aix[4-9]*)
12860 if test ia64 != "$host_cpu"; then
12861 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12862 yes,aix,yes) ;; # shared object as lib.so file only
12863 yes,svr4,*) ;; # shared object as lib.so archive member only
12864 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12865 esac
12866 fi
12867 ;;
12868 esac
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12870 $as_echo "$enable_shared" >&6; }
12871
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12873 $as_echo_n "checking whether to build static libraries... " >&6; }
12874 # Make sure either enable_shared or enable_static is yes.
12875 test yes = "$enable_shared" || enable_static=yes
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12877 $as_echo "$enable_static" >&6; }
12878
12879
12880
12881
12882 fi
12883 ac_ext=c
12884 ac_cpp='$CPP $CPPFLAGS'
12885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12888
12889 CC=$lt_save_CC
12890
12891 if test -n "$CXX" && ( test no != "$CXX" &&
12892 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12893 (test g++ != "$CXX"))); then
12894 ac_ext=cpp
12895 ac_cpp='$CXXCPP $CPPFLAGS'
12896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12900 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12901 if test -z "$CXXCPP"; then
12902 if ${ac_cv_prog_CXXCPP+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 # Double quotes because CXXCPP needs to be expanded
12906 for CXXCPP in "$CXX -E" "/lib/cpp"
12907 do
12908 ac_preproc_ok=false
12909 for ac_cxx_preproc_warn_flag in '' yes
12910 do
12911 # Use a header file that comes with gcc, so configuring glibc
12912 # with a fresh cross-compiler works.
12913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12914 # <limits.h> exists even on freestanding compilers.
12915 # On the NeXT, cc -E runs the code through the compiler's parser,
12916 # not just through cpp. "Syntax error" is here to catch this case.
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919 #ifdef __STDC__
12920 # include <limits.h>
12921 #else
12922 # include <assert.h>
12923 #endif
12924 Syntax error
12925 _ACEOF
12926 if ac_fn_cxx_try_cpp "$LINENO"; then :
12927
12928 else
12929 # Broken: fails on valid input.
12930 continue
12931 fi
12932 rm -f conftest.err conftest.i conftest.$ac_ext
12933
12934 # OK, works on sane cases. Now check whether nonexistent headers
12935 # can be detected and how.
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12938 #include <ac_nonexistent.h>
12939 _ACEOF
12940 if ac_fn_cxx_try_cpp "$LINENO"; then :
12941 # Broken: success on invalid input.
12942 continue
12943 else
12944 # Passes both tests.
12945 ac_preproc_ok=:
12946 break
12947 fi
12948 rm -f conftest.err conftest.i conftest.$ac_ext
12949
12950 done
12951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12952 rm -f conftest.i conftest.err conftest.$ac_ext
12953 if $ac_preproc_ok; then :
12954 break
12955 fi
12956
12957 done
12958 ac_cv_prog_CXXCPP=$CXXCPP
12959
12960 fi
12961 CXXCPP=$ac_cv_prog_CXXCPP
12962 else
12963 ac_cv_prog_CXXCPP=$CXXCPP
12964 fi
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12966 $as_echo "$CXXCPP" >&6; }
12967 ac_preproc_ok=false
12968 for ac_cxx_preproc_warn_flag in '' yes
12969 do
12970 # Use a header file that comes with gcc, so configuring glibc
12971 # with a fresh cross-compiler works.
12972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12973 # <limits.h> exists even on freestanding compilers.
12974 # On the NeXT, cc -E runs the code through the compiler's parser,
12975 # not just through cpp. "Syntax error" is here to catch this case.
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12978 #ifdef __STDC__
12979 # include <limits.h>
12980 #else
12981 # include <assert.h>
12982 #endif
12983 Syntax error
12984 _ACEOF
12985 if ac_fn_cxx_try_cpp "$LINENO"; then :
12986
12987 else
12988 # Broken: fails on valid input.
12989 continue
12990 fi
12991 rm -f conftest.err conftest.i conftest.$ac_ext
12992
12993 # OK, works on sane cases. Now check whether nonexistent headers
12994 # can be detected and how.
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12997 #include <ac_nonexistent.h>
12998 _ACEOF
12999 if ac_fn_cxx_try_cpp "$LINENO"; then :
13000 # Broken: success on invalid input.
13001 continue
13002 else
13003 # Passes both tests.
13004 ac_preproc_ok=:
13005 break
13006 fi
13007 rm -f conftest.err conftest.i conftest.$ac_ext
13008
13009 done
13010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13011 rm -f conftest.i conftest.err conftest.$ac_ext
13012 if $ac_preproc_ok; then :
13013
13014 else
13015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13017 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13018 See \`config.log' for more details" "$LINENO" 5; }
13019 fi
13020
13021 ac_ext=c
13022 ac_cpp='$CPP $CPPFLAGS'
13023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13026
13027 else
13028 _lt_caught_CXX_error=yes
13029 fi
13030
13031 ac_ext=cpp
13032 ac_cpp='$CXXCPP $CPPFLAGS'
13033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13036
13037 archive_cmds_need_lc_CXX=no
13038 allow_undefined_flag_CXX=
13039 always_export_symbols_CXX=no
13040 archive_expsym_cmds_CXX=
13041 compiler_needs_object_CXX=no
13042 export_dynamic_flag_spec_CXX=
13043 hardcode_direct_CXX=no
13044 hardcode_direct_absolute_CXX=no
13045 hardcode_libdir_flag_spec_CXX=
13046 hardcode_libdir_separator_CXX=
13047 hardcode_minus_L_CXX=no
13048 hardcode_shlibpath_var_CXX=unsupported
13049 hardcode_automatic_CXX=no
13050 inherit_rpath_CXX=no
13051 module_cmds_CXX=
13052 module_expsym_cmds_CXX=
13053 link_all_deplibs_CXX=unknown
13054 old_archive_cmds_CXX=$old_archive_cmds
13055 reload_flag_CXX=$reload_flag
13056 reload_cmds_CXX=$reload_cmds
13057 no_undefined_flag_CXX=
13058 whole_archive_flag_spec_CXX=
13059 enable_shared_with_static_runtimes_CXX=no
13060
13061 # Source file extension for C++ test sources.
13062 ac_ext=cpp
13063
13064 # Object file extension for compiled C++ test sources.
13065 objext=o
13066 objext_CXX=$objext
13067
13068 # No sense in running all these tests if we already determined that
13069 # the CXX compiler isn't working. Some variables (like enable_shared)
13070 # are currently assumed to apply to all compilers on this platform,
13071 # and will be corrupted by setting them based on a non-working compiler.
13072 if test yes != "$_lt_caught_CXX_error"; then
13073 # Code to be used in simple compile tests
13074 lt_simple_compile_test_code="int some_variable = 0;"
13075
13076 # Code to be used in simple link tests
13077 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13078
13079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13080
13081
13082
13083
13084
13085
13086 # If no C compiler was specified, use CC.
13087 LTCC=${LTCC-"$CC"}
13088
13089 # If no C compiler flags were specified, use CFLAGS.
13090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13091
13092 # Allow CC to be a program name with arguments.
13093 compiler=$CC
13094
13095
13096 # save warnings/boilerplate of simple test code
13097 ac_outfile=conftest.$ac_objext
13098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13100 _lt_compiler_boilerplate=`cat conftest.err`
13101 $RM conftest*
13102
13103 ac_outfile=conftest.$ac_objext
13104 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13106 _lt_linker_boilerplate=`cat conftest.err`
13107 $RM -r conftest*
13108
13109
13110 # Allow CC to be a program name with arguments.
13111 lt_save_CC=$CC
13112 lt_save_CFLAGS=$CFLAGS
13113 lt_save_LD=$LD
13114 lt_save_GCC=$GCC
13115 GCC=$GXX
13116 lt_save_with_gnu_ld=$with_gnu_ld
13117 lt_save_path_LD=$lt_cv_path_LD
13118 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13119 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13120 else
13121 $as_unset lt_cv_prog_gnu_ld
13122 fi
13123 if test -n "${lt_cv_path_LDCXX+set}"; then
13124 lt_cv_path_LD=$lt_cv_path_LDCXX
13125 else
13126 $as_unset lt_cv_path_LD
13127 fi
13128 test -z "${LDCXX+set}" || LD=$LDCXX
13129 CC=${CXX-"c++"}
13130 CFLAGS=$CXXFLAGS
13131 compiler=$CC
13132 compiler_CXX=$CC
13133 func_cc_basename $compiler
13134 cc_basename=$func_cc_basename_result
13135
13136
13137 if test -n "$compiler"; then
13138 # We don't want -fno-exception when compiling C++ code, so set the
13139 # no_builtin_flag separately
13140 if test yes = "$GXX"; then
13141 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13142 else
13143 lt_prog_compiler_no_builtin_flag_CXX=
13144 fi
13145
13146 if test yes = "$GXX"; then
13147 # Set up default GNU C++ configuration
13148
13149
13150
13151 # Check whether --with-gnu-ld was given.
13152 if test "${with_gnu_ld+set}" = set; then :
13153 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13154 else
13155 with_gnu_ld=no
13156 fi
13157
13158 ac_prog=ld
13159 if test yes = "$GCC"; then
13160 # Check if gcc -print-prog-name=ld gives a path.
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13162 $as_echo_n "checking for ld used by $CC... " >&6; }
13163 case $host in
13164 *-*-mingw*)
13165 # gcc leaves a trailing carriage return, which upsets mingw
13166 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13167 *)
13168 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13169 esac
13170 case $ac_prog in
13171 # Accept absolute paths.
13172 [\\/]* | ?:[\\/]*)
13173 re_direlt='/[^/][^/]*/\.\./'
13174 # Canonicalize the pathname of ld
13175 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13176 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13177 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13178 done
13179 test -z "$LD" && LD=$ac_prog
13180 ;;
13181 "")
13182 # If it fails, then pretend we aren't using GCC.
13183 ac_prog=ld
13184 ;;
13185 *)
13186 # If it is relative, then search for the first ld in PATH.
13187 with_gnu_ld=unknown
13188 ;;
13189 esac
13190 elif test yes = "$with_gnu_ld"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13192 $as_echo_n "checking for GNU ld... " >&6; }
13193 else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13195 $as_echo_n "checking for non-GNU ld... " >&6; }
13196 fi
13197 if ${lt_cv_path_LD+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 if test -z "$LD"; then
13201 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13202 for ac_dir in $PATH; do
13203 IFS=$lt_save_ifs
13204 test -z "$ac_dir" && ac_dir=.
13205 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13206 lt_cv_path_LD=$ac_dir/$ac_prog
13207 # Check to see if the program is GNU ld. I'd rather use --version,
13208 # but apparently some variants of GNU ld only accept -v.
13209 # Break only if it was the GNU/non-GNU ld that we prefer.
13210 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13211 *GNU* | *'with BFD'*)
13212 test no != "$with_gnu_ld" && break
13213 ;;
13214 *)
13215 test yes != "$with_gnu_ld" && break
13216 ;;
13217 esac
13218 fi
13219 done
13220 IFS=$lt_save_ifs
13221 else
13222 lt_cv_path_LD=$LD # Let the user override the test with a path.
13223 fi
13224 fi
13225
13226 LD=$lt_cv_path_LD
13227 if test -n "$LD"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13229 $as_echo "$LD" >&6; }
13230 else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13233 fi
13234 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13236 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13237 if ${lt_cv_prog_gnu_ld+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13241 case `$LD -v 2>&1 </dev/null` in
13242 *GNU* | *'with BFD'*)
13243 lt_cv_prog_gnu_ld=yes
13244 ;;
13245 *)
13246 lt_cv_prog_gnu_ld=no
13247 ;;
13248 esac
13249 fi
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13251 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13252 with_gnu_ld=$lt_cv_prog_gnu_ld
13253
13254
13255
13256
13257
13258
13259
13260 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13261 # archiving commands below assume that GNU ld is being used.
13262 if test yes = "$with_gnu_ld"; then
13263 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13264 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'
13265
13266 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13267 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13268
13269 # If archive_cmds runs LD, not CC, wlarc should be empty
13270 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13271 # investigate it a little bit more. (MM)
13272 wlarc='$wl'
13273
13274 # ancient GNU ld didn't support --whole-archive et. al.
13275 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13276 $GREP 'no-whole-archive' > /dev/null; then
13277 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13278 else
13279 whole_archive_flag_spec_CXX=
13280 fi
13281 else
13282 with_gnu_ld=no
13283 wlarc=
13284
13285 # A generic and very simple default shared library creation
13286 # command for GNU C++ for the case where it uses the native
13287 # linker, instead of GNU ld. If possible, this setting should
13288 # overridden to take advantage of the native linker features on
13289 # the platform it is being used on.
13290 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13291 fi
13292
13293 # Commands to make compiler produce verbose output that lists
13294 # what "hidden" libraries, object files and flags are used when
13295 # linking a shared library.
13296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13297
13298 else
13299 GXX=no
13300 with_gnu_ld=no
13301 wlarc=
13302 fi
13303
13304 # PORTME: fill in a description of your system's C++ link characteristics
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13306 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13307 ld_shlibs_CXX=yes
13308 case $host_os in
13309 aix3*)
13310 # FIXME: insert proper C++ library support
13311 ld_shlibs_CXX=no
13312 ;;
13313 aix[4-9]*)
13314 if test ia64 = "$host_cpu"; then
13315 # On IA64, the linker does run time linking by default, so we don't
13316 # have to do anything special.
13317 aix_use_runtimelinking=no
13318 exp_sym_flag='-Bexport'
13319 no_entry_flag=
13320 else
13321 aix_use_runtimelinking=no
13322
13323 # Test if we are trying to use run time linking or normal
13324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13325 # have runtime linking enabled, and use it for executables.
13326 # For shared libraries, we enable/disable runtime linking
13327 # depending on the kind of the shared library created -
13328 # when "with_aix_soname,aix_use_runtimelinking" is:
13329 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13330 # "aix,yes" lib.so shared, rtl:yes, for executables
13331 # lib.a static archive
13332 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13333 # lib.a(lib.so.V) shared, rtl:no, for executables
13334 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13335 # lib.a(lib.so.V) shared, rtl:no
13336 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13337 # lib.a static archive
13338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13339 for ld_flag in $LDFLAGS; do
13340 case $ld_flag in
13341 *-brtl*)
13342 aix_use_runtimelinking=yes
13343 break
13344 ;;
13345 esac
13346 done
13347 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13348 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13349 # so we don't have lib.a shared libs to link our executables.
13350 # We have to force runtime linking in this case.
13351 aix_use_runtimelinking=yes
13352 LDFLAGS="$LDFLAGS -Wl,-brtl"
13353 fi
13354 ;;
13355 esac
13356
13357 exp_sym_flag='-bexport'
13358 no_entry_flag='-bnoentry'
13359 fi
13360
13361 # When large executables or shared objects are built, AIX ld can
13362 # have problems creating the table of contents. If linking a library
13363 # or program results in "error TOC overflow" add -mminimal-toc to
13364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13366
13367 archive_cmds_CXX=''
13368 hardcode_direct_CXX=yes
13369 hardcode_direct_absolute_CXX=yes
13370 hardcode_libdir_separator_CXX=':'
13371 link_all_deplibs_CXX=yes
13372 file_list_spec_CXX='$wl-f,'
13373 case $with_aix_soname,$aix_use_runtimelinking in
13374 aix,*) ;; # no import file
13375 svr4,* | *,yes) # use import file
13376 # The Import File defines what to hardcode.
13377 hardcode_direct_CXX=no
13378 hardcode_direct_absolute_CXX=no
13379 ;;
13380 esac
13381
13382 if test yes = "$GXX"; then
13383 case $host_os in aix4.[012]|aix4.[012].*)
13384 # We only want to do this on AIX 4.2 and lower, the check
13385 # below for broken collect2 doesn't work under 4.3+
13386 collect2name=`$CC -print-prog-name=collect2`
13387 if test -f "$collect2name" &&
13388 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13389 then
13390 # We have reworked collect2
13391 :
13392 else
13393 # We have old collect2
13394 hardcode_direct_CXX=unsupported
13395 # It fails to find uninstalled libraries when the uninstalled
13396 # path is not listed in the libpath. Setting hardcode_minus_L
13397 # to unsupported forces relinking
13398 hardcode_minus_L_CXX=yes
13399 hardcode_libdir_flag_spec_CXX='-L$libdir'
13400 hardcode_libdir_separator_CXX=
13401 fi
13402 esac
13403 shared_flag='-shared'
13404 if test yes = "$aix_use_runtimelinking"; then
13405 shared_flag=$shared_flag' $wl-G'
13406 fi
13407 # Need to ensure runtime linking is disabled for the traditional
13408 # shared library, or the linker may eventually find shared libraries
13409 # /with/ Import File - we do not want to mix them.
13410 shared_flag_aix='-shared'
13411 shared_flag_svr4='-shared $wl-G'
13412 else
13413 # not using gcc
13414 if test ia64 = "$host_cpu"; then
13415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13416 # chokes on -Wl,-G. The following line is correct:
13417 shared_flag='-G'
13418 else
13419 if test yes = "$aix_use_runtimelinking"; then
13420 shared_flag='$wl-G'
13421 else
13422 shared_flag='$wl-bM:SRE'
13423 fi
13424 shared_flag_aix='$wl-bM:SRE'
13425 shared_flag_svr4='$wl-G'
13426 fi
13427 fi
13428
13429 export_dynamic_flag_spec_CXX='$wl-bexpall'
13430 # It seems that -bexpall does not export symbols beginning with
13431 # underscore (_), so it is better to generate a list of symbols to
13432 # export.
13433 always_export_symbols_CXX=yes
13434 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13435 # Warning - without using the other runtime loading flags (-brtl),
13436 # -berok will link without error, but may produce a broken library.
13437 # The "-G" linker flag allows undefined symbols.
13438 no_undefined_flag_CXX='-bernotok'
13439 # Determine the default libpath from the value encoded in an empty
13440 # executable.
13441 if test set = "${lt_cv_aix_libpath+set}"; then
13442 aix_libpath=$lt_cv_aix_libpath
13443 else
13444 if ${lt_cv_aix_libpath__CXX+:} false; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449
13450 int
13451 main ()
13452 {
13453
13454 ;
13455 return 0;
13456 }
13457 _ACEOF
13458 if ac_fn_cxx_try_link "$LINENO"; then :
13459
13460 lt_aix_libpath_sed='
13461 /Import File Strings/,/^$/ {
13462 /^0/ {
13463 s/^0 *\([^ ]*\) *$/\1/
13464 p
13465 }
13466 }'
13467 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13468 # Check for a 64-bit object if we didn't find anything.
13469 if test -z "$lt_cv_aix_libpath__CXX"; then
13470 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13471 fi
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475 if test -z "$lt_cv_aix_libpath__CXX"; then
13476 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13477 fi
13478
13479 fi
13480
13481 aix_libpath=$lt_cv_aix_libpath__CXX
13482 fi
13483
13484 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13485
13486 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
13487 else
13488 if test ia64 = "$host_cpu"; then
13489 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13490 allow_undefined_flag_CXX="-z nodefs"
13491 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"
13492 else
13493 # Determine the default libpath from the value encoded in an
13494 # empty executable.
13495 if test set = "${lt_cv_aix_libpath+set}"; then
13496 aix_libpath=$lt_cv_aix_libpath
13497 else
13498 if ${lt_cv_aix_libpath__CXX+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503
13504 int
13505 main ()
13506 {
13507
13508 ;
13509 return 0;
13510 }
13511 _ACEOF
13512 if ac_fn_cxx_try_link "$LINENO"; then :
13513
13514 lt_aix_libpath_sed='
13515 /Import File Strings/,/^$/ {
13516 /^0/ {
13517 s/^0 *\([^ ]*\) *$/\1/
13518 p
13519 }
13520 }'
13521 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13522 # Check for a 64-bit object if we didn't find anything.
13523 if test -z "$lt_cv_aix_libpath__CXX"; then
13524 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13525 fi
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529 if test -z "$lt_cv_aix_libpath__CXX"; then
13530 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13531 fi
13532
13533 fi
13534
13535 aix_libpath=$lt_cv_aix_libpath__CXX
13536 fi
13537
13538 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13539 # Warning - without using the other run time loading flags,
13540 # -berok will link without error, but may produce a broken library.
13541 no_undefined_flag_CXX=' $wl-bernotok'
13542 allow_undefined_flag_CXX=' $wl-berok'
13543 if test yes = "$with_gnu_ld"; then
13544 # We only use this code for GNU lds that support --whole-archive.
13545 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13546 else
13547 # Exported symbols can be pulled into shared objects from archives
13548 whole_archive_flag_spec_CXX='$convenience'
13549 fi
13550 archive_cmds_need_lc_CXX=yes
13551 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13552 # -brtl affects multiple linker settings, -berok does not and is overridden later
13553 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13554 if test svr4 != "$with_aix_soname"; then
13555 # This is similar to how AIX traditionally builds its shared
13556 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13557 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'
13558 fi
13559 if test aix != "$with_aix_soname"; then
13560 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'
13561 else
13562 # used by -dlpreopen to get the symbols
13563 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13564 fi
13565 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13566 fi
13567 fi
13568 ;;
13569
13570 beos*)
13571 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13572 allow_undefined_flag_CXX=unsupported
13573 # Joseph Beckenbach <[email protected]> says some releases of gcc
13574 # support --undefined. This deserves some investigation. FIXME
13575 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13576 else
13577 ld_shlibs_CXX=no
13578 fi
13579 ;;
13580
13581 chorus*)
13582 case $cc_basename in
13583 *)
13584 # FIXME: insert proper C++ library support
13585 ld_shlibs_CXX=no
13586 ;;
13587 esac
13588 ;;
13589
13590 cygwin* | mingw* | pw32* | cegcc*)
13591 case $GXX,$cc_basename in
13592 ,cl* | no,cl*)
13593 # Native MSVC
13594 # hardcode_libdir_flag_spec is actually meaningless, as there is
13595 # no search path for DLLs.
13596 hardcode_libdir_flag_spec_CXX=' '
13597 allow_undefined_flag_CXX=unsupported
13598 always_export_symbols_CXX=yes
13599 file_list_spec_CXX='@'
13600 # Tell ltmain to make .lib files, not .a files.
13601 libext=lib
13602 # Tell ltmain to make .dll files, not .so files.
13603 shrext_cmds=.dll
13604 # FIXME: Setting linknames here is a bad hack.
13605 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13606 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13607 cp "$export_symbols" "$output_objdir/$soname.def";
13608 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13609 else
13610 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13611 fi~
13612 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13613 linknames='
13614 # The linker will not automatically build a static lib if we build a DLL.
13615 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13616 enable_shared_with_static_runtimes_CXX=yes
13617 # Don't use ranlib
13618 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13619 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13620 lt_tool_outputfile="@TOOL_OUTPUT@"~
13621 case $lt_outputfile in
13622 *.exe|*.EXE) ;;
13623 *)
13624 lt_outputfile=$lt_outputfile.exe
13625 lt_tool_outputfile=$lt_tool_outputfile.exe
13626 ;;
13627 esac~
13628 func_to_tool_file "$lt_outputfile"~
13629 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13630 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13631 $RM "$lt_outputfile.manifest";
13632 fi'
13633 ;;
13634 *)
13635 # g++
13636 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13637 # as there is no search path for DLLs.
13638 hardcode_libdir_flag_spec_CXX='-L$libdir'
13639 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13640 allow_undefined_flag_CXX=unsupported
13641 always_export_symbols_CXX=no
13642 enable_shared_with_static_runtimes_CXX=yes
13643
13644 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13645 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'
13646 # If the export-symbols file already is a .def file, use it as
13647 # is; otherwise, prepend EXPORTS...
13648 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13649 cp $export_symbols $output_objdir/$soname.def;
13650 else
13651 echo EXPORTS > $output_objdir/$soname.def;
13652 cat $export_symbols >> $output_objdir/$soname.def;
13653 fi~
13654 $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'
13655 else
13656 ld_shlibs_CXX=no
13657 fi
13658 ;;
13659 esac
13660 ;;
13661 darwin* | rhapsody*)
13662
13663
13664 archive_cmds_need_lc_CXX=no
13665 hardcode_direct_CXX=no
13666 hardcode_automatic_CXX=yes
13667 hardcode_shlibpath_var_CXX=unsupported
13668 if test yes = "$lt_cv_ld_force_load"; then
13669 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\"`'
13670
13671 else
13672 whole_archive_flag_spec_CXX=''
13673 fi
13674 link_all_deplibs_CXX=yes
13675 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13676 case $cc_basename in
13677 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13678 *) _lt_dar_can_shared=$GCC ;;
13679 esac
13680 if test yes = "$_lt_dar_can_shared"; then
13681 output_verbose_link_cmd=func_echo_all
13682 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"
13683 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13684 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"
13685 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"
13686 if test yes != "$lt_cv_apple_cc_single_mod"; then
13687 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"
13688 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"
13689 fi
13690
13691 else
13692 ld_shlibs_CXX=no
13693 fi
13694
13695 ;;
13696
13697 os2*)
13698 hardcode_libdir_flag_spec_CXX='-L$libdir'
13699 hardcode_minus_L_CXX=yes
13700 allow_undefined_flag_CXX=unsupported
13701 shrext_cmds=.dll
13702 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13703 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13704 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13705 $ECHO EXPORTS >> $output_objdir/$libname.def~
13706 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13708 emximp -o $lib $output_objdir/$libname.def'
13709 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13712 $ECHO EXPORTS >> $output_objdir/$libname.def~
13713 prefix_cmds="$SED"~
13714 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13715 prefix_cmds="$prefix_cmds -e 1d";
13716 fi~
13717 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13718 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13720 emximp -o $lib $output_objdir/$libname.def'
13721 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13722 enable_shared_with_static_runtimes_CXX=yes
13723 ;;
13724
13725 dgux*)
13726 case $cc_basename in
13727 ec++*)
13728 # FIXME: insert proper C++ library support
13729 ld_shlibs_CXX=no
13730 ;;
13731 ghcx*)
13732 # Green Hills C++ Compiler
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13735 ;;
13736 *)
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13739 ;;
13740 esac
13741 ;;
13742
13743 freebsd2.*)
13744 # C++ shared libraries reported to be fairly broken before
13745 # switch to ELF
13746 ld_shlibs_CXX=no
13747 ;;
13748
13749 freebsd-elf*)
13750 archive_cmds_need_lc_CXX=no
13751 ;;
13752
13753 freebsd* | dragonfly*)
13754 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13755 # conventions
13756 ld_shlibs_CXX=yes
13757 ;;
13758
13759 haiku*)
13760 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13761 link_all_deplibs_CXX=yes
13762 ;;
13763
13764 hpux9*)
13765 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13766 hardcode_libdir_separator_CXX=:
13767 export_dynamic_flag_spec_CXX='$wl-E'
13768 hardcode_direct_CXX=yes
13769 hardcode_minus_L_CXX=yes # Not in the search PATH,
13770 # but as the default
13771 # location of the library.
13772
13773 case $cc_basename in
13774 CC*)
13775 # FIXME: insert proper C++ library support
13776 ld_shlibs_CXX=no
13777 ;;
13778 aCC*)
13779 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'
13780 # Commands to make compiler produce verbose output that lists
13781 # what "hidden" libraries, object files and flags are used when
13782 # linking a shared library.
13783 #
13784 # There doesn't appear to be a way to prevent this compiler from
13785 # explicitly linking system object files so we need to strip them
13786 # from the output so that they don't get included in the library
13787 # dependencies.
13788 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"'
13789 ;;
13790 *)
13791 if test yes = "$GXX"; then
13792 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'
13793 else
13794 # FIXME: insert proper C++ library support
13795 ld_shlibs_CXX=no
13796 fi
13797 ;;
13798 esac
13799 ;;
13800
13801 hpux10*|hpux11*)
13802 if test no = "$with_gnu_ld"; then
13803 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13804 hardcode_libdir_separator_CXX=:
13805
13806 case $host_cpu in
13807 hppa*64*|ia64*)
13808 ;;
13809 *)
13810 export_dynamic_flag_spec_CXX='$wl-E'
13811 ;;
13812 esac
13813 fi
13814 case $host_cpu in
13815 hppa*64*|ia64*)
13816 hardcode_direct_CXX=no
13817 hardcode_shlibpath_var_CXX=no
13818 ;;
13819 *)
13820 hardcode_direct_CXX=yes
13821 hardcode_direct_absolute_CXX=yes
13822 hardcode_minus_L_CXX=yes # Not in the search PATH,
13823 # but as the default
13824 # location of the library.
13825 ;;
13826 esac
13827
13828 case $cc_basename in
13829 CC*)
13830 # FIXME: insert proper C++ library support
13831 ld_shlibs_CXX=no
13832 ;;
13833 aCC*)
13834 case $host_cpu in
13835 hppa*64*)
13836 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13837 ;;
13838 ia64*)
13839 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13840 ;;
13841 *)
13842 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13843 ;;
13844 esac
13845 # Commands to make compiler produce verbose output that lists
13846 # what "hidden" libraries, object files and flags are used when
13847 # linking a shared library.
13848 #
13849 # There doesn't appear to be a way to prevent this compiler from
13850 # explicitly linking system object files so we need to strip them
13851 # from the output so that they don't get included in the library
13852 # dependencies.
13853 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"'
13854 ;;
13855 *)
13856 if test yes = "$GXX"; then
13857 if test no = "$with_gnu_ld"; then
13858 case $host_cpu in
13859 hppa*64*)
13860 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13861 ;;
13862 ia64*)
13863 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13864 ;;
13865 *)
13866 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'
13867 ;;
13868 esac
13869 fi
13870 else
13871 # FIXME: insert proper C++ library support
13872 ld_shlibs_CXX=no
13873 fi
13874 ;;
13875 esac
13876 ;;
13877
13878 interix[3-9]*)
13879 hardcode_direct_CXX=no
13880 hardcode_shlibpath_var_CXX=no
13881 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13882 export_dynamic_flag_spec_CXX='$wl-E'
13883 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13884 # Instead, shared libraries are loaded at an image base (0x10000000 by
13885 # default) and relocated if they conflict, which is a slow very memory
13886 # consuming and fragmenting process. To avoid this, we pick a random,
13887 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13888 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13889 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'
13890 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'
13891 ;;
13892 irix5* | irix6*)
13893 case $cc_basename in
13894 CC*)
13895 # SGI C++
13896 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'
13897
13898 # Archives containing C++ object files must be created using
13899 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13900 # necessary to make sure instantiated templates are included
13901 # in the archive.
13902 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13903 ;;
13904 *)
13905 if test yes = "$GXX"; then
13906 if test no = "$with_gnu_ld"; then
13907 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'
13908 else
13909 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'
13910 fi
13911 fi
13912 link_all_deplibs_CXX=yes
13913 ;;
13914 esac
13915 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13916 hardcode_libdir_separator_CXX=:
13917 inherit_rpath_CXX=yes
13918 ;;
13919
13920 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13921 case $cc_basename in
13922 KCC*)
13923 # Kuck and Associates, Inc. (KAI) C++ Compiler
13924
13925 # KCC will only create a shared library if the output file
13926 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13927 # to its proper name (with version) after linking.
13928 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'
13929 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'
13930 # Commands to make compiler produce verbose output that lists
13931 # what "hidden" libraries, object files and flags are used when
13932 # linking a shared library.
13933 #
13934 # There doesn't appear to be a way to prevent this compiler from
13935 # explicitly linking system object files so we need to strip them
13936 # from the output so that they don't get included in the library
13937 # dependencies.
13938 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"'
13939
13940 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13941 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13942
13943 # Archives containing C++ object files must be created using
13944 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13945 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13946 ;;
13947 icpc* | ecpc* )
13948 # Intel C++
13949 with_gnu_ld=yes
13950 # version 8.0 and above of icpc choke on multiply defined symbols
13951 # if we add $predep_objects and $postdep_objects, however 7.1 and
13952 # earlier do not add the objects themselves.
13953 case `$CC -V 2>&1` in
13954 *"Version 7."*)
13955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13956 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'
13957 ;;
13958 *) # Version 8.0 or newer
13959 tmp_idyn=
13960 case $host_cpu in
13961 ia64*) tmp_idyn=' -i_dynamic';;
13962 esac
13963 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13964 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'
13965 ;;
13966 esac
13967 archive_cmds_need_lc_CXX=no
13968 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13969 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13970 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13971 ;;
13972 pgCC* | pgcpp*)
13973 # Portland Group C++ compiler
13974 case `$CC -V` in
13975 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13976 prelink_cmds_CXX='tpldir=Template.dir~
13977 rm -rf $tpldir~
13978 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13979 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13980 old_archive_cmds_CXX='tpldir=Template.dir~
13981 rm -rf $tpldir~
13982 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13983 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13984 $RANLIB $oldlib'
13985 archive_cmds_CXX='tpldir=Template.dir~
13986 rm -rf $tpldir~
13987 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13988 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13989 archive_expsym_cmds_CXX='tpldir=Template.dir~
13990 rm -rf $tpldir~
13991 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13992 $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'
13993 ;;
13994 *) # Version 6 and above use weak symbols
13995 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13996 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'
13997 ;;
13998 esac
13999
14000 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14001 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14002 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'
14003 ;;
14004 cxx*)
14005 # Compaq C++
14006 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14007 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'
14008
14009 runpath_var=LD_RUN_PATH
14010 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14011 hardcode_libdir_separator_CXX=:
14012
14013 # Commands to make compiler produce verbose output that lists
14014 # what "hidden" libraries, object files and flags are used when
14015 # linking a shared library.
14016 #
14017 # There doesn't appear to be a way to prevent this compiler from
14018 # explicitly linking system object files so we need to strip them
14019 # from the output so that they don't get included in the library
14020 # dependencies.
14021 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'
14022 ;;
14023 xl* | mpixl* | bgxl*)
14024 # IBM XL 8.0 on PPC, with GNU ld
14025 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14026 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14027 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14028 if test yes = "$supports_anon_versioning"; then
14029 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14030 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14031 echo "local: *; };" >> $output_objdir/$libname.ver~
14032 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14033 fi
14034 ;;
14035 *)
14036 case `$CC -V 2>&1 | sed 5q` in
14037 *Sun\ C*)
14038 # Sun C++ 5.9
14039 no_undefined_flag_CXX=' -zdefs'
14040 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041 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'
14042 hardcode_libdir_flag_spec_CXX='-R$libdir'
14043 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'
14044 compiler_needs_object_CXX=yes
14045
14046 # Not sure whether something based on
14047 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14048 # would be better.
14049 output_verbose_link_cmd='func_echo_all'
14050
14051 # Archives containing C++ object files must be created using
14052 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14053 # necessary to make sure instantiated templates are included
14054 # in the archive.
14055 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14056 ;;
14057 esac
14058 ;;
14059 esac
14060 ;;
14061
14062 lynxos*)
14063 # FIXME: insert proper C++ library support
14064 ld_shlibs_CXX=no
14065 ;;
14066
14067 m88k*)
14068 # FIXME: insert proper C++ library support
14069 ld_shlibs_CXX=no
14070 ;;
14071
14072 mvs*)
14073 case $cc_basename in
14074 cxx*)
14075 # FIXME: insert proper C++ library support
14076 ld_shlibs_CXX=no
14077 ;;
14078 *)
14079 # FIXME: insert proper C++ library support
14080 ld_shlibs_CXX=no
14081 ;;
14082 esac
14083 ;;
14084
14085 netbsd*)
14086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14087 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14088 wlarc=
14089 hardcode_libdir_flag_spec_CXX='-R$libdir'
14090 hardcode_direct_CXX=yes
14091 hardcode_shlibpath_var_CXX=no
14092 fi
14093 # Workaround some broken pre-1.5 toolchains
14094 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14095 ;;
14096
14097 *nto* | *qnx*)
14098 ld_shlibs_CXX=yes
14099 ;;
14100
14101 openbsd* | bitrig*)
14102 if test -f /usr/libexec/ld.so; then
14103 hardcode_direct_CXX=yes
14104 hardcode_shlibpath_var_CXX=no
14105 hardcode_direct_absolute_CXX=yes
14106 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14107 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14109 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14110 export_dynamic_flag_spec_CXX='$wl-E'
14111 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14112 fi
14113 output_verbose_link_cmd=func_echo_all
14114 else
14115 ld_shlibs_CXX=no
14116 fi
14117 ;;
14118
14119 osf3* | osf4* | osf5*)
14120 case $cc_basename in
14121 KCC*)
14122 # Kuck and Associates, Inc. (KAI) C++ Compiler
14123
14124 # KCC will only create a shared library if the output file
14125 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14126 # to its proper name (with version) after linking.
14127 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'
14128
14129 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14130 hardcode_libdir_separator_CXX=:
14131
14132 # Archives containing C++ object files must be created using
14133 # the KAI C++ compiler.
14134 case $host in
14135 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14136 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14137 esac
14138 ;;
14139 RCC*)
14140 # Rational C++ 2.4.1
14141 # FIXME: insert proper C++ library support
14142 ld_shlibs_CXX=no
14143 ;;
14144 cxx*)
14145 case $host in
14146 osf3*)
14147 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14148 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'
14149 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14150 ;;
14151 *)
14152 allow_undefined_flag_CXX=' -expect_unresolved \*'
14153 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'
14154 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14155 echo "-hidden">> $lib.exp~
14156 $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~
14157 $RM $lib.exp'
14158 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14159 ;;
14160 esac
14161
14162 hardcode_libdir_separator_CXX=:
14163
14164 # Commands to make compiler produce verbose output that lists
14165 # what "hidden" libraries, object files and flags are used when
14166 # linking a shared library.
14167 #
14168 # There doesn't appear to be a way to prevent this compiler from
14169 # explicitly linking system object files so we need to strip them
14170 # from the output so that they don't get included in the library
14171 # dependencies.
14172 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"'
14173 ;;
14174 *)
14175 if test yes,no = "$GXX,$with_gnu_ld"; then
14176 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14177 case $host in
14178 osf3*)
14179 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'
14180 ;;
14181 *)
14182 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'
14183 ;;
14184 esac
14185
14186 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14187 hardcode_libdir_separator_CXX=:
14188
14189 # Commands to make compiler produce verbose output that lists
14190 # what "hidden" libraries, object files and flags are used when
14191 # linking a shared library.
14192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14193
14194 else
14195 # FIXME: insert proper C++ library support
14196 ld_shlibs_CXX=no
14197 fi
14198 ;;
14199 esac
14200 ;;
14201
14202 psos*)
14203 # FIXME: insert proper C++ library support
14204 ld_shlibs_CXX=no
14205 ;;
14206
14207 sunos4*)
14208 case $cc_basename in
14209 CC*)
14210 # Sun C++ 4.x
14211 # FIXME: insert proper C++ library support
14212 ld_shlibs_CXX=no
14213 ;;
14214 lcc*)
14215 # Lucid
14216 # FIXME: insert proper C++ library support
14217 ld_shlibs_CXX=no
14218 ;;
14219 *)
14220 # FIXME: insert proper C++ library support
14221 ld_shlibs_CXX=no
14222 ;;
14223 esac
14224 ;;
14225
14226 solaris*)
14227 case $cc_basename in
14228 CC* | sunCC*)
14229 # Sun C++ 4.2, 5.x and Centerline C++
14230 archive_cmds_need_lc_CXX=yes
14231 no_undefined_flag_CXX=' -zdefs'
14232 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14233 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14234 $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'
14235
14236 hardcode_libdir_flag_spec_CXX='-R$libdir'
14237 hardcode_shlibpath_var_CXX=no
14238 case $host_os in
14239 solaris2.[0-5] | solaris2.[0-5].*) ;;
14240 *)
14241 # The compiler driver will combine and reorder linker options,
14242 # but understands '-z linker_flag'.
14243 # Supported since Solaris 2.6 (maybe 2.5.1?)
14244 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14245 ;;
14246 esac
14247 link_all_deplibs_CXX=yes
14248
14249 output_verbose_link_cmd='func_echo_all'
14250
14251 # Archives containing C++ object files must be created using
14252 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14253 # necessary to make sure instantiated templates are included
14254 # in the archive.
14255 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14256 ;;
14257 gcx*)
14258 # Green Hills C++ Compiler
14259 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14260
14261 # The C++ compiler must be used to create the archive.
14262 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14263 ;;
14264 *)
14265 # GNU C++ compiler with Solaris linker
14266 if test yes,no = "$GXX,$with_gnu_ld"; then
14267 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14268 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14269 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14270 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14271 $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'
14272
14273 # Commands to make compiler produce verbose output that lists
14274 # what "hidden" libraries, object files and flags are used when
14275 # linking a shared library.
14276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14277 else
14278 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14279 # platform.
14280 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14281 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14282 $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'
14283
14284 # Commands to make compiler produce verbose output that lists
14285 # what "hidden" libraries, object files and flags are used when
14286 # linking a shared library.
14287 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14288 fi
14289
14290 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14291 case $host_os in
14292 solaris2.[0-5] | solaris2.[0-5].*) ;;
14293 *)
14294 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14295 ;;
14296 esac
14297 fi
14298 ;;
14299 esac
14300 ;;
14301
14302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14303 no_undefined_flag_CXX='$wl-z,text'
14304 archive_cmds_need_lc_CXX=no
14305 hardcode_shlibpath_var_CXX=no
14306 runpath_var='LD_RUN_PATH'
14307
14308 case $cc_basename in
14309 CC*)
14310 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14311 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14312 ;;
14313 *)
14314 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14316 ;;
14317 esac
14318 ;;
14319
14320 sysv5* | sco3.2v5* | sco5v6*)
14321 # Note: We CANNOT use -z defs as we might desire, because we do not
14322 # link with -lc, and that would cause any symbols used from libc to
14323 # always be unresolved, which means just about no library would
14324 # ever link correctly. If we're not using GNU ld we use -z text
14325 # though, which does catch some bad symbols but isn't as heavy-handed
14326 # as -z defs.
14327 no_undefined_flag_CXX='$wl-z,text'
14328 allow_undefined_flag_CXX='$wl-z,nodefs'
14329 archive_cmds_need_lc_CXX=no
14330 hardcode_shlibpath_var_CXX=no
14331 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14332 hardcode_libdir_separator_CXX=':'
14333 link_all_deplibs_CXX=yes
14334 export_dynamic_flag_spec_CXX='$wl-Bexport'
14335 runpath_var='LD_RUN_PATH'
14336
14337 case $cc_basename in
14338 CC*)
14339 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14340 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14341 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14342 '"$old_archive_cmds_CXX"
14343 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14344 '"$reload_cmds_CXX"
14345 ;;
14346 *)
14347 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14348 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14349 ;;
14350 esac
14351 ;;
14352
14353 tandem*)
14354 case $cc_basename in
14355 NCC*)
14356 # NonStop-UX NCC 3.20
14357 # FIXME: insert proper C++ library support
14358 ld_shlibs_CXX=no
14359 ;;
14360 *)
14361 # FIXME: insert proper C++ library support
14362 ld_shlibs_CXX=no
14363 ;;
14364 esac
14365 ;;
14366
14367 vxworks*)
14368 # FIXME: insert proper C++ library support
14369 ld_shlibs_CXX=no
14370 ;;
14371
14372 *)
14373 # FIXME: insert proper C++ library support
14374 ld_shlibs_CXX=no
14375 ;;
14376 esac
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14379 $as_echo "$ld_shlibs_CXX" >&6; }
14380 test no = "$ld_shlibs_CXX" && can_build_shared=no
14381
14382 GCC_CXX=$GXX
14383 LD_CXX=$LD
14384
14385 ## CAVEAT EMPTOR:
14386 ## There is no encapsulation within the following macros, do not change
14387 ## the running order or otherwise move them around unless you know exactly
14388 ## what you are doing...
14389 # Dependencies to place before and after the object being linked:
14390 predep_objects_CXX=
14391 postdep_objects_CXX=
14392 predeps_CXX=
14393 postdeps_CXX=
14394 compiler_lib_search_path_CXX=
14395
14396 cat > conftest.$ac_ext <<_LT_EOF
14397 class Foo
14398 {
14399 public:
14400 Foo (void) { a = 0; }
14401 private:
14402 int a;
14403 };
14404 _LT_EOF
14405
14406
14407 _lt_libdeps_save_CFLAGS=$CFLAGS
14408 case "$CC $CFLAGS " in #(
14409 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14410 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14411 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14412 esac
14413
14414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14415 (eval $ac_compile) 2>&5
14416 ac_status=$?
14417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14418 test $ac_status = 0; }; then
14419 # Parse the compiler output and extract the necessary
14420 # objects, libraries and library flags.
14421
14422 # Sentinel used to keep track of whether or not we are before
14423 # the conftest object file.
14424 pre_test_object_deps_done=no
14425
14426 for p in `eval "$output_verbose_link_cmd"`; do
14427 case $prev$p in
14428
14429 -L* | -R* | -l*)
14430 # Some compilers place space between "-{L,R}" and the path.
14431 # Remove the space.
14432 if test x-L = "$p" ||
14433 test x-R = "$p"; then
14434 prev=$p
14435 continue
14436 fi
14437
14438 # Expand the sysroot to ease extracting the directories later.
14439 if test -z "$prev"; then
14440 case $p in
14441 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14442 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14443 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14444 esac
14445 fi
14446 case $p in
14447 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14448 esac
14449 if test no = "$pre_test_object_deps_done"; then
14450 case $prev in
14451 -L | -R)
14452 # Internal compiler library paths should come after those
14453 # provided the user. The postdeps already come after the
14454 # user supplied libs so there is no need to process them.
14455 if test -z "$compiler_lib_search_path_CXX"; then
14456 compiler_lib_search_path_CXX=$prev$p
14457 else
14458 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14459 fi
14460 ;;
14461 # The "-l" case would never come before the object being
14462 # linked, so don't bother handling this case.
14463 esac
14464 else
14465 if test -z "$postdeps_CXX"; then
14466 postdeps_CXX=$prev$p
14467 else
14468 postdeps_CXX="${postdeps_CXX} $prev$p"
14469 fi
14470 fi
14471 prev=
14472 ;;
14473
14474 *.lto.$objext) ;; # Ignore GCC LTO objects
14475 *.$objext)
14476 # This assumes that the test object file only shows up
14477 # once in the compiler output.
14478 if test "$p" = "conftest.$objext"; then
14479 pre_test_object_deps_done=yes
14480 continue
14481 fi
14482
14483 if test no = "$pre_test_object_deps_done"; then
14484 if test -z "$predep_objects_CXX"; then
14485 predep_objects_CXX=$p
14486 else
14487 predep_objects_CXX="$predep_objects_CXX $p"
14488 fi
14489 else
14490 if test -z "$postdep_objects_CXX"; then
14491 postdep_objects_CXX=$p
14492 else
14493 postdep_objects_CXX="$postdep_objects_CXX $p"
14494 fi
14495 fi
14496 ;;
14497
14498 *) ;; # Ignore the rest.
14499
14500 esac
14501 done
14502
14503 # Clean up.
14504 rm -f a.out a.exe
14505 else
14506 echo "libtool.m4: error: problem compiling CXX test program"
14507 fi
14508
14509 $RM -f confest.$objext
14510 CFLAGS=$_lt_libdeps_save_CFLAGS
14511
14512 # PORTME: override above test on systems where it is broken
14513 case $host_os in
14514 interix[3-9]*)
14515 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14516 # hack all around it, let's just trust "g++" to DTRT.
14517 predep_objects_CXX=
14518 postdep_objects_CXX=
14519 postdeps_CXX=
14520 ;;
14521 esac
14522
14523
14524 case " $postdeps_CXX " in
14525 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14526 esac
14527 compiler_lib_search_dirs_CXX=
14528 if test -n "${compiler_lib_search_path_CXX}"; then
14529 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14530 fi
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562 lt_prog_compiler_wl_CXX=
14563 lt_prog_compiler_pic_CXX=
14564 lt_prog_compiler_static_CXX=
14565
14566
14567 # C++ specific cases for pic, static, wl, etc.
14568 if test yes = "$GXX"; then
14569 lt_prog_compiler_wl_CXX='-Wl,'
14570 lt_prog_compiler_static_CXX='-static'
14571
14572 case $host_os in
14573 aix*)
14574 # All AIX code is PIC.
14575 if test ia64 = "$host_cpu"; then
14576 # AIX 5 now supports IA64 processor
14577 lt_prog_compiler_static_CXX='-Bstatic'
14578 fi
14579 lt_prog_compiler_pic_CXX='-fPIC'
14580 ;;
14581
14582 amigaos*)
14583 case $host_cpu in
14584 powerpc)
14585 # see comment about AmigaOS4 .so support
14586 lt_prog_compiler_pic_CXX='-fPIC'
14587 ;;
14588 m68k)
14589 # FIXME: we need at least 68020 code to build shared libraries, but
14590 # adding the '-m68020' flag to GCC prevents building anything better,
14591 # like '-m68040'.
14592 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14593 ;;
14594 esac
14595 ;;
14596
14597 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14598 # PIC is the default for these OSes.
14599 ;;
14600 mingw* | cygwin* | os2* | pw32* | cegcc*)
14601 # This hack is so that the source file can tell whether it is being
14602 # built for inclusion in a dll (and should export symbols for example).
14603 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14604 # (--disable-auto-import) libraries
14605 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14606 case $host_os in
14607 os2*)
14608 lt_prog_compiler_static_CXX='$wl-static'
14609 ;;
14610 esac
14611 ;;
14612 darwin* | rhapsody*)
14613 # PIC is the default on this platform
14614 # Common symbols not allowed in MH_DYLIB files
14615 lt_prog_compiler_pic_CXX='-fno-common'
14616 ;;
14617 *djgpp*)
14618 # DJGPP does not support shared libraries at all
14619 lt_prog_compiler_pic_CXX=
14620 ;;
14621 haiku*)
14622 # PIC is the default for Haiku.
14623 # The "-static" flag exists, but is broken.
14624 lt_prog_compiler_static_CXX=
14625 ;;
14626 interix[3-9]*)
14627 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14628 # Instead, we relocate shared libraries at runtime.
14629 ;;
14630 sysv4*MP*)
14631 if test -d /usr/nec; then
14632 lt_prog_compiler_pic_CXX=-Kconform_pic
14633 fi
14634 ;;
14635 hpux*)
14636 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14637 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14638 # sets the default TLS model and affects inlining.
14639 case $host_cpu in
14640 hppa*64*)
14641 ;;
14642 *)
14643 lt_prog_compiler_pic_CXX='-fPIC'
14644 ;;
14645 esac
14646 ;;
14647 *qnx* | *nto*)
14648 # QNX uses GNU C++, but need to define -shared option too, otherwise
14649 # it will coredump.
14650 lt_prog_compiler_pic_CXX='-fPIC -shared'
14651 ;;
14652 *)
14653 lt_prog_compiler_pic_CXX='-fPIC'
14654 ;;
14655 esac
14656 else
14657 case $host_os in
14658 aix[4-9]*)
14659 # All AIX code is PIC.
14660 if test ia64 = "$host_cpu"; then
14661 # AIX 5 now supports IA64 processor
14662 lt_prog_compiler_static_CXX='-Bstatic'
14663 else
14664 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14665 fi
14666 ;;
14667 chorus*)
14668 case $cc_basename in
14669 cxch68*)
14670 # Green Hills C++ Compiler
14671 # _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"
14672 ;;
14673 esac
14674 ;;
14675 mingw* | cygwin* | os2* | pw32* | cegcc*)
14676 # This hack is so that the source file can tell whether it is being
14677 # built for inclusion in a dll (and should export symbols for example).
14678 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14679 ;;
14680 dgux*)
14681 case $cc_basename in
14682 ec++*)
14683 lt_prog_compiler_pic_CXX='-KPIC'
14684 ;;
14685 ghcx*)
14686 # Green Hills C++ Compiler
14687 lt_prog_compiler_pic_CXX='-pic'
14688 ;;
14689 *)
14690 ;;
14691 esac
14692 ;;
14693 freebsd* | dragonfly*)
14694 # FreeBSD uses GNU C++
14695 ;;
14696 hpux9* | hpux10* | hpux11*)
14697 case $cc_basename in
14698 CC*)
14699 lt_prog_compiler_wl_CXX='-Wl,'
14700 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14701 if test ia64 != "$host_cpu"; then
14702 lt_prog_compiler_pic_CXX='+Z'
14703 fi
14704 ;;
14705 aCC*)
14706 lt_prog_compiler_wl_CXX='-Wl,'
14707 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14708 case $host_cpu in
14709 hppa*64*|ia64*)
14710 # +Z the default
14711 ;;
14712 *)
14713 lt_prog_compiler_pic_CXX='+Z'
14714 ;;
14715 esac
14716 ;;
14717 *)
14718 ;;
14719 esac
14720 ;;
14721 interix*)
14722 # This is c89, which is MS Visual C++ (no shared libs)
14723 # Anyone wants to do a port?
14724 ;;
14725 irix5* | irix6* | nonstopux*)
14726 case $cc_basename in
14727 CC*)
14728 lt_prog_compiler_wl_CXX='-Wl,'
14729 lt_prog_compiler_static_CXX='-non_shared'
14730 # CC pic flag -KPIC is the default.
14731 ;;
14732 *)
14733 ;;
14734 esac
14735 ;;
14736 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14737 case $cc_basename in
14738 KCC*)
14739 # KAI C++ Compiler
14740 lt_prog_compiler_wl_CXX='--backend -Wl,'
14741 lt_prog_compiler_pic_CXX='-fPIC'
14742 ;;
14743 ecpc* )
14744 # old Intel C++ for x86_64, which still supported -KPIC.
14745 lt_prog_compiler_wl_CXX='-Wl,'
14746 lt_prog_compiler_pic_CXX='-KPIC'
14747 lt_prog_compiler_static_CXX='-static'
14748 ;;
14749 icpc* )
14750 # Intel C++, used to be incompatible with GCC.
14751 # ICC 10 doesn't accept -KPIC any more.
14752 lt_prog_compiler_wl_CXX='-Wl,'
14753 lt_prog_compiler_pic_CXX='-fPIC'
14754 lt_prog_compiler_static_CXX='-static'
14755 ;;
14756 pgCC* | pgcpp*)
14757 # Portland Group C++ compiler
14758 lt_prog_compiler_wl_CXX='-Wl,'
14759 lt_prog_compiler_pic_CXX='-fpic'
14760 lt_prog_compiler_static_CXX='-Bstatic'
14761 ;;
14762 cxx*)
14763 # Compaq C++
14764 # Make sure the PIC flag is empty. It appears that all Alpha
14765 # Linux and Compaq Tru64 Unix objects are PIC.
14766 lt_prog_compiler_pic_CXX=
14767 lt_prog_compiler_static_CXX='-non_shared'
14768 ;;
14769 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14770 # IBM XL 8.0, 9.0 on PPC and BlueGene
14771 lt_prog_compiler_wl_CXX='-Wl,'
14772 lt_prog_compiler_pic_CXX='-qpic'
14773 lt_prog_compiler_static_CXX='-qstaticlink'
14774 ;;
14775 *)
14776 case `$CC -V 2>&1 | sed 5q` in
14777 *Sun\ C*)
14778 # Sun C++ 5.9
14779 lt_prog_compiler_pic_CXX='-KPIC'
14780 lt_prog_compiler_static_CXX='-Bstatic'
14781 lt_prog_compiler_wl_CXX='-Qoption ld '
14782 ;;
14783 esac
14784 ;;
14785 esac
14786 ;;
14787 lynxos*)
14788 ;;
14789 m88k*)
14790 ;;
14791 mvs*)
14792 case $cc_basename in
14793 cxx*)
14794 lt_prog_compiler_pic_CXX='-W c,exportall'
14795 ;;
14796 *)
14797 ;;
14798 esac
14799 ;;
14800 netbsd* | netbsdelf*-gnu)
14801 ;;
14802 *qnx* | *nto*)
14803 # QNX uses GNU C++, but need to define -shared option too, otherwise
14804 # it will coredump.
14805 lt_prog_compiler_pic_CXX='-fPIC -shared'
14806 ;;
14807 osf3* | osf4* | osf5*)
14808 case $cc_basename in
14809 KCC*)
14810 lt_prog_compiler_wl_CXX='--backend -Wl,'
14811 ;;
14812 RCC*)
14813 # Rational C++ 2.4.1
14814 lt_prog_compiler_pic_CXX='-pic'
14815 ;;
14816 cxx*)
14817 # Digital/Compaq C++
14818 lt_prog_compiler_wl_CXX='-Wl,'
14819 # Make sure the PIC flag is empty. It appears that all Alpha
14820 # Linux and Compaq Tru64 Unix objects are PIC.
14821 lt_prog_compiler_pic_CXX=
14822 lt_prog_compiler_static_CXX='-non_shared'
14823 ;;
14824 *)
14825 ;;
14826 esac
14827 ;;
14828 psos*)
14829 ;;
14830 solaris*)
14831 case $cc_basename in
14832 CC* | sunCC*)
14833 # Sun C++ 4.2, 5.x and Centerline C++
14834 lt_prog_compiler_pic_CXX='-KPIC'
14835 lt_prog_compiler_static_CXX='-Bstatic'
14836 lt_prog_compiler_wl_CXX='-Qoption ld '
14837 ;;
14838 gcx*)
14839 # Green Hills C++ Compiler
14840 lt_prog_compiler_pic_CXX='-PIC'
14841 ;;
14842 *)
14843 ;;
14844 esac
14845 ;;
14846 sunos4*)
14847 case $cc_basename in
14848 CC*)
14849 # Sun C++ 4.x
14850 lt_prog_compiler_pic_CXX='-pic'
14851 lt_prog_compiler_static_CXX='-Bstatic'
14852 ;;
14853 lcc*)
14854 # Lucid
14855 lt_prog_compiler_pic_CXX='-pic'
14856 ;;
14857 *)
14858 ;;
14859 esac
14860 ;;
14861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14862 case $cc_basename in
14863 CC*)
14864 lt_prog_compiler_wl_CXX='-Wl,'
14865 lt_prog_compiler_pic_CXX='-KPIC'
14866 lt_prog_compiler_static_CXX='-Bstatic'
14867 ;;
14868 esac
14869 ;;
14870 tandem*)
14871 case $cc_basename in
14872 NCC*)
14873 # NonStop-UX NCC 3.20
14874 lt_prog_compiler_pic_CXX='-KPIC'
14875 ;;
14876 *)
14877 ;;
14878 esac
14879 ;;
14880 vxworks*)
14881 ;;
14882 *)
14883 lt_prog_compiler_can_build_shared_CXX=no
14884 ;;
14885 esac
14886 fi
14887
14888 case $host_os in
14889 # For platforms that do not support PIC, -DPIC is meaningless:
14890 *djgpp*)
14891 lt_prog_compiler_pic_CXX=
14892 ;;
14893 *)
14894 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14895 ;;
14896 esac
14897
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14899 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14900 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14903 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14904 fi
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14906 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14907 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14908
14909 #
14910 # Check to make sure the PIC flag actually works.
14911 #
14912 if test -n "$lt_prog_compiler_pic_CXX"; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14915 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 lt_cv_prog_compiler_pic_works_CXX=no
14919 ac_outfile=conftest.$ac_objext
14920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14921 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14922 # Insert the option either (1) after the last *FLAGS variable, or
14923 # (2) before a word containing "conftest.", or (3) at the end.
14924 # Note that $ac_compile itself does not contain backslashes and begins
14925 # with a dollar sign (not a hyphen), so the echo should work correctly.
14926 # The option is referenced via a variable to avoid confusing sed.
14927 lt_compile=`echo "$ac_compile" | $SED \
14928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14930 -e 's:$: $lt_compiler_flag:'`
14931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14932 (eval "$lt_compile" 2>conftest.err)
14933 ac_status=$?
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 if (exit $ac_status) && test -s "$ac_outfile"; then
14937 # The compiler can only warn and ignore the option if not recognized
14938 # So say no if there are warnings other than the usual output.
14939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14942 lt_cv_prog_compiler_pic_works_CXX=yes
14943 fi
14944 fi
14945 $RM conftest*
14946
14947 fi
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14949 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14950
14951 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14952 case $lt_prog_compiler_pic_CXX in
14953 "" | " "*) ;;
14954 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14955 esac
14956 else
14957 lt_prog_compiler_pic_CXX=
14958 lt_prog_compiler_can_build_shared_CXX=no
14959 fi
14960
14961 fi
14962
14963
14964
14965
14966
14967 #
14968 # Check to make sure the static flag actually works.
14969 #
14970 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14972 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14973 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 lt_cv_prog_compiler_static_works_CXX=no
14977 save_LDFLAGS=$LDFLAGS
14978 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14981 # The linker can only warn and ignore the option if not recognized
14982 # So say no if there are warnings
14983 if test -s conftest.err; then
14984 # Append any errors to the config.log.
14985 cat conftest.err 1>&5
14986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14988 if diff conftest.exp conftest.er2 >/dev/null; then
14989 lt_cv_prog_compiler_static_works_CXX=yes
14990 fi
14991 else
14992 lt_cv_prog_compiler_static_works_CXX=yes
14993 fi
14994 fi
14995 $RM -r conftest*
14996 LDFLAGS=$save_LDFLAGS
14997
14998 fi
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15000 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15001
15002 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15003 :
15004 else
15005 lt_prog_compiler_static_CXX=
15006 fi
15007
15008
15009
15010
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15012 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15013 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15016 lt_cv_prog_compiler_c_o_CXX=no
15017 $RM -r conftest 2>/dev/null
15018 mkdir conftest
15019 cd conftest
15020 mkdir out
15021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15022
15023 lt_compiler_flag="-o out/conftest2.$ac_objext"
15024 # Insert the option either (1) after the last *FLAGS variable, or
15025 # (2) before a word containing "conftest.", or (3) at the end.
15026 # Note that $ac_compile itself does not contain backslashes and begins
15027 # with a dollar sign (not a hyphen), so the echo should work correctly.
15028 lt_compile=`echo "$ac_compile" | $SED \
15029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031 -e 's:$: $lt_compiler_flag:'`
15032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15033 (eval "$lt_compile" 2>out/conftest.err)
15034 ac_status=$?
15035 cat out/conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15038 then
15039 # The compiler can only warn and ignore the option if not recognized
15040 # So say no if there are warnings
15041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15044 lt_cv_prog_compiler_c_o_CXX=yes
15045 fi
15046 fi
15047 chmod u+w . 2>&5
15048 $RM conftest*
15049 # SGI C++ compiler will create directory out/ii_files/ for
15050 # template instantiation
15051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15052 $RM out/* && rmdir out
15053 cd ..
15054 $RM -r conftest
15055 $RM conftest*
15056
15057 fi
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15059 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15060
15061
15062
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15065 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 lt_cv_prog_compiler_c_o_CXX=no
15069 $RM -r conftest 2>/dev/null
15070 mkdir conftest
15071 cd conftest
15072 mkdir out
15073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15074
15075 lt_compiler_flag="-o out/conftest2.$ac_objext"
15076 # Insert the option either (1) after the last *FLAGS variable, or
15077 # (2) before a word containing "conftest.", or (3) at the end.
15078 # Note that $ac_compile itself does not contain backslashes and begins
15079 # with a dollar sign (not a hyphen), so the echo should work correctly.
15080 lt_compile=`echo "$ac_compile" | $SED \
15081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15083 -e 's:$: $lt_compiler_flag:'`
15084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15085 (eval "$lt_compile" 2>out/conftest.err)
15086 ac_status=$?
15087 cat out/conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15090 then
15091 # The compiler can only warn and ignore the option if not recognized
15092 # So say no if there are warnings
15093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15096 lt_cv_prog_compiler_c_o_CXX=yes
15097 fi
15098 fi
15099 chmod u+w . 2>&5
15100 $RM conftest*
15101 # SGI C++ compiler will create directory out/ii_files/ for
15102 # template instantiation
15103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15104 $RM out/* && rmdir out
15105 cd ..
15106 $RM -r conftest
15107 $RM conftest*
15108
15109 fi
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15111 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15112
15113
15114
15115
15116 hard_links=nottested
15117 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15118 # do not overwrite the value of need_locks provided by the user
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15120 $as_echo_n "checking if we can lock with hard links... " >&6; }
15121 hard_links=yes
15122 $RM conftest*
15123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15124 touch conftest.a
15125 ln conftest.a conftest.b 2>&5 || hard_links=no
15126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15128 $as_echo "$hard_links" >&6; }
15129 if test no = "$hard_links"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15131 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15132 need_locks=warn
15133 fi
15134 else
15135 need_locks=no
15136 fi
15137
15138
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15141 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15142
15143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15144 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15145 case $host_os in
15146 aix[4-9]*)
15147 # If we're using GNU nm, then we don't want the "-C" option.
15148 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15149 # Without the "-l" option, or with the "-B" option, AIX nm treats
15150 # weak defined symbols like other global defined symbols, whereas
15151 # GNU nm marks them as "W".
15152 # While the 'weak' keyword is ignored in the Export File, we need
15153 # it in the Import File for the 'aix-soname' feature, so we have
15154 # to replace the "-B" option with "-P" for AIX nm.
15155 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15156 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'
15157 else
15158 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'
15159 fi
15160 ;;
15161 pw32*)
15162 export_symbols_cmds_CXX=$ltdll_cmds
15163 ;;
15164 cygwin* | mingw* | cegcc*)
15165 case $cc_basename in
15166 cl*)
15167 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15168 ;;
15169 *)
15170 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'
15171 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15172 ;;
15173 esac
15174 ;;
15175 linux* | k*bsd*-gnu | gnu*)
15176 link_all_deplibs_CXX=no
15177 ;;
15178 *)
15179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15180 ;;
15181 esac
15182
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15184 $as_echo "$ld_shlibs_CXX" >&6; }
15185 test no = "$ld_shlibs_CXX" && can_build_shared=no
15186
15187 with_gnu_ld_CXX=$with_gnu_ld
15188
15189
15190
15191
15192
15193
15194 #
15195 # Do we need to explicitly link libc?
15196 #
15197 case "x$archive_cmds_need_lc_CXX" in
15198 x|xyes)
15199 # Assume -lc should be added
15200 archive_cmds_need_lc_CXX=yes
15201
15202 if test yes,yes = "$GCC,$enable_shared"; then
15203 case $archive_cmds_CXX in
15204 *'~'*)
15205 # FIXME: we may have to deal with multi-command sequences.
15206 ;;
15207 '$CC '*)
15208 # Test whether the compiler implicitly links with -lc since on some
15209 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15210 # to ld, don't add -lc before -lgcc.
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15212 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15213 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 $RM conftest*
15217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15218
15219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15220 (eval $ac_compile) 2>&5
15221 ac_status=$?
15222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15223 test $ac_status = 0; } 2>conftest.err; then
15224 soname=conftest
15225 lib=conftest
15226 libobjs=conftest.$ac_objext
15227 deplibs=
15228 wl=$lt_prog_compiler_wl_CXX
15229 pic_flag=$lt_prog_compiler_pic_CXX
15230 compiler_flags=-v
15231 linker_flags=-v
15232 verstring=
15233 output_objdir=.
15234 libname=conftest
15235 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15236 allow_undefined_flag_CXX=
15237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15238 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15239 ac_status=$?
15240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15241 test $ac_status = 0; }
15242 then
15243 lt_cv_archive_cmds_need_lc_CXX=no
15244 else
15245 lt_cv_archive_cmds_need_lc_CXX=yes
15246 fi
15247 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15248 else
15249 cat conftest.err 1>&5
15250 fi
15251 $RM conftest*
15252
15253 fi
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15255 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15256 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15257 ;;
15258 esac
15259 fi
15260 ;;
15261 esac
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15326
15327 library_names_spec=
15328 libname_spec='lib$name'
15329 soname_spec=
15330 shrext_cmds=.so
15331 postinstall_cmds=
15332 postuninstall_cmds=
15333 finish_cmds=
15334 finish_eval=
15335 shlibpath_var=
15336 shlibpath_overrides_runpath=unknown
15337 version_type=none
15338 dynamic_linker="$host_os ld.so"
15339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15340 need_lib_prefix=unknown
15341 hardcode_into_libs=no
15342
15343 # when you set need_version to no, make sure it does not cause -set_version
15344 # flags to be left without arguments
15345 need_version=unknown
15346
15347
15348
15349 case $host_os in
15350 aix3*)
15351 version_type=linux # correct to gnu/linux during the next big refactor
15352 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15353 shlibpath_var=LIBPATH
15354
15355 # AIX 3 has no versioning support, so we append a major version to the name.
15356 soname_spec='$libname$release$shared_ext$major'
15357 ;;
15358
15359 aix[4-9]*)
15360 version_type=linux # correct to gnu/linux during the next big refactor
15361 need_lib_prefix=no
15362 need_version=no
15363 hardcode_into_libs=yes
15364 if test ia64 = "$host_cpu"; then
15365 # AIX 5 supports IA64
15366 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 else
15369 # With GCC up to 2.95.x, collect2 would create an import file
15370 # for dependence libraries. The import file would start with
15371 # the line '#! .'. This would cause the generated library to
15372 # depend on '.', always an invalid library. This was fixed in
15373 # development snapshots of GCC prior to 3.0.
15374 case $host_os in
15375 aix4 | aix4.[01] | aix4.[01].*)
15376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15377 echo ' yes '
15378 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15379 :
15380 else
15381 can_build_shared=no
15382 fi
15383 ;;
15384 esac
15385 # Using Import Files as archive members, it is possible to support
15386 # filename-based versioning of shared library archives on AIX. While
15387 # this would work for both with and without runtime linking, it will
15388 # prevent static linking of such archives. So we do filename-based
15389 # shared library versioning with .so extension only, which is used
15390 # when both runtime linking and shared linking is enabled.
15391 # Unfortunately, runtime linking may impact performance, so we do
15392 # not want this to be the default eventually. Also, we use the
15393 # versioned .so libs for executables only if there is the -brtl
15394 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15395 # To allow for filename-based versioning support, we need to create
15396 # libNAME.so.V as an archive file, containing:
15397 # *) an Import File, referring to the versioned filename of the
15398 # archive as well as the shared archive member, telling the
15399 # bitwidth (32 or 64) of that shared object, and providing the
15400 # list of exported symbols of that shared object, eventually
15401 # decorated with the 'weak' keyword
15402 # *) the shared object with the F_LOADONLY flag set, to really avoid
15403 # it being seen by the linker.
15404 # At run time we better use the real file rather than another symlink,
15405 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15406
15407 case $with_aix_soname,$aix_use_runtimelinking in
15408 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15409 # soname into executable. Probably we can add versioning support to
15410 # collect2, so additional links can be useful in future.
15411 aix,yes) # traditional libtool
15412 dynamic_linker='AIX unversionable lib.so'
15413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15414 # instead of lib<name>.a to let people know that these are not
15415 # typical AIX shared libraries.
15416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15417 ;;
15418 aix,no) # traditional AIX only
15419 dynamic_linker='AIX lib.a(lib.so.V)'
15420 # We preserve .a as extension for shared libraries through AIX4.2
15421 # and later when we are not doing run time linking.
15422 library_names_spec='$libname$release.a $libname.a'
15423 soname_spec='$libname$release$shared_ext$major'
15424 ;;
15425 svr4,*) # full svr4 only
15426 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15427 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15428 # We do not specify a path in Import Files, so LIBPATH fires.
15429 shlibpath_overrides_runpath=yes
15430 ;;
15431 *,yes) # both, prefer svr4
15432 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15433 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15434 # unpreferred sharedlib libNAME.a needs extra handling
15435 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"'
15436 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"'
15437 # We do not specify a path in Import Files, so LIBPATH fires.
15438 shlibpath_overrides_runpath=yes
15439 ;;
15440 *,no) # both, prefer aix
15441 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15442 library_names_spec='$libname$release.a $libname.a'
15443 soname_spec='$libname$release$shared_ext$major'
15444 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15445 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)'
15446 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"'
15447 ;;
15448 esac
15449 shlibpath_var=LIBPATH
15450 fi
15451 ;;
15452
15453 amigaos*)
15454 case $host_cpu in
15455 powerpc)
15456 # Since July 2007 AmigaOS4 officially supports .so libraries.
15457 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15459 ;;
15460 m68k)
15461 library_names_spec='$libname.ixlibrary $libname.a'
15462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15463 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'
15464 ;;
15465 esac
15466 ;;
15467
15468 beos*)
15469 library_names_spec='$libname$shared_ext'
15470 dynamic_linker="$host_os ld.so"
15471 shlibpath_var=LIBRARY_PATH
15472 ;;
15473
15474 bsdi[45]*)
15475 version_type=linux # correct to gnu/linux during the next big refactor
15476 need_version=no
15477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15478 soname_spec='$libname$release$shared_ext$major'
15479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15483 # the default ld.so.conf also contains /usr/contrib/lib and
15484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15485 # libtool to hard-code these into programs
15486 ;;
15487
15488 cygwin* | mingw* | pw32* | cegcc*)
15489 version_type=windows
15490 shrext_cmds=.dll
15491 need_version=no
15492 need_lib_prefix=no
15493
15494 case $GCC,$cc_basename in
15495 yes,*)
15496 # gcc
15497 library_names_spec='$libname.dll.a'
15498 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15499 postinstall_cmds='base_file=`basename \$file`~
15500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15501 dldir=$destdir/`dirname \$dlpath`~
15502 test -d \$dldir || mkdir -p \$dldir~
15503 $install_prog $dir/$dlname \$dldir/$dlname~
15504 chmod a+x \$dldir/$dlname~
15505 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15506 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15507 fi'
15508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15509 dlpath=$dir/\$dldll~
15510 $RM \$dlpath'
15511 shlibpath_overrides_runpath=yes
15512
15513 case $host_os in
15514 cygwin*)
15515 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15516 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15517
15518 ;;
15519 mingw* | cegcc*)
15520 # MinGW DLLs use traditional 'lib' prefix
15521 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15522 ;;
15523 pw32*)
15524 # pw32 DLLs use 'pw' prefix rather than 'lib'
15525 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15526 ;;
15527 esac
15528 dynamic_linker='Win32 ld.exe'
15529 ;;
15530
15531 *,cl*)
15532 # Native MSVC
15533 libname_spec='$name'
15534 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15535 library_names_spec='$libname.dll.lib'
15536
15537 case $build_os in
15538 mingw*)
15539 sys_lib_search_path_spec=
15540 lt_save_ifs=$IFS
15541 IFS=';'
15542 for lt_path in $LIB
15543 do
15544 IFS=$lt_save_ifs
15545 # Let DOS variable expansion print the short 8.3 style file name.
15546 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15547 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15548 done
15549 IFS=$lt_save_ifs
15550 # Convert to MSYS style.
15551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15552 ;;
15553 cygwin*)
15554 # Convert to unix form, then to dos form, then back to unix form
15555 # but this time dos style (no spaces!) so that the unix form looks
15556 # like /cygdrive/c/PROGRA~1:/cygdr...
15557 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15558 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15559 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15560 ;;
15561 *)
15562 sys_lib_search_path_spec=$LIB
15563 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15564 # It is most probably a Windows format PATH.
15565 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15566 else
15567 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15568 fi
15569 # FIXME: find the short name or the path components, as spaces are
15570 # common. (e.g. "Program Files" -> "PROGRA~1")
15571 ;;
15572 esac
15573
15574 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15575 postinstall_cmds='base_file=`basename \$file`~
15576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15577 dldir=$destdir/`dirname \$dlpath`~
15578 test -d \$dldir || mkdir -p \$dldir~
15579 $install_prog $dir/$dlname \$dldir/$dlname'
15580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15581 dlpath=$dir/\$dldll~
15582 $RM \$dlpath'
15583 shlibpath_overrides_runpath=yes
15584 dynamic_linker='Win32 link.exe'
15585 ;;
15586
15587 *)
15588 # Assume MSVC wrapper
15589 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15590 dynamic_linker='Win32 ld.exe'
15591 ;;
15592 esac
15593 # FIXME: first we should search . and the directory the executable is in
15594 shlibpath_var=PATH
15595 ;;
15596
15597 darwin* | rhapsody*)
15598 dynamic_linker="$host_os dyld"
15599 version_type=darwin
15600 need_lib_prefix=no
15601 need_version=no
15602 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15603 soname_spec='$libname$release$major$shared_ext'
15604 shlibpath_overrides_runpath=yes
15605 shlibpath_var=DYLD_LIBRARY_PATH
15606 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15607
15608 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15609 ;;
15610
15611 dgux*)
15612 version_type=linux # correct to gnu/linux during the next big refactor
15613 need_lib_prefix=no
15614 need_version=no
15615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15616 soname_spec='$libname$release$shared_ext$major'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 ;;
15619
15620 freebsd* | dragonfly*)
15621 # DragonFly does not have aout. When/if they implement a new
15622 # versioning mechanism, adjust this.
15623 if test -x /usr/bin/objformat; then
15624 objformat=`/usr/bin/objformat`
15625 else
15626 case $host_os in
15627 freebsd[23].*) objformat=aout ;;
15628 *) objformat=elf ;;
15629 esac
15630 fi
15631 version_type=freebsd-$objformat
15632 case $version_type in
15633 freebsd-elf*)
15634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15635 soname_spec='$libname$release$shared_ext$major'
15636 need_version=no
15637 need_lib_prefix=no
15638 ;;
15639 freebsd-*)
15640 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15641 need_version=yes
15642 ;;
15643 esac
15644 shlibpath_var=LD_LIBRARY_PATH
15645 case $host_os in
15646 freebsd2.*)
15647 shlibpath_overrides_runpath=yes
15648 ;;
15649 freebsd3.[01]* | freebsdelf3.[01]*)
15650 shlibpath_overrides_runpath=yes
15651 hardcode_into_libs=yes
15652 ;;
15653 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15654 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15655 shlibpath_overrides_runpath=no
15656 hardcode_into_libs=yes
15657 ;;
15658 *) # from 4.6 on, and DragonFly
15659 shlibpath_overrides_runpath=yes
15660 hardcode_into_libs=yes
15661 ;;
15662 esac
15663 ;;
15664
15665 haiku*)
15666 version_type=linux # correct to gnu/linux during the next big refactor
15667 need_lib_prefix=no
15668 need_version=no
15669 dynamic_linker="$host_os runtime_loader"
15670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15671 soname_spec='$libname$release$shared_ext$major'
15672 shlibpath_var=LIBRARY_PATH
15673 shlibpath_overrides_runpath=no
15674 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15675 hardcode_into_libs=yes
15676 ;;
15677
15678 hpux9* | hpux10* | hpux11*)
15679 # Give a soname corresponding to the major version so that dld.sl refuses to
15680 # link against other versions.
15681 version_type=sunos
15682 need_lib_prefix=no
15683 need_version=no
15684 case $host_cpu in
15685 ia64*)
15686 shrext_cmds='.so'
15687 hardcode_into_libs=yes
15688 dynamic_linker="$host_os dld.so"
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15692 soname_spec='$libname$release$shared_ext$major'
15693 if test 32 = "$HPUX_IA64_MODE"; then
15694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15695 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15696 else
15697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15698 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15699 fi
15700 ;;
15701 hppa*64*)
15702 shrext_cmds='.sl'
15703 hardcode_into_libs=yes
15704 dynamic_linker="$host_os dld.sl"
15705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15708 soname_spec='$libname$release$shared_ext$major'
15709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15711 ;;
15712 *)
15713 shrext_cmds='.sl'
15714 dynamic_linker="$host_os dld.sl"
15715 shlibpath_var=SHLIB_PATH
15716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15718 soname_spec='$libname$release$shared_ext$major'
15719 ;;
15720 esac
15721 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15722 postinstall_cmds='chmod 555 $lib'
15723 # or fails outright, so override atomically:
15724 install_override_mode=555
15725 ;;
15726
15727 interix[3-9]*)
15728 version_type=linux # correct to gnu/linux during the next big refactor
15729 need_lib_prefix=no
15730 need_version=no
15731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15732 soname_spec='$libname$release$shared_ext$major'
15733 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15734 shlibpath_var=LD_LIBRARY_PATH
15735 shlibpath_overrides_runpath=no
15736 hardcode_into_libs=yes
15737 ;;
15738
15739 irix5* | irix6* | nonstopux*)
15740 case $host_os in
15741 nonstopux*) version_type=nonstopux ;;
15742 *)
15743 if test yes = "$lt_cv_prog_gnu_ld"; then
15744 version_type=linux # correct to gnu/linux during the next big refactor
15745 else
15746 version_type=irix
15747 fi ;;
15748 esac
15749 need_lib_prefix=no
15750 need_version=no
15751 soname_spec='$libname$release$shared_ext$major'
15752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15753 case $host_os in
15754 irix5* | nonstopux*)
15755 libsuff= shlibsuff=
15756 ;;
15757 *)
15758 case $LD in # libtool.m4 will add one of these switches to LD
15759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15760 libsuff= shlibsuff= libmagic=32-bit;;
15761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15762 libsuff=32 shlibsuff=N32 libmagic=N32;;
15763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15765 *) libsuff= shlibsuff= libmagic=never-match;;
15766 esac
15767 ;;
15768 esac
15769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15770 shlibpath_overrides_runpath=no
15771 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15772 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15773 hardcode_into_libs=yes
15774 ;;
15775
15776 # No shared lib support for Linux oldld, aout, or coff.
15777 linux*oldld* | linux*aout* | linux*coff*)
15778 dynamic_linker=no
15779 ;;
15780
15781 linux*android*)
15782 version_type=none # Android doesn't support versioned libraries.
15783 need_lib_prefix=no
15784 need_version=no
15785 library_names_spec='$libname$release$shared_ext'
15786 soname_spec='$libname$release$shared_ext'
15787 finish_cmds=
15788 shlibpath_var=LD_LIBRARY_PATH
15789 shlibpath_overrides_runpath=yes
15790
15791 # This implies no fast_install, which is unacceptable.
15792 # Some rework will be needed to allow for fast_install
15793 # before this can be enabled.
15794 hardcode_into_libs=yes
15795
15796 dynamic_linker='Android linker'
15797 # Don't embed -rpath directories since the linker doesn't support them.
15798 hardcode_libdir_flag_spec_CXX='-L$libdir'
15799 ;;
15800
15801 # This must be glibc/ELF.
15802 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15803 version_type=linux # correct to gnu/linux during the next big refactor
15804 need_lib_prefix=no
15805 need_version=no
15806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15807 soname_spec='$libname$release$shared_ext$major'
15808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15809 shlibpath_var=LD_LIBRARY_PATH
15810 shlibpath_overrides_runpath=no
15811
15812 # Some binutils ld are patched to set DT_RUNPATH
15813 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 lt_cv_shlibpath_overrides_runpath=no
15817 save_LDFLAGS=$LDFLAGS
15818 save_libdir=$libdir
15819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823
15824 int
15825 main ()
15826 {
15827
15828 ;
15829 return 0;
15830 }
15831 _ACEOF
15832 if ac_fn_cxx_try_link "$LINENO"; then :
15833 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15834 lt_cv_shlibpath_overrides_runpath=yes
15835 fi
15836 fi
15837 rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15839 LDFLAGS=$save_LDFLAGS
15840 libdir=$save_libdir
15841
15842 fi
15843
15844 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15845
15846 # This implies no fast_install, which is unacceptable.
15847 # Some rework will be needed to allow for fast_install
15848 # before this can be enabled.
15849 hardcode_into_libs=yes
15850
15851 # Ideally, we could use ldconfig to report *all* directores which are
15852 # searched for libraries, however this is still not possible. Aside from not
15853 # being certain /sbin/ldconfig is available, command
15854 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15855 # even though it is searched at run-time. Try to do the best guess by
15856 # appending ld.so.conf contents (and includes) to the search path.
15857 if test -f /etc/ld.so.conf; then
15858 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' ' '`
15859 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15860 fi
15861
15862 # We used to test for /lib/ld.so.1 and disable shared libraries on
15863 # powerpc, because MkLinux only supported shared libraries with the
15864 # GNU dynamic linker. Since this was broken with cross compilers,
15865 # most powerpc-linux boxes support dynamic linking these days and
15866 # people can always --disable-shared, the test was removed, and we
15867 # assume the GNU/Linux dynamic linker is in use.
15868 dynamic_linker='GNU/Linux ld.so'
15869 ;;
15870
15871 netbsdelf*-gnu)
15872 version_type=linux
15873 need_lib_prefix=no
15874 need_version=no
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15876 soname_spec='${libname}${release}${shared_ext}$major'
15877 shlibpath_var=LD_LIBRARY_PATH
15878 shlibpath_overrides_runpath=no
15879 hardcode_into_libs=yes
15880 dynamic_linker='NetBSD ld.elf_so'
15881 ;;
15882
15883 netbsd*)
15884 version_type=sunos
15885 need_lib_prefix=no
15886 need_version=no
15887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15888 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15890 dynamic_linker='NetBSD (a.out) ld.so'
15891 else
15892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15893 soname_spec='$libname$release$shared_ext$major'
15894 dynamic_linker='NetBSD ld.elf_so'
15895 fi
15896 shlibpath_var=LD_LIBRARY_PATH
15897 shlibpath_overrides_runpath=yes
15898 hardcode_into_libs=yes
15899 ;;
15900
15901 newsos6)
15902 version_type=linux # correct to gnu/linux during the next big refactor
15903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15904 shlibpath_var=LD_LIBRARY_PATH
15905 shlibpath_overrides_runpath=yes
15906 ;;
15907
15908 *nto* | *qnx*)
15909 version_type=qnx
15910 need_lib_prefix=no
15911 need_version=no
15912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15913 soname_spec='$libname$release$shared_ext$major'
15914 shlibpath_var=LD_LIBRARY_PATH
15915 shlibpath_overrides_runpath=no
15916 hardcode_into_libs=yes
15917 dynamic_linker='ldqnx.so'
15918 ;;
15919
15920 openbsd* | bitrig*)
15921 version_type=sunos
15922 sys_lib_dlsearch_path_spec=/usr/lib
15923 need_lib_prefix=no
15924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15925 need_version=no
15926 else
15927 need_version=yes
15928 fi
15929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=yes
15933 ;;
15934
15935 os2*)
15936 libname_spec='$name'
15937 version_type=windows
15938 shrext_cmds=.dll
15939 need_version=no
15940 need_lib_prefix=no
15941 # OS/2 can only load a DLL with a base name of 8 characters or less.
15942 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15943 v=$($ECHO $release$versuffix | tr -d .-);
15944 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15945 $ECHO $n$v`$shared_ext'
15946 library_names_spec='${libname}_dll.$libext'
15947 dynamic_linker='OS/2 ld.exe'
15948 shlibpath_var=BEGINLIBPATH
15949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15951 postinstall_cmds='base_file=`basename \$file`~
15952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15953 dldir=$destdir/`dirname \$dlpath`~
15954 test -d \$dldir || mkdir -p \$dldir~
15955 $install_prog $dir/$dlname \$dldir/$dlname~
15956 chmod a+x \$dldir/$dlname~
15957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15959 fi'
15960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15961 dlpath=$dir/\$dldll~
15962 $RM \$dlpath'
15963 ;;
15964
15965 osf3* | osf4* | osf5*)
15966 version_type=osf
15967 need_lib_prefix=no
15968 need_version=no
15969 soname_spec='$libname$release$shared_ext$major'
15970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15974 ;;
15975
15976 rdos*)
15977 dynamic_linker=no
15978 ;;
15979
15980 solaris*)
15981 version_type=linux # correct to gnu/linux during the next big refactor
15982 need_lib_prefix=no
15983 need_version=no
15984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15985 soname_spec='$libname$release$shared_ext$major'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15988 hardcode_into_libs=yes
15989 # ldd complains unless libraries are executable
15990 postinstall_cmds='chmod +x $lib'
15991 ;;
15992
15993 sunos4*)
15994 version_type=sunos
15995 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15996 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 shlibpath_overrides_runpath=yes
15999 if test yes = "$with_gnu_ld"; then
16000 need_lib_prefix=no
16001 fi
16002 need_version=yes
16003 ;;
16004
16005 sysv4 | sysv4.3*)
16006 version_type=linux # correct to gnu/linux during the next big refactor
16007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16008 soname_spec='$libname$release$shared_ext$major'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 case $host_vendor in
16011 sni)
16012 shlibpath_overrides_runpath=no
16013 need_lib_prefix=no
16014 runpath_var=LD_RUN_PATH
16015 ;;
16016 siemens)
16017 need_lib_prefix=no
16018 ;;
16019 motorola)
16020 need_lib_prefix=no
16021 need_version=no
16022 shlibpath_overrides_runpath=no
16023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16024 ;;
16025 esac
16026 ;;
16027
16028 sysv4*MP*)
16029 if test -d /usr/nec; then
16030 version_type=linux # correct to gnu/linux during the next big refactor
16031 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16032 soname_spec='$libname$shared_ext.$major'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 fi
16035 ;;
16036
16037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16038 version_type=sco
16039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16042 soname_spec='$libname$release$shared_ext$major'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 shlibpath_overrides_runpath=yes
16045 hardcode_into_libs=yes
16046 if test yes = "$with_gnu_ld"; then
16047 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16048 else
16049 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16050 case $host_os in
16051 sco3.2v5*)
16052 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16053 ;;
16054 esac
16055 fi
16056 sys_lib_dlsearch_path_spec='/usr/lib'
16057 ;;
16058
16059 tpf*)
16060 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16061 version_type=linux # correct to gnu/linux during the next big refactor
16062 need_lib_prefix=no
16063 need_version=no
16064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 shlibpath_overrides_runpath=no
16067 hardcode_into_libs=yes
16068 ;;
16069
16070 uts4*)
16071 version_type=linux # correct to gnu/linux during the next big refactor
16072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16073 soname_spec='$libname$release$shared_ext$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 ;;
16076
16077 *)
16078 dynamic_linker=no
16079 ;;
16080 esac
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16082 $as_echo "$dynamic_linker" >&6; }
16083 test no = "$dynamic_linker" && can_build_shared=no
16084
16085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16086 if test yes = "$GCC"; then
16087 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16088 fi
16089
16090 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16091 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16092 fi
16093
16094 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16095 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16096 fi
16097
16098 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16099 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16100
16101 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16102 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16103
16104 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16105 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16147 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16148 hardcode_action_CXX=
16149 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16150 test -n "$runpath_var_CXX" ||
16151 test yes = "$hardcode_automatic_CXX"; then
16152
16153 # We can hardcode non-existent directories.
16154 if test no != "$hardcode_direct_CXX" &&
16155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16156 # have to relink, otherwise we might link with an installed library
16157 # when we should be linking with a yet-to-be-installed one
16158 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16159 test no != "$hardcode_minus_L_CXX"; then
16160 # Linking always hardcodes the temporary library directory.
16161 hardcode_action_CXX=relink
16162 else
16163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16164 hardcode_action_CXX=immediate
16165 fi
16166 else
16167 # We cannot hardcode anything, or else we can only hardcode existing
16168 # directories.
16169 hardcode_action_CXX=unsupported
16170 fi
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16172 $as_echo "$hardcode_action_CXX" >&6; }
16173
16174 if test relink = "$hardcode_action_CXX" ||
16175 test yes = "$inherit_rpath_CXX"; then
16176 # Fast installation is not supported
16177 enable_fast_install=no
16178 elif test yes = "$shlibpath_overrides_runpath" ||
16179 test no = "$enable_shared"; then
16180 # Fast installation is not necessary
16181 enable_fast_install=needless
16182 fi
16183
16184
16185
16186
16187
16188
16189
16190 fi # test -n "$compiler"
16191
16192 CC=$lt_save_CC
16193 CFLAGS=$lt_save_CFLAGS
16194 LDCXX=$LD
16195 LD=$lt_save_LD
16196 GCC=$lt_save_GCC
16197 with_gnu_ld=$lt_save_with_gnu_ld
16198 lt_cv_path_LDCXX=$lt_cv_path_LD
16199 lt_cv_path_LD=$lt_save_path_LD
16200 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16201 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16202 fi # test yes != "$_lt_caught_CXX_error"
16203
16204 ac_ext=c
16205 ac_cpp='$CPP $CPPFLAGS'
16206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224 ac_config_commands="$ac_config_commands libtool"
16225
16226
16227
16228
16229 # Only expand once:
16230
16231
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16234 $as_echo_n "checking for ANSI C header files... " >&6; }
16235 if ${ac_cv_header_stdc+:} false; then :
16236 $as_echo_n "(cached) " >&6
16237 else
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16240 #include <stdlib.h>
16241 #include <stdarg.h>
16242 #include <string.h>
16243 #include <float.h>
16244
16245 int
16246 main ()
16247 {
16248
16249 ;
16250 return 0;
16251 }
16252 _ACEOF
16253 if ac_fn_c_try_compile "$LINENO"; then :
16254 ac_cv_header_stdc=yes
16255 else
16256 ac_cv_header_stdc=no
16257 fi
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259
16260 if test $ac_cv_header_stdc = yes; then
16261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264 #include <string.h>
16265
16266 _ACEOF
16267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16268 $EGREP "memchr" >/dev/null 2>&1; then :
16269
16270 else
16271 ac_cv_header_stdc=no
16272 fi
16273 rm -f conftest*
16274
16275 fi
16276
16277 if test $ac_cv_header_stdc = yes; then
16278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 #include <stdlib.h>
16282
16283 _ACEOF
16284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16285 $EGREP "free" >/dev/null 2>&1; then :
16286
16287 else
16288 ac_cv_header_stdc=no
16289 fi
16290 rm -f conftest*
16291
16292 fi
16293
16294 if test $ac_cv_header_stdc = yes; then
16295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16296 if test "$cross_compiling" = yes; then :
16297 :
16298 else
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16301 #include <ctype.h>
16302 #include <stdlib.h>
16303 #if ((' ' & 0x0FF) == 0x020)
16304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16306 #else
16307 # define ISLOWER(c) \
16308 (('a' <= (c) && (c) <= 'i') \
16309 || ('j' <= (c) && (c) <= 'r') \
16310 || ('s' <= (c) && (c) <= 'z'))
16311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16312 #endif
16313
16314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16315 int
16316 main ()
16317 {
16318 int i;
16319 for (i = 0; i < 256; i++)
16320 if (XOR (islower (i), ISLOWER (i))
16321 || toupper (i) != TOUPPER (i))
16322 return 2;
16323 return 0;
16324 }
16325 _ACEOF
16326 if ac_fn_c_try_run "$LINENO"; then :
16327
16328 else
16329 ac_cv_header_stdc=no
16330 fi
16331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16332 conftest.$ac_objext conftest.beam conftest.$ac_ext
16333 fi
16334
16335 fi
16336 fi
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16338 $as_echo "$ac_cv_header_stdc" >&6; }
16339 if test $ac_cv_header_stdc = yes; then
16340
16341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16342
16343 fi
16344
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16346 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16347 if ${ac_cv_c_const+:} false; then :
16348 $as_echo_n "(cached) " >&6
16349 else
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352
16353 int
16354 main ()
16355 {
16356
16357 #ifndef __cplusplus
16358 /* Ultrix mips cc rejects this sort of thing. */
16359 typedef int charset[2];
16360 const charset cs = { 0, 0 };
16361 /* SunOS 4.1.1 cc rejects this. */
16362 char const *const *pcpcc;
16363 char **ppc;
16364 /* NEC SVR4.0.2 mips cc rejects this. */
16365 struct point {int x, y;};
16366 static struct point const zero = {0,0};
16367 /* AIX XL C 1.02.0.0 rejects this.
16368 It does not let you subtract one const X* pointer from another in
16369 an arm of an if-expression whose if-part is not a constant
16370 expression */
16371 const char *g = "string";
16372 pcpcc = &g + (g ? g-g : 0);
16373 /* HPUX 7.0 cc rejects these. */
16374 ++pcpcc;
16375 ppc = (char**) pcpcc;
16376 pcpcc = (char const *const *) ppc;
16377 { /* SCO 3.2v4 cc rejects this sort of thing. */
16378 char tx;
16379 char *t = &tx;
16380 char const *s = 0 ? (char *) 0 : (char const *) 0;
16381
16382 *t++ = 0;
16383 if (s) return 0;
16384 }
16385 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16386 int x[] = {25, 17};
16387 const int *foo = &x[0];
16388 ++foo;
16389 }
16390 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16391 typedef const int *iptr;
16392 iptr p = 0;
16393 ++p;
16394 }
16395 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16396 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16397 struct s { int j; const int *ap[3]; } bx;
16398 struct s *b = &bx; b->j = 5;
16399 }
16400 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16401 const int foo = 10;
16402 if (!foo) return 0;
16403 }
16404 return !cs[0] && !zero.x;
16405 #endif
16406
16407 ;
16408 return 0;
16409 }
16410 _ACEOF
16411 if ac_fn_c_try_compile "$LINENO"; then :
16412 ac_cv_c_const=yes
16413 else
16414 ac_cv_c_const=no
16415 fi
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417 fi
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16419 $as_echo "$ac_cv_c_const" >&6; }
16420 if test $ac_cv_c_const = no; then
16421
16422 $as_echo "#define const /**/" >>confdefs.h
16423
16424 fi
16425
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16427 $as_echo_n "checking for inline... " >&6; }
16428 if ${ac_cv_c_inline+:} false; then :
16429 $as_echo_n "(cached) " >&6
16430 else
16431 ac_cv_c_inline=no
16432 for ac_kw in inline __inline__ __inline; do
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16435 #ifndef __cplusplus
16436 typedef int foo_t;
16437 static $ac_kw foo_t static_foo () {return 0; }
16438 $ac_kw foo_t foo () {return 0; }
16439 #endif
16440
16441 _ACEOF
16442 if ac_fn_c_try_compile "$LINENO"; then :
16443 ac_cv_c_inline=$ac_kw
16444 fi
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 test "$ac_cv_c_inline" != no && break
16447 done
16448
16449 fi
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16451 $as_echo "$ac_cv_c_inline" >&6; }
16452
16453 case $ac_cv_c_inline in
16454 inline | yes) ;;
16455 *)
16456 case $ac_cv_c_inline in
16457 no) ac_val=;;
16458 *) ac_val=$ac_cv_c_inline;;
16459 esac
16460 cat >>confdefs.h <<_ACEOF
16461 #ifndef __cplusplus
16462 #define inline $ac_val
16463 #endif
16464 _ACEOF
16465 ;;
16466 esac
16467
16468 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16469 if test "x$ac_cv_type_size_t" = xyes; then :
16470
16471 else
16472
16473 cat >>confdefs.h <<_ACEOF
16474 #define size_t unsigned int
16475 _ACEOF
16476
16477 fi
16478
16479 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
16480 if test "x$ac_cv_type_long_long" = xyes; then :
16481
16482 cat >>confdefs.h <<_ACEOF
16483 #define HAVE_LONG_LONG 1
16484 _ACEOF
16485
16486
16487 fi
16488
16489
16490 for ac_func in strrchr mallinfo
16491 do :
16492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16493 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16494 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16495 cat >>confdefs.h <<_ACEOF
16496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16497 _ACEOF
16498
16499 fi
16500 done
16501
16502
16503 OPTIONAL_UTILS=""
16504 ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
16505 if test "x$ac_cv_header_GL_glut_h" = xyes; then :
16506 OPTIONAL_UTILS+="viewevents "
16507 fi
16508
16509
16510
16511 ac_ext=cpp
16512 ac_cpp='$CXXCPP $CPPFLAGS'
16513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16516
16517 save_CXX="$CXX"
16518 save_LIBS="$LIBS"
16519
16520 CXX="$CXX $MPI_CXXFLAGS"
16521 LIBS="$LIBS $MPI_LDFLAGS"
16522 for ac_func in rts_get_personality ompi_comm_free MPI_Comm_create_errhandler MPI_Init_thread
16523 do :
16524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16525 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16526 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16527 cat >>confdefs.h <<_ACEOF
16528 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16529 _ACEOF
16530
16531 fi
16532 done
16533
16534
16535 # Check whether --enable-mpi was given.
16536 if test "${enable_mpi+set}" = set; then :
16537 enableval=$enable_mpi; MUSIC_USE_MPI="$enableval"
16538 else
16539 MUSIC_USE_MPI="yes"
16540 fi
16541
16542 if test $MUSIC_USE_MPI = yes ; then
16543 MUSIC_USE_MPI=1
16544 MPI_UTILS="eventsource eventsink eventselect eventgenerator eventcounter eventlogger contsink messagesource"
16545 EXAMPLESDIR="examples"
16546 else
16547 MUSIC_USE_MPI=0
16548 MPI_UTILS=""
16549 OPTIONAL_UTILS=""
16550 EXAMPLESDIR=""
16551 fi
16552 if test x$MUSIC_USE_MPI = x1; then
16553 COND_USE_MPI_TRUE=
16554 COND_USE_MPI_FALSE='#'
16555 else
16556 COND_USE_MPI_TRUE='#'
16557 COND_USE_MPI_FALSE=
16558 fi
16559
16560
16561 # Check whether --enable-isend was given.
16562 if test "${enable_isend+set}" = set; then :
16563 enableval=$enable_isend; MUSIC_ISENDWAITALL="$enableval"
16564 else
16565 MUSIC_ISENDWAITALL="yes"
16566 fi
16567
16568 if test $MUSIC_ISENDWAITALL = yes ; then
16569 MUSIC_ISENDWAITALL=1
16570 else
16571 MUSIC_ISENDWAITALL=0
16572 fi
16573
16574 # Check whether --enable-anysource was given.
16575 if test "${enable_anysource+set}" = set; then :
16576 enableval=$enable_anysource; MUSIC_ANYSOURCE="$enableval"
16577 else
16578 MUSIC_ANYSOURCE="yes"
16579 fi
16580
16581 if test $MUSIC_ANYSOURCE = yes ; then
16582 MUSIC_ANYSOURCE=1
16583 else
16584 MUSIC_ANYSOURCE=0
16585 fi
16586
16587 LIBS="$save_LIBS"
16588 CXX="$save_CXX"
16589 ac_ext=c
16590 ac_cpp='$CPP $CPPFLAGS'
16591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16594
16595
16596 if test $ac_cv_type_size_t = yes; then
16597 MUSIC_HAVE_SIZE_T=1
16598 else
16599 MUSIC_HAVE_SIZE_T=0
16600 fi
16601
16602 if test $ac_cv_type_long_long = yes; then
16603 MUSIC_HAVE_LONG_LONG=1
16604 else
16605 MUSIC_HAVE_LONG_LONG=0
16606 fi
16607
16608 if test $ac_cv_func_MPI_Comm_create_errhandler = yes; then
16609 MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER=1
16610 else
16611 MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER=0
16612 fi
16613
16614 # Pre-evaluating some autoconf variables
16615 if test "x$prefix" = xNONE; then
16616 PREFIX=$ac_default_prefix
16617 prefix=$PREFIX
16618 else
16619 PREFIX="$prefix"
16620 fi
16621 if test "x$exec_prefix" = xNONE; then
16622 EXEC_PREFIX="$PREFIX"
16623 exec_prefix=$EXEC_PREFIX
16624 else
16625 EXEC_PREFIX="`eval echo $exec_prefix`"
16626 fi
16627 if test "x$bindir" = 'x${exec_prefix}/bin'; then
16628 BINDIR="$EXEC_PREFIX/bin"
16629 else
16630 BINDIR="`eval echo $bindir`"
16631 fi
16632 if test "x$libdir" = 'x${exec_prefix}/lib'; then
16633 LIBDIR="$EXEC_PREFIX/lib"
16634 else
16635 LIBDIR="`eval echo $libdir`"
16636 fi
16637 if test "x$datarootdir" = 'x${prefix}/share'; then
16638 DATAROOTDIR="$PREFIX/share"
16639 else
16640 DATAROOTDIR="`eval echo $datarootdir`"
16641 fi
16642 if test "x$datadir" = 'x${datarootdir}'; then
16643 DATADIR="$DATAROOTDIR"
16644 else
16645 DATADIR="`eval echo $datadir`"
16646 fi
16647
16648 PKGDATADIR="$DATADIR/$PACKAGE-$PACKAGE_VERSION"
16649 PKGEXTRABINDIR="$LIBDIR/$PACKAGE-$PACKAGE_VERSION"
16650
16651 #TEST_SH_LIST=${srcdir}/*.test
16652
16653
16654 # Check whether --with-python was given.
16655 if test "${with_python+set}" = set; then :
16656 withval=$with_python;
16657 fi
16658
16659
16660 if test "x$with_python" != "xno"; then :
16661 if test "x$with_python" != "xyes"; then :
16662 PYTHON="$with_python"
16663 fi
16664
16665
16666
16667
16668
16669
16670 if test -n "$PYTHON"; then
16671 # If the user set $PYTHON, use it and don't search something else.
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
16673 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
16674 prog="import sys
16675 # split strings by '.' and convert to numeric. Append some zeros
16676 # because we need at least 4 digits for the hex conversion.
16677 # map returns an iterator in Python 3.0 and a list in 2.x
16678 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
16679 minverhex = 0
16680 # xrange is not present in Python 3.0 and range returns an iterator
16681 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16682 sys.exit(sys.hexversion < minverhex)"
16683 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16684 ($PYTHON -c "$prog") >&5 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; then :
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16689 $as_echo "yes" >&6; }
16690 else
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692 $as_echo "no" >&6; }
16693 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16694 fi
16695 am_display_PYTHON=$PYTHON
16696 else
16697 # Otherwise, try each interpreter until we find one that satisfies
16698 # VERSION.
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
16700 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
16701 if ${am_cv_pathless_PYTHON+:} false; then :
16702 $as_echo_n "(cached) " >&6
16703 else
16704
16705 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
16706 test "$am_cv_pathless_PYTHON" = none && break
16707 prog="import sys
16708 # split strings by '.' and convert to numeric. Append some zeros
16709 # because we need at least 4 digits for the hex conversion.
16710 # map returns an iterator in Python 3.0 and a list in 2.x
16711 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
16712 minverhex = 0
16713 # xrange is not present in Python 3.0 and range returns an iterator
16714 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16715 sys.exit(sys.hexversion < minverhex)"
16716 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16717 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; then :
16721 break
16722 fi
16723 done
16724 fi
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16726 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16727 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16728 if test "$am_cv_pathless_PYTHON" = none; then
16729 PYTHON=:
16730 else
16731 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16732 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_path_PYTHON+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 case $PYTHON in
16739 [\\/]* | ?:[\\/]*)
16740 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16741 ;;
16742 *)
16743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16744 for as_dir in $PATH
16745 do
16746 IFS=$as_save_IFS
16747 test -z "$as_dir" && as_dir=.
16748 for ac_exec_ext in '' $ac_executable_extensions; do
16749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16750 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16752 break 2
16753 fi
16754 done
16755 done
16756 IFS=$as_save_IFS
16757
16758 ;;
16759 esac
16760 fi
16761 PYTHON=$ac_cv_path_PYTHON
16762 if test -n "$PYTHON"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16764 $as_echo "$PYTHON" >&6; }
16765 else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16768 fi
16769
16770
16771 fi
16772 am_display_PYTHON=$am_cv_pathless_PYTHON
16773 fi
16774
16775
16776 if test "$PYTHON" = :; then
16777 have_python=no
16778 else
16779
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16781 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16782 if ${am_cv_python_version+:} false; then :
16783 $as_echo_n "(cached) " >&6
16784 else
16785 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
16786 fi
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16788 $as_echo "$am_cv_python_version" >&6; }
16789 PYTHON_VERSION=$am_cv_python_version
16790
16791
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16793 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16794 if ${am_cv_python_platform+:} false; then :
16795 $as_echo_n "(cached) " >&6
16796 else
16797 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16798 fi
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16800 $as_echo "$am_cv_python_platform" >&6; }
16801 PYTHON_PLATFORM=$am_cv_python_platform
16802
16803
16804 if test "x$prefix" = xNONE; then
16805 am__usable_prefix=$ac_default_prefix
16806 else
16807 am__usable_prefix=$prefix
16808 fi
16809
16810 # Allow user to request using sys.* values from Python,
16811 # instead of the GNU $prefix values.
16812
16813 # Check whether --with-python-sys-prefix was given.
16814 if test "${with_python_sys_prefix+set}" = set; then :
16815 withval=$with_python_sys_prefix; am_use_python_sys=:
16816 else
16817 am_use_python_sys=false
16818 fi
16819
16820
16821 # Allow user to override whatever the default Python prefix is.
16822
16823 # Check whether --with-python_prefix was given.
16824 if test "${with_python_prefix+set}" = set; then :
16825 withval=$with_python_prefix; am_python_prefix_subst=$withval
16826 am_cv_python_prefix=$withval
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
16828 $as_echo_n "checking for explicit $am_display_PYTHON prefix... " >&6; }
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
16830 $as_echo "$am_cv_python_prefix" >&6; }
16831 else
16832
16833 if $am_use_python_sys; then
16834 # using python sys.prefix value, not GNU
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
16836 $as_echo_n "checking for python default $am_display_PYTHON prefix... " >&6; }
16837 if ${am_cv_python_prefix+:} false; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16840 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
16841 fi
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
16843 $as_echo "$am_cv_python_prefix" >&6; }
16844
16845 case $am_cv_python_prefix in
16846 $am__usable_prefix*)
16847 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
16848 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
16849 ;;
16850 *)
16851 am_python_prefix_subst=$am_cv_python_prefix
16852 ;;
16853 esac
16854 else # using GNU prefix value, not python sys.prefix
16855 am_python_prefix_subst='${prefix}'
16856 am_python_prefix=$am_python_prefix_subst
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
16858 $as_echo_n "checking for GNU default $am_display_PYTHON prefix... " >&6; }
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
16860 $as_echo "$am_python_prefix" >&6; }
16861 fi
16862 fi
16863
16864 # Substituting python_prefix_subst value.
16865 PYTHON_PREFIX=$am_python_prefix_subst
16866
16867
16868 # emacs-page Now do it all over again for Python exec_prefix, but with yet
16869 # another conditional: fall back to regular prefix if that was specified.
16870
16871 # Check whether --with-python_exec_prefix was given.
16872 if test "${with_python_exec_prefix+set}" = set; then :
16873 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
16874 am_cv_python_exec_prefix=$withval
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
16876 $as_echo_n "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
16878 $as_echo "$am_cv_python_exec_prefix" >&6; }
16879 else
16880
16881 # no explicit --with-python_exec_prefix, but if
16882 # --with-python_prefix was given, use its value for python_exec_prefix too.
16883 if test -n "$with_python_prefix"; then :
16884 am_python_exec_prefix_subst=$with_python_prefix
16885 am_cv_python_exec_prefix=$with_python_prefix
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
16887 $as_echo_n "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
16889 $as_echo "$am_cv_python_exec_prefix" >&6; }
16890 else
16891
16892 # Set am__usable_exec_prefix whether using GNU or Python values,
16893 # since we use that variable for pyexecdir.
16894 if test "x$exec_prefix" = xNONE; then
16895 am__usable_exec_prefix=$am__usable_prefix
16896 else
16897 am__usable_exec_prefix=$exec_prefix
16898 fi
16899 #
16900 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
16902 $as_echo_n "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
16903 if ${am_cv_python_exec_prefix+:} false; then :
16904 $as_echo_n "(cached) " >&6
16905 else
16906 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
16907 fi
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
16909 $as_echo "$am_cv_python_exec_prefix" >&6; }
16910 case $am_cv_python_exec_prefix in
16911 $am__usable_exec_prefix*)
16912 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
16913 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
16914 ;;
16915 *)
16916 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
16917 ;;
16918 esac
16919 else # using GNU $exec_prefix, not python sys.exec_prefix
16920 am_python_exec_prefix_subst='${exec_prefix}'
16921 am_python_exec_prefix=$am_python_exec_prefix_subst
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
16923 $as_echo_n "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
16925 $as_echo "$am_python_exec_prefix" >&6; }
16926 fi
16927 fi
16928 fi
16929
16930 # Substituting python_exec_prefix_subst.
16931 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
16932
16933
16934 # Factor out some code duplication into this shell variable.
16935 am_python_setup_sysconfig="\
16936 import sys
16937 # Prefer sysconfig over distutils.sysconfig, for better compatibility
16938 # with python 3.x. See automake bug#10227.
16939 try:
16940 import sysconfig
16941 except ImportError:
16942 can_use_sysconfig = 0
16943 else:
16944 can_use_sysconfig = 1
16945 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16946 # <https://github.com/pypa/virtualenv/issues/118>
16947 try:
16948 from platform import python_implementation
16949 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16950 can_use_sysconfig = 0
16951 except ImportError:
16952 pass"
16953
16954
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
16956 $as_echo_n "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
16957 if ${am_cv_python_pythondir+:} false; then :
16958 $as_echo_n "(cached) " >&6
16959 else
16960 if test "x$am_cv_python_prefix" = x; then
16961 am_py_prefix=$am__usable_prefix
16962 else
16963 am_py_prefix=$am_cv_python_prefix
16964 fi
16965 am_cv_python_pythondir=`$PYTHON -c "
16966 $am_python_setup_sysconfig
16967 if can_use_sysconfig:
16968 if hasattr(sysconfig, 'get_default_scheme'):
16969 scheme = sysconfig.get_default_scheme()
16970 else:
16971 scheme = sysconfig._get_default_scheme()
16972 if scheme == 'posix_local':
16973 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
16974 scheme = 'posix_prefix'
16975 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
16976 else:
16977 from distutils import sysconfig
16978 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16979 sys.stdout.write(sitedir)"`
16980 #
16981 case $am_cv_python_pythondir in
16982 $am_py_prefix*)
16983 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16984 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
16985 ;;
16986 *)
16987 case $am_py_prefix in
16988 /usr|/System*) ;;
16989 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
16990 ;;
16991 esac
16992 ;;
16993 esac
16994
16995 fi
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16997 $as_echo "$am_cv_python_pythondir" >&6; }
16998 pythondir=$am_cv_python_pythondir
16999
17000
17001 pkgpythondir=\${pythondir}/$PACKAGE
17002
17003
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
17005 $as_echo_n "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
17006 if ${am_cv_python_pyexecdir+:} false; then :
17007 $as_echo_n "(cached) " >&6
17008 else
17009 if test "x$am_cv_python_exec_prefix" = x; then
17010 am_py_exec_prefix=$am__usable_exec_prefix
17011 else
17012 am_py_exec_prefix=$am_cv_python_exec_prefix
17013 fi
17014 am_cv_python_pyexecdir=`$PYTHON -c "
17015 $am_python_setup_sysconfig
17016 if can_use_sysconfig:
17017 if hasattr(sysconfig, 'get_default_scheme'):
17018 scheme = sysconfig.get_default_scheme()
17019 else:
17020 scheme = sysconfig._get_default_scheme()
17021 if scheme == 'posix_local':
17022 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
17023 scheme = 'posix_prefix'
17024 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
17025 else:
17026 from distutils import sysconfig
17027 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
17028 sys.stdout.write(sitedir)"`
17029 #
17030 case $am_cv_python_pyexecdir in
17031 $am_py_exec_prefix*)
17032 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17033 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
17034 ;;
17035 *)
17036 case $am_py_exec_prefix in
17037 /usr|/System*) ;;
17038 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
17039 ;;
17040 esac
17041 ;;
17042 esac
17043
17044 fi
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17046 $as_echo "$am_cv_python_pyexecdir" >&6; }
17047 pyexecdir=$am_cv_python_pyexecdir
17048
17049
17050 pkgpyexecdir=\${pyexecdir}/$PACKAGE
17051
17052
17053 have_python=yes
17054 fi
17055
17056 else
17057 have_python=no
17058 fi
17059
17060 if test "x$have_python" = "xyes"; then :
17061
17062 PYTHON_INC=`$PYTHON -c 'import sys; import sysconfig; sys.stdout.write(sysconfig.get_path("include"))'`
17063 as_ac_File=`$as_echo "ac_cv_file_"${PYTHON_INC}/Python.h"" | $as_tr_sh`
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"${PYTHON_INC}/Python.h\"" >&5
17065 $as_echo_n "checking for \"${PYTHON_INC}/Python.h\"... " >&6; }
17066 if eval \${$as_ac_File+:} false; then :
17067 $as_echo_n "(cached) " >&6
17068 else
17069 test "$cross_compiling" = yes &&
17070 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17071 if test -r ""${PYTHON_INC}/Python.h""; then
17072 eval "$as_ac_File=yes"
17073 else
17074 eval "$as_ac_File=no"
17075 fi
17076 fi
17077 eval ac_res=\$$as_ac_File
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17079 $as_echo "$ac_res" >&6; }
17080 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17081 PYMUSIC_CPPFLAGS="-I${PYTHON_INC}"; PYBUFFER_CPPFLAGS="-I${PYTHON_INC}"
17082 else
17083 have_python=no
17084 fi
17085
17086 # This replaces pyexecdir since Automake 1.16 has a bug which concatenates
17087 # the prefix (which might be local) and the platlib (might might start with local)
17088 PYTHON_EXECDIR=`$PYTHON -c 'import sys; import sysconfig; sys.stdout.write(sysconfig.get_path("platlib"))'`
17089
17090 fi
17091
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build PyMUSIC" >&5
17093 $as_echo_n "checking whether to build PyMUSIC... " >&6; }
17094 if test "x$have_python" = "xyes"; then :
17095
17096 else
17097 if test "x$with_python" = "xyes"; then :
17098 as_fn_error $? "PyMUSIC requested, but Python not found" "$LINENO" 5
17099 fi
17100 fi
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_python" >&5
17102 $as_echo "$have_python" >&6; }
17103
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
17105 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
17106 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
17107 $as_echo_n "(cached) " >&6
17108 else
17109
17110 ax_check_save_flags=$CFLAGS
17111 CFLAGS="$CFLAGS -fno-strict-aliasing"
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17114
17115 int
17116 main ()
17117 {
17118
17119 ;
17120 return 0;
17121 }
17122 _ACEOF
17123 if ac_fn_c_try_compile "$LINENO"; then :
17124 ax_cv_check_cflags___fno_strict_aliasing=yes
17125 else
17126 ax_cv_check_cflags___fno_strict_aliasing=no
17127 fi
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 CFLAGS=$ax_check_save_flags
17130 fi
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
17132 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
17133 if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
17134 PYMUSIC_CXXFLAGS="-fno-strict-aliasing"; PYBUFFER_CXXFLAGS="-fno-strict-aliasing"
17135 else
17136 :
17137 fi
17138
17139
17140 PYMUSIC_SUBDIR=""
17141 if test -z "${COND_USE_MPI_TRUE}"; then
17142
17143 # FIXME: this means that --without-python make will not recurse into pymusic subdir
17144 if test "x$have_python" = "xyes"; then
17145 MUSICCONFIGDIR="music-config"
17146 PYMUSIC_SUBDIR="pymusic"
17147 fi
17148
17149 if test "x$have_python" = "xyes"; then
17150 HAVE_PYTHON_TRUE=
17151 HAVE_PYTHON_FALSE='#'
17152 else
17153 HAVE_PYTHON_TRUE='#'
17154 HAVE_PYTHON_FALSE=
17155 fi
17156
17157
17158 # Check whether --enable-deb was given.
17159 if test "${enable_deb+set}" = set; then :
17160 enableval=$enable_deb; case "${enableval}" in
17161 yes) deb_package=true ;;
17162 no) deb_package=false ;;
17163 *) deb_package=true ;;
17164 esac
17165 else
17166 deb_package=false
17167 fi
17168
17169 if test x$deb_package = xtrue; then
17170 DEB_PACKAGE_TRUE=
17171 DEB_PACKAGE_FALSE='#'
17172 else
17173 DEB_PACKAGE_TRUE='#'
17174 DEB_PACKAGE_FALSE=
17175 fi
17176
17177 if test x$deb_package = xtrue; then
17178 PYTHON_EXECDIR="\${exec_prefix}/lib/python3/dist-packages"
17179 fi
17180 # Have files install in the same location as was retried from Python:
17181 # (Standard place is site-packages but Debian uses dist-packages.)
17182 pythondir=${PYTHON_EXECDIR}
17183 pyexecdir=${PYTHON_EXECDIR}
17184
17185 # if Python is found, configure and compile PyMUSIC
17186 if test "x$have_python" = "xyes" ; then
17187 ac_config_files="$ac_config_files pymusic/Makefile"
17188
17189 ac_config_files="$ac_config_files pymusic/examples/Makefile"
17190
17191 ac_config_files="$ac_config_files pymusic/setup.py"
17192
17193 fi
17194
17195 else # not USE_MPI
17196
17197 # The Python portion of MUSIC as well as the Debian package generation
17198 # are MPI dependent
17199
17200 if false; then
17201 HAVE_PYTHON_TRUE=
17202 HAVE_PYTHON_FALSE='#'
17203 else
17204 HAVE_PYTHON_TRUE='#'
17205 HAVE_PYTHON_FALSE=
17206 fi
17207
17208 if false; then
17209 DEB_PACKAGE_TRUE=
17210 DEB_PACKAGE_FALSE='#'
17211 else
17212 DEB_PACKAGE_TRUE='#'
17213 DEB_PACKAGE_FALSE=
17214 fi
17215
17216
17217 fi
17218
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build ROS Toolchain" >&5
17220 $as_echo_n "checking whether to build ROS Toolchain... " >&6; }
17221
17222 # Check whether --with-ros was given.
17223 if test "${with_ros+set}" = set; then :
17224 withval=$with_ros;
17225 fi
17226
17227 ROS_SUBDIR=""
17228 if test "x$with_ros" = "xyes"; then :
17229 ROS_SUBDIR="ros"
17230 else
17231 with_ros=no
17232 fi
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ros" >&5
17234 $as_echo "$with_ros" >&6; }
17235
17236 # if ROS is to be compiled
17237 if test "x$with_ros" = "xyes" ; then
17238 ac_config_files="$ac_config_files ros/Makefile"
17239
17240 ac_config_files="$ac_config_files ros/adapters/Makefile"
17241
17242 ac_config_files="$ac_config_files ros/encoder/Makefile"
17243
17244 ac_config_files="$ac_config_files ros/decoder/Makefile"
17245
17246 fi
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282 if test ! -z "$LAUNCHSTYLE"; then
17283 LAUNCHSTYLE_SET_TRUE=
17284 LAUNCHSTYLE_SET_FALSE='#'
17285 else
17286 LAUNCHSTYLE_SET_TRUE='#'
17287 LAUNCHSTYLE_SET_FALSE=
17288 fi
17289
17290 #AC_SUBST([TEST_SH_LIST])
17291
17292 if test $(uname) = Darwin; then
17293 DARWIN_TRUE=
17294 DARWIN_FALSE='#'
17295 else
17296 DARWIN_TRUE='#'
17297 DARWIN_FALSE=
17298 fi
17299
17300
17301 ac_config_files="$ac_config_files Makefile mpidep/Makefile src/Makefile src/music/music-config.hh src/music/version.hh rudeconfig/Makefile utils/Makefile examples/Makefile testsuite/Makefile testsuite/music_tests testsuite/unittests/catch/Makefile testsuite/sanitytests/Makefile music-config/Makefile music-config/predict_rank.py doc/Makefile extras/Makefile"
17302
17303
17304 cat >confcache <<\_ACEOF
17305 # This file is a shell script that caches the results of configure
17306 # tests run on this system so they can be shared between configure
17307 # scripts and configure runs, see configure's option --config-cache.
17308 # It is not useful on other systems. If it contains results you don't
17309 # want to keep, you may remove or edit it.
17310 #
17311 # config.status only pays attention to the cache file if you give it
17312 # the --recheck option to rerun configure.
17313 #
17314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17316 # following values.
17317
17318 _ACEOF
17319
17320 # The following way of writing the cache mishandles newlines in values,
17321 # but we know of no workaround that is simple, portable, and efficient.
17322 # So, we kill variables containing newlines.
17323 # Ultrix sh set writes to stderr and can't be redirected directly,
17324 # and sets the high bit in the cache file unless we assign to the vars.
17325 (
17326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17327 eval ac_val=\$$ac_var
17328 case $ac_val in #(
17329 *${as_nl}*)
17330 case $ac_var in #(
17331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17333 esac
17334 case $ac_var in #(
17335 _ | IFS | as_nl) ;; #(
17336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17337 *) { eval $ac_var=; unset $ac_var;} ;;
17338 esac ;;
17339 esac
17340 done
17341
17342 (set) 2>&1 |
17343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17344 *${as_nl}ac_space=\ *)
17345 # `set' does not quote correctly, so add quotes: double-quote
17346 # substitution turns \\\\ into \\, and sed turns \\ into \.
17347 sed -n \
17348 "s/'/'\\\\''/g;
17349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17350 ;; #(
17351 *)
17352 # `set' quotes correctly as required by POSIX, so do not add quotes.
17353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17354 ;;
17355 esac |
17356 sort
17357 ) |
17358 sed '
17359 /^ac_cv_env_/b end
17360 t clear
17361 :clear
17362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17363 t end
17364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17365 :end' >>confcache
17366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17367 if test -w "$cache_file"; then
17368 if test "x$cache_file" != "x/dev/null"; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17370 $as_echo "$as_me: updating cache $cache_file" >&6;}
17371 if test ! -f "$cache_file" || test -h "$cache_file"; then
17372 cat confcache >"$cache_file"
17373 else
17374 case $cache_file in #(
17375 */* | ?:*)
17376 mv -f confcache "$cache_file"$$ &&
17377 mv -f "$cache_file"$$ "$cache_file" ;; #(
17378 *)
17379 mv -f confcache "$cache_file" ;;
17380 esac
17381 fi
17382 fi
17383 else
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17386 fi
17387 fi
17388 rm -f confcache
17389
17390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17391 # Let make expand exec_prefix.
17392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17393
17394 DEFS=-DHAVE_CONFIG_H
17395
17396 ac_libobjs=
17397 ac_ltlibobjs=
17398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17399 # 1. Remove the extension, and $U if already installed.
17400 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17401 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17402 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17403 # will be set to the directory where LIBOBJS objects are built.
17404 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17405 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17406 done
17407 LIBOBJS=$ac_libobjs
17408
17409 LTLIBOBJS=$ac_ltlibobjs
17410
17411
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17413 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17414 if test -n "$am_sleep_pid"; then
17415 # Hide warnings about reused PIDs.
17416 wait $am_sleep_pid 2>/dev/null
17417 fi
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17419 $as_echo "done" >&6; }
17420 if test -n "$EXEEXT"; then
17421 am__EXEEXT_TRUE=
17422 am__EXEEXT_FALSE='#'
17423 else
17424 am__EXEEXT_TRUE='#'
17425 am__EXEEXT_FALSE=
17426 fi
17427
17428 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17429 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17431 fi
17432 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17433 as_fn_error $? "conditional \"AMDEP\" was never defined.
17434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17435 fi
17436 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17437 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17439 fi
17440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17441 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17443 fi
17444 if test -z "${COND_USE_MPI_TRUE}" && test -z "${COND_USE_MPI_FALSE}"; then
17445 as_fn_error $? "conditional \"COND_USE_MPI\" was never defined.
17446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17447 fi
17448 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17449 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17451 fi
17452 if test -z "${DEB_PACKAGE_TRUE}" && test -z "${DEB_PACKAGE_FALSE}"; then
17453 as_fn_error $? "conditional \"DEB_PACKAGE\" was never defined.
17454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17455 fi
17456 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17457 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17459 fi
17460 if test -z "${DEB_PACKAGE_TRUE}" && test -z "${DEB_PACKAGE_FALSE}"; then
17461 as_fn_error $? "conditional \"DEB_PACKAGE\" was never defined.
17462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17463 fi
17464 if test -z "${LAUNCHSTYLE_SET_TRUE}" && test -z "${LAUNCHSTYLE_SET_FALSE}"; then
17465 as_fn_error $? "conditional \"LAUNCHSTYLE_SET\" was never defined.
17466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17467 fi
17468 if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
17469 as_fn_error $? "conditional \"DARWIN\" was never defined.
17470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17471 fi
17472
17473 : "${CONFIG_STATUS=./config.status}"
17474 ac_write_fail=0
17475 ac_clean_files_save=$ac_clean_files
17476 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17478 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17479 as_write_fail=0
17480 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17481 #! $SHELL
17482 # Generated by $as_me.
17483 # Run this file to recreate the current configuration.
17484 # Compiler output produced by configure, useful for debugging
17485 # configure, is in config.log if it exists.
17486
17487 debug=false
17488 ac_cs_recheck=false
17489 ac_cs_silent=false
17490
17491 SHELL=\${CONFIG_SHELL-$SHELL}
17492 export SHELL
17493 _ASEOF
17494 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17495 ## -------------------- ##
17496 ## M4sh Initialization. ##
17497 ## -------------------- ##
17498
17499 # Be more Bourne compatible
17500 DUALCASE=1; export DUALCASE # for MKS sh
17501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17502 emulate sh
17503 NULLCMD=:
17504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17505 # is contrary to our usage. Disable this feature.
17506 alias -g '${1+"$@"}'='"$@"'
17507 setopt NO_GLOB_SUBST
17508 else
17509 case `(set -o) 2>/dev/null` in #(
17510 *posix*) :
17511 set -o posix ;; #(
17512 *) :
17513 ;;
17514 esac
17515 fi
17516
17517
17518 as_nl='
17519 '
17520 export as_nl
17521 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17522 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17525 # Prefer a ksh shell builtin over an external printf program on Solaris,
17526 # but without wasting forks for bash or zsh.
17527 if test -z "$BASH_VERSION$ZSH_VERSION" \
17528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17529 as_echo='print -r --'
17530 as_echo_n='print -rn --'
17531 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17532 as_echo='printf %s\n'
17533 as_echo_n='printf %s'
17534 else
17535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17536 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17537 as_echo_n='/usr/ucb/echo -n'
17538 else
17539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17540 as_echo_n_body='eval
17541 arg=$1;
17542 case $arg in #(
17543 *"$as_nl"*)
17544 expr "X$arg" : "X\\(.*\\)$as_nl";
17545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17546 esac;
17547 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17548 '
17549 export as_echo_n_body
17550 as_echo_n='sh -c $as_echo_n_body as_echo'
17551 fi
17552 export as_echo_body
17553 as_echo='sh -c $as_echo_body as_echo'
17554 fi
17555
17556 # The user is always right.
17557 if test "${PATH_SEPARATOR+set}" != set; then
17558 PATH_SEPARATOR=:
17559 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17560 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17561 PATH_SEPARATOR=';'
17562 }
17563 fi
17564
17565
17566 # IFS
17567 # We need space, tab and new line, in precisely that order. Quoting is
17568 # there to prevent editors from complaining about space-tab.
17569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17570 # splitting by setting IFS to empty value.)
17571 IFS=" "" $as_nl"
17572
17573 # Find who we are. Look in the path if we contain no directory separator.
17574 as_myself=
17575 case $0 in #((
17576 *[\\/]* ) as_myself=$0 ;;
17577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17578 for as_dir in $PATH
17579 do
17580 IFS=$as_save_IFS
17581 test -z "$as_dir" && as_dir=.
17582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17583 done
17584 IFS=$as_save_IFS
17585
17586 ;;
17587 esac
17588 # We did not find ourselves, most probably we were run as `sh COMMAND'
17589 # in which case we are not to be found in the path.
17590 if test "x$as_myself" = x; then
17591 as_myself=$0
17592 fi
17593 if test ! -f "$as_myself"; then
17594 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17595 exit 1
17596 fi
17597
17598 # Unset variables that we do not need and which cause bugs (e.g. in
17599 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17600 # suppresses any "Segmentation fault" message there. '((' could
17601 # trigger a bug in pdksh 5.2.14.
17602 for as_var in BASH_ENV ENV MAIL MAILPATH
17603 do eval test x\${$as_var+set} = xset \
17604 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17605 done
17606 PS1='$ '
17607 PS2='> '
17608 PS4='+ '
17609
17610 # NLS nuisances.
17611 LC_ALL=C
17612 export LC_ALL
17613 LANGUAGE=C
17614 export LANGUAGE
17615
17616 # CDPATH.
17617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17618
17619
17620 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17621 # ----------------------------------------
17622 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17623 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17624 # script with STATUS, using 1 if that was 0.
17625 as_fn_error ()
17626 {
17627 as_status=$1; test $as_status -eq 0 && as_status=1
17628 if test "$4"; then
17629 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17630 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17631 fi
17632 $as_echo "$as_me: error: $2" >&2
17633 as_fn_exit $as_status
17634 } # as_fn_error
17635
17636
17637 # as_fn_set_status STATUS
17638 # -----------------------
17639 # Set $? to STATUS, without forking.
17640 as_fn_set_status ()
17641 {
17642 return $1
17643 } # as_fn_set_status
17644
17645 # as_fn_exit STATUS
17646 # -----------------
17647 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17648 as_fn_exit ()
17649 {
17650 set +e
17651 as_fn_set_status $1
17652 exit $1
17653 } # as_fn_exit
17654
17655 # as_fn_unset VAR
17656 # ---------------
17657 # Portably unset VAR.
17658 as_fn_unset ()
17659 {
17660 { eval $1=; unset $1;}
17661 }
17662 as_unset=as_fn_unset
17663 # as_fn_append VAR VALUE
17664 # ----------------------
17665 # Append the text in VALUE to the end of the definition contained in VAR. Take
17666 # advantage of any shell optimizations that allow amortized linear growth over
17667 # repeated appends, instead of the typical quadratic growth present in naive
17668 # implementations.
17669 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17670 eval 'as_fn_append ()
17671 {
17672 eval $1+=\$2
17673 }'
17674 else
17675 as_fn_append ()
17676 {
17677 eval $1=\$$1\$2
17678 }
17679 fi # as_fn_append
17680
17681 # as_fn_arith ARG...
17682 # ------------------
17683 # Perform arithmetic evaluation on the ARGs, and store the result in the
17684 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17685 # must be portable across $(()) and expr.
17686 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17687 eval 'as_fn_arith ()
17688 {
17689 as_val=$(( $* ))
17690 }'
17691 else
17692 as_fn_arith ()
17693 {
17694 as_val=`expr "$@" || test $? -eq 1`
17695 }
17696 fi # as_fn_arith
17697
17698
17699 if expr a : '\(a\)' >/dev/null 2>&1 &&
17700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17701 as_expr=expr
17702 else
17703 as_expr=false
17704 fi
17705
17706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17707 as_basename=basename
17708 else
17709 as_basename=false
17710 fi
17711
17712 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17713 as_dirname=dirname
17714 else
17715 as_dirname=false
17716 fi
17717
17718 as_me=`$as_basename -- "$0" ||
17719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17720 X"$0" : 'X\(//\)$' \| \
17721 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17722 $as_echo X/"$0" |
17723 sed '/^.*\/\([^/][^/]*\)\/*$/{
17724 s//\1/
17725 q
17726 }
17727 /^X\/\(\/\/\)$/{
17728 s//\1/
17729 q
17730 }
17731 /^X\/\(\/\).*/{
17732 s//\1/
17733 q
17734 }
17735 s/.*/./; q'`
17736
17737 # Avoid depending upon Character Ranges.
17738 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17739 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17740 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17741 as_cr_digits='0123456789'
17742 as_cr_alnum=$as_cr_Letters$as_cr_digits
17743
17744 ECHO_C= ECHO_N= ECHO_T=
17745 case `echo -n x` in #(((((
17746 -n*)
17747 case `echo 'xy\c'` in
17748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17749 xy) ECHO_C='\c';;
17750 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17751 ECHO_T=' ';;
17752 esac;;
17753 *)
17754 ECHO_N='-n';;
17755 esac
17756
17757 rm -f conf$$ conf$$.exe conf$$.file
17758 if test -d conf$$.dir; then
17759 rm -f conf$$.dir/conf$$.file
17760 else
17761 rm -f conf$$.dir
17762 mkdir conf$$.dir 2>/dev/null
17763 fi
17764 if (echo >conf$$.file) 2>/dev/null; then
17765 if ln -s conf$$.file conf$$ 2>/dev/null; then
17766 as_ln_s='ln -s'
17767 # ... but there are two gotchas:
17768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17770 # In both cases, we have to default to `cp -pR'.
17771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17772 as_ln_s='cp -pR'
17773 elif ln conf$$.file conf$$ 2>/dev/null; then
17774 as_ln_s=ln
17775 else
17776 as_ln_s='cp -pR'
17777 fi
17778 else
17779 as_ln_s='cp -pR'
17780 fi
17781 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17782 rmdir conf$$.dir 2>/dev/null
17783
17784
17785 # as_fn_mkdir_p
17786 # -------------
17787 # Create "$as_dir" as a directory, including parents if necessary.
17788 as_fn_mkdir_p ()
17789 {
17790
17791 case $as_dir in #(
17792 -*) as_dir=./$as_dir;;
17793 esac
17794 test -d "$as_dir" || eval $as_mkdir_p || {
17795 as_dirs=
17796 while :; do
17797 case $as_dir in #(
17798 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17799 *) as_qdir=$as_dir;;
17800 esac
17801 as_dirs="'$as_qdir' $as_dirs"
17802 as_dir=`$as_dirname -- "$as_dir" ||
17803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17804 X"$as_dir" : 'X\(//\)[^/]' \| \
17805 X"$as_dir" : 'X\(//\)$' \| \
17806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17807 $as_echo X"$as_dir" |
17808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17809 s//\1/
17810 q
17811 }
17812 /^X\(\/\/\)[^/].*/{
17813 s//\1/
17814 q
17815 }
17816 /^X\(\/\/\)$/{
17817 s//\1/
17818 q
17819 }
17820 /^X\(\/\).*/{
17821 s//\1/
17822 q
17823 }
17824 s/.*/./; q'`
17825 test -d "$as_dir" && break
17826 done
17827 test -z "$as_dirs" || eval "mkdir $as_dirs"
17828 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17829
17830
17831 } # as_fn_mkdir_p
17832 if mkdir -p . 2>/dev/null; then
17833 as_mkdir_p='mkdir -p "$as_dir"'
17834 else
17835 test -d ./-p && rmdir ./-p
17836 as_mkdir_p=false
17837 fi
17838
17839
17840 # as_fn_executable_p FILE
17841 # -----------------------
17842 # Test if FILE is an executable regular file.
17843 as_fn_executable_p ()
17844 {
17845 test -f "$1" && test -x "$1"
17846 } # as_fn_executable_p
17847 as_test_x='test -x'
17848 as_executable_p=as_fn_executable_p
17849
17850 # Sed expression to map a string onto a valid CPP name.
17851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17852
17853 # Sed expression to map a string onto a valid variable name.
17854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17855
17856
17857 exec 6>&1
17858 ## ----------------------------------- ##
17859 ## Main body of $CONFIG_STATUS script. ##
17860 ## ----------------------------------- ##
17861 _ASEOF
17862 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17863
17864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17865 # Save the log message, to keep $0 and so on meaningful, and to
17866 # report actual input values of CONFIG_FILES etc. instead of their
17867 # values after options handling.
17868 ac_log="
17869 This file was extended by music $as_me 1.2.1, which was
17870 generated by GNU Autoconf 2.69. Invocation command line was
17871
17872 CONFIG_FILES = $CONFIG_FILES
17873 CONFIG_HEADERS = $CONFIG_HEADERS
17874 CONFIG_LINKS = $CONFIG_LINKS
17875 CONFIG_COMMANDS = $CONFIG_COMMANDS
17876 $ $0 $@
17877
17878 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17879 "
17880
17881 _ACEOF
17882
17883 case $ac_config_files in *"
17884 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17885 esac
17886
17887 case $ac_config_headers in *"
17888 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17889 esac
17890
17891
17892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17893 # Files that config.status was made for.
17894 config_files="$ac_config_files"
17895 config_headers="$ac_config_headers"
17896 config_commands="$ac_config_commands"
17897
17898 _ACEOF
17899
17900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17901 ac_cs_usage="\
17902 \`$as_me' instantiates files and other configuration actions
17903 from templates according to the current configuration. Unless the files
17904 and actions are specified as TAGs, all are instantiated by default.
17905
17906 Usage: $0 [OPTION]... [TAG]...
17907
17908 -h, --help print this help, then exit
17909 -V, --version print version number and configuration settings, then exit
17910 --config print configuration, then exit
17911 -q, --quiet, --silent
17912 do not print progress messages
17913 -d, --debug don't remove temporary files
17914 --recheck update $as_me by reconfiguring in the same conditions
17915 --file=FILE[:TEMPLATE]
17916 instantiate the configuration file FILE
17917 --header=FILE[:TEMPLATE]
17918 instantiate the configuration header FILE
17919
17920 Configuration files:
17921 $config_files
17922
17923 Configuration headers:
17924 $config_headers
17925
17926 Configuration commands:
17927 $config_commands
17928
17929 Report bugs to the package provider."
17930
17931 _ACEOF
17932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17933 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17934 ac_cs_version="\\
17935 music config.status 1.2.1
17936 configured by $0, generated by GNU Autoconf 2.69,
17937 with options \\"\$ac_cs_config\\"
17938
17939 Copyright (C) 2012 Free Software Foundation, Inc.
17940 This config.status script is free software; the Free Software Foundation
17941 gives unlimited permission to copy, distribute and modify it."
17942
17943 ac_pwd='$ac_pwd'
17944 srcdir='$srcdir'
17945 INSTALL='$INSTALL'
17946 MKDIR_P='$MKDIR_P'
17947 AWK='$AWK'
17948 test -n "\$AWK" || AWK=awk
17949 _ACEOF
17950
17951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952 # The default lists apply if the user does not specify any file.
17953 ac_need_defaults=:
17954 while test $# != 0
17955 do
17956 case $1 in
17957 --*=?*)
17958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17960 ac_shift=:
17961 ;;
17962 --*=)
17963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17964 ac_optarg=
17965 ac_shift=:
17966 ;;
17967 *)
17968 ac_option=$1
17969 ac_optarg=$2
17970 ac_shift=shift
17971 ;;
17972 esac
17973
17974 case $ac_option in
17975 # Handling of the options.
17976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17977 ac_cs_recheck=: ;;
17978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17979 $as_echo "$ac_cs_version"; exit ;;
17980 --config | --confi | --conf | --con | --co | --c )
17981 $as_echo "$ac_cs_config"; exit ;;
17982 --debug | --debu | --deb | --de | --d | -d )
17983 debug=: ;;
17984 --file | --fil | --fi | --f )
17985 $ac_shift
17986 case $ac_optarg in
17987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17988 '') as_fn_error $? "missing file argument" ;;
17989 esac
17990 as_fn_append CONFIG_FILES " '$ac_optarg'"
17991 ac_need_defaults=false;;
17992 --header | --heade | --head | --hea )
17993 $ac_shift
17994 case $ac_optarg in
17995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17996 esac
17997 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17998 ac_need_defaults=false;;
17999 --he | --h)
18000 # Conflict between --help and --header
18001 as_fn_error $? "ambiguous option: \`$1'
18002 Try \`$0 --help' for more information.";;
18003 --help | --hel | -h )
18004 $as_echo "$ac_cs_usage"; exit ;;
18005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18007 ac_cs_silent=: ;;
18008
18009 # This is an error.
18010 -*) as_fn_error $? "unrecognized option: \`$1'
18011 Try \`$0 --help' for more information." ;;
18012
18013 *) as_fn_append ac_config_targets " $1"
18014 ac_need_defaults=false ;;
18015
18016 esac
18017 shift
18018 done
18019
18020 ac_configure_extra_args=
18021
18022 if $ac_cs_silent; then
18023 exec 6>/dev/null
18024 ac_configure_extra_args="$ac_configure_extra_args --silent"
18025 fi
18026
18027 _ACEOF
18028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18029 if \$ac_cs_recheck; then
18030 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18031 shift
18032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18033 CONFIG_SHELL='$SHELL'
18034 export CONFIG_SHELL
18035 exec "\$@"
18036 fi
18037
18038 _ACEOF
18039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18040 exec 5>>config.log
18041 {
18042 echo
18043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18044 ## Running $as_me. ##
18045 _ASBOX
18046 $as_echo "$ac_log"
18047 } >&5
18048
18049 _ACEOF
18050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18051 #
18052 # INIT-COMMANDS
18053 #
18054 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18055
18056
18057 # The HP-UX ksh and POSIX shell print the target directory to stdout
18058 # if CDPATH is set.
18059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18060
18061 sed_quote_subst='$sed_quote_subst'
18062 double_quote_subst='$double_quote_subst'
18063 delay_variable_subst='$delay_variable_subst'
18064 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18065 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18066 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18067 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18068 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18069 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18070 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18071 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18072 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18073 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18074 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18075 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18076 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18077 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18078 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18079 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18080 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18081 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18082 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18083 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18084 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18085 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18086 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18087 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18088 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18089 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18090 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18091 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18092 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18093 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18094 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18095 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18096 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18097 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18098 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18099 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18100 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18101 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18102 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18103 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18104 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18105 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18106 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18107 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18108 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18109 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18110 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18111 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18112 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18113 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18114 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18115 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18116 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18117 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18118 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18119 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18120 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18121 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18122 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"`'
18123 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18124 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18125 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18126 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18127 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18128 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18129 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18130 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18131 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18132 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18133 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18134 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18135 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18136 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18137 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18138 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18139 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18140 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18141 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18142 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18143 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18144 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18145 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18146 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18147 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18148 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18149 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18150 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18151 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18152 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18153 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18154 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18155 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18156 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18157 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18158 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18159 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18160 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18161 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18162 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18163 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18164 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18165 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18166 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18167 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18168 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18169 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18170 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18171 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18172 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18173 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18174 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18175 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18176 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18177 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18178 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18179 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18180 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18181 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18182 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18183 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18184 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18185 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18186 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18187 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18188 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18189 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18190 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18191 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18192 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18193 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18194 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18195 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18196 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18197 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18198 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18199 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18200 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18201 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18202 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18203 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18204 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18205 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18206 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18207 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18208 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18209 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18210 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18211 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18212 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18213 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18214 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18215 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18216 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18217 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18218 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18219 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18220 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18221 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18222 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18223 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18224 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18225 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18226 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18227 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18228 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18229 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18230 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18231 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18232 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18233 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18234 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18235 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18236 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18237 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18238 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18239 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18240 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18241 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18242 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18243 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18244 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18245 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18246 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18247 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18248 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18249 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18250 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18251 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18252 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18253
18254 LTCC='$LTCC'
18255 LTCFLAGS='$LTCFLAGS'
18256 compiler='$compiler_DEFAULT'
18257
18258 # A function that is used when there is no print builtin or printf.
18259 func_fallback_echo ()
18260 {
18261 eval 'cat <<_LTECHO_EOF
18262 \$1
18263 _LTECHO_EOF'
18264 }
18265
18266 # Quote evaled strings.
18267 for var in SHELL \
18268 ECHO \
18269 PATH_SEPARATOR \
18270 SED \
18271 GREP \
18272 EGREP \
18273 FGREP \
18274 LD \
18275 NM \
18276 LN_S \
18277 lt_SP2NL \
18278 lt_NL2SP \
18279 reload_flag \
18280 OBJDUMP \
18281 deplibs_check_method \
18282 file_magic_cmd \
18283 file_magic_glob \
18284 want_nocaseglob \
18285 DLLTOOL \
18286 sharedlib_from_linklib_cmd \
18287 AR \
18288 AR_FLAGS \
18289 archiver_list_spec \
18290 STRIP \
18291 RANLIB \
18292 CC \
18293 CFLAGS \
18294 compiler \
18295 lt_cv_sys_global_symbol_pipe \
18296 lt_cv_sys_global_symbol_to_cdecl \
18297 lt_cv_sys_global_symbol_to_import \
18298 lt_cv_sys_global_symbol_to_c_name_address \
18299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18300 lt_cv_nm_interface \
18301 nm_file_list_spec \
18302 lt_cv_truncate_bin \
18303 lt_prog_compiler_no_builtin_flag \
18304 lt_prog_compiler_pic \
18305 lt_prog_compiler_wl \
18306 lt_prog_compiler_static \
18307 lt_cv_prog_compiler_c_o \
18308 need_locks \
18309 MANIFEST_TOOL \
18310 DSYMUTIL \
18311 NMEDIT \
18312 LIPO \
18313 OTOOL \
18314 OTOOL64 \
18315 shrext_cmds \
18316 export_dynamic_flag_spec \
18317 whole_archive_flag_spec \
18318 compiler_needs_object \
18319 with_gnu_ld \
18320 allow_undefined_flag \
18321 no_undefined_flag \
18322 hardcode_libdir_flag_spec \
18323 hardcode_libdir_separator \
18324 exclude_expsyms \
18325 include_expsyms \
18326 file_list_spec \
18327 variables_saved_for_relink \
18328 libname_spec \
18329 library_names_spec \
18330 soname_spec \
18331 install_override_mode \
18332 finish_eval \
18333 old_striplib \
18334 striplib \
18335 compiler_lib_search_dirs \
18336 predep_objects \
18337 postdep_objects \
18338 predeps \
18339 postdeps \
18340 compiler_lib_search_path \
18341 LD_CXX \
18342 reload_flag_CXX \
18343 compiler_CXX \
18344 lt_prog_compiler_no_builtin_flag_CXX \
18345 lt_prog_compiler_pic_CXX \
18346 lt_prog_compiler_wl_CXX \
18347 lt_prog_compiler_static_CXX \
18348 lt_cv_prog_compiler_c_o_CXX \
18349 export_dynamic_flag_spec_CXX \
18350 whole_archive_flag_spec_CXX \
18351 compiler_needs_object_CXX \
18352 with_gnu_ld_CXX \
18353 allow_undefined_flag_CXX \
18354 no_undefined_flag_CXX \
18355 hardcode_libdir_flag_spec_CXX \
18356 hardcode_libdir_separator_CXX \
18357 exclude_expsyms_CXX \
18358 include_expsyms_CXX \
18359 file_list_spec_CXX \
18360 compiler_lib_search_dirs_CXX \
18361 predep_objects_CXX \
18362 postdep_objects_CXX \
18363 predeps_CXX \
18364 postdeps_CXX \
18365 compiler_lib_search_path_CXX; do
18366 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18367 *[\\\\\\\`\\"\\\$]*)
18368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18369 ;;
18370 *)
18371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18372 ;;
18373 esac
18374 done
18375
18376 # Double-quote double-evaled strings.
18377 for var in reload_cmds \
18378 old_postinstall_cmds \
18379 old_postuninstall_cmds \
18380 old_archive_cmds \
18381 extract_expsyms_cmds \
18382 old_archive_from_new_cmds \
18383 old_archive_from_expsyms_cmds \
18384 archive_cmds \
18385 archive_expsym_cmds \
18386 module_cmds \
18387 module_expsym_cmds \
18388 export_symbols_cmds \
18389 prelink_cmds \
18390 postlink_cmds \
18391 postinstall_cmds \
18392 postuninstall_cmds \
18393 finish_cmds \
18394 sys_lib_search_path_spec \
18395 configure_time_dlsearch_path \
18396 configure_time_lt_sys_library_path \
18397 reload_cmds_CXX \
18398 old_archive_cmds_CXX \
18399 old_archive_from_new_cmds_CXX \
18400 old_archive_from_expsyms_cmds_CXX \
18401 archive_cmds_CXX \
18402 archive_expsym_cmds_CXX \
18403 module_cmds_CXX \
18404 module_expsym_cmds_CXX \
18405 export_symbols_cmds_CXX \
18406 prelink_cmds_CXX \
18407 postlink_cmds_CXX; do
18408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18409 *[\\\\\\\`\\"\\\$]*)
18410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18411 ;;
18412 *)
18413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18414 ;;
18415 esac
18416 done
18417
18418 ac_aux_dir='$ac_aux_dir'
18419
18420 # See if we are running on zsh, and set the options that allow our
18421 # commands through without removal of \ escapes INIT.
18422 if test -n "\${ZSH_VERSION+set}"; then
18423 setopt NO_GLOB_SUBST
18424 fi
18425
18426
18427 PACKAGE='$PACKAGE'
18428 VERSION='$VERSION'
18429 RM='$RM'
18430 ofile='$ofile'
18431
18432
18433
18434
18435
18436
18437 _ACEOF
18438
18439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18440
18441 # Handling of arguments.
18442 for ac_config_target in $ac_config_targets
18443 do
18444 case $ac_config_target in
18445 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18446 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18447 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18448 "pymusic/Makefile") CONFIG_FILES="$CONFIG_FILES pymusic/Makefile" ;;
18449 "pymusic/examples/Makefile") CONFIG_FILES="$CONFIG_FILES pymusic/examples/Makefile" ;;
18450 "pymusic/setup.py") CONFIG_FILES="$CONFIG_FILES pymusic/setup.py" ;;
18451 "ros/Makefile") CONFIG_FILES="$CONFIG_FILES ros/Makefile" ;;
18452 "ros/adapters/Makefile") CONFIG_FILES="$CONFIG_FILES ros/adapters/Makefile" ;;
18453 "ros/encoder/Makefile") CONFIG_FILES="$CONFIG_FILES ros/encoder/Makefile" ;;
18454 "ros/decoder/Makefile") CONFIG_FILES="$CONFIG_FILES ros/decoder/Makefile" ;;
18455 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18456 "mpidep/Makefile") CONFIG_FILES="$CONFIG_FILES mpidep/Makefile" ;;
18457 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18458 "src/music/music-config.hh") CONFIG_FILES="$CONFIG_FILES src/music/music-config.hh" ;;
18459 "src/music/version.hh") CONFIG_FILES="$CONFIG_FILES src/music/version.hh" ;;
18460 "rudeconfig/Makefile") CONFIG_FILES="$CONFIG_FILES rudeconfig/Makefile" ;;
18461 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18462 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18463 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18464 "testsuite/music_tests") CONFIG_FILES="$CONFIG_FILES testsuite/music_tests" ;;
18465 "testsuite/unittests/catch/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/unittests/catch/Makefile" ;;
18466 "testsuite/sanitytests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/sanitytests/Makefile" ;;
18467 "music-config/Makefile") CONFIG_FILES="$CONFIG_FILES music-config/Makefile" ;;
18468 "music-config/predict_rank.py") CONFIG_FILES="$CONFIG_FILES music-config/predict_rank.py" ;;
18469 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18470 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
18471
18472 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18473 esac
18474 done
18475
18476
18477 # If the user did not use the arguments to specify the items to instantiate,
18478 # then the envvar interface is used. Set only those that are not.
18479 # We use the long form for the default assignment because of an extremely
18480 # bizarre bug on SunOS 4.1.3.
18481 if $ac_need_defaults; then
18482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18485 fi
18486
18487 # Have a temporary directory for convenience. Make it in the build tree
18488 # simply because there is no reason against having it here, and in addition,
18489 # creating and moving files from /tmp can sometimes cause problems.
18490 # Hook for its removal unless debugging.
18491 # Note that there is a small window in which the directory will not be cleaned:
18492 # after its creation but before its name has been assigned to `$tmp'.
18493 $debug ||
18494 {
18495 tmp= ac_tmp=
18496 trap 'exit_status=$?
18497 : "${ac_tmp:=$tmp}"
18498 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18499 ' 0
18500 trap 'as_fn_exit 1' 1 2 13 15
18501 }
18502 # Create a (secure) tmp directory for tmp files.
18503
18504 {
18505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18506 test -d "$tmp"
18507 } ||
18508 {
18509 tmp=./conf$$-$RANDOM
18510 (umask 077 && mkdir "$tmp")
18511 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18512 ac_tmp=$tmp
18513
18514 # Set up the scripts for CONFIG_FILES section.
18515 # No need to generate them if there are no CONFIG_FILES.
18516 # This happens for instance with `./config.status config.h'.
18517 if test -n "$CONFIG_FILES"; then
18518
18519
18520 ac_cr=`echo X | tr X '\015'`
18521 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18522 # But we know of no other shell where ac_cr would be empty at this
18523 # point, so we can use a bashism as a fallback.
18524 if test "x$ac_cr" = x; then
18525 eval ac_cr=\$\'\\r\'
18526 fi
18527 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18528 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18529 ac_cs_awk_cr='\\r'
18530 else
18531 ac_cs_awk_cr=$ac_cr
18532 fi
18533
18534 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18535 _ACEOF
18536
18537
18538 {
18539 echo "cat >conf$$subs.awk <<_ACEOF" &&
18540 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18541 echo "_ACEOF"
18542 } >conf$$subs.sh ||
18543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18544 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18545 ac_delim='%!_!# '
18546 for ac_last_try in false false false false false :; do
18547 . ./conf$$subs.sh ||
18548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18549
18550 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18551 if test $ac_delim_n = $ac_delim_num; then
18552 break
18553 elif $ac_last_try; then
18554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18555 else
18556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18557 fi
18558 done
18559 rm -f conf$$subs.sh
18560
18561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18562 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18563 _ACEOF
18564 sed -n '
18565 h
18566 s/^/S["/; s/!.*/"]=/
18567 p
18568 g
18569 s/^[^!]*!//
18570 :repl
18571 t repl
18572 s/'"$ac_delim"'$//
18573 t delim
18574 :nl
18575 h
18576 s/\(.\{148\}\)..*/\1/
18577 t more1
18578 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18579 p
18580 n
18581 b repl
18582 :more1
18583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18584 p
18585 g
18586 s/.\{148\}//
18587 t nl
18588 :delim
18589 h
18590 s/\(.\{148\}\)..*/\1/
18591 t more2
18592 s/["\\]/\\&/g; s/^/"/; s/$/"/
18593 p
18594 b
18595 :more2
18596 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18597 p
18598 g
18599 s/.\{148\}//
18600 t delim
18601 ' <conf$$subs.awk | sed '
18602 /^[^""]/{
18603 N
18604 s/\n//
18605 }
18606 ' >>$CONFIG_STATUS || ac_write_fail=1
18607 rm -f conf$$subs.awk
18608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18609 _ACAWK
18610 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18611 for (key in S) S_is_set[key] = 1
18612 FS = ""
18613
18614 }
18615 {
18616 line = $ 0
18617 nfields = split(line, field, "@")
18618 substed = 0
18619 len = length(field[1])
18620 for (i = 2; i < nfields; i++) {
18621 key = field[i]
18622 keylen = length(key)
18623 if (S_is_set[key]) {
18624 value = S[key]
18625 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18626 len += length(value) + length(field[++i])
18627 substed = 1
18628 } else
18629 len += 1 + keylen
18630 }
18631
18632 print line
18633 }
18634
18635 _ACAWK
18636 _ACEOF
18637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18638 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18639 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18640 else
18641 cat
18642 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18643 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18644 _ACEOF
18645
18646 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18647 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18648 # trailing colons and then remove the whole line if VPATH becomes empty
18649 # (actually we leave an empty line to preserve line numbers).
18650 if test "x$srcdir" = x.; then
18651 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18652 h
18653 s///
18654 s/^/:/
18655 s/[ ]*$/:/
18656 s/:\$(srcdir):/:/g
18657 s/:\${srcdir}:/:/g
18658 s/:@srcdir@:/:/g
18659 s/^:*//
18660 s/:*$//
18661 x
18662 s/\(=[ ]*\).*/\1/
18663 G
18664 s/\n//
18665 s/^[^=]*=[ ]*$//
18666 }'
18667 fi
18668
18669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18670 fi # test -n "$CONFIG_FILES"
18671
18672 # Set up the scripts for CONFIG_HEADERS section.
18673 # No need to generate them if there are no CONFIG_HEADERS.
18674 # This happens for instance with `./config.status Makefile'.
18675 if test -n "$CONFIG_HEADERS"; then
18676 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18677 BEGIN {
18678 _ACEOF
18679
18680 # Transform confdefs.h into an awk script `defines.awk', embedded as
18681 # here-document in config.status, that substitutes the proper values into
18682 # config.h.in to produce config.h.
18683
18684 # Create a delimiter string that does not exist in confdefs.h, to ease
18685 # handling of long lines.
18686 ac_delim='%!_!# '
18687 for ac_last_try in false false :; do
18688 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18689 if test -z "$ac_tt"; then
18690 break
18691 elif $ac_last_try; then
18692 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18693 else
18694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18695 fi
18696 done
18697
18698 # For the awk script, D is an array of macro values keyed by name,
18699 # likewise P contains macro parameters if any. Preserve backslash
18700 # newline sequences.
18701
18702 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18703 sed -n '
18704 s/.\{148\}/&'"$ac_delim"'/g
18705 t rset
18706 :rset
18707 s/^[ ]*#[ ]*define[ ][ ]*/ /
18708 t def
18709 d
18710 :def
18711 s/\\$//
18712 t bsnl
18713 s/["\\]/\\&/g
18714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18715 D["\1"]=" \3"/p
18716 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18717 d
18718 :bsnl
18719 s/["\\]/\\&/g
18720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18721 D["\1"]=" \3\\\\\\n"\\/p
18722 t cont
18723 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18724 t cont
18725 d
18726 :cont
18727 n
18728 s/.\{148\}/&'"$ac_delim"'/g
18729 t clear
18730 :clear
18731 s/\\$//
18732 t bsnlc
18733 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18734 d
18735 :bsnlc
18736 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18737 b cont
18738 ' <confdefs.h | sed '
18739 s/'"$ac_delim"'/"\\\
18740 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18741
18742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18743 for (key in D) D_is_set[key] = 1
18744 FS = ""
18745 }
18746 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18747 line = \$ 0
18748 split(line, arg, " ")
18749 if (arg[1] == "#") {
18750 defundef = arg[2]
18751 mac1 = arg[3]
18752 } else {
18753 defundef = substr(arg[1], 2)
18754 mac1 = arg[2]
18755 }
18756 split(mac1, mac2, "(") #)
18757 macro = mac2[1]
18758 prefix = substr(line, 1, index(line, defundef) - 1)
18759 if (D_is_set[macro]) {
18760 # Preserve the white space surrounding the "#".
18761 print prefix "define", macro P[macro] D[macro]
18762 next
18763 } else {
18764 # Replace #undef with comments. This is necessary, for example,
18765 # in the case of _POSIX_SOURCE, which is predefined and required
18766 # on some systems where configure will not decide to define it.
18767 if (defundef == "undef") {
18768 print "/*", prefix defundef, macro, "*/"
18769 next
18770 }
18771 }
18772 }
18773 { print }
18774 _ACAWK
18775 _ACEOF
18776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18777 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18778 fi # test -n "$CONFIG_HEADERS"
18779
18780
18781 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18782 shift
18783 for ac_tag
18784 do
18785 case $ac_tag in
18786 :[FHLC]) ac_mode=$ac_tag; continue;;
18787 esac
18788 case $ac_mode$ac_tag in
18789 :[FHL]*:*);;
18790 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18791 :[FH]-) ac_tag=-:-;;
18792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18793 esac
18794 ac_save_IFS=$IFS
18795 IFS=:
18796 set x $ac_tag
18797 IFS=$ac_save_IFS
18798 shift
18799 ac_file=$1
18800 shift
18801
18802 case $ac_mode in
18803 :L) ac_source=$1;;
18804 :[FH])
18805 ac_file_inputs=
18806 for ac_f
18807 do
18808 case $ac_f in
18809 -) ac_f="$ac_tmp/stdin";;
18810 *) # Look for the file first in the build tree, then in the source tree
18811 # (if the path is not absolute). The absolute path cannot be DOS-style,
18812 # because $ac_f cannot contain `:'.
18813 test -f "$ac_f" ||
18814 case $ac_f in
18815 [\\/$]*) false;;
18816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18817 esac ||
18818 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18819 esac
18820 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18821 as_fn_append ac_file_inputs " '$ac_f'"
18822 done
18823
18824 # Let's still pretend it is `configure' which instantiates (i.e., don't
18825 # use $as_me), people would be surprised to read:
18826 # /* config.h. Generated by config.status. */
18827 configure_input='Generated from '`
18828 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18829 `' by configure.'
18830 if test x"$ac_file" != x-; then
18831 configure_input="$ac_file. $configure_input"
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18833 $as_echo "$as_me: creating $ac_file" >&6;}
18834 fi
18835 # Neutralize special characters interpreted by sed in replacement strings.
18836 case $configure_input in #(
18837 *\&* | *\|* | *\\* )
18838 ac_sed_conf_input=`$as_echo "$configure_input" |
18839 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18840 *) ac_sed_conf_input=$configure_input;;
18841 esac
18842
18843 case $ac_tag in
18844 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18846 esac
18847 ;;
18848 esac
18849
18850 ac_dir=`$as_dirname -- "$ac_file" ||
18851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18852 X"$ac_file" : 'X\(//\)[^/]' \| \
18853 X"$ac_file" : 'X\(//\)$' \| \
18854 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18855 $as_echo X"$ac_file" |
18856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18857 s//\1/
18858 q
18859 }
18860 /^X\(\/\/\)[^/].*/{
18861 s//\1/
18862 q
18863 }
18864 /^X\(\/\/\)$/{
18865 s//\1/
18866 q
18867 }
18868 /^X\(\/\).*/{
18869 s//\1/
18870 q
18871 }
18872 s/.*/./; q'`
18873 as_dir="$ac_dir"; as_fn_mkdir_p
18874 ac_builddir=.
18875
18876 case "$ac_dir" in
18877 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18878 *)
18879 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18880 # A ".." for each directory in $ac_dir_suffix.
18881 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18882 case $ac_top_builddir_sub in
18883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18885 esac ;;
18886 esac
18887 ac_abs_top_builddir=$ac_pwd
18888 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18889 # for backward compatibility:
18890 ac_top_builddir=$ac_top_build_prefix
18891
18892 case $srcdir in
18893 .) # We are building in place.
18894 ac_srcdir=.
18895 ac_top_srcdir=$ac_top_builddir_sub
18896 ac_abs_top_srcdir=$ac_pwd ;;
18897 [\\/]* | ?:[\\/]* ) # Absolute name.
18898 ac_srcdir=$srcdir$ac_dir_suffix;
18899 ac_top_srcdir=$srcdir
18900 ac_abs_top_srcdir=$srcdir ;;
18901 *) # Relative name.
18902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18903 ac_top_srcdir=$ac_top_build_prefix$srcdir
18904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18905 esac
18906 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18907
18908
18909 case $ac_mode in
18910 :F)
18911 #
18912 # CONFIG_FILE
18913 #
18914
18915 case $INSTALL in
18916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18917 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18918 esac
18919 ac_MKDIR_P=$MKDIR_P
18920 case $MKDIR_P in
18921 [\\/$]* | ?:[\\/]* ) ;;
18922 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18923 esac
18924 _ACEOF
18925
18926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18927 # If the template does not know about datarootdir, expand it.
18928 # FIXME: This hack should be removed a few years after 2.60.
18929 ac_datarootdir_hack=; ac_datarootdir_seen=
18930 ac_sed_dataroot='
18931 /datarootdir/ {
18932 p
18933 q
18934 }
18935 /@datadir@/p
18936 /@docdir@/p
18937 /@infodir@/p
18938 /@localedir@/p
18939 /@mandir@/p'
18940 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18941 *datarootdir*) ac_datarootdir_seen=yes;;
18942 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18944 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18945 _ACEOF
18946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18947 ac_datarootdir_hack='
18948 s&@datadir@&$datadir&g
18949 s&@docdir@&$docdir&g
18950 s&@infodir@&$infodir&g
18951 s&@localedir@&$localedir&g
18952 s&@mandir@&$mandir&g
18953 s&\\\${datarootdir}&$datarootdir&g' ;;
18954 esac
18955 _ACEOF
18956
18957 # Neutralize VPATH when `$srcdir' = `.'.
18958 # Shell code in configure.ac might set extrasub.
18959 # FIXME: do we really want to maintain this feature?
18960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18961 ac_sed_extra="$ac_vpsub
18962 $extrasub
18963 _ACEOF
18964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18965 :t
18966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18967 s|@configure_input@|$ac_sed_conf_input|;t t
18968 s&@top_builddir@&$ac_top_builddir_sub&;t t
18969 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18970 s&@srcdir@&$ac_srcdir&;t t
18971 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18972 s&@top_srcdir@&$ac_top_srcdir&;t t
18973 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18974 s&@builddir@&$ac_builddir&;t t
18975 s&@abs_builddir@&$ac_abs_builddir&;t t
18976 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18977 s&@INSTALL@&$ac_INSTALL&;t t
18978 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18979 $ac_datarootdir_hack
18980 "
18981 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18982 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18983
18984 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18985 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18987 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18989 which seems to be undefined. Please make sure it is defined" >&5
18990 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18991 which seems to be undefined. Please make sure it is defined" >&2;}
18992
18993 rm -f "$ac_tmp/stdin"
18994 case $ac_file in
18995 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18996 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18997 esac \
18998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18999 ;;
19000 :H)
19001 #
19002 # CONFIG_HEADER
19003 #
19004 if test x"$ac_file" != x-; then
19005 {
19006 $as_echo "/* $configure_input */" \
19007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19008 } >"$ac_tmp/config.h" \
19009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19010 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19012 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19013 else
19014 rm -f "$ac_file"
19015 mv "$ac_tmp/config.h" "$ac_file" \
19016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19017 fi
19018 else
19019 $as_echo "/* $configure_input */" \
19020 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19021 || as_fn_error $? "could not create -" "$LINENO" 5
19022 fi
19023 # Compute "$ac_file"'s index in $config_headers.
19024 _am_arg="$ac_file"
19025 _am_stamp_count=1
19026 for _am_header in $config_headers :; do
19027 case $_am_header in
19028 $_am_arg | $_am_arg:* )
19029 break ;;
19030 * )
19031 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19032 esac
19033 done
19034 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19035 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19036 X"$_am_arg" : 'X\(//\)[^/]' \| \
19037 X"$_am_arg" : 'X\(//\)$' \| \
19038 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19039 $as_echo X"$_am_arg" |
19040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19041 s//\1/
19042 q
19043 }
19044 /^X\(\/\/\)[^/].*/{
19045 s//\1/
19046 q
19047 }
19048 /^X\(\/\/\)$/{
19049 s//\1/
19050 q
19051 }
19052 /^X\(\/\).*/{
19053 s//\1/
19054 q
19055 }
19056 s/.*/./; q'`/stamp-h$_am_stamp_count
19057 ;;
19058
19059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19060 $as_echo "$as_me: executing $ac_file commands" >&6;}
19061 ;;
19062 esac
19063
19064
19065 case $ac_file$ac_mode in
19066 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19067 # Older Autoconf quotes --file arguments for eval, but not when files
19068 # are listed without --file. Let's play safe and only enable the eval
19069 # if we detect the quoting.
19070 # TODO: see whether this extra hack can be removed once we start
19071 # requiring Autoconf 2.70 or later.
19072 case $CONFIG_FILES in #(
19073 *\'*) :
19074 eval set x "$CONFIG_FILES" ;; #(
19075 *) :
19076 set x $CONFIG_FILES ;; #(
19077 *) :
19078 ;;
19079 esac
19080 shift
19081 # Used to flag and report bootstrapping failures.
19082 am_rc=0
19083 for am_mf
19084 do
19085 # Strip MF so we end up with the name of the file.
19086 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19087 # Check whether this is an Automake generated Makefile which includes
19088 # dependency-tracking related rules and includes.
19089 # Grep'ing the whole file directly is not great: AIX grep has a line
19090 # limit of 2048, but all sed's we know have understand at least 4000.
19091 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19092 || continue
19093 am_dirpart=`$as_dirname -- "$am_mf" ||
19094 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19095 X"$am_mf" : 'X\(//\)[^/]' \| \
19096 X"$am_mf" : 'X\(//\)$' \| \
19097 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19098 $as_echo X"$am_mf" |
19099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19100 s//\1/
19101 q
19102 }
19103 /^X\(\/\/\)[^/].*/{
19104 s//\1/
19105 q
19106 }
19107 /^X\(\/\/\)$/{
19108 s//\1/
19109 q
19110 }
19111 /^X\(\/\).*/{
19112 s//\1/
19113 q
19114 }
19115 s/.*/./; q'`
19116 am_filepart=`$as_basename -- "$am_mf" ||
19117 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19118 X"$am_mf" : 'X\(//\)$' \| \
19119 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19120 $as_echo X/"$am_mf" |
19121 sed '/^.*\/\([^/][^/]*\)\/*$/{
19122 s//\1/
19123 q
19124 }
19125 /^X\/\(\/\/\)$/{
19126 s//\1/
19127 q
19128 }
19129 /^X\/\(\/\).*/{
19130 s//\1/
19131 q
19132 }
19133 s/.*/./; q'`
19134 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19135 && sed -e '/# am--include-marker/d' "$am_filepart" \
19136 | $MAKE -f - am--depfiles" >&5
19137 (cd "$am_dirpart" \
19138 && sed -e '/# am--include-marker/d' "$am_filepart" \
19139 | $MAKE -f - am--depfiles) >&5 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } || am_rc=$?
19143 done
19144 if test $am_rc -ne 0; then
19145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19147 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19148 for automatic dependency tracking. If GNU make was not used, consider
19149 re-running the configure script with MAKE=\"gmake\" (or whatever is
19150 necessary). You can also try re-running configure with the
19151 '--disable-dependency-tracking' option to at least be able to build
19152 the package (albeit without support for automatic dependency tracking).
19153 See \`config.log' for more details" "$LINENO" 5; }
19154 fi
19155 { am_dirpart=; unset am_dirpart;}
19156 { am_filepart=; unset am_filepart;}
19157 { am_mf=; unset am_mf;}
19158 { am_rc=; unset am_rc;}
19159 rm -f conftest-deps.mk
19160 }
19161 ;;
19162 "libtool":C)
19163
19164 # See if we are running on zsh, and set the options that allow our
19165 # commands through without removal of \ escapes.
19166 if test -n "${ZSH_VERSION+set}"; then
19167 setopt NO_GLOB_SUBST
19168 fi
19169
19170 cfgfile=${ofile}T
19171 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19172 $RM "$cfgfile"
19173
19174 cat <<_LT_EOF >> "$cfgfile"
19175 #! $SHELL
19176 # Generated automatically by $as_me ($PACKAGE) $VERSION
19177 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19178
19179 # Provide generalized library-building support services.
19180 # Written by Gordon Matzigkeit, 1996
19181
19182 # Copyright (C) 2014 Free Software Foundation, Inc.
19183 # This is free software; see the source for copying conditions. There is NO
19184 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19185
19186 # GNU Libtool is free software; you can redistribute it and/or modify
19187 # it under the terms of the GNU General Public License as published by
19188 # the Free Software Foundation; either version 2 of of the License, or
19189 # (at your option) any later version.
19190 #
19191 # As a special exception to the GNU General Public License, if you
19192 # distribute this file as part of a program or library that is built
19193 # using GNU Libtool, you may include this file under the same
19194 # distribution terms that you use for the rest of that program.
19195 #
19196 # GNU Libtool is distributed in the hope that it will be useful, but
19197 # WITHOUT ANY WARRANTY; without even the implied warranty of
19198 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19199 # GNU General Public License for more details.
19200 #
19201 # You should have received a copy of the GNU General Public License
19202 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19203
19204
19205 # The names of the tagged configurations supported by this script.
19206 available_tags='CXX '
19207
19208 # Configured defaults for sys_lib_dlsearch_path munging.
19209 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19210
19211 # ### BEGIN LIBTOOL CONFIG
19212
19213 # Which release of libtool.m4 was used?
19214 macro_version=$macro_version
19215 macro_revision=$macro_revision
19216
19217 # Whether or not to build shared libraries.
19218 build_libtool_libs=$enable_shared
19219
19220 # Whether or not to build static libraries.
19221 build_old_libs=$enable_static
19222
19223 # What type of objects to build.
19224 pic_mode=$pic_mode
19225
19226 # Whether or not to optimize for fast installation.
19227 fast_install=$enable_fast_install
19228
19229 # Shared archive member basename,for filename based shared library versioning on AIX.
19230 shared_archive_member_spec=$shared_archive_member_spec
19231
19232 # Shell to use when invoking shell scripts.
19233 SHELL=$lt_SHELL
19234
19235 # An echo program that protects backslashes.
19236 ECHO=$lt_ECHO
19237
19238 # The PATH separator for the build system.
19239 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19240
19241 # The host system.
19242 host_alias=$host_alias
19243 host=$host
19244 host_os=$host_os
19245
19246 # The build system.
19247 build_alias=$build_alias
19248 build=$build
19249 build_os=$build_os
19250
19251 # A sed program that does not truncate output.
19252 SED=$lt_SED
19253
19254 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19255 Xsed="\$SED -e 1s/^X//"
19256
19257 # A grep program that handles long lines.
19258 GREP=$lt_GREP
19259
19260 # An ERE matcher.
19261 EGREP=$lt_EGREP
19262
19263 # A literal string matcher.
19264 FGREP=$lt_FGREP
19265
19266 # A BSD- or MS-compatible name lister.
19267 NM=$lt_NM
19268
19269 # Whether we need soft or hard links.
19270 LN_S=$lt_LN_S
19271
19272 # What is the maximum length of a command?
19273 max_cmd_len=$max_cmd_len
19274
19275 # Object file suffix (normally "o").
19276 objext=$ac_objext
19277
19278 # Executable file suffix (normally "").
19279 exeext=$exeext
19280
19281 # whether the shell understands "unset".
19282 lt_unset=$lt_unset
19283
19284 # turn spaces into newlines.
19285 SP2NL=$lt_lt_SP2NL
19286
19287 # turn newlines into spaces.
19288 NL2SP=$lt_lt_NL2SP
19289
19290 # convert \$build file names to \$host format.
19291 to_host_file_cmd=$lt_cv_to_host_file_cmd
19292
19293 # convert \$build files to toolchain format.
19294 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19295
19296 # An object symbol dumper.
19297 OBJDUMP=$lt_OBJDUMP
19298
19299 # Method to check whether dependent libraries are shared objects.
19300 deplibs_check_method=$lt_deplibs_check_method
19301
19302 # Command to use when deplibs_check_method = "file_magic".
19303 file_magic_cmd=$lt_file_magic_cmd
19304
19305 # How to find potential files when deplibs_check_method = "file_magic".
19306 file_magic_glob=$lt_file_magic_glob
19307
19308 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19309 want_nocaseglob=$lt_want_nocaseglob
19310
19311 # DLL creation program.
19312 DLLTOOL=$lt_DLLTOOL
19313
19314 # Command to associate shared and link libraries.
19315 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19316
19317 # The archiver.
19318 AR=$lt_AR
19319
19320 # Flags to create an archive.
19321 AR_FLAGS=$lt_AR_FLAGS
19322
19323 # How to feed a file listing to the archiver.
19324 archiver_list_spec=$lt_archiver_list_spec
19325
19326 # A symbol stripping program.
19327 STRIP=$lt_STRIP
19328
19329 # Commands used to install an old-style archive.
19330 RANLIB=$lt_RANLIB
19331 old_postinstall_cmds=$lt_old_postinstall_cmds
19332 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19333
19334 # Whether to use a lock for old archive extraction.
19335 lock_old_archive_extraction=$lock_old_archive_extraction
19336
19337 # A C compiler.
19338 LTCC=$lt_CC
19339
19340 # LTCC compiler flags.
19341 LTCFLAGS=$lt_CFLAGS
19342
19343 # Take the output of nm and produce a listing of raw symbols and C names.
19344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19345
19346 # Transform the output of nm in a proper C declaration.
19347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19348
19349 # Transform the output of nm into a list of symbols to manually relocate.
19350 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19351
19352 # Transform the output of nm in a C name address pair.
19353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19354
19355 # Transform the output of nm in a C name address pair when lib prefix is needed.
19356 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19357
19358 # The name lister interface.
19359 nm_interface=$lt_lt_cv_nm_interface
19360
19361 # Specify filename containing input files for \$NM.
19362 nm_file_list_spec=$lt_nm_file_list_spec
19363
19364 # The root where to search for dependent libraries,and where our libraries should be installed.
19365 lt_sysroot=$lt_sysroot
19366
19367 # Command to truncate a binary pipe.
19368 lt_truncate_bin=$lt_lt_cv_truncate_bin
19369
19370 # The name of the directory that contains temporary libtool files.
19371 objdir=$objdir
19372
19373 # Used to examine libraries when file_magic_cmd begins with "file".
19374 MAGIC_CMD=$MAGIC_CMD
19375
19376 # Must we lock files when doing compilation?
19377 need_locks=$lt_need_locks
19378
19379 # Manifest tool.
19380 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19381
19382 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19383 DSYMUTIL=$lt_DSYMUTIL
19384
19385 # Tool to change global to local symbols on Mac OS X.
19386 NMEDIT=$lt_NMEDIT
19387
19388 # Tool to manipulate fat objects and archives on Mac OS X.
19389 LIPO=$lt_LIPO
19390
19391 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19392 OTOOL=$lt_OTOOL
19393
19394 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19395 OTOOL64=$lt_OTOOL64
19396
19397 # Old archive suffix (normally "a").
19398 libext=$libext
19399
19400 # Shared library suffix (normally ".so").
19401 shrext_cmds=$lt_shrext_cmds
19402
19403 # The commands to extract the exported symbol list from a shared archive.
19404 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19405
19406 # Variables whose values should be saved in libtool wrapper scripts and
19407 # restored at link time.
19408 variables_saved_for_relink=$lt_variables_saved_for_relink
19409
19410 # Do we need the "lib" prefix for modules?
19411 need_lib_prefix=$need_lib_prefix
19412
19413 # Do we need a version for libraries?
19414 need_version=$need_version
19415
19416 # Library versioning type.
19417 version_type=$version_type
19418
19419 # Shared library runtime path variable.
19420 runpath_var=$runpath_var
19421
19422 # Shared library path variable.
19423 shlibpath_var=$shlibpath_var
19424
19425 # Is shlibpath searched before the hard-coded library search path?
19426 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19427
19428 # Format of library name prefix.
19429 libname_spec=$lt_libname_spec
19430
19431 # List of archive names. First name is the real one, the rest are links.
19432 # The last name is the one that the linker finds with -lNAME
19433 library_names_spec=$lt_library_names_spec
19434
19435 # The coded name of the library, if different from the real name.
19436 soname_spec=$lt_soname_spec
19437
19438 # Permission mode override for installation of shared libraries.
19439 install_override_mode=$lt_install_override_mode
19440
19441 # Command to use after installation of a shared archive.
19442 postinstall_cmds=$lt_postinstall_cmds
19443
19444 # Command to use after uninstallation of a shared archive.
19445 postuninstall_cmds=$lt_postuninstall_cmds
19446
19447 # Commands used to finish a libtool library installation in a directory.
19448 finish_cmds=$lt_finish_cmds
19449
19450 # As "finish_cmds", except a single script fragment to be evaled but
19451 # not shown.
19452 finish_eval=$lt_finish_eval
19453
19454 # Whether we should hardcode library paths into libraries.
19455 hardcode_into_libs=$hardcode_into_libs
19456
19457 # Compile-time system search path for libraries.
19458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19459
19460 # Detected run-time system search path for libraries.
19461 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19462
19463 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19464 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19465
19466 # Whether dlopen is supported.
19467 dlopen_support=$enable_dlopen
19468
19469 # Whether dlopen of programs is supported.
19470 dlopen_self=$enable_dlopen_self
19471
19472 # Whether dlopen of statically linked programs is supported.
19473 dlopen_self_static=$enable_dlopen_self_static
19474
19475 # Commands to strip libraries.
19476 old_striplib=$lt_old_striplib
19477 striplib=$lt_striplib
19478
19479
19480 # The linker used to build libraries.
19481 LD=$lt_LD
19482
19483 # How to create reloadable object files.
19484 reload_flag=$lt_reload_flag
19485 reload_cmds=$lt_reload_cmds
19486
19487 # Commands used to build an old-style archive.
19488 old_archive_cmds=$lt_old_archive_cmds
19489
19490 # A language specific compiler.
19491 CC=$lt_compiler
19492
19493 # Is the compiler the GNU compiler?
19494 with_gcc=$GCC
19495
19496 # Compiler flag to turn off builtin functions.
19497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19498
19499 # Additional compiler flags for building library objects.
19500 pic_flag=$lt_lt_prog_compiler_pic
19501
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl
19504
19505 # Compiler flag to prevent dynamic linking.
19506 link_static_flag=$lt_lt_prog_compiler_static
19507
19508 # Does compiler simultaneously support -c and -o options?
19509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19510
19511 # Whether or not to add -lc for building shared libraries.
19512 build_libtool_need_lc=$archive_cmds_need_lc
19513
19514 # Whether or not to disallow shared libs when runtime libs are static.
19515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19516
19517 # Compiler flag to allow reflexive dlopens.
19518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19519
19520 # Compiler flag to generate shared objects directly from archives.
19521 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19522
19523 # Whether the compiler copes with passing no objects directly.
19524 compiler_needs_object=$lt_compiler_needs_object
19525
19526 # Create an old-style archive from a shared archive.
19527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19528
19529 # Create a temporary old-style archive to link instead of a shared archive.
19530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19531
19532 # Commands used to build a shared archive.
19533 archive_cmds=$lt_archive_cmds
19534 archive_expsym_cmds=$lt_archive_expsym_cmds
19535
19536 # Commands used to build a loadable module if different from building
19537 # a shared archive.
19538 module_cmds=$lt_module_cmds
19539 module_expsym_cmds=$lt_module_expsym_cmds
19540
19541 # Whether we are building with GNU ld or not.
19542 with_gnu_ld=$lt_with_gnu_ld
19543
19544 # Flag that allows shared libraries with undefined symbols to be built.
19545 allow_undefined_flag=$lt_allow_undefined_flag
19546
19547 # Flag that enforces no undefined symbols.
19548 no_undefined_flag=$lt_no_undefined_flag
19549
19550 # Flag to hardcode \$libdir into a binary during linking.
19551 # This must work even if \$libdir does not exist
19552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19553
19554 # Whether we need a single "-rpath" flag with a separated argument.
19555 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19556
19557 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19558 # DIR into the resulting binary.
19559 hardcode_direct=$hardcode_direct
19560
19561 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19562 # DIR into the resulting binary and the resulting library dependency is
19563 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19564 # library is relocated.
19565 hardcode_direct_absolute=$hardcode_direct_absolute
19566
19567 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19568 # into the resulting binary.
19569 hardcode_minus_L=$hardcode_minus_L
19570
19571 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19572 # into the resulting binary.
19573 hardcode_shlibpath_var=$hardcode_shlibpath_var
19574
19575 # Set to "yes" if building a shared library automatically hardcodes DIR
19576 # into the library and all subsequent libraries and executables linked
19577 # against it.
19578 hardcode_automatic=$hardcode_automatic
19579
19580 # Set to yes if linker adds runtime paths of dependent libraries
19581 # to runtime path list.
19582 inherit_rpath=$inherit_rpath
19583
19584 # Whether libtool must link a program against all its dependency libraries.
19585 link_all_deplibs=$link_all_deplibs
19586
19587 # Set to "yes" if exported symbols are required.
19588 always_export_symbols=$always_export_symbols
19589
19590 # The commands to list exported symbols.
19591 export_symbols_cmds=$lt_export_symbols_cmds
19592
19593 # Symbols that should not be listed in the preloaded symbols.
19594 exclude_expsyms=$lt_exclude_expsyms
19595
19596 # Symbols that must always be exported.
19597 include_expsyms=$lt_include_expsyms
19598
19599 # Commands necessary for linking programs (against libraries) with templates.
19600 prelink_cmds=$lt_prelink_cmds
19601
19602 # Commands necessary for finishing linking programs.
19603 postlink_cmds=$lt_postlink_cmds
19604
19605 # Specify filename containing input files.
19606 file_list_spec=$lt_file_list_spec
19607
19608 # How to hardcode a shared library path into an executable.
19609 hardcode_action=$hardcode_action
19610
19611 # The directories searched by this compiler when creating a shared library.
19612 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19613
19614 # Dependencies to place before and after the objects being linked to
19615 # create a shared library.
19616 predep_objects=$lt_predep_objects
19617 postdep_objects=$lt_postdep_objects
19618 predeps=$lt_predeps
19619 postdeps=$lt_postdeps
19620
19621 # The library search path used internally by the compiler when linking
19622 # a shared library.
19623 compiler_lib_search_path=$lt_compiler_lib_search_path
19624
19625 # ### END LIBTOOL CONFIG
19626
19627 _LT_EOF
19628
19629 cat <<'_LT_EOF' >> "$cfgfile"
19630
19631 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19632
19633 # func_munge_path_list VARIABLE PATH
19634 # -----------------------------------
19635 # VARIABLE is name of variable containing _space_ separated list of
19636 # directories to be munged by the contents of PATH, which is string
19637 # having a format:
19638 # "DIR[:DIR]:"
19639 # string "DIR[ DIR]" will be prepended to VARIABLE
19640 # ":DIR[:DIR]"
19641 # string "DIR[ DIR]" will be appended to VARIABLE
19642 # "DIRP[:DIRP]::[DIRA:]DIRA"
19643 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19644 # "DIRA[ DIRA]" will be appended to VARIABLE
19645 # "DIR[:DIR]"
19646 # VARIABLE will be replaced by "DIR[ DIR]"
19647 func_munge_path_list ()
19648 {
19649 case x$2 in
19650 x)
19651 ;;
19652 *:)
19653 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19654 ;;
19655 x:*)
19656 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19657 ;;
19658 *::*)
19659 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19660 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19661 ;;
19662 *)
19663 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19664 ;;
19665 esac
19666 }
19667
19668
19669 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19670 func_cc_basename ()
19671 {
19672 for cc_temp in $*""; do
19673 case $cc_temp in
19674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19676 \-*) ;;
19677 *) break;;
19678 esac
19679 done
19680 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19681 }
19682
19683
19684 # ### END FUNCTIONS SHARED WITH CONFIGURE
19685
19686 _LT_EOF
19687
19688 case $host_os in
19689 aix3*)
19690 cat <<\_LT_EOF >> "$cfgfile"
19691 # AIX sometimes has problems with the GCC collect2 program. For some
19692 # reason, if we set the COLLECT_NAMES environment variable, the problems
19693 # vanish in a puff of smoke.
19694 if test set != "${COLLECT_NAMES+set}"; then
19695 COLLECT_NAMES=
19696 export COLLECT_NAMES
19697 fi
19698 _LT_EOF
19699 ;;
19700 esac
19701
19702
19703 ltmain=$ac_aux_dir/ltmain.sh
19704
19705
19706 # We use sed instead of cat because bash on DJGPP gets confused if
19707 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19708 # text mode, it properly converts lines to CR/LF. This bash problem
19709 # is reportedly fixed, but why not run on old versions too?
19710 sed '$q' "$ltmain" >> "$cfgfile" \
19711 || (rm -f "$cfgfile"; exit 1)
19712
19713 mv -f "$cfgfile" "$ofile" ||
19714 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19715 chmod +x "$ofile"
19716
19717
19718 cat <<_LT_EOF >> "$ofile"
19719
19720 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19721
19722 # The linker used to build libraries.
19723 LD=$lt_LD_CXX
19724
19725 # How to create reloadable object files.
19726 reload_flag=$lt_reload_flag_CXX
19727 reload_cmds=$lt_reload_cmds_CXX
19728
19729 # Commands used to build an old-style archive.
19730 old_archive_cmds=$lt_old_archive_cmds_CXX
19731
19732 # A language specific compiler.
19733 CC=$lt_compiler_CXX
19734
19735 # Is the compiler the GNU compiler?
19736 with_gcc=$GCC_CXX
19737
19738 # Compiler flag to turn off builtin functions.
19739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19740
19741 # Additional compiler flags for building library objects.
19742 pic_flag=$lt_lt_prog_compiler_pic_CXX
19743
19744 # How to pass a linker flag through the compiler.
19745 wl=$lt_lt_prog_compiler_wl_CXX
19746
19747 # Compiler flag to prevent dynamic linking.
19748 link_static_flag=$lt_lt_prog_compiler_static_CXX
19749
19750 # Does compiler simultaneously support -c and -o options?
19751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19752
19753 # Whether or not to add -lc for building shared libraries.
19754 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19755
19756 # Whether or not to disallow shared libs when runtime libs are static.
19757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19758
19759 # Compiler flag to allow reflexive dlopens.
19760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19761
19762 # Compiler flag to generate shared objects directly from archives.
19763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19764
19765 # Whether the compiler copes with passing no objects directly.
19766 compiler_needs_object=$lt_compiler_needs_object_CXX
19767
19768 # Create an old-style archive from a shared archive.
19769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19770
19771 # Create a temporary old-style archive to link instead of a shared archive.
19772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19773
19774 # Commands used to build a shared archive.
19775 archive_cmds=$lt_archive_cmds_CXX
19776 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19777
19778 # Commands used to build a loadable module if different from building
19779 # a shared archive.
19780 module_cmds=$lt_module_cmds_CXX
19781 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19782
19783 # Whether we are building with GNU ld or not.
19784 with_gnu_ld=$lt_with_gnu_ld_CXX
19785
19786 # Flag that allows shared libraries with undefined symbols to be built.
19787 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19788
19789 # Flag that enforces no undefined symbols.
19790 no_undefined_flag=$lt_no_undefined_flag_CXX
19791
19792 # Flag to hardcode \$libdir into a binary during linking.
19793 # This must work even if \$libdir does not exist
19794 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19795
19796 # Whether we need a single "-rpath" flag with a separated argument.
19797 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19798
19799 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19800 # DIR into the resulting binary.
19801 hardcode_direct=$hardcode_direct_CXX
19802
19803 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19804 # DIR into the resulting binary and the resulting library dependency is
19805 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19806 # library is relocated.
19807 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19808
19809 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19810 # into the resulting binary.
19811 hardcode_minus_L=$hardcode_minus_L_CXX
19812
19813 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19814 # into the resulting binary.
19815 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19816
19817 # Set to "yes" if building a shared library automatically hardcodes DIR
19818 # into the library and all subsequent libraries and executables linked
19819 # against it.
19820 hardcode_automatic=$hardcode_automatic_CXX
19821
19822 # Set to yes if linker adds runtime paths of dependent libraries
19823 # to runtime path list.
19824 inherit_rpath=$inherit_rpath_CXX
19825
19826 # Whether libtool must link a program against all its dependency libraries.
19827 link_all_deplibs=$link_all_deplibs_CXX
19828
19829 # Set to "yes" if exported symbols are required.
19830 always_export_symbols=$always_export_symbols_CXX
19831
19832 # The commands to list exported symbols.
19833 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19834
19835 # Symbols that should not be listed in the preloaded symbols.
19836 exclude_expsyms=$lt_exclude_expsyms_CXX
19837
19838 # Symbols that must always be exported.
19839 include_expsyms=$lt_include_expsyms_CXX
19840
19841 # Commands necessary for linking programs (against libraries) with templates.
19842 prelink_cmds=$lt_prelink_cmds_CXX
19843
19844 # Commands necessary for finishing linking programs.
19845 postlink_cmds=$lt_postlink_cmds_CXX
19846
19847 # Specify filename containing input files.
19848 file_list_spec=$lt_file_list_spec_CXX
19849
19850 # How to hardcode a shared library path into an executable.
19851 hardcode_action=$hardcode_action_CXX
19852
19853 # The directories searched by this compiler when creating a shared library.
19854 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19855
19856 # Dependencies to place before and after the objects being linked to
19857 # create a shared library.
19858 predep_objects=$lt_predep_objects_CXX
19859 postdep_objects=$lt_postdep_objects_CXX
19860 predeps=$lt_predeps_CXX
19861 postdeps=$lt_postdeps_CXX
19862
19863 # The library search path used internally by the compiler when linking
19864 # a shared library.
19865 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19866
19867 # ### END LIBTOOL TAG CONFIG: CXX
19868 _LT_EOF
19869
19870 ;;
19871
19872 esac
19873 done # for ac_tag
19874
19875
19876 as_fn_exit 0
19877 _ACEOF
19878 ac_clean_files=$ac_clean_files_save
19879
19880 test $ac_write_fail = 0 ||
19881 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19882
19883
19884 # configure is writing to config.log, and then calls config.status.
19885 # config.status does its own redirection, appending to config.log.
19886 # Unfortunately, on DOS this fails, as config.log is still kept open
19887 # by configure, so config.status won't be able to write to it; its
19888 # output is simply discarded. So we exec the FD to /dev/null,
19889 # effectively closing config.log, so it can be properly (re)opened and
19890 # appended to by config.status. When coming back to configure, we
19891 # need to make the FD available again.
19892 if test "$no_create" != yes; then
19893 ac_cs_success=:
19894 ac_config_status_args=
19895 test "$silent" = yes &&
19896 ac_config_status_args="$ac_config_status_args --quiet"
19897 exec 5>/dev/null
19898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19899 exec 5>>config.log
19900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19901 # would make configure fail if this is the last instruction.
19902 $ac_cs_success || as_fn_exit 1
19903 fi
19904 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19906 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19907 fi
19908
19909
19910 if test "$ac_cv_header_GL_glut_h" = "no"; then
19911 { $as_echo "$as_me:${as_lineno-$LINENO}:
19912 NOTE: viewevents will not be built since the GL/glut.h header was not
19913 found on this system. This is no problem unless you plan to
19914 view spiking activity graphically." >&5
19915 $as_echo "$as_me:
19916 NOTE: viewevents will not be built since the GL/glut.h header was not
19917 found on this system. This is no problem unless you plan to
19918 view spiking activity graphically." >&6;}
19919 fi
19920