Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.70 for ncmpcpp 0.9.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020 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 as_nop=:
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else $as_nop
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36
37 # Reset variables that may have inherited troublesome values from
38 # the environment.
39
40 # IFS needs to be set, to space, tab, and newline, in precisely that order.
41 # (If _AS_PATH_WALK were called with IFS unset, it would have the
42 # side effect of setting IFS to empty, thus disabling word splitting.)
43 # Quoting is to prevent editors from complaining about space-tab.
44 as_nl='
45 '
46 export as_nl
47 IFS=" "" $as_nl"
48
49 PS1='$ '
50 PS2='> '
51 PS4='+ '
52
53 # Ensure predictable behavior from utilities with locale-dependent output.
54 LC_ALL=C
55 export LC_ALL
56 LANGUAGE=C
57 export LANGUAGE
58
59 # We cannot yet rely on "unset" to work, but we need these variables
60 # to be unset--not just set to an empty or harmless value--now, to
61 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
62 # also avoids known problems related to "unset" and subshell syntax
63 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65 do eval test \${$as_var+y} \
66 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67 done
68
69 # Ensure that fds 0, 1, and 2 are open.
70 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
73
74 # The user is always right.
75 if ${PATH_SEPARATOR+false} :; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # Find who we are. Look in the path if we contain no directory separator.
85 as_myself=
86 case $0 in #((
87 *[\\/]* ) as_myself=$0 ;;
88 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89 for as_dir in $PATH
90 do
91 IFS=$as_save_IFS
92 case $as_dir in #(((
93 '') as_dir=./ ;;
94 */) ;;
95 *) as_dir=$as_dir/ ;;
96 esac
97 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113
114 # Use a proper internal environment variable to ensure we don't fall
115 # into an infinite loop, continuously re-executing ourselves.
116 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
117 _as_can_reexec=no; export _as_can_reexec;
118 # We cannot yet assume a decent shell, so we have to provide a
119 # neutralization value for shells without unset; and this also
120 # works around shells that cannot unset nonexistent variables.
121 # Preserve -v and -x to the replacement shell.
122 BASH_ENV=/dev/null
123 ENV=/dev/null
124 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
125 case $- in # ((((
126 *v*x* | *x*v* ) as_opts=-vx ;;
127 *v* ) as_opts=-v ;;
128 *x* ) as_opts=-x ;;
129 * ) as_opts= ;;
130 esac
131 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
132 # Admittedly, this is quite paranoid, since all the known shells bail
133 # out after a failed `exec'.
134 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135 exit 255
136 fi
137 # We don't want this to propagate to other subprocesses.
138 { _as_can_reexec=; unset _as_can_reexec;}
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="as_nop=:
141 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else \$as_nop
150 case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac
156 fi
157 "
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
163
164 exitcode=0
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170 then :
171
172 else \$as_nop
173 exitcode=1; echo positional parameters were not saved.
174 fi
175 test x\$exitcode = x0 || exit 1
176 blah=\$(echo \$(echo blah))
177 test x\"\$blah\" = xblah || exit 1
178 test -x / || exit 1"
179 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
180 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
181 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
182 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
183
184 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
185 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
186 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 PATH=/empty FPATH=/empty; export PATH FPATH
189 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
190 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
191 test \$(( 1 + 1 )) = 2 || exit 1"
192 if (eval "$as_required") 2>/dev/null
193 then :
194 as_have_required=yes
195 else $as_nop
196 as_have_required=no
197 fi
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else $as_nop
202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203 as_found=false
204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 do
206 IFS=$as_save_IFS
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
212 as_found=:
213 case $as_dir in #(
214 /*)
215 for as_base in sh bash ksh sh5; do
216 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir$as_base
218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else $as_nop
236 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
240 fi
241 fi
242
243
244 if test "x$CONFIG_SHELL" != x
245 then :
246 export CONFIG_SHELL
247 # We cannot yet assume a decent shell, so we have to provide a
248 # neutralization value for shells without unset; and this also
249 # works around shells that cannot unset nonexistent variables.
250 # Preserve -v and -x to the replacement shell.
251 BASH_ENV=/dev/null
252 ENV=/dev/null
253 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254 case $- in # ((((
255 *v*x* | *x*v* ) as_opts=-vx ;;
256 *v* ) as_opts=-v ;;
257 *x* ) as_opts=-x ;;
258 * ) as_opts= ;;
259 esac
260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261 # Admittedly, this is quite paranoid, since all the known shells bail
262 # out after a failed `exec'.
263 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
264 exit 255
265 fi
266
267 if test x$as_have_required = xno
268 then :
269 printf "%s\n" "$0: This script requires a shell more modern than all"
270 printf "%s\n" "$0: the shells that I found on your system."
271 if test ${ZSH_VERSION+y} ; then
272 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 printf "%s\n" "$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
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320 # as_fn_nop
321 # ---------
322 # Do nothing but, unlike ":", preserve the value of $?.
323 as_fn_nop ()
324 {
325 return $?
326 }
327 as_nop=as_fn_nop
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else $as_nop
397 as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 }
401 fi # as_fn_append
402
403 # as_fn_arith ARG...
404 # ------------------
405 # Perform arithmetic evaluation on the ARGs, and store the result in the
406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
407 # must be portable across $(()) and expr.
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 then :
410 eval 'as_fn_arith ()
411 {
412 as_val=$(( $* ))
413 }'
414 else $as_nop
415 as_fn_arith ()
416 {
417 as_val=`expr "$@" || test $? -eq 1`
418 }
419 fi # as_fn_arith
420
421 # as_fn_nop
422 # ---------
423 # Do nothing but, unlike ":", preserve the value of $?.
424 as_fn_nop ()
425 {
426 return $?
427 }
428 as_nop=as_fn_nop
429
430 # as_fn_error STATUS ERROR [LINENO LOG_FD]
431 # ----------------------------------------
432 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
433 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
434 # script with STATUS, using 1 if that was 0.
435 as_fn_error ()
436 {
437 as_status=$1; test $as_status -eq 0 && as_status=1
438 if test "$4"; then
439 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441 fi
442 printf "%s\n" "$as_me: error: $2" >&2
443 as_fn_exit $as_status
444 } # as_fn_error
445
446 if expr a : '\(a\)' >/dev/null 2>&1 &&
447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
448 as_expr=expr
449 else
450 as_expr=false
451 fi
452
453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 as_basename=basename
455 else
456 as_basename=false
457 fi
458
459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460 as_dirname=dirname
461 else
462 as_dirname=false
463 fi
464
465 as_me=`$as_basename -- "$0" ||
466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
467 X"$0" : 'X\(//\)$' \| \
468 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469 printf "%s\n" X/"$0" |
470 sed '/^.*\/\([^/][^/]*\)\/*$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\/\)$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\).*/{
479 s//\1/
480 q
481 }
482 s/.*/./; q'`
483
484 # Avoid depending upon Character Ranges.
485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
488 as_cr_digits='0123456789'
489 as_cr_alnum=$as_cr_Letters$as_cr_digits
490
491
492 as_lineno_1=$LINENO as_lineno_1a=$LINENO
493 as_lineno_2=$LINENO as_lineno_2a=$LINENO
494 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
495 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
496 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
497 sed -n '
498 p
499 /[$]LINENO/=
500 ' <$as_myself |
501 sed '
502 s/[$]LINENO.*/&-/
503 t lineno
504 b
505 :lineno
506 N
507 :loop
508 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
509 t loop
510 s/-\n.*//
511 ' >$as_me.lineno &&
512 chmod +x "$as_me.lineno" ||
513 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
514
515 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
516 # already done that, so ensure we don't try to do so again and fall
517 # in an infinite loop. This has already happened in practice.
518 _as_can_reexec=no; export _as_can_reexec
519 # Don't try to exec as it changes $[0], causing all sort of problems
520 # (the dirname of $[0] is not the place where we might find the
521 # original and so on. Autoconf is especially sensitive to this).
522 . "./$as_me.lineno"
523 # Exit status is that of the last command.
524 exit
525 }
526
527
528 # Determine whether it's possible to make 'echo' print without a newline.
529 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
530 # for compatibility with existing Makefiles.
531 ECHO_C= ECHO_N= ECHO_T=
532 case `echo -n x` in #(((((
533 -n*)
534 case `echo 'xy\c'` in
535 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
536 xy) ECHO_C='\c';;
537 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
538 ECHO_T=' ';;
539 esac;;
540 *)
541 ECHO_N='-n';;
542 esac
543
544 # For backward compatibility with old third-party macros, we provide
545 # the shell variables $as_echo and $as_echo_n. New code should use
546 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
547 as_echo='printf %s\n'
548 as_echo_n='printf %s'
549
550
551 rm -f conf$$ conf$$.exe conf$$.file
552 if test -d conf$$.dir; then
553 rm -f conf$$.dir/conf$$.file
554 else
555 rm -f conf$$.dir
556 mkdir conf$$.dir 2>/dev/null
557 fi
558 if (echo >conf$$.file) 2>/dev/null; then
559 if ln -s conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s='ln -s'
561 # ... but there are two gotchas:
562 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
563 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
564 # In both cases, we have to default to `cp -pR'.
565 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
566 as_ln_s='cp -pR'
567 elif ln conf$$.file conf$$ 2>/dev/null; then
568 as_ln_s=ln
569 else
570 as_ln_s='cp -pR'
571 fi
572 else
573 as_ln_s='cp -pR'
574 fi
575 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
576 rmdir conf$$.dir 2>/dev/null
577
578 if mkdir -p . 2>/dev/null; then
579 as_mkdir_p='mkdir -p "$as_dir"'
580 else
581 test -d ./-p && rmdir ./-p
582 as_mkdir_p=false
583 fi
584
585 as_test_x='test -x'
586 as_executable_p=as_fn_executable_p
587
588 # Sed expression to map a string onto a valid CPP name.
589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
590
591 # Sed expression to map a string onto a valid variable name.
592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
593
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596
597 test -n "$DJDIR" || exec 7<&0 </dev/null
598 exec 6>&1
599
600 # Name of the host.
601 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
602 # so uname gets run too.
603 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
604
605 #
606 # Initializations.
607 #
608 ac_default_prefix=/usr/local
609 ac_clean_files=
610 ac_config_libobj_dir=.
611 LIBOBJS=
612 cross_compiling=no
613 subdirs=
614 MFLAGS=
615 MAKEFLAGS=
616
617 # Identity of this package.
618 PACKAGE_NAME='ncmpcpp'
619 PACKAGE_TARNAME='ncmpcpp'
620 PACKAGE_VERSION='0.9.2'
621 PACKAGE_STRING='ncmpcpp 0.9.2'
622 PACKAGE_BUGREPORT=''
623 PACKAGE_URL=''
624
625 ac_unique_file="configure.ac"
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 LIBOBJS
662 TAGLIB_CONFIG
663 libcurl_LIBS
664 libcurl_CFLAGS
665 fftw3_LIBS
666 fftw3_CFLAGS
667 ncursesw_LIBS
668 ncursesw_CFLAGS
669 libmpdclient_LIBS
670 libmpdclient_CFLAGS
671 ICU_LIBS
672 ICU_CFLAGS
673 PKG_CONFIG_LIBDIR
674 PKG_CONFIG_PATH
675 PKG_CONFIG
676 BOOST_THREAD_LIBS
677 BOOST_THREAD_LDPATH
678 BOOST_THREAD_LDFLAGS
679 BOOST_REGEX_LIBS
680 BOOST_REGEX_LDPATH
681 BOOST_REGEX_LDFLAGS
682 BOOST_PROGRAM_OPTIONS_LIBS
683 BOOST_PROGRAM_OPTIONS_LDPATH
684 BOOST_PROGRAM_OPTIONS_LDFLAGS
685 BOOST_LOCALE_LIBS
686 BOOST_LOCALE_LDPATH
687 BOOST_LOCALE_LDFLAGS
688 BOOST_FILESYSTEM_LIBS
689 BOOST_FILESYSTEM_LDPATH
690 BOOST_FILESYSTEM_LDFLAGS
691 BOOST_SYSTEM_LIBS
692 BOOST_SYSTEM_LDPATH
693 BOOST_SYSTEM_LDFLAGS
694 BOOST_DATE_TIME_LIBS
695 BOOST_LDPATH
696 BOOST_DATE_TIME_LDPATH
697 BOOST_DATE_TIME_LDFLAGS
698 BOOST_CPPFLAGS
699 DISTCHECK_CONFIGURE_FLAGS
700 BOOST_ROOT
701 CXXCPP
702 LT_SYS_LIBRARY_PATH
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 MANIFEST_TOOL
709 RANLIB
710 ac_ct_AR
711 AR
712 DLLTOOL
713 OBJDUMP
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 EGREP
721 GREP
722 SED
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 ac_ct_CC
727 CFLAGS
728 CC
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 LIBTOOL
738 am__fastdepCXX_FALSE
739 am__fastdepCXX_TRUE
740 CXXDEPMODE
741 am__nodep
742 AMDEPBACKSLASH
743 AMDEP_FALSE
744 AMDEP_TRUE
745 am__include
746 DEPDIR
747 OBJEXT
748 EXEEXT
749 ac_ct_CXX
750 CPPFLAGS
751 LDFLAGS
752 CXXFLAGS
753 CXX
754 AM_BACKSLASH
755 AM_DEFAULT_VERBOSITY
756 AM_DEFAULT_V
757 AM_V
758 am__untar
759 am__tar
760 AMTAR
761 am__leading_dot
762 SET_MAKE
763 AWK
764 mkdir_p
765 MKDIR_P
766 INSTALL_STRIP_PROGRAM
767 STRIP
768 install_sh
769 MAKEINFO
770 AUTOHEADER
771 AUTOMAKE
772 AUTOCONF
773 ACLOCAL
774 VERSION
775 PACKAGE
776 CYGPATH_W
777 am__isrc
778 INSTALL_DATA
779 INSTALL_SCRIPT
780 INSTALL_PROGRAM
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 runstatedir
801 localstatedir
802 sharedstatedir
803 sysconfdir
804 datadir
805 datarootdir
806 libexecdir
807 sbindir
808 bindir
809 program_transform_name
810 prefix
811 exec_prefix
812 PACKAGE_URL
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL
820 am__quote'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_silent_rules
825 enable_dependency_tracking
826 enable_shared
827 enable_static
828 with_pic
829 enable_fast_install
830 with_aix_soname
831 with_gnu_ld
832 with_sysroot
833 enable_libtool_lock
834 enable_outputs
835 enable_visualizer
836 enable_clock
837 with_fftw
838 with_taglib
839 with_lto
840 with_boost
841 enable_static_boost
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CXX
847 CXXFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CCC
852 CC
853 CFLAGS
854 LT_SYS_LIBRARY_PATH
855 CXXCPP
856 BOOST_ROOT
857 PKG_CONFIG
858 PKG_CONFIG_PATH
859 PKG_CONFIG_LIBDIR
860 ICU_CFLAGS
861 ICU_LIBS
862 libmpdclient_CFLAGS
863 libmpdclient_LIBS
864 ncursesw_CFLAGS
865 ncursesw_LIBS
866 fftw3_CFLAGS
867 fftw3_LIBS
868 libcurl_CFLAGS
869 libcurl_LIBS'
870
871
872 # Initialize some variables set by options.
873 ac_init_help=
874 ac_init_version=false
875 ac_unrecognized_opts=
876 ac_unrecognized_sep=
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
879 cache_file=/dev/null
880 exec_prefix=NONE
881 no_create=
882 no_recursion=
883 prefix=NONE
884 program_prefix=NONE
885 program_suffix=NONE
886 program_transform_name=s,x,x,
887 silent=
888 site=
889 srcdir=
890 verbose=
891 x_includes=NONE
892 x_libraries=NONE
893
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 runstatedir='${localstatedir}/run'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
920
921 ac_prev=
922 ac_dashdash=
923 for ac_option
924 do
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
928 ac_prev=
929 continue
930 fi
931
932 case $ac_option in
933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 *=) ac_optarg= ;;
935 *) ac_optarg=yes ;;
936 esac
937
938 case $ac_dashdash$ac_option in
939 --)
940 ac_dashdash=yes ;;
941
942 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 ac_prev=bindir ;;
944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 bindir=$ac_optarg ;;
946
947 -build | --build | --buil | --bui | --bu)
948 ac_prev=build_alias ;;
949 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950 build_alias=$ac_optarg ;;
951
952 -cache-file | --cache-file | --cache-fil | --cache-fi \
953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954 ac_prev=cache_file ;;
955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957 cache_file=$ac_optarg ;;
958
959 --config-cache | -C)
960 cache_file=config.cache ;;
961
962 -datadir | --datadir | --datadi | --datad)
963 ac_prev=datadir ;;
964 -datadir=* | --datadir=* | --datadi=* | --datad=*)
965 datadir=$ac_optarg ;;
966
967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968 | --dataroo | --dataro | --datar)
969 ac_prev=datarootdir ;;
970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972 datarootdir=$ac_optarg ;;
973
974 -disable-* | --disable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: \`$ac_useropt'"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=no ;;
989
990 -docdir | --docdir | --docdi | --doc | --do)
991 ac_prev=docdir ;;
992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 docdir=$ac_optarg ;;
994
995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 ac_prev=dvidir ;;
997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 dvidir=$ac_optarg ;;
999
1000 -enable-* | --enable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1008 *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=\$ac_optarg ;;
1015
1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018 | --exec | --exe | --ex)
1019 ac_prev=exec_prefix ;;
1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022 | --exec=* | --exe=* | --ex=*)
1023 exec_prefix=$ac_optarg ;;
1024
1025 -gas | --gas | --ga | --g)
1026 # Obsolete; use --with-gas.
1027 with_gas=yes ;;
1028
1029 -help | --help | --hel | --he | -h)
1030 ac_init_help=long ;;
1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032 ac_init_help=recursive ;;
1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034 ac_init_help=short ;;
1035
1036 -host | --host | --hos | --ho)
1037 ac_prev=host_alias ;;
1038 -host=* | --host=* | --hos=* | --ho=*)
1039 host_alias=$ac_optarg ;;
1040
1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 ac_prev=htmldir ;;
1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 | --ht=*)
1045 htmldir=$ac_optarg ;;
1046
1047 -includedir | --includedir | --includedi | --included | --include \
1048 | --includ | --inclu | --incl | --inc)
1049 ac_prev=includedir ;;
1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051 | --includ=* | --inclu=* | --incl=* | --inc=*)
1052 includedir=$ac_optarg ;;
1053
1054 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 ac_prev=infodir ;;
1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057 infodir=$ac_optarg ;;
1058
1059 -libdir | --libdir | --libdi | --libd)
1060 ac_prev=libdir ;;
1061 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062 libdir=$ac_optarg ;;
1063
1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065 | --libexe | --libex | --libe)
1066 ac_prev=libexecdir ;;
1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068 | --libexe=* | --libex=* | --libe=*)
1069 libexecdir=$ac_optarg ;;
1070
1071 -localedir | --localedir | --localedi | --localed | --locale)
1072 ac_prev=localedir ;;
1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074 localedir=$ac_optarg ;;
1075
1076 -localstatedir | --localstatedir | --localstatedi | --localstated \
1077 | --localstate | --localstat | --localsta | --localst | --locals)
1078 ac_prev=localstatedir ;;
1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081 localstatedir=$ac_optarg ;;
1082
1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 ac_prev=mandir ;;
1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086 mandir=$ac_optarg ;;
1087
1088 -nfp | --nfp | --nf)
1089 # Obsolete; use --without-fp.
1090 with_fp=no ;;
1091
1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093 | --no-cr | --no-c | -n)
1094 no_create=yes ;;
1095
1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 no_recursion=yes ;;
1099
1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102 | --oldin | --oldi | --old | --ol | --o)
1103 ac_prev=oldincludedir ;;
1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107 oldincludedir=$ac_optarg ;;
1108
1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 ac_prev=prefix ;;
1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112 prefix=$ac_optarg ;;
1113
1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115 | --program-pre | --program-pr | --program-p)
1116 ac_prev=program_prefix ;;
1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119 program_prefix=$ac_optarg ;;
1120
1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122 | --program-suf | --program-su | --program-s)
1123 ac_prev=program_suffix ;;
1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126 program_suffix=$ac_optarg ;;
1127
1128 -program-transform-name | --program-transform-name \
1129 | --program-transform-nam | --program-transform-na \
1130 | --program-transform-n | --program-transform- \
1131 | --program-transform | --program-transfor \
1132 | --program-transfo | --program-transf \
1133 | --program-trans | --program-tran \
1134 | --progr-tra | --program-tr | --program-t)
1135 ac_prev=program_transform_name ;;
1136 -program-transform-name=* | --program-transform-name=* \
1137 | --program-transform-nam=* | --program-transform-na=* \
1138 | --program-transform-n=* | --program-transform-=* \
1139 | --program-transform=* | --program-transfor=* \
1140 | --program-transfo=* | --program-transf=* \
1141 | --program-trans=* | --program-tran=* \
1142 | --progr-tra=* | --program-tr=* | --program-t=*)
1143 program_transform_name=$ac_optarg ;;
1144
1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 ac_prev=pdfdir ;;
1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148 pdfdir=$ac_optarg ;;
1149
1150 -psdir | --psdir | --psdi | --psd | --ps)
1151 ac_prev=psdir ;;
1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 psdir=$ac_optarg ;;
1154
1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156 | -silent | --silent | --silen | --sile | --sil)
1157 silent=yes ;;
1158
1159 -runstatedir | --runstatedir | --runstatedi | --runstated \
1160 | --runstate | --runstat | --runsta | --runst | --runs \
1161 | --run | --ru | --r)
1162 ac_prev=runstatedir ;;
1163 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1164 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1165 | --run=* | --ru=* | --r=*)
1166 runstatedir=$ac_optarg ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: \`$ac_useropt'"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: \`$ac_useropt'"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1265 ;;
1266
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 ;;
1284
1285 esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1291 fi
1292
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299 fi
1300
1301 # Check all directory arguments for consistency.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir runstatedir
1306 do
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320 done
1321
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1328
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336 fi
1337
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341 test "$silent" = yes && exec 6>/dev/null
1342
1343
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 printf "%s\n" X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1382 fi
1383 else
1384 ac_srcdir_defaulted=no
1385 fi
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389 fi
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures ncmpcpp 0.9.2 to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/ncmpcpp]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1473
1474 cat <<\_ACEOF
1475
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of ncmpcpp 0.9.2:";;
1490 esac
1491 cat <<\_ACEOF
1492
1493 Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-static[=PKGS] build static libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --enable-outputs Enable outputs screen [default=no]
1509 --enable-visualizer Enable music visualizer screen [default=no]
1510 --enable-clock Enable clock screen [default=no]
1511 --enable-static-boost Prefer the static boost libraries over the shared
1512 ones [no]
1513
1514 Optional Packages:
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1517 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --with-aix-soname=aix|svr4|both
1520 shared library versioning (aka "SONAME") variant to
1521 provide on AIX, [default=aix].
1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1524 compiler's sysroot if not specified).
1525 --with-fftw Enable fftw support (required for frequency spectrum
1526 vizualization) [default=auto]
1527 --with-taglib Enable tag editor [default=auto]
1528 --with-lto Enable LTO (link time optimization) [default=yes]
1529 --with-boost=DIR prefix of Boost 1.60 [guess]
1530
1531 Some influential environment variables:
1532 CXX C++ compiler command
1533 CXXFLAGS C++ compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LT_SYS_LIBRARY_PATH
1542 User-defined run-time library search path.
1543 CXXCPP C++ preprocessor
1544 BOOST_ROOT Location of Boost installation
1545 PKG_CONFIG path to pkg-config utility
1546 PKG_CONFIG_PATH
1547 directories to add to pkg-config's search path
1548 PKG_CONFIG_LIBDIR
1549 path overriding pkg-config's built-in search path
1550 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1551 ICU_LIBS linker flags for ICU, overriding pkg-config
1552 libmpdclient_CFLAGS
1553 C compiler flags for libmpdclient, overriding pkg-config
1554 libmpdclient_LIBS
1555 linker flags for libmpdclient, overriding pkg-config
1556 ncursesw_CFLAGS
1557 C compiler flags for ncursesw, overriding pkg-config
1558 ncursesw_LIBS
1559 linker flags for ncursesw, overriding pkg-config
1560 fftw3_CFLAGS
1561 C compiler flags for fftw3, overriding pkg-config
1562 fftw3_LIBS linker flags for fftw3, overriding pkg-config
1563 libcurl_CFLAGS
1564 C compiler flags for libcurl, overriding pkg-config
1565 libcurl_LIBS
1566 linker flags for libcurl, overriding pkg-config
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 Report bugs to the package provider.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" ||
1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 continue
1582 ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601 .) # We are building in place.
1602 ac_srcdir=.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1609 *) # Relative name.
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for configure.gnu first; this name is used for a wrapper for
1618 # Metaconfig's "Configure" on case-insensitive file systems.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1625 else
1626 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 fi || ac_status=$?
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1629 done
1630 fi
1631
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634 cat <<\_ACEOF
1635 ncmpcpp configure 0.9.2
1636 generated by GNU Autoconf 2.70
1637
1638 Copyright (C) 2020 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642 exit
1643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_cxx_try_compile LINENO
1650 # ----------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest.beam
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 printf "%s\n" "$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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_cxx_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext
1675 then :
1676 ac_retval=0
1677 else $as_nop
1678 printf "%s\n" "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_cxx_try_compile
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest.beam
1695 if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 printf "%s\n" "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext
1714 then :
1715 ac_retval=0
1716 else $as_nop
1717 printf "%s\n" "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_compile
1726
1727 # ac_fn_c_try_link LINENO
1728 # -----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_link ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 printf "%s\n" "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest$ac_exeext && {
1753 test "$cross_compiling" = yes ||
1754 test -x conftest$ac_exeext
1755 }
1756 then :
1757 ac_retval=0
1758 else $as_nop
1759 printf "%s\n" "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763 fi
1764 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766 # interfere with the next link command; also delete a directory that is
1767 # left behind by Apple's compiler. We do this before executing the actions.
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_link
1773
1774 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists and can be compiled using the include files in
1777 # INCLUDES, setting the cache variable VAR accordingly.
1778 ac_fn_c_check_header_compile ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 printf %s "checking for $2... " >&6; }
1783 if eval test \${$3+y}
1784 then :
1785 printf %s "(cached) " >&6
1786 else $as_nop
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"
1793 then :
1794 eval "$3=yes"
1795 else $as_nop
1796 eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 printf "%s\n" "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_header_compile
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 printf %s "checking for $2... " >&6; }
1815 if eval test \${$3+y}
1816 then :
1817 printf %s "(cached) " >&6
1818 else $as_nop
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1824
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below. */
1827
1828 #include <limits.h>
1829 #undef $2
1830
1831 /* Override any GCC internal prototype to avoid an error.
1832 Use char because int might match the return type of a GCC
1833 builtin and then its argument prototype would still apply. */
1834 #ifdef __cplusplus
1835 extern "C"
1836 #endif
1837 char $2 ();
1838 /* The GNU C library defines this for functions which it implements
1839 to always fail with ENOSYS. Some functions are actually named
1840 something starting with __ and the normal name is an alias. */
1841 #if defined __stub_$2 || defined __stub___$2
1842 choke me
1843 #endif
1844
1845 int
1846 main (void)
1847 {
1848 return $2 ();
1849 ;
1850 return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_link "$LINENO"
1854 then :
1855 eval "$3=yes"
1856 else $as_nop
1857 eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1860 conftest$ac_exeext conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$3
1863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 printf "%s\n" "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_func
1868
1869 # ac_fn_cxx_try_cpp LINENO
1870 # ------------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_cxx_try_cpp ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 printf "%s\n" "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 ac_status=$?
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1888 fi
1889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } > conftest.i && {
1891 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1892 test ! -s conftest.err
1893 }
1894 then :
1895 ac_retval=0
1896 else $as_nop
1897 printf "%s\n" "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1899
1900 ac_retval=1
1901 fi
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1904
1905 } # ac_fn_cxx_try_cpp
1906
1907 # ac_fn_cxx_try_link LINENO
1908 # -------------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_link ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1914 if { { ac_try="$ac_link"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 printf "%s\n" "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1927 fi
1928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest$ac_exeext && {
1933 test "$cross_compiling" = yes ||
1934 test -x conftest$ac_exeext
1935 }
1936 then :
1937 ac_retval=0
1938 else $as_nop
1939 printf "%s\n" "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 ac_retval=1
1943 fi
1944 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1945 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1946 # interfere with the next link command; also delete a directory that is
1947 # left behind by Apple's compiler. We do this before executing the actions.
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1951
1952 } # ac_fn_cxx_try_link
1953
1954 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1955 # ---------------------------------------------------------
1956 # Tests whether HEADER exists and can be compiled using the include files in
1957 # INCLUDES, setting the cache variable VAR accordingly.
1958 ac_fn_cxx_check_header_compile ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 printf %s "checking for $2... " >&6; }
1963 if eval test \${$3+y}
1964 then :
1965 printf %s "(cached) " >&6
1966 else $as_nop
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 $4
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_cxx_try_compile "$LINENO"
1973 then :
1974 eval "$3=yes"
1975 else $as_nop
1976 eval "$3=no"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 printf "%s\n" "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_cxx_check_header_compile
1986 ac_configure_args_raw=
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 *\'*)
1991 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 esac
1993 as_fn_append ac_configure_args_raw " '$ac_arg'"
1994 done
1995
1996 case $ac_configure_args_raw in
1997 *$as_nl*)
1998 ac_safe_unquote= ;;
1999 *)
2000 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2001 ac_unsafe_a="$ac_unsafe_z#~"
2002 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2003 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2004 esac
2005
2006 cat >config.log <<_ACEOF
2007 This file contains any messages produced by compilers while
2008 running configure, to aid debugging if configure makes a mistake.
2009
2010 It was created by ncmpcpp $as_me 0.9.2, which was
2011 generated by GNU Autoconf 2.70. Invocation command line was
2012
2013 $ $0$ac_configure_args_raw
2014
2015 _ACEOF
2016 exec 5>>config.log
2017 {
2018 cat <<_ASUNAME
2019 ## --------- ##
2020 ## Platform. ##
2021 ## --------- ##
2022
2023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031
2032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2039
2040 _ASUNAME
2041
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 case $as_dir in #(((
2047 '') as_dir=./ ;;
2048 */) ;;
2049 *) as_dir=$as_dir/ ;;
2050 esac
2051 printf "%s\n" "PATH: $as_dir"
2052 done
2053 IFS=$as_save_IFS
2054
2055 } >&5
2056
2057 cat >&5 <<_ACEOF
2058
2059
2060 ## ----------- ##
2061 ## Core tests. ##
2062 ## ----------- ##
2063
2064 _ACEOF
2065
2066
2067 # Keep a trace of the command line.
2068 # Strip out --no-create and --no-recursion so they do not pile up.
2069 # Strip out --silent because we don't want to record it for future runs.
2070 # Also quote any args containing shell meta-characters.
2071 # Make two passes to allow for proper duplicate-argument suppression.
2072 ac_configure_args=
2073 ac_configure_args0=
2074 ac_configure_args1=
2075 ac_must_keep_next=false
2076 for ac_pass in 1 2
2077 do
2078 for ac_arg
2079 do
2080 case $ac_arg in
2081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2083 | -silent | --silent | --silen | --sile | --sil)
2084 continue ;;
2085 *\'*)
2086 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 esac
2088 case $ac_pass in
2089 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2090 2)
2091 as_fn_append ac_configure_args1 " '$ac_arg'"
2092 if test $ac_must_keep_next = true; then
2093 ac_must_keep_next=false # Got value, back to normal.
2094 else
2095 case $ac_arg in
2096 *=* | --config-cache | -C | -disable-* | --disable-* \
2097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2099 | -with-* | --with-* | -without-* | --without-* | --x)
2100 case "$ac_configure_args0 " in
2101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 esac
2103 ;;
2104 -* ) ac_must_keep_next=true ;;
2105 esac
2106 fi
2107 as_fn_append ac_configure_args " '$ac_arg'"
2108 ;;
2109 esac
2110 done
2111 done
2112 { ac_configure_args0=; unset ac_configure_args0;}
2113 { ac_configure_args1=; unset ac_configure_args1;}
2114
2115 # When interrupted or exit'd, cleanup temporary files, and complete
2116 # config.log. We remove comments because anyway the quotes in there
2117 # would cause problems or look ugly.
2118 # WARNING: Use '\'' to represent an apostrophe within the trap.
2119 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2120 trap 'exit_status=$?
2121 # Sanitize IFS.
2122 IFS=" "" $as_nl"
2123 # Save into config.log some information that might help in debugging.
2124 {
2125 echo
2126
2127 printf "%s\n" "## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##"
2130 echo
2131 # The following way of writing the cache mishandles newlines in values,
2132 (
2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in #(
2136 *${as_nl}*)
2137 case $ac_var in #(
2138 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 esac
2141 case $ac_var in #(
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2145 esac ;;
2146 esac
2147 done
2148 (set) 2>&1 |
2149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
2151 sed -n \
2152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 ;; #(
2155 *)
2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157 ;;
2158 esac |
2159 sort
2160 )
2161 echo
2162
2163 printf "%s\n" "## ----------------- ##
2164 ## Output variables. ##
2165 ## ----------------- ##"
2166 echo
2167 for ac_var in $ac_subst_vars
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 printf "%s\n" "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176
2177 if test -n "$ac_subst_files"; then
2178 printf "%s\n" "## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##"
2181 echo
2182 for ac_var in $ac_subst_files
2183 do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in
2186 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 esac
2188 printf "%s\n" "$ac_var='\''$ac_val'\''"
2189 done | sort
2190 echo
2191 fi
2192
2193 if test -s confdefs.h; then
2194 printf "%s\n" "## ----------- ##
2195 ## confdefs.h. ##
2196 ## ----------- ##"
2197 echo
2198 cat confdefs.h
2199 echo
2200 fi
2201 test "$ac_signal" != 0 &&
2202 printf "%s\n" "$as_me: caught signal $ac_signal"
2203 printf "%s\n" "$as_me: exit $exit_status"
2204 } >&5
2205 rm -f core *.core core.conftest.* &&
2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207 exit $exit_status
2208 ' 0
2209 for ac_signal in 1 2 13 15; do
2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2211 done
2212 ac_signal=0
2213
2214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2215 rm -f -r conftest* confdefs.h
2216
2217 printf "%s\n" "/* confdefs.h */" > confdefs.h
2218
2219 # Predefined preprocessor variables.
2220
2221 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2222
2223 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2224
2225 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2226
2227 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2228
2229 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2230
2231 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2232
2233
2234 # Let the site file select an alternate cache file if it wants to.
2235 # Prefer an explicitly selected file to automatically selected ones.
2236 if test -n "$CONFIG_SITE"; then
2237 ac_site_files="$CONFIG_SITE"
2238 elif test "x$prefix" != xNONE; then
2239 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2240 else
2241 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2242 fi
2243
2244 for ac_site_file in $ac_site_files
2245 do
2246 case $ac_site_file in #(
2247 */*) :
2248 ;; #(
2249 *) :
2250 ac_site_file=./$ac_site_file ;;
2251 esac
2252 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2255 sed 's/^/| /' "$ac_site_file" >&5
2256 . "$ac_site_file" \
2257 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2261 fi
2262 done
2263
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special files
2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2270 case $cache_file in
2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272 *) . "./$cache_file";;
2273 esac
2274 fi
2275 else
2276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2278 >$cache_file
2279 fi
2280
2281 # Test code for whether the C++ compiler supports C++98 (global declarations)
2282 ac_cxx_conftest_cxx98_globals='
2283 // Does the compiler advertise C++98 conformance?
2284 #if !defined __cplusplus || __cplusplus < 199711L
2285 # error "Compiler does not advertise C++98 conformance"
2286 #endif
2287
2288 // These inclusions are to reject old compilers that
2289 // lack the unsuffixed header files.
2290 #include <cstdlib>
2291 #include <exception>
2292
2293 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2294 extern void assert (int);
2295 namespace std {
2296 extern int strcmp (const char *, const char *);
2297 }
2298
2299 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2300 using std::exception;
2301 using std::strcmp;
2302
2303 namespace {
2304
2305 void test_exception_syntax()
2306 {
2307 try {
2308 throw "test";
2309 } catch (const char *s) {
2310 // Extra parentheses suppress a warning when building autoconf itself,
2311 // due to lint rules shared with more typical C programs.
2312 assert (!(strcmp) (s, "test"));
2313 }
2314 }
2315
2316 template <typename T> struct test_template
2317 {
2318 T const val;
2319 explicit test_template(T t) : val(t) {}
2320 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2321 };
2322
2323 } // anonymous namespace
2324 '
2325
2326 # Test code for whether the C++ compiler supports C++98 (body of main)
2327 ac_cxx_conftest_cxx98_main='
2328 assert (argc);
2329 assert (! argv[0]);
2330 {
2331 test_exception_syntax ();
2332 test_template<double> tt (2.0);
2333 assert (tt.add (4) == 6.0);
2334 assert (true && !false);
2335 }
2336 '
2337
2338 # Test code for whether the C++ compiler supports C++11 (global declarations)
2339 ac_cxx_conftest_cxx11_globals='
2340 // Does the compiler advertise C++ 2011 conformance?
2341 #if !defined __cplusplus || __cplusplus < 201103L
2342 # error "Compiler does not advertise C++11 conformance"
2343 #endif
2344
2345 namespace cxx11test
2346 {
2347 constexpr int get_val() { return 20; }
2348
2349 struct testinit
2350 {
2351 int i;
2352 double d;
2353 };
2354
2355 class delegate
2356 {
2357 public:
2358 delegate(int n) : n(n) {}
2359 delegate(): delegate(2354) {}
2360
2361 virtual int getval() { return this->n; };
2362 protected:
2363 int n;
2364 };
2365
2366 class overridden : public delegate
2367 {
2368 public:
2369 overridden(int n): delegate(n) {}
2370 virtual int getval() override final { return this->n * 2; }
2371 };
2372
2373 class nocopy
2374 {
2375 public:
2376 nocopy(int i): i(i) {}
2377 nocopy() = default;
2378 nocopy(const nocopy&) = delete;
2379 nocopy & operator=(const nocopy&) = delete;
2380 private:
2381 int i;
2382 };
2383
2384 // for testing lambda expressions
2385 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2386 {
2387 return f(v);
2388 }
2389
2390 // for testing variadic templates and trailing return types
2391 template <typename V> auto sum(V first) -> V
2392 {
2393 return first;
2394 }
2395 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2396 {
2397 return first + sum(rest...);
2398 }
2399 }
2400 '
2401
2402 # Test code for whether the C++ compiler supports C++11 (body of main)
2403 ac_cxx_conftest_cxx11_main='
2404 {
2405 // Test auto and decltype
2406 auto a1 = 6538;
2407 auto a2 = 48573953.4;
2408 auto a3 = "String literal";
2409
2410 int total = 0;
2411 for (auto i = a3; *i; ++i) { total += *i; }
2412
2413 decltype(a2) a4 = 34895.034;
2414 }
2415 {
2416 // Test constexpr
2417 short sa[cxx11test::get_val()] = { 0 };
2418 }
2419 {
2420 // Test initializer lists
2421 cxx11test::testinit il = { 4323, 435234.23544 };
2422 }
2423 {
2424 // Test range-based for
2425 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2426 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2427 for (auto &x : array) { x += 23; }
2428 }
2429 {
2430 // Test lambda expressions
2431 using cxx11test::eval;
2432 assert (eval ([](int x) { return x*2; }, 21) == 42);
2433 double d = 2.0;
2434 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2435 assert (d == 5.0);
2436 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2437 assert (d == 5.0);
2438 }
2439 {
2440 // Test use of variadic templates
2441 using cxx11test::sum;
2442 auto a = sum(1);
2443 auto b = sum(1, 2);
2444 auto c = sum(1.0, 2.0, 3.0);
2445 }
2446 {
2447 // Test constructor delegation
2448 cxx11test::delegate d1;
2449 cxx11test::delegate d2();
2450 cxx11test::delegate d3(45);
2451 }
2452 {
2453 // Test override and final
2454 cxx11test::overridden o1(55464);
2455 }
2456 {
2457 // Test nullptr
2458 char *c = nullptr;
2459 }
2460 {
2461 // Test template brackets
2462 test_template<::test_template<int>> v(test_template<int>(12));
2463 }
2464 {
2465 // Unicode literals
2466 char const *utf8 = u8"UTF-8 string \u2500";
2467 char16_t const *utf16 = u"UTF-8 string \u2500";
2468 char32_t const *utf32 = U"UTF-32 string \u2500";
2469 }
2470 '
2471
2472 # Test code for whether the C compiler supports C++11 (complete).
2473 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2474 ${ac_cxx_conftest_cxx11_globals}
2475
2476 int
2477 main (int argc, char **argv)
2478 {
2479 int ok = 0;
2480 ${ac_cxx_conftest_cxx98_main}
2481 ${ac_cxx_conftest_cxx11_main}
2482 return ok;
2483 }
2484 "
2485
2486 # Test code for whether the C compiler supports C++98 (complete).
2487 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2488 int
2489 main (int argc, char **argv)
2490 {
2491 int ok = 0;
2492 ${ac_cxx_conftest_cxx98_main}
2493 return ok;
2494 }
2495 "
2496
2497 # Test code for whether the C compiler supports C89 (global declarations)
2498 ac_c_conftest_c89_globals='
2499 /* Does the compiler advertise C89 conformance?
2500 Do not test the value of __STDC__, because some compilers set it to 0
2501 while being otherwise adequately conformant. */
2502 #if !defined __STDC__
2503 # error "Compiler does not advertise C89 conformance"
2504 #endif
2505
2506 #include <stddef.h>
2507 #include <stdarg.h>
2508 struct stat;
2509 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2510 struct buf { int x; };
2511 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2512 static char *e (p, i)
2513 char **p;
2514 int i;
2515 {
2516 return p[i];
2517 }
2518 static char *f (char * (*g) (char **, int), char **p, ...)
2519 {
2520 char *s;
2521 va_list v;
2522 va_start (v,p);
2523 s = g (p, va_arg (v,int));
2524 va_end (v);
2525 return s;
2526 }
2527
2528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2529 function prototypes and stuff, but not \xHH hex character constants.
2530 These do not provoke an error unfortunately, instead are silently treated
2531 as an "x". The following induces an error, until -std is added to get
2532 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2533 array size at least. It is necessary to write \x00 == 0 to get something
2534 that is true only with -std. */
2535 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2536
2537 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2538 inside strings and character constants. */
2539 #define FOO(x) '\''x'\''
2540 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2541
2542 int test (int i, double x);
2543 struct s1 {int (*f) (int a);};
2544 struct s2 {int (*f) (double a);};
2545 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2546 int, int);'
2547
2548 # Test code for whether the C compiler supports C89 (body of main).
2549 ac_c_conftest_c89_main='
2550 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2551 '
2552
2553 # Test code for whether the C compiler supports C99 (global declarations)
2554 ac_c_conftest_c99_globals='
2555 // Does the compiler advertise C99 conformance?
2556 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2557 # error "Compiler does not advertise C99 conformance"
2558 #endif
2559
2560 #include <stdbool.h>
2561 extern int puts (const char *);
2562 extern int printf (const char *, ...);
2563 extern int dprintf (int, const char *, ...);
2564 extern void *malloc (size_t);
2565
2566 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2567 // dprintf is used instead of fprintf to avoid needing to declare
2568 // FILE and stderr.
2569 #define debug(...) dprintf (2, __VA_ARGS__)
2570 #define showlist(...) puts (#__VA_ARGS__)
2571 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2572 static void
2573 test_varargs_macros (void)
2574 {
2575 int x = 1234;
2576 int y = 5678;
2577 debug ("Flag");
2578 debug ("X = %d\n", x);
2579 showlist (The first, second, and third items.);
2580 report (x>y, "x is %d but y is %d", x, y);
2581 }
2582
2583 // Check long long types.
2584 #define BIG64 18446744073709551615ull
2585 #define BIG32 4294967295ul
2586 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2587 #if !BIG_OK
2588 #error "your preprocessor is broken"
2589 #endif
2590 #if BIG_OK
2591 #else
2592 #error "your preprocessor is broken"
2593 #endif
2594 static long long int bignum = -9223372036854775807LL;
2595 static unsigned long long int ubignum = BIG64;
2596
2597 struct incomplete_array
2598 {
2599 int datasize;
2600 double data[];
2601 };
2602
2603 struct named_init {
2604 int number;
2605 const wchar_t *name;
2606 double average;
2607 };
2608
2609 typedef const char *ccp;
2610
2611 static inline int
2612 test_restrict (ccp restrict text)
2613 {
2614 // See if C++-style comments work.
2615 // Iterate through items via the restricted pointer.
2616 // Also check for declarations in for loops.
2617 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2618 continue;
2619 return 0;
2620 }
2621
2622 // Check varargs and va_copy.
2623 static bool
2624 test_varargs (const char *format, ...)
2625 {
2626 va_list args;
2627 va_start (args, format);
2628 va_list args_copy;
2629 va_copy (args_copy, args);
2630
2631 const char *str = "";
2632 int number = 0;
2633 float fnumber = 0;
2634
2635 while (*format)
2636 {
2637 switch (*format++)
2638 {
2639 case '\''s'\'': // string
2640 str = va_arg (args_copy, const char *);
2641 break;
2642 case '\''d'\'': // int
2643 number = va_arg (args_copy, int);
2644 break;
2645 case '\''f'\'': // float
2646 fnumber = va_arg (args_copy, double);
2647 break;
2648 default:
2649 break;
2650 }
2651 }
2652 va_end (args_copy);
2653 va_end (args);
2654
2655 return *str && number && fnumber;
2656 }
2657 '
2658
2659 # Test code for whether the C compiler supports C99 (body of main).
2660 ac_c_conftest_c99_main='
2661 // Check bool.
2662 _Bool success = false;
2663 success |= (argc != 0);
2664
2665 // Check restrict.
2666 if (test_restrict ("String literal") == 0)
2667 success = true;
2668 char *restrict newvar = "Another string";
2669
2670 // Check varargs.
2671 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2672 test_varargs_macros ();
2673
2674 // Check flexible array members.
2675 struct incomplete_array *ia =
2676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2677 ia->datasize = 10;
2678 for (int i = 0; i < ia->datasize; ++i)
2679 ia->data[i] = i * 1.234;
2680
2681 // Check named initializers.
2682 struct named_init ni = {
2683 .number = 34,
2684 .name = L"Test wide string",
2685 .average = 543.34343,
2686 };
2687
2688 ni.number = 58;
2689
2690 int dynamic_array[ni.number];
2691 dynamic_array[0] = argv[0][0];
2692 dynamic_array[ni.number - 1] = 543;
2693
2694 // work around unused variable warnings
2695 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2696 || dynamic_array[ni.number - 1] != 543);
2697 '
2698
2699 # Test code for whether the C compiler supports C11 (global declarations)
2700 ac_c_conftest_c11_globals='
2701 // Does the compiler advertise C11 conformance?
2702 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2703 # error "Compiler does not advertise C11 conformance"
2704 #endif
2705
2706 // Check _Alignas.
2707 char _Alignas (double) aligned_as_double;
2708 char _Alignas (0) no_special_alignment;
2709 extern char aligned_as_int;
2710 char _Alignas (0) _Alignas (int) aligned_as_int;
2711
2712 // Check _Alignof.
2713 enum
2714 {
2715 int_alignment = _Alignof (int),
2716 int_array_alignment = _Alignof (int[100]),
2717 char_alignment = _Alignof (char)
2718 };
2719 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2720
2721 // Check _Noreturn.
2722 int _Noreturn does_not_return (void) { for (;;) continue; }
2723
2724 // Check _Static_assert.
2725 struct test_static_assert
2726 {
2727 int x;
2728 _Static_assert (sizeof (int) <= sizeof (long int),
2729 "_Static_assert does not work in struct");
2730 long int y;
2731 };
2732
2733 // Check UTF-8 literals.
2734 #define u8 syntax error!
2735 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2736
2737 // Check duplicate typedefs.
2738 typedef long *long_ptr;
2739 typedef long int *long_ptr;
2740 typedef long_ptr long_ptr;
2741
2742 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2743 struct anonymous
2744 {
2745 union {
2746 struct { int i; int j; };
2747 struct { int k; long int l; } w;
2748 };
2749 int m;
2750 } v1;
2751 '
2752
2753 # Test code for whether the C compiler supports C11 (body of main).
2754 ac_c_conftest_c11_main='
2755 _Static_assert ((offsetof (struct anonymous, i)
2756 == offsetof (struct anonymous, w.k)),
2757 "Anonymous union alignment botch");
2758 v1.i = 2;
2759 v1.w.k = 5;
2760 ok |= v1.i != 5;
2761 '
2762
2763 # Test code for whether the C compiler supports C11 (complete).
2764 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2765 ${ac_c_conftest_c99_globals}
2766 ${ac_c_conftest_c11_globals}
2767
2768 int
2769 main (int argc, char **argv)
2770 {
2771 int ok = 0;
2772 ${ac_c_conftest_c89_main}
2773 ${ac_c_conftest_c99_main}
2774 ${ac_c_conftest_c11_main}
2775 return ok;
2776 }
2777 "
2778
2779 # Test code for whether the C compiler supports C99 (complete).
2780 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2781 ${ac_c_conftest_c99_globals}
2782
2783 int
2784 main (int argc, char **argv)
2785 {
2786 int ok = 0;
2787 ${ac_c_conftest_c89_main}
2788 ${ac_c_conftest_c99_main}
2789 return ok;
2790 }
2791 "
2792
2793 # Test code for whether the C compiler supports C89 (complete).
2794 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2795
2796 int
2797 main (int argc, char **argv)
2798 {
2799 int ok = 0;
2800 ${ac_c_conftest_c89_main}
2801 return ok;
2802 }
2803 "
2804
2805 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2806 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2807 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2808 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2809 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2810 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2811 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2812 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2813 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2814
2815 # Auxiliary files required by this configure script.
2816 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2817
2818 # Locations in which to look for auxiliary files.
2819 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2820
2821 # Search for a directory containing all of the required auxiliary files,
2822 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2823 # If we don't find one directory that contains all the files we need,
2824 # we report the set of missing files from the *first* directory in
2825 # $ac_aux_dir_candidates and give up.
2826 ac_missing_aux_files=""
2827 ac_first_candidate=:
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 as_found=false
2831 for as_dir in $ac_aux_dir_candidates
2832 do
2833 IFS=$as_save_IFS
2834 case $as_dir in #(((
2835 '') as_dir=./ ;;
2836 */) ;;
2837 *) as_dir=$as_dir/ ;;
2838 esac
2839 as_found=:
2840
2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2842 ac_aux_dir_found=yes
2843 ac_install_sh=
2844 for ac_aux in $ac_aux_files
2845 do
2846 # As a special case, if "install-sh" is required, that requirement
2847 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2848 # and $ac_install_sh is set appropriately for whichever one is found.
2849 if test x"$ac_aux" = x"install-sh"
2850 then
2851 if test -f "${as_dir}install-sh"; then
2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2853 ac_install_sh="${as_dir}install-sh -c"
2854 elif test -f "${as_dir}install.sh"; then
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2856 ac_install_sh="${as_dir}install.sh -c"
2857 elif test -f "${as_dir}shtool"; then
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2859 ac_install_sh="${as_dir}shtool install -c"
2860 else
2861 ac_aux_dir_found=no
2862 if $ac_first_candidate; then
2863 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2864 else
2865 break
2866 fi
2867 fi
2868 else
2869 if test -f "${as_dir}${ac_aux}"; then
2870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2871 else
2872 ac_aux_dir_found=no
2873 if $ac_first_candidate; then
2874 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2875 else
2876 break
2877 fi
2878 fi
2879 fi
2880 done
2881 if test "$ac_aux_dir_found" = yes; then
2882 ac_aux_dir="$as_dir"
2883 break
2884 fi
2885 ac_first_candidate=false
2886
2887 as_found=false
2888 done
2889 IFS=$as_save_IFS
2890 if $as_found
2891 then :
2892
2893 else $as_nop
2894 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2895 fi
2896
2897
2898 # These three variables are undocumented and unsupported,
2899 # and are intended to be withdrawn in a future Autoconf release.
2900 # They can cause serious problems if a builder's source tree is in a directory
2901 # whose full name contains unusual characters.
2902 if test -f "${ac_aux_dir}config.guess"; then
2903 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2904 fi
2905 if test -f "${ac_aux_dir}config.sub"; then
2906 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2907 fi
2908 if test -f "$ac_aux_dir/configure"; then
2909 ac_configure="$SHELL ${ac_aux_dir}configure"
2910 fi
2911
2912 # Check that the precious variables saved in the cache have kept the same
2913 # value.
2914 ac_cache_corrupted=false
2915 for ac_var in $ac_precious_vars; do
2916 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2917 eval ac_new_set=\$ac_env_${ac_var}_set
2918 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2919 eval ac_new_val=\$ac_env_${ac_var}_value
2920 case $ac_old_set,$ac_new_set in
2921 set,)
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2923 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2924 ac_cache_corrupted=: ;;
2925 ,set)
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2927 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2928 ac_cache_corrupted=: ;;
2929 ,);;
2930 *)
2931 if test "x$ac_old_val" != "x$ac_new_val"; then
2932 # differences in whitespace do not lead to failure.
2933 ac_old_val_w=`echo x $ac_old_val`
2934 ac_new_val_w=`echo x $ac_new_val`
2935 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2937 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2938 ac_cache_corrupted=:
2939 else
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2941 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2942 eval $ac_var=\$ac_old_val
2943 fi
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2945 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2947 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2948 fi;;
2949 esac
2950 # Pass precious variables to config.status.
2951 if test "$ac_new_set" = set; then
2952 case $ac_new_val in
2953 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2954 *) ac_arg=$ac_var=$ac_new_val ;;
2955 esac
2956 case " $ac_configure_args " in
2957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2958 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2959 esac
2960 fi
2961 done
2962 if $ac_cache_corrupted; then
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2966 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2967 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2968 and start over" "$LINENO" 5
2969 fi
2970 ## -------------------- ##
2971 ## Main body of script. ##
2972 ## -------------------- ##
2973
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979
2980
2981
2982 ac_config_headers="$ac_config_headers config.h"
2983
2984 am__api_version='1.16'
2985
2986
2987
2988 # Find a good install program. We prefer a C program (faster),
2989 # so one script is as good as another. But avoid the broken or
2990 # incompatible versions:
2991 # SysV /etc/install, /usr/sbin/install
2992 # SunOS /usr/etc/install
2993 # IRIX /sbin/install
2994 # AIX /bin/install
2995 # AmigaOS /C/install, which installs bootblocks on floppy discs
2996 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2997 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2998 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2999 # OS/2's system install, which has a completely different semantic
3000 # ./install, which can be erroneously created by make from ./install.sh.
3001 # Reject install programs that cannot install multiple files.
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3003 printf %s "checking for a BSD-compatible install... " >&6; }
3004 if test -z "$INSTALL"; then
3005 if test ${ac_cv_path_install+y}
3006 then :
3007 printf %s "(cached) " >&6
3008 else $as_nop
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012 IFS=$as_save_IFS
3013 case $as_dir in #(((
3014 '') as_dir=./ ;;
3015 */) ;;
3016 *) as_dir=$as_dir/ ;;
3017 esac
3018 # Account for fact that we put trailing slashes in our PATH walk.
3019 case $as_dir in #((
3020 ./ | /[cC]/* | \
3021 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3022 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3023 /usr/ucb/* ) ;;
3024 *)
3025 # OSF1 and SCO ODT 3.0 have their own names for install.
3026 # Don't use installbsd from OSF since it installs stuff as root
3027 # by default.
3028 for ac_prog in ginstall scoinst install; do
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3031 if test $ac_prog = install &&
3032 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # AIX install. It has an incompatible calling convention.
3034 :
3035 elif test $ac_prog = install &&
3036 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3037 # program-specific install script used by HP pwplus--don't use.
3038 :
3039 else
3040 rm -rf conftest.one conftest.two conftest.dir
3041 echo one > conftest.one
3042 echo two > conftest.two
3043 mkdir conftest.dir
3044 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3045 test -s conftest.one && test -s conftest.two &&
3046 test -s conftest.dir/conftest.one &&
3047 test -s conftest.dir/conftest.two
3048 then
3049 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3050 break 3
3051 fi
3052 fi
3053 fi
3054 done
3055 done
3056 ;;
3057 esac
3058
3059 done
3060 IFS=$as_save_IFS
3061
3062 rm -rf conftest.one conftest.two conftest.dir
3063
3064 fi
3065 if test ${ac_cv_path_install+y}; then
3066 INSTALL=$ac_cv_path_install
3067 else
3068 # As a last resort, use the slow shell script. Don't cache a
3069 # value for INSTALL within a source directory, because that will
3070 # break other packages using the cache if that directory is
3071 # removed, or if the value is a relative name.
3072 INSTALL=$ac_install_sh
3073 fi
3074 fi
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3076 printf "%s\n" "$INSTALL" >&6; }
3077
3078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3079 # It thinks the first close brace ends the variable substitution.
3080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3081
3082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3083
3084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3085
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3087 printf %s "checking whether build environment is sane... " >&6; }
3088 # Reject unsafe characters in $srcdir or the absolute working directory
3089 # name. Accept space and tab only in the latter.
3090 am_lf='
3091 '
3092 case `pwd` in
3093 *[\\\"\#\$\&\'\`$am_lf]*)
3094 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3095 esac
3096 case $srcdir in
3097 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3098 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3099 esac
3100
3101 # Do 'set' in a subshell so we don't clobber the current shell's
3102 # arguments. Must try -L first in case configure is actually a
3103 # symlink; some systems play weird games with the mod time of symlinks
3104 # (eg FreeBSD returns the mod time of the symlink's containing
3105 # directory).
3106 if (
3107 am_has_slept=no
3108 for am_try in 1 2; do
3109 echo "timestamp, slept: $am_has_slept" > conftest.file
3110 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3111 if test "$*" = "X"; then
3112 # -L didn't work.
3113 set X `ls -t "$srcdir/configure" conftest.file`
3114 fi
3115 if test "$*" != "X $srcdir/configure conftest.file" \
3116 && test "$*" != "X conftest.file $srcdir/configure"; then
3117
3118 # If neither matched, then we have a broken ls. This can happen
3119 # if, for instance, CONFIG_SHELL is bash and it inherits a
3120 # broken ls alias from the environment. This has actually
3121 # happened. Such a system could not be considered "sane".
3122 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3123 alias in your environment" "$LINENO" 5
3124 fi
3125 if test "$2" = conftest.file || test $am_try -eq 2; then
3126 break
3127 fi
3128 # Just in case.
3129 sleep 1
3130 am_has_slept=yes
3131 done
3132 test "$2" = conftest.file
3133 )
3134 then
3135 # Ok.
3136 :
3137 else
3138 as_fn_error $? "newly created file is older than distributed files!
3139 Check your system clock" "$LINENO" 5
3140 fi
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 printf "%s\n" "yes" >&6; }
3143 # If we didn't sleep, we still need to ensure time stamps of config.status and
3144 # generated files are strictly newer.
3145 am_sleep_pid=
3146 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3147 ( sleep 1 ) &
3148 am_sleep_pid=$!
3149 fi
3150
3151 rm -f conftest.file
3152
3153 test "$program_prefix" != NONE &&
3154 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3155 # Use a double $ so make ignores it.
3156 test "$program_suffix" != NONE &&
3157 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3158 # Double any \ or $.
3159 # By default was `s,x,x', remove it if useless.
3160 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3161 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3162
3163
3164 # Expand $ac_aux_dir to an absolute path.
3165 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3166
3167
3168 if test x"${MISSING+set}" != xset; then
3169 case $am_aux_dir in
3170 *\ * | *\ *)
3171 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3172 *)
3173 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3174 esac
3175 fi
3176 # Use eval to expand $SHELL
3177 if eval "$MISSING --is-lightweight"; then
3178 am_missing_run="$MISSING "
3179 else
3180 am_missing_run=
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3182 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3183 fi
3184
3185 if test x"${install_sh+set}" != xset; then
3186 case $am_aux_dir in
3187 *\ * | *\ *)
3188 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3189 *)
3190 install_sh="\${SHELL} $am_aux_dir/install-sh"
3191 esac
3192 fi
3193
3194 # Installed binaries are usually stripped using 'strip' when the user
3195 # run "make install-strip". However 'strip' might not be the right
3196 # tool to use in cross-compilation environments, therefore Automake
3197 # will honor the 'STRIP' environment variable to overrule this program.
3198 if test "$cross_compiling" != no; then
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}strip; ac_word=$2
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 printf %s "checking for $ac_word... " >&6; }
3204 if test ${ac_cv_prog_STRIP+y}
3205 then :
3206 printf %s "(cached) " >&6
3207 else $as_nop
3208 if test -n "$STRIP"; then
3209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 case $as_dir in #(((
3216 '') as_dir=./ ;;
3217 */) ;;
3218 *) as_dir=$as_dir/ ;;
3219 esac
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 STRIP=$ac_cv_prog_STRIP
3233 if test -n "$STRIP"; then
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3235 printf "%s\n" "$STRIP" >&6; }
3236 else
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 printf "%s\n" "no" >&6; }
3239 fi
3240
3241
3242 fi
3243 if test -z "$ac_cv_prog_STRIP"; then
3244 ac_ct_STRIP=$STRIP
3245 # Extract the first word of "strip", so it can be a program name with args.
3246 set dummy strip; ac_word=$2
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 printf %s "checking for $ac_word... " >&6; }
3249 if test ${ac_cv_prog_ac_ct_STRIP+y}
3250 then :
3251 printf %s "(cached) " >&6
3252 else $as_nop
3253 if test -n "$ac_ct_STRIP"; then
3254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 case $as_dir in #(((
3261 '') as_dir=./ ;;
3262 */) ;;
3263 *) as_dir=$as_dir/ ;;
3264 esac
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_ac_ct_STRIP="strip"
3268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3278 if test -n "$ac_ct_STRIP"; then
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3280 printf "%s\n" "$ac_ct_STRIP" >&6; }
3281 else
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 printf "%s\n" "no" >&6; }
3284 fi
3285
3286 if test "x$ac_ct_STRIP" = x; then
3287 STRIP=":"
3288 else
3289 case $cross_compiling:$ac_tool_warned in
3290 yes:)
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3293 ac_tool_warned=yes ;;
3294 esac
3295 STRIP=$ac_ct_STRIP
3296 fi
3297 else
3298 STRIP="$ac_cv_prog_STRIP"
3299 fi
3300
3301 fi
3302 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3303
3304
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3306 printf %s "checking for a race-free mkdir -p... " >&6; }
3307 if test -z "$MKDIR_P"; then
3308 if test ${ac_cv_path_mkdir+y}
3309 then :
3310 printf %s "(cached) " >&6
3311 else $as_nop
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3314 do
3315 IFS=$as_save_IFS
3316 case $as_dir in #(((
3317 '') as_dir=./ ;;
3318 */) ;;
3319 *) as_dir=$as_dir/ ;;
3320 esac
3321 for ac_prog in mkdir gmkdir; do
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3324 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3325 'mkdir ('*'coreutils) '* | \
3326 'BusyBox '* | \
3327 'mkdir (fileutils) '4.1*)
3328 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3329 break 3;;
3330 esac
3331 done
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337
3338 test -d ./--version && rmdir ./--version
3339 if test ${ac_cv_path_mkdir+y}; then
3340 MKDIR_P="$ac_cv_path_mkdir -p"
3341 else
3342 # As a last resort, use the slow shell script. Don't cache a
3343 # value for MKDIR_P within a source directory, because that will
3344 # break other packages using the cache if that directory is
3345 # removed, or if the value is a relative name.
3346 MKDIR_P="$ac_install_sh -d"
3347 fi
3348 fi
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3350 printf "%s\n" "$MKDIR_P" >&6; }
3351
3352 for ac_prog in gawk mawk nawk awk
3353 do
3354 # Extract the first word of "$ac_prog", so it can be a program name with args.
3355 set dummy $ac_prog; ac_word=$2
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 printf %s "checking for $ac_word... " >&6; }
3358 if test ${ac_cv_prog_AWK+y}
3359 then :
3360 printf %s "(cached) " >&6
3361 else $as_nop
3362 if test -n "$AWK"; then
3363 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368 IFS=$as_save_IFS
3369 case $as_dir in #(((
3370 '') as_dir=./ ;;
3371 */) ;;
3372 *) as_dir=$as_dir/ ;;
3373 esac
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_AWK="$ac_prog"
3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380 done
3381 done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 AWK=$ac_cv_prog_AWK
3387 if test -n "$AWK"; then
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3389 printf "%s\n" "$AWK" >&6; }
3390 else
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 printf "%s\n" "no" >&6; }
3393 fi
3394
3395
3396 test -n "$AWK" && break
3397 done
3398
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3400 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3401 set x ${MAKE-make}
3402 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3403 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3404 then :
3405 printf %s "(cached) " >&6
3406 else $as_nop
3407 cat >conftest.make <<\_ACEOF
3408 SHELL = /bin/sh
3409 all:
3410 @echo '@@@%%%=$(MAKE)=@@@%%%'
3411 _ACEOF
3412 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3413 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3414 *@@@%%%=?*=@@@%%%*)
3415 eval ac_cv_prog_make_${ac_make}_set=yes;;
3416 *)
3417 eval ac_cv_prog_make_${ac_make}_set=no;;
3418 esac
3419 rm -f conftest.make
3420 fi
3421 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423 printf "%s\n" "yes" >&6; }
3424 SET_MAKE=
3425 else
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 printf "%s\n" "no" >&6; }
3428 SET_MAKE="MAKE=${MAKE-make}"
3429 fi
3430
3431 rm -rf .tst 2>/dev/null
3432 mkdir .tst 2>/dev/null
3433 if test -d .tst; then
3434 am__leading_dot=.
3435 else
3436 am__leading_dot=_
3437 fi
3438 rmdir .tst 2>/dev/null
3439
3440 # Check whether --enable-silent-rules was given.
3441 if test ${enable_silent_rules+y}
3442 then :
3443 enableval=$enable_silent_rules;
3444 fi
3445
3446 case $enable_silent_rules in # (((
3447 yes) AM_DEFAULT_VERBOSITY=0;;
3448 no) AM_DEFAULT_VERBOSITY=1;;
3449 *) AM_DEFAULT_VERBOSITY=1;;
3450 esac
3451 am_make=${MAKE-make}
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3453 printf %s "checking whether $am_make supports nested variables... " >&6; }
3454 if test ${am_cv_make_support_nested_variables+y}
3455 then :
3456 printf %s "(cached) " >&6
3457 else $as_nop
3458 if printf "%s\n" 'TRUE=$(BAR$(V))
3459 BAR0=false
3460 BAR1=true
3461 V=1
3462 am__doit:
3463 @$(TRUE)
3464 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3465 am_cv_make_support_nested_variables=yes
3466 else
3467 am_cv_make_support_nested_variables=no
3468 fi
3469 fi
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3471 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3472 if test $am_cv_make_support_nested_variables = yes; then
3473 AM_V='$(V)'
3474 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3475 else
3476 AM_V=$AM_DEFAULT_VERBOSITY
3477 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3478 fi
3479 AM_BACKSLASH='\'
3480
3481 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3482 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3483 # is not polluted with repeated "-I."
3484 am__isrc=' -I$(srcdir)'
3485 # test to see if srcdir already configured
3486 if test -f $srcdir/config.status; then
3487 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3488 fi
3489 fi
3490
3491 # test whether we have cygpath
3492 if test -z "$CYGPATH_W"; then
3493 if (cygpath --version) >/dev/null 2>/dev/null; then
3494 CYGPATH_W='cygpath -w'
3495 else
3496 CYGPATH_W=echo
3497 fi
3498 fi
3499
3500
3501 # Define the identity of the package.
3502 PACKAGE='ncmpcpp'
3503 VERSION='0.9.2'
3504
3505
3506 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3507
3508
3509 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3510
3511 # Some tools Automake needs.
3512
3513 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3514
3515
3516 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3517
3518
3519 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3520
3521
3522 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3523
3524
3525 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3526
3527 # For better backward compatibility. To be removed once Automake 1.9.x
3528 # dies out for good. For more background, see:
3529 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3530 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3531 mkdir_p='$(MKDIR_P)'
3532
3533 # We need awk for the "check" target (and possibly the TAP driver). The
3534 # system "awk" is bad on some platforms.
3535 # Always define AMTAR for backward compatibility. Yes, it's still used
3536 # in the wild :-( We should find a proper way to deprecate it ...
3537 AMTAR='$${TAR-tar}'
3538
3539
3540 # We'll loop over all known methods to create a tar archive until one works.
3541 _am_tools='gnutar pax cpio none'
3542
3543 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3544
3545
3546
3547
3548
3549
3550 # POSIX will say in a future version that running "rm -f" with no argument
3551 # is OK; and we want to be able to make that assumption in our Makefile
3552 # recipes. So use an aggressive probe to check that the usage we want is
3553 # actually supported "in the wild" to an acceptable degree.
3554 # See automake bug#10828.
3555 # To make any issue more visible, cause the running configure to be aborted
3556 # by default if the 'rm' program in use doesn't match our expectations; the
3557 # user can still override this though.
3558 if rm -f && rm -fr && rm -rf; then : OK; else
3559 cat >&2 <<'END'
3560 Oops!
3561
3562 Your 'rm' program seems unable to run without file operands specified
3563 on the command line, even when the '-f' option is present. This is contrary
3564 to the behaviour of most rm programs out there, and not conforming with
3565 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3566
3567 Please tell [email protected] about your system, including the value
3568 of your $PATH and any error possibly output before this message. This
3569 can help us improve future automake versions.
3570
3571 END
3572 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3573 echo 'Configuration will proceed anyway, since you have set the' >&2
3574 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3575 echo >&2
3576 else
3577 cat >&2 <<'END'
3578 Aborting the configuration process, to ensure you take notice of the issue.
3579
3580 You can download and install GNU coreutils to get an 'rm' implementation
3581 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3582
3583 If you want to complete the configuration process using your problematic
3584 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3585 to "yes", and re-run configure.
3586
3587 END
3588 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3589 fi
3590 fi
3591
3592
3593
3594
3595
3596
3597 ac_ext=cpp
3598 ac_cpp='$CXXCPP $CPPFLAGS'
3599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3602
3603
3604
3605
3606
3607
3608
3609 ac_ext=cpp
3610 ac_cpp='$CXXCPP $CPPFLAGS'
3611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3614 if test -z "$CXX"; then
3615 if test -n "$CCC"; then
3616 CXX=$CCC
3617 else
3618 if test -n "$ac_tool_prefix"; then
3619 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3620 do
3621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 printf %s "checking for $ac_word... " >&6; }
3625 if test ${ac_cv_prog_CXX+y}
3626 then :
3627 printf %s "(cached) " >&6
3628 else $as_nop
3629 if test -n "$CXX"; then
3630 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635 IFS=$as_save_IFS
3636 case $as_dir in #(((
3637 '') as_dir=./ ;;
3638 */) ;;
3639 *) as_dir=$as_dir/ ;;
3640 esac
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 CXX=$ac_cv_prog_CXX
3654 if test -n "$CXX"; then
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3656 printf "%s\n" "$CXX" >&6; }
3657 else
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 printf "%s\n" "no" >&6; }
3660 fi
3661
3662
3663 test -n "$CXX" && break
3664 done
3665 fi
3666 if test -z "$CXX"; then
3667 ac_ct_CXX=$CXX
3668 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3669 do
3670 # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 printf %s "checking for $ac_word... " >&6; }
3674 if test ${ac_cv_prog_ac_ct_CXX+y}
3675 then :
3676 printf %s "(cached) " >&6
3677 else $as_nop
3678 if test -n "$ac_ct_CXX"; then
3679 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684 IFS=$as_save_IFS
3685 case $as_dir in #(((
3686 '') as_dir=./ ;;
3687 */) ;;
3688 *) as_dir=$as_dir/ ;;
3689 esac
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3692 ac_cv_prog_ac_ct_CXX="$ac_prog"
3693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696 done
3697 done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3703 if test -n "$ac_ct_CXX"; then
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3705 printf "%s\n" "$ac_ct_CXX" >&6; }
3706 else
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 printf "%s\n" "no" >&6; }
3709 fi
3710
3711
3712 test -n "$ac_ct_CXX" && break
3713 done
3714
3715 if test "x$ac_ct_CXX" = x; then
3716 CXX="g++"
3717 else
3718 case $cross_compiling:$ac_tool_warned in
3719 yes:)
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3723 esac
3724 CXX=$ac_ct_CXX
3725 fi
3726 fi
3727
3728 fi
3729 fi
3730 # Provide some information about the compiler.
3731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3732 set X $ac_compile
3733 ac_compiler=$2
3734 for ac_option in --version -v -V -qversion; do
3735 { { ac_try="$ac_compiler $ac_option >&5"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 printf "%s\n" "$ac_try_echo"; } >&5
3742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3743 ac_status=$?
3744 if test -s conftest.err; then
3745 sed '10a\
3746 ... rest of stderr output deleted ...
3747 10q' conftest.err >conftest.er1
3748 cat conftest.er1 >&5
3749 fi
3750 rm -f conftest.er1 conftest.err
3751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }
3753 done
3754
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 int
3759 main (void)
3760 {
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3770 # of exeext.
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3772 printf %s "checking whether the C++ compiler works... " >&6; }
3773 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3774
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3777
3778 ac_rmfiles=
3779 for ac_file in $ac_files
3780 do
3781 case $ac_file in
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3784 esac
3785 done
3786 rm -f $ac_rmfiles
3787
3788 if { { ac_try="$ac_link_default"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 printf "%s\n" "$ac_try_echo"; } >&5
3795 (eval "$ac_link_default") 2>&5
3796 ac_status=$?
3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3799 then :
3800 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3801 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3802 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3803 # so that the user can short-circuit this test for compilers unknown to
3804 # Autoconf.
3805 for ac_file in $ac_files ''
3806 do
3807 test -f "$ac_file" || continue
3808 case $ac_file in
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3810 ;;
3811 [ab].out )
3812 # We found the default executable, but exeext='' is most
3813 # certainly right.
3814 break;;
3815 *.* )
3816 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3817 then :; else
3818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819 fi
3820 # We set ac_cv_exeext here because the later test for it is not
3821 # safe: cross compilers may not add the suffix if given an `-o'
3822 # argument, so we may need to know it at that point already.
3823 # Even if this section looks crufty: it has the advantage of
3824 # actually working.
3825 break;;
3826 * )
3827 break;;
3828 esac
3829 done
3830 test "$ac_cv_exeext" = no && ac_cv_exeext=
3831
3832 else $as_nop
3833 ac_file=''
3834 fi
3835 if test -z "$ac_file"
3836 then :
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 printf "%s\n" "no" >&6; }
3839 printf "%s\n" "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error 77 "C++ compiler cannot create executables
3845 See \`config.log' for more details" "$LINENO" 5; }
3846 else $as_nop
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3848 printf "%s\n" "yes" >&6; }
3849 fi
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3851 printf %s "checking for C++ compiler default output file name... " >&6; }
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3853 printf "%s\n" "$ac_file" >&6; }
3854 ac_exeext=$ac_cv_exeext
3855
3856 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3857 ac_clean_files=$ac_clean_files_save
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3859 printf %s "checking for suffix of executables... " >&6; }
3860 if { { ac_try="$ac_link"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 printf "%s\n" "$ac_try_echo"; } >&5
3867 (eval "$ac_link") 2>&5
3868 ac_status=$?
3869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3871 then :
3872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3873 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3874 # work properly (i.e., refer to `conftest.exe'), while it won't with
3875 # `rm'.
3876 for ac_file in conftest.exe conftest conftest.*; do
3877 test -f "$ac_file" || continue
3878 case $ac_file in
3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 break;;
3882 * ) break;;
3883 esac
3884 done
3885 else $as_nop
3886 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3889 See \`config.log' for more details" "$LINENO" 5; }
3890 fi
3891 rm -f conftest conftest$ac_cv_exeext
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3893 printf "%s\n" "$ac_cv_exeext" >&6; }
3894
3895 rm -f conftest.$ac_ext
3896 EXEEXT=$ac_cv_exeext
3897 ac_exeext=$EXEEXT
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900 #include <stdio.h>
3901 int
3902 main (void)
3903 {
3904 FILE *f = fopen ("conftest.out", "w");
3905 return ferror (f) || fclose (f) != 0;
3906
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 ac_clean_files="$ac_clean_files conftest.out"
3912 # Check that the compiler produces executables we can run. If not, either
3913 # the compiler is broken, or we cross compile.
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3915 printf %s "checking whether we are cross compiling... " >&6; }
3916 if test "$cross_compiling" != yes; then
3917 { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 printf "%s\n" "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3925 ac_status=$?
3926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928 if { ac_try='./conftest$ac_cv_exeext'
3929 { { case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 printf "%s\n" "$ac_try_echo"; } >&5
3935 (eval "$ac_try") 2>&5
3936 ac_status=$?
3937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; }; then
3939 cross_compiling=no
3940 else
3941 if test "$cross_compiling" = maybe; then
3942 cross_compiling=yes
3943 else
3944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error 77 "cannot run C++ compiled programs.
3947 If you meant to cross compile, use \`--host'.
3948 See \`config.log' for more details" "$LINENO" 5; }
3949 fi
3950 fi
3951 fi
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953 printf "%s\n" "$cross_compiling" >&6; }
3954
3955 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3956 ac_clean_files=$ac_clean_files_save
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3958 printf %s "checking for suffix of object files... " >&6; }
3959 if test ${ac_cv_objext+y}
3960 then :
3961 printf %s "(cached) " >&6
3962 else $as_nop
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965
3966 int
3967 main (void)
3968 {
3969
3970 ;
3971 return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest.o conftest.obj
3975 if { { ac_try="$ac_compile"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 printf "%s\n" "$ac_try_echo"; } >&5
3982 (eval "$ac_compile") 2>&5
3983 ac_status=$?
3984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985 test $ac_status = 0; }
3986 then :
3987 for ac_file in conftest.o conftest.obj conftest.*; do
3988 test -f "$ac_file" || continue;
3989 case $ac_file in
3990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3992 break;;
3993 esac
3994 done
3995 else $as_nop
3996 printf "%s\n" "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $? "cannot compute suffix of object files: cannot compile
4002 See \`config.log' for more details" "$LINENO" 5; }
4003 fi
4004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4005 fi
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4007 printf "%s\n" "$ac_cv_objext" >&6; }
4008 OBJEXT=$ac_cv_objext
4009 ac_objext=$OBJEXT
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4011 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4012 if test ${ac_cv_cxx_compiler_gnu+y}
4013 then :
4014 printf %s "(cached) " >&6
4015 else $as_nop
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018
4019 int
4020 main (void)
4021 {
4022 #ifndef __GNUC__
4023 choke me
4024 #endif
4025
4026 ;
4027 return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_cxx_try_compile "$LINENO"
4031 then :
4032 ac_compiler_gnu=yes
4033 else $as_nop
4034 ac_compiler_gnu=no
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4037 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4038
4039 fi
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4041 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4043
4044 if test $ac_compiler_gnu = yes; then
4045 GXX=yes
4046 else
4047 GXX=
4048 fi
4049 ac_test_CXXFLAGS=${CXXFLAGS+y}
4050 ac_save_CXXFLAGS=$CXXFLAGS
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4052 printf %s "checking whether $CXX accepts -g... " >&6; }
4053 if test ${ac_cv_prog_cxx_g+y}
4054 then :
4055 printf %s "(cached) " >&6
4056 else $as_nop
4057 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4058 ac_cxx_werror_flag=yes
4059 ac_cv_prog_cxx_g=no
4060 CXXFLAGS="-g"
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main (void)
4066 {
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 if ac_fn_cxx_try_compile "$LINENO"
4073 then :
4074 ac_cv_prog_cxx_g=yes
4075 else $as_nop
4076 CXXFLAGS=""
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079
4080 int
4081 main (void)
4082 {
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_cxx_try_compile "$LINENO"
4089 then :
4090
4091 else $as_nop
4092 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4093 CXXFLAGS="-g"
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096
4097 int
4098 main (void)
4099 {
4100
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 if ac_fn_cxx_try_compile "$LINENO"
4106 then :
4107 ac_cv_prog_cxx_g=yes
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4110 fi
4111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4115 fi
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4117 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4118 if test $ac_test_CXXFLAGS; then
4119 CXXFLAGS=$ac_save_CXXFLAGS
4120 elif test $ac_cv_prog_cxx_g = yes; then
4121 if test "$GXX" = yes; then
4122 CXXFLAGS="-g -O2"
4123 else
4124 CXXFLAGS="-g"
4125 fi
4126 else
4127 if test "$GXX" = yes; then
4128 CXXFLAGS="-O2"
4129 else
4130 CXXFLAGS=
4131 fi
4132 fi
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4134 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4135 if test ${ac_cv_prog_cxx_cxx11+y}
4136 then :
4137 printf %s "(cached) " >&6
4138 else $as_nop
4139 ac_cv_prog_cxx_cxx11=no
4140 ac_save_CXX=$CXX
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 $ac_cxx_conftest_cxx11_program
4144 _ACEOF
4145 for ac_arg in '' -std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA
4146 do
4147 CXX="$ac_save_CXX $ac_arg"
4148 if ac_fn_cxx_try_compile "$LINENO"
4149 then :
4150 ac_cv_prog_cxx_cxx11=$ac_arg
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.beam
4153 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4154 done
4155 rm -f conftest.$ac_ext
4156 CXX=$ac_save_CXX
4157
4158 fi
4159 # AC_CACHE_VAL
4160 ac_prog_cxx_stdcxx_options=
4161 case "x$ac_cv_prog_cxx_cxx11" in #(
4162 x) :
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 printf "%s\n" "none needed" >&6; } ;; #(
4165 xno) :
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167 printf "%s\n" "unsupported" >&6; } ;; #(
4168 *) :
4169 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx11"
4170 CXX=$CXX$ac_prog_cxx_stdcxx_options
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4172 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } ;;
4173 esac
4174 if test "x$ac_cv_prog_cxx_cxx11" != xno
4175 then :
4176 ac_prog_cxx_stdcxx=cxx11
4177 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4178 ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11
4179 else $as_nop
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4181 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4182 if test ${ac_cv_prog_cxx_cxx98+y}
4183 then :
4184 printf %s "(cached) " >&6
4185 else $as_nop
4186 ac_cv_prog_cxx_cxx98=no
4187 ac_save_CXX=$CXX
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 $ac_cxx_conftest_cxx98_program
4191 _ACEOF
4192 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4193 do
4194 CXX="$ac_save_CXX $ac_arg"
4195 if ac_fn_cxx_try_compile "$LINENO"
4196 then :
4197 ac_cv_prog_cxx_cxx98=$ac_arg
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.beam
4200 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4201 done
4202 rm -f conftest.$ac_ext
4203 CXX=$ac_save_CXX
4204
4205 fi
4206 # AC_CACHE_VAL
4207 ac_prog_cxx_stdcxx_options=
4208 case "x$ac_cv_prog_cxx_cxx98" in #(
4209 x) :
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4211 printf "%s\n" "none needed" >&6; } ;; #(
4212 xno) :
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214 printf "%s\n" "unsupported" >&6; } ;; #(
4215 *) :
4216 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx98"
4217 CXX=$CXX$ac_prog_cxx_stdcxx_options
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4219 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } ;;
4220 esac
4221 if test "x$ac_cv_prog_cxx_cxx98" != xno
4222 then :
4223 ac_prog_cxx_stdcxx=cxx98
4224 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4225 else $as_nop
4226 ac_prog_cxx_stdcxx=no
4227 ac_cv_prog_cxx_stdcxx=no
4228 fi
4229
4230 fi
4231
4232 ac_ext=cpp
4233 ac_cpp='$CXXCPP $CPPFLAGS'
4234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4237 DEPDIR="${am__leading_dot}deps"
4238
4239 ac_config_commands="$ac_config_commands depfiles"
4240
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4242 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4243 cat > confinc.mk << 'END'
4244 am__doit:
4245 @echo this is the am__doit target >confinc.out
4246 .PHONY: am__doit
4247 END
4248 am__include="#"
4249 am__quote=
4250 # BSD make does it like this.
4251 echo '.include "confinc.mk" # ignored' > confmf.BSD
4252 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4253 echo 'include confinc.mk # ignored' > confmf.GNU
4254 _am_result=no
4255 for s in GNU BSD; do
4256 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4257 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }
4261 case $?:`cat confinc.out 2>/dev/null` in #(
4262 '0:this is the am__doit target') :
4263 case $s in #(
4264 BSD) :
4265 am__include='.include' am__quote='"' ;; #(
4266 *) :
4267 am__include='include' am__quote='' ;;
4268 esac ;; #(
4269 *) :
4270 ;;
4271 esac
4272 if test "$am__include" != "#"; then
4273 _am_result="yes ($s style)"
4274 break
4275 fi
4276 done
4277 rm -f confinc.* confmf.*
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4279 printf "%s\n" "${_am_result}" >&6; }
4280
4281 # Check whether --enable-dependency-tracking was given.
4282 if test ${enable_dependency_tracking+y}
4283 then :
4284 enableval=$enable_dependency_tracking;
4285 fi
4286
4287 if test "x$enable_dependency_tracking" != xno; then
4288 am_depcomp="$ac_aux_dir/depcomp"
4289 AMDEPBACKSLASH='\'
4290 am__nodep='_no'
4291 fi
4292 if test "x$enable_dependency_tracking" != xno; then
4293 AMDEP_TRUE=
4294 AMDEP_FALSE='#'
4295 else
4296 AMDEP_TRUE='#'
4297 AMDEP_FALSE=
4298 fi
4299
4300
4301
4302 depcc="$CXX" am_compiler_list=
4303
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4305 printf %s "checking dependency style of $depcc... " >&6; }
4306 if test ${am_cv_CXX_dependencies_compiler_type+y}
4307 then :
4308 printf %s "(cached) " >&6
4309 else $as_nop
4310 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4311 # We make a subdir and do the tests there. Otherwise we can end up
4312 # making bogus files that we don't know about and never remove. For
4313 # instance it was reported that on HP-UX the gcc test will end up
4314 # making a dummy file named 'D' -- because '-MD' means "put the output
4315 # in D".
4316 rm -rf conftest.dir
4317 mkdir conftest.dir
4318 # Copy depcomp to subdir because otherwise we won't find it if we're
4319 # using a relative directory.
4320 cp "$am_depcomp" conftest.dir
4321 cd conftest.dir
4322 # We will build objects and dependencies in a subdirectory because
4323 # it helps to detect inapplicable dependency modes. For instance
4324 # both Tru64's cc and ICC support -MD to output dependencies as a
4325 # side effect of compilation, but ICC will put the dependencies in
4326 # the current directory while Tru64 will put them in the object
4327 # directory.
4328 mkdir sub
4329
4330 am_cv_CXX_dependencies_compiler_type=none
4331 if test "$am_compiler_list" = ""; then
4332 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4333 fi
4334 am__universal=false
4335 case " $depcc " in #(
4336 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4337 esac
4338
4339 for depmode in $am_compiler_list; do
4340 # Setup a source with many dependencies, because some compilers
4341 # like to wrap large dependency lists on column 80 (with \), and
4342 # we should not choose a depcomp mode which is confused by this.
4343 #
4344 # We need to recreate these files for each test, as the compiler may
4345 # overwrite some of them when testing with obscure command lines.
4346 # This happens at least with the AIX C compiler.
4347 : > sub/conftest.c
4348 for i in 1 2 3 4 5 6; do
4349 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4350 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4351 # Solaris 10 /bin/sh.
4352 echo '/* dummy */' > sub/conftst$i.h
4353 done
4354 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4355
4356 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4357 # mode. It turns out that the SunPro C++ compiler does not properly
4358 # handle '-M -o', and we need to detect this. Also, some Intel
4359 # versions had trouble with output in subdirs.
4360 am__obj=sub/conftest.${OBJEXT-o}
4361 am__minus_obj="-o $am__obj"
4362 case $depmode in
4363 gcc)
4364 # This depmode causes a compiler race in universal mode.
4365 test "$am__universal" = false || continue
4366 ;;
4367 nosideeffect)
4368 # After this tag, mechanisms are not by side-effect, so they'll
4369 # only be used when explicitly requested.
4370 if test "x$enable_dependency_tracking" = xyes; then
4371 continue
4372 else
4373 break
4374 fi
4375 ;;
4376 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4377 # This compiler won't grok '-c -o', but also, the minuso test has
4378 # not run yet. These depmodes are late enough in the game, and
4379 # so weak that their functioning should not be impacted.
4380 am__obj=conftest.${OBJEXT-o}
4381 am__minus_obj=
4382 ;;
4383 none) break ;;
4384 esac
4385 if depmode=$depmode \
4386 source=sub/conftest.c object=$am__obj \
4387 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4388 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4389 >/dev/null 2>conftest.err &&
4390 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4391 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4392 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4393 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4394 # icc doesn't choke on unknown options, it will just issue warnings
4395 # or remarks (even with -Werror). So we grep stderr for any message
4396 # that says an option was ignored or not supported.
4397 # When given -MP, icc 7.0 and 7.1 complain thusly:
4398 # icc: Command line warning: ignoring option '-M'; no argument required
4399 # The diagnosis changed in icc 8.0:
4400 # icc: Command line remark: option '-MP' not supported
4401 if (grep 'ignoring option' conftest.err ||
4402 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4403 am_cv_CXX_dependencies_compiler_type=$depmode
4404 break
4405 fi
4406 fi
4407 done
4408
4409 cd ..
4410 rm -rf conftest.dir
4411 else
4412 am_cv_CXX_dependencies_compiler_type=none
4413 fi
4414
4415 fi
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4417 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4418 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4419
4420 if
4421 test "x$enable_dependency_tracking" != xno \
4422 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4423 am__fastdepCXX_TRUE=
4424 am__fastdepCXX_FALSE='#'
4425 else
4426 am__fastdepCXX_TRUE='#'
4427 am__fastdepCXX_FALSE=
4428 fi
4429
4430
4431 case `pwd` in
4432 *\ * | *\ *)
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4434 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4435 esac
4436
4437
4438
4439 macro_version='2.4.6.42-b88ce-dirty'
4440 macro_revision='2.4.6.42'
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 ltmain=$ac_aux_dir/ltmain.sh
4456
4457
4458
4459 # Make sure we can run config.sub.
4460 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4461 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4462
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4464 printf %s "checking build system type... " >&6; }
4465 if test ${ac_cv_build+y}
4466 then :
4467 printf %s "(cached) " >&6
4468 else $as_nop
4469 ac_build_alias=$build_alias
4470 test "x$ac_build_alias" = x &&
4471 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4472 test "x$ac_build_alias" = x &&
4473 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4474 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4475 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4476
4477 fi
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4479 printf "%s\n" "$ac_cv_build" >&6; }
4480 case $ac_cv_build in
4481 *-*-*) ;;
4482 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4483 esac
4484 build=$ac_cv_build
4485 ac_save_IFS=$IFS; IFS='-'
4486 set x $ac_cv_build
4487 shift
4488 build_cpu=$1
4489 build_vendor=$2
4490 shift; shift
4491 # Remember, the first character of IFS is used to create $*,
4492 # except with old shells:
4493 build_os=$*
4494 IFS=$ac_save_IFS
4495 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4496
4497
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4499 printf %s "checking host system type... " >&6; }
4500 if test ${ac_cv_host+y}
4501 then :
4502 printf %s "(cached) " >&6
4503 else $as_nop
4504 if test "x$host_alias" = x; then
4505 ac_cv_host=$ac_cv_build
4506 else
4507 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4508 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4509 fi
4510
4511 fi
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4513 printf "%s\n" "$ac_cv_host" >&6; }
4514 case $ac_cv_host in
4515 *-*-*) ;;
4516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4517 esac
4518 host=$ac_cv_host
4519 ac_save_IFS=$IFS; IFS='-'
4520 set x $ac_cv_host
4521 shift
4522 host_cpu=$1
4523 host_vendor=$2
4524 shift; shift
4525 # Remember, the first character of IFS is used to create $*,
4526 # except with old shells:
4527 host_os=$*
4528 IFS=$ac_save_IFS
4529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4530
4531
4532 # Backslashify metacharacters that are still active within
4533 # double-quoted strings.
4534 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4535
4536 # Same as above, but do not quote variable references.
4537 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4538
4539 # Sed substitution to delay expansion of an escaped shell variable in a
4540 # double_quote_subst'ed string.
4541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4542
4543 # Sed substitution to delay expansion of an escaped single quote.
4544 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4545
4546 # Sed substitution to avoid accidental globbing in evaled expressions
4547 no_glob_subst='s/\*/\\\*/g'
4548
4549 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4552
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4554 printf %s "checking how to print strings... " >&6; }
4555 # Test print first, because it will be a builtin if present.
4556 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4557 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4558 ECHO='print -r --'
4559 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4560 ECHO='printf %s\n'
4561 else
4562 # Use this function as a fallback that always works.
4563 func_fallback_echo ()
4564 {
4565 eval 'cat <<_LTECHO_EOF
4566 $1
4567 _LTECHO_EOF'
4568 }
4569 ECHO='func_fallback_echo'
4570 fi
4571
4572 # func_echo_all arg...
4573 # Invoke $ECHO with all args, space-separated.
4574 func_echo_all ()
4575 {
4576 $ECHO ""
4577 }
4578
4579 case $ECHO in
4580 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4581 printf "%s\n" "printf" >&6; } ;;
4582 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4583 printf "%s\n" "print -r" >&6; } ;;
4584 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4585 printf "%s\n" "cat" >&6; } ;;
4586 esac
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 printf %s "checking for $ac_word... " >&6; }
4620 if test ${ac_cv_prog_CC+y}
4621 then :
4622 printf %s "(cached) " >&6
4623 else $as_nop
4624 if test -n "$CC"; then
4625 ac_cv_prog_CC="$CC" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630 IFS=$as_save_IFS
4631 case $as_dir in #(((
4632 '') as_dir=./ ;;
4633 */) ;;
4634 *) as_dir=$as_dir/ ;;
4635 esac
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 CC=$ac_cv_prog_CC
4649 if test -n "$CC"; then
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4651 printf "%s\n" "$CC" >&6; }
4652 else
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 printf "%s\n" "no" >&6; }
4655 fi
4656
4657
4658 fi
4659 if test -z "$ac_cv_prog_CC"; then
4660 ac_ct_CC=$CC
4661 # Extract the first word of "gcc", so it can be a program name with args.
4662 set dummy gcc; ac_word=$2
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 printf %s "checking for $ac_word... " >&6; }
4665 if test ${ac_cv_prog_ac_ct_CC+y}
4666 then :
4667 printf %s "(cached) " >&6
4668 else $as_nop
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675 IFS=$as_save_IFS
4676 case $as_dir in #(((
4677 '') as_dir=./ ;;
4678 */) ;;
4679 *) as_dir=$as_dir/ ;;
4680 esac
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4683 ac_cv_prog_ac_ct_CC="gcc"
4684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4694 if test -n "$ac_ct_CC"; then
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4696 printf "%s\n" "$ac_ct_CC" >&6; }
4697 else
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699 printf "%s\n" "no" >&6; }
4700 fi
4701
4702 if test "x$ac_ct_CC" = x; then
4703 CC=""
4704 else
4705 case $cross_compiling:$ac_tool_warned in
4706 yes:)
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4708 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4709 ac_tool_warned=yes ;;
4710 esac
4711 CC=$ac_ct_CC
4712 fi
4713 else
4714 CC="$ac_cv_prog_CC"
4715 fi
4716
4717 if test -z "$CC"; then
4718 if test -n "$ac_tool_prefix"; then
4719 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4720 set dummy ${ac_tool_prefix}cc; ac_word=$2
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 printf %s "checking for $ac_word... " >&6; }
4723 if test ${ac_cv_prog_CC+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else $as_nop
4727 if test -n "$CC"; then
4728 ac_cv_prog_CC="$CC" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733 IFS=$as_save_IFS
4734 case $as_dir in #(((
4735 '') as_dir=./ ;;
4736 */) ;;
4737 *) as_dir=$as_dir/ ;;
4738 esac
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_CC="${ac_tool_prefix}cc"
4742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4743 break 2
4744 fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 CC=$ac_cv_prog_CC
4752 if test -n "$CC"; then
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4754 printf "%s\n" "$CC" >&6; }
4755 else
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 printf "%s\n" "no" >&6; }
4758 fi
4759
4760
4761 fi
4762 fi
4763 if test -z "$CC"; then
4764 # Extract the first word of "cc", so it can be a program name with args.
4765 set dummy cc; ac_word=$2
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 printf %s "checking for $ac_word... " >&6; }
4768 if test ${ac_cv_prog_CC+y}
4769 then :
4770 printf %s "(cached) " >&6
4771 else $as_nop
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 else
4775 ac_prog_rejected=no
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779 IFS=$as_save_IFS
4780 case $as_dir in #(((
4781 '') as_dir=./ ;;
4782 */) ;;
4783 *) as_dir=$as_dir/ ;;
4784 esac
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4787 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4788 ac_prog_rejected=yes
4789 continue
4790 fi
4791 ac_cv_prog_CC="cc"
4792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 if test $ac_prog_rejected = yes; then
4800 # We found a bogon in the path, so make sure we never use it.
4801 set dummy $ac_cv_prog_CC
4802 shift
4803 if test $# != 0; then
4804 # We chose a different compiler from the bogus one.
4805 # However, it has the same basename, so the bogon will be chosen
4806 # first if we set CC to just the basename; use the full file name.
4807 shift
4808 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4809 fi
4810 fi
4811 fi
4812 fi
4813 CC=$ac_cv_prog_CC
4814 if test -n "$CC"; then
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4816 printf "%s\n" "$CC" >&6; }
4817 else
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 printf "%s\n" "no" >&6; }
4820 fi
4821
4822
4823 fi
4824 if test -z "$CC"; then
4825 if test -n "$ac_tool_prefix"; then
4826 for ac_prog in cl.exe
4827 do
4828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 printf %s "checking for $ac_word... " >&6; }
4832 if test ${ac_cv_prog_CC+y}
4833 then :
4834 printf %s "(cached) " >&6
4835 else $as_nop
4836 if test -n "$CC"; then
4837 ac_cv_prog_CC="$CC" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842 IFS=$as_save_IFS
4843 case $as_dir in #(((
4844 '') as_dir=./ ;;
4845 */) ;;
4846 *) as_dir=$as_dir/ ;;
4847 esac
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854 done
4855 done
4856 IFS=$as_save_IFS
4857
4858 fi
4859 fi
4860 CC=$ac_cv_prog_CC
4861 if test -n "$CC"; then
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4863 printf "%s\n" "$CC" >&6; }
4864 else
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 printf "%s\n" "no" >&6; }
4867 fi
4868
4869
4870 test -n "$CC" && break
4871 done
4872 fi
4873 if test -z "$CC"; then
4874 ac_ct_CC=$CC
4875 for ac_prog in cl.exe
4876 do
4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy $ac_prog; ac_word=$2
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 printf %s "checking for $ac_word... " >&6; }
4881 if test ${ac_cv_prog_ac_ct_CC+y}
4882 then :
4883 printf %s "(cached) " >&6
4884 else $as_nop
4885 if test -n "$ac_ct_CC"; then
4886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 case $as_dir in #(((
4893 '') as_dir=./ ;;
4894 */) ;;
4895 *) as_dir=$as_dir/ ;;
4896 esac
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_ac_ct_CC="$ac_prog"
4900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4910 if test -n "$ac_ct_CC"; then
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4912 printf "%s\n" "$ac_ct_CC" >&6; }
4913 else
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 printf "%s\n" "no" >&6; }
4916 fi
4917
4918
4919 test -n "$ac_ct_CC" && break
4920 done
4921
4922 if test "x$ac_ct_CC" = x; then
4923 CC=""
4924 else
4925 case $cross_compiling:$ac_tool_warned in
4926 yes:)
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4929 ac_tool_warned=yes ;;
4930 esac
4931 CC=$ac_ct_CC
4932 fi
4933 fi
4934
4935 fi
4936 if test -z "$CC"; then
4937 if test -n "$ac_tool_prefix"; then
4938 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4939 set dummy ${ac_tool_prefix}clang; ac_word=$2
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 printf %s "checking for $ac_word... " >&6; }
4942 if test ${ac_cv_prog_CC+y}
4943 then :
4944 printf %s "(cached) " >&6
4945 else $as_nop
4946 if test -n "$CC"; then
4947 ac_cv_prog_CC="$CC" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952 IFS=$as_save_IFS
4953 case $as_dir in #(((
4954 '') as_dir=./ ;;
4955 */) ;;
4956 *) as_dir=$as_dir/ ;;
4957 esac
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_CC="${ac_tool_prefix}clang"
4961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4962 break 2
4963 fi
4964 done
4965 done
4966 IFS=$as_save_IFS
4967
4968 fi
4969 fi
4970 CC=$ac_cv_prog_CC
4971 if test -n "$CC"; then
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4973 printf "%s\n" "$CC" >&6; }
4974 else
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 printf "%s\n" "no" >&6; }
4977 fi
4978
4979
4980 fi
4981 if test -z "$ac_cv_prog_CC"; then
4982 ac_ct_CC=$CC
4983 # Extract the first word of "clang", so it can be a program name with args.
4984 set dummy clang; ac_word=$2
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 printf %s "checking for $ac_word... " >&6; }
4987 if test ${ac_cv_prog_ac_ct_CC+y}
4988 then :
4989 printf %s "(cached) " >&6
4990 else $as_nop
4991 if test -n "$ac_ct_CC"; then
4992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997 IFS=$as_save_IFS
4998 case $as_dir in #(((
4999 '') as_dir=./ ;;
5000 */) ;;
5001 *) as_dir=$as_dir/ ;;
5002 esac
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5005 ac_cv_prog_ac_ct_CC="clang"
5006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5016 if test -n "$ac_ct_CC"; then
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5018 printf "%s\n" "$ac_ct_CC" >&6; }
5019 else
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 printf "%s\n" "no" >&6; }
5022 fi
5023
5024 if test "x$ac_ct_CC" = x; then
5025 CC=""
5026 else
5027 case $cross_compiling:$ac_tool_warned in
5028 yes:)
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5030 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5031 ac_tool_warned=yes ;;
5032 esac
5033 CC=$ac_ct_CC
5034 fi
5035 else
5036 CC="$ac_cv_prog_CC"
5037 fi
5038
5039 fi
5040
5041
5042 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5043 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5044 as_fn_error $? "no acceptable C compiler found in \$PATH
5045 See \`config.log' for more details" "$LINENO" 5; }
5046
5047 # Provide some information about the compiler.
5048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5049 set X $ac_compile
5050 ac_compiler=$2
5051 for ac_option in --version -v -V -qversion -version; do
5052 { { ac_try="$ac_compiler $ac_option >&5"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5058 printf "%s\n" "$ac_try_echo"; } >&5
5059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5060 ac_status=$?
5061 if test -s conftest.err; then
5062 sed '10a\
5063 ... rest of stderr output deleted ...
5064 10q' conftest.err >conftest.er1
5065 cat conftest.er1 >&5
5066 fi
5067 rm -f conftest.er1 conftest.err
5068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069 test $ac_status = 0; }
5070 done
5071
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5073 printf %s "checking whether the compiler supports GNU C... " >&6; }
5074 if test ${ac_cv_c_compiler_gnu+y}
5075 then :
5076 printf %s "(cached) " >&6
5077 else $as_nop
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080
5081 int
5082 main (void)
5083 {
5084 #ifndef __GNUC__
5085 choke me
5086 #endif
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 if ac_fn_c_try_compile "$LINENO"
5093 then :
5094 ac_compiler_gnu=yes
5095 else $as_nop
5096 ac_compiler_gnu=no
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5100
5101 fi
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5103 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106 if test $ac_compiler_gnu = yes; then
5107 GCC=yes
5108 else
5109 GCC=
5110 fi
5111 ac_test_CFLAGS=${CFLAGS+y}
5112 ac_save_CFLAGS=$CFLAGS
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5114 printf %s "checking whether $CC accepts -g... " >&6; }
5115 if test ${ac_cv_prog_cc_g+y}
5116 then :
5117 printf %s "(cached) " >&6
5118 else $as_nop
5119 ac_save_c_werror_flag=$ac_c_werror_flag
5120 ac_c_werror_flag=yes
5121 ac_cv_prog_cc_g=no
5122 CFLAGS="-g"
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125
5126 int
5127 main (void)
5128 {
5129
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"
5135 then :
5136 ac_cv_prog_cc_g=yes
5137 else $as_nop
5138 CFLAGS=""
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141
5142 int
5143 main (void)
5144 {
5145
5146 ;
5147 return 0;
5148 }
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"
5151 then :
5152
5153 else $as_nop
5154 ac_c_werror_flag=$ac_save_c_werror_flag
5155 CFLAGS="-g"
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158
5159 int
5160 main (void)
5161 {
5162
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"
5168 then :
5169 ac_cv_prog_cc_g=yes
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5176 ac_c_werror_flag=$ac_save_c_werror_flag
5177 fi
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5179 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5180 if test $ac_test_CFLAGS; then
5181 CFLAGS=$ac_save_CFLAGS
5182 elif test $ac_cv_prog_cc_g = yes; then
5183 if test "$GCC" = yes; then
5184 CFLAGS="-g -O2"
5185 else
5186 CFLAGS="-g"
5187 fi
5188 else
5189 if test "$GCC" = yes; then
5190 CFLAGS="-O2"
5191 else
5192 CFLAGS=
5193 fi
5194 fi
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5196 printf %s "checking for $CC option to enable C11 features... " >&6; }
5197 if test ${ac_cv_prog_cc_c11+y}
5198 then :
5199 printf %s "(cached) " >&6
5200 else $as_nop
5201 ac_cv_prog_cc_c11=no
5202 ac_save_CC=$CC
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 $ac_c_conftest_c11_program
5206 _ACEOF
5207 for ac_arg in '' -std=gnu11
5208 do
5209 CC="$ac_save_CC $ac_arg"
5210 if ac_fn_c_try_compile "$LINENO"
5211 then :
5212 ac_cv_prog_cc_c11=$ac_arg
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext conftest.beam
5215 test "x$ac_cv_prog_cc_c11" != "xno" && break
5216 done
5217 rm -f conftest.$ac_ext
5218 CC=$ac_save_CC
5219
5220 fi
5221 # AC_CACHE_VAL
5222 ac_prog_cc_stdc_options=
5223 case "x$ac_cv_prog_cc_c11" in #(
5224 x) :
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5226 printf "%s\n" "none needed" >&6; } ;; #(
5227 xno) :
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5229 printf "%s\n" "unsupported" >&6; } ;; #(
5230 *) :
5231 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5232 CC="$CC$ac_prog_cc_stdc_options"
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5234 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
5235 esac
5236 if test "x$ac_cv_prog_cc_c11" != xno
5237 then :
5238 ac_prog_cc_stdc=c11
5239 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5240 else $as_nop
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5242 printf %s "checking for $CC option to enable C99 features... " >&6; }
5243 if test ${ac_cv_prog_cc_c99+y}
5244 then :
5245 printf %s "(cached) " >&6
5246 else $as_nop
5247 ac_cv_prog_cc_c99=no
5248 ac_save_CC=$CC
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 $ac_c_conftest_c89_program
5252 _ACEOF
5253 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5254 do
5255 CC="$ac_save_CC $ac_arg"
5256 if ac_fn_c_try_compile "$LINENO"
5257 then :
5258 ac_cv_prog_cc_c99=$ac_arg
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext conftest.beam
5261 test "x$ac_cv_prog_cc_c99" != "xno" && break
5262 done
5263 rm -f conftest.$ac_ext
5264 CC=$ac_save_CC
5265
5266 fi
5267 # AC_CACHE_VAL
5268 ac_prog_cc_stdc_options=
5269 case "x$ac_cv_prog_cc_c99" in #(
5270 x) :
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5272 printf "%s\n" "none needed" >&6; } ;; #(
5273 xno) :
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5275 printf "%s\n" "unsupported" >&6; } ;; #(
5276 *) :
5277 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5278 CC="$CC$ac_prog_cc_stdc_options"
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5280 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
5281 esac
5282 if test "x$ac_cv_prog_cc_c99" != xno
5283 then :
5284 ac_prog_cc_stdc=c99
5285 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5286 else $as_nop
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5288 printf %s "checking for $CC option to enable C89 features... " >&6; }
5289 if test ${ac_cv_prog_cc_c89+y}
5290 then :
5291 printf %s "(cached) " >&6
5292 else $as_nop
5293 ac_cv_prog_cc_c89=no
5294 ac_save_CC=$CC
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297 $ac_c_conftest_c89_program
5298 _ACEOF
5299 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5301 do
5302 CC="$ac_save_CC $ac_arg"
5303 if ac_fn_c_try_compile "$LINENO"
5304 then :
5305 ac_cv_prog_cc_c89=$ac_arg
5306 fi
5307 rm -f core conftest.err conftest.$ac_objext conftest.beam
5308 test "x$ac_cv_prog_cc_c89" != "xno" && break
5309 done
5310 rm -f conftest.$ac_ext
5311 CC=$ac_save_CC
5312
5313 fi
5314 # AC_CACHE_VAL
5315 ac_prog_cc_stdc_options=
5316 case "x$ac_cv_prog_cc_c89" in #(
5317 x) :
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5319 printf "%s\n" "none needed" >&6; } ;; #(
5320 xno) :
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5322 printf "%s\n" "unsupported" >&6; } ;; #(
5323 *) :
5324 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5325 CC="$CC$ac_prog_cc_stdc_options"
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5327 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
5328 esac
5329 if test "x$ac_cv_prog_cc_c89" != xno
5330 then :
5331 ac_prog_cc_stdc=c89
5332 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5333 else $as_nop
5334 ac_prog_cc_stdc=no
5335 ac_cv_prog_cc_stdc=no
5336 fi
5337
5338 fi
5339
5340 fi
5341
5342 ac_ext=cpp
5343 ac_cpp='$CXXCPP $CPPFLAGS'
5344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5347
5348
5349 ac_ext=c
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5355 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5356 if test ${am_cv_prog_cc_c_o+y}
5357 then :
5358 printf %s "(cached) " >&6
5359 else $as_nop
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362
5363 int
5364 main (void)
5365 {
5366
5367 ;
5368 return 0;
5369 }
5370 _ACEOF
5371 # Make sure it works both with $CC and with simple cc.
5372 # Following AC_PROG_CC_C_O, we do the test twice because some
5373 # compilers refuse to overwrite an existing .o file with -o,
5374 # though they will create one.
5375 am_cv_prog_cc_c_o=yes
5376 for am_i in 1 2; do
5377 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5378 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } \
5382 && test -f conftest2.$ac_objext; then
5383 : OK
5384 else
5385 am_cv_prog_cc_c_o=no
5386 break
5387 fi
5388 done
5389 rm -f core conftest*
5390 unset am_i
5391 fi
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5393 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5394 if test "$am_cv_prog_cc_c_o" != yes; then
5395 # Losing compiler, so override with the script.
5396 # FIXME: It is wrong to rewrite CC.
5397 # But if we don't then we get into trouble of one sort or another.
5398 # A longer-term fix would be to have automake use am__CC in this case,
5399 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5400 CC="$am_aux_dir/compile $CC"
5401 fi
5402 ac_ext=cpp
5403 ac_cpp='$CXXCPP $CPPFLAGS'
5404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5407
5408
5409 depcc="$CC" am_compiler_list=
5410
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5412 printf %s "checking dependency style of $depcc... " >&6; }
5413 if test ${am_cv_CC_dependencies_compiler_type+y}
5414 then :
5415 printf %s "(cached) " >&6
5416 else $as_nop
5417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5418 # We make a subdir and do the tests there. Otherwise we can end up
5419 # making bogus files that we don't know about and never remove. For
5420 # instance it was reported that on HP-UX the gcc test will end up
5421 # making a dummy file named 'D' -- because '-MD' means "put the output
5422 # in D".
5423 rm -rf conftest.dir
5424 mkdir conftest.dir
5425 # Copy depcomp to subdir because otherwise we won't find it if we're
5426 # using a relative directory.
5427 cp "$am_depcomp" conftest.dir
5428 cd conftest.dir
5429 # We will build objects and dependencies in a subdirectory because
5430 # it helps to detect inapplicable dependency modes. For instance
5431 # both Tru64's cc and ICC support -MD to output dependencies as a
5432 # side effect of compilation, but ICC will put the dependencies in
5433 # the current directory while Tru64 will put them in the object
5434 # directory.
5435 mkdir sub
5436
5437 am_cv_CC_dependencies_compiler_type=none
5438 if test "$am_compiler_list" = ""; then
5439 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5440 fi
5441 am__universal=false
5442 case " $depcc " in #(
5443 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5444 esac
5445
5446 for depmode in $am_compiler_list; do
5447 # Setup a source with many dependencies, because some compilers
5448 # like to wrap large dependency lists on column 80 (with \), and
5449 # we should not choose a depcomp mode which is confused by this.
5450 #
5451 # We need to recreate these files for each test, as the compiler may
5452 # overwrite some of them when testing with obscure command lines.
5453 # This happens at least with the AIX C compiler.
5454 : > sub/conftest.c
5455 for i in 1 2 3 4 5 6; do
5456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5457 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5458 # Solaris 10 /bin/sh.
5459 echo '/* dummy */' > sub/conftst$i.h
5460 done
5461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5462
5463 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5464 # mode. It turns out that the SunPro C++ compiler does not properly
5465 # handle '-M -o', and we need to detect this. Also, some Intel
5466 # versions had trouble with output in subdirs.
5467 am__obj=sub/conftest.${OBJEXT-o}
5468 am__minus_obj="-o $am__obj"
5469 case $depmode in
5470 gcc)
5471 # This depmode causes a compiler race in universal mode.
5472 test "$am__universal" = false || continue
5473 ;;
5474 nosideeffect)
5475 # After this tag, mechanisms are not by side-effect, so they'll
5476 # only be used when explicitly requested.
5477 if test "x$enable_dependency_tracking" = xyes; then
5478 continue
5479 else
5480 break
5481 fi
5482 ;;
5483 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5484 # This compiler won't grok '-c -o', but also, the minuso test has
5485 # not run yet. These depmodes are late enough in the game, and
5486 # so weak that their functioning should not be impacted.
5487 am__obj=conftest.${OBJEXT-o}
5488 am__minus_obj=
5489 ;;
5490 none) break ;;
5491 esac
5492 if depmode=$depmode \
5493 source=sub/conftest.c object=$am__obj \
5494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5495 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5496 >/dev/null 2>conftest.err &&
5497 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5499 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5501 # icc doesn't choke on unknown options, it will just issue warnings
5502 # or remarks (even with -Werror). So we grep stderr for any message
5503 # that says an option was ignored or not supported.
5504 # When given -MP, icc 7.0 and 7.1 complain thusly:
5505 # icc: Command line warning: ignoring option '-M'; no argument required
5506 # The diagnosis changed in icc 8.0:
5507 # icc: Command line remark: option '-MP' not supported
5508 if (grep 'ignoring option' conftest.err ||
5509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5510 am_cv_CC_dependencies_compiler_type=$depmode
5511 break
5512 fi
5513 fi
5514 done
5515
5516 cd ..
5517 rm -rf conftest.dir
5518 else
5519 am_cv_CC_dependencies_compiler_type=none
5520 fi
5521
5522 fi
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5524 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5526
5527 if
5528 test "x$enable_dependency_tracking" != xno \
5529 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5530 am__fastdepCC_TRUE=
5531 am__fastdepCC_FALSE='#'
5532 else
5533 am__fastdepCC_TRUE='#'
5534 am__fastdepCC_FALSE=
5535 fi
5536
5537
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5539 printf %s "checking for a sed that does not truncate output... " >&6; }
5540 if test ${ac_cv_path_SED+y}
5541 then :
5542 printf %s "(cached) " >&6
5543 else $as_nop
5544 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5545 for ac_i in 1 2 3 4 5 6 7; do
5546 ac_script="$ac_script$as_nl$ac_script"
5547 done
5548 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5549 { ac_script=; unset ac_script;}
5550 if test -z "$SED"; then
5551 ac_path_SED_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556 IFS=$as_save_IFS
5557 case $as_dir in #(((
5558 '') as_dir=./ ;;
5559 */) ;;
5560 *) as_dir=$as_dir/ ;;
5561 esac
5562 for ac_prog in sed gsed
5563 do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5566 as_fn_executable_p "$ac_path_SED" || continue
5567 # Check for GNU ac_path_SED and select it if it is found.
5568 # Check for GNU $ac_path_SED
5569 case `"$ac_path_SED" --version 2>&1` in
5570 *GNU*)
5571 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5572 *)
5573 ac_count=0
5574 printf %s 0123456789 >"conftest.in"
5575 while :
5576 do
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 printf "%s\n" '' >> "conftest.nl"
5581 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 as_fn_arith $ac_count + 1 && ac_count=$as_val
5584 if test $ac_count -gt ${ac_path_SED_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_SED="$ac_path_SED"
5587 ac_path_SED_max=$ac_count
5588 fi
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593 esac
5594
5595 $ac_path_SED_found && break 3
5596 done
5597 done
5598 done
5599 IFS=$as_save_IFS
5600 if test -z "$ac_cv_path_SED"; then
5601 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5602 fi
5603 else
5604 ac_cv_path_SED=$SED
5605 fi
5606
5607 fi
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5609 printf "%s\n" "$ac_cv_path_SED" >&6; }
5610 SED="$ac_cv_path_SED"
5611 rm -f conftest.sed
5612
5613 test -z "$SED" && SED=sed
5614 Xsed="$SED -e 1s/^X//"
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5627 printf %s "checking for grep that handles long lines and -e... " >&6; }
5628 if test ${ac_cv_path_GREP+y}
5629 then :
5630 printf %s "(cached) " >&6
5631 else $as_nop
5632 if test -z "$GREP"; then
5633 ac_path_GREP_found=false
5634 # Loop through the user's path and test for each of PROGNAME-LIST
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5637 do
5638 IFS=$as_save_IFS
5639 case $as_dir in #(((
5640 '') as_dir=./ ;;
5641 */) ;;
5642 *) as_dir=$as_dir/ ;;
5643 esac
5644 for ac_prog in grep ggrep
5645 do
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5648 as_fn_executable_p "$ac_path_GREP" || continue
5649 # Check for GNU ac_path_GREP and select it if it is found.
5650 # Check for GNU $ac_path_GREP
5651 case `"$ac_path_GREP" --version 2>&1` in
5652 *GNU*)
5653 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5654 *)
5655 ac_count=0
5656 printf %s 0123456789 >"conftest.in"
5657 while :
5658 do
5659 cat "conftest.in" "conftest.in" >"conftest.tmp"
5660 mv "conftest.tmp" "conftest.in"
5661 cp "conftest.in" "conftest.nl"
5662 printf "%s\n" 'GREP' >> "conftest.nl"
5663 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5665 as_fn_arith $ac_count + 1 && ac_count=$as_val
5666 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5667 # Best one so far, save it but keep looking for a better one
5668 ac_cv_path_GREP="$ac_path_GREP"
5669 ac_path_GREP_max=$ac_count
5670 fi
5671 # 10*(2^10) chars as input seems more than enough
5672 test $ac_count -gt 10 && break
5673 done
5674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5675 esac
5676
5677 $ac_path_GREP_found && break 3
5678 done
5679 done
5680 done
5681 IFS=$as_save_IFS
5682 if test -z "$ac_cv_path_GREP"; then
5683 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5684 fi
5685 else
5686 ac_cv_path_GREP=$GREP
5687 fi
5688
5689 fi
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5691 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5692 GREP="$ac_cv_path_GREP"
5693
5694
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5696 printf %s "checking for egrep... " >&6; }
5697 if test ${ac_cv_path_EGREP+y}
5698 then :
5699 printf %s "(cached) " >&6
5700 else $as_nop
5701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5702 then ac_cv_path_EGREP="$GREP -E"
5703 else
5704 if test -z "$EGREP"; then
5705 ac_path_EGREP_found=false
5706 # Loop through the user's path and test for each of PROGNAME-LIST
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5709 do
5710 IFS=$as_save_IFS
5711 case $as_dir in #(((
5712 '') as_dir=./ ;;
5713 */) ;;
5714 *) as_dir=$as_dir/ ;;
5715 esac
5716 for ac_prog in egrep
5717 do
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5720 as_fn_executable_p "$ac_path_EGREP" || continue
5721 # Check for GNU ac_path_EGREP and select it if it is found.
5722 # Check for GNU $ac_path_EGREP
5723 case `"$ac_path_EGREP" --version 2>&1` in
5724 *GNU*)
5725 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5726 *)
5727 ac_count=0
5728 printf %s 0123456789 >"conftest.in"
5729 while :
5730 do
5731 cat "conftest.in" "conftest.in" >"conftest.tmp"
5732 mv "conftest.tmp" "conftest.in"
5733 cp "conftest.in" "conftest.nl"
5734 printf "%s\n" 'EGREP' >> "conftest.nl"
5735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5737 as_fn_arith $ac_count + 1 && ac_count=$as_val
5738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5739 # Best one so far, save it but keep looking for a better one
5740 ac_cv_path_EGREP="$ac_path_EGREP"
5741 ac_path_EGREP_max=$ac_count
5742 fi
5743 # 10*(2^10) chars as input seems more than enough
5744 test $ac_count -gt 10 && break
5745 done
5746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5747 esac
5748
5749 $ac_path_EGREP_found && break 3
5750 done
5751 done
5752 done
5753 IFS=$as_save_IFS
5754 if test -z "$ac_cv_path_EGREP"; then
5755 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5756 fi
5757 else
5758 ac_cv_path_EGREP=$EGREP
5759 fi
5760
5761 fi
5762 fi
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5764 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5765 EGREP="$ac_cv_path_EGREP"
5766
5767
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5769 printf %s "checking for fgrep... " >&6; }
5770 if test ${ac_cv_path_FGREP+y}
5771 then :
5772 printf %s "(cached) " >&6
5773 else $as_nop
5774 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5775 then ac_cv_path_FGREP="$GREP -F"
5776 else
5777 if test -z "$FGREP"; then
5778 ac_path_FGREP_found=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5782 do
5783 IFS=$as_save_IFS
5784 case $as_dir in #(((
5785 '') as_dir=./ ;;
5786 */) ;;
5787 *) as_dir=$as_dir/ ;;
5788 esac
5789 for ac_prog in fgrep
5790 do
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5793 as_fn_executable_p "$ac_path_FGREP" || continue
5794 # Check for GNU ac_path_FGREP and select it if it is found.
5795 # Check for GNU $ac_path_FGREP
5796 case `"$ac_path_FGREP" --version 2>&1` in
5797 *GNU*)
5798 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5799 *)
5800 ac_count=0
5801 printf %s 0123456789 >"conftest.in"
5802 while :
5803 do
5804 cat "conftest.in" "conftest.in" >"conftest.tmp"
5805 mv "conftest.tmp" "conftest.in"
5806 cp "conftest.in" "conftest.nl"
5807 printf "%s\n" 'FGREP' >> "conftest.nl"
5808 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810 as_fn_arith $ac_count + 1 && ac_count=$as_val
5811 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5812 # Best one so far, save it but keep looking for a better one
5813 ac_cv_path_FGREP="$ac_path_FGREP"
5814 ac_path_FGREP_max=$ac_count
5815 fi
5816 # 10*(2^10) chars as input seems more than enough
5817 test $ac_count -gt 10 && break
5818 done
5819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5820 esac
5821
5822 $ac_path_FGREP_found && break 3
5823 done
5824 done
5825 done
5826 IFS=$as_save_IFS
5827 if test -z "$ac_cv_path_FGREP"; then
5828 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5829 fi
5830 else
5831 ac_cv_path_FGREP=$FGREP
5832 fi
5833
5834 fi
5835 fi
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5837 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5838 FGREP="$ac_cv_path_FGREP"
5839
5840
5841 test -z "$GREP" && GREP=grep
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861 # Check whether --with-gnu-ld was given.
5862 if test ${with_gnu_ld+y}
5863 then :
5864 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5865 else $as_nop
5866 with_gnu_ld=no
5867 fi
5868
5869 ac_prog=ld
5870 if test yes = "$GCC"; then
5871 # Check if gcc -print-prog-name=ld gives a path.
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5873 printf %s "checking for ld used by $CC... " >&6; }
5874 case $host in
5875 *-*-mingw*)
5876 # gcc leaves a trailing carriage return, which upsets mingw
5877 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5878 *)
5879 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5880 esac
5881 case $ac_prog in
5882 # Accept absolute paths.
5883 [\\/]* | ?:[\\/]*)
5884 re_direlt='/[^/][^/]*/\.\./'
5885 # Canonicalize the pathname of ld
5886 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5887 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5888 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5889 done
5890 test -z "$LD" && LD=$ac_prog
5891 ;;
5892 "")
5893 # If it fails, then pretend we aren't using GCC.
5894 ac_prog=ld
5895 ;;
5896 *)
5897 # If it is relative, then search for the first ld in PATH.
5898 with_gnu_ld=unknown
5899 ;;
5900 esac
5901 elif test yes = "$with_gnu_ld"; then
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5903 printf %s "checking for GNU ld... " >&6; }
5904 else
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5906 printf %s "checking for non-GNU ld... " >&6; }
5907 fi
5908 if test ${lt_cv_path_LD+y}
5909 then :
5910 printf %s "(cached) " >&6
5911 else $as_nop
5912 if test -z "$LD"; then
5913 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5914 for ac_dir in $PATH; do
5915 IFS=$lt_save_ifs
5916 test -z "$ac_dir" && ac_dir=.
5917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5918 lt_cv_path_LD=$ac_dir/$ac_prog
5919 # Check to see if the program is GNU ld. I'd rather use --version,
5920 # but apparently some variants of GNU ld only accept -v.
5921 # Break only if it was the GNU/non-GNU ld that we prefer.
5922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5923 *GNU* | *'with BFD'*)
5924 test no != "$with_gnu_ld" && break
5925 ;;
5926 *)
5927 test yes != "$with_gnu_ld" && break
5928 ;;
5929 esac
5930 fi
5931 done
5932 IFS=$lt_save_ifs
5933 else
5934 lt_cv_path_LD=$LD # Let the user override the test with a path.
5935 fi
5936 fi
5937
5938 LD=$lt_cv_path_LD
5939 if test -n "$LD"; then
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5941 printf "%s\n" "$LD" >&6; }
5942 else
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 printf "%s\n" "no" >&6; }
5945 fi
5946 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5948 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5949 if test ${lt_cv_prog_gnu_ld+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else $as_nop
5953 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5954 case `$LD -v 2>&1 </dev/null` in
5955 *GNU* | *'with BFD'*)
5956 lt_cv_prog_gnu_ld=yes
5957 ;;
5958 *)
5959 lt_cv_prog_gnu_ld=no
5960 ;;
5961 esac
5962 fi
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5964 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5965 with_gnu_ld=$lt_cv_prog_gnu_ld
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5976 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5977 if test ${lt_cv_path_NM+y}
5978 then :
5979 printf %s "(cached) " >&6
5980 else $as_nop
5981 if test -n "$NM"; then
5982 # Let the user override the test.
5983 lt_cv_path_NM=$NM
5984 else
5985 lt_nm_to_check=${ac_tool_prefix}nm
5986 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5987 lt_nm_to_check="$lt_nm_to_check nm"
5988 fi
5989 for lt_tmp_nm in $lt_nm_to_check; do
5990 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5991 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5992 IFS=$lt_save_ifs
5993 test -z "$ac_dir" && ac_dir=.
5994 tmp_nm=$ac_dir/$lt_tmp_nm
5995 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5996 # Check to see if the nm accepts a BSD-compat flag.
5997 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5998 # nm: unknown option "B" ignored
5999 # Tru64's nm complains that /dev/null is an invalid object file
6000 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6001 case $build_os in
6002 mingw*) lt_bad_file=conftest.nm/nofile ;;
6003 *) lt_bad_file=/dev/null ;;
6004 esac
6005 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6006 *$lt_bad_file* | *'Invalid file or object type'*)
6007 lt_cv_path_NM="$tmp_nm -B"
6008 break 2
6009 ;;
6010 *)
6011 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6012 */dev/null*)
6013 lt_cv_path_NM="$tmp_nm -p"
6014 break 2
6015 ;;
6016 *)
6017 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6018 continue # so that we can try to find one that supports BSD flags
6019 ;;
6020 esac
6021 ;;
6022 esac
6023 fi
6024 done
6025 IFS=$lt_save_ifs
6026 done
6027 : ${lt_cv_path_NM=no}
6028 fi
6029 fi
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6031 printf "%s\n" "$lt_cv_path_NM" >&6; }
6032 if test no != "$lt_cv_path_NM"; then
6033 NM=$lt_cv_path_NM
6034 else
6035 # Didn't find any BSD compatible name lister, look for dumpbin.
6036 if test -n "$DUMPBIN"; then :
6037 # Let the user override the test.
6038 else
6039 if test -n "$ac_tool_prefix"; then
6040 for ac_prog in dumpbin "link -dump"
6041 do
6042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 printf %s "checking for $ac_word... " >&6; }
6046 if test ${ac_cv_prog_DUMPBIN+y}
6047 then :
6048 printf %s "(cached) " >&6
6049 else $as_nop
6050 if test -n "$DUMPBIN"; then
6051 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 case $as_dir in #(((
6058 '') as_dir=./ ;;
6059 */) ;;
6060 *) as_dir=$as_dir/ ;;
6061 esac
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 DUMPBIN=$ac_cv_prog_DUMPBIN
6075 if test -n "$DUMPBIN"; then
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6077 printf "%s\n" "$DUMPBIN" >&6; }
6078 else
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 printf "%s\n" "no" >&6; }
6081 fi
6082
6083
6084 test -n "$DUMPBIN" && break
6085 done
6086 fi
6087 if test -z "$DUMPBIN"; then
6088 ac_ct_DUMPBIN=$DUMPBIN
6089 for ac_prog in dumpbin "link -dump"
6090 do
6091 # Extract the first word of "$ac_prog", so it can be a program name with args.
6092 set dummy $ac_prog; ac_word=$2
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 printf %s "checking for $ac_word... " >&6; }
6095 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6096 then :
6097 printf %s "(cached) " >&6
6098 else $as_nop
6099 if test -n "$ac_ct_DUMPBIN"; then
6100 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105 IFS=$as_save_IFS
6106 case $as_dir in #(((
6107 '') as_dir=./ ;;
6108 */) ;;
6109 *) as_dir=$as_dir/ ;;
6110 esac
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117 done
6118 done
6119 IFS=$as_save_IFS
6120
6121 fi
6122 fi
6123 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6124 if test -n "$ac_ct_DUMPBIN"; then
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6126 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6127 else
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 printf "%s\n" "no" >&6; }
6130 fi
6131
6132
6133 test -n "$ac_ct_DUMPBIN" && break
6134 done
6135
6136 if test "x$ac_ct_DUMPBIN" = x; then
6137 DUMPBIN=":"
6138 else
6139 case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145 DUMPBIN=$ac_ct_DUMPBIN
6146 fi
6147 fi
6148
6149 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6150 *COFF*)
6151 DUMPBIN="$DUMPBIN -symbols -headers"
6152 ;;
6153 *)
6154 DUMPBIN=:
6155 ;;
6156 esac
6157 fi
6158
6159 if test : != "$DUMPBIN"; then
6160 NM=$DUMPBIN
6161 fi
6162 fi
6163 test -z "$NM" && NM=nm
6164
6165
6166
6167
6168
6169
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6171 printf %s "checking the name lister ($NM) interface... " >&6; }
6172 if test ${lt_cv_nm_interface+y}
6173 then :
6174 printf %s "(cached) " >&6
6175 else $as_nop
6176 lt_cv_nm_interface="BSD nm"
6177 echo "int some_variable = 0;" > conftest.$ac_ext
6178 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6179 (eval "$ac_compile" 2>conftest.err)
6180 cat conftest.err >&5
6181 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6182 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6183 cat conftest.err >&5
6184 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6185 cat conftest.out >&5
6186 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6187 lt_cv_nm_interface="MS dumpbin"
6188 fi
6189 rm -f conftest*
6190 fi
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6192 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6193
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6195 printf %s "checking whether ln -s works... " >&6; }
6196 LN_S=$as_ln_s
6197 if test "$LN_S" = "ln -s"; then
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6199 printf "%s\n" "yes" >&6; }
6200 else
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6202 printf "%s\n" "no, using $LN_S" >&6; }
6203 fi
6204
6205 # find the maximum length of command line arguments
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6207 printf %s "checking the maximum length of command line arguments... " >&6; }
6208 if test ${lt_cv_sys_max_cmd_len+y}
6209 then :
6210 printf %s "(cached) " >&6
6211 else $as_nop
6212 i=0
6213 teststring=ABCD
6214
6215 case $build_os in
6216 msdosdjgpp*)
6217 # On DJGPP, this test can blow up pretty badly due to problems in libc
6218 # (any single argument exceeding 2000 bytes causes a buffer overrun
6219 # during glob expansion). Even if it were fixed, the result of this
6220 # check would be larger than it should be.
6221 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6222 ;;
6223
6224 gnu*)
6225 # Under GNU Hurd, this test is not required because there is
6226 # no limit to the length of command line arguments.
6227 # Libtool will interpret -1 as no limit whatsoever
6228 lt_cv_sys_max_cmd_len=-1;
6229 ;;
6230
6231 cygwin* | mingw* | cegcc*)
6232 # On Win9x/ME, this test blows up -- it succeeds, but takes
6233 # about 5 minutes as the teststring grows exponentially.
6234 # Worse, since 9x/ME are not pre-emptively multitasking,
6235 # you end up with a "frozen" computer, even though with patience
6236 # the test eventually succeeds (with a max line length of 256k).
6237 # Instead, let's just punt: use the minimum linelength reported by
6238 # all of the supported platforms: 8192 (on NT/2K/XP).
6239 lt_cv_sys_max_cmd_len=8192;
6240 ;;
6241
6242 mint*)
6243 # On MiNT this can take a long time and run out of memory.
6244 lt_cv_sys_max_cmd_len=8192;
6245 ;;
6246
6247 amigaos*)
6248 # On AmigaOS with pdksh, this test takes hours, literally.
6249 # So we just punt and use a minimum line length of 8192.
6250 lt_cv_sys_max_cmd_len=8192;
6251 ;;
6252
6253 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6254 # This has been around since 386BSD, at least. Likely further.
6255 if test -x /sbin/sysctl; then
6256 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6257 elif test -x /usr/sbin/sysctl; then
6258 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6259 else
6260 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6261 fi
6262 # And add a safety zone
6263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6265 ;;
6266
6267 interix*)
6268 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6269 lt_cv_sys_max_cmd_len=196608
6270 ;;
6271
6272 os2*)
6273 # The test takes a long time on OS/2.
6274 lt_cv_sys_max_cmd_len=8192
6275 ;;
6276
6277 osf*)
6278 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6279 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6280 # nice to cause kernel panics so lets avoid the loop below.
6281 # First set a reasonable default.
6282 lt_cv_sys_max_cmd_len=16384
6283 #
6284 if test -x /sbin/sysconfig; then
6285 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6286 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6287 esac
6288 fi
6289 ;;
6290 sco3.2v5*)
6291 lt_cv_sys_max_cmd_len=102400
6292 ;;
6293 sysv5* | sco5v6* | sysv4.2uw2*)
6294 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6295 if test -n "$kargmax"; then
6296 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6297 else
6298 lt_cv_sys_max_cmd_len=32768
6299 fi
6300 ;;
6301 *)
6302 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6303 if test -n "$lt_cv_sys_max_cmd_len" && \
6304 test undefined != "$lt_cv_sys_max_cmd_len"; then
6305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6307 else
6308 # Make teststring a little bigger before we do anything with it.
6309 # a 1K string should be a reasonable start.
6310 for i in 1 2 3 4 5 6 7 8; do
6311 teststring=$teststring$teststring
6312 done
6313 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6314 # If test is not a shell built-in, we'll probably end up computing a
6315 # maximum length that is only half of the actual maximum length, but
6316 # we can't tell.
6317 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6318 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6319 test 17 != "$i" # 1/2 MB should be enough
6320 do
6321 i=`expr $i + 1`
6322 teststring=$teststring$teststring
6323 done
6324 # Only check the string length outside the loop.
6325 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6326 teststring=
6327 # Add a significant safety factor because C++ compilers can tack on
6328 # massive amounts of additional arguments before passing them to the
6329 # linker. It appears as though 1/2 is a usable value.
6330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6331 fi
6332 ;;
6333 esac
6334
6335 fi
6336
6337 if test -n "$lt_cv_sys_max_cmd_len"; then
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6339 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6340 else
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6342 printf "%s\n" "none" >&6; }
6343 fi
6344 max_cmd_len=$lt_cv_sys_max_cmd_len
6345
6346
6347
6348
6349
6350
6351 : ${CP="cp -f"}
6352 : ${MV="mv -f"}
6353 : ${RM="rm -f"}
6354
6355 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6356 lt_unset=unset
6357 else
6358 lt_unset=false
6359 fi
6360
6361
6362
6363
6364
6365 # test EBCDIC or ASCII
6366 case `echo X|tr X '\101'` in
6367 A) # ASCII based system
6368 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6369 lt_SP2NL='tr \040 \012'
6370 lt_NL2SP='tr \015\012 \040\040'
6371 ;;
6372 *) # EBCDIC based system
6373 lt_SP2NL='tr \100 \n'
6374 lt_NL2SP='tr \r\n \100\100'
6375 ;;
6376 esac
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6387 printf %s "checking how to convert $build file names to $host format... " >&6; }
6388 if test ${lt_cv_to_host_file_cmd+y}
6389 then :
6390 printf %s "(cached) " >&6
6391 else $as_nop
6392 case $host in
6393 *-*-mingw* )
6394 case $build in
6395 *-*-mingw* ) # actually msys
6396 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6397 ;;
6398 *-*-cygwin* )
6399 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6400 ;;
6401 * ) # otherwise, assume *nix
6402 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6403 ;;
6404 esac
6405 ;;
6406 *-*-cygwin* )
6407 case $build in
6408 *-*-mingw* ) # actually msys
6409 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6410 ;;
6411 *-*-cygwin* )
6412 lt_cv_to_host_file_cmd=func_convert_file_noop
6413 ;;
6414 * ) # otherwise, assume *nix
6415 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6416 ;;
6417 esac
6418 ;;
6419 * ) # unhandled hosts (and "normal" native builds)
6420 lt_cv_to_host_file_cmd=func_convert_file_noop
6421 ;;
6422 esac
6423
6424 fi
6425
6426 to_host_file_cmd=$lt_cv_to_host_file_cmd
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6428 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6429
6430
6431
6432
6433
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6435 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6436 if test ${lt_cv_to_tool_file_cmd+y}
6437 then :
6438 printf %s "(cached) " >&6
6439 else $as_nop
6440 #assume ordinary cross tools, or native build.
6441 lt_cv_to_tool_file_cmd=func_convert_file_noop
6442 case $host in
6443 *-*-mingw* )
6444 case $build in
6445 *-*-mingw* ) # actually msys
6446 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6447 ;;
6448 esac
6449 ;;
6450 esac
6451
6452 fi
6453
6454 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6456 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6457
6458
6459
6460
6461
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6463 printf %s "checking for $LD option to reload object files... " >&6; }
6464 if test ${lt_cv_ld_reload_flag+y}
6465 then :
6466 printf %s "(cached) " >&6
6467 else $as_nop
6468 lt_cv_ld_reload_flag='-r'
6469 fi
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6471 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6472 reload_flag=$lt_cv_ld_reload_flag
6473 case $reload_flag in
6474 "" | " "*) ;;
6475 *) reload_flag=" $reload_flag" ;;
6476 esac
6477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6478 case $host_os in
6479 cygwin* | mingw* | pw32* | cegcc*)
6480 if test yes != "$GCC"; then
6481 reload_cmds=false
6482 fi
6483 ;;
6484 darwin*)
6485 if test yes = "$GCC"; then
6486 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6487 else
6488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6489 fi
6490 ;;
6491 esac
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 printf %s "checking for $ac_word... " >&6; }
6506 if test ${ac_cv_prog_OBJDUMP+y}
6507 then :
6508 printf %s "(cached) " >&6
6509 else $as_nop
6510 if test -n "$OBJDUMP"; then
6511 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516 IFS=$as_save_IFS
6517 case $as_dir in #(((
6518 '') as_dir=./ ;;
6519 */) ;;
6520 *) as_dir=$as_dir/ ;;
6521 esac
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 OBJDUMP=$ac_cv_prog_OBJDUMP
6535 if test -n "$OBJDUMP"; then
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6537 printf "%s\n" "$OBJDUMP" >&6; }
6538 else
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 printf "%s\n" "no" >&6; }
6541 fi
6542
6543
6544 fi
6545 if test -z "$ac_cv_prog_OBJDUMP"; then
6546 ac_ct_OBJDUMP=$OBJDUMP
6547 # Extract the first word of "objdump", so it can be a program name with args.
6548 set dummy objdump; ac_word=$2
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 printf %s "checking for $ac_word... " >&6; }
6551 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6552 then :
6553 printf %s "(cached) " >&6
6554 else $as_nop
6555 if test -n "$ac_ct_OBJDUMP"; then
6556 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561 IFS=$as_save_IFS
6562 case $as_dir in #(((
6563 '') as_dir=./ ;;
6564 */) ;;
6565 *) as_dir=$as_dir/ ;;
6566 esac
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6569 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6571 break 2
6572 fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6580 if test -n "$ac_ct_OBJDUMP"; then
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6582 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6583 else
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 printf "%s\n" "no" >&6; }
6586 fi
6587
6588 if test "x$ac_ct_OBJDUMP" = x; then
6589 OBJDUMP="false"
6590 else
6591 case $cross_compiling:$ac_tool_warned in
6592 yes:)
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6594 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595 ac_tool_warned=yes ;;
6596 esac
6597 OBJDUMP=$ac_ct_OBJDUMP
6598 fi
6599 else
6600 OBJDUMP="$ac_cv_prog_OBJDUMP"
6601 fi
6602
6603 test -z "$OBJDUMP" && OBJDUMP=objdump
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6614 printf %s "checking how to recognize dependent libraries... " >&6; }
6615 if test ${lt_cv_deplibs_check_method+y}
6616 then :
6617 printf %s "(cached) " >&6
6618 else $as_nop
6619 lt_cv_file_magic_cmd='$MAGIC_CMD'
6620 lt_cv_file_magic_test_file=
6621 lt_cv_deplibs_check_method='unknown'
6622 # Need to set the preceding variable on all platforms that support
6623 # interlibrary dependencies.
6624 # 'none' -- dependencies not supported.
6625 # 'unknown' -- same as none, but documents that we really don't know.
6626 # 'pass_all' -- all dependencies passed with no checks.
6627 # 'test_compile' -- check by making test program.
6628 # 'file_magic [[regex]]' -- check by looking for files in library path
6629 # that responds to the $file_magic_cmd with a given extended regex.
6630 # If you have 'file' or equivalent on your system and you're not sure
6631 # whether 'pass_all' will *always* work, you probably want this one.
6632
6633 case $host_os in
6634 aix[4-9]*)
6635 lt_cv_deplibs_check_method=pass_all
6636 ;;
6637
6638 beos*)
6639 lt_cv_deplibs_check_method=pass_all
6640 ;;
6641
6642 bsdi[45]*)
6643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6644 lt_cv_file_magic_cmd='/usr/bin/file -L'
6645 lt_cv_file_magic_test_file=/shlib/libc.so
6646 ;;
6647
6648 cygwin*)
6649 # func_win32_libid is a shell function defined in ltmain.sh
6650 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6651 lt_cv_file_magic_cmd='func_win32_libid'
6652 ;;
6653
6654 mingw* | pw32*)
6655 # Base MSYS/MinGW do not provide the 'file' command needed by
6656 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6657 # unless we find 'file', for example because we are cross-compiling.
6658 if ( file / ) >/dev/null 2>&1; then
6659 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6660 lt_cv_file_magic_cmd='func_win32_libid'
6661 else
6662 # Keep this pattern in sync with the one in func_win32_libid.
6663 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6664 lt_cv_file_magic_cmd='$OBJDUMP -f'
6665 fi
6666 ;;
6667
6668 cegcc*)
6669 # use the weaker test based on 'objdump'. See mingw*.
6670 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6671 lt_cv_file_magic_cmd='$OBJDUMP -f'
6672 ;;
6673
6674 darwin* | rhapsody*)
6675 lt_cv_deplibs_check_method=pass_all
6676 ;;
6677
6678 freebsd* | dragonfly*)
6679 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6680 case $host_cpu in
6681 i*86 )
6682 # Not sure whether the presence of OpenBSD here was a mistake.
6683 # Let's accept both of them until this is cleared up.
6684 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6685 lt_cv_file_magic_cmd=/usr/bin/file
6686 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6687 ;;
6688 esac
6689 else
6690 lt_cv_deplibs_check_method=pass_all
6691 fi
6692 ;;
6693
6694 haiku*)
6695 lt_cv_deplibs_check_method=pass_all
6696 ;;
6697
6698 hpux10.20* | hpux11*)
6699 lt_cv_file_magic_cmd=/usr/bin/file
6700 case $host_cpu in
6701 ia64*)
6702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6703 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6704 ;;
6705 hppa*64*)
6706 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]'
6707 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6708 ;;
6709 *)
6710 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6711 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6712 ;;
6713 esac
6714 ;;
6715
6716 interix[3-9]*)
6717 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6719 ;;
6720
6721 irix5* | irix6* | nonstopux*)
6722 case $LD in
6723 *-32|*"-32 ") libmagic=32-bit;;
6724 *-n32|*"-n32 ") libmagic=N32;;
6725 *-64|*"-64 ") libmagic=64-bit;;
6726 *) libmagic=never-match;;
6727 esac
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
6730
6731 # This must be glibc/ELF.
6732 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6733 lt_cv_deplibs_check_method=pass_all
6734 ;;
6735
6736 netbsd*)
6737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6739 else
6740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6741 fi
6742 ;;
6743
6744 newos6*)
6745 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6746 lt_cv_file_magic_cmd=/usr/bin/file
6747 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6748 ;;
6749
6750 *nto* | *qnx*)
6751 lt_cv_deplibs_check_method=pass_all
6752 ;;
6753
6754 openbsd* | bitrig*)
6755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6757 else
6758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6759 fi
6760 ;;
6761
6762 osf3* | osf4* | osf5*)
6763 lt_cv_deplibs_check_method=pass_all
6764 ;;
6765
6766 rdos*)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769
6770 solaris*)
6771 lt_cv_deplibs_check_method=pass_all
6772 ;;
6773
6774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6775 lt_cv_deplibs_check_method=pass_all
6776 ;;
6777
6778 sysv4 | sysv4.3*)
6779 case $host_vendor in
6780 motorola)
6781 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]'
6782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6783 ;;
6784 ncr)
6785 lt_cv_deplibs_check_method=pass_all
6786 ;;
6787 sequent)
6788 lt_cv_file_magic_cmd='/bin/file'
6789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6790 ;;
6791 sni)
6792 lt_cv_file_magic_cmd='/bin/file'
6793 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6794 lt_cv_file_magic_test_file=/lib/libc.so
6795 ;;
6796 siemens)
6797 lt_cv_deplibs_check_method=pass_all
6798 ;;
6799 pc)
6800 lt_cv_deplibs_check_method=pass_all
6801 ;;
6802 esac
6803 ;;
6804
6805 tpf*)
6806 lt_cv_deplibs_check_method=pass_all
6807 ;;
6808 os2*)
6809 lt_cv_deplibs_check_method=pass_all
6810 ;;
6811 esac
6812
6813 fi
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6815 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6816
6817 file_magic_glob=
6818 want_nocaseglob=no
6819 if test "$build" = "$host"; then
6820 case $host_os in
6821 mingw* | pw32*)
6822 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6823 want_nocaseglob=yes
6824 else
6825 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6826 fi
6827 ;;
6828 esac
6829 fi
6830
6831 file_magic_cmd=$lt_cv_file_magic_cmd
6832 deplibs_check_method=$lt_cv_deplibs_check_method
6833 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856 if test -n "$ac_tool_prefix"; then
6857 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6858 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 printf %s "checking for $ac_word... " >&6; }
6861 if test ${ac_cv_prog_DLLTOOL+y}
6862 then :
6863 printf %s "(cached) " >&6
6864 else $as_nop
6865 if test -n "$DLLTOOL"; then
6866 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 case $as_dir in #(((
6873 '') as_dir=./ ;;
6874 */) ;;
6875 *) as_dir=$as_dir/ ;;
6876 esac
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 DLLTOOL=$ac_cv_prog_DLLTOOL
6890 if test -n "$DLLTOOL"; then
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6892 printf "%s\n" "$DLLTOOL" >&6; }
6893 else
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 printf "%s\n" "no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_DLLTOOL"; then
6901 ac_ct_DLLTOOL=$DLLTOOL
6902 # Extract the first word of "dlltool", so it can be a program name with args.
6903 set dummy dlltool; ac_word=$2
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 printf %s "checking for $ac_word... " >&6; }
6906 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6907 then :
6908 printf %s "(cached) " >&6
6909 else $as_nop
6910 if test -n "$ac_ct_DLLTOOL"; then
6911 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 case $as_dir in #(((
6918 '') as_dir=./ ;;
6919 */) ;;
6920 *) as_dir=$as_dir/ ;;
6921 esac
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6935 if test -n "$ac_ct_DLLTOOL"; then
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6937 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6938 else
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 printf "%s\n" "no" >&6; }
6941 fi
6942
6943 if test "x$ac_ct_DLLTOOL" = x; then
6944 DLLTOOL="false"
6945 else
6946 case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6951 esac
6952 DLLTOOL=$ac_ct_DLLTOOL
6953 fi
6954 else
6955 DLLTOOL="$ac_cv_prog_DLLTOOL"
6956 fi
6957
6958 test -z "$DLLTOOL" && DLLTOOL=dlltool
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6970 printf %s "checking how to associate runtime and link libraries... " >&6; }
6971 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6972 then :
6973 printf %s "(cached) " >&6
6974 else $as_nop
6975 lt_cv_sharedlib_from_linklib_cmd='unknown'
6976
6977 case $host_os in
6978 cygwin* | mingw* | pw32* | cegcc*)
6979 # two different shell functions defined in ltmain.sh;
6980 # decide which one to use based on capabilities of $DLLTOOL
6981 case `$DLLTOOL --help 2>&1` in
6982 *--identify-strict*)
6983 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6984 ;;
6985 *)
6986 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6987 ;;
6988 esac
6989 ;;
6990 *)
6991 # fallback: assume linklib IS sharedlib
6992 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6993 ;;
6994 esac
6995
6996 fi
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6998 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6999 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7000 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7001
7002
7003
7004
7005
7006
7007
7008
7009 if test -n "$ac_tool_prefix"; then
7010 for ac_prog in ar
7011 do
7012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 printf %s "checking for $ac_word... " >&6; }
7016 if test ${ac_cv_prog_AR+y}
7017 then :
7018 printf %s "(cached) " >&6
7019 else $as_nop
7020 if test -n "$AR"; then
7021 ac_cv_prog_AR="$AR" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 case $as_dir in #(((
7028 '') as_dir=./ ;;
7029 */) ;;
7030 *) as_dir=$as_dir/ ;;
7031 esac
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 AR=$ac_cv_prog_AR
7045 if test -n "$AR"; then
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7047 printf "%s\n" "$AR" >&6; }
7048 else
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 printf "%s\n" "no" >&6; }
7051 fi
7052
7053
7054 test -n "$AR" && break
7055 done
7056 fi
7057 if test -z "$AR"; then
7058 ac_ct_AR=$AR
7059 for ac_prog in ar
7060 do
7061 # Extract the first word of "$ac_prog", so it can be a program name with args.
7062 set dummy $ac_prog; ac_word=$2
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 printf %s "checking for $ac_word... " >&6; }
7065 if test ${ac_cv_prog_ac_ct_AR+y}
7066 then :
7067 printf %s "(cached) " >&6
7068 else $as_nop
7069 if test -n "$ac_ct_AR"; then
7070 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 case $as_dir in #(((
7077 '') as_dir=./ ;;
7078 */) ;;
7079 *) as_dir=$as_dir/ ;;
7080 esac
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_ac_ct_AR="$ac_prog"
7084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091 fi
7092 fi
7093 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7094 if test -n "$ac_ct_AR"; then
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7096 printf "%s\n" "$ac_ct_AR" >&6; }
7097 else
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 printf "%s\n" "no" >&6; }
7100 fi
7101
7102
7103 test -n "$ac_ct_AR" && break
7104 done
7105
7106 if test "x$ac_ct_AR" = x; then
7107 AR="false"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110 yes:)
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113 ac_tool_warned=yes ;;
7114 esac
7115 AR=$ac_ct_AR
7116 fi
7117 fi
7118
7119 : ${AR=ar}
7120
7121
7122
7123
7124
7125
7126 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7127 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7128 # higher priority because thats what people were doing historically (setting
7129 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7130 # variable obsoleted/removed.
7131
7132 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7133 lt_ar_flags=$AR_FLAGS
7134
7135
7136
7137
7138
7139
7140 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7141 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7142
7143
7144
7145
7146
7147
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7149 printf %s "checking for archiver @FILE support... " >&6; }
7150 if test ${lt_cv_ar_at_file+y}
7151 then :
7152 printf %s "(cached) " >&6
7153 else $as_nop
7154 lt_cv_ar_at_file=no
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157
7158 int
7159 main (void)
7160 {
7161
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_cxx_try_compile "$LINENO"
7167 then :
7168 echo conftest.$ac_objext > conftest.lst
7169 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7171 (eval $lt_ar_try) 2>&5
7172 ac_status=$?
7173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7174 test $ac_status = 0; }
7175 if test 0 -eq "$ac_status"; then
7176 # Ensure the archiver fails upon bogus file names.
7177 rm -f conftest.$ac_objext libconftest.a
7178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7179 (eval $lt_ar_try) 2>&5
7180 ac_status=$?
7181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; }
7183 if test 0 -ne "$ac_status"; then
7184 lt_cv_ar_at_file=@
7185 fi
7186 fi
7187 rm -f conftest.* libconftest.a
7188
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7191
7192 fi
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7194 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7195
7196 if test no = "$lt_cv_ar_at_file"; then
7197 archiver_list_spec=
7198 else
7199 archiver_list_spec=$lt_cv_ar_at_file
7200 fi
7201
7202
7203
7204
7205
7206
7207
7208 if test -n "$ac_tool_prefix"; then
7209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7210 set dummy ${ac_tool_prefix}strip; ac_word=$2
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 printf %s "checking for $ac_word... " >&6; }
7213 if test ${ac_cv_prog_STRIP+y}
7214 then :
7215 printf %s "(cached) " >&6
7216 else $as_nop
7217 if test -n "$STRIP"; then
7218 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223 IFS=$as_save_IFS
7224 case $as_dir in #(((
7225 '') as_dir=./ ;;
7226 */) ;;
7227 *) as_dir=$as_dir/ ;;
7228 esac
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7233 break 2
7234 fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239 fi
7240 fi
7241 STRIP=$ac_cv_prog_STRIP
7242 if test -n "$STRIP"; then
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7244 printf "%s\n" "$STRIP" >&6; }
7245 else
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 printf "%s\n" "no" >&6; }
7248 fi
7249
7250
7251 fi
7252 if test -z "$ac_cv_prog_STRIP"; then
7253 ac_ct_STRIP=$STRIP
7254 # Extract the first word of "strip", so it can be a program name with args.
7255 set dummy strip; ac_word=$2
7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 printf %s "checking for $ac_word... " >&6; }
7258 if test ${ac_cv_prog_ac_ct_STRIP+y}
7259 then :
7260 printf %s "(cached) " >&6
7261 else $as_nop
7262 if test -n "$ac_ct_STRIP"; then
7263 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268 IFS=$as_save_IFS
7269 case $as_dir in #(((
7270 '') as_dir=./ ;;
7271 */) ;;
7272 *) as_dir=$as_dir/ ;;
7273 esac
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_ac_ct_STRIP="strip"
7277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7287 if test -n "$ac_ct_STRIP"; then
7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7289 printf "%s\n" "$ac_ct_STRIP" >&6; }
7290 else
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 printf "%s\n" "no" >&6; }
7293 fi
7294
7295 if test "x$ac_ct_STRIP" = x; then
7296 STRIP=":"
7297 else
7298 case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304 STRIP=$ac_ct_STRIP
7305 fi
7306 else
7307 STRIP="$ac_cv_prog_STRIP"
7308 fi
7309
7310 test -z "$STRIP" && STRIP=:
7311
7312
7313
7314
7315
7316
7317 if test -n "$ac_tool_prefix"; then
7318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 printf %s "checking for $ac_word... " >&6; }
7322 if test ${ac_cv_prog_RANLIB+y}
7323 then :
7324 printf %s "(cached) " >&6
7325 else $as_nop
7326 if test -n "$RANLIB"; then
7327 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332 IFS=$as_save_IFS
7333 case $as_dir in #(((
7334 '') as_dir=./ ;;
7335 */) ;;
7336 *) as_dir=$as_dir/ ;;
7337 esac
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 RANLIB=$ac_cv_prog_RANLIB
7351 if test -n "$RANLIB"; then
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7353 printf "%s\n" "$RANLIB" >&6; }
7354 else
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 printf "%s\n" "no" >&6; }
7357 fi
7358
7359
7360 fi
7361 if test -z "$ac_cv_prog_RANLIB"; then
7362 ac_ct_RANLIB=$RANLIB
7363 # Extract the first word of "ranlib", so it can be a program name with args.
7364 set dummy ranlib; ac_word=$2
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 printf %s "checking for $ac_word... " >&6; }
7367 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7368 then :
7369 printf %s "(cached) " >&6
7370 else $as_nop
7371 if test -n "$ac_ct_RANLIB"; then
7372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377 IFS=$as_save_IFS
7378 case $as_dir in #(((
7379 '') as_dir=./ ;;
7380 */) ;;
7381 *) as_dir=$as_dir/ ;;
7382 esac
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_RANLIB="ranlib"
7386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7396 if test -n "$ac_ct_RANLIB"; then
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7398 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7399 else
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 printf "%s\n" "no" >&6; }
7402 fi
7403
7404 if test "x$ac_ct_RANLIB" = x; then
7405 RANLIB=":"
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408 yes:)
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7412 esac
7413 RANLIB=$ac_ct_RANLIB
7414 fi
7415 else
7416 RANLIB="$ac_cv_prog_RANLIB"
7417 fi
7418
7419 test -z "$RANLIB" && RANLIB=:
7420
7421
7422
7423
7424
7425
7426 # Determine commands to create old-style static archives.
7427 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7428 old_postinstall_cmds='chmod 644 $oldlib'
7429 old_postuninstall_cmds=
7430
7431 if test -n "$RANLIB"; then
7432 case $host_os in
7433 bitrig* | openbsd*)
7434 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7435 ;;
7436 *)
7437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7438 ;;
7439 esac
7440 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7441 fi
7442
7443 case $host_os in
7444 darwin*)
7445 lock_old_archive_extraction=yes ;;
7446 *)
7447 lock_old_archive_extraction=no ;;
7448 esac
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 # If no C compiler was specified, use CC.
7489 LTCC=${LTCC-"$CC"}
7490
7491 # If no C compiler flags were specified, use CFLAGS.
7492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7493
7494 # Allow CC to be a program name with arguments.
7495 compiler=$CC
7496
7497
7498 # Check for command to grab the raw symbol name followed by C symbol from nm.
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7500 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7501 if test ${lt_cv_sys_global_symbol_pipe+y}
7502 then :
7503 printf %s "(cached) " >&6
7504 else $as_nop
7505
7506 # These are sane defaults that work on at least a few old systems.
7507 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7508
7509 # Character class describing NM global symbol codes.
7510 symcode='[BCDEGRST]'
7511
7512 # Regexp to match symbols that can be accessed directly from C.
7513 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7514
7515 # Define system-specific variables.
7516 case $host_os in
7517 aix*)
7518 symcode='[BCDT]'
7519 ;;
7520 cygwin* | mingw* | pw32* | cegcc*)
7521 symcode='[ABCDGISTW]'
7522 ;;
7523 hpux*)
7524 if test ia64 = "$host_cpu"; then
7525 symcode='[ABCDEGRST]'
7526 fi
7527 ;;
7528 irix* | nonstopux*)
7529 symcode='[BCDEGRST]'
7530 ;;
7531 osf*)
7532 symcode='[BCDEGQRST]'
7533 ;;
7534 solaris*)
7535 symcode='[BDRT]'
7536 ;;
7537 sco3.2v5*)
7538 symcode='[DT]'
7539 ;;
7540 sysv4.2uw2*)
7541 symcode='[DT]'
7542 ;;
7543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7544 symcode='[ABDT]'
7545 ;;
7546 sysv4)
7547 symcode='[DFNSTU]'
7548 ;;
7549 esac
7550
7551 # If we're using GNU nm, then use its standard symbol codes.
7552 case `$NM -V 2>&1` in
7553 *GNU* | *'with BFD'*)
7554 symcode='[ABCDGIRSTW]' ;;
7555 esac
7556
7557 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7558 # Gets list of data symbols to import.
7559 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7560 # Adjust the below global symbol transforms to fixup imported variables.
7561 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7562 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7563 lt_c_name_lib_hook="\
7564 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7565 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7566 else
7567 # Disable hooks by default.
7568 lt_cv_sys_global_symbol_to_import=
7569 lt_cdecl_hook=
7570 lt_c_name_hook=
7571 lt_c_name_lib_hook=
7572 fi
7573
7574 # Transform an extracted symbol line into a proper C declaration.
7575 # Some systems (esp. on ia64) link data and code symbols differently,
7576 # so use this general approach.
7577 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7578 $lt_cdecl_hook\
7579 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7580 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7581
7582 # Transform an extracted symbol line into symbol name and symbol address
7583 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7584 $lt_c_name_hook\
7585 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7586 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7587
7588 # Transform an extracted symbol line into symbol name with lib prefix and
7589 # symbol address.
7590 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7591 $lt_c_name_lib_hook\
7592 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7593 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7594 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7595
7596 # Handle CRLF in mingw tool chain
7597 opt_cr=
7598 case $build_os in
7599 mingw*)
7600 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7601 ;;
7602 esac
7603
7604 # Try without a prefix underscore, then with it.
7605 for ac_symprfx in "" "_"; do
7606
7607 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7608 symxfrm="\\1 $ac_symprfx\\2 \\2"
7609
7610 # Write the raw and C identifiers.
7611 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7612 # Fake it for dumpbin and say T for any non-static function,
7613 # D for any global variable and I for any imported variable.
7614 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7615 # which start with @ or ?.
7616 lt_cv_sys_global_symbol_pipe="$AWK '"\
7617 " {last_section=section; section=\$ 3};"\
7618 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7619 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7620 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7621 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7622 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7623 " \$ 0!~/External *\|/{next};"\
7624 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7625 " {if(hide[section]) next};"\
7626 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7627 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7628 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7629 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7630 " ' prfx=^$ac_symprfx"
7631 else
7632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7633 fi
7634 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7635
7636 # Check to see that the pipe works correctly.
7637 pipe_works=no
7638
7639 rm -f conftest*
7640 cat > conftest.$ac_ext <<_LT_EOF
7641 #ifdef __cplusplus
7642 extern "C" {
7643 #endif
7644 char nm_test_var;
7645 void nm_test_func(void);
7646 void nm_test_func(void){}
7647 #ifdef __cplusplus
7648 }
7649 #endif
7650 int main(){nm_test_var='a';nm_test_func();return(0);}
7651 _LT_EOF
7652
7653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7654 (eval $ac_compile) 2>&5
7655 ac_status=$?
7656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657 test $ac_status = 0; }; then
7658 # Now try to grab the symbols.
7659 nlist=conftest.nm
7660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7661 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7662 ac_status=$?
7663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7664 test $ac_status = 0; } && test -s "$nlist"; then
7665 # Try sorting and uniquifying the output.
7666 if sort "$nlist" | uniq > "$nlist"T; then
7667 mv -f "$nlist"T "$nlist"
7668 else
7669 rm -f "$nlist"T
7670 fi
7671
7672 # Make sure that we snagged all the symbols we need.
7673 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7674 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7675 cat <<_LT_EOF > conftest.$ac_ext
7676 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7677 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7678 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7679 relocations are performed -- see ld's documentation on pseudo-relocs. */
7680 # define LT_DLSYM_CONST
7681 #elif defined __osf__
7682 /* This system does not cope well with relocations in const data. */
7683 # define LT_DLSYM_CONST
7684 #else
7685 # define LT_DLSYM_CONST const
7686 #endif
7687
7688 #ifdef __cplusplus
7689 extern "C" {
7690 #endif
7691
7692 _LT_EOF
7693 # Now generate the symbol file.
7694 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7695
7696 cat <<_LT_EOF >> conftest.$ac_ext
7697
7698 /* The mapping between symbol names and symbols. */
7699 LT_DLSYM_CONST struct {
7700 const char *name;
7701 void *address;
7702 }
7703 lt__PROGRAM__LTX_preloaded_symbols[] =
7704 {
7705 { "@PROGRAM@", (void *) 0 },
7706 _LT_EOF
7707 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7708 cat <<\_LT_EOF >> conftest.$ac_ext
7709 {0, (void *) 0}
7710 };
7711
7712 /* This works around a problem in FreeBSD linker */
7713 #ifdef FREEBSD_WORKAROUND
7714 static const void *lt_preloaded_setup() {
7715 return lt__PROGRAM__LTX_preloaded_symbols;
7716 }
7717 #endif
7718
7719 #ifdef __cplusplus
7720 }
7721 #endif
7722 _LT_EOF
7723 # Now try linking the two files.
7724 mv conftest.$ac_objext conftstm.$ac_objext
7725 lt_globsym_save_LIBS=$LIBS
7726 lt_globsym_save_CFLAGS=$CFLAGS
7727 LIBS=conftstm.$ac_objext
7728 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7730 (eval $ac_link) 2>&5
7731 ac_status=$?
7732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7733 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7734 pipe_works=yes
7735 fi
7736 LIBS=$lt_globsym_save_LIBS
7737 CFLAGS=$lt_globsym_save_CFLAGS
7738 else
7739 echo "cannot find nm_test_func in $nlist" >&5
7740 fi
7741 else
7742 echo "cannot find nm_test_var in $nlist" >&5
7743 fi
7744 else
7745 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7746 fi
7747 else
7748 echo "$progname: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7750 fi
7751 rm -rf conftest* conftst*
7752
7753 # Do not use the global_symbol_pipe unless it works.
7754 if test yes = "$pipe_works"; then
7755 break
7756 else
7757 lt_cv_sys_global_symbol_pipe=
7758 fi
7759 done
7760
7761 fi
7762
7763 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7764 lt_cv_sys_global_symbol_to_cdecl=
7765 fi
7766 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7768 printf "%s\n" "failed" >&6; }
7769 else
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7771 printf "%s\n" "ok" >&6; }
7772 fi
7773
7774 # Response file support.
7775 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7776 nm_file_list_spec='@'
7777 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7778 nm_file_list_spec='@'
7779 fi
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7818 printf %s "checking for sysroot... " >&6; }
7819
7820 # Check whether --with-sysroot was given.
7821 if test ${with_sysroot+y}
7822 then :
7823 withval=$with_sysroot;
7824 else $as_nop
7825 with_sysroot=no
7826 fi
7827
7828
7829 lt_sysroot=
7830 case $with_sysroot in #(
7831 yes)
7832 if test yes = "$GCC"; then
7833 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7834 fi
7835 ;; #(
7836 /*)
7837 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7838 ;; #(
7839 no|'')
7840 ;; #(
7841 *)
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7843 printf "%s\n" "$with_sysroot" >&6; }
7844 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7845 ;;
7846 esac
7847
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7849 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7850
7851
7852
7853
7854
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7856 printf %s "checking for a working dd... " >&6; }
7857 if test ${ac_cv_path_lt_DD+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else $as_nop
7861 printf 0123456789abcdef0123456789abcdef >conftest.i
7862 cat conftest.i conftest.i >conftest2.i
7863 : ${lt_DD:=$DD}
7864 if test -z "$lt_DD"; then
7865 ac_path_lt_DD_found=false
7866 # Loop through the user's path and test for each of PROGNAME-LIST
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_prog in dd
7877 do
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7880 as_fn_executable_p "$ac_path_lt_DD" || continue
7881 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7882 cmp -s conftest.i conftest.out \
7883 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7884 fi
7885 $ac_path_lt_DD_found && break 3
7886 done
7887 done
7888 done
7889 IFS=$as_save_IFS
7890 if test -z "$ac_cv_path_lt_DD"; then
7891 :
7892 fi
7893 else
7894 ac_cv_path_lt_DD=$lt_DD
7895 fi
7896
7897 rm -f conftest.i conftest2.i conftest.out
7898 fi
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7900 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7901
7902
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7904 printf %s "checking how to truncate binary pipes... " >&6; }
7905 if test ${lt_cv_truncate_bin+y}
7906 then :
7907 printf %s "(cached) " >&6
7908 else $as_nop
7909 printf 0123456789abcdef0123456789abcdef >conftest.i
7910 cat conftest.i conftest.i >conftest2.i
7911 lt_cv_truncate_bin=
7912 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7913 cmp -s conftest.i conftest.out \
7914 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7915 fi
7916 rm -f conftest.i conftest2.i conftest.out
7917 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7918 fi
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7920 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7921
7922
7923
7924
7925
7926
7927
7928 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7929 func_cc_basename ()
7930 {
7931 for cc_temp in $*""; do
7932 case $cc_temp in
7933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7935 \-*) ;;
7936 *) break;;
7937 esac
7938 done
7939 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7940 }
7941
7942
7943 # Check whether --enable-libtool-lock was given.
7944 if test ${enable_libtool_lock+y}
7945 then :
7946 enableval=$enable_libtool_lock;
7947 fi
7948
7949 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7950
7951 # Some flags need to be propagated to the compiler or linker for good
7952 # libtool support.
7953 case $host in
7954 ia64-*-hpux*)
7955 # Find out what ABI is being produced by ac_compile, and set mode
7956 # options accordingly.
7957 echo 'int i;' > conftest.$ac_ext
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959 (eval $ac_compile) 2>&5
7960 ac_status=$?
7961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 case `/usr/bin/file conftest.$ac_objext` in
7964 *ELF-32*)
7965 HPUX_IA64_MODE=32
7966 ;;
7967 *ELF-64*)
7968 HPUX_IA64_MODE=64
7969 ;;
7970 esac
7971 fi
7972 rm -rf conftest*
7973 ;;
7974 *-*-irix6*)
7975 # Find out what ABI is being produced by ac_compile, and set linker
7976 # options accordingly.
7977 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7979 (eval $ac_compile) 2>&5
7980 ac_status=$?
7981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7982 test $ac_status = 0; }; then
7983 if test yes = "$lt_cv_prog_gnu_ld"; then
7984 case `/usr/bin/file conftest.$ac_objext` in
7985 *32-bit*)
7986 LD="${LD-ld} -melf32bsmip"
7987 ;;
7988 *N32*)
7989 LD="${LD-ld} -melf32bmipn32"
7990 ;;
7991 *64-bit*)
7992 LD="${LD-ld} -melf64bmip"
7993 ;;
7994 esac
7995 else
7996 case `/usr/bin/file conftest.$ac_objext` in
7997 *32-bit*)
7998 LD="${LD-ld} -32"
7999 ;;
8000 *N32*)
8001 LD="${LD-ld} -n32"
8002 ;;
8003 *64-bit*)
8004 LD="${LD-ld} -64"
8005 ;;
8006 esac
8007 fi
8008 fi
8009 rm -rf conftest*
8010 ;;
8011
8012 mips64*-*linux*)
8013 # Find out what ABI is being produced by ac_compile, and set linker
8014 # options accordingly.
8015 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8017 (eval $ac_compile) 2>&5
8018 ac_status=$?
8019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020 test $ac_status = 0; }; then
8021 emul=elf
8022 case `/usr/bin/file conftest.$ac_objext` in
8023 *32-bit*)
8024 emul="${emul}32"
8025 ;;
8026 *64-bit*)
8027 emul="${emul}64"
8028 ;;
8029 esac
8030 case `/usr/bin/file conftest.$ac_objext` in
8031 *MSB*)
8032 emul="${emul}btsmip"
8033 ;;
8034 *LSB*)
8035 emul="${emul}ltsmip"
8036 ;;
8037 esac
8038 case `/usr/bin/file conftest.$ac_objext` in
8039 *N32*)
8040 emul="${emul}n32"
8041 ;;
8042 esac
8043 LD="${LD-ld} -m $emul"
8044 fi
8045 rm -rf conftest*
8046 ;;
8047
8048 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8049 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8050 # Find out what ABI is being produced by ac_compile, and set linker
8051 # options accordingly. Note that the listed cases only cover the
8052 # situations where additional linker options are needed (such as when
8053 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8054 # vice versa); the common cases where no linker options are needed do
8055 # not appear in the list.
8056 echo 'int i;' > conftest.$ac_ext
8057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8058 (eval $ac_compile) 2>&5
8059 ac_status=$?
8060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061 test $ac_status = 0; }; then
8062 case `/usr/bin/file conftest.o` in
8063 *32-bit*)
8064 case $host in
8065 x86_64-*kfreebsd*-gnu)
8066 LD="${LD-ld} -m elf_i386_fbsd"
8067 ;;
8068 x86_64-*linux*)
8069 case `/usr/bin/file conftest.o` in
8070 *x86-64*)
8071 LD="${LD-ld} -m elf32_x86_64"
8072 ;;
8073 *)
8074 LD="${LD-ld} -m elf_i386"
8075 ;;
8076 esac
8077 ;;
8078 powerpc64le-*linux*)
8079 LD="${LD-ld} -m elf32lppclinux"
8080 ;;
8081 powerpc64-*linux*)
8082 LD="${LD-ld} -m elf32ppclinux"
8083 ;;
8084 s390x-*linux*)
8085 LD="${LD-ld} -m elf_s390"
8086 ;;
8087 sparc64-*linux*)
8088 LD="${LD-ld} -m elf32_sparc"
8089 ;;
8090 esac
8091 ;;
8092 *64-bit*)
8093 case $host in
8094 x86_64-*kfreebsd*-gnu)
8095 LD="${LD-ld} -m elf_x86_64_fbsd"
8096 ;;
8097 x86_64-*linux*)
8098 LD="${LD-ld} -m elf_x86_64"
8099 ;;
8100 powerpcle-*linux*)
8101 LD="${LD-ld} -m elf64lppc"
8102 ;;
8103 powerpc-*linux*)
8104 LD="${LD-ld} -m elf64ppc"
8105 ;;
8106 s390*-*linux*|s390*-*tpf*)
8107 LD="${LD-ld} -m elf64_s390"
8108 ;;
8109 sparc*-*linux*)
8110 LD="${LD-ld} -m elf64_sparc"
8111 ;;
8112 esac
8113 ;;
8114 esac
8115 fi
8116 rm -rf conftest*
8117 ;;
8118
8119 *-*-sco3.2v5*)
8120 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8121 SAVE_CFLAGS=$CFLAGS
8122 CFLAGS="$CFLAGS -belf"
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8124 printf %s "checking whether the C compiler needs -belf... " >&6; }
8125 if test ${lt_cv_cc_needs_belf+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else $as_nop
8129 ac_ext=c
8130 ac_cpp='$CPP $CPPFLAGS'
8131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137
8138 int
8139 main (void)
8140 {
8141
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_link "$LINENO"
8147 then :
8148 lt_cv_cc_needs_belf=yes
8149 else $as_nop
8150 lt_cv_cc_needs_belf=no
8151 fi
8152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8153 conftest$ac_exeext conftest.$ac_ext
8154 ac_ext=c
8155 ac_cpp='$CPP $CPPFLAGS'
8156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8159
8160 fi
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8162 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8163 if test yes != "$lt_cv_cc_needs_belf"; then
8164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8165 CFLAGS=$SAVE_CFLAGS
8166 fi
8167 ;;
8168 *-*solaris*)
8169 # Find out what ABI is being produced by ac_compile, and set linker
8170 # options accordingly.
8171 echo 'int i;' > conftest.$ac_ext
8172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8173 (eval $ac_compile) 2>&5
8174 ac_status=$?
8175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176 test $ac_status = 0; }; then
8177 case `/usr/bin/file conftest.o` in
8178 *64-bit*)
8179 case $lt_cv_prog_gnu_ld in
8180 yes*)
8181 case $host in
8182 i?86-*-solaris*|x86_64-*-solaris*)
8183 LD="${LD-ld} -m elf_x86_64"
8184 ;;
8185 sparc*-*-solaris*)
8186 LD="${LD-ld} -m elf64_sparc"
8187 ;;
8188 esac
8189 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8190 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8191 LD=${LD-ld}_sol2
8192 fi
8193 ;;
8194 *)
8195 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8196 LD="${LD-ld} -64"
8197 fi
8198 ;;
8199 esac
8200 ;;
8201 esac
8202 fi
8203 rm -rf conftest*
8204 ;;
8205 esac
8206
8207 need_locks=$enable_libtool_lock
8208
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}mt; ac_word=$2
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 printf %s "checking for $ac_word... " >&6; }
8214 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8215 then :
8216 printf %s "(cached) " >&6
8217 else $as_nop
8218 if test -n "$MANIFEST_TOOL"; then
8219 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 case $as_dir in #(((
8226 '') as_dir=./ ;;
8227 */) ;;
8228 *) as_dir=$as_dir/ ;;
8229 esac
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8243 if test -n "$MANIFEST_TOOL"; then
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8245 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8246 else
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 printf "%s\n" "no" >&6; }
8249 fi
8250
8251
8252 fi
8253 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8254 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8255 # Extract the first word of "mt", so it can be a program name with args.
8256 set dummy mt; ac_word=$2
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 printf %s "checking for $ac_word... " >&6; }
8259 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8260 then :
8261 printf %s "(cached) " >&6
8262 else $as_nop
8263 if test -n "$ac_ct_MANIFEST_TOOL"; then
8264 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269 IFS=$as_save_IFS
8270 case $as_dir in #(((
8271 '') as_dir=./ ;;
8272 */) ;;
8273 *) as_dir=$as_dir/ ;;
8274 esac
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8288 if test -n "$ac_ct_MANIFEST_TOOL"; then
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8290 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8291 else
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 printf "%s\n" "no" >&6; }
8294 fi
8295
8296 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8297 MANIFEST_TOOL=":"
8298 else
8299 case $cross_compiling:$ac_tool_warned in
8300 yes:)
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303 ac_tool_warned=yes ;;
8304 esac
8305 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8306 fi
8307 else
8308 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8309 fi
8310
8311 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8313 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8314 if test ${lt_cv_path_mainfest_tool+y}
8315 then :
8316 printf %s "(cached) " >&6
8317 else $as_nop
8318 lt_cv_path_mainfest_tool=no
8319 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8320 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8321 cat conftest.err >&5
8322 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8323 lt_cv_path_mainfest_tool=yes
8324 fi
8325 rm -f conftest*
8326 fi
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8328 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8329 if test yes != "$lt_cv_path_mainfest_tool"; then
8330 MANIFEST_TOOL=:
8331 fi
8332
8333
8334
8335
8336
8337
8338 case $host_os in
8339 rhapsody* | darwin*)
8340 if test -n "$ac_tool_prefix"; then
8341 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8342 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 printf %s "checking for $ac_word... " >&6; }
8345 if test ${ac_cv_prog_DSYMUTIL+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else $as_nop
8349 if test -n "$DSYMUTIL"; then
8350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355 IFS=$as_save_IFS
8356 case $as_dir in #(((
8357 '') as_dir=./ ;;
8358 */) ;;
8359 *) as_dir=$as_dir/ ;;
8360 esac
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8363 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367 done
8368 done
8369 IFS=$as_save_IFS
8370
8371 fi
8372 fi
8373 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8374 if test -n "$DSYMUTIL"; then
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8376 printf "%s\n" "$DSYMUTIL" >&6; }
8377 else
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 printf "%s\n" "no" >&6; }
8380 fi
8381
8382
8383 fi
8384 if test -z "$ac_cv_prog_DSYMUTIL"; then
8385 ac_ct_DSYMUTIL=$DSYMUTIL
8386 # Extract the first word of "dsymutil", so it can be a program name with args.
8387 set dummy dsymutil; ac_word=$2
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 printf %s "checking for $ac_word... " >&6; }
8390 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8391 then :
8392 printf %s "(cached) " >&6
8393 else $as_nop
8394 if test -n "$ac_ct_DSYMUTIL"; then
8395 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8399 do
8400 IFS=$as_save_IFS
8401 case $as_dir in #(((
8402 '') as_dir=./ ;;
8403 */) ;;
8404 *) as_dir=$as_dir/ ;;
8405 esac
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412 done
8413 done
8414 IFS=$as_save_IFS
8415
8416 fi
8417 fi
8418 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8419 if test -n "$ac_ct_DSYMUTIL"; then
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8421 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8422 else
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 printf "%s\n" "no" >&6; }
8425 fi
8426
8427 if test "x$ac_ct_DSYMUTIL" = x; then
8428 DSYMUTIL=":"
8429 else
8430 case $cross_compiling:$ac_tool_warned in
8431 yes:)
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434 ac_tool_warned=yes ;;
8435 esac
8436 DSYMUTIL=$ac_ct_DSYMUTIL
8437 fi
8438 else
8439 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8440 fi
8441
8442 if test -n "$ac_tool_prefix"; then
8443 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8444 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 printf %s "checking for $ac_word... " >&6; }
8447 if test ${ac_cv_prog_NMEDIT+y}
8448 then :
8449 printf %s "(cached) " >&6
8450 else $as_nop
8451 if test -n "$NMEDIT"; then
8452 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8453 else
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8456 do
8457 IFS=$as_save_IFS
8458 case $as_dir in #(((
8459 '') as_dir=./ ;;
8460 */) ;;
8461 *) as_dir=$as_dir/ ;;
8462 esac
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469 done
8470 done
8471 IFS=$as_save_IFS
8472
8473 fi
8474 fi
8475 NMEDIT=$ac_cv_prog_NMEDIT
8476 if test -n "$NMEDIT"; then
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8478 printf "%s\n" "$NMEDIT" >&6; }
8479 else
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 printf "%s\n" "no" >&6; }
8482 fi
8483
8484
8485 fi
8486 if test -z "$ac_cv_prog_NMEDIT"; then
8487 ac_ct_NMEDIT=$NMEDIT
8488 # Extract the first word of "nmedit", so it can be a program name with args.
8489 set dummy nmedit; ac_word=$2
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 printf %s "checking for $ac_word... " >&6; }
8492 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8493 then :
8494 printf %s "(cached) " >&6
8495 else $as_nop
8496 if test -n "$ac_ct_NMEDIT"; then
8497 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502 IFS=$as_save_IFS
8503 case $as_dir in #(((
8504 '') as_dir=./ ;;
8505 */) ;;
8506 *) as_dir=$as_dir/ ;;
8507 esac
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8510 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8512 break 2
8513 fi
8514 done
8515 done
8516 IFS=$as_save_IFS
8517
8518 fi
8519 fi
8520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8521 if test -n "$ac_ct_NMEDIT"; then
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8523 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8524 else
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 printf "%s\n" "no" >&6; }
8527 fi
8528
8529 if test "x$ac_ct_NMEDIT" = x; then
8530 NMEDIT=":"
8531 else
8532 case $cross_compiling:$ac_tool_warned in
8533 yes:)
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8536 ac_tool_warned=yes ;;
8537 esac
8538 NMEDIT=$ac_ct_NMEDIT
8539 fi
8540 else
8541 NMEDIT="$ac_cv_prog_NMEDIT"
8542 fi
8543
8544 if test -n "$ac_tool_prefix"; then
8545 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8546 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 printf %s "checking for $ac_word... " >&6; }
8549 if test ${ac_cv_prog_LIPO+y}
8550 then :
8551 printf %s "(cached) " >&6
8552 else $as_nop
8553 if test -n "$LIPO"; then
8554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559 IFS=$as_save_IFS
8560 case $as_dir in #(((
8561 '') as_dir=./ ;;
8562 */) ;;
8563 *) as_dir=$as_dir/ ;;
8564 esac
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8567 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8569 break 2
8570 fi
8571 done
8572 done
8573 IFS=$as_save_IFS
8574
8575 fi
8576 fi
8577 LIPO=$ac_cv_prog_LIPO
8578 if test -n "$LIPO"; then
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580 printf "%s\n" "$LIPO" >&6; }
8581 else
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 printf "%s\n" "no" >&6; }
8584 fi
8585
8586
8587 fi
8588 if test -z "$ac_cv_prog_LIPO"; then
8589 ac_ct_LIPO=$LIPO
8590 # Extract the first word of "lipo", so it can be a program name with args.
8591 set dummy lipo; ac_word=$2
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 printf %s "checking for $ac_word... " >&6; }
8594 if test ${ac_cv_prog_ac_ct_LIPO+y}
8595 then :
8596 printf %s "(cached) " >&6
8597 else $as_nop
8598 if test -n "$ac_ct_LIPO"; then
8599 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604 IFS=$as_save_IFS
8605 case $as_dir in #(((
8606 '') as_dir=./ ;;
8607 */) ;;
8608 *) as_dir=$as_dir/ ;;
8609 esac
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8612 ac_cv_prog_ac_ct_LIPO="lipo"
8613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8614 break 2
8615 fi
8616 done
8617 done
8618 IFS=$as_save_IFS
8619
8620 fi
8621 fi
8622 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8623 if test -n "$ac_ct_LIPO"; then
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8625 printf "%s\n" "$ac_ct_LIPO" >&6; }
8626 else
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 printf "%s\n" "no" >&6; }
8629 fi
8630
8631 if test "x$ac_ct_LIPO" = x; then
8632 LIPO=":"
8633 else
8634 case $cross_compiling:$ac_tool_warned in
8635 yes:)
8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8638 ac_tool_warned=yes ;;
8639 esac
8640 LIPO=$ac_ct_LIPO
8641 fi
8642 else
8643 LIPO="$ac_cv_prog_LIPO"
8644 fi
8645
8646 if test -n "$ac_tool_prefix"; then
8647 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8648 set dummy ${ac_tool_prefix}otool; ac_word=$2
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 printf %s "checking for $ac_word... " >&6; }
8651 if test ${ac_cv_prog_OTOOL+y}
8652 then :
8653 printf %s "(cached) " >&6
8654 else $as_nop
8655 if test -n "$OTOOL"; then
8656 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661 IFS=$as_save_IFS
8662 case $as_dir in #(((
8663 '') as_dir=./ ;;
8664 */) ;;
8665 *) as_dir=$as_dir/ ;;
8666 esac
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8669 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8671 break 2
8672 fi
8673 done
8674 done
8675 IFS=$as_save_IFS
8676
8677 fi
8678 fi
8679 OTOOL=$ac_cv_prog_OTOOL
8680 if test -n "$OTOOL"; then
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8682 printf "%s\n" "$OTOOL" >&6; }
8683 else
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 printf "%s\n" "no" >&6; }
8686 fi
8687
8688
8689 fi
8690 if test -z "$ac_cv_prog_OTOOL"; then
8691 ac_ct_OTOOL=$OTOOL
8692 # Extract the first word of "otool", so it can be a program name with args.
8693 set dummy otool; ac_word=$2
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 printf %s "checking for $ac_word... " >&6; }
8696 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8697 then :
8698 printf %s "(cached) " >&6
8699 else $as_nop
8700 if test -n "$ac_ct_OTOOL"; then
8701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706 IFS=$as_save_IFS
8707 case $as_dir in #(((
8708 '') as_dir=./ ;;
8709 */) ;;
8710 *) as_dir=$as_dir/ ;;
8711 esac
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8714 ac_cv_prog_ac_ct_OTOOL="otool"
8715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8716 break 2
8717 fi
8718 done
8719 done
8720 IFS=$as_save_IFS
8721
8722 fi
8723 fi
8724 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8725 if test -n "$ac_ct_OTOOL"; then
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8727 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8728 else
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 printf "%s\n" "no" >&6; }
8731 fi
8732
8733 if test "x$ac_ct_OTOOL" = x; then
8734 OTOOL=":"
8735 else
8736 case $cross_compiling:$ac_tool_warned in
8737 yes:)
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8739 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8740 ac_tool_warned=yes ;;
8741 esac
8742 OTOOL=$ac_ct_OTOOL
8743 fi
8744 else
8745 OTOOL="$ac_cv_prog_OTOOL"
8746 fi
8747
8748 if test -n "$ac_tool_prefix"; then
8749 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8750 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 printf %s "checking for $ac_word... " >&6; }
8753 if test ${ac_cv_prog_OTOOL64+y}
8754 then :
8755 printf %s "(cached) " >&6
8756 else $as_nop
8757 if test -n "$OTOOL64"; then
8758 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8759 else
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 for as_dir in $PATH
8762 do
8763 IFS=$as_save_IFS
8764 case $as_dir in #(((
8765 '') as_dir=./ ;;
8766 */) ;;
8767 *) as_dir=$as_dir/ ;;
8768 esac
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8771 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8773 break 2
8774 fi
8775 done
8776 done
8777 IFS=$as_save_IFS
8778
8779 fi
8780 fi
8781 OTOOL64=$ac_cv_prog_OTOOL64
8782 if test -n "$OTOOL64"; then
8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8784 printf "%s\n" "$OTOOL64" >&6; }
8785 else
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 printf "%s\n" "no" >&6; }
8788 fi
8789
8790
8791 fi
8792 if test -z "$ac_cv_prog_OTOOL64"; then
8793 ac_ct_OTOOL64=$OTOOL64
8794 # Extract the first word of "otool64", so it can be a program name with args.
8795 set dummy otool64; ac_word=$2
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 printf %s "checking for $ac_word... " >&6; }
8798 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8799 then :
8800 printf %s "(cached) " >&6
8801 else $as_nop
8802 if test -n "$ac_ct_OTOOL64"; then
8803 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8807 do
8808 IFS=$as_save_IFS
8809 case $as_dir in #(((
8810 '') as_dir=./ ;;
8811 */) ;;
8812 *) as_dir=$as_dir/ ;;
8813 esac
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8816 ac_cv_prog_ac_ct_OTOOL64="otool64"
8817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8818 break 2
8819 fi
8820 done
8821 done
8822 IFS=$as_save_IFS
8823
8824 fi
8825 fi
8826 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8827 if test -n "$ac_ct_OTOOL64"; then
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8829 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8830 else
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 printf "%s\n" "no" >&6; }
8833 fi
8834
8835 if test "x$ac_ct_OTOOL64" = x; then
8836 OTOOL64=":"
8837 else
8838 case $cross_compiling:$ac_tool_warned in
8839 yes:)
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8841 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8842 ac_tool_warned=yes ;;
8843 esac
8844 OTOOL64=$ac_ct_OTOOL64
8845 fi
8846 else
8847 OTOOL64="$ac_cv_prog_OTOOL64"
8848 fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8877 printf %s "checking for -single_module linker flag... " >&6; }
8878 if test ${lt_cv_apple_cc_single_mod+y}
8879 then :
8880 printf %s "(cached) " >&6
8881 else $as_nop
8882 lt_cv_apple_cc_single_mod=no
8883 if test -z "$LT_MULTI_MODULE"; then
8884 # By default we will add the -single_module flag. You can override
8885 # by either setting the environment variable LT_MULTI_MODULE
8886 # non-empty at configure time, or by adding -multi_module to the
8887 # link flags.
8888 rm -rf libconftest.dylib*
8889 echo "int foo(void){return 1;}" > conftest.c
8890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8891 -dynamiclib -Wl,-single_module conftest.c" >&5
8892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8894 _lt_result=$?
8895 # If there is a non-empty error log, and "single_module"
8896 # appears in it, assume the flag caused a linker warning
8897 if test -s conftest.err && $GREP single_module conftest.err; then
8898 cat conftest.err >&5
8899 # Otherwise, if the output was created with a 0 exit code from
8900 # the compiler, it worked.
8901 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8902 lt_cv_apple_cc_single_mod=yes
8903 else
8904 cat conftest.err >&5
8905 fi
8906 rm -rf libconftest.dylib*
8907 rm -f conftest.*
8908 fi
8909 fi
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8911 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8912
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8914 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8915 if test ${lt_cv_ld_exported_symbols_list+y}
8916 then :
8917 printf %s "(cached) " >&6
8918 else $as_nop
8919 lt_cv_ld_exported_symbols_list=no
8920 save_LDFLAGS=$LDFLAGS
8921 echo "_main" > conftest.sym
8922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925
8926 int
8927 main (void)
8928 {
8929
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"
8935 then :
8936 lt_cv_ld_exported_symbols_list=yes
8937 else $as_nop
8938 lt_cv_ld_exported_symbols_list=no
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8941 conftest$ac_exeext conftest.$ac_ext
8942 LDFLAGS=$save_LDFLAGS
8943
8944 fi
8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8946 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8947
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8949 printf %s "checking for -force_load linker flag... " >&6; }
8950 if test ${lt_cv_ld_force_load+y}
8951 then :
8952 printf %s "(cached) " >&6
8953 else $as_nop
8954 lt_cv_ld_force_load=no
8955 cat > conftest.c << _LT_EOF
8956 int forced_loaded() { return 2;}
8957 _LT_EOF
8958 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8959 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8960 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8961 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8962 echo "$RANLIB libconftest.a" >&5
8963 $RANLIB libconftest.a 2>&5
8964 cat > conftest.c << _LT_EOF
8965 int main() { return 0;}
8966 _LT_EOF
8967 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8968 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8969 _lt_result=$?
8970 if test -s conftest.err && $GREP force_load conftest.err; then
8971 cat conftest.err >&5
8972 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8973 lt_cv_ld_force_load=yes
8974 else
8975 cat conftest.err >&5
8976 fi
8977 rm -f conftest.err libconftest.a conftest conftest.c
8978 rm -rf conftest.dSYM
8979
8980 fi
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8982 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8983 case $host_os in
8984 rhapsody* | darwin1.[012])
8985 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8986 darwin1.*)
8987 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8988 darwin*) # darwin 5.x on
8989 # if running on 10.5 or later, the deployment target defaults
8990 # to the OS version, if on x86, and 10.4, the deployment
8991 # target defaults to 10.4. Don't you love it?
8992 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8993 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8994 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8995 10.[012][,.]*)
8996 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8997 10.*)
8998 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8999 esac
9000 ;;
9001 esac
9002 if test yes = "$lt_cv_apple_cc_single_mod"; then
9003 _lt_dar_single_mod='$single_module'
9004 fi
9005 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9006 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9007 else
9008 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9009 fi
9010 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9011 _lt_dsymutil='~$DSYMUTIL $lib || :'
9012 else
9013 _lt_dsymutil=
9014 fi
9015 ;;
9016 esac
9017
9018 # func_munge_path_list VARIABLE PATH
9019 # -----------------------------------
9020 # VARIABLE is name of variable containing _space_ separated list of
9021 # directories to be munged by the contents of PATH, which is string
9022 # having a format:
9023 # "DIR[:DIR]:"
9024 # string "DIR[ DIR]" will be prepended to VARIABLE
9025 # ":DIR[:DIR]"
9026 # string "DIR[ DIR]" will be appended to VARIABLE
9027 # "DIRP[:DIRP]::[DIRA:]DIRA"
9028 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9029 # "DIRA[ DIRA]" will be appended to VARIABLE
9030 # "DIR[:DIR]"
9031 # VARIABLE will be replaced by "DIR[ DIR]"
9032 func_munge_path_list ()
9033 {
9034 case x$2 in
9035 x)
9036 ;;
9037 *:)
9038 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9039 ;;
9040 x:*)
9041 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9042 ;;
9043 *::*)
9044 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9045 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9046 ;;
9047 *)
9048 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9049 ;;
9050 esac
9051 }
9052
9053 ac_header= ac_cache=
9054 for ac_item in $ac_header_c_list
9055 do
9056 if test $ac_cache; then
9057 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9058 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9059 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9060 fi
9061 ac_header= ac_cache=
9062 elif test $ac_header; then
9063 ac_cache=$ac_item
9064 else
9065 ac_header=$ac_item
9066 fi
9067 done
9068
9069
9070
9071
9072
9073
9074
9075
9076 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9077 then :
9078
9079 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9080
9081 fi
9082 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9083 "
9084 if test "x$ac_cv_header_dlfcn_h" = xyes
9085 then :
9086 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9087
9088 fi
9089
9090
9091
9092 func_stripname_cnf ()
9093 {
9094 case $2 in
9095 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9096 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9097 esac
9098 } # func_stripname_cnf
9099
9100
9101
9102
9103
9104 # Set options
9105
9106
9107
9108 enable_dlopen=no
9109
9110
9111 enable_win32_dll=no
9112
9113
9114 # Check whether --enable-shared was given.
9115 if test ${enable_shared+y}
9116 then :
9117 enableval=$enable_shared; p=${PACKAGE-default}
9118 case $enableval in
9119 yes) enable_shared=yes ;;
9120 no) enable_shared=no ;;
9121 *)
9122 enable_shared=no
9123 # Look at the argument we got. We use all the common list separators.
9124 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9125 for pkg in $enableval; do
9126 IFS=$lt_save_ifs
9127 if test "X$pkg" = "X$p"; then
9128 enable_shared=yes
9129 fi
9130 done
9131 IFS=$lt_save_ifs
9132 ;;
9133 esac
9134 else $as_nop
9135 enable_shared=yes
9136 fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146 # Check whether --enable-static was given.
9147 if test ${enable_static+y}
9148 then :
9149 enableval=$enable_static; p=${PACKAGE-default}
9150 case $enableval in
9151 yes) enable_static=yes ;;
9152 no) enable_static=no ;;
9153 *)
9154 enable_static=no
9155 # Look at the argument we got. We use all the common list separators.
9156 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9157 for pkg in $enableval; do
9158 IFS=$lt_save_ifs
9159 if test "X$pkg" = "X$p"; then
9160 enable_static=yes
9161 fi
9162 done
9163 IFS=$lt_save_ifs
9164 ;;
9165 esac
9166 else $as_nop
9167 enable_static=yes
9168 fi
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 # Check whether --with-pic was given.
9180 if test ${with_pic+y}
9181 then :
9182 withval=$with_pic; lt_p=${PACKAGE-default}
9183 case $withval in
9184 yes|no) pic_mode=$withval ;;
9185 *)
9186 pic_mode=default
9187 # Look at the argument we got. We use all the common list separators.
9188 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9189 for lt_pkg in $withval; do
9190 IFS=$lt_save_ifs
9191 if test "X$lt_pkg" = "X$lt_p"; then
9192 pic_mode=yes
9193 fi
9194 done
9195 IFS=$lt_save_ifs
9196 ;;
9197 esac
9198 else $as_nop
9199 pic_mode=default
9200 fi
9201
9202
9203
9204
9205
9206
9207
9208
9209 # Check whether --enable-fast-install was given.
9210 if test ${enable_fast_install+y}
9211 then :
9212 enableval=$enable_fast_install; p=${PACKAGE-default}
9213 case $enableval in
9214 yes) enable_fast_install=yes ;;
9215 no) enable_fast_install=no ;;
9216 *)
9217 enable_fast_install=no
9218 # Look at the argument we got. We use all the common list separators.
9219 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9220 for pkg in $enableval; do
9221 IFS=$lt_save_ifs
9222 if test "X$pkg" = "X$p"; then
9223 enable_fast_install=yes
9224 fi
9225 done
9226 IFS=$lt_save_ifs
9227 ;;
9228 esac
9229 else $as_nop
9230 enable_fast_install=yes
9231 fi
9232
9233
9234
9235
9236
9237
9238
9239
9240 shared_archive_member_spec=
9241 case $host,$enable_shared in
9242 power*-*-aix[5-9]*,yes)
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9244 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9245
9246 # Check whether --with-aix-soname was given.
9247 if test ${with_aix_soname+y}
9248 then :
9249 withval=$with_aix_soname; case $withval in
9250 aix|svr4|both)
9251 ;;
9252 *)
9253 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9254 ;;
9255 esac
9256 lt_cv_with_aix_soname=$with_aix_soname
9257 else $as_nop
9258 if test ${lt_cv_with_aix_soname+y}
9259 then :
9260 printf %s "(cached) " >&6
9261 else $as_nop
9262 lt_cv_with_aix_soname=aix
9263 fi
9264
9265 with_aix_soname=$lt_cv_with_aix_soname
9266 fi
9267
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9269 printf "%s\n" "$with_aix_soname" >&6; }
9270 if test aix != "$with_aix_soname"; then
9271 # For the AIX way of multilib, we name the shared archive member
9272 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9273 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9274 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9275 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9276 if test 64 = "${OBJECT_MODE-32}"; then
9277 shared_archive_member_spec=shr_64
9278 else
9279 shared_archive_member_spec=shr
9280 fi
9281 fi
9282 ;;
9283 *)
9284 with_aix_soname=aix
9285 ;;
9286 esac
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297 # This can be used to rebuild libtool when needed
9298 LIBTOOL_DEPS=$ltmain
9299
9300 # Always use our own libtool.
9301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332 test -z "$LN_S" && LN_S="ln -s"
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347 if test -n "${ZSH_VERSION+set}"; then
9348 setopt NO_GLOB_SUBST
9349 fi
9350
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9352 printf %s "checking for objdir... " >&6; }
9353 if test ${lt_cv_objdir+y}
9354 then :
9355 printf %s "(cached) " >&6
9356 else $as_nop
9357 rm -f .libs 2>/dev/null
9358 mkdir .libs 2>/dev/null
9359 if test -d .libs; then
9360 lt_cv_objdir=.libs
9361 else
9362 # MS-DOS does not allow filenames that begin with a dot.
9363 lt_cv_objdir=_libs
9364 fi
9365 rmdir .libs 2>/dev/null
9366 fi
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9368 printf "%s\n" "$lt_cv_objdir" >&6; }
9369 objdir=$lt_cv_objdir
9370
9371
9372
9373
9374
9375 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9376
9377
9378
9379
9380 case $host_os in
9381 aix3*)
9382 # AIX sometimes has problems with the GCC collect2 program. For some
9383 # reason, if we set the COLLECT_NAMES environment variable, the problems
9384 # vanish in a puff of smoke.
9385 if test set != "${COLLECT_NAMES+set}"; then
9386 COLLECT_NAMES=
9387 export COLLECT_NAMES
9388 fi
9389 ;;
9390 esac
9391
9392 # Global variables:
9393 ofile=libtool
9394 can_build_shared=yes
9395
9396 # All known linkers require a '.a' archive for static linking (except MSVC and
9397 # ICC, which need '.lib').
9398 libext=a
9399
9400 with_gnu_ld=$lt_cv_prog_gnu_ld
9401
9402 old_CC=$CC
9403 old_CFLAGS=$CFLAGS
9404
9405 # Set sane defaults for various variables
9406 test -z "$CC" && CC=cc
9407 test -z "$LTCC" && LTCC=$CC
9408 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9409 test -z "$LD" && LD=ld
9410 test -z "$ac_objext" && ac_objext=o
9411
9412 func_cc_basename $compiler
9413 cc_basename=$func_cc_basename_result
9414
9415
9416 # Only perform the check for file, if the check method requires it
9417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9418 case $deplibs_check_method in
9419 file_magic*)
9420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9422 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9423 if test ${lt_cv_path_MAGIC_CMD+y}
9424 then :
9425 printf %s "(cached) " >&6
9426 else $as_nop
9427 case $MAGIC_CMD in
9428 [\\/*] | ?:[\\/]*)
9429 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9430 ;;
9431 *)
9432 lt_save_MAGIC_CMD=$MAGIC_CMD
9433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9435 for ac_dir in $ac_dummy; do
9436 IFS=$lt_save_ifs
9437 test -z "$ac_dir" && ac_dir=.
9438 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9439 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9440 if test -n "$file_magic_test_file"; then
9441 case $deplibs_check_method in
9442 "file_magic "*)
9443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9444 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9446 $EGREP "$file_magic_regex" > /dev/null; then
9447 :
9448 else
9449 cat <<_LT_EOF 1>&2
9450
9451 *** Warning: the command libtool uses to detect shared libraries,
9452 *** $file_magic_cmd, produces output that libtool cannot recognize.
9453 *** The result is that libtool may fail to recognize shared libraries
9454 *** as such. This will affect the creation of libtool libraries that
9455 *** depend on shared libraries, but programs linked with such libtool
9456 *** libraries will work regardless of this problem. Nevertheless, you
9457 *** may want to report the problem to your system manager and/or to
9458 *** [email protected]
9459
9460 _LT_EOF
9461 fi ;;
9462 esac
9463 fi
9464 break
9465 fi
9466 done
9467 IFS=$lt_save_ifs
9468 MAGIC_CMD=$lt_save_MAGIC_CMD
9469 ;;
9470 esac
9471 fi
9472
9473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9474 if test -n "$MAGIC_CMD"; then
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9476 printf "%s\n" "$MAGIC_CMD" >&6; }
9477 else
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 printf "%s\n" "no" >&6; }
9480 fi
9481
9482
9483
9484
9485
9486 if test -z "$lt_cv_path_MAGIC_CMD"; then
9487 if test -n "$ac_tool_prefix"; then
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9489 printf %s "checking for file... " >&6; }
9490 if test ${lt_cv_path_MAGIC_CMD+y}
9491 then :
9492 printf %s "(cached) " >&6
9493 else $as_nop
9494 case $MAGIC_CMD in
9495 [\\/*] | ?:[\\/]*)
9496 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9497 ;;
9498 *)
9499 lt_save_MAGIC_CMD=$MAGIC_CMD
9500 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9502 for ac_dir in $ac_dummy; do
9503 IFS=$lt_save_ifs
9504 test -z "$ac_dir" && ac_dir=.
9505 if test -f "$ac_dir/file"; then
9506 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9507 if test -n "$file_magic_test_file"; then
9508 case $deplibs_check_method in
9509 "file_magic "*)
9510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9511 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9513 $EGREP "$file_magic_regex" > /dev/null; then
9514 :
9515 else
9516 cat <<_LT_EOF 1>&2
9517
9518 *** Warning: the command libtool uses to detect shared libraries,
9519 *** $file_magic_cmd, produces output that libtool cannot recognize.
9520 *** The result is that libtool may fail to recognize shared libraries
9521 *** as such. This will affect the creation of libtool libraries that
9522 *** depend on shared libraries, but programs linked with such libtool
9523 *** libraries will work regardless of this problem. Nevertheless, you
9524 *** may want to report the problem to your system manager and/or to
9525 *** [email protected]
9526
9527 _LT_EOF
9528 fi ;;
9529 esac
9530 fi
9531 break
9532 fi
9533 done
9534 IFS=$lt_save_ifs
9535 MAGIC_CMD=$lt_save_MAGIC_CMD
9536 ;;
9537 esac
9538 fi
9539
9540 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9541 if test -n "$MAGIC_CMD"; then
9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9543 printf "%s\n" "$MAGIC_CMD" >&6; }
9544 else
9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 printf "%s\n" "no" >&6; }
9547 fi
9548
9549
9550 else
9551 MAGIC_CMD=:
9552 fi
9553 fi
9554
9555 fi
9556 ;;
9557 esac
9558
9559 # Use C for the default configuration in the libtool script
9560
9561 lt_save_CC=$CC
9562 ac_ext=c
9563 ac_cpp='$CPP $CPPFLAGS'
9564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9567
9568
9569 # Source file extension for C test sources.
9570 ac_ext=c
9571
9572 # Object file extension for compiled C test sources.
9573 objext=o
9574 objext=$objext
9575
9576 # Code to be used in simple compile tests
9577 lt_simple_compile_test_code="int some_variable = 0;"
9578
9579 # Code to be used in simple link tests
9580 lt_simple_link_test_code='int main(){return(0);}'
9581
9582
9583
9584
9585
9586
9587
9588 # If no C compiler was specified, use CC.
9589 LTCC=${LTCC-"$CC"}
9590
9591 # If no C compiler flags were specified, use CFLAGS.
9592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9593
9594 # Allow CC to be a program name with arguments.
9595 compiler=$CC
9596
9597 # Save the default compiler, since it gets overwritten when the other
9598 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9599 compiler_DEFAULT=$CC
9600
9601 # save warnings/boilerplate of simple test code
9602 ac_outfile=conftest.$ac_objext
9603 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9604 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9605 _lt_compiler_boilerplate=`cat conftest.err`
9606 $RM conftest*
9607
9608 ac_outfile=conftest.$ac_objext
9609 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9610 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9611 _lt_linker_boilerplate=`cat conftest.err`
9612 $RM -r conftest*
9613
9614
9615 ## CAVEAT EMPTOR:
9616 ## There is no encapsulation within the following macros, do not change
9617 ## the running order or otherwise move them around unless you know exactly
9618 ## what you are doing...
9619 if test -n "$compiler"; then
9620
9621 lt_prog_compiler_no_builtin_flag=
9622
9623 if test yes = "$GCC"; then
9624 case $cc_basename in
9625 nvcc*)
9626 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9627 *)
9628 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9629 esac
9630
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9632 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9633 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9634 then :
9635 printf %s "(cached) " >&6
9636 else $as_nop
9637 lt_cv_prog_compiler_rtti_exceptions=no
9638 ac_outfile=conftest.$ac_objext
9639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9640 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9641 # Insert the option either (1) after the last *FLAGS variable, or
9642 # (2) before a word containing "conftest.", or (3) at the end.
9643 # Note that $ac_compile itself does not contain backslashes and begins
9644 # with a dollar sign (not a hyphen), so the echo should work correctly.
9645 # The option is referenced via a variable to avoid confusing sed.
9646 lt_compile=`echo "$ac_compile" | $SED \
9647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9649 -e 's:$: $lt_compiler_flag:'`
9650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9651 (eval "$lt_compile" 2>conftest.err)
9652 ac_status=$?
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 if (exit $ac_status) && test -s "$ac_outfile"; then
9656 # The compiler can only warn and ignore the option if not recognized
9657 # So say no if there are warnings other than the usual output.
9658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9661 lt_cv_prog_compiler_rtti_exceptions=yes
9662 fi
9663 fi
9664 $RM conftest*
9665
9666 fi
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9668 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9669
9670 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9671 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9672 else
9673 :
9674 fi
9675
9676 fi
9677
9678
9679
9680
9681
9682
9683 lt_prog_compiler_wl=
9684 lt_prog_compiler_pic=
9685 lt_prog_compiler_static=
9686
9687
9688 if test yes = "$GCC"; then
9689 lt_prog_compiler_wl='-Wl,'
9690 lt_prog_compiler_static='-static'
9691
9692 case $host_os in
9693 aix*)
9694 # All AIX code is PIC.
9695 if test ia64 = "$host_cpu"; then
9696 # AIX 5 now supports IA64 processor
9697 lt_prog_compiler_static='-Bstatic'
9698 fi
9699 lt_prog_compiler_pic='-fPIC'
9700 ;;
9701
9702 amigaos*)
9703 case $host_cpu in
9704 powerpc)
9705 # see comment about AmigaOS4 .so support
9706 lt_prog_compiler_pic='-fPIC'
9707 ;;
9708 m68k)
9709 # FIXME: we need at least 68020 code to build shared libraries, but
9710 # adding the '-m68020' flag to GCC prevents building anything better,
9711 # like '-m68040'.
9712 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9713 ;;
9714 esac
9715 ;;
9716
9717 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9718 # PIC is the default for these OSes.
9719 ;;
9720
9721 mingw* | cygwin* | pw32* | os2* | cegcc*)
9722 # This hack is so that the source file can tell whether it is being
9723 # built for inclusion in a dll (and should export symbols for example).
9724 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9725 # (--disable-auto-import) libraries
9726 lt_prog_compiler_pic='-DDLL_EXPORT'
9727 case $host_os in
9728 os2*)
9729 lt_prog_compiler_static='$wl-static'
9730 ;;
9731 esac
9732 ;;
9733
9734 darwin* | rhapsody*)
9735 # PIC is the default on this platform
9736 # Common symbols not allowed in MH_DYLIB files
9737 lt_prog_compiler_pic='-fno-common'
9738 ;;
9739
9740 haiku*)
9741 # PIC is the default for Haiku.
9742 # The "-static" flag exists, but is broken.
9743 lt_prog_compiler_static=
9744 ;;
9745
9746 hpux*)
9747 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9748 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9749 # sets the default TLS model and affects inlining.
9750 case $host_cpu in
9751 hppa*64*)
9752 # +Z the default
9753 ;;
9754 *)
9755 lt_prog_compiler_pic='-fPIC'
9756 ;;
9757 esac
9758 ;;
9759
9760 interix[3-9]*)
9761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9762 # Instead, we relocate shared libraries at runtime.
9763 ;;
9764
9765 msdosdjgpp*)
9766 # Just because we use GCC doesn't mean we suddenly get shared libraries
9767 # on systems that don't support them.
9768 lt_prog_compiler_can_build_shared=no
9769 enable_shared=no
9770 ;;
9771
9772 *nto* | *qnx*)
9773 # QNX uses GNU C++, but need to define -shared option too, otherwise
9774 # it will coredump.
9775 lt_prog_compiler_pic='-fPIC -shared'
9776 ;;
9777
9778 sysv4*MP*)
9779 if test -d /usr/nec; then
9780 lt_prog_compiler_pic=-Kconform_pic
9781 fi
9782 ;;
9783
9784 *)
9785 lt_prog_compiler_pic='-fPIC'
9786 ;;
9787 esac
9788
9789 case $cc_basename in
9790 nvcc*) # Cuda Compiler Driver 2.2
9791 lt_prog_compiler_wl='-Xlinker '
9792 if test -n "$lt_prog_compiler_pic"; then
9793 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9794 fi
9795 ;;
9796 esac
9797 else
9798 # PORTME Check for flag to pass linker flags through the system compiler.
9799 case $host_os in
9800 aix*)
9801 lt_prog_compiler_wl='-Wl,'
9802 if test ia64 = "$host_cpu"; then
9803 # AIX 5 now supports IA64 processor
9804 lt_prog_compiler_static='-Bstatic'
9805 else
9806 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9807 fi
9808 ;;
9809
9810 darwin* | rhapsody*)
9811 # PIC is the default on this platform
9812 # Common symbols not allowed in MH_DYLIB files
9813 lt_prog_compiler_pic='-fno-common'
9814 case $cc_basename in
9815 nagfor*)
9816 # NAG Fortran compiler
9817 lt_prog_compiler_wl='-Wl,-Wl,,'
9818 lt_prog_compiler_pic='-PIC'
9819 lt_prog_compiler_static='-Bstatic'
9820 ;;
9821 esac
9822 ;;
9823
9824 mingw* | cygwin* | pw32* | os2* | cegcc*)
9825 # This hack is so that the source file can tell whether it is being
9826 # built for inclusion in a dll (and should export symbols for example).
9827 lt_prog_compiler_pic='-DDLL_EXPORT'
9828 case $host_os in
9829 os2*)
9830 lt_prog_compiler_static='$wl-static'
9831 ;;
9832 esac
9833 ;;
9834
9835 hpux9* | hpux10* | hpux11*)
9836 lt_prog_compiler_wl='-Wl,'
9837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9838 # not for PA HP-UX.
9839 case $host_cpu in
9840 hppa*64*|ia64*)
9841 # +Z the default
9842 ;;
9843 *)
9844 lt_prog_compiler_pic='+Z'
9845 ;;
9846 esac
9847 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9848 lt_prog_compiler_static='$wl-a ${wl}archive'
9849 ;;
9850
9851 irix5* | irix6* | nonstopux*)
9852 lt_prog_compiler_wl='-Wl,'
9853 # PIC (with -KPIC) is the default.
9854 lt_prog_compiler_static='-non_shared'
9855 ;;
9856
9857 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9858 case $cc_basename in
9859 # old Intel for x86_64, which still supported -KPIC.
9860 ecc*)
9861 lt_prog_compiler_wl='-Wl,'
9862 lt_prog_compiler_pic='-KPIC'
9863 lt_prog_compiler_static='-static'
9864 ;;
9865 # icc used to be incompatible with GCC.
9866 # ICC 10 doesn't accept -KPIC any more.
9867 icc* | ifort*)
9868 lt_prog_compiler_wl='-Wl,'
9869 lt_prog_compiler_pic='-fPIC'
9870 lt_prog_compiler_static='-static'
9871 ;;
9872 # Lahey Fortran 8.1.
9873 lf95*)
9874 lt_prog_compiler_wl='-Wl,'
9875 lt_prog_compiler_pic='--shared'
9876 lt_prog_compiler_static='--static'
9877 ;;
9878 nagfor*)
9879 # NAG Fortran compiler
9880 lt_prog_compiler_wl='-Wl,-Wl,,'
9881 lt_prog_compiler_pic='-PIC'
9882 lt_prog_compiler_static='-Bstatic'
9883 ;;
9884 tcc*)
9885 # Fabrice Bellard et al's Tiny C Compiler
9886 lt_prog_compiler_wl='-Wl,'
9887 lt_prog_compiler_pic='-fPIC'
9888 lt_prog_compiler_static='-static'
9889 ;;
9890 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9891 # Portland Group compilers (*not* the Pentium gcc compiler,
9892 # which looks to be a dead project)
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='-fpic'
9895 lt_prog_compiler_static='-Bstatic'
9896 ;;
9897 ccc*)
9898 lt_prog_compiler_wl='-Wl,'
9899 # All Alpha code is PIC.
9900 lt_prog_compiler_static='-non_shared'
9901 ;;
9902 xl* | bgxl* | bgf* | mpixl*)
9903 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='-qpic'
9906 lt_prog_compiler_static='-qstaticlink'
9907 ;;
9908 *)
9909 case `$CC -V 2>&1 | sed 5q` in
9910 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9911 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 lt_prog_compiler_wl=''
9915 ;;
9916 *Sun\ F* | *Sun*Fortran*)
9917 lt_prog_compiler_pic='-KPIC'
9918 lt_prog_compiler_static='-Bstatic'
9919 lt_prog_compiler_wl='-Qoption ld '
9920 ;;
9921 *Sun\ C*)
9922 # Sun C 5.9
9923 lt_prog_compiler_pic='-KPIC'
9924 lt_prog_compiler_static='-Bstatic'
9925 lt_prog_compiler_wl='-Wl,'
9926 ;;
9927 *Intel*\ [CF]*Compiler*)
9928 lt_prog_compiler_wl='-Wl,'
9929 lt_prog_compiler_pic='-fPIC'
9930 lt_prog_compiler_static='-static'
9931 ;;
9932 *Portland\ Group*)
9933 lt_prog_compiler_wl='-Wl,'
9934 lt_prog_compiler_pic='-fpic'
9935 lt_prog_compiler_static='-Bstatic'
9936 ;;
9937 esac
9938 ;;
9939 esac
9940 ;;
9941
9942 newsos6)
9943 lt_prog_compiler_pic='-KPIC'
9944 lt_prog_compiler_static='-Bstatic'
9945 ;;
9946
9947 *nto* | *qnx*)
9948 # QNX uses GNU C++, but need to define -shared option too, otherwise
9949 # it will coredump.
9950 lt_prog_compiler_pic='-fPIC -shared'
9951 ;;
9952
9953 osf3* | osf4* | osf5*)
9954 lt_prog_compiler_wl='-Wl,'
9955 # All OSF/1 code is PIC.
9956 lt_prog_compiler_static='-non_shared'
9957 ;;
9958
9959 rdos*)
9960 lt_prog_compiler_static='-non_shared'
9961 ;;
9962
9963 solaris*)
9964 lt_prog_compiler_pic='-KPIC'
9965 lt_prog_compiler_static='-Bstatic'
9966 case $cc_basename in
9967 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9968 lt_prog_compiler_wl='-Qoption ld ';;
9969 *)
9970 lt_prog_compiler_wl='-Wl,';;
9971 esac
9972 ;;
9973
9974 sunos4*)
9975 lt_prog_compiler_wl='-Qoption ld '
9976 lt_prog_compiler_pic='-PIC'
9977 lt_prog_compiler_static='-Bstatic'
9978 ;;
9979
9980 sysv4 | sysv4.2uw2* | sysv4.3*)
9981 lt_prog_compiler_wl='-Wl,'
9982 lt_prog_compiler_pic='-KPIC'
9983 lt_prog_compiler_static='-Bstatic'
9984 ;;
9985
9986 sysv4*MP*)
9987 if test -d /usr/nec; then
9988 lt_prog_compiler_pic='-Kconform_pic'
9989 lt_prog_compiler_static='-Bstatic'
9990 fi
9991 ;;
9992
9993 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9994 lt_prog_compiler_wl='-Wl,'
9995 lt_prog_compiler_pic='-KPIC'
9996 lt_prog_compiler_static='-Bstatic'
9997 ;;
9998
9999 unicos*)
10000 lt_prog_compiler_wl='-Wl,'
10001 lt_prog_compiler_can_build_shared=no
10002 ;;
10003
10004 uts4*)
10005 lt_prog_compiler_pic='-pic'
10006 lt_prog_compiler_static='-Bstatic'
10007 ;;
10008
10009 *)
10010 lt_prog_compiler_can_build_shared=no
10011 ;;
10012 esac
10013 fi
10014
10015 case $host_os in
10016 # For platforms that do not support PIC, -DPIC is meaningless:
10017 *djgpp*)
10018 lt_prog_compiler_pic=
10019 ;;
10020 *)
10021 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10022 ;;
10023 esac
10024
10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10026 printf %s "checking for $compiler option to produce PIC... " >&6; }
10027 if test ${lt_cv_prog_compiler_pic+y}
10028 then :
10029 printf %s "(cached) " >&6
10030 else $as_nop
10031 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10032 fi
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10034 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10035 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10036
10037 #
10038 # Check to make sure the PIC flag actually works.
10039 #
10040 if test -n "$lt_prog_compiler_pic"; then
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10042 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10043 if test ${lt_cv_prog_compiler_pic_works+y}
10044 then :
10045 printf %s "(cached) " >&6
10046 else $as_nop
10047 lt_cv_prog_compiler_pic_works=no
10048 ac_outfile=conftest.$ac_objext
10049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10050 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10051 # Insert the option either (1) after the last *FLAGS variable, or
10052 # (2) before a word containing "conftest.", or (3) at the end.
10053 # Note that $ac_compile itself does not contain backslashes and begins
10054 # with a dollar sign (not a hyphen), so the echo should work correctly.
10055 # The option is referenced via a variable to avoid confusing sed.
10056 lt_compile=`echo "$ac_compile" | $SED \
10057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10059 -e 's:$: $lt_compiler_flag:'`
10060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10061 (eval "$lt_compile" 2>conftest.err)
10062 ac_status=$?
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 if (exit $ac_status) && test -s "$ac_outfile"; then
10066 # The compiler can only warn and ignore the option if not recognized
10067 # So say no if there are warnings other than the usual output.
10068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10070 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10071 lt_cv_prog_compiler_pic_works=yes
10072 fi
10073 fi
10074 $RM conftest*
10075
10076 fi
10077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10078 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10079
10080 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10081 case $lt_prog_compiler_pic in
10082 "" | " "*) ;;
10083 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10084 esac
10085 else
10086 lt_prog_compiler_pic=
10087 lt_prog_compiler_can_build_shared=no
10088 fi
10089
10090 fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102 #
10103 # Check to make sure the static flag actually works.
10104 #
10105 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10107 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10108 if test ${lt_cv_prog_compiler_static_works+y}
10109 then :
10110 printf %s "(cached) " >&6
10111 else $as_nop
10112 lt_cv_prog_compiler_static_works=no
10113 save_LDFLAGS=$LDFLAGS
10114 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10115 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10116 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10117 # The linker can only warn and ignore the option if not recognized
10118 # So say no if there are warnings
10119 if test -s conftest.err; then
10120 # Append any errors to the config.log.
10121 cat conftest.err 1>&5
10122 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10124 if diff conftest.exp conftest.er2 >/dev/null; then
10125 lt_cv_prog_compiler_static_works=yes
10126 fi
10127 else
10128 lt_cv_prog_compiler_static_works=yes
10129 fi
10130 fi
10131 $RM -r conftest*
10132 LDFLAGS=$save_LDFLAGS
10133
10134 fi
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10136 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10137
10138 if test yes = "$lt_cv_prog_compiler_static_works"; then
10139 :
10140 else
10141 lt_prog_compiler_static=
10142 fi
10143
10144
10145
10146
10147
10148
10149
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10151 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10152 if test ${lt_cv_prog_compiler_c_o+y}
10153 then :
10154 printf %s "(cached) " >&6
10155 else $as_nop
10156 lt_cv_prog_compiler_c_o=no
10157 $RM -r conftest 2>/dev/null
10158 mkdir conftest
10159 cd conftest
10160 mkdir out
10161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10162
10163 lt_compiler_flag="-o out/conftest2.$ac_objext"
10164 # Insert the option either (1) after the last *FLAGS variable, or
10165 # (2) before a word containing "conftest.", or (3) at the end.
10166 # Note that $ac_compile itself does not contain backslashes and begins
10167 # with a dollar sign (not a hyphen), so the echo should work correctly.
10168 lt_compile=`echo "$ac_compile" | $SED \
10169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10171 -e 's:$: $lt_compiler_flag:'`
10172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10173 (eval "$lt_compile" 2>out/conftest.err)
10174 ac_status=$?
10175 cat out/conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10178 then
10179 # The compiler can only warn and ignore the option if not recognized
10180 # So say no if there are warnings
10181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10184 lt_cv_prog_compiler_c_o=yes
10185 fi
10186 fi
10187 chmod u+w . 2>&5
10188 $RM conftest*
10189 # SGI C++ compiler will create directory out/ii_files/ for
10190 # template instantiation
10191 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10192 $RM out/* && rmdir out
10193 cd ..
10194 $RM -r conftest
10195 $RM conftest*
10196
10197 fi
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10199 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10200
10201
10202
10203
10204
10205
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10207 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10208 if test ${lt_cv_prog_compiler_c_o+y}
10209 then :
10210 printf %s "(cached) " >&6
10211 else $as_nop
10212 lt_cv_prog_compiler_c_o=no
10213 $RM -r conftest 2>/dev/null
10214 mkdir conftest
10215 cd conftest
10216 mkdir out
10217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10218
10219 lt_compiler_flag="-o out/conftest2.$ac_objext"
10220 # Insert the option either (1) after the last *FLAGS variable, or
10221 # (2) before a word containing "conftest.", or (3) at the end.
10222 # Note that $ac_compile itself does not contain backslashes and begins
10223 # with a dollar sign (not a hyphen), so the echo should work correctly.
10224 lt_compile=`echo "$ac_compile" | $SED \
10225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10227 -e 's:$: $lt_compiler_flag:'`
10228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10229 (eval "$lt_compile" 2>out/conftest.err)
10230 ac_status=$?
10231 cat out/conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10234 then
10235 # The compiler can only warn and ignore the option if not recognized
10236 # So say no if there are warnings
10237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10240 lt_cv_prog_compiler_c_o=yes
10241 fi
10242 fi
10243 chmod u+w . 2>&5
10244 $RM conftest*
10245 # SGI C++ compiler will create directory out/ii_files/ for
10246 # template instantiation
10247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10248 $RM out/* && rmdir out
10249 cd ..
10250 $RM -r conftest
10251 $RM conftest*
10252
10253 fi
10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10255 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10256
10257
10258
10259
10260 hard_links=nottested
10261 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10262 # do not overwrite the value of need_locks provided by the user
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10264 printf %s "checking if we can lock with hard links... " >&6; }
10265 hard_links=yes
10266 $RM conftest*
10267 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10268 touch conftest.a
10269 ln conftest.a conftest.b 2>&5 || hard_links=no
10270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10272 printf "%s\n" "$hard_links" >&6; }
10273 if test no = "$hard_links"; then
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10275 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10276 need_locks=warn
10277 fi
10278 else
10279 need_locks=no
10280 fi
10281
10282
10283
10284
10285
10286
10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10288 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10289
10290 runpath_var=
10291 allow_undefined_flag=
10292 always_export_symbols=no
10293 archive_cmds=
10294 archive_expsym_cmds=
10295 compiler_needs_object=no
10296 enable_shared_with_static_runtimes=no
10297 export_dynamic_flag_spec=
10298 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10299 hardcode_automatic=no
10300 hardcode_direct=no
10301 hardcode_direct_absolute=no
10302 hardcode_libdir_flag_spec=
10303 hardcode_libdir_separator=
10304 hardcode_minus_L=no
10305 hardcode_shlibpath_var=unsupported
10306 inherit_rpath=no
10307 link_all_deplibs=unknown
10308 module_cmds=
10309 module_expsym_cmds=
10310 old_archive_from_new_cmds=
10311 old_archive_from_expsyms_cmds=
10312 thread_safe_flag_spec=
10313 whole_archive_flag_spec=
10314 # include_expsyms should be a list of space-separated symbols to be *always*
10315 # included in the symbol list
10316 include_expsyms=
10317 # exclude_expsyms can be an extended regexp of symbols to exclude
10318 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10319 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10320 # as well as any symbol that contains 'd'.
10321 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10323 # platforms (ab)use it in PIC code, but their linkers get confused if
10324 # the symbol is explicitly referenced. Since portable code cannot
10325 # rely on this symbol name, it's probably fine to never include it in
10326 # preloaded symbol tables.
10327 # Exclude shared library initialization/finalization symbols.
10328 extract_expsyms_cmds=
10329
10330 case $host_os in
10331 cygwin* | mingw* | pw32* | cegcc*)
10332 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10333 # When not using gcc, we currently assume that we are using
10334 # Microsoft Visual C++ or Intel C++ Compiler.
10335 if test yes != "$GCC"; then
10336 with_gnu_ld=no
10337 fi
10338 ;;
10339 interix*)
10340 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10341 with_gnu_ld=yes
10342 ;;
10343 openbsd* | bitrig*)
10344 with_gnu_ld=no
10345 ;;
10346 esac
10347
10348 ld_shlibs=yes
10349
10350 # On some targets, GNU ld is compatible enough with the native linker
10351 # that we're better off using the native interface for both.
10352 lt_use_gnu_ld_interface=no
10353 if test yes = "$with_gnu_ld"; then
10354 case $host_os in
10355 aix*)
10356 # The AIX port of GNU ld has always aspired to compatibility
10357 # with the native linker. However, as the warning in the GNU ld
10358 # block says, versions before 2.19.5* couldn't really create working
10359 # shared libraries, regardless of the interface used.
10360 case `$LD -v 2>&1` in
10361 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10362 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10363 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10364 *)
10365 lt_use_gnu_ld_interface=yes
10366 ;;
10367 esac
10368 ;;
10369 *)
10370 lt_use_gnu_ld_interface=yes
10371 ;;
10372 esac
10373 fi
10374
10375 if test yes = "$lt_use_gnu_ld_interface"; then
10376 # If archive_cmds runs LD, not CC, wlarc should be empty
10377 wlarc='$wl'
10378
10379 # Set some defaults for GNU ld with shared library support. These
10380 # are reset later if shared libraries are not supported. Putting them
10381 # here allows them to be overridden if necessary.
10382 runpath_var=LD_RUN_PATH
10383 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10384 export_dynamic_flag_spec='$wl--export-dynamic'
10385 # ancient GNU ld didn't support --whole-archive et. al.
10386 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10387 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10388 else
10389 whole_archive_flag_spec=
10390 fi
10391 supports_anon_versioning=no
10392 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10393 *GNU\ gold*) supports_anon_versioning=yes ;;
10394 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10395 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10396 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10397 *\ 2.11.*) ;; # other 2.11 versions
10398 *) supports_anon_versioning=yes ;;
10399 esac
10400
10401 # See if GNU ld supports shared libraries.
10402 case $host_os in
10403 aix[3-9]*)
10404 # On AIX/PPC, the GNU linker is very broken
10405 if test ia64 != "$host_cpu"; then
10406 ld_shlibs=no
10407 cat <<_LT_EOF 1>&2
10408
10409 *** Warning: the GNU linker, at least up to release 2.19, is reported
10410 *** to be unable to reliably create shared libraries on AIX.
10411 *** Therefore, libtool is disabling shared libraries support. If you
10412 *** really care for shared libraries, you may want to install binutils
10413 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10414 *** You will then need to restart the configuration process.
10415
10416 _LT_EOF
10417 fi
10418 ;;
10419
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10425 archive_expsym_cmds=''
10426 ;;
10427 m68k)
10428 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)'
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_minus_L=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 beos*)
10436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10437 allow_undefined_flag=unsupported
10438 # Joseph Beckenbach <[email protected]> says some releases of gcc
10439 # support --undefined. This deserves some investigation. FIXME
10440 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10441 else
10442 ld_shlibs=no
10443 fi
10444 ;;
10445
10446 cygwin* | mingw* | pw32* | cegcc*)
10447 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10448 # as there is no search path for DLLs.
10449 hardcode_libdir_flag_spec='-L$libdir'
10450 export_dynamic_flag_spec='$wl--export-all-symbols'
10451 allow_undefined_flag=unsupported
10452 always_export_symbols=no
10453 enable_shared_with_static_runtimes=yes
10454 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'
10455 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10456
10457 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10459 # If the export-symbols file already is a .def file, use it as
10460 # is; otherwise, prepend EXPORTS...
10461 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10462 cp $export_symbols $output_objdir/$soname.def;
10463 else
10464 echo EXPORTS > $output_objdir/$soname.def;
10465 cat $export_symbols >> $output_objdir/$soname.def;
10466 fi~
10467 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10468 else
10469 ld_shlibs=no
10470 fi
10471 ;;
10472
10473 haiku*)
10474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10475 link_all_deplibs=yes
10476 ;;
10477
10478 os2*)
10479 hardcode_libdir_flag_spec='-L$libdir'
10480 hardcode_minus_L=yes
10481 allow_undefined_flag=unsupported
10482 shrext_cmds=.dll
10483 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10484 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10485 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10486 $ECHO EXPORTS >> $output_objdir/$libname.def~
10487 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10488 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10489 emximp -o $lib $output_objdir/$libname.def'
10490 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10491 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10492 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10493 $ECHO EXPORTS >> $output_objdir/$libname.def~
10494 prefix_cmds="$SED"~
10495 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10496 prefix_cmds="$prefix_cmds -e 1d";
10497 fi~
10498 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10499 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10500 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10501 emximp -o $lib $output_objdir/$libname.def'
10502 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10503 enable_shared_with_static_runtimes=yes
10504 file_list_spec='@'
10505 ;;
10506
10507 interix[3-9]*)
10508 hardcode_direct=no
10509 hardcode_shlibpath_var=no
10510 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10511 export_dynamic_flag_spec='$wl-E'
10512 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10513 # Instead, shared libraries are loaded at an image base (0x10000000 by
10514 # default) and relocated if they conflict, which is a slow very memory
10515 # consuming and fragmenting process. To avoid this, we pick a random,
10516 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10517 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10518 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10519 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'
10520 ;;
10521
10522 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10523 tmp_diet=no
10524 if test linux-dietlibc = "$host_os"; then
10525 case $cc_basename in
10526 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10527 esac
10528 fi
10529 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10530 && test no = "$tmp_diet"
10531 then
10532 tmp_addflag=' $pic_flag'
10533 tmp_sharedflag='-shared'
10534 case $cc_basename,$host_cpu in
10535 pgcc*) # Portland Group C compiler
10536 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'
10537 tmp_addflag=' $pic_flag'
10538 ;;
10539 pgf77* | pgf90* | pgf95* | pgfortran*)
10540 # Portland Group f77 and f90 compilers
10541 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'
10542 tmp_addflag=' $pic_flag -Mnomain' ;;
10543 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10544 tmp_addflag=' -i_dynamic' ;;
10545 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10546 tmp_addflag=' -i_dynamic -nofor_main' ;;
10547 ifc* | ifort*) # Intel Fortran compiler
10548 tmp_addflag=' -nofor_main' ;;
10549 lf95*) # Lahey Fortran 8.1
10550 whole_archive_flag_spec=
10551 tmp_sharedflag='--shared' ;;
10552 nagfor*) # NAGFOR 5.3
10553 tmp_sharedflag='-Wl,-shared' ;;
10554 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10555 tmp_sharedflag='-qmkshrobj'
10556 tmp_addflag= ;;
10557 nvcc*) # Cuda Compiler Driver 2.2
10558 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'
10559 compiler_needs_object=yes
10560 ;;
10561 esac
10562 case `$CC -V 2>&1 | sed 5q` in
10563 *Sun\ C*) # Sun C 5.9
10564 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'
10565 compiler_needs_object=yes
10566 tmp_sharedflag='-G' ;;
10567 *Sun\ F*) # Sun Fortran 8.3
10568 tmp_sharedflag='-G' ;;
10569 esac
10570 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10571
10572 if test yes = "$supports_anon_versioning"; then
10573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10575 echo "local: *; };" >> $output_objdir/$libname.ver~
10576 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10577 fi
10578
10579 case $cc_basename in
10580 tcc*)
10581 export_dynamic_flag_spec='-rdynamic'
10582 ;;
10583 xlf* | bgf* | bgxlf* | mpixlf*)
10584 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10585 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10587 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10588 if test yes = "$supports_anon_versioning"; then
10589 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10590 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10591 echo "local: *; };" >> $output_objdir/$libname.ver~
10592 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10593 fi
10594 ;;
10595 esac
10596 else
10597 ld_shlibs=no
10598 fi
10599 ;;
10600
10601 netbsd*)
10602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10603 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10604 wlarc=
10605 else
10606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10607 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10608 fi
10609 ;;
10610
10611 solaris*)
10612 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10613 ld_shlibs=no
10614 cat <<_LT_EOF 1>&2
10615
10616 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10617 *** create shared libraries on Solaris systems. Therefore, libtool
10618 *** is disabling shared libraries support. We urge you to upgrade GNU
10619 *** binutils to release 2.9.1 or newer. Another option is to modify
10620 *** your PATH or compiler configuration so that the native linker is
10621 *** used, and then restart.
10622
10623 _LT_EOF
10624 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10627 else
10628 ld_shlibs=no
10629 fi
10630 ;;
10631
10632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10633 case `$LD -v 2>&1` in
10634 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10635 ld_shlibs=no
10636 cat <<_LT_EOF 1>&2
10637
10638 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10639 *** reliably create shared libraries on SCO systems. Therefore, libtool
10640 *** is disabling shared libraries support. We urge you to upgrade GNU
10641 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10642 *** your PATH or compiler configuration so that the native linker is
10643 *** used, and then restart.
10644
10645 _LT_EOF
10646 ;;
10647 *)
10648 # For security reasons, it is highly recommended that you always
10649 # use absolute paths for naming shared libraries, and exclude the
10650 # DT_RUNPATH tag from executables and libraries. But doing so
10651 # requires that you compile everything twice, which is a pain.
10652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10656 else
10657 ld_shlibs=no
10658 fi
10659 ;;
10660 esac
10661 ;;
10662
10663 sunos4*)
10664 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10665 wlarc=
10666 hardcode_direct=yes
10667 hardcode_shlibpath_var=no
10668 ;;
10669
10670 *)
10671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10673 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10674 else
10675 ld_shlibs=no
10676 fi
10677 ;;
10678 esac
10679
10680 if test no = "$ld_shlibs"; then
10681 runpath_var=
10682 hardcode_libdir_flag_spec=
10683 export_dynamic_flag_spec=
10684 whole_archive_flag_spec=
10685 fi
10686 else
10687 # PORTME fill in a description of your system's linker (not GNU ld)
10688 case $host_os in
10689 aix3*)
10690 allow_undefined_flag=unsupported
10691 always_export_symbols=yes
10692 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'
10693 # Note: this linker hardcodes the directories in LIBPATH if there
10694 # are no directories specified by -L.
10695 hardcode_minus_L=yes
10696 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10697 # Neither direct hardcoding nor static linking is supported with a
10698 # broken collect2.
10699 hardcode_direct=unsupported
10700 fi
10701 ;;
10702
10703 aix[4-9]*)
10704 if test ia64 = "$host_cpu"; then
10705 # On IA64, the linker does run time linking by default, so we don't
10706 # have to do anything special.
10707 aix_use_runtimelinking=no
10708 exp_sym_flag='-Bexport'
10709 no_entry_flag=
10710 else
10711 # If we're using GNU nm, then we don't want the "-C" option.
10712 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10713 # Without the "-l" option, or with the "-B" option, AIX nm treats
10714 # weak defined symbols like other global defined symbols, whereas
10715 # GNU nm marks them as "W".
10716 # While the 'weak' keyword is ignored in the Export File, we need
10717 # it in the Import File for the 'aix-soname' feature, so we have
10718 # to replace the "-B" option with "-P" for AIX nm.
10719 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10720 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'
10721 else
10722 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 == "L") || (\$ 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'
10723 fi
10724 aix_use_runtimelinking=no
10725
10726 # Test if we are trying to use run time linking or normal
10727 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10728 # have runtime linking enabled, and use it for executables.
10729 # For shared libraries, we enable/disable runtime linking
10730 # depending on the kind of the shared library created -
10731 # when "with_aix_soname,aix_use_runtimelinking" is:
10732 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10733 # "aix,yes" lib.so shared, rtl:yes, for executables
10734 # lib.a static archive
10735 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10736 # lib.a(lib.so.V) shared, rtl:no, for executables
10737 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10738 # lib.a(lib.so.V) shared, rtl:no
10739 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10740 # lib.a static archive
10741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10742 for ld_flag in $LDFLAGS; do
10743 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10744 aix_use_runtimelinking=yes
10745 break
10746 fi
10747 done
10748 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10749 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10750 # so we don't have lib.a shared libs to link our executables.
10751 # We have to force runtime linking in this case.
10752 aix_use_runtimelinking=yes
10753 LDFLAGS="$LDFLAGS -Wl,-brtl"
10754 fi
10755 ;;
10756 esac
10757
10758 exp_sym_flag='-bexport'
10759 no_entry_flag='-bnoentry'
10760 fi
10761
10762 # When large executables or shared objects are built, AIX ld can
10763 # have problems creating the table of contents. If linking a library
10764 # or program results in "error TOC overflow" add -mminimal-toc to
10765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10767
10768 archive_cmds=''
10769 hardcode_direct=yes
10770 hardcode_direct_absolute=yes
10771 hardcode_libdir_separator=':'
10772 link_all_deplibs=yes
10773 file_list_spec='$wl-f,'
10774 case $with_aix_soname,$aix_use_runtimelinking in
10775 aix,*) ;; # traditional, no import file
10776 svr4,* | *,yes) # use import file
10777 # The Import File defines what to hardcode.
10778 hardcode_direct=no
10779 hardcode_direct_absolute=no
10780 ;;
10781 esac
10782
10783 if test yes = "$GCC"; then
10784 case $host_os in aix4.[012]|aix4.[012].*)
10785 # We only want to do this on AIX 4.2 and lower, the check
10786 # below for broken collect2 doesn't work under 4.3+
10787 collect2name=`$CC -print-prog-name=collect2`
10788 if test -f "$collect2name" &&
10789 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10790 then
10791 # We have reworked collect2
10792 :
10793 else
10794 # We have old collect2
10795 hardcode_direct=unsupported
10796 # It fails to find uninstalled libraries when the uninstalled
10797 # path is not listed in the libpath. Setting hardcode_minus_L
10798 # to unsupported forces relinking
10799 hardcode_minus_L=yes
10800 hardcode_libdir_flag_spec='-L$libdir'
10801 hardcode_libdir_separator=
10802 fi
10803 ;;
10804 esac
10805 shared_flag='-shared'
10806 if test yes = "$aix_use_runtimelinking"; then
10807 shared_flag="$shared_flag "'$wl-G'
10808 fi
10809 # Need to ensure runtime linking is disabled for the traditional
10810 # shared library, or the linker may eventually find shared libraries
10811 # /with/ Import File - we do not want to mix them.
10812 shared_flag_aix='-shared'
10813 shared_flag_svr4='-shared $wl-G'
10814 else
10815 # not using gcc
10816 if test ia64 = "$host_cpu"; then
10817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10818 # chokes on -Wl,-G. The following line is correct:
10819 shared_flag='-G'
10820 else
10821 if test yes = "$aix_use_runtimelinking"; then
10822 shared_flag='$wl-G'
10823 else
10824 shared_flag='$wl-bM:SRE'
10825 fi
10826 shared_flag_aix='$wl-bM:SRE'
10827 shared_flag_svr4='$wl-G'
10828 fi
10829 fi
10830
10831 export_dynamic_flag_spec='$wl-bexpall'
10832 # It seems that -bexpall does not export symbols beginning with
10833 # underscore (_), so it is better to generate a list of symbols to export.
10834 always_export_symbols=yes
10835 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10836 # Warning - without using the other runtime loading flags (-brtl),
10837 # -berok will link without error, but may produce a broken library.
10838 allow_undefined_flag='-berok'
10839 # Determine the default libpath from the value encoded in an
10840 # empty executable.
10841 if test set = "${lt_cv_aix_libpath+set}"; then
10842 aix_libpath=$lt_cv_aix_libpath
10843 else
10844 if test ${lt_cv_aix_libpath_+y}
10845 then :
10846 printf %s "(cached) " >&6
10847 else $as_nop
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850
10851 int
10852 main (void)
10853 {
10854
10855 ;
10856 return 0;
10857 }
10858 _ACEOF
10859 if ac_fn_c_try_link "$LINENO"
10860 then :
10861
10862 lt_aix_libpath_sed='
10863 /Import File Strings/,/^$/ {
10864 /^0/ {
10865 s/^0 *\([^ ]*\) *$/\1/
10866 p
10867 }
10868 }'
10869 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10870 # Check for a 64-bit object if we didn't find anything.
10871 if test -z "$lt_cv_aix_libpath_"; then
10872 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10873 fi
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10876 conftest$ac_exeext conftest.$ac_ext
10877 if test -z "$lt_cv_aix_libpath_"; then
10878 lt_cv_aix_libpath_=/usr/lib:/lib
10879 fi
10880
10881 fi
10882
10883 aix_libpath=$lt_cv_aix_libpath_
10884 fi
10885
10886 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10887 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
10888 else
10889 if test ia64 = "$host_cpu"; then
10890 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10891 allow_undefined_flag="-z nodefs"
10892 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"
10893 else
10894 # Determine the default libpath from the value encoded in an
10895 # empty executable.
10896 if test set = "${lt_cv_aix_libpath+set}"; then
10897 aix_libpath=$lt_cv_aix_libpath
10898 else
10899 if test ${lt_cv_aix_libpath_+y}
10900 then :
10901 printf %s "(cached) " >&6
10902 else $as_nop
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905
10906 int
10907 main (void)
10908 {
10909
10910 ;
10911 return 0;
10912 }
10913 _ACEOF
10914 if ac_fn_c_try_link "$LINENO"
10915 then :
10916
10917 lt_aix_libpath_sed='
10918 /Import File Strings/,/^$/ {
10919 /^0/ {
10920 s/^0 *\([^ ]*\) *$/\1/
10921 p
10922 }
10923 }'
10924 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10925 # Check for a 64-bit object if we didn't find anything.
10926 if test -z "$lt_cv_aix_libpath_"; then
10927 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10928 fi
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10931 conftest$ac_exeext conftest.$ac_ext
10932 if test -z "$lt_cv_aix_libpath_"; then
10933 lt_cv_aix_libpath_=/usr/lib:/lib
10934 fi
10935
10936 fi
10937
10938 aix_libpath=$lt_cv_aix_libpath_
10939 fi
10940
10941 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10942 # Warning - without using the other run time loading flags,
10943 # -berok will link without error, but may produce a broken library.
10944 no_undefined_flag=' $wl-bernotok'
10945 allow_undefined_flag=' $wl-berok'
10946 if test yes = "$with_gnu_ld"; then
10947 # We only use this code for GNU lds that support --whole-archive.
10948 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10949 else
10950 # Exported symbols can be pulled into shared objects from archives
10951 whole_archive_flag_spec='$convenience'
10952 fi
10953 archive_cmds_need_lc=yes
10954 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10955 # -brtl affects multiple linker settings, -berok does not and is overridden later
10956 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10957 if test svr4 != "$with_aix_soname"; then
10958 # This is similar to how AIX traditionally builds its shared libraries.
10959 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'
10960 fi
10961 if test aix != "$with_aix_soname"; then
10962 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'
10963 else
10964 # used by -dlpreopen to get the symbols
10965 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10966 fi
10967 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10968 fi
10969 fi
10970 ;;
10971
10972 amigaos*)
10973 case $host_cpu in
10974 powerpc)
10975 # see comment about AmigaOS4 .so support
10976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10977 archive_expsym_cmds=''
10978 ;;
10979 m68k)
10980 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)'
10981 hardcode_libdir_flag_spec='-L$libdir'
10982 hardcode_minus_L=yes
10983 ;;
10984 esac
10985 ;;
10986
10987 bsdi[45]*)
10988 export_dynamic_flag_spec=-rdynamic
10989 ;;
10990
10991 cygwin* | mingw* | pw32* | cegcc*)
10992 # When not using gcc, we currently assume that we are using
10993 # Microsoft Visual C++ or Intel C++ Compiler.
10994 # hardcode_libdir_flag_spec is actually meaningless, as there is
10995 # no search path for DLLs.
10996 case $cc_basename in
10997 cl* | icl*)
10998 # Native MSVC or ICC
10999 hardcode_libdir_flag_spec=' '
11000 allow_undefined_flag=unsupported
11001 always_export_symbols=yes
11002 file_list_spec='@'
11003 # Tell ltmain to make .lib files, not .a files.
11004 libext=lib
11005 # Tell ltmain to make .dll files, not .so files.
11006 shrext_cmds=.dll
11007 # FIXME: Setting linknames here is a bad hack.
11008 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11009 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11010 cp "$export_symbols" "$output_objdir/$soname.def";
11011 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11012 else
11013 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11014 fi~
11015 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11016 linknames='
11017 # The linker will not automatically build a static lib if we build a DLL.
11018 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11019 enable_shared_with_static_runtimes=yes
11020 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11022 # Don't use ranlib
11023 old_postinstall_cmds='chmod 644 $oldlib'
11024 postlink_cmds='lt_outputfile="@OUTPUT@"~
11025 lt_tool_outputfile="@TOOL_OUTPUT@"~
11026 case $lt_outputfile in
11027 *.exe|*.EXE) ;;
11028 *)
11029 lt_outputfile=$lt_outputfile.exe
11030 lt_tool_outputfile=$lt_tool_outputfile.exe
11031 ;;
11032 esac~
11033 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11034 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11035 $RM "$lt_outputfile.manifest";
11036 fi'
11037 ;;
11038 *)
11039 # Assume MSVC and ICC wrapper
11040 hardcode_libdir_flag_spec=' '
11041 allow_undefined_flag=unsupported
11042 # Tell ltmain to make .lib files, not .a files.
11043 libext=lib
11044 # Tell ltmain to make .dll files, not .so files.
11045 shrext_cmds=.dll
11046 # FIXME: Setting linknames here is a bad hack.
11047 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11048 # The linker will automatically build a .lib file if we build a DLL.
11049 old_archive_from_new_cmds='true'
11050 # FIXME: Should let the user specify the lib program.
11051 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11052 enable_shared_with_static_runtimes=yes
11053 ;;
11054 esac
11055 ;;
11056
11057 darwin* | rhapsody*)
11058
11059
11060 archive_cmds_need_lc=no
11061 hardcode_direct=no
11062 hardcode_automatic=yes
11063 hardcode_shlibpath_var=unsupported
11064 if test yes = "$lt_cv_ld_force_load"; then
11065 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\"`'
11066
11067 else
11068 whole_archive_flag_spec=''
11069 fi
11070 link_all_deplibs=yes
11071 allow_undefined_flag=$_lt_dar_allow_undefined
11072 case $cc_basename in
11073 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11074 *) _lt_dar_can_shared=$GCC ;;
11075 esac
11076 if test yes = "$_lt_dar_can_shared"; then
11077 output_verbose_link_cmd=func_echo_all
11078 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11079 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11080 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"
11081 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"
11082
11083 else
11084 ld_shlibs=no
11085 fi
11086
11087 ;;
11088
11089 dgux*)
11090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091 hardcode_libdir_flag_spec='-L$libdir'
11092 hardcode_shlibpath_var=no
11093 ;;
11094
11095 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11096 # support. Future versions do this automatically, but an explicit c++rt0.o
11097 # does not break anything, and helps significantly (at the cost of a little
11098 # extra space).
11099 freebsd2.2*)
11100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11101 hardcode_libdir_flag_spec='-R$libdir'
11102 hardcode_direct=yes
11103 hardcode_shlibpath_var=no
11104 ;;
11105
11106 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11107 freebsd2.*)
11108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11109 hardcode_direct=yes
11110 hardcode_minus_L=yes
11111 hardcode_shlibpath_var=no
11112 ;;
11113
11114 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11115 freebsd* | dragonfly*)
11116 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11117 hardcode_libdir_flag_spec='-R$libdir'
11118 hardcode_direct=yes
11119 hardcode_shlibpath_var=no
11120 ;;
11121
11122 hpux9*)
11123 if test yes = "$GCC"; then
11124 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'
11125 else
11126 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'
11127 fi
11128 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11129 hardcode_libdir_separator=:
11130 hardcode_direct=yes
11131
11132 # hardcode_minus_L: Not really in the search PATH,
11133 # but as the default location of the library.
11134 hardcode_minus_L=yes
11135 export_dynamic_flag_spec='$wl-E'
11136 ;;
11137
11138 hpux10*)
11139 if test yes,no = "$GCC,$with_gnu_ld"; then
11140 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11141 else
11142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11143 fi
11144 if test no = "$with_gnu_ld"; then
11145 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11146 hardcode_libdir_separator=:
11147 hardcode_direct=yes
11148 hardcode_direct_absolute=yes
11149 export_dynamic_flag_spec='$wl-E'
11150 # hardcode_minus_L: Not really in the search PATH,
11151 # but as the default location of the library.
11152 hardcode_minus_L=yes
11153 fi
11154 ;;
11155
11156 hpux11*)
11157 if test yes,no = "$GCC,$with_gnu_ld"; then
11158 case $host_cpu in
11159 hppa*64*)
11160 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11161 ;;
11162 ia64*)
11163 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11164 ;;
11165 *)
11166 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11167 ;;
11168 esac
11169 else
11170 case $host_cpu in
11171 hppa*64*)
11172 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11173 ;;
11174 ia64*)
11175 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11176 ;;
11177 *)
11178
11179 # Older versions of the 11.00 compiler do not understand -b yet
11180 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11182 printf %s "checking if $CC understands -b... " >&6; }
11183 if test ${lt_cv_prog_compiler__b+y}
11184 then :
11185 printf %s "(cached) " >&6
11186 else $as_nop
11187 lt_cv_prog_compiler__b=no
11188 save_LDFLAGS=$LDFLAGS
11189 LDFLAGS="$LDFLAGS -b"
11190 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11192 # The linker can only warn and ignore the option if not recognized
11193 # So say no if there are warnings
11194 if test -s conftest.err; then
11195 # Append any errors to the config.log.
11196 cat conftest.err 1>&5
11197 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11199 if diff conftest.exp conftest.er2 >/dev/null; then
11200 lt_cv_prog_compiler__b=yes
11201 fi
11202 else
11203 lt_cv_prog_compiler__b=yes
11204 fi
11205 fi
11206 $RM -r conftest*
11207 LDFLAGS=$save_LDFLAGS
11208
11209 fi
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11211 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11212
11213 if test yes = "$lt_cv_prog_compiler__b"; then
11214 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11215 else
11216 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11217 fi
11218
11219 ;;
11220 esac
11221 fi
11222 if test no = "$with_gnu_ld"; then
11223 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11224 hardcode_libdir_separator=:
11225
11226 case $host_cpu in
11227 hppa*64*|ia64*)
11228 hardcode_direct=no
11229 hardcode_shlibpath_var=no
11230 ;;
11231 *)
11232 hardcode_direct=yes
11233 hardcode_direct_absolute=yes
11234 export_dynamic_flag_spec='$wl-E'
11235
11236 # hardcode_minus_L: Not really in the search PATH,
11237 # but as the default location of the library.
11238 hardcode_minus_L=yes
11239 ;;
11240 esac
11241 fi
11242 ;;
11243
11244 irix5* | irix6* | nonstopux*)
11245 if test yes = "$GCC"; then
11246 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'
11247 # Try to use the -exported_symbol ld option, if it does not
11248 # work, assume that -exports_file does not work either and
11249 # implicitly export all symbols.
11250 # This should be the same for all languages, so no per-tag cache variable.
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11252 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11253 if test ${lt_cv_irix_exported_symbol+y}
11254 then :
11255 printf %s "(cached) " >&6
11256 else $as_nop
11257 save_LDFLAGS=$LDFLAGS
11258 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 int foo (void) { return 0; }
11262 _ACEOF
11263 if ac_fn_c_try_link "$LINENO"
11264 then :
11265 lt_cv_irix_exported_symbol=yes
11266 else $as_nop
11267 lt_cv_irix_exported_symbol=no
11268 fi
11269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LDFLAGS=$save_LDFLAGS
11272 fi
11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11274 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11275 if test yes = "$lt_cv_irix_exported_symbol"; then
11276 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'
11277 fi
11278 else
11279 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'
11280 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'
11281 fi
11282 archive_cmds_need_lc='no'
11283 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11284 hardcode_libdir_separator=:
11285 inherit_rpath=yes
11286 link_all_deplibs=yes
11287 ;;
11288
11289 linux*)
11290 case $cc_basename in
11291 tcc*)
11292 # Fabrice Bellard et al's Tiny C Compiler
11293 ld_shlibs=yes
11294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11295 ;;
11296 esac
11297 ;;
11298
11299 netbsd*)
11300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11302 else
11303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11304 fi
11305 hardcode_libdir_flag_spec='-R$libdir'
11306 hardcode_direct=yes
11307 hardcode_shlibpath_var=no
11308 ;;
11309
11310 newsos6)
11311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11312 hardcode_direct=yes
11313 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11314 hardcode_libdir_separator=:
11315 hardcode_shlibpath_var=no
11316 ;;
11317
11318 *nto* | *qnx*)
11319 ;;
11320
11321 openbsd* | bitrig*)
11322 if test -f /usr/libexec/ld.so; then
11323 hardcode_direct=yes
11324 hardcode_shlibpath_var=no
11325 hardcode_direct_absolute=yes
11326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11328 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11329 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11330 export_dynamic_flag_spec='$wl-E'
11331 else
11332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11333 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11334 fi
11335 else
11336 ld_shlibs=no
11337 fi
11338 ;;
11339
11340 os2*)
11341 hardcode_libdir_flag_spec='-L$libdir'
11342 hardcode_minus_L=yes
11343 allow_undefined_flag=unsupported
11344 shrext_cmds=.dll
11345 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11346 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11347 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11348 $ECHO EXPORTS >> $output_objdir/$libname.def~
11349 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11350 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11351 emximp -o $lib $output_objdir/$libname.def'
11352 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11353 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11354 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11355 $ECHO EXPORTS >> $output_objdir/$libname.def~
11356 prefix_cmds="$SED"~
11357 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11358 prefix_cmds="$prefix_cmds -e 1d";
11359 fi~
11360 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11361 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11362 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11363 emximp -o $lib $output_objdir/$libname.def'
11364 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11365 enable_shared_with_static_runtimes=yes
11366 file_list_spec='@'
11367 ;;
11368
11369 osf3*)
11370 if test yes = "$GCC"; then
11371 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11372 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'
11373 else
11374 allow_undefined_flag=' -expect_unresolved \*'
11375 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'
11376 fi
11377 archive_cmds_need_lc='no'
11378 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11379 hardcode_libdir_separator=:
11380 ;;
11381
11382 osf4* | osf5*) # as osf3* with the addition of -msym flag
11383 if test yes = "$GCC"; then
11384 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11385 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'
11386 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11387 else
11388 allow_undefined_flag=' -expect_unresolved \*'
11389 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'
11390 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~
11391 $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'
11392
11393 # Both c and cxx compiler support -rpath directly
11394 hardcode_libdir_flag_spec='-rpath $libdir'
11395 fi
11396 archive_cmds_need_lc='no'
11397 hardcode_libdir_separator=:
11398 ;;
11399
11400 solaris*)
11401 no_undefined_flag=' -z defs'
11402 if test yes = "$GCC"; then
11403 wlarc='$wl'
11404 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11406 $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'
11407 else
11408 case `$CC -V 2>&1` in
11409 *"Compilers 5.0"*)
11410 wlarc=''
11411 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11413 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11414 ;;
11415 *)
11416 wlarc='$wl'
11417 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11419 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11420 ;;
11421 esac
11422 fi
11423 hardcode_libdir_flag_spec='-R$libdir'
11424 hardcode_shlibpath_var=no
11425 case $host_os in
11426 solaris2.[0-5] | solaris2.[0-5].*) ;;
11427 *)
11428 # The compiler driver will combine and reorder linker options,
11429 # but understands '-z linker_flag'. GCC discards it without '$wl',
11430 # but is careful enough not to reorder.
11431 # Supported since Solaris 2.6 (maybe 2.5.1?)
11432 if test yes = "$GCC"; then
11433 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11434 else
11435 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11436 fi
11437 ;;
11438 esac
11439 link_all_deplibs=yes
11440 ;;
11441
11442 sunos4*)
11443 if test sequent = "$host_vendor"; then
11444 # Use $CC to link under sequent, because it throws in some extra .o
11445 # files that make .init and .fini sections work.
11446 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11447 else
11448 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11449 fi
11450 hardcode_libdir_flag_spec='-L$libdir'
11451 hardcode_direct=yes
11452 hardcode_minus_L=yes
11453 hardcode_shlibpath_var=no
11454 ;;
11455
11456 sysv4)
11457 case $host_vendor in
11458 sni)
11459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11460 hardcode_direct=yes # is this really true???
11461 ;;
11462 siemens)
11463 ## LD is ld it makes a PLAMLIB
11464 ## CC just makes a GrossModule.
11465 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11466 reload_cmds='$CC -r -o $output$reload_objs'
11467 hardcode_direct=no
11468 ;;
11469 motorola)
11470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11472 ;;
11473 esac
11474 runpath_var='LD_RUN_PATH'
11475 hardcode_shlibpath_var=no
11476 ;;
11477
11478 sysv4.3*)
11479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11480 hardcode_shlibpath_var=no
11481 export_dynamic_flag_spec='-Bexport'
11482 ;;
11483
11484 sysv4*MP*)
11485 if test -d /usr/nec; then
11486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11487 hardcode_shlibpath_var=no
11488 runpath_var=LD_RUN_PATH
11489 hardcode_runpath_var=yes
11490 ld_shlibs=yes
11491 fi
11492 ;;
11493
11494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11495 no_undefined_flag='$wl-z,text'
11496 archive_cmds_need_lc=no
11497 hardcode_shlibpath_var=no
11498 runpath_var='LD_RUN_PATH'
11499
11500 if test yes = "$GCC"; then
11501 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11503 else
11504 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11505 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11506 fi
11507 ;;
11508
11509 sysv5* | sco3.2v5* | sco5v6*)
11510 # Note: We CANNOT use -z defs as we might desire, because we do not
11511 # link with -lc, and that would cause any symbols used from libc to
11512 # always be unresolved, which means just about no library would
11513 # ever link correctly. If we're not using GNU ld we use -z text
11514 # though, which does catch some bad symbols but isn't as heavy-handed
11515 # as -z defs.
11516 no_undefined_flag='$wl-z,text'
11517 allow_undefined_flag='$wl-z,nodefs'
11518 archive_cmds_need_lc=no
11519 hardcode_shlibpath_var=no
11520 hardcode_libdir_flag_spec='$wl-R,$libdir'
11521 hardcode_libdir_separator=':'
11522 link_all_deplibs=yes
11523 export_dynamic_flag_spec='$wl-Bexport'
11524 runpath_var='LD_RUN_PATH'
11525
11526 if test yes = "$GCC"; then
11527 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11528 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11529 else
11530 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11531 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11532 fi
11533 ;;
11534
11535 uts4*)
11536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11537 hardcode_libdir_flag_spec='-L$libdir'
11538 hardcode_shlibpath_var=no
11539 ;;
11540
11541 *)
11542 ld_shlibs=no
11543 ;;
11544 esac
11545
11546 if test sni = "$host_vendor"; then
11547 case $host in
11548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11549 export_dynamic_flag_spec='$wl-Blargedynsym'
11550 ;;
11551 esac
11552 fi
11553 fi
11554
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11556 printf "%s\n" "$ld_shlibs" >&6; }
11557 test no = "$ld_shlibs" && can_build_shared=no
11558
11559 with_gnu_ld=$with_gnu_ld
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575 #
11576 # Do we need to explicitly link libc?
11577 #
11578 case "x$archive_cmds_need_lc" in
11579 x|xyes)
11580 # Assume -lc should be added
11581 archive_cmds_need_lc=yes
11582
11583 if test yes,yes = "$GCC,$enable_shared"; then
11584 case $archive_cmds in
11585 *'~'*)
11586 # FIXME: we may have to deal with multi-command sequences.
11587 ;;
11588 '$CC '*)
11589 # Test whether the compiler implicitly links with -lc since on some
11590 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11591 # to ld, don't add -lc before -lgcc.
11592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11593 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11594 if test ${lt_cv_archive_cmds_need_lc+y}
11595 then :
11596 printf %s "(cached) " >&6
11597 else $as_nop
11598 $RM conftest*
11599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11600
11601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11602 (eval $ac_compile) 2>&5
11603 ac_status=$?
11604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11605 test $ac_status = 0; } 2>conftest.err; then
11606 soname=conftest
11607 lib=conftest
11608 libobjs=conftest.$ac_objext
11609 deplibs=
11610 wl=$lt_prog_compiler_wl
11611 pic_flag=$lt_prog_compiler_pic
11612 compiler_flags=-v
11613 linker_flags=-v
11614 verstring=
11615 output_objdir=.
11616 libname=conftest
11617 lt_save_allow_undefined_flag=$allow_undefined_flag
11618 allow_undefined_flag=
11619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11620 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11621 ac_status=$?
11622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623 test $ac_status = 0; }
11624 then
11625 lt_cv_archive_cmds_need_lc=no
11626 else
11627 lt_cv_archive_cmds_need_lc=yes
11628 fi
11629 allow_undefined_flag=$lt_save_allow_undefined_flag
11630 else
11631 cat conftest.err 1>&5
11632 fi
11633 $RM conftest*
11634
11635 fi
11636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11637 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11638 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11639 ;;
11640 esac
11641 fi
11642 ;;
11643 esac
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11797 printf %s "checking dynamic linker characteristics... " >&6; }
11798
11799 if test yes = "$GCC"; then
11800 case $host_os in
11801 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11802 *) lt_awk_arg='/^libraries:/' ;;
11803 esac
11804 case $host_os in
11805 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11806 *) lt_sed_strip_eq='s|=/|/|g' ;;
11807 esac
11808 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11809 case $lt_search_path_spec in
11810 *\;*)
11811 # if the path contains ";" then we assume it to be the separator
11812 # otherwise default to the standard path separator (i.e. ":") - it is
11813 # assumed that no part of a normal pathname contains ";" but that should
11814 # okay in the real world where ";" in dirpaths is itself problematic.
11815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11816 ;;
11817 *)
11818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11819 ;;
11820 esac
11821 # Ok, now we have the path, separated by spaces, we can step through it
11822 # and add multilib dir if necessary...
11823 lt_tmp_lt_search_path_spec=
11824 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11825 # ...but if some path component already ends with the multilib dir we assume
11826 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11827 case "$lt_multi_os_dir; $lt_search_path_spec " in
11828 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11829 lt_multi_os_dir=
11830 ;;
11831 esac
11832 for lt_sys_path in $lt_search_path_spec; do
11833 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11835 elif test -n "$lt_multi_os_dir"; then
11836 test -d "$lt_sys_path" && \
11837 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11838 fi
11839 done
11840 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11841 BEGIN {RS = " "; FS = "/|\n";} {
11842 lt_foo = "";
11843 lt_count = 0;
11844 for (lt_i = NF; lt_i > 0; lt_i--) {
11845 if ($lt_i != "" && $lt_i != ".") {
11846 if ($lt_i == "..") {
11847 lt_count++;
11848 } else {
11849 if (lt_count == 0) {
11850 lt_foo = "/" $lt_i lt_foo;
11851 } else {
11852 lt_count--;
11853 }
11854 }
11855 }
11856 }
11857 if (lt_foo != "") { lt_freq[lt_foo]++; }
11858 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11859 }'`
11860 # AWK program above erroneously prepends '/' to C:/dos/paths
11861 # for these hosts.
11862 case $host_os in
11863 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11864 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11865 esac
11866 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11867 else
11868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11869 fi
11870 library_names_spec=
11871 libname_spec='lib$name'
11872 soname_spec=
11873 shrext_cmds=.so
11874 postinstall_cmds=
11875 postuninstall_cmds=
11876 finish_cmds=
11877 finish_eval=
11878 shlibpath_var=
11879 shlibpath_overrides_runpath=unknown
11880 version_type=none
11881 dynamic_linker="$host_os ld.so"
11882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11883 need_lib_prefix=unknown
11884 hardcode_into_libs=no
11885
11886 # when you set need_version to no, make sure it does not cause -set_version
11887 # flags to be left without arguments
11888 need_version=unknown
11889
11890
11891
11892 case $host_os in
11893 aix3*)
11894 version_type=linux # correct to gnu/linux during the next big refactor
11895 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11896 shlibpath_var=LIBPATH
11897
11898 # AIX 3 has no versioning support, so we append a major version to the name.
11899 soname_spec='$libname$release$shared_ext$major'
11900 ;;
11901
11902 aix[4-9]*)
11903 version_type=linux # correct to gnu/linux during the next big refactor
11904 need_lib_prefix=no
11905 need_version=no
11906 hardcode_into_libs=yes
11907 if test ia64 = "$host_cpu"; then
11908 # AIX 5 supports IA64
11909 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 else
11912 # With GCC up to 2.95.x, collect2 would create an import file
11913 # for dependence libraries. The import file would start with
11914 # the line '#! .'. This would cause the generated library to
11915 # depend on '.', always an invalid library. This was fixed in
11916 # development snapshots of GCC prior to 3.0.
11917 case $host_os in
11918 aix4 | aix4.[01] | aix4.[01].*)
11919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11920 echo ' yes '
11921 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11922 :
11923 else
11924 can_build_shared=no
11925 fi
11926 ;;
11927 esac
11928 # Using Import Files as archive members, it is possible to support
11929 # filename-based versioning of shared library archives on AIX. While
11930 # this would work for both with and without runtime linking, it will
11931 # prevent static linking of such archives. So we do filename-based
11932 # shared library versioning with .so extension only, which is used
11933 # when both runtime linking and shared linking is enabled.
11934 # Unfortunately, runtime linking may impact performance, so we do
11935 # not want this to be the default eventually. Also, we use the
11936 # versioned .so libs for executables only if there is the -brtl
11937 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11938 # To allow for filename-based versioning support, we need to create
11939 # libNAME.so.V as an archive file, containing:
11940 # *) an Import File, referring to the versioned filename of the
11941 # archive as well as the shared archive member, telling the
11942 # bitwidth (32 or 64) of that shared object, and providing the
11943 # list of exported symbols of that shared object, eventually
11944 # decorated with the 'weak' keyword
11945 # *) the shared object with the F_LOADONLY flag set, to really avoid
11946 # it being seen by the linker.
11947 # At run time we better use the real file rather than another symlink,
11948 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11949
11950 case $with_aix_soname,$aix_use_runtimelinking in
11951 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11952 # soname into executable. Probably we can add versioning support to
11953 # collect2, so additional links can be useful in future.
11954 aix,yes) # traditional libtool
11955 dynamic_linker='AIX unversionable lib.so'
11956 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11957 # instead of lib<name>.a to let people know that these are not
11958 # typical AIX shared libraries.
11959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11960 ;;
11961 aix,no) # traditional AIX only
11962 dynamic_linker='AIX lib.a(lib.so.V)'
11963 # We preserve .a as extension for shared libraries through AIX4.2
11964 # and later when we are not doing run time linking.
11965 library_names_spec='$libname$release.a $libname.a'
11966 soname_spec='$libname$release$shared_ext$major'
11967 ;;
11968 svr4,*) # full svr4 only
11969 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11970 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11971 # We do not specify a path in Import Files, so LIBPATH fires.
11972 shlibpath_overrides_runpath=yes
11973 ;;
11974 *,yes) # both, prefer svr4
11975 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11976 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11977 # unpreferred sharedlib libNAME.a needs extra handling
11978 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"'
11979 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"'
11980 # We do not specify a path in Import Files, so LIBPATH fires.
11981 shlibpath_overrides_runpath=yes
11982 ;;
11983 *,no) # both, prefer aix
11984 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11985 library_names_spec='$libname$release.a $libname.a'
11986 soname_spec='$libname$release$shared_ext$major'
11987 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11988 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)'
11989 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"'
11990 ;;
11991 esac
11992 shlibpath_var=LIBPATH
11993 fi
11994 ;;
11995
11996 amigaos*)
11997 case $host_cpu in
11998 powerpc)
11999 # Since July 2007 AmigaOS4 officially supports .so libraries.
12000 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12002 ;;
12003 m68k)
12004 library_names_spec='$libname.ixlibrary $libname.a'
12005 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12006 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'
12007 ;;
12008 esac
12009 ;;
12010
12011 beos*)
12012 library_names_spec='$libname$shared_ext'
12013 dynamic_linker="$host_os ld.so"
12014 shlibpath_var=LIBRARY_PATH
12015 ;;
12016
12017 bsdi[45]*)
12018 version_type=linux # correct to gnu/linux during the next big refactor
12019 need_version=no
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12023 shlibpath_var=LD_LIBRARY_PATH
12024 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12025 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12026 # the default ld.so.conf also contains /usr/contrib/lib and
12027 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12028 # libtool to hard-code these into programs
12029 ;;
12030
12031 cygwin* | mingw* | pw32* | cegcc*)
12032 version_type=windows
12033 shrext_cmds=.dll
12034 need_version=no
12035 need_lib_prefix=no
12036
12037 case $GCC,$cc_basename in
12038 yes,*)
12039 # gcc
12040 library_names_spec='$libname.dll.a'
12041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12042 postinstall_cmds='base_file=`basename \$file`~
12043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12044 dldir=$destdir/`dirname \$dlpath`~
12045 test -d \$dldir || mkdir -p \$dldir~
12046 $install_prog $dir/$dlname \$dldir/$dlname~
12047 chmod a+x \$dldir/$dlname~
12048 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12049 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12050 fi'
12051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12052 dlpath=$dir/\$dldll~
12053 $RM \$dlpath'
12054 shlibpath_overrides_runpath=yes
12055
12056 case $host_os in
12057 cygwin*)
12058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12060
12061 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12062 ;;
12063 mingw* | cegcc*)
12064 # MinGW DLLs use traditional 'lib' prefix
12065 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12066 ;;
12067 pw32*)
12068 # pw32 DLLs use 'pw' prefix rather than 'lib'
12069 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12070 ;;
12071 esac
12072 dynamic_linker='Win32 ld.exe'
12073 ;;
12074
12075 *,cl* | *,icl*)
12076 # Native MSVC or ICC
12077 libname_spec='$name'
12078 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12079 library_names_spec='$libname.dll.lib'
12080
12081 case $build_os in
12082 mingw*)
12083 sys_lib_search_path_spec=
12084 lt_save_ifs=$IFS
12085 IFS=';'
12086 for lt_path in $LIB
12087 do
12088 IFS=$lt_save_ifs
12089 # Let DOS variable expansion print the short 8.3 style file name.
12090 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12091 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12092 done
12093 IFS=$lt_save_ifs
12094 # Convert to MSYS style.
12095 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12096 ;;
12097 cygwin*)
12098 # Convert to unix form, then to dos form, then back to unix form
12099 # but this time dos style (no spaces!) so that the unix form looks
12100 # like /cygdrive/c/PROGRA~1:/cygdr...
12101 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12102 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12103 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12104 ;;
12105 *)
12106 sys_lib_search_path_spec=$LIB
12107 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12108 # It is most probably a Windows format PATH.
12109 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12110 else
12111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12112 fi
12113 # FIXME: find the short name or the path components, as spaces are
12114 # common. (e.g. "Program Files" -> "PROGRA~1")
12115 ;;
12116 esac
12117
12118 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12119 postinstall_cmds='base_file=`basename \$file`~
12120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12121 dldir=$destdir/`dirname \$dlpath`~
12122 test -d \$dldir || mkdir -p \$dldir~
12123 $install_prog $dir/$dlname \$dldir/$dlname'
12124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12125 dlpath=$dir/\$dldll~
12126 $RM \$dlpath'
12127 shlibpath_overrides_runpath=yes
12128 dynamic_linker='Win32 link.exe'
12129 ;;
12130
12131 *)
12132 # Assume MSVC and ICC wrapper
12133 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12134 dynamic_linker='Win32 ld.exe'
12135 ;;
12136 esac
12137 # FIXME: first we should search . and the directory the executable is in
12138 shlibpath_var=PATH
12139 ;;
12140
12141 darwin* | rhapsody*)
12142 dynamic_linker="$host_os dyld"
12143 version_type=darwin
12144 need_lib_prefix=no
12145 need_version=no
12146 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12147 soname_spec='$libname$release$major$shared_ext'
12148 shlibpath_overrides_runpath=yes
12149 shlibpath_var=DYLD_LIBRARY_PATH
12150 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12151
12152 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12154 ;;
12155
12156 dgux*)
12157 version_type=linux # correct to gnu/linux during the next big refactor
12158 need_lib_prefix=no
12159 need_version=no
12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12161 soname_spec='$libname$release$shared_ext$major'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 ;;
12164
12165 freebsd* | dragonfly*)
12166 # DragonFly does not have aout. When/if they implement a new
12167 # versioning mechanism, adjust this.
12168 if test -x /usr/bin/objformat; then
12169 objformat=`/usr/bin/objformat`
12170 else
12171 case $host_os in
12172 freebsd[23].*) objformat=aout ;;
12173 *) objformat=elf ;;
12174 esac
12175 fi
12176 version_type=freebsd-$objformat
12177 case $version_type in
12178 freebsd-elf*)
12179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12180 soname_spec='$libname$release$shared_ext$major'
12181 need_version=no
12182 need_lib_prefix=no
12183 ;;
12184 freebsd-*)
12185 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12186 need_version=yes
12187 ;;
12188 esac
12189 shlibpath_var=LD_LIBRARY_PATH
12190 case $host_os in
12191 freebsd2.*)
12192 shlibpath_overrides_runpath=yes
12193 ;;
12194 freebsd3.[01]* | freebsdelf3.[01]*)
12195 shlibpath_overrides_runpath=yes
12196 hardcode_into_libs=yes
12197 ;;
12198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12200 shlibpath_overrides_runpath=no
12201 hardcode_into_libs=yes
12202 ;;
12203 *) # from 4.6 on, and DragonFly
12204 shlibpath_overrides_runpath=yes
12205 hardcode_into_libs=yes
12206 ;;
12207 esac
12208 ;;
12209
12210 haiku*)
12211 version_type=linux # correct to gnu/linux during the next big refactor
12212 need_lib_prefix=no
12213 need_version=no
12214 dynamic_linker="$host_os runtime_loader"
12215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12216 soname_spec='$libname$release$shared_ext$major'
12217 shlibpath_var=LIBRARY_PATH
12218 shlibpath_overrides_runpath=no
12219 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12220 hardcode_into_libs=yes
12221 ;;
12222
12223 hpux9* | hpux10* | hpux11*)
12224 # Give a soname corresponding to the major version so that dld.sl refuses to
12225 # link against other versions.
12226 version_type=sunos
12227 need_lib_prefix=no
12228 need_version=no
12229 case $host_cpu in
12230 ia64*)
12231 shrext_cmds='.so'
12232 hardcode_into_libs=yes
12233 dynamic_linker="$host_os dld.so"
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237 soname_spec='$libname$release$shared_ext$major'
12238 if test 32 = "$HPUX_IA64_MODE"; then
12239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12240 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12241 else
12242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12243 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12244 fi
12245 ;;
12246 hppa*64*)
12247 shrext_cmds='.sl'
12248 hardcode_into_libs=yes
12249 dynamic_linker="$host_os dld.sl"
12250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253 soname_spec='$libname$release$shared_ext$major'
12254 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12256 ;;
12257 *)
12258 shrext_cmds='.sl'
12259 dynamic_linker="$host_os dld.sl"
12260 shlibpath_var=SHLIB_PATH
12261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12263 soname_spec='$libname$release$shared_ext$major'
12264 ;;
12265 esac
12266 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12267 postinstall_cmds='chmod 555 $lib'
12268 # or fails outright, so override atomically:
12269 install_override_mode=555
12270 ;;
12271
12272 interix[3-9]*)
12273 version_type=linux # correct to gnu/linux during the next big refactor
12274 need_lib_prefix=no
12275 need_version=no
12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12277 soname_spec='$libname$release$shared_ext$major'
12278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=no
12281 hardcode_into_libs=yes
12282 ;;
12283
12284 irix5* | irix6* | nonstopux*)
12285 case $host_os in
12286 nonstopux*) version_type=nonstopux ;;
12287 *)
12288 if test yes = "$lt_cv_prog_gnu_ld"; then
12289 version_type=linux # correct to gnu/linux during the next big refactor
12290 else
12291 version_type=irix
12292 fi ;;
12293 esac
12294 need_lib_prefix=no
12295 need_version=no
12296 soname_spec='$libname$release$shared_ext$major'
12297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12298 case $host_os in
12299 irix5* | nonstopux*)
12300 libsuff= shlibsuff=
12301 ;;
12302 *)
12303 case $LD in # libtool.m4 will add one of these switches to LD
12304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12305 libsuff= shlibsuff= libmagic=32-bit;;
12306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12307 libsuff=32 shlibsuff=N32 libmagic=N32;;
12308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12310 *) libsuff= shlibsuff= libmagic=never-match;;
12311 esac
12312 ;;
12313 esac
12314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12315 shlibpath_overrides_runpath=no
12316 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12317 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12318 hardcode_into_libs=yes
12319 ;;
12320
12321 # No shared lib support for Linux oldld, aout, or coff.
12322 linux*oldld* | linux*aout* | linux*coff*)
12323 dynamic_linker=no
12324 ;;
12325
12326 linux*android*)
12327 version_type=none # Android doesn't support versioned libraries.
12328 need_lib_prefix=no
12329 need_version=no
12330 library_names_spec='$libname$release$shared_ext'
12331 soname_spec='$libname$release$shared_ext'
12332 finish_cmds=
12333 shlibpath_var=LD_LIBRARY_PATH
12334 shlibpath_overrides_runpath=yes
12335
12336 # This implies no fast_install, which is unacceptable.
12337 # Some rework will be needed to allow for fast_install
12338 # before this can be enabled.
12339 hardcode_into_libs=yes
12340
12341 dynamic_linker='Android linker'
12342 # Don't embed -rpath directories since the linker doesn't support them.
12343 hardcode_libdir_flag_spec='-L$libdir'
12344 ;;
12345
12346 # This must be glibc/ELF.
12347 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12348 version_type=linux # correct to gnu/linux during the next big refactor
12349 need_lib_prefix=no
12350 need_version=no
12351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12352 soname_spec='$libname$release$shared_ext$major'
12353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12354 shlibpath_var=LD_LIBRARY_PATH
12355 shlibpath_overrides_runpath=no
12356
12357 # Some binutils ld are patched to set DT_RUNPATH
12358 if test ${lt_cv_shlibpath_overrides_runpath+y}
12359 then :
12360 printf %s "(cached) " >&6
12361 else $as_nop
12362 lt_cv_shlibpath_overrides_runpath=no
12363 save_LDFLAGS=$LDFLAGS
12364 save_libdir=$libdir
12365 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12366 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12369
12370 int
12371 main (void)
12372 {
12373
12374 ;
12375 return 0;
12376 }
12377 _ACEOF
12378 if ac_fn_c_try_link "$LINENO"
12379 then :
12380 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12381 then :
12382 lt_cv_shlibpath_overrides_runpath=yes
12383 fi
12384 fi
12385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LDFLAGS=$save_LDFLAGS
12388 libdir=$save_libdir
12389
12390 fi
12391
12392 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12393
12394 # This implies no fast_install, which is unacceptable.
12395 # Some rework will be needed to allow for fast_install
12396 # before this can be enabled.
12397 hardcode_into_libs=yes
12398
12399 # Ideally, we could use ldconfig to report *all* directores which are
12400 # searched for libraries, however this is still not possible. Aside from not
12401 # being certain /sbin/ldconfig is available, command
12402 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12403 # even though it is searched at run-time. Try to do the best guess by
12404 # appending ld.so.conf contents (and includes) to the search path.
12405 if test -f /etc/ld.so.conf; then
12406 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' ' '`
12407 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12408 fi
12409
12410 # We used to test for /lib/ld.so.1 and disable shared libraries on
12411 # powerpc, because MkLinux only supported shared libraries with the
12412 # GNU dynamic linker. Since this was broken with cross compilers,
12413 # most powerpc-linux boxes support dynamic linking these days and
12414 # people can always --disable-shared, the test was removed, and we
12415 # assume the GNU/Linux dynamic linker is in use.
12416 dynamic_linker='GNU/Linux ld.so'
12417 ;;
12418
12419 netbsd*)
12420 version_type=sunos
12421 need_lib_prefix=no
12422 need_version=no
12423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12424 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12426 dynamic_linker='NetBSD (a.out) ld.so'
12427 else
12428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12429 soname_spec='$libname$release$shared_ext$major'
12430 dynamic_linker='NetBSD ld.elf_so'
12431 fi
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=yes
12434 hardcode_into_libs=yes
12435 ;;
12436
12437 newsos6)
12438 version_type=linux # correct to gnu/linux during the next big refactor
12439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12440 shlibpath_var=LD_LIBRARY_PATH
12441 shlibpath_overrides_runpath=yes
12442 ;;
12443
12444 *nto* | *qnx*)
12445 version_type=qnx
12446 need_lib_prefix=no
12447 need_version=no
12448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12449 soname_spec='$libname$release$shared_ext$major'
12450 shlibpath_var=LD_LIBRARY_PATH
12451 shlibpath_overrides_runpath=no
12452 hardcode_into_libs=yes
12453 dynamic_linker='ldqnx.so'
12454 ;;
12455
12456 openbsd* | bitrig*)
12457 version_type=sunos
12458 sys_lib_dlsearch_path_spec=/usr/lib
12459 need_lib_prefix=no
12460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12461 need_version=no
12462 else
12463 need_version=yes
12464 fi
12465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 shlibpath_overrides_runpath=yes
12469 ;;
12470
12471 os2*)
12472 libname_spec='$name'
12473 version_type=windows
12474 shrext_cmds=.dll
12475 need_version=no
12476 need_lib_prefix=no
12477 # OS/2 can only load a DLL with a base name of 8 characters or less.
12478 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12479 v=$($ECHO $release$versuffix | tr -d .-);
12480 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12481 $ECHO $n$v`$shared_ext'
12482 library_names_spec='${libname}_dll.$libext'
12483 dynamic_linker='OS/2 ld.exe'
12484 shlibpath_var=BEGINLIBPATH
12485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12487 postinstall_cmds='base_file=`basename \$file`~
12488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12489 dldir=$destdir/`dirname \$dlpath`~
12490 test -d \$dldir || mkdir -p \$dldir~
12491 $install_prog $dir/$dlname \$dldir/$dlname~
12492 chmod a+x \$dldir/$dlname~
12493 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12494 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12495 fi'
12496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12497 dlpath=$dir/\$dldll~
12498 $RM \$dlpath'
12499 ;;
12500
12501 osf3* | osf4* | osf5*)
12502 version_type=osf
12503 need_lib_prefix=no
12504 need_version=no
12505 soname_spec='$libname$release$shared_ext$major'
12506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12507 shlibpath_var=LD_LIBRARY_PATH
12508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12510 ;;
12511
12512 rdos*)
12513 dynamic_linker=no
12514 ;;
12515
12516 solaris*)
12517 version_type=linux # correct to gnu/linux during the next big refactor
12518 need_lib_prefix=no
12519 need_version=no
12520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12521 soname_spec='$libname$release$shared_ext$major'
12522 shlibpath_var=LD_LIBRARY_PATH
12523 shlibpath_overrides_runpath=yes
12524 hardcode_into_libs=yes
12525 # ldd complains unless libraries are executable
12526 postinstall_cmds='chmod +x $lib'
12527 ;;
12528
12529 sunos4*)
12530 version_type=sunos
12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12533 shlibpath_var=LD_LIBRARY_PATH
12534 shlibpath_overrides_runpath=yes
12535 if test yes = "$with_gnu_ld"; then
12536 need_lib_prefix=no
12537 fi
12538 need_version=yes
12539 ;;
12540
12541 sysv4 | sysv4.3*)
12542 version_type=linux # correct to gnu/linux during the next big refactor
12543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12544 soname_spec='$libname$release$shared_ext$major'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 case $host_vendor in
12547 sni)
12548 shlibpath_overrides_runpath=no
12549 need_lib_prefix=no
12550 runpath_var=LD_RUN_PATH
12551 ;;
12552 siemens)
12553 need_lib_prefix=no
12554 ;;
12555 motorola)
12556 need_lib_prefix=no
12557 need_version=no
12558 shlibpath_overrides_runpath=no
12559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12560 ;;
12561 esac
12562 ;;
12563
12564 sysv4*MP*)
12565 if test -d /usr/nec; then
12566 version_type=linux # correct to gnu/linux during the next big refactor
12567 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12568 soname_spec='$libname$shared_ext.$major'
12569 shlibpath_var=LD_LIBRARY_PATH
12570 fi
12571 ;;
12572
12573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12574 version_type=sco
12575 need_lib_prefix=no
12576 need_version=no
12577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12578 soname_spec='$libname$release$shared_ext$major'
12579 shlibpath_var=LD_LIBRARY_PATH
12580 shlibpath_overrides_runpath=yes
12581 hardcode_into_libs=yes
12582 if test yes = "$with_gnu_ld"; then
12583 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12584 else
12585 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12586 case $host_os in
12587 sco3.2v5*)
12588 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12589 ;;
12590 esac
12591 fi
12592 sys_lib_dlsearch_path_spec='/usr/lib'
12593 ;;
12594
12595 tpf*)
12596 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12597 version_type=linux # correct to gnu/linux during the next big refactor
12598 need_lib_prefix=no
12599 need_version=no
12600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 shlibpath_overrides_runpath=no
12603 hardcode_into_libs=yes
12604 ;;
12605
12606 uts4*)
12607 version_type=linux # correct to gnu/linux during the next big refactor
12608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12609 soname_spec='$libname$release$shared_ext$major'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 ;;
12612
12613 *)
12614 dynamic_linker=no
12615 ;;
12616 esac
12617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12618 printf "%s\n" "$dynamic_linker" >&6; }
12619 test no = "$dynamic_linker" && can_build_shared=no
12620
12621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12622 if test yes = "$GCC"; then
12623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12624 fi
12625
12626 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12627 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12628 fi
12629
12630 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12631 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12632 fi
12633
12634 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12635 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12636
12637 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12638 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12639
12640 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12641 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12740 printf %s "checking how to hardcode library paths into programs... " >&6; }
12741 hardcode_action=
12742 if test -n "$hardcode_libdir_flag_spec" ||
12743 test -n "$runpath_var" ||
12744 test yes = "$hardcode_automatic"; then
12745
12746 # We can hardcode non-existent directories.
12747 if test no != "$hardcode_direct" &&
12748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12749 # have to relink, otherwise we might link with an installed library
12750 # when we should be linking with a yet-to-be-installed one
12751 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12752 test no != "$hardcode_minus_L"; then
12753 # Linking always hardcodes the temporary library directory.
12754 hardcode_action=relink
12755 else
12756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12757 hardcode_action=immediate
12758 fi
12759 else
12760 # We cannot hardcode anything, or else we can only hardcode existing
12761 # directories.
12762 hardcode_action=unsupported
12763 fi
12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12765 printf "%s\n" "$hardcode_action" >&6; }
12766
12767 if test relink = "$hardcode_action" ||
12768 test yes = "$inherit_rpath"; then
12769 # Fast installation is not supported
12770 enable_fast_install=no
12771 elif test yes = "$shlibpath_overrides_runpath" ||
12772 test no = "$enable_shared"; then
12773 # Fast installation is not necessary
12774 enable_fast_install=needless
12775 fi
12776
12777
12778
12779
12780
12781
12782 if test yes != "$enable_dlopen"; then
12783 enable_dlopen=unknown
12784 enable_dlopen_self=unknown
12785 enable_dlopen_self_static=unknown
12786 else
12787 lt_cv_dlopen=no
12788 lt_cv_dlopen_libs=
12789
12790 case $host_os in
12791 beos*)
12792 lt_cv_dlopen=load_add_on
12793 lt_cv_dlopen_libs=
12794 lt_cv_dlopen_self=yes
12795 ;;
12796
12797 mingw* | pw32* | cegcc*)
12798 lt_cv_dlopen=LoadLibrary
12799 lt_cv_dlopen_libs=
12800 ;;
12801
12802 cygwin*)
12803 lt_cv_dlopen=dlopen
12804 lt_cv_dlopen_libs=
12805 ;;
12806
12807 darwin*)
12808 # if libdl is installed we need to link against it
12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12810 printf %s "checking for dlopen in -ldl... " >&6; }
12811 if test ${ac_cv_lib_dl_dlopen+y}
12812 then :
12813 printf %s "(cached) " >&6
12814 else $as_nop
12815 ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-ldl $LIBS"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819
12820 /* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823 char dlopen ();
12824 int
12825 main (void)
12826 {
12827 return dlopen ();
12828 ;
12829 return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_link "$LINENO"
12833 then :
12834 ac_cv_lib_dl_dlopen=yes
12835 else $as_nop
12836 ac_cv_lib_dl_dlopen=no
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12839 conftest$ac_exeext conftest.$ac_ext
12840 LIBS=$ac_check_lib_save_LIBS
12841 fi
12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12843 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12844 if test "x$ac_cv_lib_dl_dlopen" = xyes
12845 then :
12846 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12847 else $as_nop
12848
12849 lt_cv_dlopen=dyld
12850 lt_cv_dlopen_libs=
12851 lt_cv_dlopen_self=yes
12852
12853 fi
12854
12855 ;;
12856
12857 tpf*)
12858 # Don't try to run any link tests for TPF. We know it's impossible
12859 # because TPF is a cross-compiler, and we know how we open DSOs.
12860 lt_cv_dlopen=dlopen
12861 lt_cv_dlopen_libs=
12862 lt_cv_dlopen_self=no
12863 ;;
12864
12865 *)
12866 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12867 if test "x$ac_cv_func_shl_load" = xyes
12868 then :
12869 lt_cv_dlopen=shl_load
12870 else $as_nop
12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12872 printf %s "checking for shl_load in -ldld... " >&6; }
12873 if test ${ac_cv_lib_dld_shl_load+y}
12874 then :
12875 printf %s "(cached) " >&6
12876 else $as_nop
12877 ac_check_lib_save_LIBS=$LIBS
12878 LIBS="-ldld $LIBS"
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12885 char shl_load ();
12886 int
12887 main (void)
12888 {
12889 return shl_load ();
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_link "$LINENO"
12895 then :
12896 ac_cv_lib_dld_shl_load=yes
12897 else $as_nop
12898 ac_cv_lib_dld_shl_load=no
12899 fi
12900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12901 conftest$ac_exeext conftest.$ac_ext
12902 LIBS=$ac_check_lib_save_LIBS
12903 fi
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12905 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12906 if test "x$ac_cv_lib_dld_shl_load" = xyes
12907 then :
12908 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12909 else $as_nop
12910 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12911 if test "x$ac_cv_func_dlopen" = xyes
12912 then :
12913 lt_cv_dlopen=dlopen
12914 else $as_nop
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12916 printf %s "checking for dlopen in -ldl... " >&6; }
12917 if test ${ac_cv_lib_dl_dlopen+y}
12918 then :
12919 printf %s "(cached) " >&6
12920 else $as_nop
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-ldl $LIBS"
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12929 char dlopen ();
12930 int
12931 main (void)
12932 {
12933 return dlopen ();
12934 ;
12935 return 0;
12936 }
12937 _ACEOF
12938 if ac_fn_c_try_link "$LINENO"
12939 then :
12940 ac_cv_lib_dl_dlopen=yes
12941 else $as_nop
12942 ac_cv_lib_dl_dlopen=no
12943 fi
12944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS=$ac_check_lib_save_LIBS
12947 fi
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12949 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12950 if test "x$ac_cv_lib_dl_dlopen" = xyes
12951 then :
12952 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12953 else $as_nop
12954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12955 printf %s "checking for dlopen in -lsvld... " >&6; }
12956 if test ${ac_cv_lib_svld_dlopen+y}
12957 then :
12958 printf %s "(cached) " >&6
12959 else $as_nop
12960 ac_check_lib_save_LIBS=$LIBS
12961 LIBS="-lsvld $LIBS"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 char dlopen ();
12969 int
12970 main (void)
12971 {
12972 return dlopen ();
12973 ;
12974 return 0;
12975 }
12976 _ACEOF
12977 if ac_fn_c_try_link "$LINENO"
12978 then :
12979 ac_cv_lib_svld_dlopen=yes
12980 else $as_nop
12981 ac_cv_lib_svld_dlopen=no
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12984 conftest$ac_exeext conftest.$ac_ext
12985 LIBS=$ac_check_lib_save_LIBS
12986 fi
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12988 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12989 if test "x$ac_cv_lib_svld_dlopen" = xyes
12990 then :
12991 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12992 else $as_nop
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12994 printf %s "checking for dld_link in -ldld... " >&6; }
12995 if test ${ac_cv_lib_dld_dld_link+y}
12996 then :
12997 printf %s "(cached) " >&6
12998 else $as_nop
12999 ac_check_lib_save_LIBS=$LIBS
13000 LIBS="-ldld $LIBS"
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003
13004 /* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13007 char dld_link ();
13008 int
13009 main (void)
13010 {
13011 return dld_link ();
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"
13017 then :
13018 ac_cv_lib_dld_dld_link=yes
13019 else $as_nop
13020 ac_cv_lib_dld_dld_link=no
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13023 conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13025 fi
13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13027 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13028 if test "x$ac_cv_lib_dld_dld_link" = xyes
13029 then :
13030 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13031 fi
13032
13033
13034 fi
13035
13036
13037 fi
13038
13039
13040 fi
13041
13042
13043 fi
13044
13045
13046 fi
13047
13048 ;;
13049 esac
13050
13051 if test no = "$lt_cv_dlopen"; then
13052 enable_dlopen=no
13053 else
13054 enable_dlopen=yes
13055 fi
13056
13057 case $lt_cv_dlopen in
13058 dlopen)
13059 save_CPPFLAGS=$CPPFLAGS
13060 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13061
13062 save_LDFLAGS=$LDFLAGS
13063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13064
13065 save_LIBS=$LIBS
13066 LIBS="$lt_cv_dlopen_libs $LIBS"
13067
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13069 printf %s "checking whether a program can dlopen itself... " >&6; }
13070 if test ${lt_cv_dlopen_self+y}
13071 then :
13072 printf %s "(cached) " >&6
13073 else $as_nop
13074 if test yes = "$cross_compiling"; then :
13075 lt_cv_dlopen_self=cross
13076 else
13077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13078 lt_status=$lt_dlunknown
13079 cat > conftest.$ac_ext <<_LT_EOF
13080 #line $LINENO "configure"
13081 #include "confdefs.h"
13082
13083 #if HAVE_DLFCN_H
13084 #include <dlfcn.h>
13085 #endif
13086
13087 #include <stdio.h>
13088
13089 #ifdef RTLD_GLOBAL
13090 # define LT_DLGLOBAL RTLD_GLOBAL
13091 #else
13092 # ifdef DL_GLOBAL
13093 # define LT_DLGLOBAL DL_GLOBAL
13094 # else
13095 # define LT_DLGLOBAL 0
13096 # endif
13097 #endif
13098
13099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13100 find out it does not work in some platform. */
13101 #ifndef LT_DLLAZY_OR_NOW
13102 # ifdef RTLD_LAZY
13103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13104 # else
13105 # ifdef DL_LAZY
13106 # define LT_DLLAZY_OR_NOW DL_LAZY
13107 # else
13108 # ifdef RTLD_NOW
13109 # define LT_DLLAZY_OR_NOW RTLD_NOW
13110 # else
13111 # ifdef DL_NOW
13112 # define LT_DLLAZY_OR_NOW DL_NOW
13113 # else
13114 # define LT_DLLAZY_OR_NOW 0
13115 # endif
13116 # endif
13117 # endif
13118 # endif
13119 #endif
13120
13121 /* When -fvisibility=hidden is used, assume the code has been annotated
13122 correspondingly for the symbols needed. */
13123 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13124 int fnord () __attribute__((visibility("default")));
13125 #endif
13126
13127 int fnord () { return 42; }
13128 int main ()
13129 {
13130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13131 int status = $lt_dlunknown;
13132
13133 if (self)
13134 {
13135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13136 else
13137 {
13138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13139 else puts (dlerror ());
13140 }
13141 /* dlclose (self); */
13142 }
13143 else
13144 puts (dlerror ());
13145
13146 return status;
13147 }
13148 _LT_EOF
13149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13150 (eval $ac_link) 2>&5
13151 ac_status=$?
13152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13153 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13154 (./conftest; exit; ) >&5 2>/dev/null
13155 lt_status=$?
13156 case x$lt_status in
13157 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13158 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13159 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13160 esac
13161 else :
13162 # compilation failed
13163 lt_cv_dlopen_self=no
13164 fi
13165 fi
13166 rm -fr conftest*
13167
13168
13169 fi
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13171 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13172
13173 if test yes = "$lt_cv_dlopen_self"; then
13174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13176 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13177 if test ${lt_cv_dlopen_self_static+y}
13178 then :
13179 printf %s "(cached) " >&6
13180 else $as_nop
13181 if test yes = "$cross_compiling"; then :
13182 lt_cv_dlopen_self_static=cross
13183 else
13184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13185 lt_status=$lt_dlunknown
13186 cat > conftest.$ac_ext <<_LT_EOF
13187 #line $LINENO "configure"
13188 #include "confdefs.h"
13189
13190 #if HAVE_DLFCN_H
13191 #include <dlfcn.h>
13192 #endif
13193
13194 #include <stdio.h>
13195
13196 #ifdef RTLD_GLOBAL
13197 # define LT_DLGLOBAL RTLD_GLOBAL
13198 #else
13199 # ifdef DL_GLOBAL
13200 # define LT_DLGLOBAL DL_GLOBAL
13201 # else
13202 # define LT_DLGLOBAL 0
13203 # endif
13204 #endif
13205
13206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13207 find out it does not work in some platform. */
13208 #ifndef LT_DLLAZY_OR_NOW
13209 # ifdef RTLD_LAZY
13210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13211 # else
13212 # ifdef DL_LAZY
13213 # define LT_DLLAZY_OR_NOW DL_LAZY
13214 # else
13215 # ifdef RTLD_NOW
13216 # define LT_DLLAZY_OR_NOW RTLD_NOW
13217 # else
13218 # ifdef DL_NOW
13219 # define LT_DLLAZY_OR_NOW DL_NOW
13220 # else
13221 # define LT_DLLAZY_OR_NOW 0
13222 # endif
13223 # endif
13224 # endif
13225 # endif
13226 #endif
13227
13228 /* When -fvisibility=hidden is used, assume the code has been annotated
13229 correspondingly for the symbols needed. */
13230 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13231 int fnord () __attribute__((visibility("default")));
13232 #endif
13233
13234 int fnord () { return 42; }
13235 int main ()
13236 {
13237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13238 int status = $lt_dlunknown;
13239
13240 if (self)
13241 {
13242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13243 else
13244 {
13245 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13246 else puts (dlerror ());
13247 }
13248 /* dlclose (self); */
13249 }
13250 else
13251 puts (dlerror ());
13252
13253 return status;
13254 }
13255 _LT_EOF
13256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13257 (eval $ac_link) 2>&5
13258 ac_status=$?
13259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13261 (./conftest; exit; ) >&5 2>/dev/null
13262 lt_status=$?
13263 case x$lt_status in
13264 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13265 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13266 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13267 esac
13268 else :
13269 # compilation failed
13270 lt_cv_dlopen_self_static=no
13271 fi
13272 fi
13273 rm -fr conftest*
13274
13275
13276 fi
13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13278 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13279 fi
13280
13281 CPPFLAGS=$save_CPPFLAGS
13282 LDFLAGS=$save_LDFLAGS
13283 LIBS=$save_LIBS
13284 ;;
13285 esac
13286
13287 case $lt_cv_dlopen_self in
13288 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13289 *) enable_dlopen_self=unknown ;;
13290 esac
13291
13292 case $lt_cv_dlopen_self_static in
13293 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13294 *) enable_dlopen_self_static=unknown ;;
13295 esac
13296 fi
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314 striplib=
13315 old_striplib=
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13317 printf %s "checking whether stripping libraries is possible... " >&6; }
13318 if test -z "$STRIP"; then
13319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320 printf "%s\n" "no" >&6; }
13321 else
13322 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13323 old_striplib="$STRIP --strip-debug"
13324 striplib="$STRIP --strip-unneeded"
13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13326 printf "%s\n" "yes" >&6; }
13327 else
13328 case $host_os in
13329 darwin*)
13330 # FIXME - insert some real tests, host_os isn't really good enough
13331 striplib="$STRIP -x"
13332 old_striplib="$STRIP -S"
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334 printf "%s\n" "yes" >&6; }
13335 ;;
13336 freebsd*)
13337 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13338 old_striplib="$STRIP --strip-debug"
13339 striplib="$STRIP --strip-unneeded"
13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13341 printf "%s\n" "yes" >&6; }
13342 else
13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 printf "%s\n" "no" >&6; }
13345 fi
13346 ;;
13347 *)
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 printf "%s\n" "no" >&6; }
13350 ;;
13351 esac
13352 fi
13353 fi
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366 # Report what library types will actually be built
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13368 printf %s "checking if libtool supports shared libraries... " >&6; }
13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13370 printf "%s\n" "$can_build_shared" >&6; }
13371
13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13373 printf %s "checking whether to build shared libraries... " >&6; }
13374 test no = "$can_build_shared" && enable_shared=no
13375
13376 # On AIX, shared libraries and static libraries use the same namespace, and
13377 # are all built from PIC.
13378 case $host_os in
13379 aix3*)
13380 test yes = "$enable_shared" && enable_static=no
13381 if test -n "$RANLIB"; then
13382 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13383 postinstall_cmds='$RANLIB $lib'
13384 fi
13385 ;;
13386
13387 aix[4-9]*)
13388 if test ia64 != "$host_cpu"; then
13389 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13390 yes,aix,yes) ;; # shared object as lib.so file only
13391 yes,svr4,*) ;; # shared object as lib.so archive member only
13392 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13393 esac
13394 fi
13395 ;;
13396 esac
13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13398 printf "%s\n" "$enable_shared" >&6; }
13399
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13401 printf %s "checking whether to build static libraries... " >&6; }
13402 # Make sure either enable_shared or enable_static is yes.
13403 test yes = "$enable_shared" || enable_static=yes
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13405 printf "%s\n" "$enable_static" >&6; }
13406
13407
13408
13409
13410 fi
13411 ac_ext=cpp
13412 ac_cpp='$CXXCPP $CPPFLAGS'
13413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13416
13417 CC=$lt_save_CC
13418
13419 if test -n "$CXX" && ( test no != "$CXX" &&
13420 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13421 (test g++ != "$CXX"))); then
13422 ac_ext=cpp
13423 ac_cpp='$CXXCPP $CPPFLAGS'
13424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13428 printf %s "checking how to run the C++ preprocessor... " >&6; }
13429 if test -z "$CXXCPP"; then
13430 if test ${ac_cv_prog_CXXCPP+y}
13431 then :
13432 printf %s "(cached) " >&6
13433 else $as_nop
13434 # Double quotes because $CXX needs to be expanded
13435 for CXXCPP in "$CXX -E" cpp /lib/cpp
13436 do
13437 ac_preproc_ok=false
13438 for ac_cxx_preproc_warn_flag in '' yes
13439 do
13440 # Use a header file that comes with gcc, so configuring glibc
13441 # with a fresh cross-compiler works.
13442 # On the NeXT, cc -E runs the code through the compiler's parser,
13443 # not just through cpp. "Syntax error" is here to catch this case.
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13446 #include <limits.h>
13447 Syntax error
13448 _ACEOF
13449 if ac_fn_cxx_try_cpp "$LINENO"
13450 then :
13451
13452 else $as_nop
13453 # Broken: fails on valid input.
13454 continue
13455 fi
13456 rm -f conftest.err conftest.i conftest.$ac_ext
13457
13458 # OK, works on sane cases. Now check whether nonexistent headers
13459 # can be detected and how.
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 #include <ac_nonexistent.h>
13463 _ACEOF
13464 if ac_fn_cxx_try_cpp "$LINENO"
13465 then :
13466 # Broken: success on invalid input.
13467 continue
13468 else $as_nop
13469 # Passes both tests.
13470 ac_preproc_ok=:
13471 break
13472 fi
13473 rm -f conftest.err conftest.i conftest.$ac_ext
13474
13475 done
13476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13477 rm -f conftest.i conftest.err conftest.$ac_ext
13478 if $ac_preproc_ok
13479 then :
13480 break
13481 fi
13482
13483 done
13484 ac_cv_prog_CXXCPP=$CXXCPP
13485
13486 fi
13487 CXXCPP=$ac_cv_prog_CXXCPP
13488 else
13489 ac_cv_prog_CXXCPP=$CXXCPP
13490 fi
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13492 printf "%s\n" "$CXXCPP" >&6; }
13493 ac_preproc_ok=false
13494 for ac_cxx_preproc_warn_flag in '' yes
13495 do
13496 # Use a header file that comes with gcc, so configuring glibc
13497 # with a fresh cross-compiler works.
13498 # On the NeXT, cc -E runs the code through the compiler's parser,
13499 # not just through cpp. "Syntax error" is here to catch this case.
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #include <limits.h>
13503 Syntax error
13504 _ACEOF
13505 if ac_fn_cxx_try_cpp "$LINENO"
13506 then :
13507
13508 else $as_nop
13509 # Broken: fails on valid input.
13510 continue
13511 fi
13512 rm -f conftest.err conftest.i conftest.$ac_ext
13513
13514 # OK, works on sane cases. Now check whether nonexistent headers
13515 # can be detected and how.
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13518 #include <ac_nonexistent.h>
13519 _ACEOF
13520 if ac_fn_cxx_try_cpp "$LINENO"
13521 then :
13522 # Broken: success on invalid input.
13523 continue
13524 else $as_nop
13525 # Passes both tests.
13526 ac_preproc_ok=:
13527 break
13528 fi
13529 rm -f conftest.err conftest.i conftest.$ac_ext
13530
13531 done
13532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13533 rm -f conftest.i conftest.err conftest.$ac_ext
13534 if $ac_preproc_ok
13535 then :
13536
13537 else $as_nop
13538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13539 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13540 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13541 See \`config.log' for more details" "$LINENO" 5; }
13542 fi
13543
13544 ac_ext=cpp
13545 ac_cpp='$CXXCPP $CPPFLAGS'
13546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13549
13550 else
13551 _lt_caught_CXX_error=yes
13552 fi
13553
13554 ac_ext=cpp
13555 ac_cpp='$CXXCPP $CPPFLAGS'
13556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13559
13560 archive_cmds_need_lc_CXX=no
13561 allow_undefined_flag_CXX=
13562 always_export_symbols_CXX=no
13563 archive_expsym_cmds_CXX=
13564 compiler_needs_object_CXX=no
13565 export_dynamic_flag_spec_CXX=
13566 hardcode_direct_CXX=no
13567 hardcode_direct_absolute_CXX=no
13568 hardcode_libdir_flag_spec_CXX=
13569 hardcode_libdir_separator_CXX=
13570 hardcode_minus_L_CXX=no
13571 hardcode_shlibpath_var_CXX=unsupported
13572 hardcode_automatic_CXX=no
13573 inherit_rpath_CXX=no
13574 module_cmds_CXX=
13575 module_expsym_cmds_CXX=
13576 link_all_deplibs_CXX=unknown
13577 old_archive_cmds_CXX=$old_archive_cmds
13578 reload_flag_CXX=$reload_flag
13579 reload_cmds_CXX=$reload_cmds
13580 no_undefined_flag_CXX=
13581 whole_archive_flag_spec_CXX=
13582 enable_shared_with_static_runtimes_CXX=no
13583
13584 # Source file extension for C++ test sources.
13585 ac_ext=cpp
13586
13587 # Object file extension for compiled C++ test sources.
13588 objext=o
13589 objext_CXX=$objext
13590
13591 # No sense in running all these tests if we already determined that
13592 # the CXX compiler isn't working. Some variables (like enable_shared)
13593 # are currently assumed to apply to all compilers on this platform,
13594 # and will be corrupted by setting them based on a non-working compiler.
13595 if test yes != "$_lt_caught_CXX_error"; then
13596 # Code to be used in simple compile tests
13597 lt_simple_compile_test_code="int some_variable = 0;"
13598
13599 # Code to be used in simple link tests
13600 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13601
13602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13603
13604
13605
13606
13607
13608
13609 # If no C compiler was specified, use CC.
13610 LTCC=${LTCC-"$CC"}
13611
13612 # If no C compiler flags were specified, use CFLAGS.
13613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13614
13615 # Allow CC to be a program name with arguments.
13616 compiler=$CC
13617
13618
13619 # save warnings/boilerplate of simple test code
13620 ac_outfile=conftest.$ac_objext
13621 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13622 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13623 _lt_compiler_boilerplate=`cat conftest.err`
13624 $RM conftest*
13625
13626 ac_outfile=conftest.$ac_objext
13627 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13628 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13629 _lt_linker_boilerplate=`cat conftest.err`
13630 $RM -r conftest*
13631
13632
13633 # Allow CC to be a program name with arguments.
13634 lt_save_CC=$CC
13635 lt_save_CFLAGS=$CFLAGS
13636 lt_save_LD=$LD
13637 lt_save_GCC=$GCC
13638 GCC=$GXX
13639 lt_save_with_gnu_ld=$with_gnu_ld
13640 lt_save_path_LD=$lt_cv_path_LD
13641 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13642 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13643 else
13644 $as_unset lt_cv_prog_gnu_ld
13645 fi
13646 if test -n "${lt_cv_path_LDCXX+set}"; then
13647 lt_cv_path_LD=$lt_cv_path_LDCXX
13648 else
13649 $as_unset lt_cv_path_LD
13650 fi
13651 test -z "${LDCXX+set}" || LD=$LDCXX
13652 CC=${CXX-"c++"}
13653 CFLAGS=$CXXFLAGS
13654 compiler=$CC
13655 compiler_CXX=$CC
13656 func_cc_basename $compiler
13657 cc_basename=$func_cc_basename_result
13658
13659
13660 if test -n "$compiler"; then
13661 # We don't want -fno-exception when compiling C++ code, so set the
13662 # no_builtin_flag separately
13663 if test yes = "$GXX"; then
13664 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13665 else
13666 lt_prog_compiler_no_builtin_flag_CXX=
13667 fi
13668
13669 if test yes = "$GXX"; then
13670 # Set up default GNU C++ configuration
13671
13672
13673
13674 # Check whether --with-gnu-ld was given.
13675 if test ${with_gnu_ld+y}
13676 then :
13677 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13678 else $as_nop
13679 with_gnu_ld=no
13680 fi
13681
13682 ac_prog=ld
13683 if test yes = "$GCC"; then
13684 # Check if gcc -print-prog-name=ld gives a path.
13685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13686 printf %s "checking for ld used by $CC... " >&6; }
13687 case $host in
13688 *-*-mingw*)
13689 # gcc leaves a trailing carriage return, which upsets mingw
13690 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13691 *)
13692 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13693 esac
13694 case $ac_prog in
13695 # Accept absolute paths.
13696 [\\/]* | ?:[\\/]*)
13697 re_direlt='/[^/][^/]*/\.\./'
13698 # Canonicalize the pathname of ld
13699 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13700 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13701 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13702 done
13703 test -z "$LD" && LD=$ac_prog
13704 ;;
13705 "")
13706 # If it fails, then pretend we aren't using GCC.
13707 ac_prog=ld
13708 ;;
13709 *)
13710 # If it is relative, then search for the first ld in PATH.
13711 with_gnu_ld=unknown
13712 ;;
13713 esac
13714 elif test yes = "$with_gnu_ld"; then
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13716 printf %s "checking for GNU ld... " >&6; }
13717 else
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13719 printf %s "checking for non-GNU ld... " >&6; }
13720 fi
13721 if test ${lt_cv_path_LD+y}
13722 then :
13723 printf %s "(cached) " >&6
13724 else $as_nop
13725 if test -z "$LD"; then
13726 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13727 for ac_dir in $PATH; do
13728 IFS=$lt_save_ifs
13729 test -z "$ac_dir" && ac_dir=.
13730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13731 lt_cv_path_LD=$ac_dir/$ac_prog
13732 # Check to see if the program is GNU ld. I'd rather use --version,
13733 # but apparently some variants of GNU ld only accept -v.
13734 # Break only if it was the GNU/non-GNU ld that we prefer.
13735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13736 *GNU* | *'with BFD'*)
13737 test no != "$with_gnu_ld" && break
13738 ;;
13739 *)
13740 test yes != "$with_gnu_ld" && break
13741 ;;
13742 esac
13743 fi
13744 done
13745 IFS=$lt_save_ifs
13746 else
13747 lt_cv_path_LD=$LD # Let the user override the test with a path.
13748 fi
13749 fi
13750
13751 LD=$lt_cv_path_LD
13752 if test -n "$LD"; then
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13754 printf "%s\n" "$LD" >&6; }
13755 else
13756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 printf "%s\n" "no" >&6; }
13758 fi
13759 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13761 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13762 if test ${lt_cv_prog_gnu_ld+y}
13763 then :
13764 printf %s "(cached) " >&6
13765 else $as_nop
13766 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13767 case `$LD -v 2>&1 </dev/null` in
13768 *GNU* | *'with BFD'*)
13769 lt_cv_prog_gnu_ld=yes
13770 ;;
13771 *)
13772 lt_cv_prog_gnu_ld=no
13773 ;;
13774 esac
13775 fi
13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13777 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
13778 with_gnu_ld=$lt_cv_prog_gnu_ld
13779
13780
13781
13782
13783
13784
13785
13786 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13787 # archiving commands below assume that GNU ld is being used.
13788 if test yes = "$with_gnu_ld"; then
13789 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13790 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'
13791
13792 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13793 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13794
13795 # If archive_cmds runs LD, not CC, wlarc should be empty
13796 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13797 # investigate it a little bit more. (MM)
13798 wlarc='$wl'
13799
13800 # ancient GNU ld didn't support --whole-archive et. al.
13801 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13802 $GREP 'no-whole-archive' > /dev/null; then
13803 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13804 else
13805 whole_archive_flag_spec_CXX=
13806 fi
13807 else
13808 with_gnu_ld=no
13809 wlarc=
13810
13811 # A generic and very simple default shared library creation
13812 # command for GNU C++ for the case where it uses the native
13813 # linker, instead of GNU ld. If possible, this setting should
13814 # overridden to take advantage of the native linker features on
13815 # the platform it is being used on.
13816 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13817 fi
13818
13819 # Commands to make compiler produce verbose output that lists
13820 # what "hidden" libraries, object files and flags are used when
13821 # linking a shared library.
13822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13823
13824 else
13825 GXX=no
13826 with_gnu_ld=no
13827 wlarc=
13828 fi
13829
13830 # PORTME: fill in a description of your system's C++ link characteristics
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13832 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13833 ld_shlibs_CXX=yes
13834 case $host_os in
13835 aix3*)
13836 # FIXME: insert proper C++ library support
13837 ld_shlibs_CXX=no
13838 ;;
13839 aix[4-9]*)
13840 if test ia64 = "$host_cpu"; then
13841 # On IA64, the linker does run time linking by default, so we don't
13842 # have to do anything special.
13843 aix_use_runtimelinking=no
13844 exp_sym_flag='-Bexport'
13845 no_entry_flag=
13846 else
13847 aix_use_runtimelinking=no
13848
13849 # Test if we are trying to use run time linking or normal
13850 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13851 # have runtime linking enabled, and use it for executables.
13852 # For shared libraries, we enable/disable runtime linking
13853 # depending on the kind of the shared library created -
13854 # when "with_aix_soname,aix_use_runtimelinking" is:
13855 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13856 # "aix,yes" lib.so shared, rtl:yes, for executables
13857 # lib.a static archive
13858 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13859 # lib.a(lib.so.V) shared, rtl:no, for executables
13860 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13861 # lib.a(lib.so.V) shared, rtl:no
13862 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13863 # lib.a static archive
13864 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13865 for ld_flag in $LDFLAGS; do
13866 case $ld_flag in
13867 *-brtl*)
13868 aix_use_runtimelinking=yes
13869 break
13870 ;;
13871 esac
13872 done
13873 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13874 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13875 # so we don't have lib.a shared libs to link our executables.
13876 # We have to force runtime linking in this case.
13877 aix_use_runtimelinking=yes
13878 LDFLAGS="$LDFLAGS -Wl,-brtl"
13879 fi
13880 ;;
13881 esac
13882
13883 exp_sym_flag='-bexport'
13884 no_entry_flag='-bnoentry'
13885 fi
13886
13887 # When large executables or shared objects are built, AIX ld can
13888 # have problems creating the table of contents. If linking a library
13889 # or program results in "error TOC overflow" add -mminimal-toc to
13890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13892
13893 archive_cmds_CXX=''
13894 hardcode_direct_CXX=yes
13895 hardcode_direct_absolute_CXX=yes
13896 hardcode_libdir_separator_CXX=':'
13897 link_all_deplibs_CXX=yes
13898 file_list_spec_CXX='$wl-f,'
13899 case $with_aix_soname,$aix_use_runtimelinking in
13900 aix,*) ;; # no import file
13901 svr4,* | *,yes) # use import file
13902 # The Import File defines what to hardcode.
13903 hardcode_direct_CXX=no
13904 hardcode_direct_absolute_CXX=no
13905 ;;
13906 esac
13907
13908 if test yes = "$GXX"; then
13909 case $host_os in aix4.[012]|aix4.[012].*)
13910 # We only want to do this on AIX 4.2 and lower, the check
13911 # below for broken collect2 doesn't work under 4.3+
13912 collect2name=`$CC -print-prog-name=collect2`
13913 if test -f "$collect2name" &&
13914 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13915 then
13916 # We have reworked collect2
13917 :
13918 else
13919 # We have old collect2
13920 hardcode_direct_CXX=unsupported
13921 # It fails to find uninstalled libraries when the uninstalled
13922 # path is not listed in the libpath. Setting hardcode_minus_L
13923 # to unsupported forces relinking
13924 hardcode_minus_L_CXX=yes
13925 hardcode_libdir_flag_spec_CXX='-L$libdir'
13926 hardcode_libdir_separator_CXX=
13927 fi
13928 esac
13929 shared_flag='-shared'
13930 if test yes = "$aix_use_runtimelinking"; then
13931 shared_flag=$shared_flag' $wl-G'
13932 fi
13933 # Need to ensure runtime linking is disabled for the traditional
13934 # shared library, or the linker may eventually find shared libraries
13935 # /with/ Import File - we do not want to mix them.
13936 shared_flag_aix='-shared'
13937 shared_flag_svr4='-shared $wl-G'
13938 else
13939 # not using gcc
13940 if test ia64 = "$host_cpu"; then
13941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13942 # chokes on -Wl,-G. The following line is correct:
13943 shared_flag='-G'
13944 else
13945 if test yes = "$aix_use_runtimelinking"; then
13946 shared_flag='$wl-G'
13947 else
13948 shared_flag='$wl-bM:SRE'
13949 fi
13950 shared_flag_aix='$wl-bM:SRE'
13951 shared_flag_svr4='$wl-G'
13952 fi
13953 fi
13954
13955 export_dynamic_flag_spec_CXX='$wl-bexpall'
13956 # It seems that -bexpall does not export symbols beginning with
13957 # underscore (_), so it is better to generate a list of symbols to
13958 # export.
13959 always_export_symbols_CXX=yes
13960 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13961 # Warning - without using the other runtime loading flags (-brtl),
13962 # -berok will link without error, but may produce a broken library.
13963 # The "-G" linker flag allows undefined symbols.
13964 no_undefined_flag_CXX='-bernotok'
13965 # Determine the default libpath from the value encoded in an empty
13966 # executable.
13967 if test set = "${lt_cv_aix_libpath+set}"; then
13968 aix_libpath=$lt_cv_aix_libpath
13969 else
13970 if test ${lt_cv_aix_libpath__CXX+y}
13971 then :
13972 printf %s "(cached) " >&6
13973 else $as_nop
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13976
13977 int
13978 main (void)
13979 {
13980
13981 ;
13982 return 0;
13983 }
13984 _ACEOF
13985 if ac_fn_cxx_try_link "$LINENO"
13986 then :
13987
13988 lt_aix_libpath_sed='
13989 /Import File Strings/,/^$/ {
13990 /^0/ {
13991 s/^0 *\([^ ]*\) *$/\1/
13992 p
13993 }
13994 }'
13995 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13996 # Check for a 64-bit object if we didn't find anything.
13997 if test -z "$lt_cv_aix_libpath__CXX"; then
13998 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13999 fi
14000 fi
14001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14002 conftest$ac_exeext conftest.$ac_ext
14003 if test -z "$lt_cv_aix_libpath__CXX"; then
14004 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14005 fi
14006
14007 fi
14008
14009 aix_libpath=$lt_cv_aix_libpath__CXX
14010 fi
14011
14012 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14013
14014 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
14015 else
14016 if test ia64 = "$host_cpu"; then
14017 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14018 allow_undefined_flag_CXX="-z nodefs"
14019 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"
14020 else
14021 # Determine the default libpath from the value encoded in an
14022 # empty executable.
14023 if test set = "${lt_cv_aix_libpath+set}"; then
14024 aix_libpath=$lt_cv_aix_libpath
14025 else
14026 if test ${lt_cv_aix_libpath__CXX+y}
14027 then :
14028 printf %s "(cached) " >&6
14029 else $as_nop
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032
14033 int
14034 main (void)
14035 {
14036
14037 ;
14038 return 0;
14039 }
14040 _ACEOF
14041 if ac_fn_cxx_try_link "$LINENO"
14042 then :
14043
14044 lt_aix_libpath_sed='
14045 /Import File Strings/,/^$/ {
14046 /^0/ {
14047 s/^0 *\([^ ]*\) *$/\1/
14048 p
14049 }
14050 }'
14051 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14052 # Check for a 64-bit object if we didn't find anything.
14053 if test -z "$lt_cv_aix_libpath__CXX"; then
14054 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14055 fi
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14058 conftest$ac_exeext conftest.$ac_ext
14059 if test -z "$lt_cv_aix_libpath__CXX"; then
14060 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14061 fi
14062
14063 fi
14064
14065 aix_libpath=$lt_cv_aix_libpath__CXX
14066 fi
14067
14068 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14069 # Warning - without using the other run time loading flags,
14070 # -berok will link without error, but may produce a broken library.
14071 no_undefined_flag_CXX=' $wl-bernotok'
14072 allow_undefined_flag_CXX=' $wl-berok'
14073 if test yes = "$with_gnu_ld"; then
14074 # We only use this code for GNU lds that support --whole-archive.
14075 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14076 else
14077 # Exported symbols can be pulled into shared objects from archives
14078 whole_archive_flag_spec_CXX='$convenience'
14079 fi
14080 archive_cmds_need_lc_CXX=yes
14081 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14082 # -brtl affects multiple linker settings, -berok does not and is overridden later
14083 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14084 if test svr4 != "$with_aix_soname"; then
14085 # This is similar to how AIX traditionally builds its shared
14086 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14087 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'
14088 fi
14089 if test aix != "$with_aix_soname"; then
14090 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'
14091 else
14092 # used by -dlpreopen to get the symbols
14093 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14094 fi
14095 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14096 fi
14097 fi
14098 ;;
14099
14100 beos*)
14101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14102 allow_undefined_flag_CXX=unsupported
14103 # Joseph Beckenbach <[email protected]> says some releases of gcc
14104 # support --undefined. This deserves some investigation. FIXME
14105 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14106 else
14107 ld_shlibs_CXX=no
14108 fi
14109 ;;
14110
14111 chorus*)
14112 case $cc_basename in
14113 *)
14114 # FIXME: insert proper C++ library support
14115 ld_shlibs_CXX=no
14116 ;;
14117 esac
14118 ;;
14119
14120 cygwin* | mingw* | pw32* | cegcc*)
14121 case $GXX,$cc_basename in
14122 ,cl* | no,cl* | ,icl* | no,icl*)
14123 # Native MSVC or ICC
14124 # hardcode_libdir_flag_spec is actually meaningless, as there is
14125 # no search path for DLLs.
14126 hardcode_libdir_flag_spec_CXX=' '
14127 allow_undefined_flag_CXX=unsupported
14128 always_export_symbols_CXX=yes
14129 file_list_spec_CXX='@'
14130 # Tell ltmain to make .lib files, not .a files.
14131 libext=lib
14132 # Tell ltmain to make .dll files, not .so files.
14133 shrext_cmds=.dll
14134 # FIXME: Setting linknames here is a bad hack.
14135 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14136 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14137 cp "$export_symbols" "$output_objdir/$soname.def";
14138 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14139 else
14140 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14141 fi~
14142 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14143 linknames='
14144 # The linker will not automatically build a static lib if we build a DLL.
14145 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14146 enable_shared_with_static_runtimes_CXX=yes
14147 # Don't use ranlib
14148 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14149 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14150 lt_tool_outputfile="@TOOL_OUTPUT@"~
14151 case $lt_outputfile in
14152 *.exe|*.EXE) ;;
14153 *)
14154 lt_outputfile=$lt_outputfile.exe
14155 lt_tool_outputfile=$lt_tool_outputfile.exe
14156 ;;
14157 esac~
14158 func_to_tool_file "$lt_outputfile"~
14159 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14160 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14161 $RM "$lt_outputfile.manifest";
14162 fi'
14163 ;;
14164 *)
14165 # g++
14166 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14167 # as there is no search path for DLLs.
14168 hardcode_libdir_flag_spec_CXX='-L$libdir'
14169 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14170 allow_undefined_flag_CXX=unsupported
14171 always_export_symbols_CXX=no
14172 enable_shared_with_static_runtimes_CXX=yes
14173
14174 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14175 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'
14176 # If the export-symbols file already is a .def file, use it as
14177 # is; otherwise, prepend EXPORTS...
14178 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14179 cp $export_symbols $output_objdir/$soname.def;
14180 else
14181 echo EXPORTS > $output_objdir/$soname.def;
14182 cat $export_symbols >> $output_objdir/$soname.def;
14183 fi~
14184 $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'
14185 else
14186 ld_shlibs_CXX=no
14187 fi
14188 ;;
14189 esac
14190 ;;
14191 darwin* | rhapsody*)
14192
14193
14194 archive_cmds_need_lc_CXX=no
14195 hardcode_direct_CXX=no
14196 hardcode_automatic_CXX=yes
14197 hardcode_shlibpath_var_CXX=unsupported
14198 if test yes = "$lt_cv_ld_force_load"; then
14199 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\"`'
14200
14201 else
14202 whole_archive_flag_spec_CXX=''
14203 fi
14204 link_all_deplibs_CXX=yes
14205 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14206 case $cc_basename in
14207 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14208 *) _lt_dar_can_shared=$GCC ;;
14209 esac
14210 if test yes = "$_lt_dar_can_shared"; then
14211 output_verbose_link_cmd=func_echo_all
14212 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"
14213 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14214 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"
14215 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"
14216 if test yes != "$lt_cv_apple_cc_single_mod"; then
14217 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"
14218 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"
14219 fi
14220
14221 else
14222 ld_shlibs_CXX=no
14223 fi
14224
14225 ;;
14226
14227 os2*)
14228 hardcode_libdir_flag_spec_CXX='-L$libdir'
14229 hardcode_minus_L_CXX=yes
14230 allow_undefined_flag_CXX=unsupported
14231 shrext_cmds=.dll
14232 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14233 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14234 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14235 $ECHO EXPORTS >> $output_objdir/$libname.def~
14236 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14237 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14238 emximp -o $lib $output_objdir/$libname.def'
14239 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14240 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14241 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14242 $ECHO EXPORTS >> $output_objdir/$libname.def~
14243 prefix_cmds="$SED"~
14244 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14245 prefix_cmds="$prefix_cmds -e 1d";
14246 fi~
14247 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14248 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14249 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14250 emximp -o $lib $output_objdir/$libname.def'
14251 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14252 enable_shared_with_static_runtimes_CXX=yes
14253 file_list_spec_CXX='@'
14254 ;;
14255
14256 dgux*)
14257 case $cc_basename in
14258 ec++*)
14259 # FIXME: insert proper C++ library support
14260 ld_shlibs_CXX=no
14261 ;;
14262 ghcx*)
14263 # Green Hills C++ Compiler
14264 # FIXME: insert proper C++ library support
14265 ld_shlibs_CXX=no
14266 ;;
14267 *)
14268 # FIXME: insert proper C++ library support
14269 ld_shlibs_CXX=no
14270 ;;
14271 esac
14272 ;;
14273
14274 freebsd2.*)
14275 # C++ shared libraries reported to be fairly broken before
14276 # switch to ELF
14277 ld_shlibs_CXX=no
14278 ;;
14279
14280 freebsd-elf*)
14281 archive_cmds_need_lc_CXX=no
14282 ;;
14283
14284 freebsd* | dragonfly*)
14285 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14286 # conventions
14287 ld_shlibs_CXX=yes
14288 ;;
14289
14290 haiku*)
14291 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14292 link_all_deplibs_CXX=yes
14293 ;;
14294
14295 hpux9*)
14296 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14297 hardcode_libdir_separator_CXX=:
14298 export_dynamic_flag_spec_CXX='$wl-E'
14299 hardcode_direct_CXX=yes
14300 hardcode_minus_L_CXX=yes # Not in the search PATH,
14301 # but as the default
14302 # location of the library.
14303
14304 case $cc_basename in
14305 CC*)
14306 # FIXME: insert proper C++ library support
14307 ld_shlibs_CXX=no
14308 ;;
14309 aCC*)
14310 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'
14311 # Commands to make compiler produce verbose output that lists
14312 # what "hidden" libraries, object files and flags are used when
14313 # linking a shared library.
14314 #
14315 # There doesn't appear to be a way to prevent this compiler from
14316 # explicitly linking system object files so we need to strip them
14317 # from the output so that they don't get included in the library
14318 # dependencies.
14319 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"'
14320 ;;
14321 *)
14322 if test yes = "$GXX"; then
14323 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'
14324 else
14325 # FIXME: insert proper C++ library support
14326 ld_shlibs_CXX=no
14327 fi
14328 ;;
14329 esac
14330 ;;
14331
14332 hpux10*|hpux11*)
14333 if test no = "$with_gnu_ld"; then
14334 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14335 hardcode_libdir_separator_CXX=:
14336
14337 case $host_cpu in
14338 hppa*64*|ia64*)
14339 ;;
14340 *)
14341 export_dynamic_flag_spec_CXX='$wl-E'
14342 ;;
14343 esac
14344 fi
14345 case $host_cpu in
14346 hppa*64*|ia64*)
14347 hardcode_direct_CXX=no
14348 hardcode_shlibpath_var_CXX=no
14349 ;;
14350 *)
14351 hardcode_direct_CXX=yes
14352 hardcode_direct_absolute_CXX=yes
14353 hardcode_minus_L_CXX=yes # Not in the search PATH,
14354 # but as the default
14355 # location of the library.
14356 ;;
14357 esac
14358
14359 case $cc_basename in
14360 CC*)
14361 # FIXME: insert proper C++ library support
14362 ld_shlibs_CXX=no
14363 ;;
14364 aCC*)
14365 case $host_cpu in
14366 hppa*64*)
14367 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14368 ;;
14369 ia64*)
14370 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14371 ;;
14372 *)
14373 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14374 ;;
14375 esac
14376 # Commands to make compiler produce verbose output that lists
14377 # what "hidden" libraries, object files and flags are used when
14378 # linking a shared library.
14379 #
14380 # There doesn't appear to be a way to prevent this compiler from
14381 # explicitly linking system object files so we need to strip them
14382 # from the output so that they don't get included in the library
14383 # dependencies.
14384 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"'
14385 ;;
14386 *)
14387 if test yes = "$GXX"; then
14388 if test no = "$with_gnu_ld"; then
14389 case $host_cpu in
14390 hppa*64*)
14391 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14392 ;;
14393 ia64*)
14394 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14395 ;;
14396 *)
14397 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'
14398 ;;
14399 esac
14400 fi
14401 else
14402 # FIXME: insert proper C++ library support
14403 ld_shlibs_CXX=no
14404 fi
14405 ;;
14406 esac
14407 ;;
14408
14409 interix[3-9]*)
14410 hardcode_direct_CXX=no
14411 hardcode_shlibpath_var_CXX=no
14412 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14413 export_dynamic_flag_spec_CXX='$wl-E'
14414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14415 # Instead, shared libraries are loaded at an image base (0x10000000 by
14416 # default) and relocated if they conflict, which is a slow very memory
14417 # consuming and fragmenting process. To avoid this, we pick a random,
14418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14420 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'
14421 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'
14422 ;;
14423 irix5* | irix6*)
14424 case $cc_basename in
14425 CC*)
14426 # SGI C++
14427 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'
14428
14429 # Archives containing C++ object files must be created using
14430 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14431 # necessary to make sure instantiated templates are included
14432 # in the archive.
14433 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14434 ;;
14435 *)
14436 if test yes = "$GXX"; then
14437 if test no = "$with_gnu_ld"; then
14438 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'
14439 else
14440 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'
14441 fi
14442 fi
14443 link_all_deplibs_CXX=yes
14444 ;;
14445 esac
14446 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14447 hardcode_libdir_separator_CXX=:
14448 inherit_rpath_CXX=yes
14449 ;;
14450
14451 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14452 case $cc_basename in
14453 KCC*)
14454 # Kuck and Associates, Inc. (KAI) C++ Compiler
14455
14456 # KCC will only create a shared library if the output file
14457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14458 # to its proper name (with version) after linking.
14459 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'
14460 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'
14461 # Commands to make compiler produce verbose output that lists
14462 # what "hidden" libraries, object files and flags are used when
14463 # linking a shared library.
14464 #
14465 # There doesn't appear to be a way to prevent this compiler from
14466 # explicitly linking system object files so we need to strip them
14467 # from the output so that they don't get included in the library
14468 # dependencies.
14469 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"'
14470
14471 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14472 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14473
14474 # Archives containing C++ object files must be created using
14475 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14476 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14477 ;;
14478 icpc* | ecpc* )
14479 # Intel C++
14480 with_gnu_ld=yes
14481 # version 8.0 and above of icpc choke on multiply defined symbols
14482 # if we add $predep_objects and $postdep_objects, however 7.1 and
14483 # earlier do not add the objects themselves.
14484 case `$CC -V 2>&1` in
14485 *"Version 7."*)
14486 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14487 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'
14488 ;;
14489 *) # Version 8.0 or newer
14490 tmp_idyn=
14491 case $host_cpu in
14492 ia64*) tmp_idyn=' -i_dynamic';;
14493 esac
14494 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14495 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'
14496 ;;
14497 esac
14498 archive_cmds_need_lc_CXX=no
14499 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14500 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14501 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14502 ;;
14503 pgCC* | pgcpp*)
14504 # Portland Group C++ compiler
14505 case `$CC -V` in
14506 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14507 prelink_cmds_CXX='tpldir=Template.dir~
14508 rm -rf $tpldir~
14509 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14510 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14511 old_archive_cmds_CXX='tpldir=Template.dir~
14512 rm -rf $tpldir~
14513 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14514 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14515 $RANLIB $oldlib'
14516 archive_cmds_CXX='tpldir=Template.dir~
14517 rm -rf $tpldir~
14518 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14519 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14520 archive_expsym_cmds_CXX='tpldir=Template.dir~
14521 rm -rf $tpldir~
14522 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14523 $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'
14524 ;;
14525 *) # Version 6 and above use weak symbols
14526 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14527 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'
14528 ;;
14529 esac
14530
14531 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14532 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14533 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'
14534 ;;
14535 cxx*)
14536 # Compaq C++
14537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14538 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'
14539
14540 runpath_var=LD_RUN_PATH
14541 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14542 hardcode_libdir_separator_CXX=:
14543
14544 # Commands to make compiler produce verbose output that lists
14545 # what "hidden" libraries, object files and flags are used when
14546 # linking a shared library.
14547 #
14548 # There doesn't appear to be a way to prevent this compiler from
14549 # explicitly linking system object files so we need to strip them
14550 # from the output so that they don't get included in the library
14551 # dependencies.
14552 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'
14553 ;;
14554 xl* | mpixl* | bgxl*)
14555 # IBM XL 8.0 on PPC, with GNU ld
14556 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14557 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14558 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14559 if test yes = "$supports_anon_versioning"; then
14560 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14562 echo "local: *; };" >> $output_objdir/$libname.ver~
14563 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14564 fi
14565 ;;
14566 *)
14567 case `$CC -V 2>&1 | sed 5q` in
14568 *Sun\ C*)
14569 # Sun C++ 5.9
14570 no_undefined_flag_CXX=' -zdefs'
14571 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14572 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'
14573 hardcode_libdir_flag_spec_CXX='-R$libdir'
14574 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'
14575 compiler_needs_object_CXX=yes
14576
14577 # Not sure whether something based on
14578 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14579 # would be better.
14580 output_verbose_link_cmd='func_echo_all'
14581
14582 # Archives containing C++ object files must be created using
14583 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14584 # necessary to make sure instantiated templates are included
14585 # in the archive.
14586 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14587 ;;
14588 esac
14589 ;;
14590 esac
14591 ;;
14592
14593 lynxos*)
14594 # FIXME: insert proper C++ library support
14595 ld_shlibs_CXX=no
14596 ;;
14597
14598 m88k*)
14599 # FIXME: insert proper C++ library support
14600 ld_shlibs_CXX=no
14601 ;;
14602
14603 mvs*)
14604 case $cc_basename in
14605 cxx*)
14606 # FIXME: insert proper C++ library support
14607 ld_shlibs_CXX=no
14608 ;;
14609 *)
14610 # FIXME: insert proper C++ library support
14611 ld_shlibs_CXX=no
14612 ;;
14613 esac
14614 ;;
14615
14616 netbsd*)
14617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14618 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14619 wlarc=
14620 hardcode_libdir_flag_spec_CXX='-R$libdir'
14621 hardcode_direct_CXX=yes
14622 hardcode_shlibpath_var_CXX=no
14623 fi
14624 # Workaround some broken pre-1.5 toolchains
14625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14626 ;;
14627
14628 *nto* | *qnx*)
14629 ld_shlibs_CXX=yes
14630 ;;
14631
14632 openbsd* | bitrig*)
14633 if test -f /usr/libexec/ld.so; then
14634 hardcode_direct_CXX=yes
14635 hardcode_shlibpath_var_CXX=no
14636 hardcode_direct_absolute_CXX=yes
14637 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14638 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14640 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14641 export_dynamic_flag_spec_CXX='$wl-E'
14642 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14643 fi
14644 output_verbose_link_cmd=func_echo_all
14645 else
14646 ld_shlibs_CXX=no
14647 fi
14648 ;;
14649
14650 osf3* | osf4* | osf5*)
14651 case $cc_basename in
14652 KCC*)
14653 # Kuck and Associates, Inc. (KAI) C++ Compiler
14654
14655 # KCC will only create a shared library if the output file
14656 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14657 # to its proper name (with version) after linking.
14658 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'
14659
14660 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14661 hardcode_libdir_separator_CXX=:
14662
14663 # Archives containing C++ object files must be created using
14664 # the KAI C++ compiler.
14665 case $host in
14666 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14667 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14668 esac
14669 ;;
14670 RCC*)
14671 # Rational C++ 2.4.1
14672 # FIXME: insert proper C++ library support
14673 ld_shlibs_CXX=no
14674 ;;
14675 cxx*)
14676 case $host in
14677 osf3*)
14678 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14679 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'
14680 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14681 ;;
14682 *)
14683 allow_undefined_flag_CXX=' -expect_unresolved \*'
14684 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'
14685 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14686 echo "-hidden">> $lib.exp~
14687 $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~
14688 $RM $lib.exp'
14689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14690 ;;
14691 esac
14692
14693 hardcode_libdir_separator_CXX=:
14694
14695 # Commands to make compiler produce verbose output that lists
14696 # what "hidden" libraries, object files and flags are used when
14697 # linking a shared library.
14698 #
14699 # There doesn't appear to be a way to prevent this compiler from
14700 # explicitly linking system object files so we need to strip them
14701 # from the output so that they don't get included in the library
14702 # dependencies.
14703 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"'
14704 ;;
14705 *)
14706 if test yes,no = "$GXX,$with_gnu_ld"; then
14707 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14708 case $host in
14709 osf3*)
14710 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'
14711 ;;
14712 *)
14713 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'
14714 ;;
14715 esac
14716
14717 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14718 hardcode_libdir_separator_CXX=:
14719
14720 # Commands to make compiler produce verbose output that lists
14721 # what "hidden" libraries, object files and flags are used when
14722 # linking a shared library.
14723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14724
14725 else
14726 # FIXME: insert proper C++ library support
14727 ld_shlibs_CXX=no
14728 fi
14729 ;;
14730 esac
14731 ;;
14732
14733 psos*)
14734 # FIXME: insert proper C++ library support
14735 ld_shlibs_CXX=no
14736 ;;
14737
14738 sunos4*)
14739 case $cc_basename in
14740 CC*)
14741 # Sun C++ 4.x
14742 # FIXME: insert proper C++ library support
14743 ld_shlibs_CXX=no
14744 ;;
14745 lcc*)
14746 # Lucid
14747 # FIXME: insert proper C++ library support
14748 ld_shlibs_CXX=no
14749 ;;
14750 *)
14751 # FIXME: insert proper C++ library support
14752 ld_shlibs_CXX=no
14753 ;;
14754 esac
14755 ;;
14756
14757 solaris*)
14758 case $cc_basename in
14759 CC* | sunCC*)
14760 # Sun C++ 4.2, 5.x and Centerline C++
14761 archive_cmds_need_lc_CXX=yes
14762 no_undefined_flag_CXX=' -zdefs'
14763 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14765 $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'
14766
14767 hardcode_libdir_flag_spec_CXX='-R$libdir'
14768 hardcode_shlibpath_var_CXX=no
14769 case $host_os in
14770 solaris2.[0-5] | solaris2.[0-5].*) ;;
14771 *)
14772 # The compiler driver will combine and reorder linker options,
14773 # but understands '-z linker_flag'.
14774 # Supported since Solaris 2.6 (maybe 2.5.1?)
14775 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14776 ;;
14777 esac
14778 link_all_deplibs_CXX=yes
14779
14780 output_verbose_link_cmd='func_echo_all'
14781
14782 # Archives containing C++ object files must be created using
14783 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14784 # necessary to make sure instantiated templates are included
14785 # in the archive.
14786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14787 ;;
14788 gcx*)
14789 # Green Hills C++ Compiler
14790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14791
14792 # The C++ compiler must be used to create the archive.
14793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14794 ;;
14795 *)
14796 # GNU C++ compiler with Solaris linker
14797 if test yes,no = "$GXX,$with_gnu_ld"; then
14798 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14799 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14800 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14801 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14802 $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'
14803
14804 # Commands to make compiler produce verbose output that lists
14805 # what "hidden" libraries, object files and flags are used when
14806 # linking a shared library.
14807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14808 else
14809 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14810 # platform.
14811 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14812 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14813 $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'
14814
14815 # Commands to make compiler produce verbose output that lists
14816 # what "hidden" libraries, object files and flags are used when
14817 # linking a shared library.
14818 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14819 fi
14820
14821 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14822 case $host_os in
14823 solaris2.[0-5] | solaris2.[0-5].*) ;;
14824 *)
14825 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14826 ;;
14827 esac
14828 fi
14829 ;;
14830 esac
14831 ;;
14832
14833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14834 no_undefined_flag_CXX='$wl-z,text'
14835 archive_cmds_need_lc_CXX=no
14836 hardcode_shlibpath_var_CXX=no
14837 runpath_var='LD_RUN_PATH'
14838
14839 case $cc_basename in
14840 CC*)
14841 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14842 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 ;;
14844 *)
14845 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 ;;
14848 esac
14849 ;;
14850
14851 sysv5* | sco3.2v5* | sco5v6*)
14852 # Note: We CANNOT use -z defs as we might desire, because we do not
14853 # link with -lc, and that would cause any symbols used from libc to
14854 # always be unresolved, which means just about no library would
14855 # ever link correctly. If we're not using GNU ld we use -z text
14856 # though, which does catch some bad symbols but isn't as heavy-handed
14857 # as -z defs.
14858 no_undefined_flag_CXX='$wl-z,text'
14859 allow_undefined_flag_CXX='$wl-z,nodefs'
14860 archive_cmds_need_lc_CXX=no
14861 hardcode_shlibpath_var_CXX=no
14862 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14863 hardcode_libdir_separator_CXX=':'
14864 link_all_deplibs_CXX=yes
14865 export_dynamic_flag_spec_CXX='$wl-Bexport'
14866 runpath_var='LD_RUN_PATH'
14867
14868 case $cc_basename in
14869 CC*)
14870 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14871 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14872 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14873 '"$old_archive_cmds_CXX"
14874 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14875 '"$reload_cmds_CXX"
14876 ;;
14877 *)
14878 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14879 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14880 ;;
14881 esac
14882 ;;
14883
14884 tandem*)
14885 case $cc_basename in
14886 NCC*)
14887 # NonStop-UX NCC 3.20
14888 # FIXME: insert proper C++ library support
14889 ld_shlibs_CXX=no
14890 ;;
14891 *)
14892 # FIXME: insert proper C++ library support
14893 ld_shlibs_CXX=no
14894 ;;
14895 esac
14896 ;;
14897
14898 vxworks*)
14899 # FIXME: insert proper C++ library support
14900 ld_shlibs_CXX=no
14901 ;;
14902
14903 *)
14904 # FIXME: insert proper C++ library support
14905 ld_shlibs_CXX=no
14906 ;;
14907 esac
14908
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14910 printf "%s\n" "$ld_shlibs_CXX" >&6; }
14911 test no = "$ld_shlibs_CXX" && can_build_shared=no
14912
14913 GCC_CXX=$GXX
14914 LD_CXX=$LD
14915
14916 ## CAVEAT EMPTOR:
14917 ## There is no encapsulation within the following macros, do not change
14918 ## the running order or otherwise move them around unless you know exactly
14919 ## what you are doing...
14920 # Dependencies to place before and after the object being linked:
14921 predep_objects_CXX=
14922 postdep_objects_CXX=
14923 predeps_CXX=
14924 postdeps_CXX=
14925 compiler_lib_search_path_CXX=
14926
14927 cat > conftest.$ac_ext <<_LT_EOF
14928 class Foo
14929 {
14930 public:
14931 Foo (void) { a = 0; }
14932 private:
14933 int a;
14934 };
14935 _LT_EOF
14936
14937
14938 _lt_libdeps_save_CFLAGS=$CFLAGS
14939 case "$CC $CFLAGS " in #(
14940 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14941 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14942 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14943 esac
14944
14945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14946 (eval $ac_compile) 2>&5
14947 ac_status=$?
14948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14949 test $ac_status = 0; }; then
14950 # Parse the compiler output and extract the necessary
14951 # objects, libraries and library flags.
14952
14953 # Sentinel used to keep track of whether or not we are before
14954 # the conftest object file.
14955 pre_test_object_deps_done=no
14956
14957 for p in `eval "$output_verbose_link_cmd"`; do
14958 case $prev$p in
14959
14960 -L* | -R* | -l*)
14961 # Some compilers place space between "-{L,R}" and the path.
14962 # Remove the space.
14963 if test x-L = "$p" ||
14964 test x-R = "$p"; then
14965 prev=$p
14966 continue
14967 fi
14968
14969 # Expand the sysroot to ease extracting the directories later.
14970 if test -z "$prev"; then
14971 case $p in
14972 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14973 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14974 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14975 esac
14976 fi
14977 case $p in
14978 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14979 esac
14980 if test no = "$pre_test_object_deps_done"; then
14981 case $prev in
14982 -L | -R)
14983 # Internal compiler library paths should come after those
14984 # provided the user. The postdeps already come after the
14985 # user supplied libs so there is no need to process them.
14986 if test -z "$compiler_lib_search_path_CXX"; then
14987 compiler_lib_search_path_CXX=$prev$p
14988 else
14989 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14990 fi
14991 ;;
14992 # The "-l" case would never come before the object being
14993 # linked, so don't bother handling this case.
14994 esac
14995 else
14996 if test -z "$postdeps_CXX"; then
14997 postdeps_CXX=$prev$p
14998 else
14999 postdeps_CXX="${postdeps_CXX} $prev$p"
15000 fi
15001 fi
15002 prev=
15003 ;;
15004
15005 *.lto.$objext) ;; # Ignore GCC LTO objects
15006 *.$objext)
15007 # This assumes that the test object file only shows up
15008 # once in the compiler output.
15009 if test "$p" = "conftest.$objext"; then
15010 pre_test_object_deps_done=yes
15011 continue
15012 fi
15013
15014 if test no = "$pre_test_object_deps_done"; then
15015 if test -z "$predep_objects_CXX"; then
15016 predep_objects_CXX=$p
15017 else
15018 predep_objects_CXX="$predep_objects_CXX $p"
15019 fi
15020 else
15021 if test -z "$postdep_objects_CXX"; then
15022 postdep_objects_CXX=$p
15023 else
15024 postdep_objects_CXX="$postdep_objects_CXX $p"
15025 fi
15026 fi
15027 ;;
15028
15029 *) ;; # Ignore the rest.
15030
15031 esac
15032 done
15033
15034 # Clean up.
15035 rm -f a.out a.exe
15036 else
15037 echo "libtool.m4: error: problem compiling CXX test program"
15038 fi
15039
15040 $RM -f confest.$objext
15041 CFLAGS=$_lt_libdeps_save_CFLAGS
15042
15043 # PORTME: override above test on systems where it is broken
15044 case $host_os in
15045 interix[3-9]*)
15046 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15047 # hack all around it, let's just trust "g++" to DTRT.
15048 predep_objects_CXX=
15049 postdep_objects_CXX=
15050 postdeps_CXX=
15051 ;;
15052 esac
15053
15054
15055 case " $postdeps_CXX " in
15056 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15057 esac
15058 compiler_lib_search_dirs_CXX=
15059 if test -n "${compiler_lib_search_path_CXX}"; then
15060 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15061 fi
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093 lt_prog_compiler_wl_CXX=
15094 lt_prog_compiler_pic_CXX=
15095 lt_prog_compiler_static_CXX=
15096
15097
15098 # C++ specific cases for pic, static, wl, etc.
15099 if test yes = "$GXX"; then
15100 lt_prog_compiler_wl_CXX='-Wl,'
15101 lt_prog_compiler_static_CXX='-static'
15102
15103 case $host_os in
15104 aix*)
15105 # All AIX code is PIC.
15106 if test ia64 = "$host_cpu"; then
15107 # AIX 5 now supports IA64 processor
15108 lt_prog_compiler_static_CXX='-Bstatic'
15109 fi
15110 lt_prog_compiler_pic_CXX='-fPIC'
15111 ;;
15112
15113 amigaos*)
15114 case $host_cpu in
15115 powerpc)
15116 # see comment about AmigaOS4 .so support
15117 lt_prog_compiler_pic_CXX='-fPIC'
15118 ;;
15119 m68k)
15120 # FIXME: we need at least 68020 code to build shared libraries, but
15121 # adding the '-m68020' flag to GCC prevents building anything better,
15122 # like '-m68040'.
15123 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15124 ;;
15125 esac
15126 ;;
15127
15128 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15129 # PIC is the default for these OSes.
15130 ;;
15131 mingw* | cygwin* | os2* | pw32* | cegcc*)
15132 # This hack is so that the source file can tell whether it is being
15133 # built for inclusion in a dll (and should export symbols for example).
15134 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15135 # (--disable-auto-import) libraries
15136 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15137 case $host_os in
15138 os2*)
15139 lt_prog_compiler_static_CXX='$wl-static'
15140 ;;
15141 esac
15142 ;;
15143 darwin* | rhapsody*)
15144 # PIC is the default on this platform
15145 # Common symbols not allowed in MH_DYLIB files
15146 lt_prog_compiler_pic_CXX='-fno-common'
15147 ;;
15148 *djgpp*)
15149 # DJGPP does not support shared libraries at all
15150 lt_prog_compiler_pic_CXX=
15151 ;;
15152 haiku*)
15153 # PIC is the default for Haiku.
15154 # The "-static" flag exists, but is broken.
15155 lt_prog_compiler_static_CXX=
15156 ;;
15157 interix[3-9]*)
15158 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15159 # Instead, we relocate shared libraries at runtime.
15160 ;;
15161 sysv4*MP*)
15162 if test -d /usr/nec; then
15163 lt_prog_compiler_pic_CXX=-Kconform_pic
15164 fi
15165 ;;
15166 hpux*)
15167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15169 # sets the default TLS model and affects inlining.
15170 case $host_cpu in
15171 hppa*64*)
15172 ;;
15173 *)
15174 lt_prog_compiler_pic_CXX='-fPIC'
15175 ;;
15176 esac
15177 ;;
15178 *qnx* | *nto*)
15179 # QNX uses GNU C++, but need to define -shared option too, otherwise
15180 # it will coredump.
15181 lt_prog_compiler_pic_CXX='-fPIC -shared'
15182 ;;
15183 *)
15184 lt_prog_compiler_pic_CXX='-fPIC'
15185 ;;
15186 esac
15187 else
15188 case $host_os in
15189 aix[4-9]*)
15190 # All AIX code is PIC.
15191 if test ia64 = "$host_cpu"; then
15192 # AIX 5 now supports IA64 processor
15193 lt_prog_compiler_static_CXX='-Bstatic'
15194 else
15195 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15196 fi
15197 ;;
15198 chorus*)
15199 case $cc_basename in
15200 cxch68*)
15201 # Green Hills C++ Compiler
15202 # _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"
15203 ;;
15204 esac
15205 ;;
15206 mingw* | cygwin* | os2* | pw32* | cegcc*)
15207 # This hack is so that the source file can tell whether it is being
15208 # built for inclusion in a dll (and should export symbols for example).
15209 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15210 ;;
15211 dgux*)
15212 case $cc_basename in
15213 ec++*)
15214 lt_prog_compiler_pic_CXX='-KPIC'
15215 ;;
15216 ghcx*)
15217 # Green Hills C++ Compiler
15218 lt_prog_compiler_pic_CXX='-pic'
15219 ;;
15220 *)
15221 ;;
15222 esac
15223 ;;
15224 freebsd* | dragonfly*)
15225 # FreeBSD uses GNU C++
15226 ;;
15227 hpux9* | hpux10* | hpux11*)
15228 case $cc_basename in
15229 CC*)
15230 lt_prog_compiler_wl_CXX='-Wl,'
15231 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15232 if test ia64 != "$host_cpu"; then
15233 lt_prog_compiler_pic_CXX='+Z'
15234 fi
15235 ;;
15236 aCC*)
15237 lt_prog_compiler_wl_CXX='-Wl,'
15238 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15239 case $host_cpu in
15240 hppa*64*|ia64*)
15241 # +Z the default
15242 ;;
15243 *)
15244 lt_prog_compiler_pic_CXX='+Z'
15245 ;;
15246 esac
15247 ;;
15248 *)
15249 ;;
15250 esac
15251 ;;
15252 interix*)
15253 # This is c89, which is MS Visual C++ (no shared libs)
15254 # Anyone wants to do a port?
15255 ;;
15256 irix5* | irix6* | nonstopux*)
15257 case $cc_basename in
15258 CC*)
15259 lt_prog_compiler_wl_CXX='-Wl,'
15260 lt_prog_compiler_static_CXX='-non_shared'
15261 # CC pic flag -KPIC is the default.
15262 ;;
15263 *)
15264 ;;
15265 esac
15266 ;;
15267 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15268 case $cc_basename in
15269 KCC*)
15270 # KAI C++ Compiler
15271 lt_prog_compiler_wl_CXX='--backend -Wl,'
15272 lt_prog_compiler_pic_CXX='-fPIC'
15273 ;;
15274 ecpc* )
15275 # old Intel C++ for x86_64, which still supported -KPIC.
15276 lt_prog_compiler_wl_CXX='-Wl,'
15277 lt_prog_compiler_pic_CXX='-KPIC'
15278 lt_prog_compiler_static_CXX='-static'
15279 ;;
15280 icpc* )
15281 # Intel C++, used to be incompatible with GCC.
15282 # ICC 10 doesn't accept -KPIC any more.
15283 lt_prog_compiler_wl_CXX='-Wl,'
15284 lt_prog_compiler_pic_CXX='-fPIC'
15285 lt_prog_compiler_static_CXX='-static'
15286 ;;
15287 pgCC* | pgcpp*)
15288 # Portland Group C++ compiler
15289 lt_prog_compiler_wl_CXX='-Wl,'
15290 lt_prog_compiler_pic_CXX='-fpic'
15291 lt_prog_compiler_static_CXX='-Bstatic'
15292 ;;
15293 cxx*)
15294 # Compaq C++
15295 # Make sure the PIC flag is empty. It appears that all Alpha
15296 # Linux and Compaq Tru64 Unix objects are PIC.
15297 lt_prog_compiler_pic_CXX=
15298 lt_prog_compiler_static_CXX='-non_shared'
15299 ;;
15300 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15301 # IBM XL 8.0, 9.0 on PPC and BlueGene
15302 lt_prog_compiler_wl_CXX='-Wl,'
15303 lt_prog_compiler_pic_CXX='-qpic'
15304 lt_prog_compiler_static_CXX='-qstaticlink'
15305 ;;
15306 *)
15307 case `$CC -V 2>&1 | sed 5q` in
15308 *Sun\ C*)
15309 # Sun C++ 5.9
15310 lt_prog_compiler_pic_CXX='-KPIC'
15311 lt_prog_compiler_static_CXX='-Bstatic'
15312 lt_prog_compiler_wl_CXX='-Qoption ld '
15313 ;;
15314 esac
15315 ;;
15316 esac
15317 ;;
15318 lynxos*)
15319 ;;
15320 m88k*)
15321 ;;
15322 mvs*)
15323 case $cc_basename in
15324 cxx*)
15325 lt_prog_compiler_pic_CXX='-W c,exportall'
15326 ;;
15327 *)
15328 ;;
15329 esac
15330 ;;
15331 netbsd*)
15332 ;;
15333 *qnx* | *nto*)
15334 # QNX uses GNU C++, but need to define -shared option too, otherwise
15335 # it will coredump.
15336 lt_prog_compiler_pic_CXX='-fPIC -shared'
15337 ;;
15338 osf3* | osf4* | osf5*)
15339 case $cc_basename in
15340 KCC*)
15341 lt_prog_compiler_wl_CXX='--backend -Wl,'
15342 ;;
15343 RCC*)
15344 # Rational C++ 2.4.1
15345 lt_prog_compiler_pic_CXX='-pic'
15346 ;;
15347 cxx*)
15348 # Digital/Compaq C++
15349 lt_prog_compiler_wl_CXX='-Wl,'
15350 # Make sure the PIC flag is empty. It appears that all Alpha
15351 # Linux and Compaq Tru64 Unix objects are PIC.
15352 lt_prog_compiler_pic_CXX=
15353 lt_prog_compiler_static_CXX='-non_shared'
15354 ;;
15355 *)
15356 ;;
15357 esac
15358 ;;
15359 psos*)
15360 ;;
15361 solaris*)
15362 case $cc_basename in
15363 CC* | sunCC*)
15364 # Sun C++ 4.2, 5.x and Centerline C++
15365 lt_prog_compiler_pic_CXX='-KPIC'
15366 lt_prog_compiler_static_CXX='-Bstatic'
15367 lt_prog_compiler_wl_CXX='-Qoption ld '
15368 ;;
15369 gcx*)
15370 # Green Hills C++ Compiler
15371 lt_prog_compiler_pic_CXX='-PIC'
15372 ;;
15373 *)
15374 ;;
15375 esac
15376 ;;
15377 sunos4*)
15378 case $cc_basename in
15379 CC*)
15380 # Sun C++ 4.x
15381 lt_prog_compiler_pic_CXX='-pic'
15382 lt_prog_compiler_static_CXX='-Bstatic'
15383 ;;
15384 lcc*)
15385 # Lucid
15386 lt_prog_compiler_pic_CXX='-pic'
15387 ;;
15388 *)
15389 ;;
15390 esac
15391 ;;
15392 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15393 case $cc_basename in
15394 CC*)
15395 lt_prog_compiler_wl_CXX='-Wl,'
15396 lt_prog_compiler_pic_CXX='-KPIC'
15397 lt_prog_compiler_static_CXX='-Bstatic'
15398 ;;
15399 esac
15400 ;;
15401 tandem*)
15402 case $cc_basename in
15403 NCC*)
15404 # NonStop-UX NCC 3.20
15405 lt_prog_compiler_pic_CXX='-KPIC'
15406 ;;
15407 *)
15408 ;;
15409 esac
15410 ;;
15411 vxworks*)
15412 ;;
15413 *)
15414 lt_prog_compiler_can_build_shared_CXX=no
15415 ;;
15416 esac
15417 fi
15418
15419 case $host_os in
15420 # For platforms that do not support PIC, -DPIC is meaningless:
15421 *djgpp*)
15422 lt_prog_compiler_pic_CXX=
15423 ;;
15424 *)
15425 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15426 ;;
15427 esac
15428
15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15430 printf %s "checking for $compiler option to produce PIC... " >&6; }
15431 if test ${lt_cv_prog_compiler_pic_CXX+y}
15432 then :
15433 printf %s "(cached) " >&6
15434 else $as_nop
15435 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15436 fi
15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15438 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15439 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15440
15441 #
15442 # Check to make sure the PIC flag actually works.
15443 #
15444 if test -n "$lt_prog_compiler_pic_CXX"; then
15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15446 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15447 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15448 then :
15449 printf %s "(cached) " >&6
15450 else $as_nop
15451 lt_cv_prog_compiler_pic_works_CXX=no
15452 ac_outfile=conftest.$ac_objext
15453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15454 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15455 # Insert the option either (1) after the last *FLAGS variable, or
15456 # (2) before a word containing "conftest.", or (3) at the end.
15457 # Note that $ac_compile itself does not contain backslashes and begins
15458 # with a dollar sign (not a hyphen), so the echo should work correctly.
15459 # The option is referenced via a variable to avoid confusing sed.
15460 lt_compile=`echo "$ac_compile" | $SED \
15461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463 -e 's:$: $lt_compiler_flag:'`
15464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15465 (eval "$lt_compile" 2>conftest.err)
15466 ac_status=$?
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 if (exit $ac_status) && test -s "$ac_outfile"; then
15470 # The compiler can only warn and ignore the option if not recognized
15471 # So say no if there are warnings other than the usual output.
15472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15475 lt_cv_prog_compiler_pic_works_CXX=yes
15476 fi
15477 fi
15478 $RM conftest*
15479
15480 fi
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15482 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15483
15484 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15485 case $lt_prog_compiler_pic_CXX in
15486 "" | " "*) ;;
15487 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15488 esac
15489 else
15490 lt_prog_compiler_pic_CXX=
15491 lt_prog_compiler_can_build_shared_CXX=no
15492 fi
15493
15494 fi
15495
15496
15497
15498
15499
15500 #
15501 # Check to make sure the static flag actually works.
15502 #
15503 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15505 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15506 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15507 then :
15508 printf %s "(cached) " >&6
15509 else $as_nop
15510 lt_cv_prog_compiler_static_works_CXX=no
15511 save_LDFLAGS=$LDFLAGS
15512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15515 # The linker can only warn and ignore the option if not recognized
15516 # So say no if there are warnings
15517 if test -s conftest.err; then
15518 # Append any errors to the config.log.
15519 cat conftest.err 1>&5
15520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522 if diff conftest.exp conftest.er2 >/dev/null; then
15523 lt_cv_prog_compiler_static_works_CXX=yes
15524 fi
15525 else
15526 lt_cv_prog_compiler_static_works_CXX=yes
15527 fi
15528 fi
15529 $RM -r conftest*
15530 LDFLAGS=$save_LDFLAGS
15531
15532 fi
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15534 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15535
15536 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15537 :
15538 else
15539 lt_prog_compiler_static_CXX=
15540 fi
15541
15542
15543
15544
15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15546 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15547 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15548 then :
15549 printf %s "(cached) " >&6
15550 else $as_nop
15551 lt_cv_prog_compiler_c_o_CXX=no
15552 $RM -r conftest 2>/dev/null
15553 mkdir conftest
15554 cd conftest
15555 mkdir out
15556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15557
15558 lt_compiler_flag="-o out/conftest2.$ac_objext"
15559 # Insert the option either (1) after the last *FLAGS variable, or
15560 # (2) before a word containing "conftest.", or (3) at the end.
15561 # Note that $ac_compile itself does not contain backslashes and begins
15562 # with a dollar sign (not a hyphen), so the echo should work correctly.
15563 lt_compile=`echo "$ac_compile" | $SED \
15564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15566 -e 's:$: $lt_compiler_flag:'`
15567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15568 (eval "$lt_compile" 2>out/conftest.err)
15569 ac_status=$?
15570 cat out/conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15573 then
15574 # The compiler can only warn and ignore the option if not recognized
15575 # So say no if there are warnings
15576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15579 lt_cv_prog_compiler_c_o_CXX=yes
15580 fi
15581 fi
15582 chmod u+w . 2>&5
15583 $RM conftest*
15584 # SGI C++ compiler will create directory out/ii_files/ for
15585 # template instantiation
15586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15587 $RM out/* && rmdir out
15588 cd ..
15589 $RM -r conftest
15590 $RM conftest*
15591
15592 fi
15593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15594 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15595
15596
15597
15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15599 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15600 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15601 then :
15602 printf %s "(cached) " >&6
15603 else $as_nop
15604 lt_cv_prog_compiler_c_o_CXX=no
15605 $RM -r conftest 2>/dev/null
15606 mkdir conftest
15607 cd conftest
15608 mkdir out
15609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15610
15611 lt_compiler_flag="-o out/conftest2.$ac_objext"
15612 # Insert the option either (1) after the last *FLAGS variable, or
15613 # (2) before a word containing "conftest.", or (3) at the end.
15614 # Note that $ac_compile itself does not contain backslashes and begins
15615 # with a dollar sign (not a hyphen), so the echo should work correctly.
15616 lt_compile=`echo "$ac_compile" | $SED \
15617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15619 -e 's:$: $lt_compiler_flag:'`
15620 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15621 (eval "$lt_compile" 2>out/conftest.err)
15622 ac_status=$?
15623 cat out/conftest.err >&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15626 then
15627 # The compiler can only warn and ignore the option if not recognized
15628 # So say no if there are warnings
15629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15632 lt_cv_prog_compiler_c_o_CXX=yes
15633 fi
15634 fi
15635 chmod u+w . 2>&5
15636 $RM conftest*
15637 # SGI C++ compiler will create directory out/ii_files/ for
15638 # template instantiation
15639 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15640 $RM out/* && rmdir out
15641 cd ..
15642 $RM -r conftest
15643 $RM conftest*
15644
15645 fi
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15647 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15648
15649
15650
15651
15652 hard_links=nottested
15653 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15654 # do not overwrite the value of need_locks provided by the user
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15656 printf %s "checking if we can lock with hard links... " >&6; }
15657 hard_links=yes
15658 $RM conftest*
15659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15660 touch conftest.a
15661 ln conftest.a conftest.b 2>&5 || hard_links=no
15662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15664 printf "%s\n" "$hard_links" >&6; }
15665 if test no = "$hard_links"; then
15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15667 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15668 need_locks=warn
15669 fi
15670 else
15671 need_locks=no
15672 fi
15673
15674
15675
15676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15677 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15678
15679 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15680 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15681 case $host_os in
15682 aix[4-9]*)
15683 # If we're using GNU nm, then we don't want the "-C" option.
15684 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15685 # Without the "-l" option, or with the "-B" option, AIX nm treats
15686 # weak defined symbols like other global defined symbols, whereas
15687 # GNU nm marks them as "W".
15688 # While the 'weak' keyword is ignored in the Export File, we need
15689 # it in the Import File for the 'aix-soname' feature, so we have
15690 # to replace the "-B" option with "-P" for AIX nm.
15691 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15692 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'
15693 else
15694 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 == "L") || (\$ 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'
15695 fi
15696 ;;
15697 pw32*)
15698 export_symbols_cmds_CXX=$ltdll_cmds
15699 ;;
15700 cygwin* | mingw* | cegcc*)
15701 case $cc_basename in
15702 cl* | icl*)
15703 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15704 ;;
15705 *)
15706 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'
15707 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15708 ;;
15709 esac
15710 ;;
15711 *)
15712 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15713 ;;
15714 esac
15715
15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15717 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15718 test no = "$ld_shlibs_CXX" && can_build_shared=no
15719
15720 with_gnu_ld_CXX=$with_gnu_ld
15721
15722
15723
15724
15725
15726
15727 #
15728 # Do we need to explicitly link libc?
15729 #
15730 case "x$archive_cmds_need_lc_CXX" in
15731 x|xyes)
15732 # Assume -lc should be added
15733 archive_cmds_need_lc_CXX=yes
15734
15735 if test yes,yes = "$GCC,$enable_shared"; then
15736 case $archive_cmds_CXX in
15737 *'~'*)
15738 # FIXME: we may have to deal with multi-command sequences.
15739 ;;
15740 '$CC '*)
15741 # Test whether the compiler implicitly links with -lc since on some
15742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15743 # to ld, don't add -lc before -lgcc.
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15745 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15746 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15747 then :
15748 printf %s "(cached) " >&6
15749 else $as_nop
15750 $RM conftest*
15751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15752
15753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15754 (eval $ac_compile) 2>&5
15755 ac_status=$?
15756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757 test $ac_status = 0; } 2>conftest.err; then
15758 soname=conftest
15759 lib=conftest
15760 libobjs=conftest.$ac_objext
15761 deplibs=
15762 wl=$lt_prog_compiler_wl_CXX
15763 pic_flag=$lt_prog_compiler_pic_CXX
15764 compiler_flags=-v
15765 linker_flags=-v
15766 verstring=
15767 output_objdir=.
15768 libname=conftest
15769 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15770 allow_undefined_flag_CXX=
15771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15772 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15773 ac_status=$?
15774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775 test $ac_status = 0; }
15776 then
15777 lt_cv_archive_cmds_need_lc_CXX=no
15778 else
15779 lt_cv_archive_cmds_need_lc_CXX=yes
15780 fi
15781 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15782 else
15783 cat conftest.err 1>&5
15784 fi
15785 $RM conftest*
15786
15787 fi
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15789 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15790 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15791 ;;
15792 esac
15793 fi
15794 ;;
15795 esac
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15859 printf %s "checking dynamic linker characteristics... " >&6; }
15860
15861 library_names_spec=
15862 libname_spec='lib$name'
15863 soname_spec=
15864 shrext_cmds=.so
15865 postinstall_cmds=
15866 postuninstall_cmds=
15867 finish_cmds=
15868 finish_eval=
15869 shlibpath_var=
15870 shlibpath_overrides_runpath=unknown
15871 version_type=none
15872 dynamic_linker="$host_os ld.so"
15873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15874 need_lib_prefix=unknown
15875 hardcode_into_libs=no
15876
15877 # when you set need_version to no, make sure it does not cause -set_version
15878 # flags to be left without arguments
15879 need_version=unknown
15880
15881
15882
15883 case $host_os in
15884 aix3*)
15885 version_type=linux # correct to gnu/linux during the next big refactor
15886 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15887 shlibpath_var=LIBPATH
15888
15889 # AIX 3 has no versioning support, so we append a major version to the name.
15890 soname_spec='$libname$release$shared_ext$major'
15891 ;;
15892
15893 aix[4-9]*)
15894 version_type=linux # correct to gnu/linux during the next big refactor
15895 need_lib_prefix=no
15896 need_version=no
15897 hardcode_into_libs=yes
15898 if test ia64 = "$host_cpu"; then
15899 # AIX 5 supports IA64
15900 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 else
15903 # With GCC up to 2.95.x, collect2 would create an import file
15904 # for dependence libraries. The import file would start with
15905 # the line '#! .'. This would cause the generated library to
15906 # depend on '.', always an invalid library. This was fixed in
15907 # development snapshots of GCC prior to 3.0.
15908 case $host_os in
15909 aix4 | aix4.[01] | aix4.[01].*)
15910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15911 echo ' yes '
15912 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15913 :
15914 else
15915 can_build_shared=no
15916 fi
15917 ;;
15918 esac
15919 # Using Import Files as archive members, it is possible to support
15920 # filename-based versioning of shared library archives on AIX. While
15921 # this would work for both with and without runtime linking, it will
15922 # prevent static linking of such archives. So we do filename-based
15923 # shared library versioning with .so extension only, which is used
15924 # when both runtime linking and shared linking is enabled.
15925 # Unfortunately, runtime linking may impact performance, so we do
15926 # not want this to be the default eventually. Also, we use the
15927 # versioned .so libs for executables only if there is the -brtl
15928 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15929 # To allow for filename-based versioning support, we need to create
15930 # libNAME.so.V as an archive file, containing:
15931 # *) an Import File, referring to the versioned filename of the
15932 # archive as well as the shared archive member, telling the
15933 # bitwidth (32 or 64) of that shared object, and providing the
15934 # list of exported symbols of that shared object, eventually
15935 # decorated with the 'weak' keyword
15936 # *) the shared object with the F_LOADONLY flag set, to really avoid
15937 # it being seen by the linker.
15938 # At run time we better use the real file rather than another symlink,
15939 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15940
15941 case $with_aix_soname,$aix_use_runtimelinking in
15942 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15943 # soname into executable. Probably we can add versioning support to
15944 # collect2, so additional links can be useful in future.
15945 aix,yes) # traditional libtool
15946 dynamic_linker='AIX unversionable lib.so'
15947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15948 # instead of lib<name>.a to let people know that these are not
15949 # typical AIX shared libraries.
15950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15951 ;;
15952 aix,no) # traditional AIX only
15953 dynamic_linker='AIX lib.a(lib.so.V)'
15954 # We preserve .a as extension for shared libraries through AIX4.2
15955 # and later when we are not doing run time linking.
15956 library_names_spec='$libname$release.a $libname.a'
15957 soname_spec='$libname$release$shared_ext$major'
15958 ;;
15959 svr4,*) # full svr4 only
15960 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15961 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15962 # We do not specify a path in Import Files, so LIBPATH fires.
15963 shlibpath_overrides_runpath=yes
15964 ;;
15965 *,yes) # both, prefer svr4
15966 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15967 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15968 # unpreferred sharedlib libNAME.a needs extra handling
15969 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"'
15970 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"'
15971 # We do not specify a path in Import Files, so LIBPATH fires.
15972 shlibpath_overrides_runpath=yes
15973 ;;
15974 *,no) # both, prefer aix
15975 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15976 library_names_spec='$libname$release.a $libname.a'
15977 soname_spec='$libname$release$shared_ext$major'
15978 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15979 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)'
15980 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"'
15981 ;;
15982 esac
15983 shlibpath_var=LIBPATH
15984 fi
15985 ;;
15986
15987 amigaos*)
15988 case $host_cpu in
15989 powerpc)
15990 # Since July 2007 AmigaOS4 officially supports .so libraries.
15991 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15993 ;;
15994 m68k)
15995 library_names_spec='$libname.ixlibrary $libname.a'
15996 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15997 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'
15998 ;;
15999 esac
16000 ;;
16001
16002 beos*)
16003 library_names_spec='$libname$shared_ext'
16004 dynamic_linker="$host_os ld.so"
16005 shlibpath_var=LIBRARY_PATH
16006 ;;
16007
16008 bsdi[45]*)
16009 version_type=linux # correct to gnu/linux during the next big refactor
16010 need_version=no
16011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16012 soname_spec='$libname$release$shared_ext$major'
16013 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16014 shlibpath_var=LD_LIBRARY_PATH
16015 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16016 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16017 # the default ld.so.conf also contains /usr/contrib/lib and
16018 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16019 # libtool to hard-code these into programs
16020 ;;
16021
16022 cygwin* | mingw* | pw32* | cegcc*)
16023 version_type=windows
16024 shrext_cmds=.dll
16025 need_version=no
16026 need_lib_prefix=no
16027
16028 case $GCC,$cc_basename in
16029 yes,*)
16030 # gcc
16031 library_names_spec='$libname.dll.a'
16032 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16033 postinstall_cmds='base_file=`basename \$file`~
16034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16035 dldir=$destdir/`dirname \$dlpath`~
16036 test -d \$dldir || mkdir -p \$dldir~
16037 $install_prog $dir/$dlname \$dldir/$dlname~
16038 chmod a+x \$dldir/$dlname~
16039 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16040 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16041 fi'
16042 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16043 dlpath=$dir/\$dldll~
16044 $RM \$dlpath'
16045 shlibpath_overrides_runpath=yes
16046
16047 case $host_os in
16048 cygwin*)
16049 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16050 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16051
16052 ;;
16053 mingw* | cegcc*)
16054 # MinGW DLLs use traditional 'lib' prefix
16055 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16056 ;;
16057 pw32*)
16058 # pw32 DLLs use 'pw' prefix rather than 'lib'
16059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16060 ;;
16061 esac
16062 dynamic_linker='Win32 ld.exe'
16063 ;;
16064
16065 *,cl* | *,icl*)
16066 # Native MSVC or ICC
16067 libname_spec='$name'
16068 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16069 library_names_spec='$libname.dll.lib'
16070
16071 case $build_os in
16072 mingw*)
16073 sys_lib_search_path_spec=
16074 lt_save_ifs=$IFS
16075 IFS=';'
16076 for lt_path in $LIB
16077 do
16078 IFS=$lt_save_ifs
16079 # Let DOS variable expansion print the short 8.3 style file name.
16080 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16081 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16082 done
16083 IFS=$lt_save_ifs
16084 # Convert to MSYS style.
16085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16086 ;;
16087 cygwin*)
16088 # Convert to unix form, then to dos form, then back to unix form
16089 # but this time dos style (no spaces!) so that the unix form looks
16090 # like /cygdrive/c/PROGRA~1:/cygdr...
16091 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16092 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16093 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16094 ;;
16095 *)
16096 sys_lib_search_path_spec=$LIB
16097 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16098 # It is most probably a Windows format PATH.
16099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16100 else
16101 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16102 fi
16103 # FIXME: find the short name or the path components, as spaces are
16104 # common. (e.g. "Program Files" -> "PROGRA~1")
16105 ;;
16106 esac
16107
16108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16109 postinstall_cmds='base_file=`basename \$file`~
16110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16111 dldir=$destdir/`dirname \$dlpath`~
16112 test -d \$dldir || mkdir -p \$dldir~
16113 $install_prog $dir/$dlname \$dldir/$dlname'
16114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16115 dlpath=$dir/\$dldll~
16116 $RM \$dlpath'
16117 shlibpath_overrides_runpath=yes
16118 dynamic_linker='Win32 link.exe'
16119 ;;
16120
16121 *)
16122 # Assume MSVC and ICC wrapper
16123 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16124 dynamic_linker='Win32 ld.exe'
16125 ;;
16126 esac
16127 # FIXME: first we should search . and the directory the executable is in
16128 shlibpath_var=PATH
16129 ;;
16130
16131 darwin* | rhapsody*)
16132 dynamic_linker="$host_os dyld"
16133 version_type=darwin
16134 need_lib_prefix=no
16135 need_version=no
16136 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16137 soname_spec='$libname$release$major$shared_ext'
16138 shlibpath_overrides_runpath=yes
16139 shlibpath_var=DYLD_LIBRARY_PATH
16140 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16141
16142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16143 ;;
16144
16145 dgux*)
16146 version_type=linux # correct to gnu/linux during the next big refactor
16147 need_lib_prefix=no
16148 need_version=no
16149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16150 soname_spec='$libname$release$shared_ext$major'
16151 shlibpath_var=LD_LIBRARY_PATH
16152 ;;
16153
16154 freebsd* | dragonfly*)
16155 # DragonFly does not have aout. When/if they implement a new
16156 # versioning mechanism, adjust this.
16157 if test -x /usr/bin/objformat; then
16158 objformat=`/usr/bin/objformat`
16159 else
16160 case $host_os in
16161 freebsd[23].*) objformat=aout ;;
16162 *) objformat=elf ;;
16163 esac
16164 fi
16165 version_type=freebsd-$objformat
16166 case $version_type in
16167 freebsd-elf*)
16168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16169 soname_spec='$libname$release$shared_ext$major'
16170 need_version=no
16171 need_lib_prefix=no
16172 ;;
16173 freebsd-*)
16174 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16175 need_version=yes
16176 ;;
16177 esac
16178 shlibpath_var=LD_LIBRARY_PATH
16179 case $host_os in
16180 freebsd2.*)
16181 shlibpath_overrides_runpath=yes
16182 ;;
16183 freebsd3.[01]* | freebsdelf3.[01]*)
16184 shlibpath_overrides_runpath=yes
16185 hardcode_into_libs=yes
16186 ;;
16187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16191 ;;
16192 *) # from 4.6 on, and DragonFly
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
16195 ;;
16196 esac
16197 ;;
16198
16199 haiku*)
16200 version_type=linux # correct to gnu/linux during the next big refactor
16201 need_lib_prefix=no
16202 need_version=no
16203 dynamic_linker="$host_os runtime_loader"
16204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16205 soname_spec='$libname$release$shared_ext$major'
16206 shlibpath_var=LIBRARY_PATH
16207 shlibpath_overrides_runpath=no
16208 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16209 hardcode_into_libs=yes
16210 ;;
16211
16212 hpux9* | hpux10* | hpux11*)
16213 # Give a soname corresponding to the major version so that dld.sl refuses to
16214 # link against other versions.
16215 version_type=sunos
16216 need_lib_prefix=no
16217 need_version=no
16218 case $host_cpu in
16219 ia64*)
16220 shrext_cmds='.so'
16221 hardcode_into_libs=yes
16222 dynamic_linker="$host_os dld.so"
16223 shlibpath_var=LD_LIBRARY_PATH
16224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16226 soname_spec='$libname$release$shared_ext$major'
16227 if test 32 = "$HPUX_IA64_MODE"; then
16228 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16229 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16230 else
16231 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16232 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16233 fi
16234 ;;
16235 hppa*64*)
16236 shrext_cmds='.sl'
16237 hardcode_into_libs=yes
16238 dynamic_linker="$host_os dld.sl"
16239 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16242 soname_spec='$libname$release$shared_ext$major'
16243 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16245 ;;
16246 *)
16247 shrext_cmds='.sl'
16248 dynamic_linker="$host_os dld.sl"
16249 shlibpath_var=SHLIB_PATH
16250 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16252 soname_spec='$libname$release$shared_ext$major'
16253 ;;
16254 esac
16255 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16256 postinstall_cmds='chmod 555 $lib'
16257 # or fails outright, so override atomically:
16258 install_override_mode=555
16259 ;;
16260
16261 interix[3-9]*)
16262 version_type=linux # correct to gnu/linux during the next big refactor
16263 need_lib_prefix=no
16264 need_version=no
16265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16266 soname_spec='$libname$release$shared_ext$major'
16267 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16268 shlibpath_var=LD_LIBRARY_PATH
16269 shlibpath_overrides_runpath=no
16270 hardcode_into_libs=yes
16271 ;;
16272
16273 irix5* | irix6* | nonstopux*)
16274 case $host_os in
16275 nonstopux*) version_type=nonstopux ;;
16276 *)
16277 if test yes = "$lt_cv_prog_gnu_ld"; then
16278 version_type=linux # correct to gnu/linux during the next big refactor
16279 else
16280 version_type=irix
16281 fi ;;
16282 esac
16283 need_lib_prefix=no
16284 need_version=no
16285 soname_spec='$libname$release$shared_ext$major'
16286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16287 case $host_os in
16288 irix5* | nonstopux*)
16289 libsuff= shlibsuff=
16290 ;;
16291 *)
16292 case $LD in # libtool.m4 will add one of these switches to LD
16293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16294 libsuff= shlibsuff= libmagic=32-bit;;
16295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16296 libsuff=32 shlibsuff=N32 libmagic=N32;;
16297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16298 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16299 *) libsuff= shlibsuff= libmagic=never-match;;
16300 esac
16301 ;;
16302 esac
16303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16304 shlibpath_overrides_runpath=no
16305 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16306 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16307 hardcode_into_libs=yes
16308 ;;
16309
16310 # No shared lib support for Linux oldld, aout, or coff.
16311 linux*oldld* | linux*aout* | linux*coff*)
16312 dynamic_linker=no
16313 ;;
16314
16315 linux*android*)
16316 version_type=none # Android doesn't support versioned libraries.
16317 need_lib_prefix=no
16318 need_version=no
16319 library_names_spec='$libname$release$shared_ext'
16320 soname_spec='$libname$release$shared_ext'
16321 finish_cmds=
16322 shlibpath_var=LD_LIBRARY_PATH
16323 shlibpath_overrides_runpath=yes
16324
16325 # This implies no fast_install, which is unacceptable.
16326 # Some rework will be needed to allow for fast_install
16327 # before this can be enabled.
16328 hardcode_into_libs=yes
16329
16330 dynamic_linker='Android linker'
16331 # Don't embed -rpath directories since the linker doesn't support them.
16332 hardcode_libdir_flag_spec_CXX='-L$libdir'
16333 ;;
16334
16335 # This must be glibc/ELF.
16336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16337 version_type=linux # correct to gnu/linux during the next big refactor
16338 need_lib_prefix=no
16339 need_version=no
16340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16341 soname_spec='$libname$release$shared_ext$major'
16342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16343 shlibpath_var=LD_LIBRARY_PATH
16344 shlibpath_overrides_runpath=no
16345
16346 # Some binutils ld are patched to set DT_RUNPATH
16347 if test ${lt_cv_shlibpath_overrides_runpath+y}
16348 then :
16349 printf %s "(cached) " >&6
16350 else $as_nop
16351 lt_cv_shlibpath_overrides_runpath=no
16352 save_LDFLAGS=$LDFLAGS
16353 save_libdir=$libdir
16354 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16355 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358
16359 int
16360 main (void)
16361 {
16362
16363 ;
16364 return 0;
16365 }
16366 _ACEOF
16367 if ac_fn_cxx_try_link "$LINENO"
16368 then :
16369 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16370 then :
16371 lt_cv_shlibpath_overrides_runpath=yes
16372 fi
16373 fi
16374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16375 conftest$ac_exeext conftest.$ac_ext
16376 LDFLAGS=$save_LDFLAGS
16377 libdir=$save_libdir
16378
16379 fi
16380
16381 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16382
16383 # This implies no fast_install, which is unacceptable.
16384 # Some rework will be needed to allow for fast_install
16385 # before this can be enabled.
16386 hardcode_into_libs=yes
16387
16388 # Ideally, we could use ldconfig to report *all* directores which are
16389 # searched for libraries, however this is still not possible. Aside from not
16390 # being certain /sbin/ldconfig is available, command
16391 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16392 # even though it is searched at run-time. Try to do the best guess by
16393 # appending ld.so.conf contents (and includes) to the search path.
16394 if test -f /etc/ld.so.conf; then
16395 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' ' '`
16396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16397 fi
16398
16399 # We used to test for /lib/ld.so.1 and disable shared libraries on
16400 # powerpc, because MkLinux only supported shared libraries with the
16401 # GNU dynamic linker. Since this was broken with cross compilers,
16402 # most powerpc-linux boxes support dynamic linking these days and
16403 # people can always --disable-shared, the test was removed, and we
16404 # assume the GNU/Linux dynamic linker is in use.
16405 dynamic_linker='GNU/Linux ld.so'
16406 ;;
16407
16408 netbsd*)
16409 version_type=sunos
16410 need_lib_prefix=no
16411 need_version=no
16412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16415 dynamic_linker='NetBSD (a.out) ld.so'
16416 else
16417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16418 soname_spec='$libname$release$shared_ext$major'
16419 dynamic_linker='NetBSD ld.elf_so'
16420 fi
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=yes
16423 hardcode_into_libs=yes
16424 ;;
16425
16426 newsos6)
16427 version_type=linux # correct to gnu/linux during the next big refactor
16428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=yes
16431 ;;
16432
16433 *nto* | *qnx*)
16434 version_type=qnx
16435 need_lib_prefix=no
16436 need_version=no
16437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16438 soname_spec='$libname$release$shared_ext$major'
16439 shlibpath_var=LD_LIBRARY_PATH
16440 shlibpath_overrides_runpath=no
16441 hardcode_into_libs=yes
16442 dynamic_linker='ldqnx.so'
16443 ;;
16444
16445 openbsd* | bitrig*)
16446 version_type=sunos
16447 sys_lib_dlsearch_path_spec=/usr/lib
16448 need_lib_prefix=no
16449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16450 need_version=no
16451 else
16452 need_version=yes
16453 fi
16454 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 shlibpath_overrides_runpath=yes
16458 ;;
16459
16460 os2*)
16461 libname_spec='$name'
16462 version_type=windows
16463 shrext_cmds=.dll
16464 need_version=no
16465 need_lib_prefix=no
16466 # OS/2 can only load a DLL with a base name of 8 characters or less.
16467 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16468 v=$($ECHO $release$versuffix | tr -d .-);
16469 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16470 $ECHO $n$v`$shared_ext'
16471 library_names_spec='${libname}_dll.$libext'
16472 dynamic_linker='OS/2 ld.exe'
16473 shlibpath_var=BEGINLIBPATH
16474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16476 postinstall_cmds='base_file=`basename \$file`~
16477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16478 dldir=$destdir/`dirname \$dlpath`~
16479 test -d \$dldir || mkdir -p \$dldir~
16480 $install_prog $dir/$dlname \$dldir/$dlname~
16481 chmod a+x \$dldir/$dlname~
16482 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16483 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16484 fi'
16485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16486 dlpath=$dir/\$dldll~
16487 $RM \$dlpath'
16488 ;;
16489
16490 osf3* | osf4* | osf5*)
16491 version_type=osf
16492 need_lib_prefix=no
16493 need_version=no
16494 soname_spec='$libname$release$shared_ext$major'
16495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16499 ;;
16500
16501 rdos*)
16502 dynamic_linker=no
16503 ;;
16504
16505 solaris*)
16506 version_type=linux # correct to gnu/linux during the next big refactor
16507 need_lib_prefix=no
16508 need_version=no
16509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16510 soname_spec='$libname$release$shared_ext$major'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 shlibpath_overrides_runpath=yes
16513 hardcode_into_libs=yes
16514 # ldd complains unless libraries are executable
16515 postinstall_cmds='chmod +x $lib'
16516 ;;
16517
16518 sunos4*)
16519 version_type=sunos
16520 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 shlibpath_overrides_runpath=yes
16524 if test yes = "$with_gnu_ld"; then
16525 need_lib_prefix=no
16526 fi
16527 need_version=yes
16528 ;;
16529
16530 sysv4 | sysv4.3*)
16531 version_type=linux # correct to gnu/linux during the next big refactor
16532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16533 soname_spec='$libname$release$shared_ext$major'
16534 shlibpath_var=LD_LIBRARY_PATH
16535 case $host_vendor in
16536 sni)
16537 shlibpath_overrides_runpath=no
16538 need_lib_prefix=no
16539 runpath_var=LD_RUN_PATH
16540 ;;
16541 siemens)
16542 need_lib_prefix=no
16543 ;;
16544 motorola)
16545 need_lib_prefix=no
16546 need_version=no
16547 shlibpath_overrides_runpath=no
16548 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16549 ;;
16550 esac
16551 ;;
16552
16553 sysv4*MP*)
16554 if test -d /usr/nec; then
16555 version_type=linux # correct to gnu/linux during the next big refactor
16556 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16557 soname_spec='$libname$shared_ext.$major'
16558 shlibpath_var=LD_LIBRARY_PATH
16559 fi
16560 ;;
16561
16562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16563 version_type=sco
16564 need_lib_prefix=no
16565 need_version=no
16566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16567 soname_spec='$libname$release$shared_ext$major'
16568 shlibpath_var=LD_LIBRARY_PATH
16569 shlibpath_overrides_runpath=yes
16570 hardcode_into_libs=yes
16571 if test yes = "$with_gnu_ld"; then
16572 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16573 else
16574 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16575 case $host_os in
16576 sco3.2v5*)
16577 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16578 ;;
16579 esac
16580 fi
16581 sys_lib_dlsearch_path_spec='/usr/lib'
16582 ;;
16583
16584 tpf*)
16585 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16586 version_type=linux # correct to gnu/linux during the next big refactor
16587 need_lib_prefix=no
16588 need_version=no
16589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16590 shlibpath_var=LD_LIBRARY_PATH
16591 shlibpath_overrides_runpath=no
16592 hardcode_into_libs=yes
16593 ;;
16594
16595 uts4*)
16596 version_type=linux # correct to gnu/linux during the next big refactor
16597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16598 soname_spec='$libname$release$shared_ext$major'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 ;;
16601
16602 *)
16603 dynamic_linker=no
16604 ;;
16605 esac
16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16607 printf "%s\n" "$dynamic_linker" >&6; }
16608 test no = "$dynamic_linker" && can_build_shared=no
16609
16610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16611 if test yes = "$GCC"; then
16612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16613 fi
16614
16615 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16616 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16617 fi
16618
16619 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16620 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16621 fi
16622
16623 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16624 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16625
16626 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16627 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16628
16629 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16630 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16672 printf %s "checking how to hardcode library paths into programs... " >&6; }
16673 hardcode_action_CXX=
16674 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16675 test -n "$runpath_var_CXX" ||
16676 test yes = "$hardcode_automatic_CXX"; then
16677
16678 # We can hardcode non-existent directories.
16679 if test no != "$hardcode_direct_CXX" &&
16680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16681 # have to relink, otherwise we might link with an installed library
16682 # when we should be linking with a yet-to-be-installed one
16683 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16684 test no != "$hardcode_minus_L_CXX"; then
16685 # Linking always hardcodes the temporary library directory.
16686 hardcode_action_CXX=relink
16687 else
16688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16689 hardcode_action_CXX=immediate
16690 fi
16691 else
16692 # We cannot hardcode anything, or else we can only hardcode existing
16693 # directories.
16694 hardcode_action_CXX=unsupported
16695 fi
16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16697 printf "%s\n" "$hardcode_action_CXX" >&6; }
16698
16699 if test relink = "$hardcode_action_CXX" ||
16700 test yes = "$inherit_rpath_CXX"; then
16701 # Fast installation is not supported
16702 enable_fast_install=no
16703 elif test yes = "$shlibpath_overrides_runpath" ||
16704 test no = "$enable_shared"; then
16705 # Fast installation is not necessary
16706 enable_fast_install=needless
16707 fi
16708
16709
16710
16711
16712
16713
16714
16715 fi # test -n "$compiler"
16716
16717 CC=$lt_save_CC
16718 CFLAGS=$lt_save_CFLAGS
16719 LDCXX=$LD
16720 LD=$lt_save_LD
16721 GCC=$lt_save_GCC
16722 with_gnu_ld=$lt_save_with_gnu_ld
16723 lt_cv_path_LDCXX=$lt_cv_path_LD
16724 lt_cv_path_LD=$lt_save_path_LD
16725 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16726 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16727 fi # test yes != "$_lt_caught_CXX_error"
16728
16729 ac_ext=cpp
16730 ac_cpp='$CXXCPP $CPPFLAGS'
16731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749 ac_config_commands="$ac_config_commands libtool"
16750
16751
16752
16753
16754 # Only expand once:
16755
16756
16757
16758 # Check whether --enable-outputs was given.
16759 if test ${enable_outputs+y}
16760 then :
16761 enableval=$enable_outputs; outputs=$enableval
16762 else $as_nop
16763 outputs=no
16764 fi
16765
16766 # Check whether --enable-visualizer was given.
16767 if test ${enable_visualizer+y}
16768 then :
16769 enableval=$enable_visualizer; visualizer=$enableval
16770 else $as_nop
16771 visualizer=no
16772 fi
16773
16774 # Check whether --enable-clock was given.
16775 if test ${enable_clock+y}
16776 then :
16777 enableval=$enable_clock; clock=$enableval
16778 else $as_nop
16779 clock=no
16780 fi
16781
16782
16783
16784 # Check whether --with-fftw was given.
16785 if test ${with_fftw+y}
16786 then :
16787 withval=$with_fftw; fftw=$withval
16788 else $as_nop
16789 fftw=auto
16790 fi
16791
16792
16793 # Check whether --with-taglib was given.
16794 if test ${with_taglib+y}
16795 then :
16796 withval=$with_taglib; taglib=$withval
16797 else $as_nop
16798 taglib=auto
16799 fi
16800
16801
16802 # Check whether --with-lto was given.
16803 if test ${with_lto+y}
16804 then :
16805 withval=$with_lto; lto=$withval
16806 else $as_nop
16807 lto=yes
16808 fi
16809
16810
16811 if test "$outputs" = "yes"; then
16812
16813 printf "%s\n" "#define ENABLE_OUTPUTS 1" >>confdefs.h
16814
16815 fi
16816
16817 if test "$clock" = "yes"; then
16818
16819 printf "%s\n" "#define ENABLE_CLOCK 1" >>confdefs.h
16820
16821 fi
16822
16823 # -flto
16824 if test "$lto" != "no"; then
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -flto" >&5
16826 printf %s "checking whether compiler supports -flto... " >&6; }
16827 old_CXXFLAGS="$CXXFLAGS"
16828 # support specifying the number of threads
16829 if test "$lto" != "yes"; then
16830 flto="-flto=$lto"
16831 else
16832 flto="-flto"
16833 fi
16834 CXXFLAGS="$flto"
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16837
16838 int
16839 main (void)
16840 {
16841
16842 ;
16843 return 0;
16844 }
16845 _ACEOF
16846 if ac_fn_cxx_try_link "$LINENO"
16847 then :
16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16849 printf "%s\n" "yes" >&6; }
16850 else $as_nop
16851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852 printf "%s\n" "no" >&6; }
16853 flto=""
16854
16855 fi
16856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16857 conftest$ac_exeext conftest.$ac_ext
16858 CXXFLAGS="$old_CXXFLAGS $flto"
16859 fi
16860
16861 # -ftree-vectorize
16862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -ftree-vectorize" >&5
16863 printf %s "checking whether compiler supports -ftree-vectorize... " >&6; }
16864 old_CXXFLAGS="$CXXFLAGS"
16865 CXXFLAGS="-ftree-vectorize"
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h. */
16868
16869 int
16870 main (void)
16871 {
16872
16873 ;
16874 return 0;
16875 }
16876 _ACEOF
16877 if ac_fn_cxx_try_compile "$LINENO"
16878 then :
16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16880 printf "%s\n" "yes" >&6; }
16881 tree_vectorize="-ftree-vectorize"
16882 else $as_nop
16883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16884 printf "%s\n" "no" >&6; }
16885 tree_vectorize=""
16886
16887 fi
16888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16889 CXXFLAGS="$old_CXXFLAGS $tree_vectorize"
16890
16891 # -ffast-math
16892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -ffast-math" >&5
16893 printf %s "checking whether compiler supports -ffast-math... " >&6; }
16894 old_CXXFLAGS="$CXXFLAGS"
16895 CXXFLAGS="-ffast-math"
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898
16899 int
16900 main (void)
16901 {
16902
16903 ;
16904 return 0;
16905 }
16906 _ACEOF
16907 if ac_fn_cxx_try_compile "$LINENO"
16908 then :
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16910 printf "%s\n" "yes" >&6; }
16911 fast_math="-ffast-math"
16912 else $as_nop
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914 printf "%s\n" "no" >&6; }
16915 fast_math=""
16916
16917 fi
16918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16919 CXXFLAGS="$old_CXXFLAGS $fast_math"
16920
16921 # -std=c++14
16922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=c++14" >&5
16923 printf %s "checking whether compiler supports -std=c++14... " >&6; }
16924 old_CXXFLAGS="$CXXFLAGS"
16925 CXXFLAGS="-std=c++14"
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16928
16929 int
16930 main (void)
16931 {
16932
16933 ;
16934 return 0;
16935 }
16936 _ACEOF
16937 if ac_fn_cxx_try_compile "$LINENO"
16938 then :
16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16940 printf "%s\n" "yes" >&6; }
16941 std_cpp14="-std=c++14"
16942 else $as_nop
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16944 printf "%s\n" "no" >&6; }
16945 as_fn_error $? "Your compiler doesn't seem to support C++14, please upgrade (GCC >= 5)" "$LINENO" 5
16946
16947 fi
16948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16949 CXXFLAGS="$old_CXXFLAGS $std_cpp14"
16950
16951 # generic lambda expressions support
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports generic lambda expressions" >&5
16953 printf %s "checking whether compiler supports generic lambda expressions... " >&6; }
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956
16957 int
16958 main (void)
16959 {
16960 auto f = [](auto n) { return n*n; }; f(7);
16961 ;
16962 return 0;
16963 }
16964 _ACEOF
16965 if ac_fn_cxx_try_compile "$LINENO"
16966 then :
16967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968 printf "%s\n" "yes" >&6; }
16969 else $as_nop
16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971 printf "%s\n" "no" >&6; }
16972 as_fn_error $? "Your compiler doesn't seem to support generic lambda expressions, please upgrade (GCC >= 5)" "$LINENO" 5
16973
16974 fi
16975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16976
16977 # boost
16978
16979 echo "$as_me: this is boost.m4 serial 26" >&5
16980 boost_save_IFS=$IFS
16981 boost_version_req=1.60
16982 IFS=.
16983 set x $boost_version_req 0 0 0
16984 IFS=$boost_save_IFS
16985 shift
16986 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
16987 boost_version_req_string=$1.$2.$3
16988
16989 # Check whether --with-boost was given.
16990 if test ${with_boost+y}
16991 then :
16992 withval=$with_boost;
16993 fi
16994 # If BOOST_ROOT is set and the user has not provided a value to
16995 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
16996 if test x"$BOOST_ROOT" != x; then
16997 if test x"$with_boost" = x; then
16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
16999 printf "%s\n" "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
17000 with_boost=$BOOST_ROOT
17001 else
17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
17003 printf "%s\n" "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
17004 fi
17005 fi
17006 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
17007 boost_save_CPPFLAGS=$CPPFLAGS
17008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
17009 printf %s "checking for Boost headers version >= $boost_version_req_string... " >&6; }
17010 if test ${boost_cv_inc_path+y}
17011 then :
17012 printf %s "(cached) " >&6
17013 else $as_nop
17014 boost_cv_inc_path=no
17015 ac_ext=cpp
17016 ac_cpp='$CXXCPP $CPPFLAGS'
17017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021 /* end confdefs.h. */
17022 #include <boost/version.hpp>
17023 #if !defined BOOST_VERSION
17024 # error BOOST_VERSION is not defined
17025 #elif BOOST_VERSION < $boost_version_req
17026 # error Boost headers version < $boost_version_req
17027 #endif
17028
17029 int
17030 main (void)
17031 {
17032
17033 ;
17034 return 0;
17035 }
17036 _ACEOF
17037 # If the user provided a value to --with-boost, use it and only it.
17038 case $with_boost in #(
17039 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
17040 /usr/include C:/Boost/include;; #(
17041 *) set x "$with_boost/include" "$with_boost";;
17042 esac
17043 shift
17044 for boost_dir
17045 do
17046 # Without --layout=system, Boost (or at least some versions) installs
17047 # itself in <prefix>/include/boost-<version>. This inner loop helps to
17048 # find headers in such directories.
17049 #
17050 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
17051 # order followed by ${boost_dir}. The final '.' is a sentinel for
17052 # searching $boost_dir" itself. Entries are whitespace separated.
17053 #
17054 # I didn't indent this loop on purpose (to avoid over-indented code)
17055 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
17056 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
17057 && echo .`
17058 for boost_inc in $boost_layout_system_search_list
17059 do
17060 if test x"$boost_inc" != x.; then
17061 boost_inc="$boost_dir/$boost_inc"
17062 else
17063 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
17064 fi
17065 if test x"$boost_inc" != x; then
17066 # We are going to check whether the version of Boost installed
17067 # in $boost_inc is usable by running a compilation that
17068 # #includes it. But if we pass a -I/some/path in which Boost
17069 # is not installed, the compiler will just skip this -I and
17070 # use other locations (either from CPPFLAGS, or from its list
17071 # of system include directories). As a result we would use
17072 # header installed on the machine instead of the /some/path
17073 # specified by the user. So in that precise case (trying
17074 # $boost_inc), make sure the version.hpp exists.
17075 #
17076 # Use test -e as there can be symlinks.
17077 test -e "$boost_inc/boost/version.hpp" || continue
17078 CPPFLAGS="$CPPFLAGS -I$boost_inc"
17079 fi
17080 if ac_fn_cxx_try_compile "$LINENO"
17081 then :
17082 boost_cv_inc_path=yes
17083 else $as_nop
17084 boost_cv_version=no
17085 fi
17086 rm -f core conftest.err conftest.$ac_objext conftest.beam
17087 if test x"$boost_cv_inc_path" = xyes; then
17088 if test x"$boost_inc" != x; then
17089 boost_cv_inc_path=$boost_inc
17090 fi
17091 break 2
17092 fi
17093 done
17094 done
17095 ac_ext=cpp
17096 ac_cpp='$CXXCPP $CPPFLAGS'
17097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17100
17101 fi
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
17103 printf "%s\n" "$boost_cv_inc_path" >&6; }
17104 case $boost_cv_inc_path in #(
17105 no)
17106 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
17107 as_fn_error $? "$boost_errmsg" "$LINENO" 5
17108
17109 ;;#(
17110 yes)
17111 BOOST_CPPFLAGS=
17112 ;;#(
17113 *)
17114 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
17115 ;;
17116 esac
17117 if test x"$boost_cv_inc_path" != xno; then
17118
17119 printf "%s\n" "#define HAVE_BOOST 1" >>confdefs.h
17120
17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
17122 printf %s "checking for Boost's header version... " >&6; }
17123 if test ${boost_cv_lib_version+y}
17124 then :
17125 printf %s "(cached) " >&6
17126 else $as_nop
17127 ac_ext=cpp
17128 ac_cpp='$CXXCPP $CPPFLAGS'
17129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17134 #include <boost/version.hpp>
17135 boost-lib-version = BOOST_LIB_VERSION
17136 _ACEOF
17137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17138 grep -v '#' |
17139 grep -v '^[[:space:]]*$' |
17140 tr -d '\r' |
17141 tr -s '\n' ' ' |
17142 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1
17143 then :
17144 boost_cv_lib_version=`cat conftest.i`
17145 fi
17146 rm -rf conftest*
17147 ac_ext=cpp
17148 ac_cpp='$CXXCPP $CPPFLAGS'
17149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17152
17153 fi
17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
17155 printf "%s\n" "$boost_cv_lib_version" >&6; }
17156 # e.g. "134" for 1_34_1 or "135" for 1_35
17157 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
17158 case $boost_major_version in #(
17159 '' | *[!0-9]*)
17160 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
17161 ;;
17162 esac
17163 fi
17164 CPPFLAGS=$boost_save_CPPFLAGS
17165
17166
17167 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17168
17169 if test x"$boost_cv_inc_path" = xno; then
17170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/algorithm/string.hpp" >&5
17171 printf "%s\n" "$as_me: Boost not available, not searching for boost/algorithm/string.hpp" >&6;}
17172 else
17173 ac_ext=cpp
17174 ac_cpp='$CXXCPP $CPPFLAGS'
17175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17178 boost_save_CPPFLAGS=$CPPFLAGS
17179 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17180 ac_fn_cxx_check_header_compile "$LINENO" "boost/algorithm/string.hpp" "ac_cv_header_boost_algorithm_string_hpp" "$ac_includes_default"
17181 if test "x$ac_cv_header_boost_algorithm_string_hpp" = xyes
17182 then :
17183
17184 printf "%s\n" "#define HAVE_BOOST_ALGORITHM_STRING_HPP 1" >>confdefs.h
17185
17186 else $as_nop
17187 as_fn_error $? "cannot find boost/algorithm/string.hpp" "$LINENO" 5
17188 fi
17189
17190 CPPFLAGS=$boost_save_CPPFLAGS
17191 ac_ext=cpp
17192 ac_cpp='$CXXCPP $CPPFLAGS'
17193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17196 fi
17197
17198
17199
17200 if test x"$boost_cv_inc_path" = xno; then
17201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/format.hpp" >&5
17202 printf "%s\n" "$as_me: Boost not available, not searching for boost/format.hpp" >&6;}
17203 else
17204 ac_ext=cpp
17205 ac_cpp='$CXXCPP $CPPFLAGS'
17206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17209 boost_save_CPPFLAGS=$CPPFLAGS
17210 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17211 ac_fn_cxx_check_header_compile "$LINENO" "boost/format.hpp" "ac_cv_header_boost_format_hpp" "$ac_includes_default"
17212 if test "x$ac_cv_header_boost_format_hpp" = xyes
17213 then :
17214
17215 printf "%s\n" "#define HAVE_BOOST_FORMAT_HPP 1" >>confdefs.h
17216
17217 else $as_nop
17218 as_fn_error $? "cannot find boost/format.hpp" "$LINENO" 5
17219 fi
17220
17221 CPPFLAGS=$boost_save_CPPFLAGS
17222 ac_ext=cpp
17223 ac_cpp='$CXXCPP $CPPFLAGS'
17224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17227 fi
17228
17229
17230 if test x"$boost_cv_inc_path" = xno; then
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/functional/hash.hpp" >&5
17232 printf "%s\n" "$as_me: Boost not available, not searching for boost/functional/hash.hpp" >&6;}
17233 else
17234 ac_ext=cpp
17235 ac_cpp='$CXXCPP $CPPFLAGS'
17236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17239 boost_save_CPPFLAGS=$CPPFLAGS
17240 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17241 ac_fn_cxx_check_header_compile "$LINENO" "boost/functional/hash.hpp" "ac_cv_header_boost_functional_hash_hpp" "$ac_includes_default"
17242 if test "x$ac_cv_header_boost_functional_hash_hpp" = xyes
17243 then :
17244
17245 printf "%s\n" "#define HAVE_BOOST_FUNCTIONAL_HASH_HPP 1" >>confdefs.h
17246
17247 else $as_nop
17248 as_fn_error $? "cannot find boost/functional/hash.hpp" "$LINENO" 5
17249 fi
17250
17251 CPPFLAGS=$boost_save_CPPFLAGS
17252 ac_ext=cpp
17253 ac_cpp='$CXXCPP $CPPFLAGS'
17254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17257 fi
17258
17259
17260 if test x"$boost_cv_inc_path" = xno; then
17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/cast.hpp" >&5
17262 printf "%s\n" "$as_me: Boost not available, not searching for boost/cast.hpp" >&6;}
17263 else
17264 ac_ext=cpp
17265 ac_cpp='$CXXCPP $CPPFLAGS'
17266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17269 boost_save_CPPFLAGS=$CPPFLAGS
17270 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17271 ac_fn_cxx_check_header_compile "$LINENO" "boost/cast.hpp" "ac_cv_header_boost_cast_hpp" "$ac_includes_default"
17272 if test "x$ac_cv_header_boost_cast_hpp" = xyes
17273 then :
17274
17275 printf "%s\n" "#define HAVE_BOOST_CAST_HPP 1" >>confdefs.h
17276
17277 else $as_nop
17278 as_fn_error $? "cannot find boost/cast.hpp" "$LINENO" 5
17279 fi
17280
17281 CPPFLAGS=$boost_save_CPPFLAGS
17282 ac_ext=cpp
17283 ac_cpp='$CXXCPP $CPPFLAGS'
17284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17287 fi
17288
17289 if test x"$boost_cv_inc_path" = xno; then
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/lexical_cast.hpp" >&5
17291 printf "%s\n" "$as_me: Boost not available, not searching for boost/lexical_cast.hpp" >&6;}
17292 else
17293 ac_ext=cpp
17294 ac_cpp='$CXXCPP $CPPFLAGS'
17295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17298 boost_save_CPPFLAGS=$CPPFLAGS
17299 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17300 ac_fn_cxx_check_header_compile "$LINENO" "boost/lexical_cast.hpp" "ac_cv_header_boost_lexical_cast_hpp" "$ac_includes_default"
17301 if test "x$ac_cv_header_boost_lexical_cast_hpp" = xyes
17302 then :
17303
17304 printf "%s\n" "#define HAVE_BOOST_LEXICAL_CAST_HPP 1" >>confdefs.h
17305
17306 else $as_nop
17307 as_fn_error $? "cannot find boost/lexical_cast.hpp" "$LINENO" 5
17308 fi
17309
17310 CPPFLAGS=$boost_save_CPPFLAGS
17311 ac_ext=cpp
17312 ac_cpp='$CXXCPP $CPPFLAGS'
17313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17316 fi
17317
17318
17319
17320 if test x"$boost_cv_inc_path" = xno; then
17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/math/special_functions.hpp" >&5
17322 printf "%s\n" "$as_me: Boost not available, not searching for boost/math/special_functions.hpp" >&6;}
17323 else
17324 ac_ext=cpp
17325 ac_cpp='$CXXCPP $CPPFLAGS'
17326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17329 boost_save_CPPFLAGS=$CPPFLAGS
17330 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17331 ac_fn_cxx_check_header_compile "$LINENO" "boost/math/special_functions.hpp" "ac_cv_header_boost_math_special_functions_hpp" "$ac_includes_default"
17332 if test "x$ac_cv_header_boost_math_special_functions_hpp" = xyes
17333 then :
17334
17335 printf "%s\n" "#define HAVE_BOOST_MATH_SPECIAL_FUNCTIONS_HPP 1" >>confdefs.h
17336
17337 else $as_nop
17338 as_fn_error $? "cannot find boost/math/special_functions.hpp" "$LINENO" 5
17339 fi
17340
17341 CPPFLAGS=$boost_save_CPPFLAGS
17342 ac_ext=cpp
17343 ac_cpp='$CXXCPP $CPPFLAGS'
17344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17347 fi
17348
17349
17350 if test x"$boost_cv_inc_path" = xno; then
17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/optional.hpp" >&5
17352 printf "%s\n" "$as_me: Boost not available, not searching for boost/optional.hpp" >&6;}
17353 else
17354 ac_ext=cpp
17355 ac_cpp='$CXXCPP $CPPFLAGS'
17356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17359 boost_save_CPPFLAGS=$CPPFLAGS
17360 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17361 ac_fn_cxx_check_header_compile "$LINENO" "boost/optional.hpp" "ac_cv_header_boost_optional_hpp" "$ac_includes_default"
17362 if test "x$ac_cv_header_boost_optional_hpp" = xyes
17363 then :
17364
17365 printf "%s\n" "#define HAVE_BOOST_OPTIONAL_HPP 1" >>confdefs.h
17366
17367 else $as_nop
17368 as_fn_error $? "cannot find boost/optional.hpp" "$LINENO" 5
17369 fi
17370
17371 CPPFLAGS=$boost_save_CPPFLAGS
17372 ac_ext=cpp
17373 ac_cpp='$CXXCPP $CPPFLAGS'
17374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17377 fi
17378
17379
17380 if test x"$boost_cv_inc_path" = xno; then
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/range/adaptors.hpp" >&5
17382 printf "%s\n" "$as_me: Boost not available, not searching for boost/range/adaptors.hpp" >&6;}
17383 else
17384 ac_ext=cpp
17385 ac_cpp='$CXXCPP $CPPFLAGS'
17386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17389 boost_save_CPPFLAGS=$CPPFLAGS
17390 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17391 ac_fn_cxx_check_header_compile "$LINENO" "boost/range/adaptors.hpp" "ac_cv_header_boost_range_adaptors_hpp" "$ac_includes_default"
17392 if test "x$ac_cv_header_boost_range_adaptors_hpp" = xyes
17393 then :
17394
17395 printf "%s\n" "#define HAVE_BOOST_RANGE_ADAPTORS_HPP 1" >>confdefs.h
17396
17397 else $as_nop
17398 as_fn_error $? "cannot find boost/range/adaptors.hpp" "$LINENO" 5
17399 fi
17400
17401 CPPFLAGS=$boost_save_CPPFLAGS
17402 ac_ext=cpp
17403 ac_cpp='$CXXCPP $CPPFLAGS'
17404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17407 fi
17408
17409
17410 if test x"$boost_cv_inc_path" = xno; then
17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/tokenizer.hpp" >&5
17412 printf "%s\n" "$as_me: Boost not available, not searching for boost/tokenizer.hpp" >&6;}
17413 else
17414 ac_ext=cpp
17415 ac_cpp='$CXXCPP $CPPFLAGS'
17416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17419 boost_save_CPPFLAGS=$CPPFLAGS
17420 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17421 ac_fn_cxx_check_header_compile "$LINENO" "boost/tokenizer.hpp" "ac_cv_header_boost_tokenizer_hpp" "$ac_includes_default"
17422 if test "x$ac_cv_header_boost_tokenizer_hpp" = xyes
17423 then :
17424
17425 printf "%s\n" "#define HAVE_BOOST_TOKENIZER_HPP 1" >>confdefs.h
17426
17427 else $as_nop
17428 as_fn_error $? "cannot find boost/tokenizer.hpp" "$LINENO" 5
17429 fi
17430
17431 CPPFLAGS=$boost_save_CPPFLAGS
17432 ac_ext=cpp
17433 ac_cpp='$CXXCPP $CPPFLAGS'
17434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17437 fi
17438
17439
17440 if test x"$boost_cv_inc_path" = xno; then
17441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/tuple/tuple.hpp" >&5
17442 printf "%s\n" "$as_me: Boost not available, not searching for boost/tuple/tuple.hpp" >&6;}
17443 else
17444 ac_ext=cpp
17445 ac_cpp='$CXXCPP $CPPFLAGS'
17446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17449 boost_save_CPPFLAGS=$CPPFLAGS
17450 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17451 ac_fn_cxx_check_header_compile "$LINENO" "boost/tuple/tuple.hpp" "ac_cv_header_boost_tuple_tuple_hpp" "$ac_includes_default"
17452 if test "x$ac_cv_header_boost_tuple_tuple_hpp" = xyes
17453 then :
17454
17455 printf "%s\n" "#define HAVE_BOOST_TUPLE_TUPLE_HPP 1" >>confdefs.h
17456
17457 else $as_nop
17458 as_fn_error $? "cannot find boost/tuple/tuple.hpp" "$LINENO" 5
17459 fi
17460
17461 CPPFLAGS=$boost_save_CPPFLAGS
17462 ac_ext=cpp
17463 ac_cpp='$CXXCPP $CPPFLAGS'
17464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17467 fi
17468
17469
17470 if test x"$boost_cv_inc_path" = xno; then
17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/variant/variant_fwd.hpp" >&5
17472 printf "%s\n" "$as_me: Boost not available, not searching for boost/variant/variant_fwd.hpp" >&6;}
17473 else
17474 ac_ext=cpp
17475 ac_cpp='$CXXCPP $CPPFLAGS'
17476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17479 boost_save_CPPFLAGS=$CPPFLAGS
17480 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17481 ac_fn_cxx_check_header_compile "$LINENO" "boost/variant/variant_fwd.hpp" "ac_cv_header_boost_variant_variant_fwd_hpp" "$ac_includes_default"
17482 if test "x$ac_cv_header_boost_variant_variant_fwd_hpp" = xyes
17483 then :
17484
17485 printf "%s\n" "#define HAVE_BOOST_VARIANT_VARIANT_FWD_HPP 1" >>confdefs.h
17486
17487 else $as_nop
17488 as_fn_error $? "cannot find boost/variant/variant_fwd.hpp" "$LINENO" 5
17489 fi
17490
17491 CPPFLAGS=$boost_save_CPPFLAGS
17492 ac_ext=cpp
17493 ac_cpp='$CXXCPP $CPPFLAGS'
17494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17497 fi
17498
17499 if test x"$boost_cv_inc_path" = xno; then
17500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/variant.hpp" >&5
17501 printf "%s\n" "$as_me: Boost not available, not searching for boost/variant.hpp" >&6;}
17502 else
17503 ac_ext=cpp
17504 ac_cpp='$CXXCPP $CPPFLAGS'
17505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17508 boost_save_CPPFLAGS=$CPPFLAGS
17509 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17510 ac_fn_cxx_check_header_compile "$LINENO" "boost/variant.hpp" "ac_cv_header_boost_variant_hpp" "$ac_includes_default"
17511 if test "x$ac_cv_header_boost_variant_hpp" = xyes
17512 then :
17513
17514 printf "%s\n" "#define HAVE_BOOST_VARIANT_HPP 1" >>confdefs.h
17515
17516 else $as_nop
17517 as_fn_error $? "cannot find boost/variant.hpp" "$LINENO" 5
17518 fi
17519
17520 CPPFLAGS=$boost_save_CPPFLAGS
17521 ac_ext=cpp
17522 ac_cpp='$CXXCPP $CPPFLAGS'
17523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17526 fi
17527
17528
17529
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
17531 printf %s "checking for the toolset name used by Boost for $CXX... " >&6; }
17532 if test ${boost_cv_lib_tag+y}
17533 then :
17534 printf %s "(cached) " >&6
17535 else $as_nop
17536 boost_cv_lib_tag=unknown
17537 if test x$boost_cv_inc_path != xno; then
17538 ac_ext=cpp
17539 ac_cpp='$CXXCPP $CPPFLAGS'
17540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17543 # The following tests are mostly inspired by boost/config/auto_link.hpp
17544 # The list is sorted to most recent/common to oldest compiler (in order
17545 # to increase the likelihood of finding the right compiler with the
17546 # least number of compilation attempt).
17547 # Beware that some tests are sensible to the order (for instance, we must
17548 # look for MinGW before looking for GCC3).
17549 # I used one compilation test per compiler with a #error to recognize
17550 # each compiler so that it works even when cross-compiling (let me know
17551 # if you know a better approach).
17552 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
17553 # como, edg, kcc, bck, mp, sw, tru, xlc
17554 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
17555 # the same defines as GCC's).
17556 for i in \
17557 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 2 && !defined __ICC && \
17558 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17559 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw62" \
17560 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc62" \
17561 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 1 && !defined __ICC && \
17562 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17563 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw61" \
17564 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc61" \
17565 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 0 && !defined __ICC && \
17566 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17567 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw60" \
17568 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc60" \
17569 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
17570 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17571 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
17572 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
17573 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
17574 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17575 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
17576 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
17577 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
17578 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17579 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
17580 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
17581 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
17582 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17583 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
17584 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
17585 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
17586 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17587 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
17588 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
17589 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
17590 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17591 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
17592 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
17593 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
17594 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17595 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
17596 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
17597 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
17598 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17599 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
17600 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
17601 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
17602 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17603 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
17604 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
17605 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
17606 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17607 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
17608 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
17609 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
17610 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17611 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
17612 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
17613 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
17614 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17615 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
17616 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
17617 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
17618 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17619 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
17620 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
17621 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
17622 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17623 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
17624 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
17625 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
17626 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17627 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
17628 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
17629 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
17630 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
17631 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
17632 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
17633 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
17634 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
17635 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
17636 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
17637 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
17638 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
17639 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
17640 "defined __BORLANDC__ @ bcb" \
17641 "defined __ICC && (defined __unix || defined ) @ il" \
17642 "defined __ICL @ iw" \
17643 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
17644 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
17645 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
17646 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
17647 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
17648 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
17649 do
17650 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
17651 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654
17655 #if $boost_tag_test
17656 /* OK */
17657 #else
17658 # error $boost_tag_test
17659 #endif
17660
17661 int
17662 main (void)
17663 {
17664
17665 ;
17666 return 0;
17667 }
17668 _ACEOF
17669 if ac_fn_cxx_try_compile "$LINENO"
17670 then :
17671 boost_cv_lib_tag=$boost_tag; break
17672 fi
17673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17674 done
17675 ac_ext=cpp
17676 ac_cpp='$CXXCPP $CPPFLAGS'
17677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17680 case $boost_cv_lib_tag in #(
17681 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
17682 # to "gcc41" for instance.
17683 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
17684 gcc*)
17685 boost_tag_x=
17686 case $host_os in #(
17687 darwin*)
17688 if test $boost_major_version -ge 136; then
17689 # The `x' added in r46793 of Boost.
17690 boost_tag_x=x
17691 fi;;
17692 esac
17693 # We can specify multiple tags in this variable because it's used by
17694 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
17695 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
17696 ;; #(
17697 unknown)
17698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
17699 printf "%s\n" "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
17700 boost_cv_lib_tag=
17701 ;;
17702 esac
17703 fi
17704 fi
17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
17706 printf "%s\n" "$boost_cv_lib_tag" >&6; }
17707 # Check whether --enable-static-boost was given.
17708 if test ${enable_static_boost+y}
17709 then :
17710 enableval=$enable_static_boost; enable_static_boost=yes
17711 else $as_nop
17712 enable_static_boost=no
17713 fi
17714
17715 # Check whether we do better use `mt' even though we weren't ask to.
17716 ac_ext=cpp
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723
17724 #if defined _REENTRANT || defined _MT || defined __MT__
17725 /* use -mt */
17726 #else
17727 # error MT not needed
17728 #endif
17729
17730 int
17731 main (void)
17732 {
17733
17734 ;
17735 return 0;
17736 }
17737 _ACEOF
17738 if ac_fn_cxx_try_compile "$LINENO"
17739 then :
17740 boost_guess_use_mt=:
17741 else $as_nop
17742 boost_guess_use_mt=false
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17745 ac_ext=cpp
17746 ac_cpp='$CXXCPP $CPPFLAGS'
17747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17750
17751 if test x"$boost_cv_inc_path" = xno; then
17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost date_time library" >&5
17753 printf "%s\n" "$as_me: Boost not available, not searching for the Boost date_time library" >&6;}
17754 else
17755 ac_ext=cpp
17756 ac_cpp='$CXXCPP $CPPFLAGS'
17757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17760 if test x"$boost_cv_inc_path" = xno; then
17761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&5
17762 printf "%s\n" "$as_me: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&6;}
17763 else
17764 ac_ext=cpp
17765 ac_cpp='$CXXCPP $CPPFLAGS'
17766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17769 boost_save_CPPFLAGS=$CPPFLAGS
17770 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17771 ac_fn_cxx_check_header_compile "$LINENO" "boost/date_time/posix_time/posix_time.hpp" "ac_cv_header_boost_date_time_posix_time_posix_time_hpp" "$ac_includes_default"
17772 if test "x$ac_cv_header_boost_date_time_posix_time_posix_time_hpp" = xyes
17773 then :
17774
17775 printf "%s\n" "#define HAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_HPP 1" >>confdefs.h
17776
17777 else $as_nop
17778 as_fn_error $? "cannot find boost/date_time/posix_time/posix_time.hpp" "$LINENO" 5
17779 fi
17780
17781 CPPFLAGS=$boost_save_CPPFLAGS
17782 ac_ext=cpp
17783 ac_cpp='$CXXCPP $CPPFLAGS'
17784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17787 fi
17788
17789 boost_save_CPPFLAGS=$CPPFLAGS
17790 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost date_time library" >&5
17792 printf %s "checking for the Boost date_time library... " >&6; }
17793 if test ${boost_cv_lib_date_time+y}
17794 then :
17795 printf %s "(cached) " >&6
17796 else $as_nop
17797 boost_cv_lib_date_time=no
17798 case "" in #(
17799 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
17800 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
17801 (*) boost_mt=; boost_rtopt=;;
17802 esac
17803 if test $enable_static_boost = yes; then
17804 boost_rtopt="s$boost_rtopt"
17805 fi
17806 # Find the proper debug variant depending on what we've been asked to find.
17807 case $boost_rtopt in #(
17808 (*d*) boost_rt_d=$boost_rtopt;; #(
17809 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
17810 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
17811 (*) boost_rt_d='-d';;
17812 esac
17813 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
17814 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
17815 $boost_guess_use_mt && boost_mt=-mt
17816 # Look for the abs path the static archive.
17817 # $libext is computed by Libtool but let's make sure it's non empty.
17818 test -z "$libext" &&
17819 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
17820 boost_save_ac_objext=$ac_objext
17821 # Generate the test file.
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h. */
17824 #include <boost/date_time/posix_time/posix_time.hpp>
17825
17826 int
17827 main (void)
17828 {
17829 boost::posix_time::ptime t;
17830 ;
17831 return 0;
17832 }
17833 _ACEOF
17834 if ac_fn_cxx_try_compile "$LINENO"
17835 then :
17836 ac_objext=do_not_rm_me_plz
17837 else $as_nop
17838 as_fn_error $? "cannot compile a test that uses Boost date_time" "$LINENO" 5
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext conftest.beam
17841 ac_objext=$boost_save_ac_objext
17842 boost_failed_libs=
17843 # Don't bother to ident the following nested for loops, only the 2
17844 # innermost ones matter.
17845 for boost_lib_ in date_time; do
17846 for boost_tag_ in -$boost_cv_lib_tag ''; do
17847 for boost_ver_ in -$boost_cv_lib_version ''; do
17848 for boost_mt_ in $boost_mt -mt ''; do
17849 for boost_rtopt_ in $boost_rtopt '' -d; do
17850 for boost_lib in \
17851 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
17852 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
17853 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
17854 boost_$boost_lib_$boost_tag_$boost_ver_
17855 do
17856 # Avoid testing twice the same lib
17857 case $boost_failed_libs in #(
17858 (*@$boost_lib@*) continue;;
17859 esac
17860 # If with_boost is empty, we'll search in /lib first, which is not quite
17861 # right so instead we'll try to a location based on where the headers are.
17862 boost_tmp_lib=$with_boost
17863 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
17864 for boost_ldpath in "$boost_tmp_lib/lib" '' \
17865 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
17866 "$with_boost" C:/Boost/lib /lib*
17867 do
17868 # Don't waste time with directories that don't exist.
17869 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
17870 continue
17871 fi
17872 boost_save_LDFLAGS=$LDFLAGS
17873 # Are we looking for a static library?
17874 case $boost_ldpath:$boost_rtopt_ in #(
17875 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
17876 boost_cv_lib_date_time_LIBS="$boost_ldpath/lib$boost_lib.$libext"
17877 test -e "$boost_cv_lib_date_time_LIBS" || continue;; #(
17878 (*) # No: use -lboost_foo to find the shared library.
17879 boost_cv_lib_date_time_LIBS="-l$boost_lib";;
17880 esac
17881 boost_save_LIBS=$LIBS
17882 LIBS="$boost_cv_lib_date_time_LIBS $LIBS"
17883 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
17884 rm -f conftest$ac_exeext
17885 boost_save_ac_ext=$ac_ext
17886 boost_use_source=:
17887 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
17888 # tries to link the existing object file instead of compiling from source.
17889 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
17890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
17891 if { { ac_try="$ac_link"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895 esac
17896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17897 printf "%s\n" "$ac_try_echo"; } >&5
17898 (eval "$ac_link") 2>conftest.err
17899 ac_status=$?
17900 if test -s conftest.err; then
17901 grep -v '^ *+' conftest.err >conftest.er1
17902 cat conftest.er1 >&5
17903 mv -f conftest.er1 conftest.err
17904 fi
17905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17906 test $ac_status = 0; } && {
17907 test -z "$ac_cxx_werror_flag" ||
17908 test ! -s conftest.err
17909 } && test -s conftest$ac_exeext && {
17910 test "$cross_compiling" = yes ||
17911 $as_executable_p conftest$ac_exeext
17912 }
17913 then :
17914 boost_cv_lib_date_time=yes
17915 else $as_nop
17916 if $boost_use_source; then
17917 printf "%s\n" "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920 fi
17921 boost_cv_lib_date_time=no
17922 fi
17923 ac_objext=$boost_save_ac_objext
17924 ac_ext=$boost_save_ac_ext
17925 rm -f core conftest.err conftest_ipa8_conftest.oo \
17926 conftest$ac_exeext
17927 ac_objext=$boost_save_ac_objext
17928 LDFLAGS=$boost_save_LDFLAGS
17929 LIBS=$boost_save_LIBS
17930 if test x"$boost_cv_lib_date_time" = xyes; then
17931 # Check or used cached result of whether or not using -R or
17932 # -rpath makes sense. Some implementations of ld, such as for
17933 # Mac OSX, require -rpath but -R is the flag known to work on
17934 # other systems. https://github.com/tsuna/boost.m4/issues/19
17935 if test ${boost_cv_rpath_link_ldflag+y}
17936 then :
17937 printf %s "(cached) " >&6
17938 else $as_nop
17939 case $boost_ldpath in
17940 '') # Nothing to do.
17941 boost_cv_rpath_link_ldflag=
17942 boost_rpath_link_ldflag_found=yes;;
17943 *)
17944 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
17945 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
17946 LIBS="$boost_save_LIBS $boost_cv_lib_date_time_LIBS"
17947 rm -f conftest$ac_exeext
17948 boost_save_ac_ext=$ac_ext
17949 boost_use_source=:
17950 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
17951 # tries to link the existing object file instead of compiling from source.
17952 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
17953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
17954 if { { ac_try="$ac_link"
17955 case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17958 esac
17959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17960 printf "%s\n" "$ac_try_echo"; } >&5
17961 (eval "$ac_link") 2>conftest.err
17962 ac_status=$?
17963 if test -s conftest.err; then
17964 grep -v '^ *+' conftest.err >conftest.er1
17965 cat conftest.er1 >&5
17966 mv -f conftest.er1 conftest.err
17967 fi
17968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969 test $ac_status = 0; } && {
17970 test -z "$ac_cxx_werror_flag" ||
17971 test ! -s conftest.err
17972 } && test -s conftest$ac_exeext && {
17973 test "$cross_compiling" = yes ||
17974 $as_executable_p conftest$ac_exeext
17975 }
17976 then :
17977 boost_rpath_link_ldflag_found=yes
17978 break
17979 else $as_nop
17980 if $boost_use_source; then
17981 printf "%s\n" "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984 fi
17985 boost_rpath_link_ldflag_found=no
17986 fi
17987 ac_objext=$boost_save_ac_objext
17988 ac_ext=$boost_save_ac_ext
17989 rm -f core conftest.err conftest_ipa8_conftest.oo \
17990 conftest$ac_exeext
17991 done
17992 ;;
17993 esac
17994 if test "x$boost_rpath_link_ldflag_found" != "xyes"
17995 then :
17996 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
17997 fi
17998 LDFLAGS=$boost_save_LDFLAGS
17999 LIBS=$boost_save_LIBS
18000
18001 fi
18002
18003 test x"$boost_ldpath" != x &&
18004 boost_cv_lib_date_time_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18005 boost_cv_lib_date_time_LDPATH="$boost_ldpath"
18006 break 7
18007 else
18008 boost_failed_libs="$boost_failed_libs@$boost_lib@"
18009 fi
18010 done
18011 done
18012 done
18013 done
18014 done
18015 done
18016 done # boost_lib_
18017 rm -f conftest.$ac_objext
18018
18019 fi
18020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_date_time" >&5
18021 printf "%s\n" "$boost_cv_lib_date_time" >&6; }
18022 case $boost_cv_lib_date_time in #(
18023 (no) printf "%s\n" "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 as_fn_error $? "cannot find the flags to link with Boost date_time" "$LINENO" 5
18027 ;;
18028 esac
18029 BOOST_DATE_TIME_LDFLAGS=$boost_cv_lib_date_time_LDFLAGS
18030 BOOST_DATE_TIME_LDPATH=$boost_cv_lib_date_time_LDPATH
18031 BOOST_LDPATH=$boost_cv_lib_date_time_LDPATH
18032 BOOST_DATE_TIME_LIBS=$boost_cv_lib_date_time_LIBS
18033 CPPFLAGS=$boost_save_CPPFLAGS
18034 ac_ext=cpp
18035 ac_cpp='$CXXCPP $CPPFLAGS'
18036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18039 fi
18040
18041
18042
18043
18044
18045 LDFLAGS="$LDFLAGS $BOOST_DATE_TIME_LDFLAGS"
18046 LIBS="$LIBS $BOOST_DATE_TIME_LIBS"
18047
18048 # Do we have to check for Boost.System? This link-time dependency was
18049 # added as of 1.35.0. If we have a version <1.35, we must not attempt to
18050 # find Boost.System as it didn't exist by then.
18051 if test $boost_major_version -ge 135; then
18052 if test x"$boost_cv_inc_path" = xno; then
18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
18054 printf "%s\n" "$as_me: Boost not available, not searching for the Boost system library" >&6;}
18055 else
18056 ac_ext=cpp
18057 ac_cpp='$CXXCPP $CPPFLAGS'
18058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18061 if test x"$boost_cv_inc_path" = xno; then
18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
18063 printf "%s\n" "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
18064 else
18065 ac_ext=cpp
18066 ac_cpp='$CXXCPP $CPPFLAGS'
18067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18070 boost_save_CPPFLAGS=$CPPFLAGS
18071 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18072 ac_fn_cxx_check_header_compile "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
18073 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes
18074 then :
18075
18076 printf "%s\n" "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
18077
18078 else $as_nop
18079 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
18080 fi
18081
18082 CPPFLAGS=$boost_save_CPPFLAGS
18083 ac_ext=cpp
18084 ac_cpp='$CXXCPP $CPPFLAGS'
18085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18088 fi
18089
18090 boost_save_CPPFLAGS=$CPPFLAGS
18091 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
18093 printf %s "checking for the Boost system library... " >&6; }
18094 if test ${boost_cv_lib_system+y}
18095 then :
18096 printf %s "(cached) " >&6
18097 else $as_nop
18098 boost_cv_lib_system=no
18099 case "" in #(
18100 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
18101 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
18102 (*) boost_mt=; boost_rtopt=;;
18103 esac
18104 if test $enable_static_boost = yes; then
18105 boost_rtopt="s$boost_rtopt"
18106 fi
18107 # Find the proper debug variant depending on what we've been asked to find.
18108 case $boost_rtopt in #(
18109 (*d*) boost_rt_d=$boost_rtopt;; #(
18110 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
18111 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
18112 (*) boost_rt_d='-d';;
18113 esac
18114 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
18115 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
18116 $boost_guess_use_mt && boost_mt=-mt
18117 # Look for the abs path the static archive.
18118 # $libext is computed by Libtool but let's make sure it's non empty.
18119 test -z "$libext" &&
18120 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
18121 boost_save_ac_objext=$ac_objext
18122 # Generate the test file.
18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124 /* end confdefs.h. */
18125 #include <boost/system/error_code.hpp>
18126
18127 int
18128 main (void)
18129 {
18130 boost::system::error_code e; e.clear();
18131 ;
18132 return 0;
18133 }
18134 _ACEOF
18135 if ac_fn_cxx_try_compile "$LINENO"
18136 then :
18137 ac_objext=do_not_rm_me_plz
18138 else $as_nop
18139 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
18140 fi
18141 rm -f core conftest.err conftest.$ac_objext conftest.beam
18142 ac_objext=$boost_save_ac_objext
18143 boost_failed_libs=
18144 # Don't bother to ident the following nested for loops, only the 2
18145 # innermost ones matter.
18146 for boost_lib_ in system; do
18147 for boost_tag_ in -$boost_cv_lib_tag ''; do
18148 for boost_ver_ in -$boost_cv_lib_version ''; do
18149 for boost_mt_ in $boost_mt -mt ''; do
18150 for boost_rtopt_ in $boost_rtopt '' -d; do
18151 for boost_lib in \
18152 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
18153 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
18154 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
18155 boost_$boost_lib_$boost_tag_$boost_ver_
18156 do
18157 # Avoid testing twice the same lib
18158 case $boost_failed_libs in #(
18159 (*@$boost_lib@*) continue;;
18160 esac
18161 # If with_boost is empty, we'll search in /lib first, which is not quite
18162 # right so instead we'll try to a location based on where the headers are.
18163 boost_tmp_lib=$with_boost
18164 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
18165 for boost_ldpath in "$boost_tmp_lib/lib" '' \
18166 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
18167 "$with_boost" C:/Boost/lib /lib*
18168 do
18169 # Don't waste time with directories that don't exist.
18170 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
18171 continue
18172 fi
18173 boost_save_LDFLAGS=$LDFLAGS
18174 # Are we looking for a static library?
18175 case $boost_ldpath:$boost_rtopt_ in #(
18176 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
18177 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
18178 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
18179 (*) # No: use -lboost_foo to find the shared library.
18180 boost_cv_lib_system_LIBS="-l$boost_lib";;
18181 esac
18182 boost_save_LIBS=$LIBS
18183 LIBS="$boost_cv_lib_system_LIBS $LIBS"
18184 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
18185 rm -f conftest$ac_exeext
18186 boost_save_ac_ext=$ac_ext
18187 boost_use_source=:
18188 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
18189 # tries to link the existing object file instead of compiling from source.
18190 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18192 if { { ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18198 printf "%s\n" "$ac_try_echo"; } >&5
18199 (eval "$ac_link") 2>conftest.err
18200 ac_status=$?
18201 if test -s conftest.err; then
18202 grep -v '^ *+' conftest.err >conftest.er1
18203 cat conftest.er1 >&5
18204 mv -f conftest.er1 conftest.err
18205 fi
18206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207 test $ac_status = 0; } && {
18208 test -z "$ac_cxx_werror_flag" ||
18209 test ! -s conftest.err
18210 } && test -s conftest$ac_exeext && {
18211 test "$cross_compiling" = yes ||
18212 $as_executable_p conftest$ac_exeext
18213 }
18214 then :
18215 boost_cv_lib_system=yes
18216 else $as_nop
18217 if $boost_use_source; then
18218 printf "%s\n" "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 fi
18222 boost_cv_lib_system=no
18223 fi
18224 ac_objext=$boost_save_ac_objext
18225 ac_ext=$boost_save_ac_ext
18226 rm -f core conftest.err conftest_ipa8_conftest.oo \
18227 conftest$ac_exeext
18228 ac_objext=$boost_save_ac_objext
18229 LDFLAGS=$boost_save_LDFLAGS
18230 LIBS=$boost_save_LIBS
18231 if test x"$boost_cv_lib_system" = xyes; then
18232 # Check or used cached result of whether or not using -R or
18233 # -rpath makes sense. Some implementations of ld, such as for
18234 # Mac OSX, require -rpath but -R is the flag known to work on
18235 # other systems. https://github.com/tsuna/boost.m4/issues/19
18236 if test ${boost_cv_rpath_link_ldflag+y}
18237 then :
18238 printf %s "(cached) " >&6
18239 else $as_nop
18240 case $boost_ldpath in
18241 '') # Nothing to do.
18242 boost_cv_rpath_link_ldflag=
18243 boost_rpath_link_ldflag_found=yes;;
18244 *)
18245 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
18246 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18247 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
18248 rm -f conftest$ac_exeext
18249 boost_save_ac_ext=$ac_ext
18250 boost_use_source=:
18251 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
18252 # tries to link the existing object file instead of compiling from source.
18253 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18255 if { { ac_try="$ac_link"
18256 case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259 esac
18260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18261 printf "%s\n" "$ac_try_echo"; } >&5
18262 (eval "$ac_link") 2>conftest.err
18263 ac_status=$?
18264 if test -s conftest.err; then
18265 grep -v '^ *+' conftest.err >conftest.er1
18266 cat conftest.er1 >&5
18267 mv -f conftest.er1 conftest.err
18268 fi
18269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18270 test $ac_status = 0; } && {
18271 test -z "$ac_cxx_werror_flag" ||
18272 test ! -s conftest.err
18273 } && test -s conftest$ac_exeext && {
18274 test "$cross_compiling" = yes ||
18275 $as_executable_p conftest$ac_exeext
18276 }
18277 then :
18278 boost_rpath_link_ldflag_found=yes
18279 break
18280 else $as_nop
18281 if $boost_use_source; then
18282 printf "%s\n" "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18284
18285 fi
18286 boost_rpath_link_ldflag_found=no
18287 fi
18288 ac_objext=$boost_save_ac_objext
18289 ac_ext=$boost_save_ac_ext
18290 rm -f core conftest.err conftest_ipa8_conftest.oo \
18291 conftest$ac_exeext
18292 done
18293 ;;
18294 esac
18295 if test "x$boost_rpath_link_ldflag_found" != "xyes"
18296 then :
18297 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
18298 fi
18299 LDFLAGS=$boost_save_LDFLAGS
18300 LIBS=$boost_save_LIBS
18301
18302 fi
18303
18304 test x"$boost_ldpath" != x &&
18305 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18306 boost_cv_lib_system_LDPATH="$boost_ldpath"
18307 break 7
18308 else
18309 boost_failed_libs="$boost_failed_libs@$boost_lib@"
18310 fi
18311 done
18312 done
18313 done
18314 done
18315 done
18316 done
18317 done # boost_lib_
18318 rm -f conftest.$ac_objext
18319
18320 fi
18321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
18322 printf "%s\n" "$boost_cv_lib_system" >&6; }
18323 case $boost_cv_lib_system in #(
18324 (no) printf "%s\n" "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
18328 ;;
18329 esac
18330 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
18331 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
18332 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
18333 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
18334 CPPFLAGS=$boost_save_CPPFLAGS
18335 ac_ext=cpp
18336 ac_cpp='$CXXCPP $CPPFLAGS'
18337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18340 fi
18341
18342
18343
18344 fi # end of the Boost.System check.
18345 boost_filesystem_save_LIBS=$LIBS
18346 boost_filesystem_save_LDFLAGS=$LDFLAGS
18347 LIBS="$LIBS $BOOST_SYSTEM_LIBS"
18348 LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
18349 if test x"$boost_cv_inc_path" = xno; then
18350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost filesystem library" >&5
18351 printf "%s\n" "$as_me: Boost not available, not searching for the Boost filesystem library" >&6;}
18352 else
18353 ac_ext=cpp
18354 ac_cpp='$CXXCPP $CPPFLAGS'
18355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18358 if test x"$boost_cv_inc_path" = xno; then
18359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/filesystem/path.hpp" >&5
18360 printf "%s\n" "$as_me: Boost not available, not searching for boost/filesystem/path.hpp" >&6;}
18361 else
18362 ac_ext=cpp
18363 ac_cpp='$CXXCPP $CPPFLAGS'
18364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18367 boost_save_CPPFLAGS=$CPPFLAGS
18368 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18369 ac_fn_cxx_check_header_compile "$LINENO" "boost/filesystem/path.hpp" "ac_cv_header_boost_filesystem_path_hpp" "$ac_includes_default"
18370 if test "x$ac_cv_header_boost_filesystem_path_hpp" = xyes
18371 then :
18372
18373 printf "%s\n" "#define HAVE_BOOST_FILESYSTEM_PATH_HPP 1" >>confdefs.h
18374
18375 else $as_nop
18376 as_fn_error $? "cannot find boost/filesystem/path.hpp" "$LINENO" 5
18377 fi
18378
18379 CPPFLAGS=$boost_save_CPPFLAGS
18380 ac_ext=cpp
18381 ac_cpp='$CXXCPP $CPPFLAGS'
18382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18385 fi
18386
18387 boost_save_CPPFLAGS=$CPPFLAGS
18388 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost filesystem library" >&5
18390 printf %s "checking for the Boost filesystem library... " >&6; }
18391 if test ${boost_cv_lib_filesystem+y}
18392 then :
18393 printf %s "(cached) " >&6
18394 else $as_nop
18395 boost_cv_lib_filesystem=no
18396 case "" in #(
18397 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
18398 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
18399 (*) boost_mt=; boost_rtopt=;;
18400 esac
18401 if test $enable_static_boost = yes; then
18402 boost_rtopt="s$boost_rtopt"
18403 fi
18404 # Find the proper debug variant depending on what we've been asked to find.
18405 case $boost_rtopt in #(
18406 (*d*) boost_rt_d=$boost_rtopt;; #(
18407 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
18408 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
18409 (*) boost_rt_d='-d';;
18410 esac
18411 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
18412 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
18413 $boost_guess_use_mt && boost_mt=-mt
18414 # Look for the abs path the static archive.
18415 # $libext is computed by Libtool but let's make sure it's non empty.
18416 test -z "$libext" &&
18417 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
18418 boost_save_ac_objext=$ac_objext
18419 # Generate the test file.
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 #include <boost/filesystem/path.hpp>
18423
18424 int
18425 main (void)
18426 {
18427 boost::filesystem::path p;
18428 ;
18429 return 0;
18430 }
18431 _ACEOF
18432 if ac_fn_cxx_try_compile "$LINENO"
18433 then :
18434 ac_objext=do_not_rm_me_plz
18435 else $as_nop
18436 as_fn_error $? "cannot compile a test that uses Boost filesystem" "$LINENO" 5
18437 fi
18438 rm -f core conftest.err conftest.$ac_objext conftest.beam
18439 ac_objext=$boost_save_ac_objext
18440 boost_failed_libs=
18441 # Don't bother to ident the following nested for loops, only the 2
18442 # innermost ones matter.
18443 for boost_lib_ in filesystem; do
18444 for boost_tag_ in -$boost_cv_lib_tag ''; do
18445 for boost_ver_ in -$boost_cv_lib_version ''; do
18446 for boost_mt_ in $boost_mt -mt ''; do
18447 for boost_rtopt_ in $boost_rtopt '' -d; do
18448 for boost_lib in \
18449 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
18450 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
18451 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
18452 boost_$boost_lib_$boost_tag_$boost_ver_
18453 do
18454 # Avoid testing twice the same lib
18455 case $boost_failed_libs in #(
18456 (*@$boost_lib@*) continue;;
18457 esac
18458 # If with_boost is empty, we'll search in /lib first, which is not quite
18459 # right so instead we'll try to a location based on where the headers are.
18460 boost_tmp_lib=$with_boost
18461 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
18462 for boost_ldpath in "$boost_tmp_lib/lib" '' \
18463 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
18464 "$with_boost" C:/Boost/lib /lib*
18465 do
18466 # Don't waste time with directories that don't exist.
18467 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
18468 continue
18469 fi
18470 boost_save_LDFLAGS=$LDFLAGS
18471 # Are we looking for a static library?
18472 case $boost_ldpath:$boost_rtopt_ in #(
18473 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
18474 boost_cv_lib_filesystem_LIBS="$boost_ldpath/lib$boost_lib.$libext"
18475 test -e "$boost_cv_lib_filesystem_LIBS" || continue;; #(
18476 (*) # No: use -lboost_foo to find the shared library.
18477 boost_cv_lib_filesystem_LIBS="-l$boost_lib";;
18478 esac
18479 boost_save_LIBS=$LIBS
18480 LIBS="$boost_cv_lib_filesystem_LIBS $LIBS"
18481 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
18482 rm -f conftest$ac_exeext
18483 boost_save_ac_ext=$ac_ext
18484 boost_use_source=:
18485 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
18486 # tries to link the existing object file instead of compiling from source.
18487 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18489 if { { ac_try="$ac_link"
18490 case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18493 esac
18494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18495 printf "%s\n" "$ac_try_echo"; } >&5
18496 (eval "$ac_link") 2>conftest.err
18497 ac_status=$?
18498 if test -s conftest.err; then
18499 grep -v '^ *+' conftest.err >conftest.er1
18500 cat conftest.er1 >&5
18501 mv -f conftest.er1 conftest.err
18502 fi
18503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18504 test $ac_status = 0; } && {
18505 test -z "$ac_cxx_werror_flag" ||
18506 test ! -s conftest.err
18507 } && test -s conftest$ac_exeext && {
18508 test "$cross_compiling" = yes ||
18509 $as_executable_p conftest$ac_exeext
18510 }
18511 then :
18512 boost_cv_lib_filesystem=yes
18513 else $as_nop
18514 if $boost_use_source; then
18515 printf "%s\n" "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 fi
18519 boost_cv_lib_filesystem=no
18520 fi
18521 ac_objext=$boost_save_ac_objext
18522 ac_ext=$boost_save_ac_ext
18523 rm -f core conftest.err conftest_ipa8_conftest.oo \
18524 conftest$ac_exeext
18525 ac_objext=$boost_save_ac_objext
18526 LDFLAGS=$boost_save_LDFLAGS
18527 LIBS=$boost_save_LIBS
18528 if test x"$boost_cv_lib_filesystem" = xyes; then
18529 # Check or used cached result of whether or not using -R or
18530 # -rpath makes sense. Some implementations of ld, such as for
18531 # Mac OSX, require -rpath but -R is the flag known to work on
18532 # other systems. https://github.com/tsuna/boost.m4/issues/19
18533 if test ${boost_cv_rpath_link_ldflag+y}
18534 then :
18535 printf %s "(cached) " >&6
18536 else $as_nop
18537 case $boost_ldpath in
18538 '') # Nothing to do.
18539 boost_cv_rpath_link_ldflag=
18540 boost_rpath_link_ldflag_found=yes;;
18541 *)
18542 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
18543 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18544 LIBS="$boost_save_LIBS $boost_cv_lib_filesystem_LIBS"
18545 rm -f conftest$ac_exeext
18546 boost_save_ac_ext=$ac_ext
18547 boost_use_source=:
18548 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
18549 # tries to link the existing object file instead of compiling from source.
18550 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18552 if { { ac_try="$ac_link"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556 esac
18557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18558 printf "%s\n" "$ac_try_echo"; } >&5
18559 (eval "$ac_link") 2>conftest.err
18560 ac_status=$?
18561 if test -s conftest.err; then
18562 grep -v '^ *+' conftest.err >conftest.er1
18563 cat conftest.er1 >&5
18564 mv -f conftest.er1 conftest.err
18565 fi
18566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18567 test $ac_status = 0; } && {
18568 test -z "$ac_cxx_werror_flag" ||
18569 test ! -s conftest.err
18570 } && test -s conftest$ac_exeext && {
18571 test "$cross_compiling" = yes ||
18572 $as_executable_p conftest$ac_exeext
18573 }
18574 then :
18575 boost_rpath_link_ldflag_found=yes
18576 break
18577 else $as_nop
18578 if $boost_use_source; then
18579 printf "%s\n" "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 fi
18583 boost_rpath_link_ldflag_found=no
18584 fi
18585 ac_objext=$boost_save_ac_objext
18586 ac_ext=$boost_save_ac_ext
18587 rm -f core conftest.err conftest_ipa8_conftest.oo \
18588 conftest$ac_exeext
18589 done
18590 ;;
18591 esac
18592 if test "x$boost_rpath_link_ldflag_found" != "xyes"
18593 then :
18594 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
18595 fi
18596 LDFLAGS=$boost_save_LDFLAGS
18597 LIBS=$boost_save_LIBS
18598
18599 fi
18600
18601 test x"$boost_ldpath" != x &&
18602 boost_cv_lib_filesystem_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18603 boost_cv_lib_filesystem_LDPATH="$boost_ldpath"
18604 break 7
18605 else
18606 boost_failed_libs="$boost_failed_libs@$boost_lib@"
18607 fi
18608 done
18609 done
18610 done
18611 done
18612 done
18613 done
18614 done # boost_lib_
18615 rm -f conftest.$ac_objext
18616
18617 fi
18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_filesystem" >&5
18619 printf "%s\n" "$boost_cv_lib_filesystem" >&6; }
18620 case $boost_cv_lib_filesystem in #(
18621 (no) printf "%s\n" "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 as_fn_error $? "cannot find the flags to link with Boost filesystem" "$LINENO" 5
18625 ;;
18626 esac
18627 BOOST_FILESYSTEM_LDFLAGS=$boost_cv_lib_filesystem_LDFLAGS
18628 BOOST_FILESYSTEM_LDPATH=$boost_cv_lib_filesystem_LDPATH
18629 BOOST_LDPATH=$boost_cv_lib_filesystem_LDPATH
18630 BOOST_FILESYSTEM_LIBS=$boost_cv_lib_filesystem_LIBS
18631 CPPFLAGS=$boost_save_CPPFLAGS
18632 ac_ext=cpp
18633 ac_cpp='$CXXCPP $CPPFLAGS'
18634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18637 fi
18638
18639 if test $enable_static_boost = yes && test $boost_major_version -ge 135; then
18640 BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"
18641 fi
18642 LIBS=$boost_filesystem_save_LIBS
18643 LDFLAGS=$boost_filesystem_save_LDFLAGS
18644
18645
18646
18647
18648 LDFLAGS="$LDFLAGS $BOOST_FILESYSTEM_LDFLAGS"
18649 LIBS="$LIBS $BOOST_FILESYSTEM_LIBS"
18650
18651
18652 boost_locale_save_LIBS=$LIBS
18653 boost_locale_save_LDFLAGS=$LDFLAGS
18654 # require SYSTEM for boost-1.50.0 and up
18655 if test $boost_major_version -ge 150; then
18656 if test x"$boost_cv_inc_path" = xno; then
18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
18658 printf "%s\n" "$as_me: Boost not available, not searching for the Boost system library" >&6;}
18659 else
18660 ac_ext=cpp
18661 ac_cpp='$CXXCPP $CPPFLAGS'
18662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18665 if test x"$boost_cv_inc_path" = xno; then
18666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
18667 printf "%s\n" "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
18668 else
18669 ac_ext=cpp
18670 ac_cpp='$CXXCPP $CPPFLAGS'
18671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18674 boost_save_CPPFLAGS=$CPPFLAGS
18675 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18676 ac_fn_cxx_check_header_compile "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
18677 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes
18678 then :
18679
18680 printf "%s\n" "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
18681
18682 else $as_nop
18683 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
18684 fi
18685
18686 CPPFLAGS=$boost_save_CPPFLAGS
18687 ac_ext=cpp
18688 ac_cpp='$CXXCPP $CPPFLAGS'
18689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18692 fi
18693
18694 boost_save_CPPFLAGS=$CPPFLAGS
18695 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
18697 printf %s "checking for the Boost system library... " >&6; }
18698 if test ${boost_cv_lib_system+y}
18699 then :
18700 printf %s "(cached) " >&6
18701 else $as_nop
18702 boost_cv_lib_system=no
18703 case "" in #(
18704 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
18705 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
18706 (*) boost_mt=; boost_rtopt=;;
18707 esac
18708 if test $enable_static_boost = yes; then
18709 boost_rtopt="s$boost_rtopt"
18710 fi
18711 # Find the proper debug variant depending on what we've been asked to find.
18712 case $boost_rtopt in #(
18713 (*d*) boost_rt_d=$boost_rtopt;; #(
18714 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
18715 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
18716 (*) boost_rt_d='-d';;
18717 esac
18718 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
18719 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
18720 $boost_guess_use_mt && boost_mt=-mt
18721 # Look for the abs path the static archive.
18722 # $libext is computed by Libtool but let's make sure it's non empty.
18723 test -z "$libext" &&
18724 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
18725 boost_save_ac_objext=$ac_objext
18726 # Generate the test file.
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18729 #include <boost/system/error_code.hpp>
18730
18731 int
18732 main (void)
18733 {
18734 boost::system::error_code e; e.clear();
18735 ;
18736 return 0;
18737 }
18738 _ACEOF
18739 if ac_fn_cxx_try_compile "$LINENO"
18740 then :
18741 ac_objext=do_not_rm_me_plz
18742 else $as_nop
18743 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
18744 fi
18745 rm -f core conftest.err conftest.$ac_objext conftest.beam
18746 ac_objext=$boost_save_ac_objext
18747 boost_failed_libs=
18748 # Don't bother to ident the following nested for loops, only the 2
18749 # innermost ones matter.
18750 for boost_lib_ in system; do
18751 for boost_tag_ in -$boost_cv_lib_tag ''; do
18752 for boost_ver_ in -$boost_cv_lib_version ''; do
18753 for boost_mt_ in $boost_mt -mt ''; do
18754 for boost_rtopt_ in $boost_rtopt '' -d; do
18755 for boost_lib in \
18756 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
18757 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
18758 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
18759 boost_$boost_lib_$boost_tag_$boost_ver_
18760 do
18761 # Avoid testing twice the same lib
18762 case $boost_failed_libs in #(
18763 (*@$boost_lib@*) continue;;
18764 esac
18765 # If with_boost is empty, we'll search in /lib first, which is not quite
18766 # right so instead we'll try to a location based on where the headers are.
18767 boost_tmp_lib=$with_boost
18768 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
18769 for boost_ldpath in "$boost_tmp_lib/lib" '' \
18770 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
18771 "$with_boost" C:/Boost/lib /lib*
18772 do
18773 # Don't waste time with directories that don't exist.
18774 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
18775 continue
18776 fi
18777 boost_save_LDFLAGS=$LDFLAGS
18778 # Are we looking for a static library?
18779 case $boost_ldpath:$boost_rtopt_ in #(
18780 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
18781 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
18782 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
18783 (*) # No: use -lboost_foo to find the shared library.
18784 boost_cv_lib_system_LIBS="-l$boost_lib";;
18785 esac
18786 boost_save_LIBS=$LIBS
18787 LIBS="$boost_cv_lib_system_LIBS $LIBS"
18788 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
18789 rm -f conftest$ac_exeext
18790 boost_save_ac_ext=$ac_ext
18791 boost_use_source=:
18792 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
18793 # tries to link the existing object file instead of compiling from source.
18794 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18796 if { { ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800 esac
18801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18802 printf "%s\n" "$ac_try_echo"; } >&5
18803 (eval "$ac_link") 2>conftest.err
18804 ac_status=$?
18805 if test -s conftest.err; then
18806 grep -v '^ *+' conftest.err >conftest.er1
18807 cat conftest.er1 >&5
18808 mv -f conftest.er1 conftest.err
18809 fi
18810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18811 test $ac_status = 0; } && {
18812 test -z "$ac_cxx_werror_flag" ||
18813 test ! -s conftest.err
18814 } && test -s conftest$ac_exeext && {
18815 test "$cross_compiling" = yes ||
18816 $as_executable_p conftest$ac_exeext
18817 }
18818 then :
18819 boost_cv_lib_system=yes
18820 else $as_nop
18821 if $boost_use_source; then
18822 printf "%s\n" "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825 fi
18826 boost_cv_lib_system=no
18827 fi
18828 ac_objext=$boost_save_ac_objext
18829 ac_ext=$boost_save_ac_ext
18830 rm -f core conftest.err conftest_ipa8_conftest.oo \
18831 conftest$ac_exeext
18832 ac_objext=$boost_save_ac_objext
18833 LDFLAGS=$boost_save_LDFLAGS
18834 LIBS=$boost_save_LIBS
18835 if test x"$boost_cv_lib_system" = xyes; then
18836 # Check or used cached result of whether or not using -R or
18837 # -rpath makes sense. Some implementations of ld, such as for
18838 # Mac OSX, require -rpath but -R is the flag known to work on
18839 # other systems. https://github.com/tsuna/boost.m4/issues/19
18840 if test ${boost_cv_rpath_link_ldflag+y}
18841 then :
18842 printf %s "(cached) " >&6
18843 else $as_nop
18844 case $boost_ldpath in
18845 '') # Nothing to do.
18846 boost_cv_rpath_link_ldflag=
18847 boost_rpath_link_ldflag_found=yes;;
18848 *)
18849 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
18850 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18851 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
18852 rm -f conftest$ac_exeext
18853 boost_save_ac_ext=$ac_ext
18854 boost_use_source=:
18855 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
18856 # tries to link the existing object file instead of compiling from source.
18857 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
18858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
18859 if { { ac_try="$ac_link"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863 esac
18864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18865 printf "%s\n" "$ac_try_echo"; } >&5
18866 (eval "$ac_link") 2>conftest.err
18867 ac_status=$?
18868 if test -s conftest.err; then
18869 grep -v '^ *+' conftest.err >conftest.er1
18870 cat conftest.er1 >&5
18871 mv -f conftest.er1 conftest.err
18872 fi
18873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18874 test $ac_status = 0; } && {
18875 test -z "$ac_cxx_werror_flag" ||
18876 test ! -s conftest.err
18877 } && test -s conftest$ac_exeext && {
18878 test "$cross_compiling" = yes ||
18879 $as_executable_p conftest$ac_exeext
18880 }
18881 then :
18882 boost_rpath_link_ldflag_found=yes
18883 break
18884 else $as_nop
18885 if $boost_use_source; then
18886 printf "%s\n" "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18888
18889 fi
18890 boost_rpath_link_ldflag_found=no
18891 fi
18892 ac_objext=$boost_save_ac_objext
18893 ac_ext=$boost_save_ac_ext
18894 rm -f core conftest.err conftest_ipa8_conftest.oo \
18895 conftest$ac_exeext
18896 done
18897 ;;
18898 esac
18899 if test "x$boost_rpath_link_ldflag_found" != "xyes"
18900 then :
18901 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
18902 fi
18903 LDFLAGS=$boost_save_LDFLAGS
18904 LIBS=$boost_save_LIBS
18905
18906 fi
18907
18908 test x"$boost_ldpath" != x &&
18909 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
18910 boost_cv_lib_system_LDPATH="$boost_ldpath"
18911 break 7
18912 else
18913 boost_failed_libs="$boost_failed_libs@$boost_lib@"
18914 fi
18915 done
18916 done
18917 done
18918 done
18919 done
18920 done
18921 done # boost_lib_
18922 rm -f conftest.$ac_objext
18923
18924 fi
18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
18926 printf "%s\n" "$boost_cv_lib_system" >&6; }
18927 case $boost_cv_lib_system in #(
18928 (no) printf "%s\n" "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
18932 ;;
18933 esac
18934 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
18935 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
18936 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
18937 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
18938 CPPFLAGS=$boost_save_CPPFLAGS
18939 ac_ext=cpp
18940 ac_cpp='$CXXCPP $CPPFLAGS'
18941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18944 fi
18945
18946
18947
18948 LIBS="$LIBS $BOOST_SYSTEM_LIBS"
18949 LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
18950 fi # end of the Boost.System check.
18951 if test x"$boost_cv_inc_path" = xno; then
18952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost locale library" >&5
18953 printf "%s\n" "$as_me: Boost not available, not searching for the Boost locale library" >&6;}
18954 else
18955 ac_ext=cpp
18956 ac_cpp='$CXXCPP $CPPFLAGS'
18957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18960 if test x"$boost_cv_inc_path" = xno; then
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/locale.hpp" >&5
18962 printf "%s\n" "$as_me: Boost not available, not searching for boost/locale.hpp" >&6;}
18963 else
18964 ac_ext=cpp
18965 ac_cpp='$CXXCPP $CPPFLAGS'
18966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18969 boost_save_CPPFLAGS=$CPPFLAGS
18970 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18971 ac_fn_cxx_check_header_compile "$LINENO" "boost/locale.hpp" "ac_cv_header_boost_locale_hpp" "$ac_includes_default"
18972 if test "x$ac_cv_header_boost_locale_hpp" = xyes
18973 then :
18974
18975 printf "%s\n" "#define HAVE_BOOST_LOCALE_HPP 1" >>confdefs.h
18976
18977 else $as_nop
18978 as_fn_error $? "cannot find boost/locale.hpp" "$LINENO" 5
18979 fi
18980
18981 CPPFLAGS=$boost_save_CPPFLAGS
18982 ac_ext=cpp
18983 ac_cpp='$CXXCPP $CPPFLAGS'
18984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18987 fi
18988
18989 boost_save_CPPFLAGS=$CPPFLAGS
18990 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost locale library" >&5
18992 printf %s "checking for the Boost locale library... " >&6; }
18993 if test ${boost_cv_lib_locale+y}
18994 then :
18995 printf %s "(cached) " >&6
18996 else $as_nop
18997 boost_cv_lib_locale=no
18998 case "" in #(
18999 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
19000 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
19001 (*) boost_mt=; boost_rtopt=;;
19002 esac
19003 if test $enable_static_boost = yes; then
19004 boost_rtopt="s$boost_rtopt"
19005 fi
19006 # Find the proper debug variant depending on what we've been asked to find.
19007 case $boost_rtopt in #(
19008 (*d*) boost_rt_d=$boost_rtopt;; #(
19009 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
19010 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
19011 (*) boost_rt_d='-d';;
19012 esac
19013 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
19014 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
19015 $boost_guess_use_mt && boost_mt=-mt
19016 # Look for the abs path the static archive.
19017 # $libext is computed by Libtool but let's make sure it's non empty.
19018 test -z "$libext" &&
19019 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
19020 boost_save_ac_objext=$ac_objext
19021 # Generate the test file.
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19024 #include <boost/locale.hpp>
19025
19026 int
19027 main (void)
19028 {
19029 boost::locale::generator gen; std::locale::global(gen(""));
19030 ;
19031 return 0;
19032 }
19033 _ACEOF
19034 if ac_fn_cxx_try_compile "$LINENO"
19035 then :
19036 ac_objext=do_not_rm_me_plz
19037 else $as_nop
19038 as_fn_error $? "cannot compile a test that uses Boost locale" "$LINENO" 5
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext conftest.beam
19041 ac_objext=$boost_save_ac_objext
19042 boost_failed_libs=
19043 # Don't bother to ident the following nested for loops, only the 2
19044 # innermost ones matter.
19045 for boost_lib_ in locale; do
19046 for boost_tag_ in -$boost_cv_lib_tag ''; do
19047 for boost_ver_ in -$boost_cv_lib_version ''; do
19048 for boost_mt_ in $boost_mt -mt ''; do
19049 for boost_rtopt_ in $boost_rtopt '' -d; do
19050 for boost_lib in \
19051 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
19052 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
19053 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
19054 boost_$boost_lib_$boost_tag_$boost_ver_
19055 do
19056 # Avoid testing twice the same lib
19057 case $boost_failed_libs in #(
19058 (*@$boost_lib@*) continue;;
19059 esac
19060 # If with_boost is empty, we'll search in /lib first, which is not quite
19061 # right so instead we'll try to a location based on where the headers are.
19062 boost_tmp_lib=$with_boost
19063 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
19064 for boost_ldpath in "$boost_tmp_lib/lib" '' \
19065 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
19066 "$with_boost" C:/Boost/lib /lib*
19067 do
19068 # Don't waste time with directories that don't exist.
19069 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
19070 continue
19071 fi
19072 boost_save_LDFLAGS=$LDFLAGS
19073 # Are we looking for a static library?
19074 case $boost_ldpath:$boost_rtopt_ in #(
19075 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
19076 boost_cv_lib_locale_LIBS="$boost_ldpath/lib$boost_lib.$libext"
19077 test -e "$boost_cv_lib_locale_LIBS" || continue;; #(
19078 (*) # No: use -lboost_foo to find the shared library.
19079 boost_cv_lib_locale_LIBS="-l$boost_lib";;
19080 esac
19081 boost_save_LIBS=$LIBS
19082 LIBS="$boost_cv_lib_locale_LIBS $LIBS"
19083 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
19084 rm -f conftest$ac_exeext
19085 boost_save_ac_ext=$ac_ext
19086 boost_use_source=:
19087 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
19088 # tries to link the existing object file instead of compiling from source.
19089 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19091 if { { ac_try="$ac_link"
19092 case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19095 esac
19096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19097 printf "%s\n" "$ac_try_echo"; } >&5
19098 (eval "$ac_link") 2>conftest.err
19099 ac_status=$?
19100 if test -s conftest.err; then
19101 grep -v '^ *+' conftest.err >conftest.er1
19102 cat conftest.er1 >&5
19103 mv -f conftest.er1 conftest.err
19104 fi
19105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106 test $ac_status = 0; } && {
19107 test -z "$ac_cxx_werror_flag" ||
19108 test ! -s conftest.err
19109 } && test -s conftest$ac_exeext && {
19110 test "$cross_compiling" = yes ||
19111 $as_executable_p conftest$ac_exeext
19112 }
19113 then :
19114 boost_cv_lib_locale=yes
19115 else $as_nop
19116 if $boost_use_source; then
19117 printf "%s\n" "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120 fi
19121 boost_cv_lib_locale=no
19122 fi
19123 ac_objext=$boost_save_ac_objext
19124 ac_ext=$boost_save_ac_ext
19125 rm -f core conftest.err conftest_ipa8_conftest.oo \
19126 conftest$ac_exeext
19127 ac_objext=$boost_save_ac_objext
19128 LDFLAGS=$boost_save_LDFLAGS
19129 LIBS=$boost_save_LIBS
19130 if test x"$boost_cv_lib_locale" = xyes; then
19131 # Check or used cached result of whether or not using -R or
19132 # -rpath makes sense. Some implementations of ld, such as for
19133 # Mac OSX, require -rpath but -R is the flag known to work on
19134 # other systems. https://github.com/tsuna/boost.m4/issues/19
19135 if test ${boost_cv_rpath_link_ldflag+y}
19136 then :
19137 printf %s "(cached) " >&6
19138 else $as_nop
19139 case $boost_ldpath in
19140 '') # Nothing to do.
19141 boost_cv_rpath_link_ldflag=
19142 boost_rpath_link_ldflag_found=yes;;
19143 *)
19144 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
19145 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19146 LIBS="$boost_save_LIBS $boost_cv_lib_locale_LIBS"
19147 rm -f conftest$ac_exeext
19148 boost_save_ac_ext=$ac_ext
19149 boost_use_source=:
19150 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
19151 # tries to link the existing object file instead of compiling from source.
19152 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19154 if { { ac_try="$ac_link"
19155 case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19158 esac
19159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19160 printf "%s\n" "$ac_try_echo"; } >&5
19161 (eval "$ac_link") 2>conftest.err
19162 ac_status=$?
19163 if test -s conftest.err; then
19164 grep -v '^ *+' conftest.err >conftest.er1
19165 cat conftest.er1 >&5
19166 mv -f conftest.er1 conftest.err
19167 fi
19168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19169 test $ac_status = 0; } && {
19170 test -z "$ac_cxx_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest$ac_exeext && {
19173 test "$cross_compiling" = yes ||
19174 $as_executable_p conftest$ac_exeext
19175 }
19176 then :
19177 boost_rpath_link_ldflag_found=yes
19178 break
19179 else $as_nop
19180 if $boost_use_source; then
19181 printf "%s\n" "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184 fi
19185 boost_rpath_link_ldflag_found=no
19186 fi
19187 ac_objext=$boost_save_ac_objext
19188 ac_ext=$boost_save_ac_ext
19189 rm -f core conftest.err conftest_ipa8_conftest.oo \
19190 conftest$ac_exeext
19191 done
19192 ;;
19193 esac
19194 if test "x$boost_rpath_link_ldflag_found" != "xyes"
19195 then :
19196 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
19197 fi
19198 LDFLAGS=$boost_save_LDFLAGS
19199 LIBS=$boost_save_LIBS
19200
19201 fi
19202
19203 test x"$boost_ldpath" != x &&
19204 boost_cv_lib_locale_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19205 boost_cv_lib_locale_LDPATH="$boost_ldpath"
19206 break 7
19207 else
19208 boost_failed_libs="$boost_failed_libs@$boost_lib@"
19209 fi
19210 done
19211 done
19212 done
19213 done
19214 done
19215 done
19216 done # boost_lib_
19217 rm -f conftest.$ac_objext
19218
19219 fi
19220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_locale" >&5
19221 printf "%s\n" "$boost_cv_lib_locale" >&6; }
19222 case $boost_cv_lib_locale in #(
19223 (no) printf "%s\n" "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 as_fn_error $? "cannot find the flags to link with Boost locale" "$LINENO" 5
19227 ;;
19228 esac
19229 BOOST_LOCALE_LDFLAGS=$boost_cv_lib_locale_LDFLAGS
19230 BOOST_LOCALE_LDPATH=$boost_cv_lib_locale_LDPATH
19231 BOOST_LDPATH=$boost_cv_lib_locale_LDPATH
19232 BOOST_LOCALE_LIBS=$boost_cv_lib_locale_LIBS
19233 CPPFLAGS=$boost_save_CPPFLAGS
19234 ac_ext=cpp
19235 ac_cpp='$CXXCPP $CPPFLAGS'
19236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19239 fi
19240
19241 LIBS=$boost_locale_save_LIBS
19242 LDFLAGS=$boost_locale_save_LDFLAGS
19243
19244
19245
19246
19247 LDFLAGS="$LDFLAGS $BOOST_LOCALE_LDFLAGS"
19248 LIBS="$LIBS $BOOST_LOCALE_LIBS"
19249
19250 if test x"$boost_cv_inc_path" = xno; then
19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost program_options library" >&5
19252 printf "%s\n" "$as_me: Boost not available, not searching for the Boost program_options library" >&6;}
19253 else
19254 ac_ext=cpp
19255 ac_cpp='$CXXCPP $CPPFLAGS'
19256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19259 if test x"$boost_cv_inc_path" = xno; then
19260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/program_options.hpp" >&5
19261 printf "%s\n" "$as_me: Boost not available, not searching for boost/program_options.hpp" >&6;}
19262 else
19263 ac_ext=cpp
19264 ac_cpp='$CXXCPP $CPPFLAGS'
19265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19268 boost_save_CPPFLAGS=$CPPFLAGS
19269 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19270 ac_fn_cxx_check_header_compile "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default"
19271 if test "x$ac_cv_header_boost_program_options_hpp" = xyes
19272 then :
19273
19274 printf "%s\n" "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h
19275
19276 else $as_nop
19277 as_fn_error $? "cannot find boost/program_options.hpp" "$LINENO" 5
19278 fi
19279
19280 CPPFLAGS=$boost_save_CPPFLAGS
19281 ac_ext=cpp
19282 ac_cpp='$CXXCPP $CPPFLAGS'
19283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19286 fi
19287
19288 boost_save_CPPFLAGS=$CPPFLAGS
19289 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5
19291 printf %s "checking for the Boost program_options library... " >&6; }
19292 if test ${boost_cv_lib_program_options+y}
19293 then :
19294 printf %s "(cached) " >&6
19295 else $as_nop
19296 boost_cv_lib_program_options=no
19297 case "" in #(
19298 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
19299 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
19300 (*) boost_mt=; boost_rtopt=;;
19301 esac
19302 if test $enable_static_boost = yes; then
19303 boost_rtopt="s$boost_rtopt"
19304 fi
19305 # Find the proper debug variant depending on what we've been asked to find.
19306 case $boost_rtopt in #(
19307 (*d*) boost_rt_d=$boost_rtopt;; #(
19308 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
19309 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
19310 (*) boost_rt_d='-d';;
19311 esac
19312 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
19313 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
19314 $boost_guess_use_mt && boost_mt=-mt
19315 # Look for the abs path the static archive.
19316 # $libext is computed by Libtool but let's make sure it's non empty.
19317 test -z "$libext" &&
19318 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
19319 boost_save_ac_objext=$ac_objext
19320 # Generate the test file.
19321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h. */
19323 #include <boost/program_options.hpp>
19324
19325 int
19326 main (void)
19327 {
19328 boost::program_options::options_description d("test");
19329 ;
19330 return 0;
19331 }
19332 _ACEOF
19333 if ac_fn_cxx_try_compile "$LINENO"
19334 then :
19335 ac_objext=do_not_rm_me_plz
19336 else $as_nop
19337 as_fn_error $? "cannot compile a test that uses Boost program_options" "$LINENO" 5
19338 fi
19339 rm -f core conftest.err conftest.$ac_objext conftest.beam
19340 ac_objext=$boost_save_ac_objext
19341 boost_failed_libs=
19342 # Don't bother to ident the following nested for loops, only the 2
19343 # innermost ones matter.
19344 for boost_lib_ in program_options; do
19345 for boost_tag_ in -$boost_cv_lib_tag ''; do
19346 for boost_ver_ in -$boost_cv_lib_version ''; do
19347 for boost_mt_ in $boost_mt -mt ''; do
19348 for boost_rtopt_ in $boost_rtopt '' -d; do
19349 for boost_lib in \
19350 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
19351 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
19352 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
19353 boost_$boost_lib_$boost_tag_$boost_ver_
19354 do
19355 # Avoid testing twice the same lib
19356 case $boost_failed_libs in #(
19357 (*@$boost_lib@*) continue;;
19358 esac
19359 # If with_boost is empty, we'll search in /lib first, which is not quite
19360 # right so instead we'll try to a location based on where the headers are.
19361 boost_tmp_lib=$with_boost
19362 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
19363 for boost_ldpath in "$boost_tmp_lib/lib" '' \
19364 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
19365 "$with_boost" C:/Boost/lib /lib*
19366 do
19367 # Don't waste time with directories that don't exist.
19368 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
19369 continue
19370 fi
19371 boost_save_LDFLAGS=$LDFLAGS
19372 # Are we looking for a static library?
19373 case $boost_ldpath:$boost_rtopt_ in #(
19374 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
19375 boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext"
19376 test -e "$boost_cv_lib_program_options_LIBS" || continue;; #(
19377 (*) # No: use -lboost_foo to find the shared library.
19378 boost_cv_lib_program_options_LIBS="-l$boost_lib";;
19379 esac
19380 boost_save_LIBS=$LIBS
19381 LIBS="$boost_cv_lib_program_options_LIBS $LIBS"
19382 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
19383 rm -f conftest$ac_exeext
19384 boost_save_ac_ext=$ac_ext
19385 boost_use_source=:
19386 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
19387 # tries to link the existing object file instead of compiling from source.
19388 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19390 if { { ac_try="$ac_link"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394 esac
19395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19396 printf "%s\n" "$ac_try_echo"; } >&5
19397 (eval "$ac_link") 2>conftest.err
19398 ac_status=$?
19399 if test -s conftest.err; then
19400 grep -v '^ *+' conftest.err >conftest.er1
19401 cat conftest.er1 >&5
19402 mv -f conftest.er1 conftest.err
19403 fi
19404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19405 test $ac_status = 0; } && {
19406 test -z "$ac_cxx_werror_flag" ||
19407 test ! -s conftest.err
19408 } && test -s conftest$ac_exeext && {
19409 test "$cross_compiling" = yes ||
19410 $as_executable_p conftest$ac_exeext
19411 }
19412 then :
19413 boost_cv_lib_program_options=yes
19414 else $as_nop
19415 if $boost_use_source; then
19416 printf "%s\n" "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19418
19419 fi
19420 boost_cv_lib_program_options=no
19421 fi
19422 ac_objext=$boost_save_ac_objext
19423 ac_ext=$boost_save_ac_ext
19424 rm -f core conftest.err conftest_ipa8_conftest.oo \
19425 conftest$ac_exeext
19426 ac_objext=$boost_save_ac_objext
19427 LDFLAGS=$boost_save_LDFLAGS
19428 LIBS=$boost_save_LIBS
19429 if test x"$boost_cv_lib_program_options" = xyes; then
19430 # Check or used cached result of whether or not using -R or
19431 # -rpath makes sense. Some implementations of ld, such as for
19432 # Mac OSX, require -rpath but -R is the flag known to work on
19433 # other systems. https://github.com/tsuna/boost.m4/issues/19
19434 if test ${boost_cv_rpath_link_ldflag+y}
19435 then :
19436 printf %s "(cached) " >&6
19437 else $as_nop
19438 case $boost_ldpath in
19439 '') # Nothing to do.
19440 boost_cv_rpath_link_ldflag=
19441 boost_rpath_link_ldflag_found=yes;;
19442 *)
19443 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
19444 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19445 LIBS="$boost_save_LIBS $boost_cv_lib_program_options_LIBS"
19446 rm -f conftest$ac_exeext
19447 boost_save_ac_ext=$ac_ext
19448 boost_use_source=:
19449 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
19450 # tries to link the existing object file instead of compiling from source.
19451 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19453 if { { ac_try="$ac_link"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457 esac
19458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19459 printf "%s\n" "$ac_try_echo"; } >&5
19460 (eval "$ac_link") 2>conftest.err
19461 ac_status=$?
19462 if test -s conftest.err; then
19463 grep -v '^ *+' conftest.err >conftest.er1
19464 cat conftest.er1 >&5
19465 mv -f conftest.er1 conftest.err
19466 fi
19467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19468 test $ac_status = 0; } && {
19469 test -z "$ac_cxx_werror_flag" ||
19470 test ! -s conftest.err
19471 } && test -s conftest$ac_exeext && {
19472 test "$cross_compiling" = yes ||
19473 $as_executable_p conftest$ac_exeext
19474 }
19475 then :
19476 boost_rpath_link_ldflag_found=yes
19477 break
19478 else $as_nop
19479 if $boost_use_source; then
19480 printf "%s\n" "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 fi
19484 boost_rpath_link_ldflag_found=no
19485 fi
19486 ac_objext=$boost_save_ac_objext
19487 ac_ext=$boost_save_ac_ext
19488 rm -f core conftest.err conftest_ipa8_conftest.oo \
19489 conftest$ac_exeext
19490 done
19491 ;;
19492 esac
19493 if test "x$boost_rpath_link_ldflag_found" != "xyes"
19494 then :
19495 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
19496 fi
19497 LDFLAGS=$boost_save_LDFLAGS
19498 LIBS=$boost_save_LIBS
19499
19500 fi
19501
19502 test x"$boost_ldpath" != x &&
19503 boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19504 boost_cv_lib_program_options_LDPATH="$boost_ldpath"
19505 break 7
19506 else
19507 boost_failed_libs="$boost_failed_libs@$boost_lib@"
19508 fi
19509 done
19510 done
19511 done
19512 done
19513 done
19514 done
19515 done # boost_lib_
19516 rm -f conftest.$ac_objext
19517
19518 fi
19519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5
19520 printf "%s\n" "$boost_cv_lib_program_options" >&6; }
19521 case $boost_cv_lib_program_options in #(
19522 (no) printf "%s\n" "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19524
19525 as_fn_error $? "cannot find the flags to link with Boost program_options" "$LINENO" 5
19526 ;;
19527 esac
19528 BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS
19529 BOOST_PROGRAM_OPTIONS_LDPATH=$boost_cv_lib_program_options_LDPATH
19530 BOOST_LDPATH=$boost_cv_lib_program_options_LDPATH
19531 BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS
19532 CPPFLAGS=$boost_save_CPPFLAGS
19533 ac_ext=cpp
19534 ac_cpp='$CXXCPP $CPPFLAGS'
19535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19538 fi
19539
19540
19541
19542
19543
19544 LDFLAGS="$LDFLAGS $BOOST_PROGRAM_OPTIONS_LDFLAGS"
19545 LIBS="$LIBS $BOOST_PROGRAM_OPTIONS_LIBS"
19546
19547 if test x"$boost_cv_inc_path" = xno; then
19548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost regex library" >&5
19549 printf "%s\n" "$as_me: Boost not available, not searching for the Boost regex library" >&6;}
19550 else
19551 ac_ext=cpp
19552 ac_cpp='$CXXCPP $CPPFLAGS'
19553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19556 if test x"$boost_cv_inc_path" = xno; then
19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/regex.hpp" >&5
19558 printf "%s\n" "$as_me: Boost not available, not searching for boost/regex.hpp" >&6;}
19559 else
19560 ac_ext=cpp
19561 ac_cpp='$CXXCPP $CPPFLAGS'
19562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19565 boost_save_CPPFLAGS=$CPPFLAGS
19566 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19567 ac_fn_cxx_check_header_compile "$LINENO" "boost/regex.hpp" "ac_cv_header_boost_regex_hpp" "$ac_includes_default"
19568 if test "x$ac_cv_header_boost_regex_hpp" = xyes
19569 then :
19570
19571 printf "%s\n" "#define HAVE_BOOST_REGEX_HPP 1" >>confdefs.h
19572
19573 else $as_nop
19574 as_fn_error $? "cannot find boost/regex.hpp" "$LINENO" 5
19575 fi
19576
19577 CPPFLAGS=$boost_save_CPPFLAGS
19578 ac_ext=cpp
19579 ac_cpp='$CXXCPP $CPPFLAGS'
19580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19583 fi
19584
19585 boost_save_CPPFLAGS=$CPPFLAGS
19586 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost regex library" >&5
19588 printf %s "checking for the Boost regex library... " >&6; }
19589 if test ${boost_cv_lib_regex+y}
19590 then :
19591 printf %s "(cached) " >&6
19592 else $as_nop
19593 boost_cv_lib_regex=no
19594 case "" in #(
19595 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
19596 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
19597 (*) boost_mt=; boost_rtopt=;;
19598 esac
19599 if test $enable_static_boost = yes; then
19600 boost_rtopt="s$boost_rtopt"
19601 fi
19602 # Find the proper debug variant depending on what we've been asked to find.
19603 case $boost_rtopt in #(
19604 (*d*) boost_rt_d=$boost_rtopt;; #(
19605 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
19606 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
19607 (*) boost_rt_d='-d';;
19608 esac
19609 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
19610 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
19611 $boost_guess_use_mt && boost_mt=-mt
19612 # Look for the abs path the static archive.
19613 # $libext is computed by Libtool but let's make sure it's non empty.
19614 test -z "$libext" &&
19615 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
19616 boost_save_ac_objext=$ac_objext
19617 # Generate the test file.
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19620 #include <boost/regex.hpp>
19621
19622 int
19623 main (void)
19624 {
19625 boost::regex exp("*"); boost::regex_match("foo", exp);
19626 ;
19627 return 0;
19628 }
19629 _ACEOF
19630 if ac_fn_cxx_try_compile "$LINENO"
19631 then :
19632 ac_objext=do_not_rm_me_plz
19633 else $as_nop
19634 as_fn_error $? "cannot compile a test that uses Boost regex" "$LINENO" 5
19635 fi
19636 rm -f core conftest.err conftest.$ac_objext conftest.beam
19637 ac_objext=$boost_save_ac_objext
19638 boost_failed_libs=
19639 # Don't bother to ident the following nested for loops, only the 2
19640 # innermost ones matter.
19641 for boost_lib_ in regex; do
19642 for boost_tag_ in -$boost_cv_lib_tag ''; do
19643 for boost_ver_ in -$boost_cv_lib_version ''; do
19644 for boost_mt_ in $boost_mt -mt ''; do
19645 for boost_rtopt_ in $boost_rtopt '' -d; do
19646 for boost_lib in \
19647 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
19648 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
19649 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
19650 boost_$boost_lib_$boost_tag_$boost_ver_
19651 do
19652 # Avoid testing twice the same lib
19653 case $boost_failed_libs in #(
19654 (*@$boost_lib@*) continue;;
19655 esac
19656 # If with_boost is empty, we'll search in /lib first, which is not quite
19657 # right so instead we'll try to a location based on where the headers are.
19658 boost_tmp_lib=$with_boost
19659 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
19660 for boost_ldpath in "$boost_tmp_lib/lib" '' \
19661 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
19662 "$with_boost" C:/Boost/lib /lib*
19663 do
19664 # Don't waste time with directories that don't exist.
19665 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
19666 continue
19667 fi
19668 boost_save_LDFLAGS=$LDFLAGS
19669 # Are we looking for a static library?
19670 case $boost_ldpath:$boost_rtopt_ in #(
19671 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
19672 boost_cv_lib_regex_LIBS="$boost_ldpath/lib$boost_lib.$libext"
19673 test -e "$boost_cv_lib_regex_LIBS" || continue;; #(
19674 (*) # No: use -lboost_foo to find the shared library.
19675 boost_cv_lib_regex_LIBS="-l$boost_lib";;
19676 esac
19677 boost_save_LIBS=$LIBS
19678 LIBS="$boost_cv_lib_regex_LIBS $LIBS"
19679 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
19680 rm -f conftest$ac_exeext
19681 boost_save_ac_ext=$ac_ext
19682 boost_use_source=:
19683 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
19684 # tries to link the existing object file instead of compiling from source.
19685 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19687 if { { ac_try="$ac_link"
19688 case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691 esac
19692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19693 printf "%s\n" "$ac_try_echo"; } >&5
19694 (eval "$ac_link") 2>conftest.err
19695 ac_status=$?
19696 if test -s conftest.err; then
19697 grep -v '^ *+' conftest.err >conftest.er1
19698 cat conftest.er1 >&5
19699 mv -f conftest.er1 conftest.err
19700 fi
19701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19702 test $ac_status = 0; } && {
19703 test -z "$ac_cxx_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest$ac_exeext && {
19706 test "$cross_compiling" = yes ||
19707 $as_executable_p conftest$ac_exeext
19708 }
19709 then :
19710 boost_cv_lib_regex=yes
19711 else $as_nop
19712 if $boost_use_source; then
19713 printf "%s\n" "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 fi
19717 boost_cv_lib_regex=no
19718 fi
19719 ac_objext=$boost_save_ac_objext
19720 ac_ext=$boost_save_ac_ext
19721 rm -f core conftest.err conftest_ipa8_conftest.oo \
19722 conftest$ac_exeext
19723 ac_objext=$boost_save_ac_objext
19724 LDFLAGS=$boost_save_LDFLAGS
19725 LIBS=$boost_save_LIBS
19726 if test x"$boost_cv_lib_regex" = xyes; then
19727 # Check or used cached result of whether or not using -R or
19728 # -rpath makes sense. Some implementations of ld, such as for
19729 # Mac OSX, require -rpath but -R is the flag known to work on
19730 # other systems. https://github.com/tsuna/boost.m4/issues/19
19731 if test ${boost_cv_rpath_link_ldflag+y}
19732 then :
19733 printf %s "(cached) " >&6
19734 else $as_nop
19735 case $boost_ldpath in
19736 '') # Nothing to do.
19737 boost_cv_rpath_link_ldflag=
19738 boost_rpath_link_ldflag_found=yes;;
19739 *)
19740 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
19741 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19742 LIBS="$boost_save_LIBS $boost_cv_lib_regex_LIBS"
19743 rm -f conftest$ac_exeext
19744 boost_save_ac_ext=$ac_ext
19745 boost_use_source=:
19746 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
19747 # tries to link the existing object file instead of compiling from source.
19748 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
19749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
19750 if { { ac_try="$ac_link"
19751 case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19754 esac
19755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19756 printf "%s\n" "$ac_try_echo"; } >&5
19757 (eval "$ac_link") 2>conftest.err
19758 ac_status=$?
19759 if test -s conftest.err; then
19760 grep -v '^ *+' conftest.err >conftest.er1
19761 cat conftest.er1 >&5
19762 mv -f conftest.er1 conftest.err
19763 fi
19764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19765 test $ac_status = 0; } && {
19766 test -z "$ac_cxx_werror_flag" ||
19767 test ! -s conftest.err
19768 } && test -s conftest$ac_exeext && {
19769 test "$cross_compiling" = yes ||
19770 $as_executable_p conftest$ac_exeext
19771 }
19772 then :
19773 boost_rpath_link_ldflag_found=yes
19774 break
19775 else $as_nop
19776 if $boost_use_source; then
19777 printf "%s\n" "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780 fi
19781 boost_rpath_link_ldflag_found=no
19782 fi
19783 ac_objext=$boost_save_ac_objext
19784 ac_ext=$boost_save_ac_ext
19785 rm -f core conftest.err conftest_ipa8_conftest.oo \
19786 conftest$ac_exeext
19787 done
19788 ;;
19789 esac
19790 if test "x$boost_rpath_link_ldflag_found" != "xyes"
19791 then :
19792 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
19793 fi
19794 LDFLAGS=$boost_save_LDFLAGS
19795 LIBS=$boost_save_LIBS
19796
19797 fi
19798
19799 test x"$boost_ldpath" != x &&
19800 boost_cv_lib_regex_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
19801 boost_cv_lib_regex_LDPATH="$boost_ldpath"
19802 break 7
19803 else
19804 boost_failed_libs="$boost_failed_libs@$boost_lib@"
19805 fi
19806 done
19807 done
19808 done
19809 done
19810 done
19811 done
19812 done # boost_lib_
19813 rm -f conftest.$ac_objext
19814
19815 fi
19816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_regex" >&5
19817 printf "%s\n" "$boost_cv_lib_regex" >&6; }
19818 case $boost_cv_lib_regex in #(
19819 (no) printf "%s\n" "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 as_fn_error $? "cannot find the flags to link with Boost regex" "$LINENO" 5
19823 ;;
19824 esac
19825 BOOST_REGEX_LDFLAGS=$boost_cv_lib_regex_LDFLAGS
19826 BOOST_REGEX_LDPATH=$boost_cv_lib_regex_LDPATH
19827 BOOST_LDPATH=$boost_cv_lib_regex_LDPATH
19828 BOOST_REGEX_LIBS=$boost_cv_lib_regex_LIBS
19829 CPPFLAGS=$boost_save_CPPFLAGS
19830 ac_ext=cpp
19831 ac_cpp='$CXXCPP $CPPFLAGS'
19832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19835 fi
19836
19837
19838
19839
19840
19841 LDFLAGS="$LDFLAGS $BOOST_REGEX_LDFLAGS"
19842 LIBS="$LIBS $BOOST_REGEX_LIBS"
19843
19844 ac_ext=cpp
19845 ac_cpp='$CXXCPP $CPPFLAGS'
19846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the flags needed to use pthreads" >&5
19850 printf %s "checking for the flags needed to use pthreads... " >&6; }
19851 if test ${boost_cv_pthread_flag+y}
19852 then :
19853 printf %s "(cached) " >&6
19854 else $as_nop
19855 boost_cv_pthread_flag=
19856 # The ordering *is* (sometimes) important. Some notes on the
19857 # individual items follow:
19858 # (none): in case threads are in libc; should be tried before -Kthread and
19859 # other compiler flags to prevent continual compiler warnings
19860 # -lpthreads: AIX (must check this before -lpthread)
19861 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19862 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19863 # -llthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19864 # -pthread: GNU Linux/GCC (kernel threads), BSD/GCC (userland threads)
19865 # -pthreads: Solaris/GCC
19866 # -mthreads: MinGW32/GCC, Lynx/GCC
19867 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19868 # doesn't hurt to check since this sometimes defines pthreads too;
19869 # also defines -D_REENTRANT)
19870 # ... -mt is also the pthreads flag for HP/aCC
19871 # -lpthread: GNU Linux, etc.
19872 # --thread-safe: KAI C++
19873 case $host_os in #(
19874 *solaris*)
19875 # On Solaris (at least, for some versions), libc contains stubbed
19876 # (non-functional) versions of the pthreads routines, so link-based
19877 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19878 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19879 # a function called by this macro, so we could check for that, but
19880 # who knows whether they'll stub that too in a future libc.) So,
19881 # we'll just look for -pthreads and -lpthread first:
19882 boost_pthread_flags="-pthreads -lpthread -mt -pthread";; #(
19883 *)
19884 boost_pthread_flags="-lpthreads -Kthread -kthread -llthread -pthread \
19885 -pthreads -mthreads -lpthread --thread-safe -mt";;
19886 esac
19887 # Generate the test file.
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889 /* end confdefs.h. */
19890 #include <pthread.h>
19891 int
19892 main (void)
19893 {
19894 pthread_t th; pthread_join(th, 0);
19895 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19896 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19897 ;
19898 return 0;
19899 }
19900 _ACEOF
19901 for boost_pthread_flag in '' $boost_pthread_flags; do
19902 boost_pthread_ok=false
19903 boost_pthreads__save_LIBS=$LIBS
19904 LIBS="$LIBS $boost_pthread_flag"
19905 if ac_fn_cxx_try_link "$LINENO"
19906 then :
19907 if grep ".*$boost_pthread_flag" conftest.err; then
19908 echo "This flag seems to have triggered warnings" >&5
19909 else
19910 boost_pthread_ok=:; boost_cv_pthread_flag=$boost_pthread_flag
19911 fi
19912 fi
19913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19914 conftest$ac_exeext
19915 LIBS=$boost_pthreads__save_LIBS
19916 $boost_pthread_ok && break
19917 done
19918
19919 fi
19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_pthread_flag" >&5
19921 printf "%s\n" "$boost_cv_pthread_flag" >&6; }
19922 ac_ext=cpp
19923 ac_cpp='$CXXCPP $CPPFLAGS'
19924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19927
19928 boost_thread_save_LIBS=$LIBS
19929 boost_thread_save_LDFLAGS=$LDFLAGS
19930 boost_thread_save_CPPFLAGS=$CPPFLAGS
19931 # Link-time dependency from thread to system was added as of 1.49.0.
19932 if test $boost_major_version -ge 149; then
19933 if test x"$boost_cv_inc_path" = xno; then
19934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
19935 printf "%s\n" "$as_me: Boost not available, not searching for the Boost system library" >&6;}
19936 else
19937 ac_ext=cpp
19938 ac_cpp='$CXXCPP $CPPFLAGS'
19939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19942 if test x"$boost_cv_inc_path" = xno; then
19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
19944 printf "%s\n" "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
19945 else
19946 ac_ext=cpp
19947 ac_cpp='$CXXCPP $CPPFLAGS'
19948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19951 boost_save_CPPFLAGS=$CPPFLAGS
19952 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19953 ac_fn_cxx_check_header_compile "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
19954 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes
19955 then :
19956
19957 printf "%s\n" "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
19958
19959 else $as_nop
19960 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
19961 fi
19962
19963 CPPFLAGS=$boost_save_CPPFLAGS
19964 ac_ext=cpp
19965 ac_cpp='$CXXCPP $CPPFLAGS'
19966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19969 fi
19970
19971 boost_save_CPPFLAGS=$CPPFLAGS
19972 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
19974 printf %s "checking for the Boost system library... " >&6; }
19975 if test ${boost_cv_lib_system+y}
19976 then :
19977 printf %s "(cached) " >&6
19978 else $as_nop
19979 boost_cv_lib_system=no
19980 case "" in #(
19981 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
19982 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
19983 (*) boost_mt=; boost_rtopt=;;
19984 esac
19985 if test $enable_static_boost = yes; then
19986 boost_rtopt="s$boost_rtopt"
19987 fi
19988 # Find the proper debug variant depending on what we've been asked to find.
19989 case $boost_rtopt in #(
19990 (*d*) boost_rt_d=$boost_rtopt;; #(
19991 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
19992 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
19993 (*) boost_rt_d='-d';;
19994 esac
19995 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
19996 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
19997 $boost_guess_use_mt && boost_mt=-mt
19998 # Look for the abs path the static archive.
19999 # $libext is computed by Libtool but let's make sure it's non empty.
20000 test -z "$libext" &&
20001 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
20002 boost_save_ac_objext=$ac_objext
20003 # Generate the test file.
20004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h. */
20006 #include <boost/system/error_code.hpp>
20007
20008 int
20009 main (void)
20010 {
20011 boost::system::error_code e; e.clear();
20012 ;
20013 return 0;
20014 }
20015 _ACEOF
20016 if ac_fn_cxx_try_compile "$LINENO"
20017 then :
20018 ac_objext=do_not_rm_me_plz
20019 else $as_nop
20020 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
20021 fi
20022 rm -f core conftest.err conftest.$ac_objext conftest.beam
20023 ac_objext=$boost_save_ac_objext
20024 boost_failed_libs=
20025 # Don't bother to ident the following nested for loops, only the 2
20026 # innermost ones matter.
20027 for boost_lib_ in system; do
20028 for boost_tag_ in -$boost_cv_lib_tag ''; do
20029 for boost_ver_ in -$boost_cv_lib_version ''; do
20030 for boost_mt_ in $boost_mt -mt ''; do
20031 for boost_rtopt_ in $boost_rtopt '' -d; do
20032 for boost_lib in \
20033 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
20034 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
20035 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
20036 boost_$boost_lib_$boost_tag_$boost_ver_
20037 do
20038 # Avoid testing twice the same lib
20039 case $boost_failed_libs in #(
20040 (*@$boost_lib@*) continue;;
20041 esac
20042 # If with_boost is empty, we'll search in /lib first, which is not quite
20043 # right so instead we'll try to a location based on where the headers are.
20044 boost_tmp_lib=$with_boost
20045 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
20046 for boost_ldpath in "$boost_tmp_lib/lib" '' \
20047 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
20048 "$with_boost" C:/Boost/lib /lib*
20049 do
20050 # Don't waste time with directories that don't exist.
20051 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
20052 continue
20053 fi
20054 boost_save_LDFLAGS=$LDFLAGS
20055 # Are we looking for a static library?
20056 case $boost_ldpath:$boost_rtopt_ in #(
20057 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
20058 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
20059 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
20060 (*) # No: use -lboost_foo to find the shared library.
20061 boost_cv_lib_system_LIBS="-l$boost_lib";;
20062 esac
20063 boost_save_LIBS=$LIBS
20064 LIBS="$boost_cv_lib_system_LIBS $LIBS"
20065 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
20066 rm -f conftest$ac_exeext
20067 boost_save_ac_ext=$ac_ext
20068 boost_use_source=:
20069 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
20070 # tries to link the existing object file instead of compiling from source.
20071 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20073 if { { ac_try="$ac_link"
20074 case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20077 esac
20078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20079 printf "%s\n" "$ac_try_echo"; } >&5
20080 (eval "$ac_link") 2>conftest.err
20081 ac_status=$?
20082 if test -s conftest.err; then
20083 grep -v '^ *+' conftest.err >conftest.er1
20084 cat conftest.er1 >&5
20085 mv -f conftest.er1 conftest.err
20086 fi
20087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20088 test $ac_status = 0; } && {
20089 test -z "$ac_cxx_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest$ac_exeext && {
20092 test "$cross_compiling" = yes ||
20093 $as_executable_p conftest$ac_exeext
20094 }
20095 then :
20096 boost_cv_lib_system=yes
20097 else $as_nop
20098 if $boost_use_source; then
20099 printf "%s\n" "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20101
20102 fi
20103 boost_cv_lib_system=no
20104 fi
20105 ac_objext=$boost_save_ac_objext
20106 ac_ext=$boost_save_ac_ext
20107 rm -f core conftest.err conftest_ipa8_conftest.oo \
20108 conftest$ac_exeext
20109 ac_objext=$boost_save_ac_objext
20110 LDFLAGS=$boost_save_LDFLAGS
20111 LIBS=$boost_save_LIBS
20112 if test x"$boost_cv_lib_system" = xyes; then
20113 # Check or used cached result of whether or not using -R or
20114 # -rpath makes sense. Some implementations of ld, such as for
20115 # Mac OSX, require -rpath but -R is the flag known to work on
20116 # other systems. https://github.com/tsuna/boost.m4/issues/19
20117 if test ${boost_cv_rpath_link_ldflag+y}
20118 then :
20119 printf %s "(cached) " >&6
20120 else $as_nop
20121 case $boost_ldpath in
20122 '') # Nothing to do.
20123 boost_cv_rpath_link_ldflag=
20124 boost_rpath_link_ldflag_found=yes;;
20125 *)
20126 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
20127 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20128 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
20129 rm -f conftest$ac_exeext
20130 boost_save_ac_ext=$ac_ext
20131 boost_use_source=:
20132 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
20133 # tries to link the existing object file instead of compiling from source.
20134 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20136 if { { ac_try="$ac_link"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140 esac
20141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20142 printf "%s\n" "$ac_try_echo"; } >&5
20143 (eval "$ac_link") 2>conftest.err
20144 ac_status=$?
20145 if test -s conftest.err; then
20146 grep -v '^ *+' conftest.err >conftest.er1
20147 cat conftest.er1 >&5
20148 mv -f conftest.er1 conftest.err
20149 fi
20150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151 test $ac_status = 0; } && {
20152 test -z "$ac_cxx_werror_flag" ||
20153 test ! -s conftest.err
20154 } && test -s conftest$ac_exeext && {
20155 test "$cross_compiling" = yes ||
20156 $as_executable_p conftest$ac_exeext
20157 }
20158 then :
20159 boost_rpath_link_ldflag_found=yes
20160 break
20161 else $as_nop
20162 if $boost_use_source; then
20163 printf "%s\n" "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 fi
20167 boost_rpath_link_ldflag_found=no
20168 fi
20169 ac_objext=$boost_save_ac_objext
20170 ac_ext=$boost_save_ac_ext
20171 rm -f core conftest.err conftest_ipa8_conftest.oo \
20172 conftest$ac_exeext
20173 done
20174 ;;
20175 esac
20176 if test "x$boost_rpath_link_ldflag_found" != "xyes"
20177 then :
20178 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
20179 fi
20180 LDFLAGS=$boost_save_LDFLAGS
20181 LIBS=$boost_save_LIBS
20182
20183 fi
20184
20185 test x"$boost_ldpath" != x &&
20186 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20187 boost_cv_lib_system_LDPATH="$boost_ldpath"
20188 break 7
20189 else
20190 boost_failed_libs="$boost_failed_libs@$boost_lib@"
20191 fi
20192 done
20193 done
20194 done
20195 done
20196 done
20197 done
20198 done # boost_lib_
20199 rm -f conftest.$ac_objext
20200
20201 fi
20202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
20203 printf "%s\n" "$boost_cv_lib_system" >&6; }
20204 case $boost_cv_lib_system in #(
20205 (no) printf "%s\n" "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20207
20208 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
20209 ;;
20210 esac
20211 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
20212 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
20213 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
20214 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
20215 CPPFLAGS=$boost_save_CPPFLAGS
20216 ac_ext=cpp
20217 ac_cpp='$CXXCPP $CPPFLAGS'
20218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20221 fi
20222
20223
20224
20225 fi # end of the Boost.System check.
20226 LIBS="$LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag"
20227 LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS"
20228 CPPFLAGS="$CPPFLAGS $boost_cv_pthread_flag"
20229
20230 # When compiling for the Windows platform, the threads library is named
20231 # differently. This suffix doesn't exist in new versions of Boost, or
20232 # possibly new versions of GCC on mingw I am assuming it's Boost's change for
20233 # now and I am setting version to 1.48, for lack of knowledge as to when this
20234 # change occurred.
20235 if test $boost_major_version -lt 148; then
20236 case $host_os in
20237 (*mingw*) boost_thread_lib_ext=_win32;;
20238 esac
20239 fi
20240 if test x"$boost_cv_inc_path" = xno; then
20241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost thread library" >&5
20242 printf "%s\n" "$as_me: Boost not available, not searching for the Boost thread library" >&6;}
20243 else
20244 ac_ext=cpp
20245 ac_cpp='$CXXCPP $CPPFLAGS'
20246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20249 if test x"$boost_cv_inc_path" = xno; then
20250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/thread.hpp" >&5
20251 printf "%s\n" "$as_me: Boost not available, not searching for boost/thread.hpp" >&6;}
20252 else
20253 ac_ext=cpp
20254 ac_cpp='$CXXCPP $CPPFLAGS'
20255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20258 boost_save_CPPFLAGS=$CPPFLAGS
20259 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20260 ac_fn_cxx_check_header_compile "$LINENO" "boost/thread.hpp" "ac_cv_header_boost_thread_hpp" "$ac_includes_default"
20261 if test "x$ac_cv_header_boost_thread_hpp" = xyes
20262 then :
20263
20264 printf "%s\n" "#define HAVE_BOOST_THREAD_HPP 1" >>confdefs.h
20265
20266 else $as_nop
20267 as_fn_error $? "cannot find boost/thread.hpp" "$LINENO" 5
20268 fi
20269
20270 CPPFLAGS=$boost_save_CPPFLAGS
20271 ac_ext=cpp
20272 ac_cpp='$CXXCPP $CPPFLAGS'
20273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20276 fi
20277
20278 boost_save_CPPFLAGS=$CPPFLAGS
20279 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost thread library" >&5
20281 printf %s "checking for the Boost thread library... " >&6; }
20282 if test ${boost_cv_lib_thread+y}
20283 then :
20284 printf %s "(cached) " >&6
20285 else $as_nop
20286 boost_cv_lib_thread=no
20287 case "" in #(
20288 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
20289 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
20290 (*) boost_mt=; boost_rtopt=;;
20291 esac
20292 if test $enable_static_boost = yes; then
20293 boost_rtopt="s$boost_rtopt"
20294 fi
20295 # Find the proper debug variant depending on what we've been asked to find.
20296 case $boost_rtopt in #(
20297 (*d*) boost_rt_d=$boost_rtopt;; #(
20298 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
20299 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
20300 (*) boost_rt_d='-d';;
20301 esac
20302 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
20303 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
20304 $boost_guess_use_mt && boost_mt=-mt
20305 # Look for the abs path the static archive.
20306 # $libext is computed by Libtool but let's make sure it's non empty.
20307 test -z "$libext" &&
20308 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
20309 boost_save_ac_objext=$ac_objext
20310 # Generate the test file.
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20313 #include <boost/thread.hpp>
20314
20315 int
20316 main (void)
20317 {
20318 boost::thread t; boost::mutex m;
20319 ;
20320 return 0;
20321 }
20322 _ACEOF
20323 if ac_fn_cxx_try_compile "$LINENO"
20324 then :
20325 ac_objext=do_not_rm_me_plz
20326 else $as_nop
20327 as_fn_error $? "cannot compile a test that uses Boost thread" "$LINENO" 5
20328 fi
20329 rm -f core conftest.err conftest.$ac_objext conftest.beam
20330 ac_objext=$boost_save_ac_objext
20331 boost_failed_libs=
20332 # Don't bother to ident the following nested for loops, only the 2
20333 # innermost ones matter.
20334 for boost_lib_ in thread$boost_thread_lib_ext; do
20335 for boost_tag_ in -$boost_cv_lib_tag ''; do
20336 for boost_ver_ in -$boost_cv_lib_version ''; do
20337 for boost_mt_ in $boost_mt -mt ''; do
20338 for boost_rtopt_ in $boost_rtopt '' -d; do
20339 for boost_lib in \
20340 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
20341 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
20342 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
20343 boost_$boost_lib_$boost_tag_$boost_ver_
20344 do
20345 # Avoid testing twice the same lib
20346 case $boost_failed_libs in #(
20347 (*@$boost_lib@*) continue;;
20348 esac
20349 # If with_boost is empty, we'll search in /lib first, which is not quite
20350 # right so instead we'll try to a location based on where the headers are.
20351 boost_tmp_lib=$with_boost
20352 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
20353 for boost_ldpath in "$boost_tmp_lib/lib" '' \
20354 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
20355 "$with_boost" C:/Boost/lib /lib*
20356 do
20357 # Don't waste time with directories that don't exist.
20358 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
20359 continue
20360 fi
20361 boost_save_LDFLAGS=$LDFLAGS
20362 # Are we looking for a static library?
20363 case $boost_ldpath:$boost_rtopt_ in #(
20364 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
20365 boost_cv_lib_thread_LIBS="$boost_ldpath/lib$boost_lib.$libext"
20366 test -e "$boost_cv_lib_thread_LIBS" || continue;; #(
20367 (*) # No: use -lboost_foo to find the shared library.
20368 boost_cv_lib_thread_LIBS="-l$boost_lib";;
20369 esac
20370 boost_save_LIBS=$LIBS
20371 LIBS="$boost_cv_lib_thread_LIBS $LIBS"
20372 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
20373 rm -f conftest$ac_exeext
20374 boost_save_ac_ext=$ac_ext
20375 boost_use_source=:
20376 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
20377 # tries to link the existing object file instead of compiling from source.
20378 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20380 if { { ac_try="$ac_link"
20381 case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384 esac
20385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20386 printf "%s\n" "$ac_try_echo"; } >&5
20387 (eval "$ac_link") 2>conftest.err
20388 ac_status=$?
20389 if test -s conftest.err; then
20390 grep -v '^ *+' conftest.err >conftest.er1
20391 cat conftest.er1 >&5
20392 mv -f conftest.er1 conftest.err
20393 fi
20394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20395 test $ac_status = 0; } && {
20396 test -z "$ac_cxx_werror_flag" ||
20397 test ! -s conftest.err
20398 } && test -s conftest$ac_exeext && {
20399 test "$cross_compiling" = yes ||
20400 $as_executable_p conftest$ac_exeext
20401 }
20402 then :
20403 boost_cv_lib_thread=yes
20404 else $as_nop
20405 if $boost_use_source; then
20406 printf "%s\n" "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 fi
20410 boost_cv_lib_thread=no
20411 fi
20412 ac_objext=$boost_save_ac_objext
20413 ac_ext=$boost_save_ac_ext
20414 rm -f core conftest.err conftest_ipa8_conftest.oo \
20415 conftest$ac_exeext
20416 ac_objext=$boost_save_ac_objext
20417 LDFLAGS=$boost_save_LDFLAGS
20418 LIBS=$boost_save_LIBS
20419 if test x"$boost_cv_lib_thread" = xyes; then
20420 # Check or used cached result of whether or not using -R or
20421 # -rpath makes sense. Some implementations of ld, such as for
20422 # Mac OSX, require -rpath but -R is the flag known to work on
20423 # other systems. https://github.com/tsuna/boost.m4/issues/19
20424 if test ${boost_cv_rpath_link_ldflag+y}
20425 then :
20426 printf %s "(cached) " >&6
20427 else $as_nop
20428 case $boost_ldpath in
20429 '') # Nothing to do.
20430 boost_cv_rpath_link_ldflag=
20431 boost_rpath_link_ldflag_found=yes;;
20432 *)
20433 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
20434 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20435 LIBS="$boost_save_LIBS $boost_cv_lib_thread_LIBS"
20436 rm -f conftest$ac_exeext
20437 boost_save_ac_ext=$ac_ext
20438 boost_use_source=:
20439 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
20440 # tries to link the existing object file instead of compiling from source.
20441 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
20442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
20443 if { { ac_try="$ac_link"
20444 case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20447 esac
20448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20449 printf "%s\n" "$ac_try_echo"; } >&5
20450 (eval "$ac_link") 2>conftest.err
20451 ac_status=$?
20452 if test -s conftest.err; then
20453 grep -v '^ *+' conftest.err >conftest.er1
20454 cat conftest.er1 >&5
20455 mv -f conftest.er1 conftest.err
20456 fi
20457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20458 test $ac_status = 0; } && {
20459 test -z "$ac_cxx_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest$ac_exeext && {
20462 test "$cross_compiling" = yes ||
20463 $as_executable_p conftest$ac_exeext
20464 }
20465 then :
20466 boost_rpath_link_ldflag_found=yes
20467 break
20468 else $as_nop
20469 if $boost_use_source; then
20470 printf "%s\n" "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473 fi
20474 boost_rpath_link_ldflag_found=no
20475 fi
20476 ac_objext=$boost_save_ac_objext
20477 ac_ext=$boost_save_ac_ext
20478 rm -f core conftest.err conftest_ipa8_conftest.oo \
20479 conftest$ac_exeext
20480 done
20481 ;;
20482 esac
20483 if test "x$boost_rpath_link_ldflag_found" != "xyes"
20484 then :
20485 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
20486 fi
20487 LDFLAGS=$boost_save_LDFLAGS
20488 LIBS=$boost_save_LIBS
20489
20490 fi
20491
20492 test x"$boost_ldpath" != x &&
20493 boost_cv_lib_thread_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
20494 boost_cv_lib_thread_LDPATH="$boost_ldpath"
20495 break 7
20496 else
20497 boost_failed_libs="$boost_failed_libs@$boost_lib@"
20498 fi
20499 done
20500 done
20501 done
20502 done
20503 done
20504 done
20505 done # boost_lib_
20506 rm -f conftest.$ac_objext
20507
20508 fi
20509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_thread" >&5
20510 printf "%s\n" "$boost_cv_lib_thread" >&6; }
20511 case $boost_cv_lib_thread in #(
20512 (no) printf "%s\n" "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 as_fn_error $? "cannot find the flags to link with Boost thread" "$LINENO" 5
20516 ;;
20517 esac
20518 BOOST_THREAD_LDFLAGS=$boost_cv_lib_thread_LDFLAGS
20519 BOOST_THREAD_LDPATH=$boost_cv_lib_thread_LDPATH
20520 BOOST_LDPATH=$boost_cv_lib_thread_LDPATH
20521 BOOST_THREAD_LIBS=$boost_cv_lib_thread_LIBS
20522 CPPFLAGS=$boost_save_CPPFLAGS
20523 ac_ext=cpp
20524 ac_cpp='$CXXCPP $CPPFLAGS'
20525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20528 fi
20529
20530
20531 case $host_os in
20532 (*mingw*) boost_thread_w32_socket_link=-lws2_32;;
20533 esac
20534
20535 BOOST_THREAD_LIBS="$BOOST_THREAD_LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag $boost_thread_w32_socket_link"
20536 BOOST_THREAD_LDFLAGS="$BOOST_SYSTEM_LDFLAGS"
20537 BOOST_CPPFLAGS="$BOOST_CPPFLAGS $boost_cv_pthread_flag"
20538 LIBS=$boost_thread_save_LIBS
20539 LDFLAGS=$boost_thread_save_LDFLAGS
20540 CPPFLAGS=$boost_thread_save_CPPFLAGS
20541
20542
20543
20544
20545 LDFLAGS+="$LDFLAGS $BOOST_THREAD_LDFLAGS"
20546 LIBS="$LIBS $BOOST_THREAD_LIBS"
20547
20548 # icu
20549
20550
20551
20552
20553
20554
20555
20556
20557 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20558 if test -n "$ac_tool_prefix"; then
20559 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20560 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20562 printf %s "checking for $ac_word... " >&6; }
20563 if test ${ac_cv_path_PKG_CONFIG+y}
20564 then :
20565 printf %s "(cached) " >&6
20566 else $as_nop
20567 case $PKG_CONFIG in
20568 [\\/]* | ?:[\\/]*)
20569 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20570 ;;
20571 *)
20572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20573 for as_dir in $PATH
20574 do
20575 IFS=$as_save_IFS
20576 case $as_dir in #(((
20577 '') as_dir=./ ;;
20578 */) ;;
20579 *) as_dir=$as_dir/ ;;
20580 esac
20581 for ac_exec_ext in '' $ac_executable_extensions; do
20582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20583 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20585 break 2
20586 fi
20587 done
20588 done
20589 IFS=$as_save_IFS
20590
20591 ;;
20592 esac
20593 fi
20594 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20595 if test -n "$PKG_CONFIG"; then
20596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20597 printf "%s\n" "$PKG_CONFIG" >&6; }
20598 else
20599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20600 printf "%s\n" "no" >&6; }
20601 fi
20602
20603
20604 fi
20605 if test -z "$ac_cv_path_PKG_CONFIG"; then
20606 ac_pt_PKG_CONFIG=$PKG_CONFIG
20607 # Extract the first word of "pkg-config", so it can be a program name with args.
20608 set dummy pkg-config; ac_word=$2
20609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20610 printf %s "checking for $ac_word... " >&6; }
20611 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20612 then :
20613 printf %s "(cached) " >&6
20614 else $as_nop
20615 case $ac_pt_PKG_CONFIG in
20616 [\\/]* | ?:[\\/]*)
20617 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20618 ;;
20619 *)
20620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20621 for as_dir in $PATH
20622 do
20623 IFS=$as_save_IFS
20624 case $as_dir in #(((
20625 '') as_dir=./ ;;
20626 */) ;;
20627 *) as_dir=$as_dir/ ;;
20628 esac
20629 for ac_exec_ext in '' $ac_executable_extensions; do
20630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20631 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20633 break 2
20634 fi
20635 done
20636 done
20637 IFS=$as_save_IFS
20638
20639 ;;
20640 esac
20641 fi
20642 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20643 if test -n "$ac_pt_PKG_CONFIG"; then
20644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20645 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20646 else
20647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20648 printf "%s\n" "no" >&6; }
20649 fi
20650
20651 if test "x$ac_pt_PKG_CONFIG" = x; then
20652 PKG_CONFIG=""
20653 else
20654 case $cross_compiling:$ac_tool_warned in
20655 yes:)
20656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20657 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20658 ac_tool_warned=yes ;;
20659 esac
20660 PKG_CONFIG=$ac_pt_PKG_CONFIG
20661 fi
20662 else
20663 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20664 fi
20665
20666 fi
20667 if test -n "$PKG_CONFIG"; then
20668 _pkg_min_version=0.9.0
20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20670 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20671 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20673 printf "%s\n" "yes" >&6; }
20674 else
20675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20676 printf "%s\n" "no" >&6; }
20677 PKG_CONFIG=""
20678 fi
20679 fi
20680
20681 pkg_failed=no
20682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20683 printf %s "checking for ICU... " >&6; }
20684
20685 if test -n "$ICU_CFLAGS"; then
20686 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20687 elif test -n "$PKG_CONFIG"; then
20688 if test -n "$PKG_CONFIG" && \
20689 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n icu-uc\""; } >&5
20690 ($PKG_CONFIG --exists --print-errors "icu-i18n icu-uc") 2>&5
20691 ac_status=$?
20692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20693 test $ac_status = 0; }; then
20694 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n icu-uc" 2>/dev/null`
20695 test "x$?" != "x0" && pkg_failed=yes
20696 else
20697 pkg_failed=yes
20698 fi
20699 else
20700 pkg_failed=untried
20701 fi
20702 if test -n "$ICU_LIBS"; then
20703 pkg_cv_ICU_LIBS="$ICU_LIBS"
20704 elif test -n "$PKG_CONFIG"; then
20705 if test -n "$PKG_CONFIG" && \
20706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n icu-uc\""; } >&5
20707 ($PKG_CONFIG --exists --print-errors "icu-i18n icu-uc") 2>&5
20708 ac_status=$?
20709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710 test $ac_status = 0; }; then
20711 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n icu-uc" 2>/dev/null`
20712 test "x$?" != "x0" && pkg_failed=yes
20713 else
20714 pkg_failed=yes
20715 fi
20716 else
20717 pkg_failed=untried
20718 fi
20719
20720
20721
20722 if test $pkg_failed = yes; then
20723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20724 printf "%s\n" "no" >&6; }
20725
20726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20727 _pkg_short_errors_supported=yes
20728 else
20729 _pkg_short_errors_supported=no
20730 fi
20731 if test $_pkg_short_errors_supported = yes; then
20732 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n icu-uc" 2>&1`
20733 else
20734 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n icu-uc" 2>&1`
20735 fi
20736 # Put the nasty error message in config.log where it belongs
20737 echo "$ICU_PKG_ERRORS" >&5
20738
20739
20740 elif test $pkg_failed = untried; then
20741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20742 printf "%s\n" "no" >&6; }
20743
20744 else
20745 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20746 ICU_LIBS=$pkg_cv_ICU_LIBS
20747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20748 printf "%s\n" "yes" >&6; }
20749
20750 old_CPPFLAGS="$CPPFLAGS"
20751 old_LIBS="$LIBS"
20752
20753
20754 CPPFLAGS="$CPPFLAGS $ICU_CFLAGS -DU_USING_ICU_NAMESPACE=0"
20755 LIBS="$LIBS $ICU_LIBS"
20756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether boost.regex was compiled with ICU support" >&5
20757 printf %s "checking whether boost.regex was compiled with ICU support... " >&6; }
20758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20759 /* end confdefs.h. */
20760
20761 #include <boost/regex/icu.hpp>
20762
20763 int
20764 main (void)
20765 {
20766 boost::u32regex rx = boost::make_u32regex("foo"); if (boost::u32regex_search("foobar", rx)) { }
20767 ;
20768 return 0;
20769 }
20770 _ACEOF
20771 if ac_fn_cxx_try_link "$LINENO"
20772 then :
20773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20774 printf "%s\n" "yes" >&6; }
20775 printf "%s\n" "#define BOOST_REGEX_ICU 1" >>confdefs.h
20776
20777 else $as_nop
20778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20779 printf "%s\n" "no" >&6; }
20780 CPPFLAGS="$old_CPPFLAGS"
20781 LIBS="$old_LIBS"
20782 fi
20783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20784 conftest$ac_exeext conftest.$ac_ext
20785
20786 fi
20787
20788 # various headers
20789 for ac_header in netinet/tcp.h netinet/in.h
20790 do :
20791 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
20792 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20793 if eval test \"x\$"$as_ac_Header"\" = x"yes"
20794 then :
20795 cat >>confdefs.h <<_ACEOF
20796 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
20797 _ACEOF
20798
20799 else $as_nop
20800 as_fn_error $? "vital headers missing" "$LINENO" 5
20801 fi
20802
20803 done
20804 for ac_header in langinfo.h
20805 do :
20806 ac_fn_cxx_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
20807 if test "x$ac_cv_header_langinfo_h" = xyes
20808 then :
20809 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
20810
20811 else $as_nop
20812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: locale detection disabled" >&5
20813 printf "%s\n" "$as_me: WARNING: locale detection disabled" >&2;}
20814 fi
20815
20816 done
20817
20818 # libmpdclient2
20819
20820 pkg_failed=no
20821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdclient" >&5
20822 printf %s "checking for libmpdclient... " >&6; }
20823
20824 if test -n "$libmpdclient_CFLAGS"; then
20825 pkg_cv_libmpdclient_CFLAGS="$libmpdclient_CFLAGS"
20826 elif test -n "$PKG_CONFIG"; then
20827 if test -n "$PKG_CONFIG" && \
20828 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.8\""; } >&5
20829 ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.8") 2>&5
20830 ac_status=$?
20831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20832 test $ac_status = 0; }; then
20833 pkg_cv_libmpdclient_CFLAGS=`$PKG_CONFIG --cflags "libmpdclient >= 2.8" 2>/dev/null`
20834 test "x$?" != "x0" && pkg_failed=yes
20835 else
20836 pkg_failed=yes
20837 fi
20838 else
20839 pkg_failed=untried
20840 fi
20841 if test -n "$libmpdclient_LIBS"; then
20842 pkg_cv_libmpdclient_LIBS="$libmpdclient_LIBS"
20843 elif test -n "$PKG_CONFIG"; then
20844 if test -n "$PKG_CONFIG" && \
20845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.8\""; } >&5
20846 ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.8") 2>&5
20847 ac_status=$?
20848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20849 test $ac_status = 0; }; then
20850 pkg_cv_libmpdclient_LIBS=`$PKG_CONFIG --libs "libmpdclient >= 2.8" 2>/dev/null`
20851 test "x$?" != "x0" && pkg_failed=yes
20852 else
20853 pkg_failed=yes
20854 fi
20855 else
20856 pkg_failed=untried
20857 fi
20858
20859
20860
20861 if test $pkg_failed = yes; then
20862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20863 printf "%s\n" "no" >&6; }
20864
20865 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20866 _pkg_short_errors_supported=yes
20867 else
20868 _pkg_short_errors_supported=no
20869 fi
20870 if test $_pkg_short_errors_supported = yes; then
20871 libmpdclient_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdclient >= 2.8" 2>&1`
20872 else
20873 libmpdclient_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdclient >= 2.8" 2>&1`
20874 fi
20875 # Put the nasty error message in config.log where it belongs
20876 echo "$libmpdclient_PKG_ERRORS" >&5
20877
20878 as_fn_error $? "libmpdclient >= 2.8 is required!" "$LINENO" 5
20879
20880 elif test $pkg_failed = untried; then
20881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20882 printf "%s\n" "no" >&6; }
20883 as_fn_error $? "libmpdclient >= 2.8 is required!" "$LINENO" 5
20884
20885 else
20886 libmpdclient_CFLAGS=$pkg_cv_libmpdclient_CFLAGS
20887 libmpdclient_LIBS=$pkg_cv_libmpdclient_LIBS
20888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20889 printf "%s\n" "yes" >&6; }
20890
20891
20892
20893 CPPFLAGS="$CPPFLAGS $libmpdclient_CFLAGS"
20894 for ac_header in mpd/client.h
20895 do :
20896 ac_fn_cxx_check_header_compile "$LINENO" "mpd/client.h" "ac_cv_header_mpd_client_h" "$ac_includes_default"
20897 if test "x$ac_cv_header_mpd_client_h" = xyes
20898 then :
20899 printf "%s\n" "#define HAVE_MPD_CLIENT_H 1" >>confdefs.h
20900 LIBS="$LIBS $libmpdclient_LIBS"
20901
20902 else $as_nop
20903 as_fn_error $? "missing mpd/client.h header" "$LINENO" 5
20904
20905 fi
20906
20907 done
20908
20909 fi
20910
20911 # readline
20912
20913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20914 printf %s "checking for a readline compatible library... " >&6; }
20915 if test ${ax_cv_lib_readline+y}
20916 then :
20917 printf %s "(cached) " >&6
20918 else $as_nop
20919
20920 ORIG_LIBS="$LIBS"
20921 for readline_lib in readline edit editline; do
20922 for termcap_lib in "" termcap curses ncurses; do
20923 if test -z "$termcap_lib"; then
20924 TRY_LIB="-l$readline_lib"
20925 else
20926 TRY_LIB="-l$readline_lib -l$termcap_lib"
20927 fi
20928 LIBS="$ORIG_LIBS $TRY_LIB"
20929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20931
20932 namespace conftest {
20933 extern "C" int readline ();
20934 }
20935 int
20936 main (void)
20937 {
20938 return conftest::readline ();
20939 ;
20940 return 0;
20941 }
20942 _ACEOF
20943 if ac_fn_cxx_try_link "$LINENO"
20944 then :
20945 ax_cv_lib_readline="$TRY_LIB"
20946 fi
20947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20948 conftest$ac_exeext conftest.$ac_ext
20949 if test -n "$ax_cv_lib_readline"; then
20950 break
20951 fi
20952 done
20953 if test -n "$ax_cv_lib_readline"; then
20954 break
20955 fi
20956 done
20957 if test -z "$ax_cv_lib_readline"; then
20958 ax_cv_lib_readline="no"
20959 fi
20960 LIBS="$ORIG_LIBS"
20961
20962 fi
20963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20964 printf "%s\n" "$ax_cv_lib_readline" >&6; }
20965
20966 if test "$ax_cv_lib_readline" != "no"; then
20967 LIBS="$LIBS $ax_cv_lib_readline"
20968
20969 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
20970
20971 ac_fn_cxx_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
20972 if test "x$ac_cv_header_readline_h" = xyes
20973 then :
20974 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h
20975
20976 fi
20977 ac_fn_cxx_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20978 if test "x$ac_cv_header_readline_readline_h" = xyes
20979 then :
20980 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
20981
20982 fi
20983
20984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20985 printf %s "checking whether readline supports history... " >&6; }
20986 if test ${ax_cv_lib_readline_history+y}
20987 then :
20988 printf %s "(cached) " >&6
20989 else $as_nop
20990
20991 ax_cv_lib_readline_history="no"
20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h. */
20994
20995 namespace conftest {
20996 extern "C" int add_history ();
20997 }
20998 int
20999 main (void)
21000 {
21001 return conftest::add_history ();
21002 ;
21003 return 0;
21004 }
21005 _ACEOF
21006 if ac_fn_cxx_try_link "$LINENO"
21007 then :
21008 ax_cv_lib_readline_history="yes"
21009 fi
21010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21011 conftest$ac_exeext conftest.$ac_ext
21012
21013 fi
21014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21015 printf "%s\n" "$ax_cv_lib_readline_history" >&6; }
21016 if test "$ax_cv_lib_readline_history" = "yes"; then
21017
21018 printf "%s\n" "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21019
21020 ac_fn_cxx_check_header_compile "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
21021 if test "x$ac_cv_header_history_h" = xyes
21022 then :
21023 printf "%s\n" "#define HAVE_HISTORY_H 1" >>confdefs.h
21024
21025 fi
21026 ac_fn_cxx_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
21027 if test "x$ac_cv_header_readline_history_h" = xyes
21028 then :
21029 printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
21030
21031 fi
21032
21033 fi
21034 fi
21035
21036 if test "$ax_cv_lib_readline" = "no"; then
21037 as_fn_error $? "no readline compatible library found" "$LINENO" 5
21038 fi
21039 if test "$ax_cv_lib_readline_history" = "no"; then
21040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: readline library has no history functionality" >&5
21041 printf "%s\n" "$as_me: WARNING: readline library has no history functionality" >&2;}
21042 fi
21043
21044 # pthread
21045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
21046 printf %s "checking for pthread_create in -lpthread... " >&6; }
21047 if test ${ac_cv_lib_pthread_pthread_create+y}
21048 then :
21049 printf %s "(cached) " >&6
21050 else $as_nop
21051 ac_check_lib_save_LIBS=$LIBS
21052 LIBS="-lpthread $LIBS"
21053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21054 /* end confdefs.h. */
21055
21056 namespace conftest {
21057 extern "C" int pthread_create ();
21058 }
21059 int
21060 main (void)
21061 {
21062 return conftest::pthread_create ();
21063 ;
21064 return 0;
21065 }
21066 _ACEOF
21067 if ac_fn_cxx_try_link "$LINENO"
21068 then :
21069 ac_cv_lib_pthread_pthread_create=yes
21070 else $as_nop
21071 ac_cv_lib_pthread_pthread_create=no
21072 fi
21073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21074 conftest$ac_exeext conftest.$ac_ext
21075 LIBS=$ac_check_lib_save_LIBS
21076 fi
21077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
21078 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
21079 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
21080 then :
21081 LIBS="$LIBS -lpthread"
21082 else $as_nop
21083 as_fn_error $? "pthread library is required" "$LINENO" 5
21084
21085 fi
21086
21087
21088 # ncursesw
21089
21090 pkg_failed=no
21091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
21092 printf %s "checking for ncursesw... " >&6; }
21093
21094 if test -n "$ncursesw_CFLAGS"; then
21095 pkg_cv_ncursesw_CFLAGS="$ncursesw_CFLAGS"
21096 elif test -n "$PKG_CONFIG"; then
21097 if test -n "$PKG_CONFIG" && \
21098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
21099 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
21100 ac_status=$?
21101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21102 test $ac_status = 0; }; then
21103 pkg_cv_ncursesw_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
21104 test "x$?" != "x0" && pkg_failed=yes
21105 else
21106 pkg_failed=yes
21107 fi
21108 else
21109 pkg_failed=untried
21110 fi
21111 if test -n "$ncursesw_LIBS"; then
21112 pkg_cv_ncursesw_LIBS="$ncursesw_LIBS"
21113 elif test -n "$PKG_CONFIG"; then
21114 if test -n "$PKG_CONFIG" && \
21115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
21116 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
21117 ac_status=$?
21118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21119 test $ac_status = 0; }; then
21120 pkg_cv_ncursesw_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
21121 test "x$?" != "x0" && pkg_failed=yes
21122 else
21123 pkg_failed=yes
21124 fi
21125 else
21126 pkg_failed=untried
21127 fi
21128
21129
21130
21131 if test $pkg_failed = yes; then
21132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21133 printf "%s\n" "no" >&6; }
21134
21135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21136 _pkg_short_errors_supported=yes
21137 else
21138 _pkg_short_errors_supported=no
21139 fi
21140 if test $_pkg_short_errors_supported = yes; then
21141 ncursesw_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
21142 else
21143 ncursesw_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
21144 fi
21145 # Put the nasty error message in config.log where it belongs
21146 echo "$ncursesw_PKG_ERRORS" >&5
21147
21148 as_fn_error $? "ncursesw is required!" "$LINENO" 5
21149
21150 elif test $pkg_failed = untried; then
21151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21152 printf "%s\n" "no" >&6; }
21153 as_fn_error $? "ncursesw is required!" "$LINENO" 5
21154
21155 else
21156 ncursesw_CFLAGS=$pkg_cv_ncursesw_CFLAGS
21157 ncursesw_LIBS=$pkg_cv_ncursesw_LIBS
21158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21159 printf "%s\n" "yes" >&6; }
21160
21161
21162
21163 CPPFLAGS="$CPPFLAGS $ncursesw_CFLAGS"
21164 for ac_header in curses.h
21165 do :
21166 ac_fn_cxx_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21167 if test "x$ac_cv_header_curses_h" = xyes
21168 then :
21169 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
21170 LIBS="$LIBS $ncursesw_LIBS"
21171
21172 else $as_nop
21173 as_fn_error $? "missing curses.h header" "$LINENO" 5
21174
21175 fi
21176
21177 done
21178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
21179 printf %s "checking for initscr in -lncursesw... " >&6; }
21180 if test ${ac_cv_lib_ncursesw_initscr+y}
21181 then :
21182 printf %s "(cached) " >&6
21183 else $as_nop
21184 ac_check_lib_save_LIBS=$LIBS
21185 LIBS="-lncursesw $LIBS"
21186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21187 /* end confdefs.h. */
21188
21189 namespace conftest {
21190 extern "C" int initscr ();
21191 }
21192 int
21193 main (void)
21194 {
21195 return conftest::initscr ();
21196 ;
21197 return 0;
21198 }
21199 _ACEOF
21200 if ac_fn_cxx_try_link "$LINENO"
21201 then :
21202 ac_cv_lib_ncursesw_initscr=yes
21203 else $as_nop
21204 ac_cv_lib_ncursesw_initscr=no
21205 fi
21206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21207 conftest$ac_exeext conftest.$ac_ext
21208 LIBS=$ac_check_lib_save_LIBS
21209 fi
21210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
21211 printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
21212 if test "x$ac_cv_lib_ncursesw_initscr" = xyes
21213 then :
21214 printf "%s\n" "#define HAVE_LIBNCURSESW 1" >>confdefs.h
21215
21216 LIBS="-lncursesw $LIBS"
21217
21218 else $as_nop
21219 as_fn_error $? "ncursesw doesn't provide initscr" "$LINENO" 5
21220 fi
21221
21222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether curses.h exposes wide-char functions by default" >&5
21223 printf %s "checking whether curses.h exposes wide-char functions by default... " >&6; }
21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225 /* end confdefs.h. */
21226
21227 #include <curses.h>
21228
21229 int
21230 main (void)
21231 {
21232 waddnwstr(stdscr, L"123", 3)
21233 ;
21234 return 0;
21235 }
21236 _ACEOF
21237 if ac_fn_cxx_try_link "$LINENO"
21238 then :
21239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21240 printf "%s\n" "yes" >&6; }
21241 else $as_nop
21242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21243 printf "%s\n" "no" >&6; }
21244 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
21245 fi
21246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21247 conftest$ac_exeext conftest.$ac_ext
21248
21249 fi
21250
21251 # fftw3
21252 if test "$visualizer" = "yes" ; then
21253 if test "$fftw" != "no" ; then
21254
21255 pkg_failed=no
21256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
21257 printf %s "checking for fftw3... " >&6; }
21258
21259 if test -n "$fftw3_CFLAGS"; then
21260 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
21261 elif test -n "$PKG_CONFIG"; then
21262 if test -n "$PKG_CONFIG" && \
21263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3\""; } >&5
21264 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3") 2>&5
21265 ac_status=$?
21266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21267 test $ac_status = 0; }; then
21268 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3" 2>/dev/null`
21269 test "x$?" != "x0" && pkg_failed=yes
21270 else
21271 pkg_failed=yes
21272 fi
21273 else
21274 pkg_failed=untried
21275 fi
21276 if test -n "$fftw3_LIBS"; then
21277 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
21278 elif test -n "$PKG_CONFIG"; then
21279 if test -n "$PKG_CONFIG" && \
21280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3\""; } >&5
21281 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3") 2>&5
21282 ac_status=$?
21283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21284 test $ac_status = 0; }; then
21285 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3" 2>/dev/null`
21286 test "x$?" != "x0" && pkg_failed=yes
21287 else
21288 pkg_failed=yes
21289 fi
21290 else
21291 pkg_failed=untried
21292 fi
21293
21294
21295
21296 if test $pkg_failed = yes; then
21297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21298 printf "%s\n" "no" >&6; }
21299
21300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21301 _pkg_short_errors_supported=yes
21302 else
21303 _pkg_short_errors_supported=no
21304 fi
21305 if test $_pkg_short_errors_supported = yes; then
21306 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3" 2>&1`
21307 else
21308 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3" 2>&1`
21309 fi
21310 # Put the nasty error message in config.log where it belongs
21311 echo "$fftw3_PKG_ERRORS" >&5
21312
21313 if test "$fftw" = "yes" ; then
21314 as_fn_error $? "fftw3 library is required!" "$LINENO" 5
21315 fi
21316
21317 elif test $pkg_failed = untried; then
21318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319 printf "%s\n" "no" >&6; }
21320 if test "$fftw" = "yes" ; then
21321 as_fn_error $? "fftw3 library is required!" "$LINENO" 5
21322 fi
21323
21324 else
21325 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
21326 fftw3_LIBS=$pkg_cv_fftw3_LIBS
21327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21328 printf "%s\n" "yes" >&6; }
21329
21330
21331
21332 CPPFLAGS="$CPPFLAGS $fftw3_CFLAGS"
21333 for ac_header in fftw3.h
21334 do :
21335 ac_fn_cxx_check_header_compile "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
21336 if test "x$ac_cv_header_fftw3_h" = xyes
21337 then :
21338 printf "%s\n" "#define HAVE_FFTW3_H 1" >>confdefs.h
21339 LIBS="$LIBS $fftw3_LIBS"
21340
21341 else $as_nop
21342 if test "$fftw" = "yes" ; then
21343 as_fn_error $? "missing fftw3.h header" "$LINENO" 5
21344 fi
21345
21346 fi
21347
21348 done
21349
21350 fi
21351 fi
21352
21353 printf "%s\n" "#define ENABLE_VISUALIZER 1" >>confdefs.h
21354
21355 fi
21356
21357 # libcurl
21358
21359 pkg_failed=no
21360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
21361 printf %s "checking for libcurl... " >&6; }
21362
21363 if test -n "$libcurl_CFLAGS"; then
21364 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
21365 elif test -n "$PKG_CONFIG"; then
21366 if test -n "$PKG_CONFIG" && \
21367 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
21368 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21369 ac_status=$?
21370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21371 test $ac_status = 0; }; then
21372 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
21373 test "x$?" != "x0" && pkg_failed=yes
21374 else
21375 pkg_failed=yes
21376 fi
21377 else
21378 pkg_failed=untried
21379 fi
21380 if test -n "$libcurl_LIBS"; then
21381 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
21382 elif test -n "$PKG_CONFIG"; then
21383 if test -n "$PKG_CONFIG" && \
21384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
21385 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
21386 ac_status=$?
21387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21388 test $ac_status = 0; }; then
21389 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
21390 test "x$?" != "x0" && pkg_failed=yes
21391 else
21392 pkg_failed=yes
21393 fi
21394 else
21395 pkg_failed=untried
21396 fi
21397
21398
21399
21400 if test $pkg_failed = yes; then
21401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21402 printf "%s\n" "no" >&6; }
21403
21404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21405 _pkg_short_errors_supported=yes
21406 else
21407 _pkg_short_errors_supported=no
21408 fi
21409 if test $_pkg_short_errors_supported = yes; then
21410 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
21411 else
21412 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
21413 fi
21414 # Put the nasty error message in config.log where it belongs
21415 echo "$libcurl_PKG_ERRORS" >&5
21416
21417 as_fn_error $? "libcurl is required!" "$LINENO" 5
21418
21419 elif test $pkg_failed = untried; then
21420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21421 printf "%s\n" "no" >&6; }
21422 as_fn_error $? "libcurl is required!" "$LINENO" 5
21423
21424 else
21425 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
21426 libcurl_LIBS=$pkg_cv_libcurl_LIBS
21427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21428 printf "%s\n" "yes" >&6; }
21429
21430
21431
21432 CPPFLAGS="$CPPFLAGS $libcurl_CFLAGS"
21433 for ac_header in curl/curl.h
21434 do :
21435 ac_fn_cxx_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
21436 if test "x$ac_cv_header_curl_curl_h" = xyes
21437 then :
21438 printf "%s\n" "#define HAVE_CURL_CURL_H 1" >>confdefs.h
21439 LIBS="$LIBS $libcurl_LIBS"
21440
21441 else $as_nop
21442 as_fn_error $? "missing curl/curl.h header" "$LINENO" 5
21443
21444 fi
21445
21446 done
21447
21448 fi
21449
21450 # taglib
21451 if test "$taglib" != "no" ; then
21452 # Extract the first word of "taglib-config", so it can be a program name with args.
21453 set dummy taglib-config; ac_word=$2
21454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21455 printf %s "checking for $ac_word... " >&6; }
21456 if test ${ac_cv_path_TAGLIB_CONFIG+y}
21457 then :
21458 printf %s "(cached) " >&6
21459 else $as_nop
21460 case $TAGLIB_CONFIG in
21461 [\\/]* | ?:[\\/]*)
21462 ac_cv_path_TAGLIB_CONFIG="$TAGLIB_CONFIG" # Let the user override the test with a path.
21463 ;;
21464 *)
21465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21466 for as_dir in $PATH
21467 do
21468 IFS=$as_save_IFS
21469 case $as_dir in #(((
21470 '') as_dir=./ ;;
21471 */) ;;
21472 *) as_dir=$as_dir/ ;;
21473 esac
21474 for ac_exec_ext in '' $ac_executable_extensions; do
21475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21476 ac_cv_path_TAGLIB_CONFIG="$as_dir$ac_word$ac_exec_ext"
21477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21478 break 2
21479 fi
21480 done
21481 done
21482 IFS=$as_save_IFS
21483
21484 ;;
21485 esac
21486 fi
21487 TAGLIB_CONFIG=$ac_cv_path_TAGLIB_CONFIG
21488 if test -n "$TAGLIB_CONFIG"; then
21489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAGLIB_CONFIG" >&5
21490 printf "%s\n" "$TAGLIB_CONFIG" >&6; }
21491 else
21492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493 printf "%s\n" "no" >&6; }
21494 fi
21495
21496
21497 if test "$TAGLIB_CONFIG" != "" ; then
21498 CPPFLAGS="$CPPFLAGS `$TAGLIB_CONFIG --cflags`"
21499 LIBS="$LIBS `$TAGLIB_CONFIG --libs`"
21500 for ac_header in taglib.h
21501 do :
21502 ac_fn_cxx_check_header_compile "$LINENO" "taglib.h" "ac_cv_header_taglib_h" "$ac_includes_default"
21503 if test "x$ac_cv_header_taglib_h" = xyes
21504 then :
21505 printf "%s\n" "#define HAVE_TAGLIB_H 1" >>confdefs.h
21506
21507 else $as_nop
21508 if test "$taglib" = "yes" ; then
21509 as_fn_error $? "missing taglib.h header" "$LINENO" 5
21510 fi
21511
21512 fi
21513
21514 done
21515 else
21516 if test "$taglib" = "yes" ; then
21517 as_fn_error $? "taglib-config executable is missing" "$LINENO" 5
21518 fi
21519 fi
21520 fi
21521
21522 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
21523
21524 cat >confcache <<\_ACEOF
21525 # This file is a shell script that caches the results of configure
21526 # tests run on this system so they can be shared between configure
21527 # scripts and configure runs, see configure's option --config-cache.
21528 # It is not useful on other systems. If it contains results you don't
21529 # want to keep, you may remove or edit it.
21530 #
21531 # config.status only pays attention to the cache file if you give it
21532 # the --recheck option to rerun configure.
21533 #
21534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21536 # following values.
21537
21538 _ACEOF
21539
21540 # The following way of writing the cache mishandles newlines in values,
21541 # but we know of no workaround that is simple, portable, and efficient.
21542 # So, we kill variables containing newlines.
21543 # Ultrix sh set writes to stderr and can't be redirected directly,
21544 # and sets the high bit in the cache file unless we assign to the vars.
21545 (
21546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21547 eval ac_val=\$$ac_var
21548 case $ac_val in #(
21549 *${as_nl}*)
21550 case $ac_var in #(
21551 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21552 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21553 esac
21554 case $ac_var in #(
21555 _ | IFS | as_nl) ;; #(
21556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21557 *) { eval $ac_var=; unset $ac_var;} ;;
21558 esac ;;
21559 esac
21560 done
21561
21562 (set) 2>&1 |
21563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21564 *${as_nl}ac_space=\ *)
21565 # `set' does not quote correctly, so add quotes: double-quote
21566 # substitution turns \\\\ into \\, and sed turns \\ into \.
21567 sed -n \
21568 "s/'/'\\\\''/g;
21569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21570 ;; #(
21571 *)
21572 # `set' quotes correctly as required by POSIX, so do not add quotes.
21573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21574 ;;
21575 esac |
21576 sort
21577 ) |
21578 sed '
21579 /^ac_cv_env_/b end
21580 t clear
21581 :clear
21582 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21583 t end
21584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21585 :end' >>confcache
21586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21587 if test -w "$cache_file"; then
21588 if test "x$cache_file" != "x/dev/null"; then
21589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21590 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21591 if test ! -f "$cache_file" || test -h "$cache_file"; then
21592 cat confcache >"$cache_file"
21593 else
21594 case $cache_file in #(
21595 */* | ?:*)
21596 mv -f confcache "$cache_file"$$ &&
21597 mv -f "$cache_file"$$ "$cache_file" ;; #(
21598 *)
21599 mv -f confcache "$cache_file" ;;
21600 esac
21601 fi
21602 fi
21603 else
21604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21605 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21606 fi
21607 fi
21608 rm -f confcache
21609
21610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21611 # Let make expand exec_prefix.
21612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21613
21614 DEFS=-DHAVE_CONFIG_H
21615
21616 ac_libobjs=
21617 ac_ltlibobjs=
21618 U=
21619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21620 # 1. Remove the extension, and $U if already installed.
21621 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21622 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21623 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21624 # will be set to the directory where LIBOBJS objects are built.
21625 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21626 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21627 done
21628 LIBOBJS=$ac_libobjs
21629
21630 LTLIBOBJS=$ac_ltlibobjs
21631
21632
21633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21634 printf %s "checking that generated files are newer than configure... " >&6; }
21635 if test -n "$am_sleep_pid"; then
21636 # Hide warnings about reused PIDs.
21637 wait $am_sleep_pid 2>/dev/null
21638 fi
21639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21640 printf "%s\n" "done" >&6; }
21641 if test -n "$EXEEXT"; then
21642 am__EXEEXT_TRUE=
21643 am__EXEEXT_FALSE='#'
21644 else
21645 am__EXEEXT_TRUE='#'
21646 am__EXEEXT_FALSE=
21647 fi
21648
21649 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21650 as_fn_error $? "conditional \"AMDEP\" was never defined.
21651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21652 fi
21653 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21654 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21656 fi
21657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21658 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21660 fi
21661
21662 : "${CONFIG_STATUS=./config.status}"
21663 ac_write_fail=0
21664 ac_clean_files_save=$ac_clean_files
21665 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21667 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21668 as_write_fail=0
21669 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21670 #! $SHELL
21671 # Generated by $as_me.
21672 # Run this file to recreate the current configuration.
21673 # Compiler output produced by configure, useful for debugging
21674 # configure, is in config.log if it exists.
21675
21676 debug=false
21677 ac_cs_recheck=false
21678 ac_cs_silent=false
21679
21680 SHELL=\${CONFIG_SHELL-$SHELL}
21681 export SHELL
21682 _ASEOF
21683 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21684 ## -------------------- ##
21685 ## M4sh Initialization. ##
21686 ## -------------------- ##
21687
21688 # Be more Bourne compatible
21689 DUALCASE=1; export DUALCASE # for MKS sh
21690 as_nop=:
21691 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21692 then :
21693 emulate sh
21694 NULLCMD=:
21695 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21696 # is contrary to our usage. Disable this feature.
21697 alias -g '${1+"$@"}'='"$@"'
21698 setopt NO_GLOB_SUBST
21699 else $as_nop
21700 case `(set -o) 2>/dev/null` in #(
21701 *posix*) :
21702 set -o posix ;; #(
21703 *) :
21704 ;;
21705 esac
21706 fi
21707
21708
21709
21710 # Reset variables that may have inherited troublesome values from
21711 # the environment.
21712
21713 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21714 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21715 # side effect of setting IFS to empty, thus disabling word splitting.)
21716 # Quoting is to prevent editors from complaining about space-tab.
21717 as_nl='
21718 '
21719 export as_nl
21720 IFS=" "" $as_nl"
21721
21722 PS1='$ '
21723 PS2='> '
21724 PS4='+ '
21725
21726 # Ensure predictable behavior from utilities with locale-dependent output.
21727 LC_ALL=C
21728 export LC_ALL
21729 LANGUAGE=C
21730 export LANGUAGE
21731
21732 # We cannot yet rely on "unset" to work, but we need these variables
21733 # to be unset--not just set to an empty or harmless value--now, to
21734 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21735 # also avoids known problems related to "unset" and subshell syntax
21736 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21737 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21738 do eval test \${$as_var+y} \
21739 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21740 done
21741
21742 # Ensure that fds 0, 1, and 2 are open.
21743 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21744 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21745 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21746
21747 # The user is always right.
21748 if ${PATH_SEPARATOR+false} :; then
21749 PATH_SEPARATOR=:
21750 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21751 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21752 PATH_SEPARATOR=';'
21753 }
21754 fi
21755
21756
21757 # Find who we are. Look in the path if we contain no directory separator.
21758 as_myself=
21759 case $0 in #((
21760 *[\\/]* ) as_myself=$0 ;;
21761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762 for as_dir in $PATH
21763 do
21764 IFS=$as_save_IFS
21765 case $as_dir in #(((
21766 '') as_dir=./ ;;
21767 */) ;;
21768 *) as_dir=$as_dir/ ;;
21769 esac
21770 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21771 done
21772 IFS=$as_save_IFS
21773
21774 ;;
21775 esac
21776 # We did not find ourselves, most probably we were run as `sh COMMAND'
21777 # in which case we are not to be found in the path.
21778 if test "x$as_myself" = x; then
21779 as_myself=$0
21780 fi
21781 if test ! -f "$as_myself"; then
21782 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21783 exit 1
21784 fi
21785
21786
21787
21788 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21789 # ----------------------------------------
21790 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21791 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21792 # script with STATUS, using 1 if that was 0.
21793 as_fn_error ()
21794 {
21795 as_status=$1; test $as_status -eq 0 && as_status=1
21796 if test "$4"; then
21797 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21799 fi
21800 printf "%s\n" "$as_me: error: $2" >&2
21801 as_fn_exit $as_status
21802 } # as_fn_error
21803
21804
21805
21806 # as_fn_set_status STATUS
21807 # -----------------------
21808 # Set $? to STATUS, without forking.
21809 as_fn_set_status ()
21810 {
21811 return $1
21812 } # as_fn_set_status
21813
21814 # as_fn_exit STATUS
21815 # -----------------
21816 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21817 as_fn_exit ()
21818 {
21819 set +e
21820 as_fn_set_status $1
21821 exit $1
21822 } # as_fn_exit
21823
21824 # as_fn_unset VAR
21825 # ---------------
21826 # Portably unset VAR.
21827 as_fn_unset ()
21828 {
21829 { eval $1=; unset $1;}
21830 }
21831 as_unset=as_fn_unset
21832
21833 # as_fn_append VAR VALUE
21834 # ----------------------
21835 # Append the text in VALUE to the end of the definition contained in VAR. Take
21836 # advantage of any shell optimizations that allow amortized linear growth over
21837 # repeated appends, instead of the typical quadratic growth present in naive
21838 # implementations.
21839 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21840 then :
21841 eval 'as_fn_append ()
21842 {
21843 eval $1+=\$2
21844 }'
21845 else $as_nop
21846 as_fn_append ()
21847 {
21848 eval $1=\$$1\$2
21849 }
21850 fi # as_fn_append
21851
21852 # as_fn_arith ARG...
21853 # ------------------
21854 # Perform arithmetic evaluation on the ARGs, and store the result in the
21855 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21856 # must be portable across $(()) and expr.
21857 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21858 then :
21859 eval 'as_fn_arith ()
21860 {
21861 as_val=$(( $* ))
21862 }'
21863 else $as_nop
21864 as_fn_arith ()
21865 {
21866 as_val=`expr "$@" || test $? -eq 1`
21867 }
21868 fi # as_fn_arith
21869
21870
21871 if expr a : '\(a\)' >/dev/null 2>&1 &&
21872 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21873 as_expr=expr
21874 else
21875 as_expr=false
21876 fi
21877
21878 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21879 as_basename=basename
21880 else
21881 as_basename=false
21882 fi
21883
21884 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21885 as_dirname=dirname
21886 else
21887 as_dirname=false
21888 fi
21889
21890 as_me=`$as_basename -- "$0" ||
21891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21892 X"$0" : 'X\(//\)$' \| \
21893 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21894 printf "%s\n" X/"$0" |
21895 sed '/^.*\/\([^/][^/]*\)\/*$/{
21896 s//\1/
21897 q
21898 }
21899 /^X\/\(\/\/\)$/{
21900 s//\1/
21901 q
21902 }
21903 /^X\/\(\/\).*/{
21904 s//\1/
21905 q
21906 }
21907 s/.*/./; q'`
21908
21909 # Avoid depending upon Character Ranges.
21910 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21911 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21912 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21913 as_cr_digits='0123456789'
21914 as_cr_alnum=$as_cr_Letters$as_cr_digits
21915
21916
21917 # Determine whether it's possible to make 'echo' print without a newline.
21918 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21919 # for compatibility with existing Makefiles.
21920 ECHO_C= ECHO_N= ECHO_T=
21921 case `echo -n x` in #(((((
21922 -n*)
21923 case `echo 'xy\c'` in
21924 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21925 xy) ECHO_C='\c';;
21926 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21927 ECHO_T=' ';;
21928 esac;;
21929 *)
21930 ECHO_N='-n';;
21931 esac
21932
21933 # For backward compatibility with old third-party macros, we provide
21934 # the shell variables $as_echo and $as_echo_n. New code should use
21935 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21936 as_echo='printf %s\n'
21937 as_echo_n='printf %s'
21938
21939 rm -f conf$$ conf$$.exe conf$$.file
21940 if test -d conf$$.dir; then
21941 rm -f conf$$.dir/conf$$.file
21942 else
21943 rm -f conf$$.dir
21944 mkdir conf$$.dir 2>/dev/null
21945 fi
21946 if (echo >conf$$.file) 2>/dev/null; then
21947 if ln -s conf$$.file conf$$ 2>/dev/null; then
21948 as_ln_s='ln -s'
21949 # ... but there are two gotchas:
21950 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21951 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21952 # In both cases, we have to default to `cp -pR'.
21953 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21954 as_ln_s='cp -pR'
21955 elif ln conf$$.file conf$$ 2>/dev/null; then
21956 as_ln_s=ln
21957 else
21958 as_ln_s='cp -pR'
21959 fi
21960 else
21961 as_ln_s='cp -pR'
21962 fi
21963 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21964 rmdir conf$$.dir 2>/dev/null
21965
21966
21967 # as_fn_mkdir_p
21968 # -------------
21969 # Create "$as_dir" as a directory, including parents if necessary.
21970 as_fn_mkdir_p ()
21971 {
21972
21973 case $as_dir in #(
21974 -*) as_dir=./$as_dir;;
21975 esac
21976 test -d "$as_dir" || eval $as_mkdir_p || {
21977 as_dirs=
21978 while :; do
21979 case $as_dir in #(
21980 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21981 *) as_qdir=$as_dir;;
21982 esac
21983 as_dirs="'$as_qdir' $as_dirs"
21984 as_dir=`$as_dirname -- "$as_dir" ||
21985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21986 X"$as_dir" : 'X\(//\)[^/]' \| \
21987 X"$as_dir" : 'X\(//\)$' \| \
21988 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21989 printf "%s\n" X"$as_dir" |
21990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21991 s//\1/
21992 q
21993 }
21994 /^X\(\/\/\)[^/].*/{
21995 s//\1/
21996 q
21997 }
21998 /^X\(\/\/\)$/{
21999 s//\1/
22000 q
22001 }
22002 /^X\(\/\).*/{
22003 s//\1/
22004 q
22005 }
22006 s/.*/./; q'`
22007 test -d "$as_dir" && break
22008 done
22009 test -z "$as_dirs" || eval "mkdir $as_dirs"
22010 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22011
22012
22013 } # as_fn_mkdir_p
22014 if mkdir -p . 2>/dev/null; then
22015 as_mkdir_p='mkdir -p "$as_dir"'
22016 else
22017 test -d ./-p && rmdir ./-p
22018 as_mkdir_p=false
22019 fi
22020
22021
22022 # as_fn_executable_p FILE
22023 # -----------------------
22024 # Test if FILE is an executable regular file.
22025 as_fn_executable_p ()
22026 {
22027 test -f "$1" && test -x "$1"
22028 } # as_fn_executable_p
22029 as_test_x='test -x'
22030 as_executable_p=as_fn_executable_p
22031
22032 # Sed expression to map a string onto a valid CPP name.
22033 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22034
22035 # Sed expression to map a string onto a valid variable name.
22036 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22037
22038
22039 exec 6>&1
22040 ## ----------------------------------- ##
22041 ## Main body of $CONFIG_STATUS script. ##
22042 ## ----------------------------------- ##
22043 _ASEOF
22044 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22045
22046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22047 # Save the log message, to keep $0 and so on meaningful, and to
22048 # report actual input values of CONFIG_FILES etc. instead of their
22049 # values after options handling.
22050 ac_log="
22051 This file was extended by ncmpcpp $as_me 0.9.2, which was
22052 generated by GNU Autoconf 2.70. Invocation command line was
22053
22054 CONFIG_FILES = $CONFIG_FILES
22055 CONFIG_HEADERS = $CONFIG_HEADERS
22056 CONFIG_LINKS = $CONFIG_LINKS
22057 CONFIG_COMMANDS = $CONFIG_COMMANDS
22058 $ $0 $@
22059
22060 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22061 "
22062
22063 _ACEOF
22064
22065 case $ac_config_files in *"
22066 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22067 esac
22068
22069 case $ac_config_headers in *"
22070 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22071 esac
22072
22073
22074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22075 # Files that config.status was made for.
22076 config_files="$ac_config_files"
22077 config_headers="$ac_config_headers"
22078 config_commands="$ac_config_commands"
22079
22080 _ACEOF
22081
22082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22083 ac_cs_usage="\
22084 \`$as_me' instantiates files and other configuration actions
22085 from templates according to the current configuration. Unless the files
22086 and actions are specified as TAGs, all are instantiated by default.
22087
22088 Usage: $0 [OPTION]... [TAG]...
22089
22090 -h, --help print this help, then exit
22091 -V, --version print version number and configuration settings, then exit
22092 --config print configuration, then exit
22093 -q, --quiet, --silent
22094 do not print progress messages
22095 -d, --debug don't remove temporary files
22096 --recheck update $as_me by reconfiguring in the same conditions
22097 --file=FILE[:TEMPLATE]
22098 instantiate the configuration file FILE
22099 --header=FILE[:TEMPLATE]
22100 instantiate the configuration header FILE
22101
22102 Configuration files:
22103 $config_files
22104
22105 Configuration headers:
22106 $config_headers
22107
22108 Configuration commands:
22109 $config_commands
22110
22111 Report bugs to the package provider."
22112
22113 _ACEOF
22114 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22115 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22117 ac_cs_config='$ac_cs_config_escaped'
22118 ac_cs_version="\\
22119 ncmpcpp config.status 0.9.2
22120 configured by $0, generated by GNU Autoconf 2.70,
22121 with options \\"\$ac_cs_config\\"
22122
22123 Copyright (C) 2020 Free Software Foundation, Inc.
22124 This config.status script is free software; the Free Software Foundation
22125 gives unlimited permission to copy, distribute and modify it."
22126
22127 ac_pwd='$ac_pwd'
22128 srcdir='$srcdir'
22129 INSTALL='$INSTALL'
22130 MKDIR_P='$MKDIR_P'
22131 AWK='$AWK'
22132 test -n "\$AWK" || AWK=awk
22133 _ACEOF
22134
22135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22136 # The default lists apply if the user does not specify any file.
22137 ac_need_defaults=:
22138 while test $# != 0
22139 do
22140 case $1 in
22141 --*=?*)
22142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22143 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22144 ac_shift=:
22145 ;;
22146 --*=)
22147 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22148 ac_optarg=
22149 ac_shift=:
22150 ;;
22151 *)
22152 ac_option=$1
22153 ac_optarg=$2
22154 ac_shift=shift
22155 ;;
22156 esac
22157
22158 case $ac_option in
22159 # Handling of the options.
22160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22161 ac_cs_recheck=: ;;
22162 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22163 printf "%s\n" "$ac_cs_version"; exit ;;
22164 --config | --confi | --conf | --con | --co | --c )
22165 printf "%s\n" "$ac_cs_config"; exit ;;
22166 --debug | --debu | --deb | --de | --d | -d )
22167 debug=: ;;
22168 --file | --fil | --fi | --f )
22169 $ac_shift
22170 case $ac_optarg in
22171 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22172 '') as_fn_error $? "missing file argument" ;;
22173 esac
22174 as_fn_append CONFIG_FILES " '$ac_optarg'"
22175 ac_need_defaults=false;;
22176 --header | --heade | --head | --hea )
22177 $ac_shift
22178 case $ac_optarg in
22179 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22180 esac
22181 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22182 ac_need_defaults=false;;
22183 --he | --h)
22184 # Conflict between --help and --header
22185 as_fn_error $? "ambiguous option: \`$1'
22186 Try \`$0 --help' for more information.";;
22187 --help | --hel | -h )
22188 printf "%s\n" "$ac_cs_usage"; exit ;;
22189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22190 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22191 ac_cs_silent=: ;;
22192
22193 # This is an error.
22194 -*) as_fn_error $? "unrecognized option: \`$1'
22195 Try \`$0 --help' for more information." ;;
22196
22197 *) as_fn_append ac_config_targets " $1"
22198 ac_need_defaults=false ;;
22199
22200 esac
22201 shift
22202 done
22203
22204 ac_configure_extra_args=
22205
22206 if $ac_cs_silent; then
22207 exec 6>/dev/null
22208 ac_configure_extra_args="$ac_configure_extra_args --silent"
22209 fi
22210
22211 _ACEOF
22212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22213 if \$ac_cs_recheck; then
22214 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22215 shift
22216 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22217 CONFIG_SHELL='$SHELL'
22218 export CONFIG_SHELL
22219 exec "\$@"
22220 fi
22221
22222 _ACEOF
22223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22224 exec 5>>config.log
22225 {
22226 echo
22227 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22228 ## Running $as_me. ##
22229 _ASBOX
22230 printf "%s\n" "$ac_log"
22231 } >&5
22232
22233 _ACEOF
22234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22235 #
22236 # INIT-COMMANDS
22237 #
22238 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22239
22240
22241 # The HP-UX ksh and POSIX shell print the target directory to stdout
22242 # if CDPATH is set.
22243 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22244
22245 sed_quote_subst='$sed_quote_subst'
22246 double_quote_subst='$double_quote_subst'
22247 delay_variable_subst='$delay_variable_subst'
22248 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22249 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22250 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22251 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22252 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22253 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22254 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22255 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22256 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22257 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22258 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22259 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22260 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22261 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22262 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22263 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22264 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22265 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22266 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22267 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22268 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22269 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22270 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22271 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22272 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22273 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22274 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22275 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22276 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22277 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22278 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22279 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22280 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22281 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22282 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22283 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22284 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22285 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22286 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22287 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22288 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22289 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22290 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22291 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22292 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22293 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22294 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22295 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22296 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22297 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22298 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22299 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22300 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22301 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22302 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22303 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22304 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22305 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22306 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22307 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"`'
22308 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22309 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22310 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22311 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22312 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22313 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22314 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22315 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22316 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22317 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22318 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22319 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22320 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22321 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22322 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22323 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22324 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22325 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22326 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22327 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22328 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22329 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22330 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22331 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22332 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22333 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22334 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22335 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22336 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22337 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22338 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22339 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22340 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22341 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22342 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22343 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22344 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22345 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22346 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22347 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22348 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22349 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22350 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22351 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22352 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22353 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22354 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22355 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22356 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22357 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22358 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22359 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22360 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22361 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22362 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22363 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22364 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22365 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22366 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22367 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22368 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22369 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22370 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22371 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22372 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22373 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22374 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22375 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22376 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22377 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22378 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22379 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22380 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22381 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22382 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22383 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22384 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22385 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22386 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22387 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22388 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22389 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22390 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22391 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22392 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22393 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22394 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22395 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22396 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22397 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22398 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22399 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22400 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22401 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22402 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22403 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22404 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22405 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22406 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22407 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22408 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22409 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22410 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22411 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22412 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22413 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22414 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22415 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22416 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22417 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22418 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22419 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22420 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22421 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22422 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22423 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22424 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22425 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22426 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22427 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22428 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22429 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22430 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22431 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22432 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22433 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22434 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22435 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22436 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22437 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22438
22439 LTCC='$LTCC'
22440 LTCFLAGS='$LTCFLAGS'
22441 compiler='$compiler_DEFAULT'
22442
22443 # A function that is used when there is no print builtin or printf.
22444 func_fallback_echo ()
22445 {
22446 eval 'cat <<_LTECHO_EOF
22447 \$1
22448 _LTECHO_EOF'
22449 }
22450
22451 # Quote evaled strings.
22452 for var in SHELL \
22453 ECHO \
22454 PATH_SEPARATOR \
22455 SED \
22456 GREP \
22457 EGREP \
22458 FGREP \
22459 LD \
22460 NM \
22461 LN_S \
22462 lt_SP2NL \
22463 lt_NL2SP \
22464 reload_flag \
22465 OBJDUMP \
22466 deplibs_check_method \
22467 file_magic_cmd \
22468 file_magic_glob \
22469 want_nocaseglob \
22470 DLLTOOL \
22471 sharedlib_from_linklib_cmd \
22472 AR \
22473 archiver_list_spec \
22474 STRIP \
22475 RANLIB \
22476 CC \
22477 CFLAGS \
22478 compiler \
22479 lt_cv_sys_global_symbol_pipe \
22480 lt_cv_sys_global_symbol_to_cdecl \
22481 lt_cv_sys_global_symbol_to_import \
22482 lt_cv_sys_global_symbol_to_c_name_address \
22483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22484 lt_cv_nm_interface \
22485 nm_file_list_spec \
22486 lt_cv_truncate_bin \
22487 lt_prog_compiler_no_builtin_flag \
22488 lt_prog_compiler_pic \
22489 lt_prog_compiler_wl \
22490 lt_prog_compiler_static \
22491 lt_cv_prog_compiler_c_o \
22492 need_locks \
22493 MANIFEST_TOOL \
22494 DSYMUTIL \
22495 NMEDIT \
22496 LIPO \
22497 OTOOL \
22498 OTOOL64 \
22499 shrext_cmds \
22500 export_dynamic_flag_spec \
22501 whole_archive_flag_spec \
22502 compiler_needs_object \
22503 with_gnu_ld \
22504 allow_undefined_flag \
22505 no_undefined_flag \
22506 hardcode_libdir_flag_spec \
22507 hardcode_libdir_separator \
22508 exclude_expsyms \
22509 include_expsyms \
22510 file_list_spec \
22511 variables_saved_for_relink \
22512 libname_spec \
22513 library_names_spec \
22514 soname_spec \
22515 install_override_mode \
22516 finish_eval \
22517 old_striplib \
22518 striplib \
22519 compiler_lib_search_dirs \
22520 predep_objects \
22521 postdep_objects \
22522 predeps \
22523 postdeps \
22524 compiler_lib_search_path \
22525 LD_CXX \
22526 reload_flag_CXX \
22527 compiler_CXX \
22528 lt_prog_compiler_no_builtin_flag_CXX \
22529 lt_prog_compiler_pic_CXX \
22530 lt_prog_compiler_wl_CXX \
22531 lt_prog_compiler_static_CXX \
22532 lt_cv_prog_compiler_c_o_CXX \
22533 export_dynamic_flag_spec_CXX \
22534 whole_archive_flag_spec_CXX \
22535 compiler_needs_object_CXX \
22536 with_gnu_ld_CXX \
22537 allow_undefined_flag_CXX \
22538 no_undefined_flag_CXX \
22539 hardcode_libdir_flag_spec_CXX \
22540 hardcode_libdir_separator_CXX \
22541 exclude_expsyms_CXX \
22542 include_expsyms_CXX \
22543 file_list_spec_CXX \
22544 compiler_lib_search_dirs_CXX \
22545 predep_objects_CXX \
22546 postdep_objects_CXX \
22547 predeps_CXX \
22548 postdeps_CXX \
22549 compiler_lib_search_path_CXX; do
22550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22551 *[\\\\\\\`\\"\\\$]*)
22552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22553 ;;
22554 *)
22555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22556 ;;
22557 esac
22558 done
22559
22560 # Double-quote double-evaled strings.
22561 for var in reload_cmds \
22562 old_postinstall_cmds \
22563 old_postuninstall_cmds \
22564 old_archive_cmds \
22565 extract_expsyms_cmds \
22566 old_archive_from_new_cmds \
22567 old_archive_from_expsyms_cmds \
22568 archive_cmds \
22569 archive_expsym_cmds \
22570 module_cmds \
22571 module_expsym_cmds \
22572 export_symbols_cmds \
22573 prelink_cmds \
22574 postlink_cmds \
22575 postinstall_cmds \
22576 postuninstall_cmds \
22577 finish_cmds \
22578 sys_lib_search_path_spec \
22579 configure_time_dlsearch_path \
22580 configure_time_lt_sys_library_path \
22581 reload_cmds_CXX \
22582 old_archive_cmds_CXX \
22583 old_archive_from_new_cmds_CXX \
22584 old_archive_from_expsyms_cmds_CXX \
22585 archive_cmds_CXX \
22586 archive_expsym_cmds_CXX \
22587 module_cmds_CXX \
22588 module_expsym_cmds_CXX \
22589 export_symbols_cmds_CXX \
22590 prelink_cmds_CXX \
22591 postlink_cmds_CXX; do
22592 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22593 *[\\\\\\\`\\"\\\$]*)
22594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22595 ;;
22596 *)
22597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22598 ;;
22599 esac
22600 done
22601
22602 ac_aux_dir='$ac_aux_dir'
22603
22604 # See if we are running on zsh, and set the options that allow our
22605 # commands through without removal of \ escapes INIT.
22606 if test -n "\${ZSH_VERSION+set}"; then
22607 setopt NO_GLOB_SUBST
22608 fi
22609
22610
22611 PACKAGE='$PACKAGE'
22612 VERSION='$VERSION'
22613 RM='$RM'
22614 ofile='$ofile'
22615
22616
22617
22618
22619
22620
22621 _ACEOF
22622
22623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22624
22625 # Handling of arguments.
22626 for ac_config_target in $ac_config_targets
22627 do
22628 case $ac_config_target in
22629 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22630 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22631 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22632 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22633 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22634 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22635
22636 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22637 esac
22638 done
22639
22640
22641 # If the user did not use the arguments to specify the items to instantiate,
22642 # then the envvar interface is used. Set only those that are not.
22643 # We use the long form for the default assignment because of an extremely
22644 # bizarre bug on SunOS 4.1.3.
22645 if $ac_need_defaults; then
22646 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22647 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22648 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22649 fi
22650
22651 # Have a temporary directory for convenience. Make it in the build tree
22652 # simply because there is no reason against having it here, and in addition,
22653 # creating and moving files from /tmp can sometimes cause problems.
22654 # Hook for its removal unless debugging.
22655 # Note that there is a small window in which the directory will not be cleaned:
22656 # after its creation but before its name has been assigned to `$tmp'.
22657 $debug ||
22658 {
22659 tmp= ac_tmp=
22660 trap 'exit_status=$?
22661 : "${ac_tmp:=$tmp}"
22662 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22663 ' 0
22664 trap 'as_fn_exit 1' 1 2 13 15
22665 }
22666 # Create a (secure) tmp directory for tmp files.
22667
22668 {
22669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22670 test -d "$tmp"
22671 } ||
22672 {
22673 tmp=./conf$$-$RANDOM
22674 (umask 077 && mkdir "$tmp")
22675 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22676 ac_tmp=$tmp
22677
22678 # Set up the scripts for CONFIG_FILES section.
22679 # No need to generate them if there are no CONFIG_FILES.
22680 # This happens for instance with `./config.status config.h'.
22681 if test -n "$CONFIG_FILES"; then
22682
22683
22684 ac_cr=`echo X | tr X '\015'`
22685 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22686 # But we know of no other shell where ac_cr would be empty at this
22687 # point, so we can use a bashism as a fallback.
22688 if test "x$ac_cr" = x; then
22689 eval ac_cr=\$\'\\r\'
22690 fi
22691 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22692 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22693 ac_cs_awk_cr='\\r'
22694 else
22695 ac_cs_awk_cr=$ac_cr
22696 fi
22697
22698 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22699 _ACEOF
22700
22701
22702 {
22703 echo "cat >conf$$subs.awk <<_ACEOF" &&
22704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22705 echo "_ACEOF"
22706 } >conf$$subs.sh ||
22707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22709 ac_delim='%!_!# '
22710 for ac_last_try in false false false false false :; do
22711 . ./conf$$subs.sh ||
22712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22713
22714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22715 if test $ac_delim_n = $ac_delim_num; then
22716 break
22717 elif $ac_last_try; then
22718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22719 else
22720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22721 fi
22722 done
22723 rm -f conf$$subs.sh
22724
22725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22726 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22727 _ACEOF
22728 sed -n '
22729 h
22730 s/^/S["/; s/!.*/"]=/
22731 p
22732 g
22733 s/^[^!]*!//
22734 :repl
22735 t repl
22736 s/'"$ac_delim"'$//
22737 t delim
22738 :nl
22739 h
22740 s/\(.\{148\}\)..*/\1/
22741 t more1
22742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22743 p
22744 n
22745 b repl
22746 :more1
22747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22748 p
22749 g
22750 s/.\{148\}//
22751 t nl
22752 :delim
22753 h
22754 s/\(.\{148\}\)..*/\1/
22755 t more2
22756 s/["\\]/\\&/g; s/^/"/; s/$/"/
22757 p
22758 b
22759 :more2
22760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22761 p
22762 g
22763 s/.\{148\}//
22764 t delim
22765 ' <conf$$subs.awk | sed '
22766 /^[^""]/{
22767 N
22768 s/\n//
22769 }
22770 ' >>$CONFIG_STATUS || ac_write_fail=1
22771 rm -f conf$$subs.awk
22772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22773 _ACAWK
22774 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22775 for (key in S) S_is_set[key] = 1
22776 FS = ""
22777
22778 }
22779 {
22780 line = $ 0
22781 nfields = split(line, field, "@")
22782 substed = 0
22783 len = length(field[1])
22784 for (i = 2; i < nfields; i++) {
22785 key = field[i]
22786 keylen = length(key)
22787 if (S_is_set[key]) {
22788 value = S[key]
22789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22790 len += length(value) + length(field[++i])
22791 substed = 1
22792 } else
22793 len += 1 + keylen
22794 }
22795
22796 print line
22797 }
22798
22799 _ACAWK
22800 _ACEOF
22801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22802 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22803 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22804 else
22805 cat
22806 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22807 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22808 _ACEOF
22809
22810 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22811 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22812 # trailing colons and then remove the whole line if VPATH becomes empty
22813 # (actually we leave an empty line to preserve line numbers).
22814 if test "x$srcdir" = x.; then
22815 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22816 h
22817 s///
22818 s/^/:/
22819 s/[ ]*$/:/
22820 s/:\$(srcdir):/:/g
22821 s/:\${srcdir}:/:/g
22822 s/:@srcdir@:/:/g
22823 s/^:*//
22824 s/:*$//
22825 x
22826 s/\(=[ ]*\).*/\1/
22827 G
22828 s/\n//
22829 s/^[^=]*=[ ]*$//
22830 }'
22831 fi
22832
22833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22834 fi # test -n "$CONFIG_FILES"
22835
22836 # Set up the scripts for CONFIG_HEADERS section.
22837 # No need to generate them if there are no CONFIG_HEADERS.
22838 # This happens for instance with `./config.status Makefile'.
22839 if test -n "$CONFIG_HEADERS"; then
22840 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22841 BEGIN {
22842 _ACEOF
22843
22844 # Transform confdefs.h into an awk script `defines.awk', embedded as
22845 # here-document in config.status, that substitutes the proper values into
22846 # config.h.in to produce config.h.
22847
22848 # Create a delimiter string that does not exist in confdefs.h, to ease
22849 # handling of long lines.
22850 ac_delim='%!_!# '
22851 for ac_last_try in false false :; do
22852 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22853 if test -z "$ac_tt"; then
22854 break
22855 elif $ac_last_try; then
22856 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22857 else
22858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22859 fi
22860 done
22861
22862 # For the awk script, D is an array of macro values keyed by name,
22863 # likewise P contains macro parameters if any. Preserve backslash
22864 # newline sequences.
22865
22866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22867 sed -n '
22868 s/.\{148\}/&'"$ac_delim"'/g
22869 t rset
22870 :rset
22871 s/^[ ]*#[ ]*define[ ][ ]*/ /
22872 t def
22873 d
22874 :def
22875 s/\\$//
22876 t bsnl
22877 s/["\\]/\\&/g
22878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22879 D["\1"]=" \3"/p
22880 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22881 d
22882 :bsnl
22883 s/["\\]/\\&/g
22884 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22885 D["\1"]=" \3\\\\\\n"\\/p
22886 t cont
22887 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22888 t cont
22889 d
22890 :cont
22891 n
22892 s/.\{148\}/&'"$ac_delim"'/g
22893 t clear
22894 :clear
22895 s/\\$//
22896 t bsnlc
22897 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22898 d
22899 :bsnlc
22900 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22901 b cont
22902 ' <confdefs.h | sed '
22903 s/'"$ac_delim"'/"\\\
22904 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22905
22906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22907 for (key in D) D_is_set[key] = 1
22908 FS = ""
22909 }
22910 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22911 line = \$ 0
22912 split(line, arg, " ")
22913 if (arg[1] == "#") {
22914 defundef = arg[2]
22915 mac1 = arg[3]
22916 } else {
22917 defundef = substr(arg[1], 2)
22918 mac1 = arg[2]
22919 }
22920 split(mac1, mac2, "(") #)
22921 macro = mac2[1]
22922 prefix = substr(line, 1, index(line, defundef) - 1)
22923 if (D_is_set[macro]) {
22924 # Preserve the white space surrounding the "#".
22925 print prefix "define", macro P[macro] D[macro]
22926 next
22927 } else {
22928 # Replace #undef with comments. This is necessary, for example,
22929 # in the case of _POSIX_SOURCE, which is predefined and required
22930 # on some systems where configure will not decide to define it.
22931 if (defundef == "undef") {
22932 print "/*", prefix defundef, macro, "*/"
22933 next
22934 }
22935 }
22936 }
22937 { print }
22938 _ACAWK
22939 _ACEOF
22940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22941 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22942 fi # test -n "$CONFIG_HEADERS"
22943
22944
22945 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22946 shift
22947 for ac_tag
22948 do
22949 case $ac_tag in
22950 :[FHLC]) ac_mode=$ac_tag; continue;;
22951 esac
22952 case $ac_mode$ac_tag in
22953 :[FHL]*:*);;
22954 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22955 :[FH]-) ac_tag=-:-;;
22956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22957 esac
22958 ac_save_IFS=$IFS
22959 IFS=:
22960 set x $ac_tag
22961 IFS=$ac_save_IFS
22962 shift
22963 ac_file=$1
22964 shift
22965
22966 case $ac_mode in
22967 :L) ac_source=$1;;
22968 :[FH])
22969 ac_file_inputs=
22970 for ac_f
22971 do
22972 case $ac_f in
22973 -) ac_f="$ac_tmp/stdin";;
22974 *) # Look for the file first in the build tree, then in the source tree
22975 # (if the path is not absolute). The absolute path cannot be DOS-style,
22976 # because $ac_f cannot contain `:'.
22977 test -f "$ac_f" ||
22978 case $ac_f in
22979 [\\/$]*) false;;
22980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22981 esac ||
22982 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22983 esac
22984 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22985 as_fn_append ac_file_inputs " '$ac_f'"
22986 done
22987
22988 # Let's still pretend it is `configure' which instantiates (i.e., don't
22989 # use $as_me), people would be surprised to read:
22990 # /* config.h. Generated by config.status. */
22991 configure_input='Generated from '`
22992 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22993 `' by configure.'
22994 if test x"$ac_file" != x-; then
22995 configure_input="$ac_file. $configure_input"
22996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22997 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22998 fi
22999 # Neutralize special characters interpreted by sed in replacement strings.
23000 case $configure_input in #(
23001 *\&* | *\|* | *\\* )
23002 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
23003 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23004 *) ac_sed_conf_input=$configure_input;;
23005 esac
23006
23007 case $ac_tag in
23008 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23010 esac
23011 ;;
23012 esac
23013
23014 ac_dir=`$as_dirname -- "$ac_file" ||
23015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23016 X"$ac_file" : 'X\(//\)[^/]' \| \
23017 X"$ac_file" : 'X\(//\)$' \| \
23018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23019 printf "%s\n" X"$ac_file" |
23020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23021 s//\1/
23022 q
23023 }
23024 /^X\(\/\/\)[^/].*/{
23025 s//\1/
23026 q
23027 }
23028 /^X\(\/\/\)$/{
23029 s//\1/
23030 q
23031 }
23032 /^X\(\/\).*/{
23033 s//\1/
23034 q
23035 }
23036 s/.*/./; q'`
23037 as_dir="$ac_dir"; as_fn_mkdir_p
23038 ac_builddir=.
23039
23040 case "$ac_dir" in
23041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23042 *)
23043 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23044 # A ".." for each directory in $ac_dir_suffix.
23045 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23046 case $ac_top_builddir_sub in
23047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23049 esac ;;
23050 esac
23051 ac_abs_top_builddir=$ac_pwd
23052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23053 # for backward compatibility:
23054 ac_top_builddir=$ac_top_build_prefix
23055
23056 case $srcdir in
23057 .) # We are building in place.
23058 ac_srcdir=.
23059 ac_top_srcdir=$ac_top_builddir_sub
23060 ac_abs_top_srcdir=$ac_pwd ;;
23061 [\\/]* | ?:[\\/]* ) # Absolute name.
23062 ac_srcdir=$srcdir$ac_dir_suffix;
23063 ac_top_srcdir=$srcdir
23064 ac_abs_top_srcdir=$srcdir ;;
23065 *) # Relative name.
23066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23067 ac_top_srcdir=$ac_top_build_prefix$srcdir
23068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23069 esac
23070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23071
23072
23073 case $ac_mode in
23074 :F)
23075 #
23076 # CONFIG_FILE
23077 #
23078
23079 case $INSTALL in
23080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23082 esac
23083 ac_MKDIR_P=$MKDIR_P
23084 case $MKDIR_P in
23085 [\\/$]* | ?:[\\/]* ) ;;
23086 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23087 esac
23088 _ACEOF
23089
23090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23091 # If the template does not know about datarootdir, expand it.
23092 # FIXME: This hack should be removed a few years after 2.60.
23093 ac_datarootdir_hack=; ac_datarootdir_seen=
23094 ac_sed_dataroot='
23095 /datarootdir/ {
23096 p
23097 q
23098 }
23099 /@datadir@/p
23100 /@docdir@/p
23101 /@infodir@/p
23102 /@localedir@/p
23103 /@mandir@/p'
23104 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23105 *datarootdir*) ac_datarootdir_seen=yes;;
23106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23108 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23109 _ACEOF
23110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23111 ac_datarootdir_hack='
23112 s&@datadir@&$datadir&g
23113 s&@docdir@&$docdir&g
23114 s&@infodir@&$infodir&g
23115 s&@localedir@&$localedir&g
23116 s&@mandir@&$mandir&g
23117 s&\\\${datarootdir}&$datarootdir&g' ;;
23118 esac
23119 _ACEOF
23120
23121 # Neutralize VPATH when `$srcdir' = `.'.
23122 # Shell code in configure.ac might set extrasub.
23123 # FIXME: do we really want to maintain this feature?
23124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23125 ac_sed_extra="$ac_vpsub
23126 $extrasub
23127 _ACEOF
23128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23129 :t
23130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23131 s|@configure_input@|$ac_sed_conf_input|;t t
23132 s&@top_builddir@&$ac_top_builddir_sub&;t t
23133 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23134 s&@srcdir@&$ac_srcdir&;t t
23135 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23136 s&@top_srcdir@&$ac_top_srcdir&;t t
23137 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23138 s&@builddir@&$ac_builddir&;t t
23139 s&@abs_builddir@&$ac_abs_builddir&;t t
23140 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23141 s&@INSTALL@&$ac_INSTALL&;t t
23142 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23143 $ac_datarootdir_hack
23144 "
23145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23146 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23147
23148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23149 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23151 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23153 which seems to be undefined. Please make sure it is defined" >&5
23154 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23155 which seems to be undefined. Please make sure it is defined" >&2;}
23156
23157 rm -f "$ac_tmp/stdin"
23158 case $ac_file in
23159 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23160 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23161 esac \
23162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23163 ;;
23164 :H)
23165 #
23166 # CONFIG_HEADER
23167 #
23168 if test x"$ac_file" != x-; then
23169 {
23170 printf "%s\n" "/* $configure_input */" >&1 \
23171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23172 } >"$ac_tmp/config.h" \
23173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23174 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23176 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23177 else
23178 rm -f "$ac_file"
23179 mv "$ac_tmp/config.h" "$ac_file" \
23180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23181 fi
23182 else
23183 printf "%s\n" "/* $configure_input */" >&1 \
23184 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23185 || as_fn_error $? "could not create -" "$LINENO" 5
23186 fi
23187 # Compute "$ac_file"'s index in $config_headers.
23188 _am_arg="$ac_file"
23189 _am_stamp_count=1
23190 for _am_header in $config_headers :; do
23191 case $_am_header in
23192 $_am_arg | $_am_arg:* )
23193 break ;;
23194 * )
23195 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23196 esac
23197 done
23198 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23199 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23200 X"$_am_arg" : 'X\(//\)[^/]' \| \
23201 X"$_am_arg" : 'X\(//\)$' \| \
23202 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23203 printf "%s\n" X"$_am_arg" |
23204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23205 s//\1/
23206 q
23207 }
23208 /^X\(\/\/\)[^/].*/{
23209 s//\1/
23210 q
23211 }
23212 /^X\(\/\/\)$/{
23213 s//\1/
23214 q
23215 }
23216 /^X\(\/\).*/{
23217 s//\1/
23218 q
23219 }
23220 s/.*/./; q'`/stamp-h$_am_stamp_count
23221 ;;
23222
23223 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23224 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23225 ;;
23226 esac
23227
23228
23229 case $ac_file$ac_mode in
23230 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23231 # Older Autoconf quotes --file arguments for eval, but not when files
23232 # are listed without --file. Let's play safe and only enable the eval
23233 # if we detect the quoting.
23234 # TODO: see whether this extra hack can be removed once we start
23235 # requiring Autoconf 2.70 or later.
23236 case $CONFIG_FILES in #(
23237 *\'*) :
23238 eval set x "$CONFIG_FILES" ;; #(
23239 *) :
23240 set x $CONFIG_FILES ;; #(
23241 *) :
23242 ;;
23243 esac
23244 shift
23245 # Used to flag and report bootstrapping failures.
23246 am_rc=0
23247 for am_mf
23248 do
23249 # Strip MF so we end up with the name of the file.
23250 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23251 # Check whether this is an Automake generated Makefile which includes
23252 # dependency-tracking related rules and includes.
23253 # Grep'ing the whole file directly is not great: AIX grep has a line
23254 # limit of 2048, but all sed's we know have understand at least 4000.
23255 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23256 || continue
23257 am_dirpart=`$as_dirname -- "$am_mf" ||
23258 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23259 X"$am_mf" : 'X\(//\)[^/]' \| \
23260 X"$am_mf" : 'X\(//\)$' \| \
23261 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23262 printf "%s\n" X"$am_mf" |
23263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23264 s//\1/
23265 q
23266 }
23267 /^X\(\/\/\)[^/].*/{
23268 s//\1/
23269 q
23270 }
23271 /^X\(\/\/\)$/{
23272 s//\1/
23273 q
23274 }
23275 /^X\(\/\).*/{
23276 s//\1/
23277 q
23278 }
23279 s/.*/./; q'`
23280 am_filepart=`$as_basename -- "$am_mf" ||
23281 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23282 X"$am_mf" : 'X\(//\)$' \| \
23283 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23284 printf "%s\n" X/"$am_mf" |
23285 sed '/^.*\/\([^/][^/]*\)\/*$/{
23286 s//\1/
23287 q
23288 }
23289 /^X\/\(\/\/\)$/{
23290 s//\1/
23291 q
23292 }
23293 /^X\/\(\/\).*/{
23294 s//\1/
23295 q
23296 }
23297 s/.*/./; q'`
23298 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23299 && sed -e '/# am--include-marker/d' "$am_filepart" \
23300 | $MAKE -f - am--depfiles" >&5
23301 (cd "$am_dirpart" \
23302 && sed -e '/# am--include-marker/d' "$am_filepart" \
23303 | $MAKE -f - am--depfiles) >&5 2>&5
23304 ac_status=$?
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } || am_rc=$?
23307 done
23308 if test $am_rc -ne 0; then
23309 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23310 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23311 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23312 for automatic dependency tracking. If GNU make was not used, consider
23313 re-running the configure script with MAKE=\"gmake\" (or whatever is
23314 necessary). You can also try re-running configure with the
23315 '--disable-dependency-tracking' option to at least be able to build
23316 the package (albeit without support for automatic dependency tracking).
23317 See \`config.log' for more details" "$LINENO" 5; }
23318 fi
23319 { am_dirpart=; unset am_dirpart;}
23320 { am_filepart=; unset am_filepart;}
23321 { am_mf=; unset am_mf;}
23322 { am_rc=; unset am_rc;}
23323 rm -f conftest-deps.mk
23324 }
23325 ;;
23326 "libtool":C)
23327
23328 # See if we are running on zsh, and set the options that allow our
23329 # commands through without removal of \ escapes.
23330 if test -n "${ZSH_VERSION+set}"; then
23331 setopt NO_GLOB_SUBST
23332 fi
23333
23334 cfgfile=${ofile}T
23335 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23336 $RM "$cfgfile"
23337
23338 cat <<_LT_EOF >> "$cfgfile"
23339 #! $SHELL
23340 # Generated automatically by $as_me ($PACKAGE) $VERSION
23341 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23342
23343 # Provide generalized library-building support services.
23344 # Written by Gordon Matzigkeit, 1996
23345
23346 # Copyright (C) 2014 Free Software Foundation, Inc.
23347 # This is free software; see the source for copying conditions. There is NO
23348 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23349
23350 # GNU Libtool is free software; you can redistribute it and/or modify
23351 # it under the terms of the GNU General Public License as published by
23352 # the Free Software Foundation; either version 2 of of the License, or
23353 # (at your option) any later version.
23354 #
23355 # As a special exception to the GNU General Public License, if you
23356 # distribute this file as part of a program or library that is built
23357 # using GNU Libtool, you may include this file under the same
23358 # distribution terms that you use for the rest of that program.
23359 #
23360 # GNU Libtool is distributed in the hope that it will be useful, but
23361 # WITHOUT ANY WARRANTY; without even the implied warranty of
23362 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23363 # GNU General Public License for more details.
23364 #
23365 # You should have received a copy of the GNU General Public License
23366 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23367
23368
23369 # The names of the tagged configurations supported by this script.
23370 available_tags='CXX '
23371
23372 # Configured defaults for sys_lib_dlsearch_path munging.
23373 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23374
23375 # ### BEGIN LIBTOOL CONFIG
23376
23377 # Which release of libtool.m4 was used?
23378 macro_version=$macro_version
23379 macro_revision=$macro_revision
23380
23381 # Whether or not to build shared libraries.
23382 build_libtool_libs=$enable_shared
23383
23384 # Whether or not to build static libraries.
23385 build_old_libs=$enable_static
23386
23387 # What type of objects to build.
23388 pic_mode=$pic_mode
23389
23390 # Whether or not to optimize for fast installation.
23391 fast_install=$enable_fast_install
23392
23393 # Shared archive member basename,for filename based shared library versioning on AIX.
23394 shared_archive_member_spec=$shared_archive_member_spec
23395
23396 # Shell to use when invoking shell scripts.
23397 SHELL=$lt_SHELL
23398
23399 # An echo program that protects backslashes.
23400 ECHO=$lt_ECHO
23401
23402 # The PATH separator for the build system.
23403 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23404
23405 # The host system.
23406 host_alias=$host_alias
23407 host=$host
23408 host_os=$host_os
23409
23410 # The build system.
23411 build_alias=$build_alias
23412 build=$build
23413 build_os=$build_os
23414
23415 # A sed program that does not truncate output.
23416 SED=$lt_SED
23417
23418 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23419 Xsed="\$SED -e 1s/^X//"
23420
23421 # A grep program that handles long lines.
23422 GREP=$lt_GREP
23423
23424 # An ERE matcher.
23425 EGREP=$lt_EGREP
23426
23427 # A literal string matcher.
23428 FGREP=$lt_FGREP
23429
23430 # A BSD- or MS-compatible name lister.
23431 NM=$lt_NM
23432
23433 # Whether we need soft or hard links.
23434 LN_S=$lt_LN_S
23435
23436 # What is the maximum length of a command?
23437 max_cmd_len=$max_cmd_len
23438
23439 # Object file suffix (normally "o").
23440 objext=$ac_objext
23441
23442 # Executable file suffix (normally "").
23443 exeext=$exeext
23444
23445 # whether the shell understands "unset".
23446 lt_unset=$lt_unset
23447
23448 # turn spaces into newlines.
23449 SP2NL=$lt_lt_SP2NL
23450
23451 # turn newlines into spaces.
23452 NL2SP=$lt_lt_NL2SP
23453
23454 # convert \$build file names to \$host format.
23455 to_host_file_cmd=$lt_cv_to_host_file_cmd
23456
23457 # convert \$build files to toolchain format.
23458 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23459
23460 # An object symbol dumper.
23461 OBJDUMP=$lt_OBJDUMP
23462
23463 # Method to check whether dependent libraries are shared objects.
23464 deplibs_check_method=$lt_deplibs_check_method
23465
23466 # Command to use when deplibs_check_method = "file_magic".
23467 file_magic_cmd=$lt_file_magic_cmd
23468
23469 # How to find potential files when deplibs_check_method = "file_magic".
23470 file_magic_glob=$lt_file_magic_glob
23471
23472 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23473 want_nocaseglob=$lt_want_nocaseglob
23474
23475 # DLL creation program.
23476 DLLTOOL=$lt_DLLTOOL
23477
23478 # Command to associate shared and link libraries.
23479 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23480
23481 # The archiver.
23482 AR=$lt_AR
23483
23484 # Flags to create an archive (by configure).
23485 lt_ar_flags=$lt_ar_flags
23486
23487 # Flags to create an archive.
23488 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23489
23490 # How to feed a file listing to the archiver.
23491 archiver_list_spec=$lt_archiver_list_spec
23492
23493 # A symbol stripping program.
23494 STRIP=$lt_STRIP
23495
23496 # Commands used to install an old-style archive.
23497 RANLIB=$lt_RANLIB
23498 old_postinstall_cmds=$lt_old_postinstall_cmds
23499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23500
23501 # Whether to use a lock for old archive extraction.
23502 lock_old_archive_extraction=$lock_old_archive_extraction
23503
23504 # A C compiler.
23505 LTCC=$lt_CC
23506
23507 # LTCC compiler flags.
23508 LTCFLAGS=$lt_CFLAGS
23509
23510 # Take the output of nm and produce a listing of raw symbols and C names.
23511 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23512
23513 # Transform the output of nm in a proper C declaration.
23514 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23515
23516 # Transform the output of nm into a list of symbols to manually relocate.
23517 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23518
23519 # Transform the output of nm in a C name address pair.
23520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23521
23522 # Transform the output of nm in a C name address pair when lib prefix is needed.
23523 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23524
23525 # The name lister interface.
23526 nm_interface=$lt_lt_cv_nm_interface
23527
23528 # Specify filename containing input files for \$NM.
23529 nm_file_list_spec=$lt_nm_file_list_spec
23530
23531 # The root where to search for dependent libraries,and where our libraries should be installed.
23532 lt_sysroot=$lt_sysroot
23533
23534 # Command to truncate a binary pipe.
23535 lt_truncate_bin=$lt_lt_cv_truncate_bin
23536
23537 # The name of the directory that contains temporary libtool files.
23538 objdir=$objdir
23539
23540 # Used to examine libraries when file_magic_cmd begins with "file".
23541 MAGIC_CMD=$MAGIC_CMD
23542
23543 # Must we lock files when doing compilation?
23544 need_locks=$lt_need_locks
23545
23546 # Manifest tool.
23547 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23548
23549 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23550 DSYMUTIL=$lt_DSYMUTIL
23551
23552 # Tool to change global to local symbols on Mac OS X.
23553 NMEDIT=$lt_NMEDIT
23554
23555 # Tool to manipulate fat objects and archives on Mac OS X.
23556 LIPO=$lt_LIPO
23557
23558 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23559 OTOOL=$lt_OTOOL
23560
23561 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23562 OTOOL64=$lt_OTOOL64
23563
23564 # Old archive suffix (normally "a").
23565 libext=$libext
23566
23567 # Shared library suffix (normally ".so").
23568 shrext_cmds=$lt_shrext_cmds
23569
23570 # The commands to extract the exported symbol list from a shared archive.
23571 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23572
23573 # Variables whose values should be saved in libtool wrapper scripts and
23574 # restored at link time.
23575 variables_saved_for_relink=$lt_variables_saved_for_relink
23576
23577 # Do we need the "lib" prefix for modules?
23578 need_lib_prefix=$need_lib_prefix
23579
23580 # Do we need a version for libraries?
23581 need_version=$need_version
23582
23583 # Library versioning type.
23584 version_type=$version_type
23585
23586 # Shared library runtime path variable.
23587 runpath_var=$runpath_var
23588
23589 # Shared library path variable.
23590 shlibpath_var=$shlibpath_var
23591
23592 # Is shlibpath searched before the hard-coded library search path?
23593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23594
23595 # Format of library name prefix.
23596 libname_spec=$lt_libname_spec
23597
23598 # List of archive names. First name is the real one, the rest are links.
23599 # The last name is the one that the linker finds with -lNAME
23600 library_names_spec=$lt_library_names_spec
23601
23602 # The coded name of the library, if different from the real name.
23603 soname_spec=$lt_soname_spec
23604
23605 # Permission mode override for installation of shared libraries.
23606 install_override_mode=$lt_install_override_mode
23607
23608 # Command to use after installation of a shared archive.
23609 postinstall_cmds=$lt_postinstall_cmds
23610
23611 # Command to use after uninstallation of a shared archive.
23612 postuninstall_cmds=$lt_postuninstall_cmds
23613
23614 # Commands used to finish a libtool library installation in a directory.
23615 finish_cmds=$lt_finish_cmds
23616
23617 # As "finish_cmds", except a single script fragment to be evaled but
23618 # not shown.
23619 finish_eval=$lt_finish_eval
23620
23621 # Whether we should hardcode library paths into libraries.
23622 hardcode_into_libs=$hardcode_into_libs
23623
23624 # Compile-time system search path for libraries.
23625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23626
23627 # Detected run-time system search path for libraries.
23628 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23629
23630 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23631 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23632
23633 # Whether dlopen is supported.
23634 dlopen_support=$enable_dlopen
23635
23636 # Whether dlopen of programs is supported.
23637 dlopen_self=$enable_dlopen_self
23638
23639 # Whether dlopen of statically linked programs is supported.
23640 dlopen_self_static=$enable_dlopen_self_static
23641
23642 # Commands to strip libraries.
23643 old_striplib=$lt_old_striplib
23644 striplib=$lt_striplib
23645
23646
23647 # The linker used to build libraries.
23648 LD=$lt_LD
23649
23650 # How to create reloadable object files.
23651 reload_flag=$lt_reload_flag
23652 reload_cmds=$lt_reload_cmds
23653
23654 # Commands used to build an old-style archive.
23655 old_archive_cmds=$lt_old_archive_cmds
23656
23657 # A language specific compiler.
23658 CC=$lt_compiler
23659
23660 # Is the compiler the GNU compiler?
23661 with_gcc=$GCC
23662
23663 # Compiler flag to turn off builtin functions.
23664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23665
23666 # Additional compiler flags for building library objects.
23667 pic_flag=$lt_lt_prog_compiler_pic
23668
23669 # How to pass a linker flag through the compiler.
23670 wl=$lt_lt_prog_compiler_wl
23671
23672 # Compiler flag to prevent dynamic linking.
23673 link_static_flag=$lt_lt_prog_compiler_static
23674
23675 # Does compiler simultaneously support -c and -o options?
23676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23677
23678 # Whether or not to add -lc for building shared libraries.
23679 build_libtool_need_lc=$archive_cmds_need_lc
23680
23681 # Whether or not to disallow shared libs when runtime libs are static.
23682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23683
23684 # Compiler flag to allow reflexive dlopens.
23685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23686
23687 # Compiler flag to generate shared objects directly from archives.
23688 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23689
23690 # Whether the compiler copes with passing no objects directly.
23691 compiler_needs_object=$lt_compiler_needs_object
23692
23693 # Create an old-style archive from a shared archive.
23694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23695
23696 # Create a temporary old-style archive to link instead of a shared archive.
23697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23698
23699 # Commands used to build a shared archive.
23700 archive_cmds=$lt_archive_cmds
23701 archive_expsym_cmds=$lt_archive_expsym_cmds
23702
23703 # Commands used to build a loadable module if different from building
23704 # a shared archive.
23705 module_cmds=$lt_module_cmds
23706 module_expsym_cmds=$lt_module_expsym_cmds
23707
23708 # Whether we are building with GNU ld or not.
23709 with_gnu_ld=$lt_with_gnu_ld
23710
23711 # Flag that allows shared libraries with undefined symbols to be built.
23712 allow_undefined_flag=$lt_allow_undefined_flag
23713
23714 # Flag that enforces no undefined symbols.
23715 no_undefined_flag=$lt_no_undefined_flag
23716
23717 # Flag to hardcode \$libdir into a binary during linking.
23718 # This must work even if \$libdir does not exist
23719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23720
23721 # Whether we need a single "-rpath" flag with a separated argument.
23722 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23723
23724 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23725 # DIR into the resulting binary.
23726 hardcode_direct=$hardcode_direct
23727
23728 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23729 # DIR into the resulting binary and the resulting library dependency is
23730 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23731 # library is relocated.
23732 hardcode_direct_absolute=$hardcode_direct_absolute
23733
23734 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23735 # into the resulting binary.
23736 hardcode_minus_L=$hardcode_minus_L
23737
23738 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23739 # into the resulting binary.
23740 hardcode_shlibpath_var=$hardcode_shlibpath_var
23741
23742 # Set to "yes" if building a shared library automatically hardcodes DIR
23743 # into the library and all subsequent libraries and executables linked
23744 # against it.
23745 hardcode_automatic=$hardcode_automatic
23746
23747 # Set to yes if linker adds runtime paths of dependent libraries
23748 # to runtime path list.
23749 inherit_rpath=$inherit_rpath
23750
23751 # Whether libtool must link a program against all its dependency libraries.
23752 link_all_deplibs=$link_all_deplibs
23753
23754 # Set to "yes" if exported symbols are required.
23755 always_export_symbols=$always_export_symbols
23756
23757 # The commands to list exported symbols.
23758 export_symbols_cmds=$lt_export_symbols_cmds
23759
23760 # Symbols that should not be listed in the preloaded symbols.
23761 exclude_expsyms=$lt_exclude_expsyms
23762
23763 # Symbols that must always be exported.
23764 include_expsyms=$lt_include_expsyms
23765
23766 # Commands necessary for linking programs (against libraries) with templates.
23767 prelink_cmds=$lt_prelink_cmds
23768
23769 # Commands necessary for finishing linking programs.
23770 postlink_cmds=$lt_postlink_cmds
23771
23772 # Specify filename containing input files.
23773 file_list_spec=$lt_file_list_spec
23774
23775 # How to hardcode a shared library path into an executable.
23776 hardcode_action=$hardcode_action
23777
23778 # The directories searched by this compiler when creating a shared library.
23779 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23780
23781 # Dependencies to place before and after the objects being linked to
23782 # create a shared library.
23783 predep_objects=$lt_predep_objects
23784 postdep_objects=$lt_postdep_objects
23785 predeps=$lt_predeps
23786 postdeps=$lt_postdeps
23787
23788 # The library search path used internally by the compiler when linking
23789 # a shared library.
23790 compiler_lib_search_path=$lt_compiler_lib_search_path
23791
23792 # ### END LIBTOOL CONFIG
23793
23794 _LT_EOF
23795
23796 cat <<'_LT_EOF' >> "$cfgfile"
23797
23798 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23799
23800 # func_munge_path_list VARIABLE PATH
23801 # -----------------------------------
23802 # VARIABLE is name of variable containing _space_ separated list of
23803 # directories to be munged by the contents of PATH, which is string
23804 # having a format:
23805 # "DIR[:DIR]:"
23806 # string "DIR[ DIR]" will be prepended to VARIABLE
23807 # ":DIR[:DIR]"
23808 # string "DIR[ DIR]" will be appended to VARIABLE
23809 # "DIRP[:DIRP]::[DIRA:]DIRA"
23810 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23811 # "DIRA[ DIRA]" will be appended to VARIABLE
23812 # "DIR[:DIR]"
23813 # VARIABLE will be replaced by "DIR[ DIR]"
23814 func_munge_path_list ()
23815 {
23816 case x$2 in
23817 x)
23818 ;;
23819 *:)
23820 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23821 ;;
23822 x:*)
23823 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23824 ;;
23825 *::*)
23826 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23827 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23828 ;;
23829 *)
23830 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23831 ;;
23832 esac
23833 }
23834
23835
23836 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23837 func_cc_basename ()
23838 {
23839 for cc_temp in $*""; do
23840 case $cc_temp in
23841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23843 \-*) ;;
23844 *) break;;
23845 esac
23846 done
23847 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23848 }
23849
23850
23851 # ### END FUNCTIONS SHARED WITH CONFIGURE
23852
23853 _LT_EOF
23854
23855 case $host_os in
23856 aix3*)
23857 cat <<\_LT_EOF >> "$cfgfile"
23858 # AIX sometimes has problems with the GCC collect2 program. For some
23859 # reason, if we set the COLLECT_NAMES environment variable, the problems
23860 # vanish in a puff of smoke.
23861 if test set != "${COLLECT_NAMES+set}"; then
23862 COLLECT_NAMES=
23863 export COLLECT_NAMES
23864 fi
23865 _LT_EOF
23866 ;;
23867 esac
23868
23869
23870
23871 ltmain=$ac_aux_dir/ltmain.sh
23872
23873
23874 # We use sed instead of cat because bash on DJGPP gets confused if
23875 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23876 # text mode, it properly converts lines to CR/LF. This bash problem
23877 # is reportedly fixed, but why not run on old versions too?
23878 sed '$q' "$ltmain" >> "$cfgfile" \
23879 || (rm -f "$cfgfile"; exit 1)
23880
23881 mv -f "$cfgfile" "$ofile" ||
23882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23883 chmod +x "$ofile"
23884
23885
23886 cat <<_LT_EOF >> "$ofile"
23887
23888 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23889
23890 # The linker used to build libraries.
23891 LD=$lt_LD_CXX
23892
23893 # How to create reloadable object files.
23894 reload_flag=$lt_reload_flag_CXX
23895 reload_cmds=$lt_reload_cmds_CXX
23896
23897 # Commands used to build an old-style archive.
23898 old_archive_cmds=$lt_old_archive_cmds_CXX
23899
23900 # A language specific compiler.
23901 CC=$lt_compiler_CXX
23902
23903 # Is the compiler the GNU compiler?
23904 with_gcc=$GCC_CXX
23905
23906 # Compiler flag to turn off builtin functions.
23907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23908
23909 # Additional compiler flags for building library objects.
23910 pic_flag=$lt_lt_prog_compiler_pic_CXX
23911
23912 # How to pass a linker flag through the compiler.
23913 wl=$lt_lt_prog_compiler_wl_CXX
23914
23915 # Compiler flag to prevent dynamic linking.
23916 link_static_flag=$lt_lt_prog_compiler_static_CXX
23917
23918 # Does compiler simultaneously support -c and -o options?
23919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23920
23921 # Whether or not to add -lc for building shared libraries.
23922 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23923
23924 # Whether or not to disallow shared libs when runtime libs are static.
23925 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23926
23927 # Compiler flag to allow reflexive dlopens.
23928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23929
23930 # Compiler flag to generate shared objects directly from archives.
23931 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23932
23933 # Whether the compiler copes with passing no objects directly.
23934 compiler_needs_object=$lt_compiler_needs_object_CXX
23935
23936 # Create an old-style archive from a shared archive.
23937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23938
23939 # Create a temporary old-style archive to link instead of a shared archive.
23940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23941
23942 # Commands used to build a shared archive.
23943 archive_cmds=$lt_archive_cmds_CXX
23944 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23945
23946 # Commands used to build a loadable module if different from building
23947 # a shared archive.
23948 module_cmds=$lt_module_cmds_CXX
23949 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23950
23951 # Whether we are building with GNU ld or not.
23952 with_gnu_ld=$lt_with_gnu_ld_CXX
23953
23954 # Flag that allows shared libraries with undefined symbols to be built.
23955 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23956
23957 # Flag that enforces no undefined symbols.
23958 no_undefined_flag=$lt_no_undefined_flag_CXX
23959
23960 # Flag to hardcode \$libdir into a binary during linking.
23961 # This must work even if \$libdir does not exist
23962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23963
23964 # Whether we need a single "-rpath" flag with a separated argument.
23965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23966
23967 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23968 # DIR into the resulting binary.
23969 hardcode_direct=$hardcode_direct_CXX
23970
23971 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23972 # DIR into the resulting binary and the resulting library dependency is
23973 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23974 # library is relocated.
23975 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23976
23977 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23978 # into the resulting binary.
23979 hardcode_minus_L=$hardcode_minus_L_CXX
23980
23981 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23982 # into the resulting binary.
23983 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23984
23985 # Set to "yes" if building a shared library automatically hardcodes DIR
23986 # into the library and all subsequent libraries and executables linked
23987 # against it.
23988 hardcode_automatic=$hardcode_automatic_CXX
23989
23990 # Set to yes if linker adds runtime paths of dependent libraries
23991 # to runtime path list.
23992 inherit_rpath=$inherit_rpath_CXX
23993
23994 # Whether libtool must link a program against all its dependency libraries.
23995 link_all_deplibs=$link_all_deplibs_CXX
23996
23997 # Set to "yes" if exported symbols are required.
23998 always_export_symbols=$always_export_symbols_CXX
23999
24000 # The commands to list exported symbols.
24001 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24002
24003 # Symbols that should not be listed in the preloaded symbols.
24004 exclude_expsyms=$lt_exclude_expsyms_CXX
24005
24006 # Symbols that must always be exported.
24007 include_expsyms=$lt_include_expsyms_CXX
24008
24009 # Commands necessary for linking programs (against libraries) with templates.
24010 prelink_cmds=$lt_prelink_cmds_CXX
24011
24012 # Commands necessary for finishing linking programs.
24013 postlink_cmds=$lt_postlink_cmds_CXX
24014
24015 # Specify filename containing input files.
24016 file_list_spec=$lt_file_list_spec_CXX
24017
24018 # How to hardcode a shared library path into an executable.
24019 hardcode_action=$hardcode_action_CXX
24020
24021 # The directories searched by this compiler when creating a shared library.
24022 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24023
24024 # Dependencies to place before and after the objects being linked to
24025 # create a shared library.
24026 predep_objects=$lt_predep_objects_CXX
24027 postdep_objects=$lt_postdep_objects_CXX
24028 predeps=$lt_predeps_CXX
24029 postdeps=$lt_postdeps_CXX
24030
24031 # The library search path used internally by the compiler when linking
24032 # a shared library.
24033 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24034
24035 # ### END LIBTOOL TAG CONFIG: CXX
24036 _LT_EOF
24037
24038 ;;
24039
24040 esac
24041 done # for ac_tag
24042
24043
24044 as_fn_exit 0
24045 _ACEOF
24046 ac_clean_files=$ac_clean_files_save
24047
24048 test $ac_write_fail = 0 ||
24049 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24050
24051
24052 # configure is writing to config.log, and then calls config.status.
24053 # config.status does its own redirection, appending to config.log.
24054 # Unfortunately, on DOS this fails, as config.log is still kept open
24055 # by configure, so config.status won't be able to write to it; its
24056 # output is simply discarded. So we exec the FD to /dev/null,
24057 # effectively closing config.log, so it can be properly (re)opened and
24058 # appended to by config.status. When coming back to configure, we
24059 # need to make the FD available again.
24060 if test "$no_create" != yes; then
24061 ac_cs_success=:
24062 ac_config_status_args=
24063 test "$silent" = yes &&
24064 ac_config_status_args="$ac_config_status_args --quiet"
24065 exec 5>/dev/null
24066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24067 exec 5>>config.log
24068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24069 # would make configure fail if this is the last instruction.
24070 $ac_cs_success || as_fn_exit 1
24071 fi
24072 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24074 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24075 fi
24076
24077