Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for CCfits 2.6.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='CCfits'
620 PACKAGE_TARNAME='CCfits'
621 PACKAGE_VERSION='2.7'
622 PACKAGE_STRING='CCfits 2.7'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 ac_unique_file="FITS.cxx"
627 # Factoring default headers for most tests.
628 ac_includes_default="\
629 #include <stddef.h>
630 #ifdef HAVE_STDIO_H
631 # include <stdio.h>
632 #endif
633 #ifdef HAVE_STDLIB_H
634 # include <stdlib.h>
635 #endif
636 #ifdef HAVE_STRING_H
637 # include <string.h>
638 #endif
639 #ifdef HAVE_INTTYPES_H
640 # include <inttypes.h>
641 #endif
642 #ifdef HAVE_STDINT_H
643 # include <stdint.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_SYS_TYPES_H
649 # include <sys/types.h>
650 #endif
651 #ifdef HAVE_SYS_STAT_H
652 # include <sys/stat.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_header_c_list=
659 ac_subst_vars='am__EXEEXT_FALSE
660 am__EXEEXT_TRUE
661 LTLIBOBJS
662 LIBOBJS
663 STLPORT
664 RDFLAGS
665 LIBSTDCPP
666 GMAKE
667 HAVE_CXX14
668 CXX_LIB_PATH
669 pfk_cxx_lib_path
670 CXXCPP
671 LT_SYS_LIBRARY_PATH
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 ac_ct_CC
696 CFLAGS
697 CC
698 LIBTOOL
699 am__fastdepCXX_FALSE
700 am__fastdepCXX_TRUE
701 CXXDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CXX
711 CPPFLAGS
712 LDFLAGS
713 CXXFLAGS
714 CXX
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 runstatedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL
793 am__quote'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_dependency_tracking
799 enable_static
800 enable_shared
801 with_pic
802 enable_fast_install
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 with_cfitsio
808 with_cfitsio_include
809 with_cfitsio_libdir
810 enable_msvc_code
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CXX
816 CXXFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CCC
821 CC
822 CFLAGS
823 LT_SYS_LIBRARY_PATH
824 CXXCPP'
825
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 runstatedir='${localstatedir}/run'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
885 fi
886
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
892
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
921
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: \`$ac_useropt'"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
954
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: \`$ac_useropt'"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
970
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
979
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
983
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
990
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
995
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1001
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1008
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1013
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1018
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1025
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1030
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1037
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1042
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1046
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1050
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1054
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1063
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1068
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1075
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1082
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1099
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1104
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1109
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1113
1114 -runstatedir | --runstatedir | --runstatedi | --runstated \
1115 | --runstate | --runstat | --runsta | --runst | --runs \
1116 | --run | --ru | --r)
1117 ac_prev=runstatedir ;;
1118 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1119 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1120 | --run=* | --ru=* | --r=*)
1121 runstatedir=$ac_optarg ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: \`$ac_useropt'"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: \`$ac_useropt'"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir runstatedir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 printf "%s\n" X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\).*/{
1330 s//\1/
1331 q
1332 }
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1337 fi
1338 else
1339 ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures CCfits 2.7 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/CCfits]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1428
1429 cat <<\_ACEOF
1430
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 --target=TARGET configure for building compilers for TARGET [HOST]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of CCfits 2.7:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-static[=PKGS] build static libraries [default=no]
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-msvc-code compile alternate code dealing
1465 with MS VC++ workarounds
1466
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1471 both]
1472 --with-aix-soname=aix|svr4|both
1473 shared library versioning (aka "SONAME") variant to
1474 provide on AIX, [default=aix].
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1477 compiler's sysroot if not specified).
1478 --with-cfitsio=DIR root directory of cfitsio installation
1479 --with-cfitsio-include=DIR specify exact include dir for cfitsio headers
1480 --with-cfitsio-libdir=DIR specify exact library dir for cfitsio library
1481 --without-cfitsio disables cfitsio usage completely
1482
1483 Some influential environment variables:
1484 CXX C++ compiler command
1485 CXXFLAGS C++ compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LT_SYS_LIBRARY_PATH
1494 User-defined run-time library search path.
1495 CXXCPP C++ preprocessor
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to the package provider.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for configure.gnu first; this name is used for a wrapper for
1547 # Metaconfig's "Configure" on case-insensitive file systems.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 CCfits configure 2.7
1565 generated by GNU Autoconf 2.71
1566
1567 Copyright (C) 2021 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571 exit
1572 fi
1573
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1577
1578 # ac_fn_cxx_try_compile LINENO
1579 # ----------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_cxx_try_compile ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext conftest.beam
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 printf "%s\n" "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_cxx_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext
1604 then :
1605 ac_retval=0
1606 else $as_nop
1607 printf "%s\n" "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_cxx_try_compile
1616
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest.beam
1624 if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 printf "%s\n" "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext
1643 then :
1644 ac_retval=0
1645 else $as_nop
1646 printf "%s\n" "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_compile
1655
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_link ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 printf "%s\n" "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
1683 test -x conftest$ac_exeext
1684 }
1685 then :
1686 ac_retval=0
1687 else $as_nop
1688 printf "%s\n" "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692 fi
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 printf %s "checking for $2... " >&6; }
1712 if eval test \${$3+y}
1713 then :
1714 printf %s "(cached) " >&6
1715 else $as_nop
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"
1722 then :
1723 eval "$3=yes"
1724 else $as_nop
1725 eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1728 fi
1729 eval ac_res=\$$3
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 printf "%s\n" "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_header_compile
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 printf %s "checking for $2... " >&6; }
1744 if eval test \${$3+y}
1745 then :
1746 printf %s "(cached) " >&6
1747 else $as_nop
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below. */
1756
1757 #include <limits.h>
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main (void)
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"
1783 then :
1784 eval "$3=yes"
1785 else $as_nop
1786 eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1789 conftest$ac_exeext conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_func
1797
1798 # ac_fn_cxx_try_cpp LINENO
1799 # ------------------------
1800 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_cxx_try_cpp ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if { { ac_try="$ac_cpp conftest.$ac_ext"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 printf "%s\n" "$ac_try_echo"; } >&5
1811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } > conftest.i && {
1820 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 }
1823 then :
1824 ac_retval=0
1825 else $as_nop
1826 printf "%s\n" "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830 fi
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_cxx_try_cpp
1835
1836 # ac_fn_cxx_try_link LINENO
1837 # -------------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_link ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 printf "%s\n" "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 test -x conftest$ac_exeext
1864 }
1865 then :
1866 ac_retval=0
1867 else $as_nop
1868 printf "%s\n" "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1880
1881 } # ac_fn_cxx_try_link
1882
1883 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1884 # ---------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_cxx_check_header_compile ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 printf %s "checking for $2... " >&6; }
1892 if eval test \${$3+y}
1893 then :
1894 printf %s "(cached) " >&6
1895 else $as_nop
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_cxx_try_compile "$LINENO"
1902 then :
1903 eval "$3=yes"
1904 else $as_nop
1905 eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 printf "%s\n" "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_cxx_check_header_compile
1915 ac_configure_args_raw=
1916 for ac_arg
1917 do
1918 case $ac_arg in
1919 *\'*)
1920 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 esac
1922 as_fn_append ac_configure_args_raw " '$ac_arg'"
1923 done
1924
1925 case $ac_configure_args_raw in
1926 *$as_nl*)
1927 ac_safe_unquote= ;;
1928 *)
1929 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1930 ac_unsafe_a="$ac_unsafe_z#~"
1931 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1932 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1933 esac
1934
1935 cat >config.log <<_ACEOF
1936 This file contains any messages produced by compilers while
1937 running configure, to aid debugging if configure makes a mistake.
1938
1939 It was created by CCfits $as_me 2.7, which was
1940 generated by GNU Autoconf 2.71. Invocation command line was
1941
1942 $ $0$ac_configure_args_raw
1943
1944 _ACEOF
1945 exec 5>>config.log
1946 {
1947 cat <<_ASUNAME
1948 ## --------- ##
1949 ## Platform. ##
1950 ## --------- ##
1951
1952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1957
1958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1960
1961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1964 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1968
1969 _ASUNAME
1970
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974 IFS=$as_save_IFS
1975 case $as_dir in #(((
1976 '') as_dir=./ ;;
1977 */) ;;
1978 *) as_dir=$as_dir/ ;;
1979 esac
1980 printf "%s\n" "PATH: $as_dir"
1981 done
1982 IFS=$as_save_IFS
1983
1984 } >&5
1985
1986 cat >&5 <<_ACEOF
1987
1988
1989 ## ----------- ##
1990 ## Core tests. ##
1991 ## ----------- ##
1992
1993 _ACEOF
1994
1995
1996 # Keep a trace of the command line.
1997 # Strip out --no-create and --no-recursion so they do not pile up.
1998 # Strip out --silent because we don't want to record it for future runs.
1999 # Also quote any args containing shell meta-characters.
2000 # Make two passes to allow for proper duplicate-argument suppression.
2001 ac_configure_args=
2002 ac_configure_args0=
2003 ac_configure_args1=
2004 ac_must_keep_next=false
2005 for ac_pass in 1 2
2006 do
2007 for ac_arg
2008 do
2009 case $ac_arg in
2010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2012 | -silent | --silent | --silen | --sile | --sil)
2013 continue ;;
2014 *\'*)
2015 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2016 esac
2017 case $ac_pass in
2018 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019 2)
2020 as_fn_append ac_configure_args1 " '$ac_arg'"
2021 if test $ac_must_keep_next = true; then
2022 ac_must_keep_next=false # Got value, back to normal.
2023 else
2024 case $ac_arg in
2025 *=* | --config-cache | -C | -disable-* | --disable-* \
2026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2028 | -with-* | --with-* | -without-* | --without-* | --x)
2029 case "$ac_configure_args0 " in
2030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2031 esac
2032 ;;
2033 -* ) ac_must_keep_next=true ;;
2034 esac
2035 fi
2036 as_fn_append ac_configure_args " '$ac_arg'"
2037 ;;
2038 esac
2039 done
2040 done
2041 { ac_configure_args0=; unset ac_configure_args0;}
2042 { ac_configure_args1=; unset ac_configure_args1;}
2043
2044 # When interrupted or exit'd, cleanup temporary files, and complete
2045 # config.log. We remove comments because anyway the quotes in there
2046 # would cause problems or look ugly.
2047 # WARNING: Use '\'' to represent an apostrophe within the trap.
2048 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2049 trap 'exit_status=$?
2050 # Sanitize IFS.
2051 IFS=" "" $as_nl"
2052 # Save into config.log some information that might help in debugging.
2053 {
2054 echo
2055
2056 printf "%s\n" "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2059 echo
2060 # The following way of writing the cache mishandles newlines in values,
2061 (
2062 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in #(
2065 *${as_nl}*)
2066 case $ac_var in #(
2067 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069 esac
2070 case $ac_var in #(
2071 _ | IFS | as_nl) ;; #(
2072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073 *) { eval $ac_var=; unset $ac_var;} ;;
2074 esac ;;
2075 esac
2076 done
2077 (set) 2>&1 |
2078 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079 *${as_nl}ac_space=\ *)
2080 sed -n \
2081 "s/'\''/'\''\\\\'\'''\''/g;
2082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083 ;; #(
2084 *)
2085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086 ;;
2087 esac |
2088 sort
2089 )
2090 echo
2091
2092 printf "%s\n" "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2095 echo
2096 for ac_var in $ac_subst_vars
2097 do
2098 eval ac_val=\$$ac_var
2099 case $ac_val in
2100 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 esac
2102 printf "%s\n" "$ac_var='\''$ac_val'\''"
2103 done | sort
2104 echo
2105
2106 if test -n "$ac_subst_files"; then
2107 printf "%s\n" "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2110 echo
2111 for ac_var in $ac_subst_files
2112 do
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 printf "%s\n" "$ac_var='\''$ac_val'\''"
2118 done | sort
2119 echo
2120 fi
2121
2122 if test -s confdefs.h; then
2123 printf "%s\n" "## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##"
2126 echo
2127 cat confdefs.h
2128 echo
2129 fi
2130 test "$ac_signal" != 0 &&
2131 printf "%s\n" "$as_me: caught signal $ac_signal"
2132 printf "%s\n" "$as_me: exit $exit_status"
2133 } >&5
2134 rm -f core *.core core.conftest.* &&
2135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136 exit $exit_status
2137 ' 0
2138 for ac_signal in 1 2 13 15; do
2139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2142
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2145
2146 printf "%s\n" "/* confdefs.h */" > confdefs.h
2147
2148 # Predefined preprocessor variables.
2149
2150 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2151
2152 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2153
2154 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2155
2156 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2157
2158 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2159
2160 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2161
2162
2163 # Let the site file select an alternate cache file if it wants to.
2164 # Prefer an explicitly selected file to automatically selected ones.
2165 if test -n "$CONFIG_SITE"; then
2166 ac_site_files="$CONFIG_SITE"
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2169 else
2170 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2171 fi
2172
2173 for ac_site_file in $ac_site_files
2174 do
2175 case $ac_site_file in #(
2176 */*) :
2177 ;; #(
2178 *) :
2179 ac_site_file=./$ac_site_file ;;
2180 esac
2181 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2183 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2184 sed 's/^/| /' "$ac_site_file" >&5
2185 . "$ac_site_file" \
2186 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2188 as_fn_error $? "failed to load site script $ac_site_file
2189 See \`config.log' for more details" "$LINENO" 5; }
2190 fi
2191 done
2192
2193 if test -r "$cache_file"; then
2194 # Some versions of bash will fail to source /dev/null (special files
2195 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2196 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2198 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2199 case $cache_file in
2200 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2201 *) . "./$cache_file";;
2202 esac
2203 fi
2204 else
2205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2206 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2207 >$cache_file
2208 fi
2209
2210 # Test code for whether the C++ compiler supports C++98 (global declarations)
2211 ac_cxx_conftest_cxx98_globals='
2212 // Does the compiler advertise C++98 conformance?
2213 #if !defined __cplusplus || __cplusplus < 199711L
2214 # error "Compiler does not advertise C++98 conformance"
2215 #endif
2216
2217 // These inclusions are to reject old compilers that
2218 // lack the unsuffixed header files.
2219 #include <cstdlib>
2220 #include <exception>
2221
2222 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2223 extern void assert (int);
2224 namespace std {
2225 extern int strcmp (const char *, const char *);
2226 }
2227
2228 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2229 using std::exception;
2230 using std::strcmp;
2231
2232 namespace {
2233
2234 void test_exception_syntax()
2235 {
2236 try {
2237 throw "test";
2238 } catch (const char *s) {
2239 // Extra parentheses suppress a warning when building autoconf itself,
2240 // due to lint rules shared with more typical C programs.
2241 assert (!(strcmp) (s, "test"));
2242 }
2243 }
2244
2245 template <typename T> struct test_template
2246 {
2247 T const val;
2248 explicit test_template(T t) : val(t) {}
2249 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2250 };
2251
2252 } // anonymous namespace
2253 '
2254
2255 # Test code for whether the C++ compiler supports C++98 (body of main)
2256 ac_cxx_conftest_cxx98_main='
2257 assert (argc);
2258 assert (! argv[0]);
2259 {
2260 test_exception_syntax ();
2261 test_template<double> tt (2.0);
2262 assert (tt.add (4) == 6.0);
2263 assert (true && !false);
2264 }
2265 '
2266
2267 # Test code for whether the C++ compiler supports C++11 (global declarations)
2268 ac_cxx_conftest_cxx11_globals='
2269 // Does the compiler advertise C++ 2011 conformance?
2270 #if !defined __cplusplus || __cplusplus < 201103L
2271 # error "Compiler does not advertise C++11 conformance"
2272 #endif
2273
2274 namespace cxx11test
2275 {
2276 constexpr int get_val() { return 20; }
2277
2278 struct testinit
2279 {
2280 int i;
2281 double d;
2282 };
2283
2284 class delegate
2285 {
2286 public:
2287 delegate(int n) : n(n) {}
2288 delegate(): delegate(2354) {}
2289
2290 virtual int getval() { return this->n; };
2291 protected:
2292 int n;
2293 };
2294
2295 class overridden : public delegate
2296 {
2297 public:
2298 overridden(int n): delegate(n) {}
2299 virtual int getval() override final { return this->n * 2; }
2300 };
2301
2302 class nocopy
2303 {
2304 public:
2305 nocopy(int i): i(i) {}
2306 nocopy() = default;
2307 nocopy(const nocopy&) = delete;
2308 nocopy & operator=(const nocopy&) = delete;
2309 private:
2310 int i;
2311 };
2312
2313 // for testing lambda expressions
2314 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2315 {
2316 return f(v);
2317 }
2318
2319 // for testing variadic templates and trailing return types
2320 template <typename V> auto sum(V first) -> V
2321 {
2322 return first;
2323 }
2324 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2325 {
2326 return first + sum(rest...);
2327 }
2328 }
2329 '
2330
2331 # Test code for whether the C++ compiler supports C++11 (body of main)
2332 ac_cxx_conftest_cxx11_main='
2333 {
2334 // Test auto and decltype
2335 auto a1 = 6538;
2336 auto a2 = 48573953.4;
2337 auto a3 = "String literal";
2338
2339 int total = 0;
2340 for (auto i = a3; *i; ++i) { total += *i; }
2341
2342 decltype(a2) a4 = 34895.034;
2343 }
2344 {
2345 // Test constexpr
2346 short sa[cxx11test::get_val()] = { 0 };
2347 }
2348 {
2349 // Test initializer lists
2350 cxx11test::testinit il = { 4323, 435234.23544 };
2351 }
2352 {
2353 // Test range-based for
2354 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2355 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2356 for (auto &x : array) { x += 23; }
2357 }
2358 {
2359 // Test lambda expressions
2360 using cxx11test::eval;
2361 assert (eval ([](int x) { return x*2; }, 21) == 42);
2362 double d = 2.0;
2363 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2364 assert (d == 5.0);
2365 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2366 assert (d == 5.0);
2367 }
2368 {
2369 // Test use of variadic templates
2370 using cxx11test::sum;
2371 auto a = sum(1);
2372 auto b = sum(1, 2);
2373 auto c = sum(1.0, 2.0, 3.0);
2374 }
2375 {
2376 // Test constructor delegation
2377 cxx11test::delegate d1;
2378 cxx11test::delegate d2();
2379 cxx11test::delegate d3(45);
2380 }
2381 {
2382 // Test override and final
2383 cxx11test::overridden o1(55464);
2384 }
2385 {
2386 // Test nullptr
2387 char *c = nullptr;
2388 }
2389 {
2390 // Test template brackets
2391 test_template<::test_template<int>> v(test_template<int>(12));
2392 }
2393 {
2394 // Unicode literals
2395 char const *utf8 = u8"UTF-8 string \u2500";
2396 char16_t const *utf16 = u"UTF-8 string \u2500";
2397 char32_t const *utf32 = U"UTF-32 string \u2500";
2398 }
2399 '
2400
2401 # Test code for whether the C compiler supports C++11 (complete).
2402 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2403 ${ac_cxx_conftest_cxx11_globals}
2404
2405 int
2406 main (int argc, char **argv)
2407 {
2408 int ok = 0;
2409 ${ac_cxx_conftest_cxx98_main}
2410 ${ac_cxx_conftest_cxx11_main}
2411 return ok;
2412 }
2413 "
2414
2415 # Test code for whether the C compiler supports C++98 (complete).
2416 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2417 int
2418 main (int argc, char **argv)
2419 {
2420 int ok = 0;
2421 ${ac_cxx_conftest_cxx98_main}
2422 return ok;
2423 }
2424 "
2425
2426 # Test code for whether the C compiler supports C89 (global declarations)
2427 ac_c_conftest_c89_globals='
2428 /* Does the compiler advertise C89 conformance?
2429 Do not test the value of __STDC__, because some compilers set it to 0
2430 while being otherwise adequately conformant. */
2431 #if !defined __STDC__
2432 # error "Compiler does not advertise C89 conformance"
2433 #endif
2434
2435 #include <stddef.h>
2436 #include <stdarg.h>
2437 struct stat;
2438 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2439 struct buf { int x; };
2440 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2441 static char *e (p, i)
2442 char **p;
2443 int i;
2444 {
2445 return p[i];
2446 }
2447 static char *f (char * (*g) (char **, int), char **p, ...)
2448 {
2449 char *s;
2450 va_list v;
2451 va_start (v,p);
2452 s = g (p, va_arg (v,int));
2453 va_end (v);
2454 return s;
2455 }
2456
2457 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2458 function prototypes and stuff, but not \xHH hex character constants.
2459 These do not provoke an error unfortunately, instead are silently treated
2460 as an "x". The following induces an error, until -std is added to get
2461 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2462 array size at least. It is necessary to write \x00 == 0 to get something
2463 that is true only with -std. */
2464 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2465
2466 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2467 inside strings and character constants. */
2468 #define FOO(x) '\''x'\''
2469 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2470
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2475 int, int);'
2476
2477 # Test code for whether the C compiler supports C89 (body of main).
2478 ac_c_conftest_c89_main='
2479 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2480 '
2481
2482 # Test code for whether the C compiler supports C99 (global declarations)
2483 ac_c_conftest_c99_globals='
2484 // Does the compiler advertise C99 conformance?
2485 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2486 # error "Compiler does not advertise C99 conformance"
2487 #endif
2488
2489 #include <stdbool.h>
2490 extern int puts (const char *);
2491 extern int printf (const char *, ...);
2492 extern int dprintf (int, const char *, ...);
2493 extern void *malloc (size_t);
2494
2495 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2496 // dprintf is used instead of fprintf to avoid needing to declare
2497 // FILE and stderr.
2498 #define debug(...) dprintf (2, __VA_ARGS__)
2499 #define showlist(...) puts (#__VA_ARGS__)
2500 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2501 static void
2502 test_varargs_macros (void)
2503 {
2504 int x = 1234;
2505 int y = 5678;
2506 debug ("Flag");
2507 debug ("X = %d\n", x);
2508 showlist (The first, second, and third items.);
2509 report (x>y, "x is %d but y is %d", x, y);
2510 }
2511
2512 // Check long long types.
2513 #define BIG64 18446744073709551615ull
2514 #define BIG32 4294967295ul
2515 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2516 #if !BIG_OK
2517 #error "your preprocessor is broken"
2518 #endif
2519 #if BIG_OK
2520 #else
2521 #error "your preprocessor is broken"
2522 #endif
2523 static long long int bignum = -9223372036854775807LL;
2524 static unsigned long long int ubignum = BIG64;
2525
2526 struct incomplete_array
2527 {
2528 int datasize;
2529 double data[];
2530 };
2531
2532 struct named_init {
2533 int number;
2534 const wchar_t *name;
2535 double average;
2536 };
2537
2538 typedef const char *ccp;
2539
2540 static inline int
2541 test_restrict (ccp restrict text)
2542 {
2543 // See if C++-style comments work.
2544 // Iterate through items via the restricted pointer.
2545 // Also check for declarations in for loops.
2546 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2547 continue;
2548 return 0;
2549 }
2550
2551 // Check varargs and va_copy.
2552 static bool
2553 test_varargs (const char *format, ...)
2554 {
2555 va_list args;
2556 va_start (args, format);
2557 va_list args_copy;
2558 va_copy (args_copy, args);
2559
2560 const char *str = "";
2561 int number = 0;
2562 float fnumber = 0;
2563
2564 while (*format)
2565 {
2566 switch (*format++)
2567 {
2568 case '\''s'\'': // string
2569 str = va_arg (args_copy, const char *);
2570 break;
2571 case '\''d'\'': // int
2572 number = va_arg (args_copy, int);
2573 break;
2574 case '\''f'\'': // float
2575 fnumber = va_arg (args_copy, double);
2576 break;
2577 default:
2578 break;
2579 }
2580 }
2581 va_end (args_copy);
2582 va_end (args);
2583
2584 return *str && number && fnumber;
2585 }
2586 '
2587
2588 # Test code for whether the C compiler supports C99 (body of main).
2589 ac_c_conftest_c99_main='
2590 // Check bool.
2591 _Bool success = false;
2592 success |= (argc != 0);
2593
2594 // Check restrict.
2595 if (test_restrict ("String literal") == 0)
2596 success = true;
2597 char *restrict newvar = "Another string";
2598
2599 // Check varargs.
2600 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2601 test_varargs_macros ();
2602
2603 // Check flexible array members.
2604 struct incomplete_array *ia =
2605 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2606 ia->datasize = 10;
2607 for (int i = 0; i < ia->datasize; ++i)
2608 ia->data[i] = i * 1.234;
2609
2610 // Check named initializers.
2611 struct named_init ni = {
2612 .number = 34,
2613 .name = L"Test wide string",
2614 .average = 543.34343,
2615 };
2616
2617 ni.number = 58;
2618
2619 int dynamic_array[ni.number];
2620 dynamic_array[0] = argv[0][0];
2621 dynamic_array[ni.number - 1] = 543;
2622
2623 // work around unused variable warnings
2624 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2625 || dynamic_array[ni.number - 1] != 543);
2626 '
2627
2628 # Test code for whether the C compiler supports C11 (global declarations)
2629 ac_c_conftest_c11_globals='
2630 // Does the compiler advertise C11 conformance?
2631 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2632 # error "Compiler does not advertise C11 conformance"
2633 #endif
2634
2635 // Check _Alignas.
2636 char _Alignas (double) aligned_as_double;
2637 char _Alignas (0) no_special_alignment;
2638 extern char aligned_as_int;
2639 char _Alignas (0) _Alignas (int) aligned_as_int;
2640
2641 // Check _Alignof.
2642 enum
2643 {
2644 int_alignment = _Alignof (int),
2645 int_array_alignment = _Alignof (int[100]),
2646 char_alignment = _Alignof (char)
2647 };
2648 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2649
2650 // Check _Noreturn.
2651 int _Noreturn does_not_return (void) { for (;;) continue; }
2652
2653 // Check _Static_assert.
2654 struct test_static_assert
2655 {
2656 int x;
2657 _Static_assert (sizeof (int) <= sizeof (long int),
2658 "_Static_assert does not work in struct");
2659 long int y;
2660 };
2661
2662 // Check UTF-8 literals.
2663 #define u8 syntax error!
2664 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2665
2666 // Check duplicate typedefs.
2667 typedef long *long_ptr;
2668 typedef long int *long_ptr;
2669 typedef long_ptr long_ptr;
2670
2671 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2672 struct anonymous
2673 {
2674 union {
2675 struct { int i; int j; };
2676 struct { int k; long int l; } w;
2677 };
2678 int m;
2679 } v1;
2680 '
2681
2682 # Test code for whether the C compiler supports C11 (body of main).
2683 ac_c_conftest_c11_main='
2684 _Static_assert ((offsetof (struct anonymous, i)
2685 == offsetof (struct anonymous, w.k)),
2686 "Anonymous union alignment botch");
2687 v1.i = 2;
2688 v1.w.k = 5;
2689 ok |= v1.i != 5;
2690 '
2691
2692 # Test code for whether the C compiler supports C11 (complete).
2693 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2694 ${ac_c_conftest_c99_globals}
2695 ${ac_c_conftest_c11_globals}
2696
2697 int
2698 main (int argc, char **argv)
2699 {
2700 int ok = 0;
2701 ${ac_c_conftest_c89_main}
2702 ${ac_c_conftest_c99_main}
2703 ${ac_c_conftest_c11_main}
2704 return ok;
2705 }
2706 "
2707
2708 # Test code for whether the C compiler supports C99 (complete).
2709 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2710 ${ac_c_conftest_c99_globals}
2711
2712 int
2713 main (int argc, char **argv)
2714 {
2715 int ok = 0;
2716 ${ac_c_conftest_c89_main}
2717 ${ac_c_conftest_c99_main}
2718 return ok;
2719 }
2720 "
2721
2722 # Test code for whether the C compiler supports C89 (complete).
2723 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2724
2725 int
2726 main (int argc, char **argv)
2727 {
2728 int ok = 0;
2729 ${ac_c_conftest_c89_main}
2730 return ok;
2731 }
2732 "
2733
2734 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2735 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2736 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2737 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2738 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2739 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2740 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2741 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2742 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2743
2744 # Auxiliary files required by this configure script.
2745 ac_aux_files="compile ltmain.sh missing install-sh config.guess config.sub"
2746
2747 # Locations in which to look for auxiliary files.
2748 ac_aux_dir_candidates="${srcdir}/config"
2749
2750 # Search for a directory containing all of the required auxiliary files,
2751 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2752 # If we don't find one directory that contains all the files we need,
2753 # we report the set of missing files from the *first* directory in
2754 # $ac_aux_dir_candidates and give up.
2755 ac_missing_aux_files=""
2756 ac_first_candidate=:
2757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 as_found=false
2760 for as_dir in $ac_aux_dir_candidates
2761 do
2762 IFS=$as_save_IFS
2763 case $as_dir in #(((
2764 '') as_dir=./ ;;
2765 */) ;;
2766 *) as_dir=$as_dir/ ;;
2767 esac
2768 as_found=:
2769
2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2771 ac_aux_dir_found=yes
2772 ac_install_sh=
2773 for ac_aux in $ac_aux_files
2774 do
2775 # As a special case, if "install-sh" is required, that requirement
2776 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2777 # and $ac_install_sh is set appropriately for whichever one is found.
2778 if test x"$ac_aux" = x"install-sh"
2779 then
2780 if test -f "${as_dir}install-sh"; then
2781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2782 ac_install_sh="${as_dir}install-sh -c"
2783 elif test -f "${as_dir}install.sh"; then
2784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2785 ac_install_sh="${as_dir}install.sh -c"
2786 elif test -f "${as_dir}shtool"; then
2787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2788 ac_install_sh="${as_dir}shtool install -c"
2789 else
2790 ac_aux_dir_found=no
2791 if $ac_first_candidate; then
2792 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2793 else
2794 break
2795 fi
2796 fi
2797 else
2798 if test -f "${as_dir}${ac_aux}"; then
2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2800 else
2801 ac_aux_dir_found=no
2802 if $ac_first_candidate; then
2803 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2804 else
2805 break
2806 fi
2807 fi
2808 fi
2809 done
2810 if test "$ac_aux_dir_found" = yes; then
2811 ac_aux_dir="$as_dir"
2812 break
2813 fi
2814 ac_first_candidate=false
2815
2816 as_found=false
2817 done
2818 IFS=$as_save_IFS
2819 if $as_found
2820 then :
2821
2822 else $as_nop
2823 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2824 fi
2825
2826
2827 # These three variables are undocumented and unsupported,
2828 # and are intended to be withdrawn in a future Autoconf release.
2829 # They can cause serious problems if a builder's source tree is in a directory
2830 # whose full name contains unusual characters.
2831 if test -f "${ac_aux_dir}config.guess"; then
2832 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2833 fi
2834 if test -f "${ac_aux_dir}config.sub"; then
2835 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2836 fi
2837 if test -f "$ac_aux_dir/configure"; then
2838 ac_configure="$SHELL ${ac_aux_dir}configure"
2839 fi
2840
2841 # Check that the precious variables saved in the cache have kept the same
2842 # value.
2843 ac_cache_corrupted=false
2844 for ac_var in $ac_precious_vars; do
2845 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2846 eval ac_new_set=\$ac_env_${ac_var}_set
2847 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2848 eval ac_new_val=\$ac_env_${ac_var}_value
2849 case $ac_old_set,$ac_new_set in
2850 set,)
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2852 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2853 ac_cache_corrupted=: ;;
2854 ,set)
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2856 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2857 ac_cache_corrupted=: ;;
2858 ,);;
2859 *)
2860 if test "x$ac_old_val" != "x$ac_new_val"; then
2861 # differences in whitespace do not lead to failure.
2862 ac_old_val_w=`echo x $ac_old_val`
2863 ac_new_val_w=`echo x $ac_new_val`
2864 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2866 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2867 ac_cache_corrupted=:
2868 else
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2870 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2871 eval $ac_var=\$ac_old_val
2872 fi
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2874 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2876 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2877 fi;;
2878 esac
2879 # Pass precious variables to config.status.
2880 if test "$ac_new_set" = set; then
2881 case $ac_new_val in
2882 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2883 *) ac_arg=$ac_var=$ac_new_val ;;
2884 esac
2885 case " $ac_configure_args " in
2886 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2887 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2888 esac
2889 fi
2890 done
2891 if $ac_cache_corrupted; then
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2893 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2895 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2896 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2897 and start over" "$LINENO" 5
2898 fi
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908
2909
2910
2911
2912
2913 # Make sure we can run config.sub.
2914 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2915 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2916
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2918 printf %s "checking build system type... " >&6; }
2919 if test ${ac_cv_build+y}
2920 then :
2921 printf %s "(cached) " >&6
2922 else $as_nop
2923 ac_build_alias=$build_alias
2924 test "x$ac_build_alias" = x &&
2925 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2926 test "x$ac_build_alias" = x &&
2927 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2928 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2929 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2930
2931 fi
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2933 printf "%s\n" "$ac_cv_build" >&6; }
2934 case $ac_cv_build in
2935 *-*-*) ;;
2936 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2937 esac
2938 build=$ac_cv_build
2939 ac_save_IFS=$IFS; IFS='-'
2940 set x $ac_cv_build
2941 shift
2942 build_cpu=$1
2943 build_vendor=$2
2944 shift; shift
2945 # Remember, the first character of IFS is used to create $*,
2946 # except with old shells:
2947 build_os=$*
2948 IFS=$ac_save_IFS
2949 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2950
2951
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2953 printf %s "checking host system type... " >&6; }
2954 if test ${ac_cv_host+y}
2955 then :
2956 printf %s "(cached) " >&6
2957 else $as_nop
2958 if test "x$host_alias" = x; then
2959 ac_cv_host=$ac_cv_build
2960 else
2961 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2962 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2963 fi
2964
2965 fi
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2967 printf "%s\n" "$ac_cv_host" >&6; }
2968 case $ac_cv_host in
2969 *-*-*) ;;
2970 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2971 esac
2972 host=$ac_cv_host
2973 ac_save_IFS=$IFS; IFS='-'
2974 set x $ac_cv_host
2975 shift
2976 host_cpu=$1
2977 host_vendor=$2
2978 shift; shift
2979 # Remember, the first character of IFS is used to create $*,
2980 # except with old shells:
2981 host_os=$*
2982 IFS=$ac_save_IFS
2983 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2984
2985
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2987 printf %s "checking target system type... " >&6; }
2988 if test ${ac_cv_target+y}
2989 then :
2990 printf %s "(cached) " >&6
2991 else $as_nop
2992 if test "x$target_alias" = x; then
2993 ac_cv_target=$ac_cv_host
2994 else
2995 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2996 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2997 fi
2998
2999 fi
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3001 printf "%s\n" "$ac_cv_target" >&6; }
3002 case $ac_cv_target in
3003 *-*-*) ;;
3004 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3005 esac
3006 target=$ac_cv_target
3007 ac_save_IFS=$IFS; IFS='-'
3008 set x $ac_cv_target
3009 shift
3010 target_cpu=$1
3011 target_vendor=$2
3012 shift; shift
3013 # Remember, the first character of IFS is used to create $*,
3014 # except with old shells:
3015 target_os=$*
3016 IFS=$ac_save_IFS
3017 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3018
3019
3020 # The aliases save the names the user supplied, while $host etc.
3021 # will get canonicalized.
3022 test -n "$target_alias" &&
3023 test "$program_prefix$program_suffix$program_transform_name" = \
3024 NONENONEs,x,x, &&
3025 program_prefix=${target_alias}-
3026
3027 ac_config_headers="$ac_config_headers config.h"
3028
3029
3030 am__api_version='1.16'
3031
3032
3033 # Find a good install program. We prefer a C program (faster),
3034 # so one script is as good as another. But avoid the broken or
3035 # incompatible versions:
3036 # SysV /etc/install, /usr/sbin/install
3037 # SunOS /usr/etc/install
3038 # IRIX /sbin/install
3039 # AIX /bin/install
3040 # AmigaOS /C/install, which installs bootblocks on floppy discs
3041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3044 # OS/2's system install, which has a completely different semantic
3045 # ./install, which can be erroneously created by make from ./install.sh.
3046 # Reject install programs that cannot install multiple files.
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3048 printf %s "checking for a BSD-compatible install... " >&6; }
3049 if test -z "$INSTALL"; then
3050 if test ${ac_cv_path_install+y}
3051 then :
3052 printf %s "(cached) " >&6
3053 else $as_nop
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 case $as_dir in #(((
3059 '') as_dir=./ ;;
3060 */) ;;
3061 *) as_dir=$as_dir/ ;;
3062 esac
3063 # Account for fact that we put trailing slashes in our PATH walk.
3064 case $as_dir in #((
3065 ./ | /[cC]/* | \
3066 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3067 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3068 /usr/ucb/* ) ;;
3069 *)
3070 # OSF1 and SCO ODT 3.0 have their own names for install.
3071 # Don't use installbsd from OSF since it installs stuff as root
3072 # by default.
3073 for ac_prog in ginstall scoinst install; do
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3076 if test $ac_prog = install &&
3077 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3078 # AIX install. It has an incompatible calling convention.
3079 :
3080 elif test $ac_prog = install &&
3081 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3082 # program-specific install script used by HP pwplus--don't use.
3083 :
3084 else
3085 rm -rf conftest.one conftest.two conftest.dir
3086 echo one > conftest.one
3087 echo two > conftest.two
3088 mkdir conftest.dir
3089 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3090 test -s conftest.one && test -s conftest.two &&
3091 test -s conftest.dir/conftest.one &&
3092 test -s conftest.dir/conftest.two
3093 then
3094 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3095 break 3
3096 fi
3097 fi
3098 fi
3099 done
3100 done
3101 ;;
3102 esac
3103
3104 done
3105 IFS=$as_save_IFS
3106
3107 rm -rf conftest.one conftest.two conftest.dir
3108
3109 fi
3110 if test ${ac_cv_path_install+y}; then
3111 INSTALL=$ac_cv_path_install
3112 else
3113 # As a last resort, use the slow shell script. Don't cache a
3114 # value for INSTALL within a source directory, because that will
3115 # break other packages using the cache if that directory is
3116 # removed, or if the value is a relative name.
3117 INSTALL=$ac_install_sh
3118 fi
3119 fi
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3121 printf "%s\n" "$INSTALL" >&6; }
3122
3123 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3124 # It thinks the first close brace ends the variable substitution.
3125 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3126
3127 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3128
3129 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3130
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3132 printf %s "checking whether build environment is sane... " >&6; }
3133 # Reject unsafe characters in $srcdir or the absolute working directory
3134 # name. Accept space and tab only in the latter.
3135 am_lf='
3136 '
3137 case `pwd` in
3138 *[\\\"\#\$\&\'\`$am_lf]*)
3139 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3140 esac
3141 case $srcdir in
3142 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3143 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3144 esac
3145
3146 # Do 'set' in a subshell so we don't clobber the current shell's
3147 # arguments. Must try -L first in case configure is actually a
3148 # symlink; some systems play weird games with the mod time of symlinks
3149 # (eg FreeBSD returns the mod time of the symlink's containing
3150 # directory).
3151 if (
3152 am_has_slept=no
3153 for am_try in 1 2; do
3154 echo "timestamp, slept: $am_has_slept" > conftest.file
3155 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3156 if test "$*" = "X"; then
3157 # -L didn't work.
3158 set X `ls -t "$srcdir/configure" conftest.file`
3159 fi
3160 if test "$*" != "X $srcdir/configure conftest.file" \
3161 && test "$*" != "X conftest.file $srcdir/configure"; then
3162
3163 # If neither matched, then we have a broken ls. This can happen
3164 # if, for instance, CONFIG_SHELL is bash and it inherits a
3165 # broken ls alias from the environment. This has actually
3166 # happened. Such a system could not be considered "sane".
3167 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3168 alias in your environment" "$LINENO" 5
3169 fi
3170 if test "$2" = conftest.file || test $am_try -eq 2; then
3171 break
3172 fi
3173 # Just in case.
3174 sleep 1
3175 am_has_slept=yes
3176 done
3177 test "$2" = conftest.file
3178 )
3179 then
3180 # Ok.
3181 :
3182 else
3183 as_fn_error $? "newly created file is older than distributed files!
3184 Check your system clock" "$LINENO" 5
3185 fi
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187 printf "%s\n" "yes" >&6; }
3188 # If we didn't sleep, we still need to ensure time stamps of config.status and
3189 # generated files are strictly newer.
3190 am_sleep_pid=
3191 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3192 ( sleep 1 ) &
3193 am_sleep_pid=$!
3194 fi
3195
3196 rm -f conftest.file
3197
3198 test "$program_prefix" != NONE &&
3199 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3200 # Use a double $ so make ignores it.
3201 test "$program_suffix" != NONE &&
3202 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3203 # Double any \ or $.
3204 # By default was `s,x,x', remove it if useless.
3205 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3206 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3207
3208
3209 # Expand $ac_aux_dir to an absolute path.
3210 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3211
3212
3213 if test x"${MISSING+set}" != xset; then
3214 MISSING="\${SHELL} '$am_aux_dir/missing'"
3215 fi
3216 # Use eval to expand $SHELL
3217 if eval "$MISSING --is-lightweight"; then
3218 am_missing_run="$MISSING "
3219 else
3220 am_missing_run=
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3222 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3223 fi
3224
3225 if test x"${install_sh+set}" != xset; then
3226 case $am_aux_dir in
3227 *\ * | *\ *)
3228 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3229 *)
3230 install_sh="\${SHELL} $am_aux_dir/install-sh"
3231 esac
3232 fi
3233
3234 # Installed binaries are usually stripped using 'strip' when the user
3235 # run "make install-strip". However 'strip' might not be the right
3236 # tool to use in cross-compilation environments, therefore Automake
3237 # will honor the 'STRIP' environment variable to overrule this program.
3238 if test "$cross_compiling" != no; then
3239 if test -n "$ac_tool_prefix"; then
3240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3241 set dummy ${ac_tool_prefix}strip; ac_word=$2
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 printf %s "checking for $ac_word... " >&6; }
3244 if test ${ac_cv_prog_STRIP+y}
3245 then :
3246 printf %s "(cached) " >&6
3247 else $as_nop
3248 if test -n "$STRIP"; then
3249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254 IFS=$as_save_IFS
3255 case $as_dir in #(((
3256 '') as_dir=./ ;;
3257 */) ;;
3258 *) as_dir=$as_dir/ ;;
3259 esac
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 STRIP=$ac_cv_prog_STRIP
3273 if test -n "$STRIP"; then
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3275 printf "%s\n" "$STRIP" >&6; }
3276 else
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 printf "%s\n" "no" >&6; }
3279 fi
3280
3281
3282 fi
3283 if test -z "$ac_cv_prog_STRIP"; then
3284 ac_ct_STRIP=$STRIP
3285 # Extract the first word of "strip", so it can be a program name with args.
3286 set dummy strip; ac_word=$2
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 printf %s "checking for $ac_word... " >&6; }
3289 if test ${ac_cv_prog_ac_ct_STRIP+y}
3290 then :
3291 printf %s "(cached) " >&6
3292 else $as_nop
3293 if test -n "$ac_ct_STRIP"; then
3294 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 case $as_dir in #(((
3301 '') as_dir=./ ;;
3302 */) ;;
3303 *) as_dir=$as_dir/ ;;
3304 esac
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_ac_ct_STRIP="strip"
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3318 if test -n "$ac_ct_STRIP"; then
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3320 printf "%s\n" "$ac_ct_STRIP" >&6; }
3321 else
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 printf "%s\n" "no" >&6; }
3324 fi
3325
3326 if test "x$ac_ct_STRIP" = x; then
3327 STRIP=":"
3328 else
3329 case $cross_compiling:$ac_tool_warned in
3330 yes:)
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3333 ac_tool_warned=yes ;;
3334 esac
3335 STRIP=$ac_ct_STRIP
3336 fi
3337 else
3338 STRIP="$ac_cv_prog_STRIP"
3339 fi
3340
3341 fi
3342 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3343
3344
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3346 printf %s "checking for a race-free mkdir -p... " >&6; }
3347 if test -z "$MKDIR_P"; then
3348 if test ${ac_cv_path_mkdir+y}
3349 then :
3350 printf %s "(cached) " >&6
3351 else $as_nop
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3354 do
3355 IFS=$as_save_IFS
3356 case $as_dir in #(((
3357 '') as_dir=./ ;;
3358 */) ;;
3359 *) as_dir=$as_dir/ ;;
3360 esac
3361 for ac_prog in mkdir gmkdir; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3364 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3365 'mkdir ('*'coreutils) '* | \
3366 'BusyBox '* | \
3367 'mkdir (fileutils) '4.1*)
3368 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3369 break 3;;
3370 esac
3371 done
3372 done
3373 done
3374 IFS=$as_save_IFS
3375
3376 fi
3377
3378 test -d ./--version && rmdir ./--version
3379 if test ${ac_cv_path_mkdir+y}; then
3380 MKDIR_P="$ac_cv_path_mkdir -p"
3381 else
3382 # As a last resort, use the slow shell script. Don't cache a
3383 # value for MKDIR_P within a source directory, because that will
3384 # break other packages using the cache if that directory is
3385 # removed, or if the value is a relative name.
3386 MKDIR_P="$ac_install_sh -d"
3387 fi
3388 fi
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3390 printf "%s\n" "$MKDIR_P" >&6; }
3391
3392 for ac_prog in gawk mawk nawk awk
3393 do
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 printf %s "checking for $ac_word... " >&6; }
3398 if test ${ac_cv_prog_AWK+y}
3399 then :
3400 printf %s "(cached) " >&6
3401 else $as_nop
3402 if test -n "$AWK"; then
3403 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 case $as_dir in #(((
3410 '') as_dir=./ ;;
3411 */) ;;
3412 *) as_dir=$as_dir/ ;;
3413 esac
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_AWK="$ac_prog"
3417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 AWK=$ac_cv_prog_AWK
3427 if test -n "$AWK"; then
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3429 printf "%s\n" "$AWK" >&6; }
3430 else
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 printf "%s\n" "no" >&6; }
3433 fi
3434
3435
3436 test -n "$AWK" && break
3437 done
3438
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3440 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3441 set x ${MAKE-make}
3442 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3443 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3444 then :
3445 printf %s "(cached) " >&6
3446 else $as_nop
3447 cat >conftest.make <<\_ACEOF
3448 SHELL = /bin/sh
3449 all:
3450 @echo '@@@%%%=$(MAKE)=@@@%%%'
3451 _ACEOF
3452 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3453 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3454 *@@@%%%=?*=@@@%%%*)
3455 eval ac_cv_prog_make_${ac_make}_set=yes;;
3456 *)
3457 eval ac_cv_prog_make_${ac_make}_set=no;;
3458 esac
3459 rm -f conftest.make
3460 fi
3461 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463 printf "%s\n" "yes" >&6; }
3464 SET_MAKE=
3465 else
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 printf "%s\n" "no" >&6; }
3468 SET_MAKE="MAKE=${MAKE-make}"
3469 fi
3470
3471 rm -rf .tst 2>/dev/null
3472 mkdir .tst 2>/dev/null
3473 if test -d .tst; then
3474 am__leading_dot=.
3475 else
3476 am__leading_dot=_
3477 fi
3478 rmdir .tst 2>/dev/null
3479
3480 # Check whether --enable-silent-rules was given.
3481 if test ${enable_silent_rules+y}
3482 then :
3483 enableval=$enable_silent_rules;
3484 fi
3485
3486 case $enable_silent_rules in # (((
3487 yes) AM_DEFAULT_VERBOSITY=0;;
3488 no) AM_DEFAULT_VERBOSITY=1;;
3489 *) AM_DEFAULT_VERBOSITY=1;;
3490 esac
3491 am_make=${MAKE-make}
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3493 printf %s "checking whether $am_make supports nested variables... " >&6; }
3494 if test ${am_cv_make_support_nested_variables+y}
3495 then :
3496 printf %s "(cached) " >&6
3497 else $as_nop
3498 if printf "%s\n" 'TRUE=$(BAR$(V))
3499 BAR0=false
3500 BAR1=true
3501 V=1
3502 am__doit:
3503 @$(TRUE)
3504 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3505 am_cv_make_support_nested_variables=yes
3506 else
3507 am_cv_make_support_nested_variables=no
3508 fi
3509 fi
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3511 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3512 if test $am_cv_make_support_nested_variables = yes; then
3513 AM_V='$(V)'
3514 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3515 else
3516 AM_V=$AM_DEFAULT_VERBOSITY
3517 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3518 fi
3519 AM_BACKSLASH='\'
3520
3521 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3522 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3523 # is not polluted with repeated "-I."
3524 am__isrc=' -I$(srcdir)'
3525 # test to see if srcdir already configured
3526 if test -f $srcdir/config.status; then
3527 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3528 fi
3529 fi
3530
3531 # test whether we have cygpath
3532 if test -z "$CYGPATH_W"; then
3533 if (cygpath --version) >/dev/null 2>/dev/null; then
3534 CYGPATH_W='cygpath -w'
3535 else
3536 CYGPATH_W=echo
3537 fi
3538 fi
3539
3540
3541 # Define the identity of the package.
3542 PACKAGE='CCfits'
3543 VERSION='2.7'
3544
3545
3546 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3547
3548
3549 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3550
3551 # Some tools Automake needs.
3552
3553 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3554
3555
3556 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3557
3558
3559 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3560
3561
3562 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3563
3564
3565 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3566
3567 # For better backward compatibility. To be removed once Automake 1.9.x
3568 # dies out for good. For more background, see:
3569 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3570 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3571 mkdir_p='$(MKDIR_P)'
3572
3573 # We need awk for the "check" target (and possibly the TAP driver). The
3574 # system "awk" is bad on some platforms.
3575 # Always define AMTAR for backward compatibility. Yes, it's still used
3576 # in the wild :-( We should find a proper way to deprecate it ...
3577 AMTAR='$${TAR-tar}'
3578
3579
3580 # We'll loop over all known methods to create a tar archive until one works.
3581 _am_tools='gnutar pax cpio none'
3582
3583 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3584
3585
3586
3587
3588
3589
3590 # POSIX will say in a future version that running "rm -f" with no argument
3591 # is OK; and we want to be able to make that assumption in our Makefile
3592 # recipes. So use an aggressive probe to check that the usage we want is
3593 # actually supported "in the wild" to an acceptable degree.
3594 # See automake bug#10828.
3595 # To make any issue more visible, cause the running configure to be aborted
3596 # by default if the 'rm' program in use doesn't match our expectations; the
3597 # user can still override this though.
3598 if rm -f && rm -fr && rm -rf; then : OK; else
3599 cat >&2 <<'END'
3600 Oops!
3601
3602 Your 'rm' program seems unable to run without file operands specified
3603 on the command line, even when the '-f' option is present. This is contrary
3604 to the behaviour of most rm programs out there, and not conforming with
3605 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3606
3607 Please tell [email protected] about your system, including the value
3608 of your $PATH and any error possibly output before this message. This
3609 can help us improve future automake versions.
3610
3611 END
3612 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3613 echo 'Configuration will proceed anyway, since you have set the' >&2
3614 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3615 echo >&2
3616 else
3617 cat >&2 <<'END'
3618 Aborting the configuration process, to ensure you take notice of the issue.
3619
3620 You can download and install GNU coreutils to get an 'rm' implementation
3621 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3622
3623 If you want to complete the configuration process using your problematic
3624 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3625 to "yes", and re-run configure.
3626
3627 END
3628 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3629 fi
3630 fi
3631
3632
3633 ac_ext=cpp
3634 ac_cpp='$CXXCPP $CPPFLAGS'
3635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3638
3639
3640
3641
3642
3643
3644
3645
3646 ac_ext=cpp
3647 ac_cpp='$CXXCPP $CPPFLAGS'
3648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3651 if test -z "$CXX"; then
3652 if test -n "$CCC"; then
3653 CXX=$CCC
3654 else
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3657 do
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 printf %s "checking for $ac_word... " >&6; }
3662 if test ${ac_cv_prog_CXX+y}
3663 then :
3664 printf %s "(cached) " >&6
3665 else $as_nop
3666 if test -n "$CXX"; then
3667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3671 do
3672 IFS=$as_save_IFS
3673 case $as_dir in #(((
3674 '') as_dir=./ ;;
3675 */) ;;
3676 *) as_dir=$as_dir/ ;;
3677 esac
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3682 break 2
3683 fi
3684 done
3685 done
3686 IFS=$as_save_IFS
3687
3688 fi
3689 fi
3690 CXX=$ac_cv_prog_CXX
3691 if test -n "$CXX"; then
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3693 printf "%s\n" "$CXX" >&6; }
3694 else
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 printf "%s\n" "no" >&6; }
3697 fi
3698
3699
3700 test -n "$CXX" && break
3701 done
3702 fi
3703 if test -z "$CXX"; then
3704 ac_ct_CXX=$CXX
3705 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3706 do
3707 # Extract the first word of "$ac_prog", so it can be a program name with args.
3708 set dummy $ac_prog; ac_word=$2
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 printf %s "checking for $ac_word... " >&6; }
3711 if test ${ac_cv_prog_ac_ct_CXX+y}
3712 then :
3713 printf %s "(cached) " >&6
3714 else $as_nop
3715 if test -n "$ac_ct_CXX"; then
3716 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721 IFS=$as_save_IFS
3722 case $as_dir in #(((
3723 '') as_dir=./ ;;
3724 */) ;;
3725 *) as_dir=$as_dir/ ;;
3726 esac
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_ac_ct_CXX="$ac_prog"
3730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733 done
3734 done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3740 if test -n "$ac_ct_CXX"; then
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3742 printf "%s\n" "$ac_ct_CXX" >&6; }
3743 else
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 printf "%s\n" "no" >&6; }
3746 fi
3747
3748
3749 test -n "$ac_ct_CXX" && break
3750 done
3751
3752 if test "x$ac_ct_CXX" = x; then
3753 CXX="g++"
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761 CXX=$ac_ct_CXX
3762 fi
3763 fi
3764
3765 fi
3766 fi
3767 # Provide some information about the compiler.
3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3769 set X $ac_compile
3770 ac_compiler=$2
3771 for ac_option in --version -v -V -qversion; do
3772 { { ac_try="$ac_compiler $ac_option >&5"
3773 case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 printf "%s\n" "$ac_try_echo"; } >&5
3779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3780 ac_status=$?
3781 if test -s conftest.err; then
3782 sed '10a\
3783 ... rest of stderr output deleted ...
3784 10q' conftest.err >conftest.er1
3785 cat conftest.er1 >&5
3786 fi
3787 rm -f conftest.er1 conftest.err
3788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }
3790 done
3791
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main (void)
3797 {
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 ac_clean_files_save=$ac_clean_files
3804 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3805 # Try to create an executable without -o first, disregard a.out.
3806 # It will help us diagnose broken compilers, and finding out an intuition
3807 # of exeext.
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3809 printf %s "checking whether the C++ compiler works... " >&6; }
3810 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3811
3812 # The possible output files:
3813 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3814
3815 ac_rmfiles=
3816 for ac_file in $ac_files
3817 do
3818 case $ac_file in
3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3821 esac
3822 done
3823 rm -f $ac_rmfiles
3824
3825 if { { ac_try="$ac_link_default"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 printf "%s\n" "$ac_try_echo"; } >&5
3832 (eval "$ac_link_default") 2>&5
3833 ac_status=$?
3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }
3836 then :
3837 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3838 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3839 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3840 # so that the user can short-circuit this test for compilers unknown to
3841 # Autoconf.
3842 for ac_file in $ac_files ''
3843 do
3844 test -f "$ac_file" || continue
3845 case $ac_file in
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3847 ;;
3848 [ab].out )
3849 # We found the default executable, but exeext='' is most
3850 # certainly right.
3851 break;;
3852 *.* )
3853 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3854 then :; else
3855 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3856 fi
3857 # We set ac_cv_exeext here because the later test for it is not
3858 # safe: cross compilers may not add the suffix if given an `-o'
3859 # argument, so we may need to know it at that point already.
3860 # Even if this section looks crufty: it has the advantage of
3861 # actually working.
3862 break;;
3863 * )
3864 break;;
3865 esac
3866 done
3867 test "$ac_cv_exeext" = no && ac_cv_exeext=
3868
3869 else $as_nop
3870 ac_file=''
3871 fi
3872 if test -z "$ac_file"
3873 then :
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 printf "%s\n" "no" >&6; }
3876 printf "%s\n" "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error 77 "C++ compiler cannot create executables
3882 See \`config.log' for more details" "$LINENO" 5; }
3883 else $as_nop
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3885 printf "%s\n" "yes" >&6; }
3886 fi
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3888 printf %s "checking for C++ compiler default output file name... " >&6; }
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3890 printf "%s\n" "$ac_file" >&6; }
3891 ac_exeext=$ac_cv_exeext
3892
3893 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3894 ac_clean_files=$ac_clean_files_save
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3896 printf %s "checking for suffix of executables... " >&6; }
3897 if { { ac_try="$ac_link"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 printf "%s\n" "$ac_try_echo"; } >&5
3904 (eval "$ac_link") 2>&5
3905 ac_status=$?
3906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }
3908 then :
3909 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3910 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3911 # work properly (i.e., refer to `conftest.exe'), while it won't with
3912 # `rm'.
3913 for ac_file in conftest.exe conftest conftest.*; do
3914 test -f "$ac_file" || continue
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3918 break;;
3919 * ) break;;
3920 esac
3921 done
3922 else $as_nop
3923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3926 See \`config.log' for more details" "$LINENO" 5; }
3927 fi
3928 rm -f conftest conftest$ac_cv_exeext
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3930 printf "%s\n" "$ac_cv_exeext" >&6; }
3931
3932 rm -f conftest.$ac_ext
3933 EXEEXT=$ac_cv_exeext
3934 ac_exeext=$EXEEXT
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <stdio.h>
3938 int
3939 main (void)
3940 {
3941 FILE *f = fopen ("conftest.out", "w");
3942 return ferror (f) || fclose (f) != 0;
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 ac_clean_files="$ac_clean_files conftest.out"
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 printf %s "checking whether we are cross compiling... " >&6; }
3953 if test "$cross_compiling" != yes; then
3954 { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 printf "%s\n" "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if { ac_try='./conftest$ac_cv_exeext'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 printf "%s\n" "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3976 cross_compiling=no
3977 else
3978 if test "$cross_compiling" = maybe; then
3979 cross_compiling=yes
3980 else
3981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error 77 "cannot run C++ compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details" "$LINENO" 5; }
3986 fi
3987 fi
3988 fi
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 printf "%s\n" "$cross_compiling" >&6; }
3991
3992 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3993 ac_clean_files=$ac_clean_files_save
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 printf %s "checking for suffix of object files... " >&6; }
3996 if test ${ac_cv_objext+y}
3997 then :
3998 printf %s "(cached) " >&6
3999 else $as_nop
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002
4003 int
4004 main (void)
4005 {
4006
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.o conftest.obj
4012 if { { ac_try="$ac_compile"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 printf "%s\n" "$ac_try_echo"; } >&5
4019 (eval "$ac_compile") 2>&5
4020 ac_status=$?
4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }
4023 then :
4024 for ac_file in conftest.o conftest.obj conftest.*; do
4025 test -f "$ac_file" || continue;
4026 case $ac_file in
4027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4029 break;;
4030 esac
4031 done
4032 else $as_nop
4033 printf "%s\n" "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot compute suffix of object files: cannot compile
4039 See \`config.log' for more details" "$LINENO" 5; }
4040 fi
4041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4042 fi
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4044 printf "%s\n" "$ac_cv_objext" >&6; }
4045 OBJEXT=$ac_cv_objext
4046 ac_objext=$OBJEXT
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4048 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4049 if test ${ac_cv_cxx_compiler_gnu+y}
4050 then :
4051 printf %s "(cached) " >&6
4052 else $as_nop
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055
4056 int
4057 main (void)
4058 {
4059 #ifndef __GNUC__
4060 choke me
4061 #endif
4062
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 if ac_fn_cxx_try_compile "$LINENO"
4068 then :
4069 ac_compiler_gnu=yes
4070 else $as_nop
4071 ac_compiler_gnu=no
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4074 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4075
4076 fi
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4078 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4080
4081 if test $ac_compiler_gnu = yes; then
4082 GXX=yes
4083 else
4084 GXX=
4085 fi
4086 ac_test_CXXFLAGS=${CXXFLAGS+y}
4087 ac_save_CXXFLAGS=$CXXFLAGS
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4089 printf %s "checking whether $CXX accepts -g... " >&6; }
4090 if test ${ac_cv_prog_cxx_g+y}
4091 then :
4092 printf %s "(cached) " >&6
4093 else $as_nop
4094 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4095 ac_cxx_werror_flag=yes
4096 ac_cv_prog_cxx_g=no
4097 CXXFLAGS="-g"
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100
4101 int
4102 main (void)
4103 {
4104
4105 ;
4106 return 0;
4107 }
4108 _ACEOF
4109 if ac_fn_cxx_try_compile "$LINENO"
4110 then :
4111 ac_cv_prog_cxx_g=yes
4112 else $as_nop
4113 CXXFLAGS=""
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116
4117 int
4118 main (void)
4119 {
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 if ac_fn_cxx_try_compile "$LINENO"
4126 then :
4127
4128 else $as_nop
4129 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4130 CXXFLAGS="-g"
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133
4134 int
4135 main (void)
4136 {
4137
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 if ac_fn_cxx_try_compile "$LINENO"
4143 then :
4144 ac_cv_prog_cxx_g=yes
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4151 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4152 fi
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4154 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4155 if test $ac_test_CXXFLAGS; then
4156 CXXFLAGS=$ac_save_CXXFLAGS
4157 elif test $ac_cv_prog_cxx_g = yes; then
4158 if test "$GXX" = yes; then
4159 CXXFLAGS="-g -O2"
4160 else
4161 CXXFLAGS="-g"
4162 fi
4163 else
4164 if test "$GXX" = yes; then
4165 CXXFLAGS="-O2"
4166 else
4167 CXXFLAGS=
4168 fi
4169 fi
4170 ac_prog_cxx_stdcxx=no
4171 if test x$ac_prog_cxx_stdcxx = xno
4172 then :
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4174 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4175 if test ${ac_cv_prog_cxx_11+y}
4176 then :
4177 printf %s "(cached) " >&6
4178 else $as_nop
4179 ac_cv_prog_cxx_11=no
4180 ac_save_CXX=$CXX
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 $ac_cxx_conftest_cxx11_program
4184 _ACEOF
4185 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4186 do
4187 CXX="$ac_save_CXX $ac_arg"
4188 if ac_fn_cxx_try_compile "$LINENO"
4189 then :
4190 ac_cv_prog_cxx_cxx11=$ac_arg
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.beam
4193 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4194 done
4195 rm -f conftest.$ac_ext
4196 CXX=$ac_save_CXX
4197 fi
4198
4199 if test "x$ac_cv_prog_cxx_cxx11" = xno
4200 then :
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202 printf "%s\n" "unsupported" >&6; }
4203 else $as_nop
4204 if test "x$ac_cv_prog_cxx_cxx11" = x
4205 then :
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4207 printf "%s\n" "none needed" >&6; }
4208 else $as_nop
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4210 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4211 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4212 fi
4213 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4214 ac_prog_cxx_stdcxx=cxx11
4215 fi
4216 fi
4217 if test x$ac_prog_cxx_stdcxx = xno
4218 then :
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4220 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4221 if test ${ac_cv_prog_cxx_98+y}
4222 then :
4223 printf %s "(cached) " >&6
4224 else $as_nop
4225 ac_cv_prog_cxx_98=no
4226 ac_save_CXX=$CXX
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 $ac_cxx_conftest_cxx98_program
4230 _ACEOF
4231 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4232 do
4233 CXX="$ac_save_CXX $ac_arg"
4234 if ac_fn_cxx_try_compile "$LINENO"
4235 then :
4236 ac_cv_prog_cxx_cxx98=$ac_arg
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext conftest.beam
4239 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4240 done
4241 rm -f conftest.$ac_ext
4242 CXX=$ac_save_CXX
4243 fi
4244
4245 if test "x$ac_cv_prog_cxx_cxx98" = xno
4246 then :
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4248 printf "%s\n" "unsupported" >&6; }
4249 else $as_nop
4250 if test "x$ac_cv_prog_cxx_cxx98" = x
4251 then :
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4253 printf "%s\n" "none needed" >&6; }
4254 else $as_nop
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4256 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4257 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4258 fi
4259 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4260 ac_prog_cxx_stdcxx=cxx98
4261 fi
4262 fi
4263
4264 ac_ext=cpp
4265 ac_cpp='$CXXCPP $CPPFLAGS'
4266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4269 DEPDIR="${am__leading_dot}deps"
4270
4271 ac_config_commands="$ac_config_commands depfiles"
4272
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4274 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4275 cat > confinc.mk << 'END'
4276 am__doit:
4277 @echo this is the am__doit target >confinc.out
4278 .PHONY: am__doit
4279 END
4280 am__include="#"
4281 am__quote=
4282 # BSD make does it like this.
4283 echo '.include "confinc.mk" # ignored' > confmf.BSD
4284 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4285 echo 'include confinc.mk # ignored' > confmf.GNU
4286 _am_result=no
4287 for s in GNU BSD; do
4288 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4289 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }
4293 case $?:`cat confinc.out 2>/dev/null` in #(
4294 '0:this is the am__doit target') :
4295 case $s in #(
4296 BSD) :
4297 am__include='.include' am__quote='"' ;; #(
4298 *) :
4299 am__include='include' am__quote='' ;;
4300 esac ;; #(
4301 *) :
4302 ;;
4303 esac
4304 if test "$am__include" != "#"; then
4305 _am_result="yes ($s style)"
4306 break
4307 fi
4308 done
4309 rm -f confinc.* confmf.*
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4311 printf "%s\n" "${_am_result}" >&6; }
4312
4313 # Check whether --enable-dependency-tracking was given.
4314 if test ${enable_dependency_tracking+y}
4315 then :
4316 enableval=$enable_dependency_tracking;
4317 fi
4318
4319 if test "x$enable_dependency_tracking" != xno; then
4320 am_depcomp="$ac_aux_dir/depcomp"
4321 AMDEPBACKSLASH='\'
4322 am__nodep='_no'
4323 fi
4324 if test "x$enable_dependency_tracking" != xno; then
4325 AMDEP_TRUE=
4326 AMDEP_FALSE='#'
4327 else
4328 AMDEP_TRUE='#'
4329 AMDEP_FALSE=
4330 fi
4331
4332
4333
4334 depcc="$CXX" am_compiler_list=
4335
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4337 printf %s "checking dependency style of $depcc... " >&6; }
4338 if test ${am_cv_CXX_dependencies_compiler_type+y}
4339 then :
4340 printf %s "(cached) " >&6
4341 else $as_nop
4342 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4343 # We make a subdir and do the tests there. Otherwise we can end up
4344 # making bogus files that we don't know about and never remove. For
4345 # instance it was reported that on HP-UX the gcc test will end up
4346 # making a dummy file named 'D' -- because '-MD' means "put the output
4347 # in D".
4348 rm -rf conftest.dir
4349 mkdir conftest.dir
4350 # Copy depcomp to subdir because otherwise we won't find it if we're
4351 # using a relative directory.
4352 cp "$am_depcomp" conftest.dir
4353 cd conftest.dir
4354 # We will build objects and dependencies in a subdirectory because
4355 # it helps to detect inapplicable dependency modes. For instance
4356 # both Tru64's cc and ICC support -MD to output dependencies as a
4357 # side effect of compilation, but ICC will put the dependencies in
4358 # the current directory while Tru64 will put them in the object
4359 # directory.
4360 mkdir sub
4361
4362 am_cv_CXX_dependencies_compiler_type=none
4363 if test "$am_compiler_list" = ""; then
4364 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4365 fi
4366 am__universal=false
4367 case " $depcc " in #(
4368 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4369 esac
4370
4371 for depmode in $am_compiler_list; do
4372 # Setup a source with many dependencies, because some compilers
4373 # like to wrap large dependency lists on column 80 (with \), and
4374 # we should not choose a depcomp mode which is confused by this.
4375 #
4376 # We need to recreate these files for each test, as the compiler may
4377 # overwrite some of them when testing with obscure command lines.
4378 # This happens at least with the AIX C compiler.
4379 : > sub/conftest.c
4380 for i in 1 2 3 4 5 6; do
4381 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4382 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4383 # Solaris 10 /bin/sh.
4384 echo '/* dummy */' > sub/conftst$i.h
4385 done
4386 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4387
4388 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4389 # mode. It turns out that the SunPro C++ compiler does not properly
4390 # handle '-M -o', and we need to detect this. Also, some Intel
4391 # versions had trouble with output in subdirs.
4392 am__obj=sub/conftest.${OBJEXT-o}
4393 am__minus_obj="-o $am__obj"
4394 case $depmode in
4395 gcc)
4396 # This depmode causes a compiler race in universal mode.
4397 test "$am__universal" = false || continue
4398 ;;
4399 nosideeffect)
4400 # After this tag, mechanisms are not by side-effect, so they'll
4401 # only be used when explicitly requested.
4402 if test "x$enable_dependency_tracking" = xyes; then
4403 continue
4404 else
4405 break
4406 fi
4407 ;;
4408 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4409 # This compiler won't grok '-c -o', but also, the minuso test has
4410 # not run yet. These depmodes are late enough in the game, and
4411 # so weak that their functioning should not be impacted.
4412 am__obj=conftest.${OBJEXT-o}
4413 am__minus_obj=
4414 ;;
4415 none) break ;;
4416 esac
4417 if depmode=$depmode \
4418 source=sub/conftest.c object=$am__obj \
4419 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4420 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4421 >/dev/null 2>conftest.err &&
4422 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4423 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4424 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4425 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4426 # icc doesn't choke on unknown options, it will just issue warnings
4427 # or remarks (even with -Werror). So we grep stderr for any message
4428 # that says an option was ignored or not supported.
4429 # When given -MP, icc 7.0 and 7.1 complain thusly:
4430 # icc: Command line warning: ignoring option '-M'; no argument required
4431 # The diagnosis changed in icc 8.0:
4432 # icc: Command line remark: option '-MP' not supported
4433 if (grep 'ignoring option' conftest.err ||
4434 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4435 am_cv_CXX_dependencies_compiler_type=$depmode
4436 break
4437 fi
4438 fi
4439 done
4440
4441 cd ..
4442 rm -rf conftest.dir
4443 else
4444 am_cv_CXX_dependencies_compiler_type=none
4445 fi
4446
4447 fi
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4449 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4450 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4451
4452 if
4453 test "x$enable_dependency_tracking" != xno \
4454 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4455 am__fastdepCXX_TRUE=
4456 am__fastdepCXX_FALSE='#'
4457 else
4458 am__fastdepCXX_TRUE='#'
4459 am__fastdepCXX_FALSE=
4460 fi
4461
4462
4463
4464 CC=$CXX
4465
4466 case "$target" in
4467 *-*-solaris*)
4468 LD=$CXX
4469 LIBS="-lm -lsocket -lgen -lnsl";;
4470 *) ;;
4471 esac
4472
4473 # Check whether --enable-static was given.
4474 if test ${enable_static+y}
4475 then :
4476 enableval=$enable_static; p=${PACKAGE-default}
4477 case $enableval in
4478 yes) enable_static=yes ;;
4479 no) enable_static=no ;;
4480 *)
4481 enable_static=no
4482 # Look at the argument we got. We use all the common list separators.
4483 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4484 for pkg in $enableval; do
4485 IFS=$lt_save_ifs
4486 if test "X$pkg" = "X$p"; then
4487 enable_static=yes
4488 fi
4489 done
4490 IFS=$lt_save_ifs
4491 ;;
4492 esac
4493 else $as_nop
4494 enable_static=no
4495 fi
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 case `pwd` in
4506 *\ * | *\ *)
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4508 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4509 esac
4510
4511
4512
4513 macro_version='2.4.6'
4514 macro_revision='2.4.6'
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 ltmain=$ac_aux_dir/ltmain.sh
4530
4531 # Backslashify metacharacters that are still active within
4532 # double-quoted strings.
4533 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4534
4535 # Same as above, but do not quote variable references.
4536 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4537
4538 # Sed substitution to delay expansion of an escaped shell variable in a
4539 # double_quote_subst'ed string.
4540 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4541
4542 # Sed substitution to delay expansion of an escaped single quote.
4543 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4544
4545 # Sed substitution to avoid accidental globbing in evaled expressions
4546 no_glob_subst='s/\*/\\\*/g'
4547
4548 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4549 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4551
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4553 printf %s "checking how to print strings... " >&6; }
4554 # Test print first, because it will be a builtin if present.
4555 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4556 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4557 ECHO='print -r --'
4558 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4559 ECHO='printf %s\n'
4560 else
4561 # Use this function as a fallback that always works.
4562 func_fallback_echo ()
4563 {
4564 eval 'cat <<_LTECHO_EOF
4565 $1
4566 _LTECHO_EOF'
4567 }
4568 ECHO='func_fallback_echo'
4569 fi
4570
4571 # func_echo_all arg...
4572 # Invoke $ECHO with all args, space-separated.
4573 func_echo_all ()
4574 {
4575 $ECHO ""
4576 }
4577
4578 case $ECHO in
4579 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4580 printf "%s\n" "printf" >&6; } ;;
4581 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4582 printf "%s\n" "print -r" >&6; } ;;
4583 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4584 printf "%s\n" "cat" >&6; } ;;
4585 esac
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609 ac_ext=c
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 printf %s "checking for $ac_word... " >&6; }
4619 if test ${ac_cv_prog_CC+y}
4620 then :
4621 printf %s "(cached) " >&6
4622 else $as_nop
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629 IFS=$as_save_IFS
4630 case $as_dir in #(((
4631 '') as_dir=./ ;;
4632 */) ;;
4633 *) as_dir=$as_dir/ ;;
4634 esac
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 fi
4646 fi
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 printf "%s\n" "$CC" >&6; }
4651 else
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 printf "%s\n" "no" >&6; }
4654 fi
4655
4656
4657 fi
4658 if test -z "$ac_cv_prog_CC"; then
4659 ac_ct_CC=$CC
4660 # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc; ac_word=$2
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 printf %s "checking for $ac_word... " >&6; }
4664 if test ${ac_cv_prog_ac_ct_CC+y}
4665 then :
4666 printf %s "(cached) " >&6
4667 else $as_nop
4668 if test -n "$ac_ct_CC"; then
4669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 case $as_dir in #(((
4676 '') as_dir=./ ;;
4677 */) ;;
4678 *) as_dir=$as_dir/ ;;
4679 esac
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_ac_ct_CC="gcc"
4683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4693 if test -n "$ac_ct_CC"; then
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4695 printf "%s\n" "$ac_ct_CC" >&6; }
4696 else
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 printf "%s\n" "no" >&6; }
4699 fi
4700
4701 if test "x$ac_ct_CC" = x; then
4702 CC=""
4703 else
4704 case $cross_compiling:$ac_tool_warned in
4705 yes:)
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned=yes ;;
4709 esac
4710 CC=$ac_ct_CC
4711 fi
4712 else
4713 CC="$ac_cv_prog_CC"
4714 fi
4715
4716 if test -z "$CC"; then
4717 if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4719 set dummy ${ac_tool_prefix}cc; ac_word=$2
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 printf %s "checking for $ac_word... " >&6; }
4722 if test ${ac_cv_prog_CC+y}
4723 then :
4724 printf %s "(cached) " >&6
4725 else $as_nop
4726 if test -n "$CC"; then
4727 ac_cv_prog_CC="$CC" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732 IFS=$as_save_IFS
4733 case $as_dir in #(((
4734 '') as_dir=./ ;;
4735 */) ;;
4736 *) as_dir=$as_dir/ ;;
4737 esac
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_CC="${ac_tool_prefix}cc"
4741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4742 break 2
4743 fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 CC=$ac_cv_prog_CC
4751 if test -n "$CC"; then
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753 printf "%s\n" "$CC" >&6; }
4754 else
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 printf "%s\n" "no" >&6; }
4757 fi
4758
4759
4760 fi
4761 fi
4762 if test -z "$CC"; then
4763 # Extract the first word of "cc", so it can be a program name with args.
4764 set dummy cc; ac_word=$2
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 printf %s "checking for $ac_word... " >&6; }
4767 if test ${ac_cv_prog_CC+y}
4768 then :
4769 printf %s "(cached) " >&6
4770 else $as_nop
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC="$CC" # Let the user override the test.
4773 else
4774 ac_prog_rejected=no
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778 IFS=$as_save_IFS
4779 case $as_dir in #(((
4780 '') as_dir=./ ;;
4781 */) ;;
4782 *) as_dir=$as_dir/ ;;
4783 esac
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4786 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4787 ac_prog_rejected=yes
4788 continue
4789 fi
4790 ac_cv_prog_CC="cc"
4791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 if test $ac_prog_rejected = yes; then
4799 # We found a bogon in the path, so make sure we never use it.
4800 set dummy $ac_cv_prog_CC
4801 shift
4802 if test $# != 0; then
4803 # We chose a different compiler from the bogus one.
4804 # However, it has the same basename, so the bogon will be chosen
4805 # first if we set CC to just the basename; use the full file name.
4806 shift
4807 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4808 fi
4809 fi
4810 fi
4811 fi
4812 CC=$ac_cv_prog_CC
4813 if test -n "$CC"; then
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4815 printf "%s\n" "$CC" >&6; }
4816 else
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 printf "%s\n" "no" >&6; }
4819 fi
4820
4821
4822 fi
4823 if test -z "$CC"; then
4824 if test -n "$ac_tool_prefix"; then
4825 for ac_prog in cl.exe
4826 do
4827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 printf %s "checking for $ac_word... " >&6; }
4831 if test ${ac_cv_prog_CC+y}
4832 then :
4833 printf %s "(cached) " >&6
4834 else $as_nop
4835 if test -n "$CC"; then
4836 ac_cv_prog_CC="$CC" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841 IFS=$as_save_IFS
4842 case $as_dir in #(((
4843 '') as_dir=./ ;;
4844 */) ;;
4845 *) as_dir=$as_dir/ ;;
4846 esac
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853 done
4854 done
4855 IFS=$as_save_IFS
4856
4857 fi
4858 fi
4859 CC=$ac_cv_prog_CC
4860 if test -n "$CC"; then
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4862 printf "%s\n" "$CC" >&6; }
4863 else
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 printf "%s\n" "no" >&6; }
4866 fi
4867
4868
4869 test -n "$CC" && break
4870 done
4871 fi
4872 if test -z "$CC"; then
4873 ac_ct_CC=$CC
4874 for ac_prog in cl.exe
4875 do
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 printf %s "checking for $ac_word... " >&6; }
4880 if test ${ac_cv_prog_ac_ct_CC+y}
4881 then :
4882 printf %s "(cached) " >&6
4883 else $as_nop
4884 if test -n "$ac_ct_CC"; then
4885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890 IFS=$as_save_IFS
4891 case $as_dir in #(((
4892 '') as_dir=./ ;;
4893 */) ;;
4894 *) as_dir=$as_dir/ ;;
4895 esac
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_ac_ct_CC="$ac_prog"
4899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4900 break 2
4901 fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906 fi
4907 fi
4908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4909 if test -n "$ac_ct_CC"; then
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4911 printf "%s\n" "$ac_ct_CC" >&6; }
4912 else
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 printf "%s\n" "no" >&6; }
4915 fi
4916
4917
4918 test -n "$ac_ct_CC" && break
4919 done
4920
4921 if test "x$ac_ct_CC" = x; then
4922 CC=""
4923 else
4924 case $cross_compiling:$ac_tool_warned in
4925 yes:)
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4928 ac_tool_warned=yes ;;
4929 esac
4930 CC=$ac_ct_CC
4931 fi
4932 fi
4933
4934 fi
4935 if test -z "$CC"; then
4936 if test -n "$ac_tool_prefix"; then
4937 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4938 set dummy ${ac_tool_prefix}clang; ac_word=$2
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 printf %s "checking for $ac_word... " >&6; }
4941 if test ${ac_cv_prog_CC+y}
4942 then :
4943 printf %s "(cached) " >&6
4944 else $as_nop
4945 if test -n "$CC"; then
4946 ac_cv_prog_CC="$CC" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951 IFS=$as_save_IFS
4952 case $as_dir in #(((
4953 '') as_dir=./ ;;
4954 */) ;;
4955 *) as_dir=$as_dir/ ;;
4956 esac
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_CC="${ac_tool_prefix}clang"
4960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 CC=$ac_cv_prog_CC
4970 if test -n "$CC"; then
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 printf "%s\n" "$CC" >&6; }
4973 else
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 printf "%s\n" "no" >&6; }
4976 fi
4977
4978
4979 fi
4980 if test -z "$ac_cv_prog_CC"; then
4981 ac_ct_CC=$CC
4982 # Extract the first word of "clang", so it can be a program name with args.
4983 set dummy clang; ac_word=$2
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 printf %s "checking for $ac_word... " >&6; }
4986 if test ${ac_cv_prog_ac_ct_CC+y}
4987 then :
4988 printf %s "(cached) " >&6
4989 else $as_nop
4990 if test -n "$ac_ct_CC"; then
4991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 case $as_dir in #(((
4998 '') as_dir=./ ;;
4999 */) ;;
5000 *) as_dir=$as_dir/ ;;
5001 esac
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_ac_ct_CC="clang"
5005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008 done
5009 done
5010 IFS=$as_save_IFS
5011
5012 fi
5013 fi
5014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5015 if test -n "$ac_ct_CC"; then
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5017 printf "%s\n" "$ac_ct_CC" >&6; }
5018 else
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 printf "%s\n" "no" >&6; }
5021 fi
5022
5023 if test "x$ac_ct_CC" = x; then
5024 CC=""
5025 else
5026 case $cross_compiling:$ac_tool_warned in
5027 yes:)
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5029 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5030 ac_tool_warned=yes ;;
5031 esac
5032 CC=$ac_ct_CC
5033 fi
5034 else
5035 CC="$ac_cv_prog_CC"
5036 fi
5037
5038 fi
5039
5040
5041 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5042 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5043 as_fn_error $? "no acceptable C compiler found in \$PATH
5044 See \`config.log' for more details" "$LINENO" 5; }
5045
5046 # Provide some information about the compiler.
5047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5048 set X $ac_compile
5049 ac_compiler=$2
5050 for ac_option in --version -v -V -qversion -version; do
5051 { { ac_try="$ac_compiler $ac_option >&5"
5052 case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5057 printf "%s\n" "$ac_try_echo"; } >&5
5058 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5059 ac_status=$?
5060 if test -s conftest.err; then
5061 sed '10a\
5062 ... rest of stderr output deleted ...
5063 10q' conftest.err >conftest.er1
5064 cat conftest.er1 >&5
5065 fi
5066 rm -f conftest.er1 conftest.err
5067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5068 test $ac_status = 0; }
5069 done
5070
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5072 printf %s "checking whether the compiler supports GNU C... " >&6; }
5073 if test ${ac_cv_c_compiler_gnu+y}
5074 then :
5075 printf %s "(cached) " >&6
5076 else $as_nop
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079
5080 int
5081 main (void)
5082 {
5083 #ifndef __GNUC__
5084 choke me
5085 #endif
5086
5087 ;
5088 return 0;
5089 }
5090 _ACEOF
5091 if ac_fn_c_try_compile "$LINENO"
5092 then :
5093 ac_compiler_gnu=yes
5094 else $as_nop
5095 ac_compiler_gnu=no
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5099
5100 fi
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5102 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5104
5105 if test $ac_compiler_gnu = yes; then
5106 GCC=yes
5107 else
5108 GCC=
5109 fi
5110 ac_test_CFLAGS=${CFLAGS+y}
5111 ac_save_CFLAGS=$CFLAGS
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5113 printf %s "checking whether $CC accepts -g... " >&6; }
5114 if test ${ac_cv_prog_cc_g+y}
5115 then :
5116 printf %s "(cached) " >&6
5117 else $as_nop
5118 ac_save_c_werror_flag=$ac_c_werror_flag
5119 ac_c_werror_flag=yes
5120 ac_cv_prog_cc_g=no
5121 CFLAGS="-g"
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124
5125 int
5126 main (void)
5127 {
5128
5129 ;
5130 return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"
5134 then :
5135 ac_cv_prog_cc_g=yes
5136 else $as_nop
5137 CFLAGS=""
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140
5141 int
5142 main (void)
5143 {
5144
5145 ;
5146 return 0;
5147 }
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"
5150 then :
5151
5152 else $as_nop
5153 ac_c_werror_flag=$ac_save_c_werror_flag
5154 CFLAGS="-g"
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157
5158 int
5159 main (void)
5160 {
5161
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_compile "$LINENO"
5167 then :
5168 ac_cv_prog_cc_g=yes
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5175 ac_c_werror_flag=$ac_save_c_werror_flag
5176 fi
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5178 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5179 if test $ac_test_CFLAGS; then
5180 CFLAGS=$ac_save_CFLAGS
5181 elif test $ac_cv_prog_cc_g = yes; then
5182 if test "$GCC" = yes; then
5183 CFLAGS="-g -O2"
5184 else
5185 CFLAGS="-g"
5186 fi
5187 else
5188 if test "$GCC" = yes; then
5189 CFLAGS="-O2"
5190 else
5191 CFLAGS=
5192 fi
5193 fi
5194 ac_prog_cc_stdc=no
5195 if test x$ac_prog_cc_stdc = xno
5196 then :
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5198 printf %s "checking for $CC option to enable C11 features... " >&6; }
5199 if test ${ac_cv_prog_cc_c11+y}
5200 then :
5201 printf %s "(cached) " >&6
5202 else $as_nop
5203 ac_cv_prog_cc_c11=no
5204 ac_save_CC=$CC
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 $ac_c_conftest_c11_program
5208 _ACEOF
5209 for ac_arg in '' -std=gnu11
5210 do
5211 CC="$ac_save_CC $ac_arg"
5212 if ac_fn_c_try_compile "$LINENO"
5213 then :
5214 ac_cv_prog_cc_c11=$ac_arg
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest.beam
5217 test "x$ac_cv_prog_cc_c11" != "xno" && break
5218 done
5219 rm -f conftest.$ac_ext
5220 CC=$ac_save_CC
5221 fi
5222
5223 if test "x$ac_cv_prog_cc_c11" = xno
5224 then :
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5226 printf "%s\n" "unsupported" >&6; }
5227 else $as_nop
5228 if test "x$ac_cv_prog_cc_c11" = x
5229 then :
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5231 printf "%s\n" "none needed" >&6; }
5232 else $as_nop
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 CC="$CC $ac_cv_prog_cc_c11"
5236 fi
5237 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5238 ac_prog_cc_stdc=c11
5239 fi
5240 fi
5241 if test x$ac_prog_cc_stdc = xno
5242 then :
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5244 printf %s "checking for $CC option to enable C99 features... " >&6; }
5245 if test ${ac_cv_prog_cc_c99+y}
5246 then :
5247 printf %s "(cached) " >&6
5248 else $as_nop
5249 ac_cv_prog_cc_c99=no
5250 ac_save_CC=$CC
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 $ac_c_conftest_c99_program
5254 _ACEOF
5255 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5256 do
5257 CC="$ac_save_CC $ac_arg"
5258 if ac_fn_c_try_compile "$LINENO"
5259 then :
5260 ac_cv_prog_cc_c99=$ac_arg
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.beam
5263 test "x$ac_cv_prog_cc_c99" != "xno" && break
5264 done
5265 rm -f conftest.$ac_ext
5266 CC=$ac_save_CC
5267 fi
5268
5269 if test "x$ac_cv_prog_cc_c99" = xno
5270 then :
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5272 printf "%s\n" "unsupported" >&6; }
5273 else $as_nop
5274 if test "x$ac_cv_prog_cc_c99" = x
5275 then :
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5277 printf "%s\n" "none needed" >&6; }
5278 else $as_nop
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 CC="$CC $ac_cv_prog_cc_c99"
5282 fi
5283 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5284 ac_prog_cc_stdc=c99
5285 fi
5286 fi
5287 if test x$ac_prog_cc_stdc = xno
5288 then :
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5290 printf %s "checking for $CC option to enable C89 features... " >&6; }
5291 if test ${ac_cv_prog_cc_c89+y}
5292 then :
5293 printf %s "(cached) " >&6
5294 else $as_nop
5295 ac_cv_prog_cc_c89=no
5296 ac_save_CC=$CC
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 $ac_c_conftest_c89_program
5300 _ACEOF
5301 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5302 do
5303 CC="$ac_save_CC $ac_arg"
5304 if ac_fn_c_try_compile "$LINENO"
5305 then :
5306 ac_cv_prog_cc_c89=$ac_arg
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.beam
5309 test "x$ac_cv_prog_cc_c89" != "xno" && break
5310 done
5311 rm -f conftest.$ac_ext
5312 CC=$ac_save_CC
5313 fi
5314
5315 if test "x$ac_cv_prog_cc_c89" = xno
5316 then :
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5318 printf "%s\n" "unsupported" >&6; }
5319 else $as_nop
5320 if test "x$ac_cv_prog_cc_c89" = x
5321 then :
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5323 printf "%s\n" "none needed" >&6; }
5324 else $as_nop
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5326 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5327 CC="$CC $ac_cv_prog_cc_c89"
5328 fi
5329 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5330 ac_prog_cc_stdc=c89
5331 fi
5332 fi
5333
5334 ac_ext=cpp
5335 ac_cpp='$CXXCPP $CPPFLAGS'
5336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5339
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5347 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5348 if test ${am_cv_prog_cc_c_o+y}
5349 then :
5350 printf %s "(cached) " >&6
5351 else $as_nop
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354
5355 int
5356 main (void)
5357 {
5358
5359 ;
5360 return 0;
5361 }
5362 _ACEOF
5363 # Make sure it works both with $CC and with simple cc.
5364 # Following AC_PROG_CC_C_O, we do the test twice because some
5365 # compilers refuse to overwrite an existing .o file with -o,
5366 # though they will create one.
5367 am_cv_prog_cc_c_o=yes
5368 for am_i in 1 2; do
5369 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5370 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } \
5374 && test -f conftest2.$ac_objext; then
5375 : OK
5376 else
5377 am_cv_prog_cc_c_o=no
5378 break
5379 fi
5380 done
5381 rm -f core conftest*
5382 unset am_i
5383 fi
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5385 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5386 if test "$am_cv_prog_cc_c_o" != yes; then
5387 # Losing compiler, so override with the script.
5388 # FIXME: It is wrong to rewrite CC.
5389 # But if we don't then we get into trouble of one sort or another.
5390 # A longer-term fix would be to have automake use am__CC in this case,
5391 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5392 CC="$am_aux_dir/compile $CC"
5393 fi
5394 ac_ext=cpp
5395 ac_cpp='$CXXCPP $CPPFLAGS'
5396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5399
5400
5401 depcc="$CC" am_compiler_list=
5402
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5404 printf %s "checking dependency style of $depcc... " >&6; }
5405 if test ${am_cv_CC_dependencies_compiler_type+y}
5406 then :
5407 printf %s "(cached) " >&6
5408 else $as_nop
5409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5410 # We make a subdir and do the tests there. Otherwise we can end up
5411 # making bogus files that we don't know about and never remove. For
5412 # instance it was reported that on HP-UX the gcc test will end up
5413 # making a dummy file named 'D' -- because '-MD' means "put the output
5414 # in D".
5415 rm -rf conftest.dir
5416 mkdir conftest.dir
5417 # Copy depcomp to subdir because otherwise we won't find it if we're
5418 # using a relative directory.
5419 cp "$am_depcomp" conftest.dir
5420 cd conftest.dir
5421 # We will build objects and dependencies in a subdirectory because
5422 # it helps to detect inapplicable dependency modes. For instance
5423 # both Tru64's cc and ICC support -MD to output dependencies as a
5424 # side effect of compilation, but ICC will put the dependencies in
5425 # the current directory while Tru64 will put them in the object
5426 # directory.
5427 mkdir sub
5428
5429 am_cv_CC_dependencies_compiler_type=none
5430 if test "$am_compiler_list" = ""; then
5431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5432 fi
5433 am__universal=false
5434 case " $depcc " in #(
5435 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5436 esac
5437
5438 for depmode in $am_compiler_list; do
5439 # Setup a source with many dependencies, because some compilers
5440 # like to wrap large dependency lists on column 80 (with \), and
5441 # we should not choose a depcomp mode which is confused by this.
5442 #
5443 # We need to recreate these files for each test, as the compiler may
5444 # overwrite some of them when testing with obscure command lines.
5445 # This happens at least with the AIX C compiler.
5446 : > sub/conftest.c
5447 for i in 1 2 3 4 5 6; do
5448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5449 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5450 # Solaris 10 /bin/sh.
5451 echo '/* dummy */' > sub/conftst$i.h
5452 done
5453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5454
5455 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5456 # mode. It turns out that the SunPro C++ compiler does not properly
5457 # handle '-M -o', and we need to detect this. Also, some Intel
5458 # versions had trouble with output in subdirs.
5459 am__obj=sub/conftest.${OBJEXT-o}
5460 am__minus_obj="-o $am__obj"
5461 case $depmode in
5462 gcc)
5463 # This depmode causes a compiler race in universal mode.
5464 test "$am__universal" = false || continue
5465 ;;
5466 nosideeffect)
5467 # After this tag, mechanisms are not by side-effect, so they'll
5468 # only be used when explicitly requested.
5469 if test "x$enable_dependency_tracking" = xyes; then
5470 continue
5471 else
5472 break
5473 fi
5474 ;;
5475 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5476 # This compiler won't grok '-c -o', but also, the minuso test has
5477 # not run yet. These depmodes are late enough in the game, and
5478 # so weak that their functioning should not be impacted.
5479 am__obj=conftest.${OBJEXT-o}
5480 am__minus_obj=
5481 ;;
5482 none) break ;;
5483 esac
5484 if depmode=$depmode \
5485 source=sub/conftest.c object=$am__obj \
5486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5487 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5488 >/dev/null 2>conftest.err &&
5489 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5490 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5491 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5492 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5493 # icc doesn't choke on unknown options, it will just issue warnings
5494 # or remarks (even with -Werror). So we grep stderr for any message
5495 # that says an option was ignored or not supported.
5496 # When given -MP, icc 7.0 and 7.1 complain thusly:
5497 # icc: Command line warning: ignoring option '-M'; no argument required
5498 # The diagnosis changed in icc 8.0:
5499 # icc: Command line remark: option '-MP' not supported
5500 if (grep 'ignoring option' conftest.err ||
5501 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5502 am_cv_CC_dependencies_compiler_type=$depmode
5503 break
5504 fi
5505 fi
5506 done
5507
5508 cd ..
5509 rm -rf conftest.dir
5510 else
5511 am_cv_CC_dependencies_compiler_type=none
5512 fi
5513
5514 fi
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5516 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5517 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5518
5519 if
5520 test "x$enable_dependency_tracking" != xno \
5521 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5522 am__fastdepCC_TRUE=
5523 am__fastdepCC_FALSE='#'
5524 else
5525 am__fastdepCC_TRUE='#'
5526 am__fastdepCC_FALSE=
5527 fi
5528
5529
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5531 printf %s "checking for a sed that does not truncate output... " >&6; }
5532 if test ${ac_cv_path_SED+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else $as_nop
5536 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5537 for ac_i in 1 2 3 4 5 6 7; do
5538 ac_script="$ac_script$as_nl$ac_script"
5539 done
5540 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5541 { ac_script=; unset ac_script;}
5542 if test -z "$SED"; then
5543 ac_path_SED_found=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 case $as_dir in #(((
5550 '') as_dir=./ ;;
5551 */) ;;
5552 *) as_dir=$as_dir/ ;;
5553 esac
5554 for ac_prog in sed gsed
5555 do
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5558 as_fn_executable_p "$ac_path_SED" || continue
5559 # Check for GNU ac_path_SED and select it if it is found.
5560 # Check for GNU $ac_path_SED
5561 case `"$ac_path_SED" --version 2>&1` in
5562 *GNU*)
5563 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5564 *)
5565 ac_count=0
5566 printf %s 0123456789 >"conftest.in"
5567 while :
5568 do
5569 cat "conftest.in" "conftest.in" >"conftest.tmp"
5570 mv "conftest.tmp" "conftest.in"
5571 cp "conftest.in" "conftest.nl"
5572 printf "%s\n" '' >> "conftest.nl"
5573 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5575 as_fn_arith $ac_count + 1 && ac_count=$as_val
5576 if test $ac_count -gt ${ac_path_SED_max-0}; then
5577 # Best one so far, save it but keep looking for a better one
5578 ac_cv_path_SED="$ac_path_SED"
5579 ac_path_SED_max=$ac_count
5580 fi
5581 # 10*(2^10) chars as input seems more than enough
5582 test $ac_count -gt 10 && break
5583 done
5584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5585 esac
5586
5587 $ac_path_SED_found && break 3
5588 done
5589 done
5590 done
5591 IFS=$as_save_IFS
5592 if test -z "$ac_cv_path_SED"; then
5593 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5594 fi
5595 else
5596 ac_cv_path_SED=$SED
5597 fi
5598
5599 fi
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5601 printf "%s\n" "$ac_cv_path_SED" >&6; }
5602 SED="$ac_cv_path_SED"
5603 rm -f conftest.sed
5604
5605 test -z "$SED" && SED=sed
5606 Xsed="$SED -e 1s/^X//"
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5619 printf %s "checking for grep that handles long lines and -e... " >&6; }
5620 if test ${ac_cv_path_GREP+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else $as_nop
5624 if test -z "$GREP"; then
5625 ac_path_GREP_found=false
5626 # Loop through the user's path and test for each of PROGNAME-LIST
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5629 do
5630 IFS=$as_save_IFS
5631 case $as_dir in #(((
5632 '') as_dir=./ ;;
5633 */) ;;
5634 *) as_dir=$as_dir/ ;;
5635 esac
5636 for ac_prog in grep ggrep
5637 do
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5640 as_fn_executable_p "$ac_path_GREP" || continue
5641 # Check for GNU ac_path_GREP and select it if it is found.
5642 # Check for GNU $ac_path_GREP
5643 case `"$ac_path_GREP" --version 2>&1` in
5644 *GNU*)
5645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5646 *)
5647 ac_count=0
5648 printf %s 0123456789 >"conftest.in"
5649 while :
5650 do
5651 cat "conftest.in" "conftest.in" >"conftest.tmp"
5652 mv "conftest.tmp" "conftest.in"
5653 cp "conftest.in" "conftest.nl"
5654 printf "%s\n" 'GREP' >> "conftest.nl"
5655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657 as_fn_arith $ac_count + 1 && ac_count=$as_val
5658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5659 # Best one so far, save it but keep looking for a better one
5660 ac_cv_path_GREP="$ac_path_GREP"
5661 ac_path_GREP_max=$ac_count
5662 fi
5663 # 10*(2^10) chars as input seems more than enough
5664 test $ac_count -gt 10 && break
5665 done
5666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 esac
5668
5669 $ac_path_GREP_found && break 3
5670 done
5671 done
5672 done
5673 IFS=$as_save_IFS
5674 if test -z "$ac_cv_path_GREP"; then
5675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5676 fi
5677 else
5678 ac_cv_path_GREP=$GREP
5679 fi
5680
5681 fi
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5683 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5684 GREP="$ac_cv_path_GREP"
5685
5686
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5688 printf %s "checking for egrep... " >&6; }
5689 if test ${ac_cv_path_EGREP+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else $as_nop
5693 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5694 then ac_cv_path_EGREP="$GREP -E"
5695 else
5696 if test -z "$EGREP"; then
5697 ac_path_EGREP_found=false
5698 # Loop through the user's path and test for each of PROGNAME-LIST
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5701 do
5702 IFS=$as_save_IFS
5703 case $as_dir in #(((
5704 '') as_dir=./ ;;
5705 */) ;;
5706 *) as_dir=$as_dir/ ;;
5707 esac
5708 for ac_prog in egrep
5709 do
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5712 as_fn_executable_p "$ac_path_EGREP" || continue
5713 # Check for GNU ac_path_EGREP and select it if it is found.
5714 # Check for GNU $ac_path_EGREP
5715 case `"$ac_path_EGREP" --version 2>&1` in
5716 *GNU*)
5717 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5718 *)
5719 ac_count=0
5720 printf %s 0123456789 >"conftest.in"
5721 while :
5722 do
5723 cat "conftest.in" "conftest.in" >"conftest.tmp"
5724 mv "conftest.tmp" "conftest.in"
5725 cp "conftest.in" "conftest.nl"
5726 printf "%s\n" 'EGREP' >> "conftest.nl"
5727 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729 as_fn_arith $ac_count + 1 && ac_count=$as_val
5730 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5731 # Best one so far, save it but keep looking for a better one
5732 ac_cv_path_EGREP="$ac_path_EGREP"
5733 ac_path_EGREP_max=$ac_count
5734 fi
5735 # 10*(2^10) chars as input seems more than enough
5736 test $ac_count -gt 10 && break
5737 done
5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739 esac
5740
5741 $ac_path_EGREP_found && break 3
5742 done
5743 done
5744 done
5745 IFS=$as_save_IFS
5746 if test -z "$ac_cv_path_EGREP"; then
5747 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5748 fi
5749 else
5750 ac_cv_path_EGREP=$EGREP
5751 fi
5752
5753 fi
5754 fi
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5756 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5757 EGREP="$ac_cv_path_EGREP"
5758
5759
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5761 printf %s "checking for fgrep... " >&6; }
5762 if test ${ac_cv_path_FGREP+y}
5763 then :
5764 printf %s "(cached) " >&6
5765 else $as_nop
5766 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5767 then ac_cv_path_FGREP="$GREP -F"
5768 else
5769 if test -z "$FGREP"; then
5770 ac_path_FGREP_found=false
5771 # Loop through the user's path and test for each of PROGNAME-LIST
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5774 do
5775 IFS=$as_save_IFS
5776 case $as_dir in #(((
5777 '') as_dir=./ ;;
5778 */) ;;
5779 *) as_dir=$as_dir/ ;;
5780 esac
5781 for ac_prog in fgrep
5782 do
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5785 as_fn_executable_p "$ac_path_FGREP" || continue
5786 # Check for GNU ac_path_FGREP and select it if it is found.
5787 # Check for GNU $ac_path_FGREP
5788 case `"$ac_path_FGREP" --version 2>&1` in
5789 *GNU*)
5790 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5791 *)
5792 ac_count=0
5793 printf %s 0123456789 >"conftest.in"
5794 while :
5795 do
5796 cat "conftest.in" "conftest.in" >"conftest.tmp"
5797 mv "conftest.tmp" "conftest.in"
5798 cp "conftest.in" "conftest.nl"
5799 printf "%s\n" 'FGREP' >> "conftest.nl"
5800 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5802 as_fn_arith $ac_count + 1 && ac_count=$as_val
5803 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5804 # Best one so far, save it but keep looking for a better one
5805 ac_cv_path_FGREP="$ac_path_FGREP"
5806 ac_path_FGREP_max=$ac_count
5807 fi
5808 # 10*(2^10) chars as input seems more than enough
5809 test $ac_count -gt 10 && break
5810 done
5811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5812 esac
5813
5814 $ac_path_FGREP_found && break 3
5815 done
5816 done
5817 done
5818 IFS=$as_save_IFS
5819 if test -z "$ac_cv_path_FGREP"; then
5820 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5821 fi
5822 else
5823 ac_cv_path_FGREP=$FGREP
5824 fi
5825
5826 fi
5827 fi
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5829 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5830 FGREP="$ac_cv_path_FGREP"
5831
5832
5833 test -z "$GREP" && GREP=grep
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853 # Check whether --with-gnu-ld was given.
5854 if test ${with_gnu_ld+y}
5855 then :
5856 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5857 else $as_nop
5858 with_gnu_ld=no
5859 fi
5860
5861 ac_prog=ld
5862 if test yes = "$GCC"; then
5863 # Check if gcc -print-prog-name=ld gives a path.
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5865 printf %s "checking for ld used by $CC... " >&6; }
5866 case $host in
5867 *-*-mingw*)
5868 # gcc leaves a trailing carriage return, which upsets mingw
5869 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5870 *)
5871 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5872 esac
5873 case $ac_prog in
5874 # Accept absolute paths.
5875 [\\/]* | ?:[\\/]*)
5876 re_direlt='/[^/][^/]*/\.\./'
5877 # Canonicalize the pathname of ld
5878 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5879 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5880 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5881 done
5882 test -z "$LD" && LD=$ac_prog
5883 ;;
5884 "")
5885 # If it fails, then pretend we aren't using GCC.
5886 ac_prog=ld
5887 ;;
5888 *)
5889 # If it is relative, then search for the first ld in PATH.
5890 with_gnu_ld=unknown
5891 ;;
5892 esac
5893 elif test yes = "$with_gnu_ld"; then
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5895 printf %s "checking for GNU ld... " >&6; }
5896 else
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5898 printf %s "checking for non-GNU ld... " >&6; }
5899 fi
5900 if test ${lt_cv_path_LD+y}
5901 then :
5902 printf %s "(cached) " >&6
5903 else $as_nop
5904 if test -z "$LD"; then
5905 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5906 for ac_dir in $PATH; do
5907 IFS=$lt_save_ifs
5908 test -z "$ac_dir" && ac_dir=.
5909 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5910 lt_cv_path_LD=$ac_dir/$ac_prog
5911 # Check to see if the program is GNU ld. I'd rather use --version,
5912 # but apparently some variants of GNU ld only accept -v.
5913 # Break only if it was the GNU/non-GNU ld that we prefer.
5914 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5915 *GNU* | *'with BFD'*)
5916 test no != "$with_gnu_ld" && break
5917 ;;
5918 *)
5919 test yes != "$with_gnu_ld" && break
5920 ;;
5921 esac
5922 fi
5923 done
5924 IFS=$lt_save_ifs
5925 else
5926 lt_cv_path_LD=$LD # Let the user override the test with a path.
5927 fi
5928 fi
5929
5930 LD=$lt_cv_path_LD
5931 if test -n "$LD"; then
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5933 printf "%s\n" "$LD" >&6; }
5934 else
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 printf "%s\n" "no" >&6; }
5937 fi
5938 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5940 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5941 if test ${lt_cv_prog_gnu_ld+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else $as_nop
5945 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948 lt_cv_prog_gnu_ld=yes
5949 ;;
5950 *)
5951 lt_cv_prog_gnu_ld=no
5952 ;;
5953 esac
5954 fi
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5956 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5968 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5969 if test ${lt_cv_path_NM+y}
5970 then :
5971 printf %s "(cached) " >&6
5972 else $as_nop
5973 if test -n "$NM"; then
5974 # Let the user override the test.
5975 lt_cv_path_NM=$NM
5976 else
5977 lt_nm_to_check=${ac_tool_prefix}nm
5978 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5979 lt_nm_to_check="$lt_nm_to_check nm"
5980 fi
5981 for lt_tmp_nm in $lt_nm_to_check; do
5982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5983 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5984 IFS=$lt_save_ifs
5985 test -z "$ac_dir" && ac_dir=.
5986 tmp_nm=$ac_dir/$lt_tmp_nm
5987 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5988 # Check to see if the nm accepts a BSD-compat flag.
5989 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5990 # nm: unknown option "B" ignored
5991 # Tru64's nm complains that /dev/null is an invalid object file
5992 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5993 case $build_os in
5994 mingw*) lt_bad_file=conftest.nm/nofile ;;
5995 *) lt_bad_file=/dev/null ;;
5996 esac
5997 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5998 *$lt_bad_file* | *'Invalid file or object type'*)
5999 lt_cv_path_NM="$tmp_nm -B"
6000 break 2
6001 ;;
6002 *)
6003 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004 */dev/null*)
6005 lt_cv_path_NM="$tmp_nm -p"
6006 break 2
6007 ;;
6008 *)
6009 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6010 continue # so that we can try to find one that supports BSD flags
6011 ;;
6012 esac
6013 ;;
6014 esac
6015 fi
6016 done
6017 IFS=$lt_save_ifs
6018 done
6019 : ${lt_cv_path_NM=no}
6020 fi
6021 fi
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6023 printf "%s\n" "$lt_cv_path_NM" >&6; }
6024 if test no != "$lt_cv_path_NM"; then
6025 NM=$lt_cv_path_NM
6026 else
6027 # Didn't find any BSD compatible name lister, look for dumpbin.
6028 if test -n "$DUMPBIN"; then :
6029 # Let the user override the test.
6030 else
6031 if test -n "$ac_tool_prefix"; then
6032 for ac_prog in dumpbin "link -dump"
6033 do
6034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 printf %s "checking for $ac_word... " >&6; }
6038 if test ${ac_cv_prog_DUMPBIN+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else $as_nop
6042 if test -n "$DUMPBIN"; then
6043 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048 IFS=$as_save_IFS
6049 case $as_dir in #(((
6050 '') as_dir=./ ;;
6051 */) ;;
6052 *) as_dir=$as_dir/ ;;
6053 esac
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 DUMPBIN=$ac_cv_prog_DUMPBIN
6067 if test -n "$DUMPBIN"; then
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6069 printf "%s\n" "$DUMPBIN" >&6; }
6070 else
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 printf "%s\n" "no" >&6; }
6073 fi
6074
6075
6076 test -n "$DUMPBIN" && break
6077 done
6078 fi
6079 if test -z "$DUMPBIN"; then
6080 ac_ct_DUMPBIN=$DUMPBIN
6081 for ac_prog in dumpbin "link -dump"
6082 do
6083 # Extract the first word of "$ac_prog", so it can be a program name with args.
6084 set dummy $ac_prog; ac_word=$2
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 printf %s "checking for $ac_word... " >&6; }
6087 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6088 then :
6089 printf %s "(cached) " >&6
6090 else $as_nop
6091 if test -n "$ac_ct_DUMPBIN"; then
6092 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097 IFS=$as_save_IFS
6098 case $as_dir in #(((
6099 '') as_dir=./ ;;
6100 */) ;;
6101 *) as_dir=$as_dir/ ;;
6102 esac
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6116 if test -n "$ac_ct_DUMPBIN"; then
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6118 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6119 else
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 printf "%s\n" "no" >&6; }
6122 fi
6123
6124
6125 test -n "$ac_ct_DUMPBIN" && break
6126 done
6127
6128 if test "x$ac_ct_DUMPBIN" = x; then
6129 DUMPBIN=":"
6130 else
6131 case $cross_compiling:$ac_tool_warned in
6132 yes:)
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137 DUMPBIN=$ac_ct_DUMPBIN
6138 fi
6139 fi
6140
6141 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6142 *COFF*)
6143 DUMPBIN="$DUMPBIN -symbols -headers"
6144 ;;
6145 *)
6146 DUMPBIN=:
6147 ;;
6148 esac
6149 fi
6150
6151 if test : != "$DUMPBIN"; then
6152 NM=$DUMPBIN
6153 fi
6154 fi
6155 test -z "$NM" && NM=nm
6156
6157
6158
6159
6160
6161
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6163 printf %s "checking the name lister ($NM) interface... " >&6; }
6164 if test ${lt_cv_nm_interface+y}
6165 then :
6166 printf %s "(cached) " >&6
6167 else $as_nop
6168 lt_cv_nm_interface="BSD nm"
6169 echo "int some_variable = 0;" > conftest.$ac_ext
6170 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6171 (eval "$ac_compile" 2>conftest.err)
6172 cat conftest.err >&5
6173 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6174 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6175 cat conftest.err >&5
6176 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6177 cat conftest.out >&5
6178 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6179 lt_cv_nm_interface="MS dumpbin"
6180 fi
6181 rm -f conftest*
6182 fi
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6184 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6185
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6187 printf %s "checking whether ln -s works... " >&6; }
6188 LN_S=$as_ln_s
6189 if test "$LN_S" = "ln -s"; then
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6191 printf "%s\n" "yes" >&6; }
6192 else
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6194 printf "%s\n" "no, using $LN_S" >&6; }
6195 fi
6196
6197 # find the maximum length of command line arguments
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6199 printf %s "checking the maximum length of command line arguments... " >&6; }
6200 if test ${lt_cv_sys_max_cmd_len+y}
6201 then :
6202 printf %s "(cached) " >&6
6203 else $as_nop
6204 i=0
6205 teststring=ABCD
6206
6207 case $build_os in
6208 msdosdjgpp*)
6209 # On DJGPP, this test can blow up pretty badly due to problems in libc
6210 # (any single argument exceeding 2000 bytes causes a buffer overrun
6211 # during glob expansion). Even if it were fixed, the result of this
6212 # check would be larger than it should be.
6213 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6214 ;;
6215
6216 gnu*)
6217 # Under GNU Hurd, this test is not required because there is
6218 # no limit to the length of command line arguments.
6219 # Libtool will interpret -1 as no limit whatsoever
6220 lt_cv_sys_max_cmd_len=-1;
6221 ;;
6222
6223 cygwin* | mingw* | cegcc*)
6224 # On Win9x/ME, this test blows up -- it succeeds, but takes
6225 # about 5 minutes as the teststring grows exponentially.
6226 # Worse, since 9x/ME are not pre-emptively multitasking,
6227 # you end up with a "frozen" computer, even though with patience
6228 # the test eventually succeeds (with a max line length of 256k).
6229 # Instead, let's just punt: use the minimum linelength reported by
6230 # all of the supported platforms: 8192 (on NT/2K/XP).
6231 lt_cv_sys_max_cmd_len=8192;
6232 ;;
6233
6234 mint*)
6235 # On MiNT this can take a long time and run out of memory.
6236 lt_cv_sys_max_cmd_len=8192;
6237 ;;
6238
6239 amigaos*)
6240 # On AmigaOS with pdksh, this test takes hours, literally.
6241 # So we just punt and use a minimum line length of 8192.
6242 lt_cv_sys_max_cmd_len=8192;
6243 ;;
6244
6245 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6246 # This has been around since 386BSD, at least. Likely further.
6247 if test -x /sbin/sysctl; then
6248 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6249 elif test -x /usr/sbin/sysctl; then
6250 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6251 else
6252 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6253 fi
6254 # And add a safety zone
6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6257 ;;
6258
6259 interix*)
6260 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6261 lt_cv_sys_max_cmd_len=196608
6262 ;;
6263
6264 os2*)
6265 # The test takes a long time on OS/2.
6266 lt_cv_sys_max_cmd_len=8192
6267 ;;
6268
6269 osf*)
6270 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6271 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6272 # nice to cause kernel panics so lets avoid the loop below.
6273 # First set a reasonable default.
6274 lt_cv_sys_max_cmd_len=16384
6275 #
6276 if test -x /sbin/sysconfig; then
6277 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6278 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6279 esac
6280 fi
6281 ;;
6282 sco3.2v5*)
6283 lt_cv_sys_max_cmd_len=102400
6284 ;;
6285 sysv5* | sco5v6* | sysv4.2uw2*)
6286 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6287 if test -n "$kargmax"; then
6288 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6289 else
6290 lt_cv_sys_max_cmd_len=32768
6291 fi
6292 ;;
6293 *)
6294 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6295 if test -n "$lt_cv_sys_max_cmd_len" && \
6296 test undefined != "$lt_cv_sys_max_cmd_len"; then
6297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6299 else
6300 # Make teststring a little bigger before we do anything with it.
6301 # a 1K string should be a reasonable start.
6302 for i in 1 2 3 4 5 6 7 8; do
6303 teststring=$teststring$teststring
6304 done
6305 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6306 # If test is not a shell built-in, we'll probably end up computing a
6307 # maximum length that is only half of the actual maximum length, but
6308 # we can't tell.
6309 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6310 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6311 test 17 != "$i" # 1/2 MB should be enough
6312 do
6313 i=`expr $i + 1`
6314 teststring=$teststring$teststring
6315 done
6316 # Only check the string length outside the loop.
6317 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6318 teststring=
6319 # Add a significant safety factor because C++ compilers can tack on
6320 # massive amounts of additional arguments before passing them to the
6321 # linker. It appears as though 1/2 is a usable value.
6322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6323 fi
6324 ;;
6325 esac
6326
6327 fi
6328
6329 if test -n "$lt_cv_sys_max_cmd_len"; then
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6331 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6332 else
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6334 printf "%s\n" "none" >&6; }
6335 fi
6336 max_cmd_len=$lt_cv_sys_max_cmd_len
6337
6338
6339
6340
6341
6342
6343 : ${CP="cp -f"}
6344 : ${MV="mv -f"}
6345 : ${RM="rm -f"}
6346
6347 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6348 lt_unset=unset
6349 else
6350 lt_unset=false
6351 fi
6352
6353
6354
6355
6356
6357 # test EBCDIC or ASCII
6358 case `echo X|tr X '\101'` in
6359 A) # ASCII based system
6360 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6361 lt_SP2NL='tr \040 \012'
6362 lt_NL2SP='tr \015\012 \040\040'
6363 ;;
6364 *) # EBCDIC based system
6365 lt_SP2NL='tr \100 \n'
6366 lt_NL2SP='tr \r\n \100\100'
6367 ;;
6368 esac
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6379 printf %s "checking how to convert $build file names to $host format... " >&6; }
6380 if test ${lt_cv_to_host_file_cmd+y}
6381 then :
6382 printf %s "(cached) " >&6
6383 else $as_nop
6384 case $host in
6385 *-*-mingw* )
6386 case $build in
6387 *-*-mingw* ) # actually msys
6388 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6389 ;;
6390 *-*-cygwin* )
6391 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6392 ;;
6393 * ) # otherwise, assume *nix
6394 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6395 ;;
6396 esac
6397 ;;
6398 *-*-cygwin* )
6399 case $build in
6400 *-*-mingw* ) # actually msys
6401 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6402 ;;
6403 *-*-cygwin* )
6404 lt_cv_to_host_file_cmd=func_convert_file_noop
6405 ;;
6406 * ) # otherwise, assume *nix
6407 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6408 ;;
6409 esac
6410 ;;
6411 * ) # unhandled hosts (and "normal" native builds)
6412 lt_cv_to_host_file_cmd=func_convert_file_noop
6413 ;;
6414 esac
6415
6416 fi
6417
6418 to_host_file_cmd=$lt_cv_to_host_file_cmd
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6420 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6421
6422
6423
6424
6425
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6427 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6428 if test ${lt_cv_to_tool_file_cmd+y}
6429 then :
6430 printf %s "(cached) " >&6
6431 else $as_nop
6432 #assume ordinary cross tools, or native build.
6433 lt_cv_to_tool_file_cmd=func_convert_file_noop
6434 case $host in
6435 *-*-mingw* )
6436 case $build in
6437 *-*-mingw* ) # actually msys
6438 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6439 ;;
6440 esac
6441 ;;
6442 esac
6443
6444 fi
6445
6446 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6448 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6449
6450
6451
6452
6453
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6455 printf %s "checking for $LD option to reload object files... " >&6; }
6456 if test ${lt_cv_ld_reload_flag+y}
6457 then :
6458 printf %s "(cached) " >&6
6459 else $as_nop
6460 lt_cv_ld_reload_flag='-r'
6461 fi
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6463 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6464 reload_flag=$lt_cv_ld_reload_flag
6465 case $reload_flag in
6466 "" | " "*) ;;
6467 *) reload_flag=" $reload_flag" ;;
6468 esac
6469 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6470 case $host_os in
6471 cygwin* | mingw* | pw32* | cegcc*)
6472 if test yes != "$GCC"; then
6473 reload_cmds=false
6474 fi
6475 ;;
6476 darwin*)
6477 if test yes = "$GCC"; then
6478 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6479 else
6480 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6481 fi
6482 ;;
6483 esac
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 printf %s "checking for $ac_word... " >&6; }
6498 if test ${ac_cv_prog_OBJDUMP+y}
6499 then :
6500 printf %s "(cached) " >&6
6501 else $as_nop
6502 if test -n "$OBJDUMP"; then
6503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 case $as_dir in #(((
6510 '') as_dir=./ ;;
6511 */) ;;
6512 *) as_dir=$as_dir/ ;;
6513 esac
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 OBJDUMP=$ac_cv_prog_OBJDUMP
6527 if test -n "$OBJDUMP"; then
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6529 printf "%s\n" "$OBJDUMP" >&6; }
6530 else
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 printf "%s\n" "no" >&6; }
6533 fi
6534
6535
6536 fi
6537 if test -z "$ac_cv_prog_OBJDUMP"; then
6538 ac_ct_OBJDUMP=$OBJDUMP
6539 # Extract the first word of "objdump", so it can be a program name with args.
6540 set dummy objdump; ac_word=$2
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 printf %s "checking for $ac_word... " >&6; }
6543 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6544 then :
6545 printf %s "(cached) " >&6
6546 else $as_nop
6547 if test -n "$ac_ct_OBJDUMP"; then
6548 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 case $as_dir in #(((
6555 '') as_dir=./ ;;
6556 */) ;;
6557 *) as_dir=$as_dir/ ;;
6558 esac
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6572 if test -n "$ac_ct_OBJDUMP"; then
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6574 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6575 else
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 printf "%s\n" "no" >&6; }
6578 fi
6579
6580 if test "x$ac_ct_OBJDUMP" = x; then
6581 OBJDUMP="false"
6582 else
6583 case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589 OBJDUMP=$ac_ct_OBJDUMP
6590 fi
6591 else
6592 OBJDUMP="$ac_cv_prog_OBJDUMP"
6593 fi
6594
6595 test -z "$OBJDUMP" && OBJDUMP=objdump
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6606 printf %s "checking how to recognize dependent libraries... " >&6; }
6607 if test ${lt_cv_deplibs_check_method+y}
6608 then :
6609 printf %s "(cached) " >&6
6610 else $as_nop
6611 lt_cv_file_magic_cmd='$MAGIC_CMD'
6612 lt_cv_file_magic_test_file=
6613 lt_cv_deplibs_check_method='unknown'
6614 # Need to set the preceding variable on all platforms that support
6615 # interlibrary dependencies.
6616 # 'none' -- dependencies not supported.
6617 # 'unknown' -- same as none, but documents that we really don't know.
6618 # 'pass_all' -- all dependencies passed with no checks.
6619 # 'test_compile' -- check by making test program.
6620 # 'file_magic [[regex]]' -- check by looking for files in library path
6621 # that responds to the $file_magic_cmd with a given extended regex.
6622 # If you have 'file' or equivalent on your system and you're not sure
6623 # whether 'pass_all' will *always* work, you probably want this one.
6624
6625 case $host_os in
6626 aix[4-9]*)
6627 lt_cv_deplibs_check_method=pass_all
6628 ;;
6629
6630 beos*)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633
6634 bsdi[45]*)
6635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6636 lt_cv_file_magic_cmd='/usr/bin/file -L'
6637 lt_cv_file_magic_test_file=/shlib/libc.so
6638 ;;
6639
6640 cygwin*)
6641 # func_win32_libid is a shell function defined in ltmain.sh
6642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6643 lt_cv_file_magic_cmd='func_win32_libid'
6644 ;;
6645
6646 mingw* | pw32*)
6647 # Base MSYS/MinGW do not provide the 'file' command needed by
6648 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6649 # unless we find 'file', for example because we are cross-compiling.
6650 if ( file / ) >/dev/null 2>&1; then
6651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd='func_win32_libid'
6653 else
6654 # Keep this pattern in sync with the one in func_win32_libid.
6655 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6656 lt_cv_file_magic_cmd='$OBJDUMP -f'
6657 fi
6658 ;;
6659
6660 cegcc*)
6661 # use the weaker test based on 'objdump'. See mingw*.
6662 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6663 lt_cv_file_magic_cmd='$OBJDUMP -f'
6664 ;;
6665
6666 darwin* | rhapsody*)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669
6670 freebsd* | dragonfly*)
6671 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6672 case $host_cpu in
6673 i*86 )
6674 # Not sure whether the presence of OpenBSD here was a mistake.
6675 # Let's accept both of them until this is cleared up.
6676 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6677 lt_cv_file_magic_cmd=/usr/bin/file
6678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6679 ;;
6680 esac
6681 else
6682 lt_cv_deplibs_check_method=pass_all
6683 fi
6684 ;;
6685
6686 haiku*)
6687 lt_cv_deplibs_check_method=pass_all
6688 ;;
6689
6690 hpux10.20* | hpux11*)
6691 lt_cv_file_magic_cmd=/usr/bin/file
6692 case $host_cpu in
6693 ia64*)
6694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6695 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6696 ;;
6697 hppa*64*)
6698 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]'
6699 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6700 ;;
6701 *)
6702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6703 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6704 ;;
6705 esac
6706 ;;
6707
6708 interix[3-9]*)
6709 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6711 ;;
6712
6713 irix5* | irix6* | nonstopux*)
6714 case $LD in
6715 *-32|*"-32 ") libmagic=32-bit;;
6716 *-n32|*"-n32 ") libmagic=N32;;
6717 *-64|*"-64 ") libmagic=64-bit;;
6718 *) libmagic=never-match;;
6719 esac
6720 lt_cv_deplibs_check_method=pass_all
6721 ;;
6722
6723 # This must be glibc/ELF.
6724 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
6727
6728 netbsd*)
6729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6731 else
6732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6733 fi
6734 ;;
6735
6736 newos6*)
6737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6738 lt_cv_file_magic_cmd=/usr/bin/file
6739 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6740 ;;
6741
6742 *nto* | *qnx*)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745
6746 openbsd* | bitrig*)
6747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6749 else
6750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6751 fi
6752 ;;
6753
6754 osf3* | osf4* | osf5*)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757
6758 rdos*)
6759 lt_cv_deplibs_check_method=pass_all
6760 ;;
6761
6762 solaris*)
6763 lt_cv_deplibs_check_method=pass_all
6764 ;;
6765
6766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769
6770 sysv4 | sysv4.3*)
6771 case $host_vendor in
6772 motorola)
6773 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]'
6774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6775 ;;
6776 ncr)
6777 lt_cv_deplibs_check_method=pass_all
6778 ;;
6779 sequent)
6780 lt_cv_file_magic_cmd='/bin/file'
6781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6782 ;;
6783 sni)
6784 lt_cv_file_magic_cmd='/bin/file'
6785 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6786 lt_cv_file_magic_test_file=/lib/libc.so
6787 ;;
6788 siemens)
6789 lt_cv_deplibs_check_method=pass_all
6790 ;;
6791 pc)
6792 lt_cv_deplibs_check_method=pass_all
6793 ;;
6794 esac
6795 ;;
6796
6797 tpf*)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800 os2*)
6801 lt_cv_deplibs_check_method=pass_all
6802 ;;
6803 esac
6804
6805 fi
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6807 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6808
6809 file_magic_glob=
6810 want_nocaseglob=no
6811 if test "$build" = "$host"; then
6812 case $host_os in
6813 mingw* | pw32*)
6814 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6815 want_nocaseglob=yes
6816 else
6817 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6818 fi
6819 ;;
6820 esac
6821 fi
6822
6823 file_magic_cmd=$lt_cv_file_magic_cmd
6824 deplibs_check_method=$lt_cv_deplibs_check_method
6825 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 printf %s "checking for $ac_word... " >&6; }
6853 if test ${ac_cv_prog_DLLTOOL+y}
6854 then :
6855 printf %s "(cached) " >&6
6856 else $as_nop
6857 if test -n "$DLLTOOL"; then
6858 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863 IFS=$as_save_IFS
6864 case $as_dir in #(((
6865 '') as_dir=./ ;;
6866 */) ;;
6867 *) as_dir=$as_dir/ ;;
6868 esac
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 DLLTOOL=$ac_cv_prog_DLLTOOL
6882 if test -n "$DLLTOOL"; then
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6884 printf "%s\n" "$DLLTOOL" >&6; }
6885 else
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 printf "%s\n" "no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_DLLTOOL"; then
6893 ac_ct_DLLTOOL=$DLLTOOL
6894 # Extract the first word of "dlltool", so it can be a program name with args.
6895 set dummy dlltool; ac_word=$2
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 printf %s "checking for $ac_word... " >&6; }
6898 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6899 then :
6900 printf %s "(cached) " >&6
6901 else $as_nop
6902 if test -n "$ac_ct_DLLTOOL"; then
6903 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 case $as_dir in #(((
6910 '') as_dir=./ ;;
6911 */) ;;
6912 *) as_dir=$as_dir/ ;;
6913 esac
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6927 if test -n "$ac_ct_DLLTOOL"; then
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6929 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6930 else
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 printf "%s\n" "no" >&6; }
6933 fi
6934
6935 if test "x$ac_ct_DLLTOOL" = x; then
6936 DLLTOOL="false"
6937 else
6938 case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6943 esac
6944 DLLTOOL=$ac_ct_DLLTOOL
6945 fi
6946 else
6947 DLLTOOL="$ac_cv_prog_DLLTOOL"
6948 fi
6949
6950 test -z "$DLLTOOL" && DLLTOOL=dlltool
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6962 printf %s "checking how to associate runtime and link libraries... " >&6; }
6963 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6964 then :
6965 printf %s "(cached) " >&6
6966 else $as_nop
6967 lt_cv_sharedlib_from_linklib_cmd='unknown'
6968
6969 case $host_os in
6970 cygwin* | mingw* | pw32* | cegcc*)
6971 # two different shell functions defined in ltmain.sh;
6972 # decide which one to use based on capabilities of $DLLTOOL
6973 case `$DLLTOOL --help 2>&1` in
6974 *--identify-strict*)
6975 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6976 ;;
6977 *)
6978 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6979 ;;
6980 esac
6981 ;;
6982 *)
6983 # fallback: assume linklib IS sharedlib
6984 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6985 ;;
6986 esac
6987
6988 fi
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6990 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6991 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6992 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6993
6994
6995
6996
6997
6998
6999
7000
7001 if test -n "$ac_tool_prefix"; then
7002 for ac_prog in ar
7003 do
7004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 printf %s "checking for $ac_word... " >&6; }
7008 if test ${ac_cv_prog_AR+y}
7009 then :
7010 printf %s "(cached) " >&6
7011 else $as_nop
7012 if test -n "$AR"; then
7013 ac_cv_prog_AR="$AR" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 case $as_dir in #(((
7020 '') as_dir=./ ;;
7021 */) ;;
7022 *) as_dir=$as_dir/ ;;
7023 esac
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7026 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7028 break 2
7029 fi
7030 done
7031 done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 AR=$ac_cv_prog_AR
7037 if test -n "$AR"; then
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7039 printf "%s\n" "$AR" >&6; }
7040 else
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 printf "%s\n" "no" >&6; }
7043 fi
7044
7045
7046 test -n "$AR" && break
7047 done
7048 fi
7049 if test -z "$AR"; then
7050 ac_ct_AR=$AR
7051 for ac_prog in ar
7052 do
7053 # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 printf %s "checking for $ac_word... " >&6; }
7057 if test ${ac_cv_prog_ac_ct_AR+y}
7058 then :
7059 printf %s "(cached) " >&6
7060 else $as_nop
7061 if test -n "$ac_ct_AR"; then
7062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 case $as_dir in #(((
7069 '') as_dir=./ ;;
7070 */) ;;
7071 *) as_dir=$as_dir/ ;;
7072 esac
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_ac_ct_AR="$ac_prog"
7076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7086 if test -n "$ac_ct_AR"; then
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7088 printf "%s\n" "$ac_ct_AR" >&6; }
7089 else
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 printf "%s\n" "no" >&6; }
7092 fi
7093
7094
7095 test -n "$ac_ct_AR" && break
7096 done
7097
7098 if test "x$ac_ct_AR" = x; then
7099 AR="false"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105 ac_tool_warned=yes ;;
7106 esac
7107 AR=$ac_ct_AR
7108 fi
7109 fi
7110
7111 : ${AR=ar}
7112 : ${AR_FLAGS=cru}
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7125 printf %s "checking for archiver @FILE support... " >&6; }
7126 if test ${lt_cv_ar_at_file+y}
7127 then :
7128 printf %s "(cached) " >&6
7129 else $as_nop
7130 lt_cv_ar_at_file=no
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133
7134 int
7135 main (void)
7136 {
7137
7138 ;
7139 return 0;
7140 }
7141 _ACEOF
7142 if ac_fn_cxx_try_compile "$LINENO"
7143 then :
7144 echo conftest.$ac_objext > conftest.lst
7145 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7147 (eval $lt_ar_try) 2>&5
7148 ac_status=$?
7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150 test $ac_status = 0; }
7151 if test 0 -eq "$ac_status"; then
7152 # Ensure the archiver fails upon bogus file names.
7153 rm -f conftest.$ac_objext libconftest.a
7154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7155 (eval $lt_ar_try) 2>&5
7156 ac_status=$?
7157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; }
7159 if test 0 -ne "$ac_status"; then
7160 lt_cv_ar_at_file=@
7161 fi
7162 fi
7163 rm -f conftest.* libconftest.a
7164
7165 fi
7166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7167
7168 fi
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7170 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7171
7172 if test no = "$lt_cv_ar_at_file"; then
7173 archiver_list_spec=
7174 else
7175 archiver_list_spec=$lt_cv_ar_at_file
7176 fi
7177
7178
7179
7180
7181
7182
7183
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}strip; ac_word=$2
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 printf %s "checking for $ac_word... " >&6; }
7189 if test ${ac_cv_prog_STRIP+y}
7190 then :
7191 printf %s "(cached) " >&6
7192 else $as_nop
7193 if test -n "$STRIP"; then
7194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 case $as_dir in #(((
7201 '') as_dir=./ ;;
7202 */) ;;
7203 *) as_dir=$as_dir/ ;;
7204 esac
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 STRIP=$ac_cv_prog_STRIP
7218 if test -n "$STRIP"; then
7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7220 printf "%s\n" "$STRIP" >&6; }
7221 else
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 printf "%s\n" "no" >&6; }
7224 fi
7225
7226
7227 fi
7228 if test -z "$ac_cv_prog_STRIP"; then
7229 ac_ct_STRIP=$STRIP
7230 # Extract the first word of "strip", so it can be a program name with args.
7231 set dummy strip; ac_word=$2
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 printf %s "checking for $ac_word... " >&6; }
7234 if test ${ac_cv_prog_ac_ct_STRIP+y}
7235 then :
7236 printf %s "(cached) " >&6
7237 else $as_nop
7238 if test -n "$ac_ct_STRIP"; then
7239 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 case $as_dir in #(((
7246 '') as_dir=./ ;;
7247 */) ;;
7248 *) as_dir=$as_dir/ ;;
7249 esac
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_ac_ct_STRIP="strip"
7253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7263 if test -n "$ac_ct_STRIP"; then
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7265 printf "%s\n" "$ac_ct_STRIP" >&6; }
7266 else
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 printf "%s\n" "no" >&6; }
7269 fi
7270
7271 if test "x$ac_ct_STRIP" = x; then
7272 STRIP=":"
7273 else
7274 case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7279 esac
7280 STRIP=$ac_ct_STRIP
7281 fi
7282 else
7283 STRIP="$ac_cv_prog_STRIP"
7284 fi
7285
7286 test -z "$STRIP" && STRIP=:
7287
7288
7289
7290
7291
7292
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 printf %s "checking for $ac_word... " >&6; }
7298 if test ${ac_cv_prog_RANLIB+y}
7299 then :
7300 printf %s "(cached) " >&6
7301 else $as_nop
7302 if test -n "$RANLIB"; then
7303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308 IFS=$as_save_IFS
7309 case $as_dir in #(((
7310 '') as_dir=./ ;;
7311 */) ;;
7312 *) as_dir=$as_dir/ ;;
7313 esac
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7316 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 RANLIB=$ac_cv_prog_RANLIB
7327 if test -n "$RANLIB"; then
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7329 printf "%s\n" "$RANLIB" >&6; }
7330 else
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 printf "%s\n" "no" >&6; }
7333 fi
7334
7335
7336 fi
7337 if test -z "$ac_cv_prog_RANLIB"; then
7338 ac_ct_RANLIB=$RANLIB
7339 # Extract the first word of "ranlib", so it can be a program name with args.
7340 set dummy ranlib; ac_word=$2
7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 printf %s "checking for $ac_word... " >&6; }
7343 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7344 then :
7345 printf %s "(cached) " >&6
7346 else $as_nop
7347 if test -n "$ac_ct_RANLIB"; then
7348 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 case $as_dir in #(((
7355 '') as_dir=./ ;;
7356 */) ;;
7357 *) as_dir=$as_dir/ ;;
7358 esac
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_RANLIB="ranlib"
7362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7372 if test -n "$ac_ct_RANLIB"; then
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7374 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7375 else
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 printf "%s\n" "no" >&6; }
7378 fi
7379
7380 if test "x$ac_ct_RANLIB" = x; then
7381 RANLIB=":"
7382 else
7383 case $cross_compiling:$ac_tool_warned in
7384 yes:)
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389 RANLIB=$ac_ct_RANLIB
7390 fi
7391 else
7392 RANLIB="$ac_cv_prog_RANLIB"
7393 fi
7394
7395 test -z "$RANLIB" && RANLIB=:
7396
7397
7398
7399
7400
7401
7402 # Determine commands to create old-style static archives.
7403 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7404 old_postinstall_cmds='chmod 644 $oldlib'
7405 old_postuninstall_cmds=
7406
7407 if test -n "$RANLIB"; then
7408 case $host_os in
7409 bitrig* | openbsd*)
7410 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7411 ;;
7412 *)
7413 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7414 ;;
7415 esac
7416 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7417 fi
7418
7419 case $host_os in
7420 darwin*)
7421 lock_old_archive_extraction=yes ;;
7422 *)
7423 lock_old_archive_extraction=no ;;
7424 esac
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 # If no C compiler was specified, use CC.
7465 LTCC=${LTCC-"$CC"}
7466
7467 # If no C compiler flags were specified, use CFLAGS.
7468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7469
7470 # Allow CC to be a program name with arguments.
7471 compiler=$CC
7472
7473
7474 # Check for command to grab the raw symbol name followed by C symbol from nm.
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7476 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7477 if test ${lt_cv_sys_global_symbol_pipe+y}
7478 then :
7479 printf %s "(cached) " >&6
7480 else $as_nop
7481
7482 # These are sane defaults that work on at least a few old systems.
7483 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7484
7485 # Character class describing NM global symbol codes.
7486 symcode='[BCDEGRST]'
7487
7488 # Regexp to match symbols that can be accessed directly from C.
7489 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7490
7491 # Define system-specific variables.
7492 case $host_os in
7493 aix*)
7494 symcode='[BCDT]'
7495 ;;
7496 cygwin* | mingw* | pw32* | cegcc*)
7497 symcode='[ABCDGISTW]'
7498 ;;
7499 hpux*)
7500 if test ia64 = "$host_cpu"; then
7501 symcode='[ABCDEGRST]'
7502 fi
7503 ;;
7504 irix* | nonstopux*)
7505 symcode='[BCDEGRST]'
7506 ;;
7507 osf*)
7508 symcode='[BCDEGQRST]'
7509 ;;
7510 solaris*)
7511 symcode='[BDRT]'
7512 ;;
7513 sco3.2v5*)
7514 symcode='[DT]'
7515 ;;
7516 sysv4.2uw2*)
7517 symcode='[DT]'
7518 ;;
7519 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7520 symcode='[ABDT]'
7521 ;;
7522 sysv4)
7523 symcode='[DFNSTU]'
7524 ;;
7525 esac
7526
7527 # If we're using GNU nm, then use its standard symbol codes.
7528 case `$NM -V 2>&1` in
7529 *GNU* | *'with BFD'*)
7530 symcode='[ABCDGIRSTW]' ;;
7531 esac
7532
7533 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7534 # Gets list of data symbols to import.
7535 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7536 # Adjust the below global symbol transforms to fixup imported variables.
7537 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7538 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7539 lt_c_name_lib_hook="\
7540 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7541 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7542 else
7543 # Disable hooks by default.
7544 lt_cv_sys_global_symbol_to_import=
7545 lt_cdecl_hook=
7546 lt_c_name_hook=
7547 lt_c_name_lib_hook=
7548 fi
7549
7550 # Transform an extracted symbol line into a proper C declaration.
7551 # Some systems (esp. on ia64) link data and code symbols differently,
7552 # so use this general approach.
7553 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7554 $lt_cdecl_hook\
7555 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7556 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7557
7558 # Transform an extracted symbol line into symbol name and symbol address
7559 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7560 $lt_c_name_hook\
7561 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7562 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7563
7564 # Transform an extracted symbol line into symbol name with lib prefix and
7565 # symbol address.
7566 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7567 $lt_c_name_lib_hook\
7568 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7569 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7570 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7571
7572 # Handle CRLF in mingw tool chain
7573 opt_cr=
7574 case $build_os in
7575 mingw*)
7576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7577 ;;
7578 esac
7579
7580 # Try without a prefix underscore, then with it.
7581 for ac_symprfx in "" "_"; do
7582
7583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7584 symxfrm="\\1 $ac_symprfx\\2 \\2"
7585
7586 # Write the raw and C identifiers.
7587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7588 # Fake it for dumpbin and say T for any non-static function,
7589 # D for any global variable and I for any imported variable.
7590 # Also find C++ and __fastcall symbols from MSVC++,
7591 # which start with @ or ?.
7592 lt_cv_sys_global_symbol_pipe="$AWK '"\
7593 " {last_section=section; section=\$ 3};"\
7594 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7595 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7596 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7597 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7598 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7599 " \$ 0!~/External *\|/{next};"\
7600 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7601 " {if(hide[section]) next};"\
7602 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7603 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7604 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7605 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7606 " ' prfx=^$ac_symprfx"
7607 else
7608 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7609 fi
7610 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7611
7612 # Check to see that the pipe works correctly.
7613 pipe_works=no
7614
7615 rm -f conftest*
7616 cat > conftest.$ac_ext <<_LT_EOF
7617 #ifdef __cplusplus
7618 extern "C" {
7619 #endif
7620 char nm_test_var;
7621 void nm_test_func(void);
7622 void nm_test_func(void){}
7623 #ifdef __cplusplus
7624 }
7625 #endif
7626 int main(){nm_test_var='a';nm_test_func();return(0);}
7627 _LT_EOF
7628
7629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7630 (eval $ac_compile) 2>&5
7631 ac_status=$?
7632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 # Now try to grab the symbols.
7635 nlist=conftest.nm
7636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7637 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7638 ac_status=$?
7639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640 test $ac_status = 0; } && test -s "$nlist"; then
7641 # Try sorting and uniquifying the output.
7642 if sort "$nlist" | uniq > "$nlist"T; then
7643 mv -f "$nlist"T "$nlist"
7644 else
7645 rm -f "$nlist"T
7646 fi
7647
7648 # Make sure that we snagged all the symbols we need.
7649 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7650 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7651 cat <<_LT_EOF > conftest.$ac_ext
7652 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7653 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7654 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7655 relocations are performed -- see ld's documentation on pseudo-relocs. */
7656 # define LT_DLSYM_CONST
7657 #elif defined __osf__
7658 /* This system does not cope well with relocations in const data. */
7659 # define LT_DLSYM_CONST
7660 #else
7661 # define LT_DLSYM_CONST const
7662 #endif
7663
7664 #ifdef __cplusplus
7665 extern "C" {
7666 #endif
7667
7668 _LT_EOF
7669 # Now generate the symbol file.
7670 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7671
7672 cat <<_LT_EOF >> conftest.$ac_ext
7673
7674 /* The mapping between symbol names and symbols. */
7675 LT_DLSYM_CONST struct {
7676 const char *name;
7677 void *address;
7678 }
7679 lt__PROGRAM__LTX_preloaded_symbols[] =
7680 {
7681 { "@PROGRAM@", (void *) 0 },
7682 _LT_EOF
7683 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7684 cat <<\_LT_EOF >> conftest.$ac_ext
7685 {0, (void *) 0}
7686 };
7687
7688 /* This works around a problem in FreeBSD linker */
7689 #ifdef FREEBSD_WORKAROUND
7690 static const void *lt_preloaded_setup() {
7691 return lt__PROGRAM__LTX_preloaded_symbols;
7692 }
7693 #endif
7694
7695 #ifdef __cplusplus
7696 }
7697 #endif
7698 _LT_EOF
7699 # Now try linking the two files.
7700 mv conftest.$ac_objext conftstm.$ac_objext
7701 lt_globsym_save_LIBS=$LIBS
7702 lt_globsym_save_CFLAGS=$CFLAGS
7703 LIBS=conftstm.$ac_objext
7704 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7706 (eval $ac_link) 2>&5
7707 ac_status=$?
7708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7710 pipe_works=yes
7711 fi
7712 LIBS=$lt_globsym_save_LIBS
7713 CFLAGS=$lt_globsym_save_CFLAGS
7714 else
7715 echo "cannot find nm_test_func in $nlist" >&5
7716 fi
7717 else
7718 echo "cannot find nm_test_var in $nlist" >&5
7719 fi
7720 else
7721 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7722 fi
7723 else
7724 echo "$progname: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7726 fi
7727 rm -rf conftest* conftst*
7728
7729 # Do not use the global_symbol_pipe unless it works.
7730 if test yes = "$pipe_works"; then
7731 break
7732 else
7733 lt_cv_sys_global_symbol_pipe=
7734 fi
7735 done
7736
7737 fi
7738
7739 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7740 lt_cv_sys_global_symbol_to_cdecl=
7741 fi
7742 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7744 printf "%s\n" "failed" >&6; }
7745 else
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7747 printf "%s\n" "ok" >&6; }
7748 fi
7749
7750 # Response file support.
7751 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7752 nm_file_list_spec='@'
7753 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7754 nm_file_list_spec='@'
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7794 printf %s "checking for sysroot... " >&6; }
7795
7796 # Check whether --with-sysroot was given.
7797 if test ${with_sysroot+y}
7798 then :
7799 withval=$with_sysroot;
7800 else $as_nop
7801 with_sysroot=no
7802 fi
7803
7804
7805 lt_sysroot=
7806 case $with_sysroot in #(
7807 yes)
7808 if test yes = "$GCC"; then
7809 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7810 fi
7811 ;; #(
7812 /*)
7813 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7814 ;; #(
7815 no|'')
7816 ;; #(
7817 *)
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7819 printf "%s\n" "$with_sysroot" >&6; }
7820 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7821 ;;
7822 esac
7823
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7825 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7826
7827
7828
7829
7830
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7832 printf %s "checking for a working dd... " >&6; }
7833 if test ${ac_cv_path_lt_DD+y}
7834 then :
7835 printf %s "(cached) " >&6
7836 else $as_nop
7837 printf 0123456789abcdef0123456789abcdef >conftest.i
7838 cat conftest.i conftest.i >conftest2.i
7839 : ${lt_DD:=$DD}
7840 if test -z "$lt_DD"; then
7841 ac_path_lt_DD_found=false
7842 # Loop through the user's path and test for each of PROGNAME-LIST
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846 IFS=$as_save_IFS
7847 case $as_dir in #(((
7848 '') as_dir=./ ;;
7849 */) ;;
7850 *) as_dir=$as_dir/ ;;
7851 esac
7852 for ac_prog in dd
7853 do
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7856 as_fn_executable_p "$ac_path_lt_DD" || continue
7857 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7858 cmp -s conftest.i conftest.out \
7859 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7860 fi
7861 $ac_path_lt_DD_found && break 3
7862 done
7863 done
7864 done
7865 IFS=$as_save_IFS
7866 if test -z "$ac_cv_path_lt_DD"; then
7867 :
7868 fi
7869 else
7870 ac_cv_path_lt_DD=$lt_DD
7871 fi
7872
7873 rm -f conftest.i conftest2.i conftest.out
7874 fi
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7876 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7877
7878
7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7880 printf %s "checking how to truncate binary pipes... " >&6; }
7881 if test ${lt_cv_truncate_bin+y}
7882 then :
7883 printf %s "(cached) " >&6
7884 else $as_nop
7885 printf 0123456789abcdef0123456789abcdef >conftest.i
7886 cat conftest.i conftest.i >conftest2.i
7887 lt_cv_truncate_bin=
7888 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7889 cmp -s conftest.i conftest.out \
7890 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7891 fi
7892 rm -f conftest.i conftest2.i conftest.out
7893 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7894 fi
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7896 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7897
7898
7899
7900
7901
7902
7903
7904 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7905 func_cc_basename ()
7906 {
7907 for cc_temp in $*""; do
7908 case $cc_temp in
7909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7911 \-*) ;;
7912 *) break;;
7913 esac
7914 done
7915 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7916 }
7917
7918
7919 # Check whether --enable-libtool-lock was given.
7920 if test ${enable_libtool_lock+y}
7921 then :
7922 enableval=$enable_libtool_lock;
7923 fi
7924
7925 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7926
7927 # Some flags need to be propagated to the compiler or linker for good
7928 # libtool support.
7929 case $host in
7930 ia64-*-hpux*)
7931 # Find out what ABI is being produced by ac_compile, and set mode
7932 # options accordingly.
7933 echo 'int i;' > conftest.$ac_ext
7934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7935 (eval $ac_compile) 2>&5
7936 ac_status=$?
7937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938 test $ac_status = 0; }; then
7939 case `/usr/bin/file conftest.$ac_objext` in
7940 *ELF-32*)
7941 HPUX_IA64_MODE=32
7942 ;;
7943 *ELF-64*)
7944 HPUX_IA64_MODE=64
7945 ;;
7946 esac
7947 fi
7948 rm -rf conftest*
7949 ;;
7950 *-*-irix6*)
7951 # Find out what ABI is being produced by ac_compile, and set linker
7952 # options accordingly.
7953 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7955 (eval $ac_compile) 2>&5
7956 ac_status=$?
7957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958 test $ac_status = 0; }; then
7959 if test yes = "$lt_cv_prog_gnu_ld"; then
7960 case `/usr/bin/file conftest.$ac_objext` in
7961 *32-bit*)
7962 LD="${LD-ld} -melf32bsmip"
7963 ;;
7964 *N32*)
7965 LD="${LD-ld} -melf32bmipn32"
7966 ;;
7967 *64-bit*)
7968 LD="${LD-ld} -melf64bmip"
7969 ;;
7970 esac
7971 else
7972 case `/usr/bin/file conftest.$ac_objext` in
7973 *32-bit*)
7974 LD="${LD-ld} -32"
7975 ;;
7976 *N32*)
7977 LD="${LD-ld} -n32"
7978 ;;
7979 *64-bit*)
7980 LD="${LD-ld} -64"
7981 ;;
7982 esac
7983 fi
7984 fi
7985 rm -rf conftest*
7986 ;;
7987
7988 mips64*-*linux*)
7989 # Find out what ABI is being produced by ac_compile, and set linker
7990 # options accordingly.
7991 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7993 (eval $ac_compile) 2>&5
7994 ac_status=$?
7995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7996 test $ac_status = 0; }; then
7997 emul=elf
7998 case `/usr/bin/file conftest.$ac_objext` in
7999 *32-bit*)
8000 emul="${emul}32"
8001 ;;
8002 *64-bit*)
8003 emul="${emul}64"
8004 ;;
8005 esac
8006 case `/usr/bin/file conftest.$ac_objext` in
8007 *MSB*)
8008 emul="${emul}btsmip"
8009 ;;
8010 *LSB*)
8011 emul="${emul}ltsmip"
8012 ;;
8013 esac
8014 case `/usr/bin/file conftest.$ac_objext` in
8015 *N32*)
8016 emul="${emul}n32"
8017 ;;
8018 esac
8019 LD="${LD-ld} -m $emul"
8020 fi
8021 rm -rf conftest*
8022 ;;
8023
8024 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8025 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8026 # Find out what ABI is being produced by ac_compile, and set linker
8027 # options accordingly. Note that the listed cases only cover the
8028 # situations where additional linker options are needed (such as when
8029 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8030 # vice versa); the common cases where no linker options are needed do
8031 # not appear in the list.
8032 echo 'int i;' > conftest.$ac_ext
8033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8034 (eval $ac_compile) 2>&5
8035 ac_status=$?
8036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8037 test $ac_status = 0; }; then
8038 case `/usr/bin/file conftest.o` in
8039 *32-bit*)
8040 case $host in
8041 x86_64-*kfreebsd*-gnu)
8042 LD="${LD-ld} -m elf_i386_fbsd"
8043 ;;
8044 x86_64-*linux*)
8045 case `/usr/bin/file conftest.o` in
8046 *x86-64*)
8047 LD="${LD-ld} -m elf32_x86_64"
8048 ;;
8049 *)
8050 LD="${LD-ld} -m elf_i386"
8051 ;;
8052 esac
8053 ;;
8054 powerpc64le-*linux*)
8055 LD="${LD-ld} -m elf32lppclinux"
8056 ;;
8057 powerpc64-*linux*)
8058 LD="${LD-ld} -m elf32ppclinux"
8059 ;;
8060 s390x-*linux*)
8061 LD="${LD-ld} -m elf_s390"
8062 ;;
8063 sparc64-*linux*)
8064 LD="${LD-ld} -m elf32_sparc"
8065 ;;
8066 esac
8067 ;;
8068 *64-bit*)
8069 case $host in
8070 x86_64-*kfreebsd*-gnu)
8071 LD="${LD-ld} -m elf_x86_64_fbsd"
8072 ;;
8073 x86_64-*linux*)
8074 LD="${LD-ld} -m elf_x86_64"
8075 ;;
8076 powerpcle-*linux*)
8077 LD="${LD-ld} -m elf64lppc"
8078 ;;
8079 powerpc-*linux*)
8080 LD="${LD-ld} -m elf64ppc"
8081 ;;
8082 s390*-*linux*|s390*-*tpf*)
8083 LD="${LD-ld} -m elf64_s390"
8084 ;;
8085 sparc*-*linux*)
8086 LD="${LD-ld} -m elf64_sparc"
8087 ;;
8088 esac
8089 ;;
8090 esac
8091 fi
8092 rm -rf conftest*
8093 ;;
8094
8095 *-*-sco3.2v5*)
8096 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8097 SAVE_CFLAGS=$CFLAGS
8098 CFLAGS="$CFLAGS -belf"
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8100 printf %s "checking whether the C compiler needs -belf... " >&6; }
8101 if test ${lt_cv_cc_needs_belf+y}
8102 then :
8103 printf %s "(cached) " >&6
8104 else $as_nop
8105 ac_ext=c
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113
8114 int
8115 main (void)
8116 {
8117
8118 ;
8119 return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"
8123 then :
8124 lt_cv_cc_needs_belf=yes
8125 else $as_nop
8126 lt_cv_cc_needs_belf=no
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8129 conftest$ac_exeext conftest.$ac_ext
8130 ac_ext=c
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136 fi
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8138 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8139 if test yes != "$lt_cv_cc_needs_belf"; then
8140 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8141 CFLAGS=$SAVE_CFLAGS
8142 fi
8143 ;;
8144 *-*solaris*)
8145 # Find out what ABI is being produced by ac_compile, and set linker
8146 # options accordingly.
8147 echo 'int i;' > conftest.$ac_ext
8148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8149 (eval $ac_compile) 2>&5
8150 ac_status=$?
8151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8152 test $ac_status = 0; }; then
8153 case `/usr/bin/file conftest.o` in
8154 *64-bit*)
8155 case $lt_cv_prog_gnu_ld in
8156 yes*)
8157 case $host in
8158 i?86-*-solaris*|x86_64-*-solaris*)
8159 LD="${LD-ld} -m elf_x86_64"
8160 ;;
8161 sparc*-*-solaris*)
8162 LD="${LD-ld} -m elf64_sparc"
8163 ;;
8164 esac
8165 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8166 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8167 LD=${LD-ld}_sol2
8168 fi
8169 ;;
8170 *)
8171 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8172 LD="${LD-ld} -64"
8173 fi
8174 ;;
8175 esac
8176 ;;
8177 esac
8178 fi
8179 rm -rf conftest*
8180 ;;
8181 esac
8182
8183 need_locks=$enable_libtool_lock
8184
8185 if test -n "$ac_tool_prefix"; then
8186 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8187 set dummy ${ac_tool_prefix}mt; ac_word=$2
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189 printf %s "checking for $ac_word... " >&6; }
8190 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8191 then :
8192 printf %s "(cached) " >&6
8193 else $as_nop
8194 if test -n "$MANIFEST_TOOL"; then
8195 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8199 do
8200 IFS=$as_save_IFS
8201 case $as_dir in #(((
8202 '') as_dir=./ ;;
8203 */) ;;
8204 *) as_dir=$as_dir/ ;;
8205 esac
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8208 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212 done
8213 done
8214 IFS=$as_save_IFS
8215
8216 fi
8217 fi
8218 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8219 if test -n "$MANIFEST_TOOL"; then
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8221 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8222 else
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 printf "%s\n" "no" >&6; }
8225 fi
8226
8227
8228 fi
8229 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8230 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8231 # Extract the first word of "mt", so it can be a program name with args.
8232 set dummy mt; ac_word=$2
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 printf %s "checking for $ac_word... " >&6; }
8235 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8236 then :
8237 printf %s "(cached) " >&6
8238 else $as_nop
8239 if test -n "$ac_ct_MANIFEST_TOOL"; then
8240 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245 IFS=$as_save_IFS
8246 case $as_dir in #(((
8247 '') as_dir=./ ;;
8248 */) ;;
8249 *) as_dir=$as_dir/ ;;
8250 esac
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261 fi
8262 fi
8263 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8264 if test -n "$ac_ct_MANIFEST_TOOL"; then
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8266 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8267 else
8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 printf "%s\n" "no" >&6; }
8270 fi
8271
8272 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8273 MANIFEST_TOOL=":"
8274 else
8275 case $cross_compiling:$ac_tool_warned in
8276 yes:)
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8279 ac_tool_warned=yes ;;
8280 esac
8281 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8282 fi
8283 else
8284 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8285 fi
8286
8287 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8289 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8290 if test ${lt_cv_path_mainfest_tool+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else $as_nop
8294 lt_cv_path_mainfest_tool=no
8295 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8296 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8297 cat conftest.err >&5
8298 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8299 lt_cv_path_mainfest_tool=yes
8300 fi
8301 rm -f conftest*
8302 fi
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8304 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8305 if test yes != "$lt_cv_path_mainfest_tool"; then
8306 MANIFEST_TOOL=:
8307 fi
8308
8309
8310
8311
8312
8313
8314 case $host_os in
8315 rhapsody* | darwin*)
8316 if test -n "$ac_tool_prefix"; then
8317 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8318 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 printf %s "checking for $ac_word... " >&6; }
8321 if test ${ac_cv_prog_DSYMUTIL+y}
8322 then :
8323 printf %s "(cached) " >&6
8324 else $as_nop
8325 if test -n "$DSYMUTIL"; then
8326 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8327 else
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8330 do
8331 IFS=$as_save_IFS
8332 case $as_dir in #(((
8333 '') as_dir=./ ;;
8334 */) ;;
8335 *) as_dir=$as_dir/ ;;
8336 esac
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8341 break 2
8342 fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8350 if test -n "$DSYMUTIL"; then
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8352 printf "%s\n" "$DSYMUTIL" >&6; }
8353 else
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 printf "%s\n" "no" >&6; }
8356 fi
8357
8358
8359 fi
8360 if test -z "$ac_cv_prog_DSYMUTIL"; then
8361 ac_ct_DSYMUTIL=$DSYMUTIL
8362 # Extract the first word of "dsymutil", so it can be a program name with args.
8363 set dummy dsymutil; ac_word=$2
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 printf %s "checking for $ac_word... " >&6; }
8366 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8367 then :
8368 printf %s "(cached) " >&6
8369 else $as_nop
8370 if test -n "$ac_ct_DSYMUTIL"; then
8371 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 case $as_dir in #(((
8378 '') as_dir=./ ;;
8379 */) ;;
8380 *) as_dir=$as_dir/ ;;
8381 esac
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8386 break 2
8387 fi
8388 done
8389 done
8390 IFS=$as_save_IFS
8391
8392 fi
8393 fi
8394 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8395 if test -n "$ac_ct_DSYMUTIL"; then
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8397 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8398 else
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 printf "%s\n" "no" >&6; }
8401 fi
8402
8403 if test "x$ac_ct_DSYMUTIL" = x; then
8404 DSYMUTIL=":"
8405 else
8406 case $cross_compiling:$ac_tool_warned in
8407 yes:)
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8410 ac_tool_warned=yes ;;
8411 esac
8412 DSYMUTIL=$ac_ct_DSYMUTIL
8413 fi
8414 else
8415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8416 fi
8417
8418 if test -n "$ac_tool_prefix"; then
8419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8420 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 printf %s "checking for $ac_word... " >&6; }
8423 if test ${ac_cv_prog_NMEDIT+y}
8424 then :
8425 printf %s "(cached) " >&6
8426 else $as_nop
8427 if test -n "$NMEDIT"; then
8428 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433 IFS=$as_save_IFS
8434 case $as_dir in #(((
8435 '') as_dir=./ ;;
8436 */) ;;
8437 *) as_dir=$as_dir/ ;;
8438 esac
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8441 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445 done
8446 done
8447 IFS=$as_save_IFS
8448
8449 fi
8450 fi
8451 NMEDIT=$ac_cv_prog_NMEDIT
8452 if test -n "$NMEDIT"; then
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8454 printf "%s\n" "$NMEDIT" >&6; }
8455 else
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 printf "%s\n" "no" >&6; }
8458 fi
8459
8460
8461 fi
8462 if test -z "$ac_cv_prog_NMEDIT"; then
8463 ac_ct_NMEDIT=$NMEDIT
8464 # Extract the first word of "nmedit", so it can be a program name with args.
8465 set dummy nmedit; ac_word=$2
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 printf %s "checking for $ac_word... " >&6; }
8468 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8469 then :
8470 printf %s "(cached) " >&6
8471 else $as_nop
8472 if test -n "$ac_ct_NMEDIT"; then
8473 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 case $as_dir in #(((
8480 '') as_dir=./ ;;
8481 */) ;;
8482 *) as_dir=$as_dir/ ;;
8483 esac
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 fi
8495 fi
8496 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8497 if test -n "$ac_ct_NMEDIT"; then
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8499 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8500 else
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 printf "%s\n" "no" >&6; }
8503 fi
8504
8505 if test "x$ac_ct_NMEDIT" = x; then
8506 NMEDIT=":"
8507 else
8508 case $cross_compiling:$ac_tool_warned in
8509 yes:)
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8513 esac
8514 NMEDIT=$ac_ct_NMEDIT
8515 fi
8516 else
8517 NMEDIT="$ac_cv_prog_NMEDIT"
8518 fi
8519
8520 if test -n "$ac_tool_prefix"; then
8521 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8522 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 printf %s "checking for $ac_word... " >&6; }
8525 if test ${ac_cv_prog_LIPO+y}
8526 then :
8527 printf %s "(cached) " >&6
8528 else $as_nop
8529 if test -n "$LIPO"; then
8530 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535 IFS=$as_save_IFS
8536 case $as_dir in #(((
8537 '') as_dir=./ ;;
8538 */) ;;
8539 *) as_dir=$as_dir/ ;;
8540 esac
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi
8552 fi
8553 LIPO=$ac_cv_prog_LIPO
8554 if test -n "$LIPO"; then
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8556 printf "%s\n" "$LIPO" >&6; }
8557 else
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 printf "%s\n" "no" >&6; }
8560 fi
8561
8562
8563 fi
8564 if test -z "$ac_cv_prog_LIPO"; then
8565 ac_ct_LIPO=$LIPO
8566 # Extract the first word of "lipo", so it can be a program name with args.
8567 set dummy lipo; ac_word=$2
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 printf %s "checking for $ac_word... " >&6; }
8570 if test ${ac_cv_prog_ac_ct_LIPO+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else $as_nop
8574 if test -n "$ac_ct_LIPO"; then
8575 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8576 else
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8579 do
8580 IFS=$as_save_IFS
8581 case $as_dir in #(((
8582 '') as_dir=./ ;;
8583 */) ;;
8584 *) as_dir=$as_dir/ ;;
8585 esac
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8588 ac_cv_prog_ac_ct_LIPO="lipo"
8589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592 done
8593 done
8594 IFS=$as_save_IFS
8595
8596 fi
8597 fi
8598 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8599 if test -n "$ac_ct_LIPO"; then
8600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8601 printf "%s\n" "$ac_ct_LIPO" >&6; }
8602 else
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 printf "%s\n" "no" >&6; }
8605 fi
8606
8607 if test "x$ac_ct_LIPO" = x; then
8608 LIPO=":"
8609 else
8610 case $cross_compiling:$ac_tool_warned in
8611 yes:)
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8613 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8614 ac_tool_warned=yes ;;
8615 esac
8616 LIPO=$ac_ct_LIPO
8617 fi
8618 else
8619 LIPO="$ac_cv_prog_LIPO"
8620 fi
8621
8622 if test -n "$ac_tool_prefix"; then
8623 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8624 set dummy ${ac_tool_prefix}otool; ac_word=$2
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 printf %s "checking for $ac_word... " >&6; }
8627 if test ${ac_cv_prog_OTOOL+y}
8628 then :
8629 printf %s "(cached) " >&6
8630 else $as_nop
8631 if test -n "$OTOOL"; then
8632 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8633 else
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8636 do
8637 IFS=$as_save_IFS
8638 case $as_dir in #(((
8639 '') as_dir=./ ;;
8640 */) ;;
8641 *) as_dir=$as_dir/ ;;
8642 esac
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8645 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8647 break 2
8648 fi
8649 done
8650 done
8651 IFS=$as_save_IFS
8652
8653 fi
8654 fi
8655 OTOOL=$ac_cv_prog_OTOOL
8656 if test -n "$OTOOL"; then
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8658 printf "%s\n" "$OTOOL" >&6; }
8659 else
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 printf "%s\n" "no" >&6; }
8662 fi
8663
8664
8665 fi
8666 if test -z "$ac_cv_prog_OTOOL"; then
8667 ac_ct_OTOOL=$OTOOL
8668 # Extract the first word of "otool", so it can be a program name with args.
8669 set dummy otool; ac_word=$2
8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671 printf %s "checking for $ac_word... " >&6; }
8672 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8673 then :
8674 printf %s "(cached) " >&6
8675 else $as_nop
8676 if test -n "$ac_ct_OTOOL"; then
8677 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8681 do
8682 IFS=$as_save_IFS
8683 case $as_dir in #(((
8684 '') as_dir=./ ;;
8685 */) ;;
8686 *) as_dir=$as_dir/ ;;
8687 esac
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_ac_ct_OTOOL="otool"
8691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694 done
8695 done
8696 IFS=$as_save_IFS
8697
8698 fi
8699 fi
8700 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8701 if test -n "$ac_ct_OTOOL"; then
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8703 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8704 else
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 printf "%s\n" "no" >&6; }
8707 fi
8708
8709 if test "x$ac_ct_OTOOL" = x; then
8710 OTOOL=":"
8711 else
8712 case $cross_compiling:$ac_tool_warned in
8713 yes:)
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8716 ac_tool_warned=yes ;;
8717 esac
8718 OTOOL=$ac_ct_OTOOL
8719 fi
8720 else
8721 OTOOL="$ac_cv_prog_OTOOL"
8722 fi
8723
8724 if test -n "$ac_tool_prefix"; then
8725 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 printf %s "checking for $ac_word... " >&6; }
8729 if test ${ac_cv_prog_OTOOL64+y}
8730 then :
8731 printf %s "(cached) " >&6
8732 else $as_nop
8733 if test -n "$OTOOL64"; then
8734 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739 IFS=$as_save_IFS
8740 case $as_dir in #(((
8741 '') as_dir=./ ;;
8742 */) ;;
8743 *) as_dir=$as_dir/ ;;
8744 esac
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8749 break 2
8750 fi
8751 done
8752 done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 OTOOL64=$ac_cv_prog_OTOOL64
8758 if test -n "$OTOOL64"; then
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8760 printf "%s\n" "$OTOOL64" >&6; }
8761 else
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 printf "%s\n" "no" >&6; }
8764 fi
8765
8766
8767 fi
8768 if test -z "$ac_cv_prog_OTOOL64"; then
8769 ac_ct_OTOOL64=$OTOOL64
8770 # Extract the first word of "otool64", so it can be a program name with args.
8771 set dummy otool64; ac_word=$2
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 printf %s "checking for $ac_word... " >&6; }
8774 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8775 then :
8776 printf %s "(cached) " >&6
8777 else $as_nop
8778 if test -n "$ac_ct_OTOOL64"; then
8779 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8780 else
8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 for as_dir in $PATH
8783 do
8784 IFS=$as_save_IFS
8785 case $as_dir in #(((
8786 '') as_dir=./ ;;
8787 */) ;;
8788 *) as_dir=$as_dir/ ;;
8789 esac
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8792 ac_cv_prog_ac_ct_OTOOL64="otool64"
8793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8794 break 2
8795 fi
8796 done
8797 done
8798 IFS=$as_save_IFS
8799
8800 fi
8801 fi
8802 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8803 if test -n "$ac_ct_OTOOL64"; then
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8805 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8806 else
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 printf "%s\n" "no" >&6; }
8809 fi
8810
8811 if test "x$ac_ct_OTOOL64" = x; then
8812 OTOOL64=":"
8813 else
8814 case $cross_compiling:$ac_tool_warned in
8815 yes:)
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8817 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8818 ac_tool_warned=yes ;;
8819 esac
8820 OTOOL64=$ac_ct_OTOOL64
8821 fi
8822 else
8823 OTOOL64="$ac_cv_prog_OTOOL64"
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8853 printf %s "checking for -single_module linker flag... " >&6; }
8854 if test ${lt_cv_apple_cc_single_mod+y}
8855 then :
8856 printf %s "(cached) " >&6
8857 else $as_nop
8858 lt_cv_apple_cc_single_mod=no
8859 if test -z "$LT_MULTI_MODULE"; then
8860 # By default we will add the -single_module flag. You can override
8861 # by either setting the environment variable LT_MULTI_MODULE
8862 # non-empty at configure time, or by adding -multi_module to the
8863 # link flags.
8864 rm -rf libconftest.dylib*
8865 echo "int foo(void){return 1;}" > conftest.c
8866 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8867 -dynamiclib -Wl,-single_module conftest.c" >&5
8868 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8869 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8870 _lt_result=$?
8871 # If there is a non-empty error log, and "single_module"
8872 # appears in it, assume the flag caused a linker warning
8873 if test -s conftest.err && $GREP single_module conftest.err; then
8874 cat conftest.err >&5
8875 # Otherwise, if the output was created with a 0 exit code from
8876 # the compiler, it worked.
8877 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8878 lt_cv_apple_cc_single_mod=yes
8879 else
8880 cat conftest.err >&5
8881 fi
8882 rm -rf libconftest.dylib*
8883 rm -f conftest.*
8884 fi
8885 fi
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8887 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8888
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8890 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8891 if test ${lt_cv_ld_exported_symbols_list+y}
8892 then :
8893 printf %s "(cached) " >&6
8894 else $as_nop
8895 lt_cv_ld_exported_symbols_list=no
8896 save_LDFLAGS=$LDFLAGS
8897 echo "_main" > conftest.sym
8898 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901
8902 int
8903 main (void)
8904 {
8905
8906 ;
8907 return 0;
8908 }
8909 _ACEOF
8910 if ac_fn_c_try_link "$LINENO"
8911 then :
8912 lt_cv_ld_exported_symbols_list=yes
8913 else $as_nop
8914 lt_cv_ld_exported_symbols_list=no
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8917 conftest$ac_exeext conftest.$ac_ext
8918 LDFLAGS=$save_LDFLAGS
8919
8920 fi
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8922 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8923
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8925 printf %s "checking for -force_load linker flag... " >&6; }
8926 if test ${lt_cv_ld_force_load+y}
8927 then :
8928 printf %s "(cached) " >&6
8929 else $as_nop
8930 lt_cv_ld_force_load=no
8931 cat > conftest.c << _LT_EOF
8932 int forced_loaded() { return 2;}
8933 _LT_EOF
8934 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8935 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8936 echo "$AR cru libconftest.a conftest.o" >&5
8937 $AR cru libconftest.a conftest.o 2>&5
8938 echo "$RANLIB libconftest.a" >&5
8939 $RANLIB libconftest.a 2>&5
8940 cat > conftest.c << _LT_EOF
8941 int main() { return 0;}
8942 _LT_EOF
8943 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8944 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8945 _lt_result=$?
8946 if test -s conftest.err && $GREP force_load conftest.err; then
8947 cat conftest.err >&5
8948 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8949 lt_cv_ld_force_load=yes
8950 else
8951 cat conftest.err >&5
8952 fi
8953 rm -f conftest.err libconftest.a conftest conftest.c
8954 rm -rf conftest.dSYM
8955
8956 fi
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8958 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8959 case $host_os in
8960 rhapsody* | darwin1.[012])
8961 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8962 darwin1.*)
8963 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8964 darwin*)
8965 case ${MACOSX_DEPLOYMENT_TARGET},$host in
8966 10.[012],*|,*powerpc*)
8967 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8968 *)
8969 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8970 esac
8971 ;;
8972 esac
8973 if test yes = "$lt_cv_apple_cc_single_mod"; then
8974 _lt_dar_single_mod='$single_module'
8975 fi
8976 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8977 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8978 else
8979 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8980 fi
8981 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8982 _lt_dsymutil='~$DSYMUTIL $lib || :'
8983 else
8984 _lt_dsymutil=
8985 fi
8986 ;;
8987 esac
8988
8989 # func_munge_path_list VARIABLE PATH
8990 # -----------------------------------
8991 # VARIABLE is name of variable containing _space_ separated list of
8992 # directories to be munged by the contents of PATH, which is string
8993 # having a format:
8994 # "DIR[:DIR]:"
8995 # string "DIR[ DIR]" will be prepended to VARIABLE
8996 # ":DIR[:DIR]"
8997 # string "DIR[ DIR]" will be appended to VARIABLE
8998 # "DIRP[:DIRP]::[DIRA:]DIRA"
8999 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9000 # "DIRA[ DIRA]" will be appended to VARIABLE
9001 # "DIR[:DIR]"
9002 # VARIABLE will be replaced by "DIR[ DIR]"
9003 func_munge_path_list ()
9004 {
9005 case x$2 in
9006 x)
9007 ;;
9008 *:)
9009 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9010 ;;
9011 x:*)
9012 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9013 ;;
9014 *::*)
9015 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9016 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9017 ;;
9018 *)
9019 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9020 ;;
9021 esac
9022 }
9023
9024 ac_header= ac_cache=
9025 for ac_item in $ac_header_c_list
9026 do
9027 if test $ac_cache; then
9028 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9029 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9030 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9031 fi
9032 ac_header= ac_cache=
9033 elif test $ac_header; then
9034 ac_cache=$ac_item
9035 else
9036 ac_header=$ac_item
9037 fi
9038 done
9039
9040
9041
9042
9043
9044
9045
9046
9047 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9048 then :
9049
9050 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9051
9052 fi
9053 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9054 "
9055 if test "x$ac_cv_header_dlfcn_h" = xyes
9056 then :
9057 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9058
9059 fi
9060
9061
9062
9063 func_stripname_cnf ()
9064 {
9065 case $2 in
9066 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9067 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9068 esac
9069 } # func_stripname_cnf
9070
9071
9072
9073
9074
9075 # Set options
9076
9077
9078
9079 enable_dlopen=no
9080
9081
9082 enable_win32_dll=no
9083
9084
9085 # Check whether --enable-shared was given.
9086 if test ${enable_shared+y}
9087 then :
9088 enableval=$enable_shared; p=${PACKAGE-default}
9089 case $enableval in
9090 yes) enable_shared=yes ;;
9091 no) enable_shared=no ;;
9092 *)
9093 enable_shared=no
9094 # Look at the argument we got. We use all the common list separators.
9095 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9096 for pkg in $enableval; do
9097 IFS=$lt_save_ifs
9098 if test "X$pkg" = "X$p"; then
9099 enable_shared=yes
9100 fi
9101 done
9102 IFS=$lt_save_ifs
9103 ;;
9104 esac
9105 else $as_nop
9106 enable_shared=yes
9107 fi
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119 # Check whether --with-pic was given.
9120 if test ${with_pic+y}
9121 then :
9122 withval=$with_pic; lt_p=${PACKAGE-default}
9123 case $withval in
9124 yes|no) pic_mode=$withval ;;
9125 *)
9126 pic_mode=default
9127 # Look at the argument we got. We use all the common list separators.
9128 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9129 for lt_pkg in $withval; do
9130 IFS=$lt_save_ifs
9131 if test "X$lt_pkg" = "X$lt_p"; then
9132 pic_mode=yes
9133 fi
9134 done
9135 IFS=$lt_save_ifs
9136 ;;
9137 esac
9138 else $as_nop
9139 pic_mode=default
9140 fi
9141
9142
9143
9144
9145
9146
9147
9148
9149 # Check whether --enable-fast-install was given.
9150 if test ${enable_fast_install+y}
9151 then :
9152 enableval=$enable_fast_install; p=${PACKAGE-default}
9153 case $enableval in
9154 yes) enable_fast_install=yes ;;
9155 no) enable_fast_install=no ;;
9156 *)
9157 enable_fast_install=no
9158 # Look at the argument we got. We use all the common list separators.
9159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9160 for pkg in $enableval; do
9161 IFS=$lt_save_ifs
9162 if test "X$pkg" = "X$p"; then
9163 enable_fast_install=yes
9164 fi
9165 done
9166 IFS=$lt_save_ifs
9167 ;;
9168 esac
9169 else $as_nop
9170 enable_fast_install=yes
9171 fi
9172
9173
9174
9175
9176
9177
9178
9179
9180 shared_archive_member_spec=
9181 case $host,$enable_shared in
9182 power*-*-aix[5-9]*,yes)
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9184 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9185
9186 # Check whether --with-aix-soname was given.
9187 if test ${with_aix_soname+y}
9188 then :
9189 withval=$with_aix_soname; case $withval in
9190 aix|svr4|both)
9191 ;;
9192 *)
9193 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9194 ;;
9195 esac
9196 lt_cv_with_aix_soname=$with_aix_soname
9197 else $as_nop
9198 if test ${lt_cv_with_aix_soname+y}
9199 then :
9200 printf %s "(cached) " >&6
9201 else $as_nop
9202 lt_cv_with_aix_soname=aix
9203 fi
9204
9205 with_aix_soname=$lt_cv_with_aix_soname
9206 fi
9207
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9209 printf "%s\n" "$with_aix_soname" >&6; }
9210 if test aix != "$with_aix_soname"; then
9211 # For the AIX way of multilib, we name the shared archive member
9212 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9213 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9214 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9215 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9216 if test 64 = "${OBJECT_MODE-32}"; then
9217 shared_archive_member_spec=shr_64
9218 else
9219 shared_archive_member_spec=shr
9220 fi
9221 fi
9222 ;;
9223 *)
9224 with_aix_soname=aix
9225 ;;
9226 esac
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237 # This can be used to rebuild libtool when needed
9238 LIBTOOL_DEPS=$ltmain
9239
9240 # Always use our own libtool.
9241 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272 test -z "$LN_S" && LN_S="ln -s"
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287 if test -n "${ZSH_VERSION+set}"; then
9288 setopt NO_GLOB_SUBST
9289 fi
9290
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9292 printf %s "checking for objdir... " >&6; }
9293 if test ${lt_cv_objdir+y}
9294 then :
9295 printf %s "(cached) " >&6
9296 else $as_nop
9297 rm -f .libs 2>/dev/null
9298 mkdir .libs 2>/dev/null
9299 if test -d .libs; then
9300 lt_cv_objdir=.libs
9301 else
9302 # MS-DOS does not allow filenames that begin with a dot.
9303 lt_cv_objdir=_libs
9304 fi
9305 rmdir .libs 2>/dev/null
9306 fi
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9308 printf "%s\n" "$lt_cv_objdir" >&6; }
9309 objdir=$lt_cv_objdir
9310
9311
9312
9313
9314
9315 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9316
9317
9318
9319
9320 case $host_os in
9321 aix3*)
9322 # AIX sometimes has problems with the GCC collect2 program. For some
9323 # reason, if we set the COLLECT_NAMES environment variable, the problems
9324 # vanish in a puff of smoke.
9325 if test set != "${COLLECT_NAMES+set}"; then
9326 COLLECT_NAMES=
9327 export COLLECT_NAMES
9328 fi
9329 ;;
9330 esac
9331
9332 # Global variables:
9333 ofile=libtool
9334 can_build_shared=yes
9335
9336 # All known linkers require a '.a' archive for static linking (except MSVC,
9337 # which needs '.lib').
9338 libext=a
9339
9340 with_gnu_ld=$lt_cv_prog_gnu_ld
9341
9342 old_CC=$CC
9343 old_CFLAGS=$CFLAGS
9344
9345 # Set sane defaults for various variables
9346 test -z "$CC" && CC=cc
9347 test -z "$LTCC" && LTCC=$CC
9348 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9349 test -z "$LD" && LD=ld
9350 test -z "$ac_objext" && ac_objext=o
9351
9352 func_cc_basename $compiler
9353 cc_basename=$func_cc_basename_result
9354
9355
9356 # Only perform the check for file, if the check method requires it
9357 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9358 case $deplibs_check_method in
9359 file_magic*)
9360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9362 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9363 if test ${lt_cv_path_MAGIC_CMD+y}
9364 then :
9365 printf %s "(cached) " >&6
9366 else $as_nop
9367 case $MAGIC_CMD in
9368 [\\/*] | ?:[\\/]*)
9369 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9370 ;;
9371 *)
9372 lt_save_MAGIC_CMD=$MAGIC_CMD
9373 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9374 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9375 for ac_dir in $ac_dummy; do
9376 IFS=$lt_save_ifs
9377 test -z "$ac_dir" && ac_dir=.
9378 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9379 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9380 if test -n "$file_magic_test_file"; then
9381 case $deplibs_check_method in
9382 "file_magic "*)
9383 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9384 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9385 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9386 $EGREP "$file_magic_regex" > /dev/null; then
9387 :
9388 else
9389 cat <<_LT_EOF 1>&2
9390
9391 *** Warning: the command libtool uses to detect shared libraries,
9392 *** $file_magic_cmd, produces output that libtool cannot recognize.
9393 *** The result is that libtool may fail to recognize shared libraries
9394 *** as such. This will affect the creation of libtool libraries that
9395 *** depend on shared libraries, but programs linked with such libtool
9396 *** libraries will work regardless of this problem. Nevertheless, you
9397 *** may want to report the problem to your system manager and/or to
9398 *** [email protected]
9399
9400 _LT_EOF
9401 fi ;;
9402 esac
9403 fi
9404 break
9405 fi
9406 done
9407 IFS=$lt_save_ifs
9408 MAGIC_CMD=$lt_save_MAGIC_CMD
9409 ;;
9410 esac
9411 fi
9412
9413 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9414 if test -n "$MAGIC_CMD"; then
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9416 printf "%s\n" "$MAGIC_CMD" >&6; }
9417 else
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 printf "%s\n" "no" >&6; }
9420 fi
9421
9422
9423
9424
9425
9426 if test -z "$lt_cv_path_MAGIC_CMD"; then
9427 if test -n "$ac_tool_prefix"; then
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9429 printf %s "checking for file... " >&6; }
9430 if test ${lt_cv_path_MAGIC_CMD+y}
9431 then :
9432 printf %s "(cached) " >&6
9433 else $as_nop
9434 case $MAGIC_CMD in
9435 [\\/*] | ?:[\\/]*)
9436 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9437 ;;
9438 *)
9439 lt_save_MAGIC_CMD=$MAGIC_CMD
9440 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9442 for ac_dir in $ac_dummy; do
9443 IFS=$lt_save_ifs
9444 test -z "$ac_dir" && ac_dir=.
9445 if test -f "$ac_dir/file"; then
9446 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9447 if test -n "$file_magic_test_file"; then
9448 case $deplibs_check_method in
9449 "file_magic "*)
9450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9451 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9453 $EGREP "$file_magic_regex" > /dev/null; then
9454 :
9455 else
9456 cat <<_LT_EOF 1>&2
9457
9458 *** Warning: the command libtool uses to detect shared libraries,
9459 *** $file_magic_cmd, produces output that libtool cannot recognize.
9460 *** The result is that libtool may fail to recognize shared libraries
9461 *** as such. This will affect the creation of libtool libraries that
9462 *** depend on shared libraries, but programs linked with such libtool
9463 *** libraries will work regardless of this problem. Nevertheless, you
9464 *** may want to report the problem to your system manager and/or to
9465 *** [email protected]
9466
9467 _LT_EOF
9468 fi ;;
9469 esac
9470 fi
9471 break
9472 fi
9473 done
9474 IFS=$lt_save_ifs
9475 MAGIC_CMD=$lt_save_MAGIC_CMD
9476 ;;
9477 esac
9478 fi
9479
9480 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9481 if test -n "$MAGIC_CMD"; then
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9483 printf "%s\n" "$MAGIC_CMD" >&6; }
9484 else
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 printf "%s\n" "no" >&6; }
9487 fi
9488
9489
9490 else
9491 MAGIC_CMD=:
9492 fi
9493 fi
9494
9495 fi
9496 ;;
9497 esac
9498
9499 # Use C for the default configuration in the libtool script
9500
9501 lt_save_CC=$CC
9502 ac_ext=c
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508
9509 # Source file extension for C test sources.
9510 ac_ext=c
9511
9512 # Object file extension for compiled C test sources.
9513 objext=o
9514 objext=$objext
9515
9516 # Code to be used in simple compile tests
9517 lt_simple_compile_test_code="int some_variable = 0;"
9518
9519 # Code to be used in simple link tests
9520 lt_simple_link_test_code='int main(){return(0);}'
9521
9522
9523
9524
9525
9526
9527
9528 # If no C compiler was specified, use CC.
9529 LTCC=${LTCC-"$CC"}
9530
9531 # If no C compiler flags were specified, use CFLAGS.
9532 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9533
9534 # Allow CC to be a program name with arguments.
9535 compiler=$CC
9536
9537 # Save the default compiler, since it gets overwritten when the other
9538 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9539 compiler_DEFAULT=$CC
9540
9541 # save warnings/boilerplate of simple test code
9542 ac_outfile=conftest.$ac_objext
9543 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9545 _lt_compiler_boilerplate=`cat conftest.err`
9546 $RM conftest*
9547
9548 ac_outfile=conftest.$ac_objext
9549 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9551 _lt_linker_boilerplate=`cat conftest.err`
9552 $RM -r conftest*
9553
9554
9555 if test -n "$compiler"; then
9556
9557 lt_prog_compiler_no_builtin_flag=
9558
9559 if test yes = "$GCC"; then
9560 case $cc_basename in
9561 nvcc*)
9562 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9563 *)
9564 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9565 esac
9566
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9568 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9569 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9570 then :
9571 printf %s "(cached) " >&6
9572 else $as_nop
9573 lt_cv_prog_compiler_rtti_exceptions=no
9574 ac_outfile=conftest.$ac_objext
9575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9576 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9577 # Insert the option either (1) after the last *FLAGS variable, or
9578 # (2) before a word containing "conftest.", or (3) at the end.
9579 # Note that $ac_compile itself does not contain backslashes and begins
9580 # with a dollar sign (not a hyphen), so the echo should work correctly.
9581 # The option is referenced via a variable to avoid confusing sed.
9582 lt_compile=`echo "$ac_compile" | $SED \
9583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9585 -e 's:$: $lt_compiler_flag:'`
9586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9587 (eval "$lt_compile" 2>conftest.err)
9588 ac_status=$?
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 if (exit $ac_status) && test -s "$ac_outfile"; then
9592 # The compiler can only warn and ignore the option if not recognized
9593 # So say no if there are warnings other than the usual output.
9594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9597 lt_cv_prog_compiler_rtti_exceptions=yes
9598 fi
9599 fi
9600 $RM conftest*
9601
9602 fi
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9604 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9605
9606 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9607 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9608 else
9609 :
9610 fi
9611
9612 fi
9613
9614
9615
9616
9617
9618
9619 lt_prog_compiler_wl=
9620 lt_prog_compiler_pic=
9621 lt_prog_compiler_static=
9622
9623
9624 if test yes = "$GCC"; then
9625 lt_prog_compiler_wl='-Wl,'
9626 lt_prog_compiler_static='-static'
9627
9628 case $host_os in
9629 aix*)
9630 # All AIX code is PIC.
9631 if test ia64 = "$host_cpu"; then
9632 # AIX 5 now supports IA64 processor
9633 lt_prog_compiler_static='-Bstatic'
9634 fi
9635 lt_prog_compiler_pic='-fPIC'
9636 ;;
9637
9638 amigaos*)
9639 case $host_cpu in
9640 powerpc)
9641 # see comment about AmigaOS4 .so support
9642 lt_prog_compiler_pic='-fPIC'
9643 ;;
9644 m68k)
9645 # FIXME: we need at least 68020 code to build shared libraries, but
9646 # adding the '-m68020' flag to GCC prevents building anything better,
9647 # like '-m68040'.
9648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9649 ;;
9650 esac
9651 ;;
9652
9653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9654 # PIC is the default for these OSes.
9655 ;;
9656
9657 mingw* | cygwin* | pw32* | os2* | cegcc*)
9658 # This hack is so that the source file can tell whether it is being
9659 # built for inclusion in a dll (and should export symbols for example).
9660 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9661 # (--disable-auto-import) libraries
9662 lt_prog_compiler_pic='-DDLL_EXPORT'
9663 case $host_os in
9664 os2*)
9665 lt_prog_compiler_static='$wl-static'
9666 ;;
9667 esac
9668 ;;
9669
9670 darwin* | rhapsody*)
9671 # PIC is the default on this platform
9672 # Common symbols not allowed in MH_DYLIB files
9673 lt_prog_compiler_pic='-fno-common'
9674 ;;
9675
9676 haiku*)
9677 # PIC is the default for Haiku.
9678 # The "-static" flag exists, but is broken.
9679 lt_prog_compiler_static=
9680 ;;
9681
9682 hpux*)
9683 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9684 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9685 # sets the default TLS model and affects inlining.
9686 case $host_cpu in
9687 hppa*64*)
9688 # +Z the default
9689 ;;
9690 *)
9691 lt_prog_compiler_pic='-fPIC'
9692 ;;
9693 esac
9694 ;;
9695
9696 interix[3-9]*)
9697 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9698 # Instead, we relocate shared libraries at runtime.
9699 ;;
9700
9701 msdosdjgpp*)
9702 # Just because we use GCC doesn't mean we suddenly get shared libraries
9703 # on systems that don't support them.
9704 lt_prog_compiler_can_build_shared=no
9705 enable_shared=no
9706 ;;
9707
9708 *nto* | *qnx*)
9709 # QNX uses GNU C++, but need to define -shared option too, otherwise
9710 # it will coredump.
9711 lt_prog_compiler_pic='-fPIC -shared'
9712 ;;
9713
9714 sysv4*MP*)
9715 if test -d /usr/nec; then
9716 lt_prog_compiler_pic=-Kconform_pic
9717 fi
9718 ;;
9719
9720 *)
9721 lt_prog_compiler_pic='-fPIC'
9722 ;;
9723 esac
9724
9725 case $cc_basename in
9726 nvcc*) # Cuda Compiler Driver 2.2
9727 lt_prog_compiler_wl='-Xlinker '
9728 if test -n "$lt_prog_compiler_pic"; then
9729 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9730 fi
9731 ;;
9732 esac
9733 else
9734 # PORTME Check for flag to pass linker flags through the system compiler.
9735 case $host_os in
9736 aix*)
9737 lt_prog_compiler_wl='-Wl,'
9738 if test ia64 = "$host_cpu"; then
9739 # AIX 5 now supports IA64 processor
9740 lt_prog_compiler_static='-Bstatic'
9741 else
9742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9743 fi
9744 ;;
9745
9746 darwin* | rhapsody*)
9747 # PIC is the default on this platform
9748 # Common symbols not allowed in MH_DYLIB files
9749 lt_prog_compiler_pic='-fno-common'
9750 case $cc_basename in
9751 nagfor*)
9752 # NAG Fortran compiler
9753 lt_prog_compiler_wl='-Wl,-Wl,,'
9754 lt_prog_compiler_pic='-PIC'
9755 lt_prog_compiler_static='-Bstatic'
9756 ;;
9757 esac
9758 ;;
9759
9760 mingw* | cygwin* | pw32* | os2* | cegcc*)
9761 # This hack is so that the source file can tell whether it is being
9762 # built for inclusion in a dll (and should export symbols for example).
9763 lt_prog_compiler_pic='-DDLL_EXPORT'
9764 case $host_os in
9765 os2*)
9766 lt_prog_compiler_static='$wl-static'
9767 ;;
9768 esac
9769 ;;
9770
9771 hpux9* | hpux10* | hpux11*)
9772 lt_prog_compiler_wl='-Wl,'
9773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9774 # not for PA HP-UX.
9775 case $host_cpu in
9776 hppa*64*|ia64*)
9777 # +Z the default
9778 ;;
9779 *)
9780 lt_prog_compiler_pic='+Z'
9781 ;;
9782 esac
9783 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9784 lt_prog_compiler_static='$wl-a ${wl}archive'
9785 ;;
9786
9787 irix5* | irix6* | nonstopux*)
9788 lt_prog_compiler_wl='-Wl,'
9789 # PIC (with -KPIC) is the default.
9790 lt_prog_compiler_static='-non_shared'
9791 ;;
9792
9793 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9794 case $cc_basename in
9795 # old Intel for x86_64, which still supported -KPIC.
9796 ecc*)
9797 lt_prog_compiler_wl='-Wl,'
9798 lt_prog_compiler_pic='-KPIC'
9799 lt_prog_compiler_static='-static'
9800 ;;
9801 # icc used to be incompatible with GCC.
9802 # ICC 10 doesn't accept -KPIC any more.
9803 icc* | ifort*)
9804 lt_prog_compiler_wl='-Wl,'
9805 lt_prog_compiler_pic='-fPIC'
9806 lt_prog_compiler_static='-static'
9807 ;;
9808 # Lahey Fortran 8.1.
9809 lf95*)
9810 lt_prog_compiler_wl='-Wl,'
9811 lt_prog_compiler_pic='--shared'
9812 lt_prog_compiler_static='--static'
9813 ;;
9814 nagfor*)
9815 # NAG Fortran compiler
9816 lt_prog_compiler_wl='-Wl,-Wl,,'
9817 lt_prog_compiler_pic='-PIC'
9818 lt_prog_compiler_static='-Bstatic'
9819 ;;
9820 tcc*)
9821 # Fabrice Bellard et al's Tiny C Compiler
9822 lt_prog_compiler_wl='-Wl,'
9823 lt_prog_compiler_pic='-fPIC'
9824 lt_prog_compiler_static='-static'
9825 ;;
9826 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9827 # Portland Group compilers (*not* the Pentium gcc compiler,
9828 # which looks to be a dead project)
9829 lt_prog_compiler_wl='-Wl,'
9830 lt_prog_compiler_pic='-fpic'
9831 lt_prog_compiler_static='-Bstatic'
9832 ;;
9833 ccc*)
9834 lt_prog_compiler_wl='-Wl,'
9835 # All Alpha code is PIC.
9836 lt_prog_compiler_static='-non_shared'
9837 ;;
9838 xl* | bgxl* | bgf* | mpixl*)
9839 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9840 lt_prog_compiler_wl='-Wl,'
9841 lt_prog_compiler_pic='-qpic'
9842 lt_prog_compiler_static='-qstaticlink'
9843 ;;
9844 *)
9845 case `$CC -V 2>&1 | sed 5q` in
9846 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9847 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9848 lt_prog_compiler_pic='-KPIC'
9849 lt_prog_compiler_static='-Bstatic'
9850 lt_prog_compiler_wl=''
9851 ;;
9852 *Sun\ F* | *Sun*Fortran*)
9853 lt_prog_compiler_pic='-KPIC'
9854 lt_prog_compiler_static='-Bstatic'
9855 lt_prog_compiler_wl='-Qoption ld '
9856 ;;
9857 *Sun\ C*)
9858 # Sun C 5.9
9859 lt_prog_compiler_pic='-KPIC'
9860 lt_prog_compiler_static='-Bstatic'
9861 lt_prog_compiler_wl='-Wl,'
9862 ;;
9863 *Intel*\ [CF]*Compiler*)
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='-fPIC'
9866 lt_prog_compiler_static='-static'
9867 ;;
9868 *Portland\ Group*)
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='-fpic'
9871 lt_prog_compiler_static='-Bstatic'
9872 ;;
9873 esac
9874 ;;
9875 esac
9876 ;;
9877
9878 newsos6)
9879 lt_prog_compiler_pic='-KPIC'
9880 lt_prog_compiler_static='-Bstatic'
9881 ;;
9882
9883 *nto* | *qnx*)
9884 # QNX uses GNU C++, but need to define -shared option too, otherwise
9885 # it will coredump.
9886 lt_prog_compiler_pic='-fPIC -shared'
9887 ;;
9888
9889 osf3* | osf4* | osf5*)
9890 lt_prog_compiler_wl='-Wl,'
9891 # All OSF/1 code is PIC.
9892 lt_prog_compiler_static='-non_shared'
9893 ;;
9894
9895 rdos*)
9896 lt_prog_compiler_static='-non_shared'
9897 ;;
9898
9899 solaris*)
9900 lt_prog_compiler_pic='-KPIC'
9901 lt_prog_compiler_static='-Bstatic'
9902 case $cc_basename in
9903 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9904 lt_prog_compiler_wl='-Qoption ld ';;
9905 *)
9906 lt_prog_compiler_wl='-Wl,';;
9907 esac
9908 ;;
9909
9910 sunos4*)
9911 lt_prog_compiler_wl='-Qoption ld '
9912 lt_prog_compiler_pic='-PIC'
9913 lt_prog_compiler_static='-Bstatic'
9914 ;;
9915
9916 sysv4 | sysv4.2uw2* | sysv4.3*)
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='-KPIC'
9919 lt_prog_compiler_static='-Bstatic'
9920 ;;
9921
9922 sysv4*MP*)
9923 if test -d /usr/nec; then
9924 lt_prog_compiler_pic='-Kconform_pic'
9925 lt_prog_compiler_static='-Bstatic'
9926 fi
9927 ;;
9928
9929 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9930 lt_prog_compiler_wl='-Wl,'
9931 lt_prog_compiler_pic='-KPIC'
9932 lt_prog_compiler_static='-Bstatic'
9933 ;;
9934
9935 unicos*)
9936 lt_prog_compiler_wl='-Wl,'
9937 lt_prog_compiler_can_build_shared=no
9938 ;;
9939
9940 uts4*)
9941 lt_prog_compiler_pic='-pic'
9942 lt_prog_compiler_static='-Bstatic'
9943 ;;
9944
9945 *)
9946 lt_prog_compiler_can_build_shared=no
9947 ;;
9948 esac
9949 fi
9950
9951 case $host_os in
9952 # For platforms that do not support PIC, -DPIC is meaningless:
9953 *djgpp*)
9954 lt_prog_compiler_pic=
9955 ;;
9956 *)
9957 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9958 ;;
9959 esac
9960
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9962 printf %s "checking for $compiler option to produce PIC... " >&6; }
9963 if test ${lt_cv_prog_compiler_pic+y}
9964 then :
9965 printf %s "(cached) " >&6
9966 else $as_nop
9967 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9968 fi
9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9970 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9971 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9972
9973 #
9974 # Check to make sure the PIC flag actually works.
9975 #
9976 if test -n "$lt_prog_compiler_pic"; then
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9978 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9979 if test ${lt_cv_prog_compiler_pic_works+y}
9980 then :
9981 printf %s "(cached) " >&6
9982 else $as_nop
9983 lt_cv_prog_compiler_pic_works=no
9984 ac_outfile=conftest.$ac_objext
9985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9986 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9987 # Insert the option either (1) after the last *FLAGS variable, or
9988 # (2) before a word containing "conftest.", or (3) at the end.
9989 # Note that $ac_compile itself does not contain backslashes and begins
9990 # with a dollar sign (not a hyphen), so the echo should work correctly.
9991 # The option is referenced via a variable to avoid confusing sed.
9992 lt_compile=`echo "$ac_compile" | $SED \
9993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9995 -e 's:$: $lt_compiler_flag:'`
9996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9997 (eval "$lt_compile" 2>conftest.err)
9998 ac_status=$?
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 if (exit $ac_status) && test -s "$ac_outfile"; then
10002 # The compiler can only warn and ignore the option if not recognized
10003 # So say no if there are warnings other than the usual output.
10004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10006 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10007 lt_cv_prog_compiler_pic_works=yes
10008 fi
10009 fi
10010 $RM conftest*
10011
10012 fi
10013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10014 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10015
10016 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10017 case $lt_prog_compiler_pic in
10018 "" | " "*) ;;
10019 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10020 esac
10021 else
10022 lt_prog_compiler_pic=
10023 lt_prog_compiler_can_build_shared=no
10024 fi
10025
10026 fi
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038 #
10039 # Check to make sure the static flag actually works.
10040 #
10041 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10043 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10044 if test ${lt_cv_prog_compiler_static_works+y}
10045 then :
10046 printf %s "(cached) " >&6
10047 else $as_nop
10048 lt_cv_prog_compiler_static_works=no
10049 save_LDFLAGS=$LDFLAGS
10050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10051 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10053 # The linker can only warn and ignore the option if not recognized
10054 # So say no if there are warnings
10055 if test -s conftest.err; then
10056 # Append any errors to the config.log.
10057 cat conftest.err 1>&5
10058 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10060 if diff conftest.exp conftest.er2 >/dev/null; then
10061 lt_cv_prog_compiler_static_works=yes
10062 fi
10063 else
10064 lt_cv_prog_compiler_static_works=yes
10065 fi
10066 fi
10067 $RM -r conftest*
10068 LDFLAGS=$save_LDFLAGS
10069
10070 fi
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10072 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10073
10074 if test yes = "$lt_cv_prog_compiler_static_works"; then
10075 :
10076 else
10077 lt_prog_compiler_static=
10078 fi
10079
10080
10081
10082
10083
10084
10085
10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10087 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10088 if test ${lt_cv_prog_compiler_c_o+y}
10089 then :
10090 printf %s "(cached) " >&6
10091 else $as_nop
10092 lt_cv_prog_compiler_c_o=no
10093 $RM -r conftest 2>/dev/null
10094 mkdir conftest
10095 cd conftest
10096 mkdir out
10097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10098
10099 lt_compiler_flag="-o out/conftest2.$ac_objext"
10100 # Insert the option either (1) after the last *FLAGS variable, or
10101 # (2) before a word containing "conftest.", or (3) at the end.
10102 # Note that $ac_compile itself does not contain backslashes and begins
10103 # with a dollar sign (not a hyphen), so the echo should work correctly.
10104 lt_compile=`echo "$ac_compile" | $SED \
10105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10107 -e 's:$: $lt_compiler_flag:'`
10108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10109 (eval "$lt_compile" 2>out/conftest.err)
10110 ac_status=$?
10111 cat out/conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10114 then
10115 # The compiler can only warn and ignore the option if not recognized
10116 # So say no if there are warnings
10117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10120 lt_cv_prog_compiler_c_o=yes
10121 fi
10122 fi
10123 chmod u+w . 2>&5
10124 $RM conftest*
10125 # SGI C++ compiler will create directory out/ii_files/ for
10126 # template instantiation
10127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10128 $RM out/* && rmdir out
10129 cd ..
10130 $RM -r conftest
10131 $RM conftest*
10132
10133 fi
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10135 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10136
10137
10138
10139
10140
10141
10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10143 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10144 if test ${lt_cv_prog_compiler_c_o+y}
10145 then :
10146 printf %s "(cached) " >&6
10147 else $as_nop
10148 lt_cv_prog_compiler_c_o=no
10149 $RM -r conftest 2>/dev/null
10150 mkdir conftest
10151 cd conftest
10152 mkdir out
10153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10154
10155 lt_compiler_flag="-o out/conftest2.$ac_objext"
10156 # Insert the option either (1) after the last *FLAGS variable, or
10157 # (2) before a word containing "conftest.", or (3) at the end.
10158 # Note that $ac_compile itself does not contain backslashes and begins
10159 # with a dollar sign (not a hyphen), so the echo should work correctly.
10160 lt_compile=`echo "$ac_compile" | $SED \
10161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10163 -e 's:$: $lt_compiler_flag:'`
10164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10165 (eval "$lt_compile" 2>out/conftest.err)
10166 ac_status=$?
10167 cat out/conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10170 then
10171 # The compiler can only warn and ignore the option if not recognized
10172 # So say no if there are warnings
10173 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10174 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10175 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10176 lt_cv_prog_compiler_c_o=yes
10177 fi
10178 fi
10179 chmod u+w . 2>&5
10180 $RM conftest*
10181 # SGI C++ compiler will create directory out/ii_files/ for
10182 # template instantiation
10183 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10184 $RM out/* && rmdir out
10185 cd ..
10186 $RM -r conftest
10187 $RM conftest*
10188
10189 fi
10190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10191 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10192
10193
10194
10195
10196 hard_links=nottested
10197 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10198 # do not overwrite the value of need_locks provided by the user
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10200 printf %s "checking if we can lock with hard links... " >&6; }
10201 hard_links=yes
10202 $RM conftest*
10203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10204 touch conftest.a
10205 ln conftest.a conftest.b 2>&5 || hard_links=no
10206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10208 printf "%s\n" "$hard_links" >&6; }
10209 if test no = "$hard_links"; then
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10211 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10212 need_locks=warn
10213 fi
10214 else
10215 need_locks=no
10216 fi
10217
10218
10219
10220
10221
10222
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10224 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10225
10226 runpath_var=
10227 allow_undefined_flag=
10228 always_export_symbols=no
10229 archive_cmds=
10230 archive_expsym_cmds=
10231 compiler_needs_object=no
10232 enable_shared_with_static_runtimes=no
10233 export_dynamic_flag_spec=
10234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10235 hardcode_automatic=no
10236 hardcode_direct=no
10237 hardcode_direct_absolute=no
10238 hardcode_libdir_flag_spec=
10239 hardcode_libdir_separator=
10240 hardcode_minus_L=no
10241 hardcode_shlibpath_var=unsupported
10242 inherit_rpath=no
10243 link_all_deplibs=unknown
10244 module_cmds=
10245 module_expsym_cmds=
10246 old_archive_from_new_cmds=
10247 old_archive_from_expsyms_cmds=
10248 thread_safe_flag_spec=
10249 whole_archive_flag_spec=
10250 # include_expsyms should be a list of space-separated symbols to be *always*
10251 # included in the symbol list
10252 include_expsyms=
10253 # exclude_expsyms can be an extended regexp of symbols to exclude
10254 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10255 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10256 # as well as any symbol that contains 'd'.
10257 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10259 # platforms (ab)use it in PIC code, but their linkers get confused if
10260 # the symbol is explicitly referenced. Since portable code cannot
10261 # rely on this symbol name, it's probably fine to never include it in
10262 # preloaded symbol tables.
10263 # Exclude shared library initialization/finalization symbols.
10264 extract_expsyms_cmds=
10265
10266 case $host_os in
10267 cygwin* | mingw* | pw32* | cegcc*)
10268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10269 # When not using gcc, we currently assume that we are using
10270 # Microsoft Visual C++.
10271 if test yes != "$GCC"; then
10272 with_gnu_ld=no
10273 fi
10274 ;;
10275 interix*)
10276 # we just hope/assume this is gcc and not c89 (= MSVC++)
10277 with_gnu_ld=yes
10278 ;;
10279 openbsd* | bitrig*)
10280 with_gnu_ld=no
10281 ;;
10282 esac
10283
10284 ld_shlibs=yes
10285
10286 # On some targets, GNU ld is compatible enough with the native linker
10287 # that we're better off using the native interface for both.
10288 lt_use_gnu_ld_interface=no
10289 if test yes = "$with_gnu_ld"; then
10290 case $host_os in
10291 aix*)
10292 # The AIX port of GNU ld has always aspired to compatibility
10293 # with the native linker. However, as the warning in the GNU ld
10294 # block says, versions before 2.19.5* couldn't really create working
10295 # shared libraries, regardless of the interface used.
10296 case `$LD -v 2>&1` in
10297 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10298 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10299 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10300 *)
10301 lt_use_gnu_ld_interface=yes
10302 ;;
10303 esac
10304 ;;
10305 *)
10306 lt_use_gnu_ld_interface=yes
10307 ;;
10308 esac
10309 fi
10310
10311 if test yes = "$lt_use_gnu_ld_interface"; then
10312 # If archive_cmds runs LD, not CC, wlarc should be empty
10313 wlarc='$wl'
10314
10315 # Set some defaults for GNU ld with shared library support. These
10316 # are reset later if shared libraries are not supported. Putting them
10317 # here allows them to be overridden if necessary.
10318 runpath_var=LD_RUN_PATH
10319 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10320 export_dynamic_flag_spec='$wl--export-dynamic'
10321 # ancient GNU ld didn't support --whole-archive et. al.
10322 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10323 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10324 else
10325 whole_archive_flag_spec=
10326 fi
10327 supports_anon_versioning=no
10328 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10329 *GNU\ gold*) supports_anon_versioning=yes ;;
10330 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10331 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10332 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10333 *\ 2.11.*) ;; # other 2.11 versions
10334 *) supports_anon_versioning=yes ;;
10335 esac
10336
10337 # See if GNU ld supports shared libraries.
10338 case $host_os in
10339 aix[3-9]*)
10340 # On AIX/PPC, the GNU linker is very broken
10341 if test ia64 != "$host_cpu"; then
10342 ld_shlibs=no
10343 cat <<_LT_EOF 1>&2
10344
10345 *** Warning: the GNU linker, at least up to release 2.19, is reported
10346 *** to be unable to reliably create shared libraries on AIX.
10347 *** Therefore, libtool is disabling shared libraries support. If you
10348 *** really care for shared libraries, you may want to install binutils
10349 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10350 *** You will then need to restart the configuration process.
10351
10352 _LT_EOF
10353 fi
10354 ;;
10355
10356 amigaos*)
10357 case $host_cpu in
10358 powerpc)
10359 # see comment about AmigaOS4 .so support
10360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10361 archive_expsym_cmds=''
10362 ;;
10363 m68k)
10364 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)'
10365 hardcode_libdir_flag_spec='-L$libdir'
10366 hardcode_minus_L=yes
10367 ;;
10368 esac
10369 ;;
10370
10371 beos*)
10372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10373 allow_undefined_flag=unsupported
10374 # Joseph Beckenbach <[email protected]> says some releases of gcc
10375 # support --undefined. This deserves some investigation. FIXME
10376 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10377 else
10378 ld_shlibs=no
10379 fi
10380 ;;
10381
10382 cygwin* | mingw* | pw32* | cegcc*)
10383 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10384 # as there is no search path for DLLs.
10385 hardcode_libdir_flag_spec='-L$libdir'
10386 export_dynamic_flag_spec='$wl--export-all-symbols'
10387 allow_undefined_flag=unsupported
10388 always_export_symbols=no
10389 enable_shared_with_static_runtimes=yes
10390 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'
10391 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10392
10393 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10395 # If the export-symbols file already is a .def file, use it as
10396 # is; otherwise, prepend EXPORTS...
10397 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10398 cp $export_symbols $output_objdir/$soname.def;
10399 else
10400 echo EXPORTS > $output_objdir/$soname.def;
10401 cat $export_symbols >> $output_objdir/$soname.def;
10402 fi~
10403 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10404 else
10405 ld_shlibs=no
10406 fi
10407 ;;
10408
10409 haiku*)
10410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10411 link_all_deplibs=yes
10412 ;;
10413
10414 os2*)
10415 hardcode_libdir_flag_spec='-L$libdir'
10416 hardcode_minus_L=yes
10417 allow_undefined_flag=unsupported
10418 shrext_cmds=.dll
10419 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10420 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10421 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10422 $ECHO EXPORTS >> $output_objdir/$libname.def~
10423 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10424 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10425 emximp -o $lib $output_objdir/$libname.def'
10426 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10427 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10428 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10429 $ECHO EXPORTS >> $output_objdir/$libname.def~
10430 prefix_cmds="$SED"~
10431 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10432 prefix_cmds="$prefix_cmds -e 1d";
10433 fi~
10434 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10435 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10436 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10437 emximp -o $lib $output_objdir/$libname.def'
10438 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10439 enable_shared_with_static_runtimes=yes
10440 ;;
10441
10442 interix[3-9]*)
10443 hardcode_direct=no
10444 hardcode_shlibpath_var=no
10445 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10446 export_dynamic_flag_spec='$wl-E'
10447 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10448 # Instead, shared libraries are loaded at an image base (0x10000000 by
10449 # default) and relocated if they conflict, which is a slow very memory
10450 # consuming and fragmenting process. To avoid this, we pick a random,
10451 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10452 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10453 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10454 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'
10455 ;;
10456
10457 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10458 tmp_diet=no
10459 if test linux-dietlibc = "$host_os"; then
10460 case $cc_basename in
10461 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10462 esac
10463 fi
10464 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10465 && test no = "$tmp_diet"
10466 then
10467 tmp_addflag=' $pic_flag'
10468 tmp_sharedflag='-shared'
10469 case $cc_basename,$host_cpu in
10470 pgcc*) # Portland Group C compiler
10471 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'
10472 tmp_addflag=' $pic_flag'
10473 ;;
10474 pgf77* | pgf90* | pgf95* | pgfortran*)
10475 # Portland Group f77 and f90 compilers
10476 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'
10477 tmp_addflag=' $pic_flag -Mnomain' ;;
10478 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10479 tmp_addflag=' -i_dynamic' ;;
10480 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10481 tmp_addflag=' -i_dynamic -nofor_main' ;;
10482 ifc* | ifort*) # Intel Fortran compiler
10483 tmp_addflag=' -nofor_main' ;;
10484 lf95*) # Lahey Fortran 8.1
10485 whole_archive_flag_spec=
10486 tmp_sharedflag='--shared' ;;
10487 nagfor*) # NAGFOR 5.3
10488 tmp_sharedflag='-Wl,-shared' ;;
10489 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10490 tmp_sharedflag='-qmkshrobj'
10491 tmp_addflag= ;;
10492 nvcc*) # Cuda Compiler Driver 2.2
10493 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'
10494 compiler_needs_object=yes
10495 ;;
10496 esac
10497 case `$CC -V 2>&1 | sed 5q` in
10498 *Sun\ C*) # Sun C 5.9
10499 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'
10500 compiler_needs_object=yes
10501 tmp_sharedflag='-G' ;;
10502 *Sun\ F*) # Sun Fortran 8.3
10503 tmp_sharedflag='-G' ;;
10504 esac
10505 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10506
10507 if test yes = "$supports_anon_versioning"; then
10508 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10509 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10510 echo "local: *; };" >> $output_objdir/$libname.ver~
10511 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10512 fi
10513
10514 case $cc_basename in
10515 tcc*)
10516 export_dynamic_flag_spec='-rdynamic'
10517 ;;
10518 xlf* | bgf* | bgxlf* | mpixlf*)
10519 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10520 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10521 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10522 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10523 if test yes = "$supports_anon_versioning"; then
10524 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10525 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10526 echo "local: *; };" >> $output_objdir/$libname.ver~
10527 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10528 fi
10529 ;;
10530 esac
10531 else
10532 ld_shlibs=no
10533 fi
10534 ;;
10535
10536 netbsd*)
10537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10538 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10539 wlarc=
10540 else
10541 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10542 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10543 fi
10544 ;;
10545
10546 solaris*)
10547 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10548 ld_shlibs=no
10549 cat <<_LT_EOF 1>&2
10550
10551 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10552 *** create shared libraries on Solaris systems. Therefore, libtool
10553 *** is disabling shared libraries support. We urge you to upgrade GNU
10554 *** binutils to release 2.9.1 or newer. Another option is to modify
10555 *** your PATH or compiler configuration so that the native linker is
10556 *** used, and then restart.
10557
10558 _LT_EOF
10559 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10560 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10561 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10562 else
10563 ld_shlibs=no
10564 fi
10565 ;;
10566
10567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10568 case `$LD -v 2>&1` in
10569 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10570 ld_shlibs=no
10571 cat <<_LT_EOF 1>&2
10572
10573 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10574 *** reliably create shared libraries on SCO systems. Therefore, libtool
10575 *** is disabling shared libraries support. We urge you to upgrade GNU
10576 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10577 *** your PATH or compiler configuration so that the native linker is
10578 *** used, and then restart.
10579
10580 _LT_EOF
10581 ;;
10582 *)
10583 # For security reasons, it is highly recommended that you always
10584 # use absolute paths for naming shared libraries, and exclude the
10585 # DT_RUNPATH tag from executables and libraries. But doing so
10586 # requires that you compile everything twice, which is a pain.
10587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10588 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10590 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10591 else
10592 ld_shlibs=no
10593 fi
10594 ;;
10595 esac
10596 ;;
10597
10598 sunos4*)
10599 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10600 wlarc=
10601 hardcode_direct=yes
10602 hardcode_shlibpath_var=no
10603 ;;
10604
10605 *)
10606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10608 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10609 else
10610 ld_shlibs=no
10611 fi
10612 ;;
10613 esac
10614
10615 if test no = "$ld_shlibs"; then
10616 runpath_var=
10617 hardcode_libdir_flag_spec=
10618 export_dynamic_flag_spec=
10619 whole_archive_flag_spec=
10620 fi
10621 else
10622 # PORTME fill in a description of your system's linker (not GNU ld)
10623 case $host_os in
10624 aix3*)
10625 allow_undefined_flag=unsupported
10626 always_export_symbols=yes
10627 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'
10628 # Note: this linker hardcodes the directories in LIBPATH if there
10629 # are no directories specified by -L.
10630 hardcode_minus_L=yes
10631 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10632 # Neither direct hardcoding nor static linking is supported with a
10633 # broken collect2.
10634 hardcode_direct=unsupported
10635 fi
10636 ;;
10637
10638 aix[4-9]*)
10639 if test ia64 = "$host_cpu"; then
10640 # On IA64, the linker does run time linking by default, so we don't
10641 # have to do anything special.
10642 aix_use_runtimelinking=no
10643 exp_sym_flag='-Bexport'
10644 no_entry_flag=
10645 else
10646 # If we're using GNU nm, then we don't want the "-C" option.
10647 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10648 # Without the "-l" option, or with the "-B" option, AIX nm treats
10649 # weak defined symbols like other global defined symbols, whereas
10650 # GNU nm marks them as "W".
10651 # While the 'weak' keyword is ignored in the Export File, we need
10652 # it in the Import File for the 'aix-soname' feature, so we have
10653 # to replace the "-B" option with "-P" for AIX nm.
10654 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10655 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'
10656 else
10657 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10658 fi
10659 aix_use_runtimelinking=no
10660
10661 # Test if we are trying to use run time linking or normal
10662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10663 # have runtime linking enabled, and use it for executables.
10664 # For shared libraries, we enable/disable runtime linking
10665 # depending on the kind of the shared library created -
10666 # when "with_aix_soname,aix_use_runtimelinking" is:
10667 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10668 # "aix,yes" lib.so shared, rtl:yes, for executables
10669 # lib.a static archive
10670 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10671 # lib.a(lib.so.V) shared, rtl:no, for executables
10672 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10673 # lib.a(lib.so.V) shared, rtl:no
10674 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10675 # lib.a static archive
10676 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10677 for ld_flag in $LDFLAGS; do
10678 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10679 aix_use_runtimelinking=yes
10680 break
10681 fi
10682 done
10683 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10684 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10685 # so we don't have lib.a shared libs to link our executables.
10686 # We have to force runtime linking in this case.
10687 aix_use_runtimelinking=yes
10688 LDFLAGS="$LDFLAGS -Wl,-brtl"
10689 fi
10690 ;;
10691 esac
10692
10693 exp_sym_flag='-bexport'
10694 no_entry_flag='-bnoentry'
10695 fi
10696
10697 # When large executables or shared objects are built, AIX ld can
10698 # have problems creating the table of contents. If linking a library
10699 # or program results in "error TOC overflow" add -mminimal-toc to
10700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10702
10703 archive_cmds=''
10704 hardcode_direct=yes
10705 hardcode_direct_absolute=yes
10706 hardcode_libdir_separator=':'
10707 link_all_deplibs=yes
10708 file_list_spec='$wl-f,'
10709 case $with_aix_soname,$aix_use_runtimelinking in
10710 aix,*) ;; # traditional, no import file
10711 svr4,* | *,yes) # use import file
10712 # The Import File defines what to hardcode.
10713 hardcode_direct=no
10714 hardcode_direct_absolute=no
10715 ;;
10716 esac
10717
10718 if test yes = "$GCC"; then
10719 case $host_os in aix4.[012]|aix4.[012].*)
10720 # We only want to do this on AIX 4.2 and lower, the check
10721 # below for broken collect2 doesn't work under 4.3+
10722 collect2name=`$CC -print-prog-name=collect2`
10723 if test -f "$collect2name" &&
10724 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10725 then
10726 # We have reworked collect2
10727 :
10728 else
10729 # We have old collect2
10730 hardcode_direct=unsupported
10731 # It fails to find uninstalled libraries when the uninstalled
10732 # path is not listed in the libpath. Setting hardcode_minus_L
10733 # to unsupported forces relinking
10734 hardcode_minus_L=yes
10735 hardcode_libdir_flag_spec='-L$libdir'
10736 hardcode_libdir_separator=
10737 fi
10738 ;;
10739 esac
10740 shared_flag='-shared'
10741 if test yes = "$aix_use_runtimelinking"; then
10742 shared_flag="$shared_flag "'$wl-G'
10743 fi
10744 # Need to ensure runtime linking is disabled for the traditional
10745 # shared library, or the linker may eventually find shared libraries
10746 # /with/ Import File - we do not want to mix them.
10747 shared_flag_aix='-shared'
10748 shared_flag_svr4='-shared $wl-G'
10749 else
10750 # not using gcc
10751 if test ia64 = "$host_cpu"; then
10752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10753 # chokes on -Wl,-G. The following line is correct:
10754 shared_flag='-G'
10755 else
10756 if test yes = "$aix_use_runtimelinking"; then
10757 shared_flag='$wl-G'
10758 else
10759 shared_flag='$wl-bM:SRE'
10760 fi
10761 shared_flag_aix='$wl-bM:SRE'
10762 shared_flag_svr4='$wl-G'
10763 fi
10764 fi
10765
10766 export_dynamic_flag_spec='$wl-bexpall'
10767 # It seems that -bexpall does not export symbols beginning with
10768 # underscore (_), so it is better to generate a list of symbols to export.
10769 always_export_symbols=yes
10770 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10771 # Warning - without using the other runtime loading flags (-brtl),
10772 # -berok will link without error, but may produce a broken library.
10773 allow_undefined_flag='-berok'
10774 # Determine the default libpath from the value encoded in an
10775 # empty executable.
10776 if test set = "${lt_cv_aix_libpath+set}"; then
10777 aix_libpath=$lt_cv_aix_libpath
10778 else
10779 if test ${lt_cv_aix_libpath_+y}
10780 then :
10781 printf %s "(cached) " >&6
10782 else $as_nop
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785
10786 int
10787 main (void)
10788 {
10789
10790 ;
10791 return 0;
10792 }
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"
10795 then :
10796
10797 lt_aix_libpath_sed='
10798 /Import File Strings/,/^$/ {
10799 /^0/ {
10800 s/^0 *\([^ ]*\) *$/\1/
10801 p
10802 }
10803 }'
10804 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10805 # Check for a 64-bit object if we didn't find anything.
10806 if test -z "$lt_cv_aix_libpath_"; then
10807 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10808 fi
10809 fi
10810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10811 conftest$ac_exeext conftest.$ac_ext
10812 if test -z "$lt_cv_aix_libpath_"; then
10813 lt_cv_aix_libpath_=/usr/lib:/lib
10814 fi
10815
10816 fi
10817
10818 aix_libpath=$lt_cv_aix_libpath_
10819 fi
10820
10821 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10822 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
10823 else
10824 if test ia64 = "$host_cpu"; then
10825 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10826 allow_undefined_flag="-z nodefs"
10827 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"
10828 else
10829 # Determine the default libpath from the value encoded in an
10830 # empty executable.
10831 if test set = "${lt_cv_aix_libpath+set}"; then
10832 aix_libpath=$lt_cv_aix_libpath
10833 else
10834 if test ${lt_cv_aix_libpath_+y}
10835 then :
10836 printf %s "(cached) " >&6
10837 else $as_nop
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10840
10841 int
10842 main (void)
10843 {
10844
10845 ;
10846 return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_link "$LINENO"
10850 then :
10851
10852 lt_aix_libpath_sed='
10853 /Import File Strings/,/^$/ {
10854 /^0/ {
10855 s/^0 *\([^ ]*\) *$/\1/
10856 p
10857 }
10858 }'
10859 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860 # Check for a 64-bit object if we didn't find anything.
10861 if test -z "$lt_cv_aix_libpath_"; then
10862 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10863 fi
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10866 conftest$ac_exeext conftest.$ac_ext
10867 if test -z "$lt_cv_aix_libpath_"; then
10868 lt_cv_aix_libpath_=/usr/lib:/lib
10869 fi
10870
10871 fi
10872
10873 aix_libpath=$lt_cv_aix_libpath_
10874 fi
10875
10876 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10877 # Warning - without using the other run time loading flags,
10878 # -berok will link without error, but may produce a broken library.
10879 no_undefined_flag=' $wl-bernotok'
10880 allow_undefined_flag=' $wl-berok'
10881 if test yes = "$with_gnu_ld"; then
10882 # We only use this code for GNU lds that support --whole-archive.
10883 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10884 else
10885 # Exported symbols can be pulled into shared objects from archives
10886 whole_archive_flag_spec='$convenience'
10887 fi
10888 archive_cmds_need_lc=yes
10889 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10890 # -brtl affects multiple linker settings, -berok does not and is overridden later
10891 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10892 if test svr4 != "$with_aix_soname"; then
10893 # This is similar to how AIX traditionally builds its shared libraries.
10894 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'
10895 fi
10896 if test aix != "$with_aix_soname"; then
10897 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'
10898 else
10899 # used by -dlpreopen to get the symbols
10900 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10901 fi
10902 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10903 fi
10904 fi
10905 ;;
10906
10907 amigaos*)
10908 case $host_cpu in
10909 powerpc)
10910 # see comment about AmigaOS4 .so support
10911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10912 archive_expsym_cmds=''
10913 ;;
10914 m68k)
10915 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)'
10916 hardcode_libdir_flag_spec='-L$libdir'
10917 hardcode_minus_L=yes
10918 ;;
10919 esac
10920 ;;
10921
10922 bsdi[45]*)
10923 export_dynamic_flag_spec=-rdynamic
10924 ;;
10925
10926 cygwin* | mingw* | pw32* | cegcc*)
10927 # When not using gcc, we currently assume that we are using
10928 # Microsoft Visual C++.
10929 # hardcode_libdir_flag_spec is actually meaningless, as there is
10930 # no search path for DLLs.
10931 case $cc_basename in
10932 cl*)
10933 # Native MSVC
10934 hardcode_libdir_flag_spec=' '
10935 allow_undefined_flag=unsupported
10936 always_export_symbols=yes
10937 file_list_spec='@'
10938 # Tell ltmain to make .lib files, not .a files.
10939 libext=lib
10940 # Tell ltmain to make .dll files, not .so files.
10941 shrext_cmds=.dll
10942 # FIXME: Setting linknames here is a bad hack.
10943 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10944 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10945 cp "$export_symbols" "$output_objdir/$soname.def";
10946 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10947 else
10948 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10949 fi~
10950 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10951 linknames='
10952 # The linker will not automatically build a static lib if we build a DLL.
10953 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10954 enable_shared_with_static_runtimes=yes
10955 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10957 # Don't use ranlib
10958 old_postinstall_cmds='chmod 644 $oldlib'
10959 postlink_cmds='lt_outputfile="@OUTPUT@"~
10960 lt_tool_outputfile="@TOOL_OUTPUT@"~
10961 case $lt_outputfile in
10962 *.exe|*.EXE) ;;
10963 *)
10964 lt_outputfile=$lt_outputfile.exe
10965 lt_tool_outputfile=$lt_tool_outputfile.exe
10966 ;;
10967 esac~
10968 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10969 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10970 $RM "$lt_outputfile.manifest";
10971 fi'
10972 ;;
10973 *)
10974 # Assume MSVC wrapper
10975 hardcode_libdir_flag_spec=' '
10976 allow_undefined_flag=unsupported
10977 # Tell ltmain to make .lib files, not .a files.
10978 libext=lib
10979 # Tell ltmain to make .dll files, not .so files.
10980 shrext_cmds=.dll
10981 # FIXME: Setting linknames here is a bad hack.
10982 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10983 # The linker will automatically build a .lib file if we build a DLL.
10984 old_archive_from_new_cmds='true'
10985 # FIXME: Should let the user specify the lib program.
10986 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10987 enable_shared_with_static_runtimes=yes
10988 ;;
10989 esac
10990 ;;
10991
10992 darwin* | rhapsody*)
10993
10994
10995 archive_cmds_need_lc=no
10996 hardcode_direct=no
10997 hardcode_automatic=yes
10998 hardcode_shlibpath_var=unsupported
10999 if test yes = "$lt_cv_ld_force_load"; then
11000 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\"`'
11001
11002 else
11003 whole_archive_flag_spec=''
11004 fi
11005 link_all_deplibs=yes
11006 allow_undefined_flag=$_lt_dar_allow_undefined
11007 case $cc_basename in
11008 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11009 *) _lt_dar_can_shared=$GCC ;;
11010 esac
11011 if test yes = "$_lt_dar_can_shared"; then
11012 output_verbose_link_cmd=func_echo_all
11013 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11014 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11015 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"
11016 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"
11017
11018 else
11019 ld_shlibs=no
11020 fi
11021
11022 ;;
11023
11024 dgux*)
11025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11026 hardcode_libdir_flag_spec='-L$libdir'
11027 hardcode_shlibpath_var=no
11028 ;;
11029
11030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11031 # support. Future versions do this automatically, but an explicit c++rt0.o
11032 # does not break anything, and helps significantly (at the cost of a little
11033 # extra space).
11034 freebsd2.2*)
11035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11036 hardcode_libdir_flag_spec='-R$libdir'
11037 hardcode_direct=yes
11038 hardcode_shlibpath_var=no
11039 ;;
11040
11041 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11042 freebsd2.*)
11043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11044 hardcode_direct=yes
11045 hardcode_minus_L=yes
11046 hardcode_shlibpath_var=no
11047 ;;
11048
11049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11050 freebsd* | dragonfly*)
11051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11052 hardcode_libdir_flag_spec='-R$libdir'
11053 hardcode_direct=yes
11054 hardcode_shlibpath_var=no
11055 ;;
11056
11057 hpux9*)
11058 if test yes = "$GCC"; then
11059 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'
11060 else
11061 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'
11062 fi
11063 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11064 hardcode_libdir_separator=:
11065 hardcode_direct=yes
11066
11067 # hardcode_minus_L: Not really in the search PATH,
11068 # but as the default location of the library.
11069 hardcode_minus_L=yes
11070 export_dynamic_flag_spec='$wl-E'
11071 ;;
11072
11073 hpux10*)
11074 if test yes,no = "$GCC,$with_gnu_ld"; then
11075 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11076 else
11077 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11078 fi
11079 if test no = "$with_gnu_ld"; then
11080 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11081 hardcode_libdir_separator=:
11082 hardcode_direct=yes
11083 hardcode_direct_absolute=yes
11084 export_dynamic_flag_spec='$wl-E'
11085 # hardcode_minus_L: Not really in the search PATH,
11086 # but as the default location of the library.
11087 hardcode_minus_L=yes
11088 fi
11089 ;;
11090
11091 hpux11*)
11092 if test yes,no = "$GCC,$with_gnu_ld"; then
11093 case $host_cpu in
11094 hppa*64*)
11095 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11096 ;;
11097 ia64*)
11098 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11099 ;;
11100 *)
11101 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11102 ;;
11103 esac
11104 else
11105 case $host_cpu in
11106 hppa*64*)
11107 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11108 ;;
11109 ia64*)
11110 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11111 ;;
11112 *)
11113
11114 # Older versions of the 11.00 compiler do not understand -b yet
11115 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11117 printf %s "checking if $CC understands -b... " >&6; }
11118 if test ${lt_cv_prog_compiler__b+y}
11119 then :
11120 printf %s "(cached) " >&6
11121 else $as_nop
11122 lt_cv_prog_compiler__b=no
11123 save_LDFLAGS=$LDFLAGS
11124 LDFLAGS="$LDFLAGS -b"
11125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11127 # The linker can only warn and ignore the option if not recognized
11128 # So say no if there are warnings
11129 if test -s conftest.err; then
11130 # Append any errors to the config.log.
11131 cat conftest.err 1>&5
11132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11134 if diff conftest.exp conftest.er2 >/dev/null; then
11135 lt_cv_prog_compiler__b=yes
11136 fi
11137 else
11138 lt_cv_prog_compiler__b=yes
11139 fi
11140 fi
11141 $RM -r conftest*
11142 LDFLAGS=$save_LDFLAGS
11143
11144 fi
11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11146 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11147
11148 if test yes = "$lt_cv_prog_compiler__b"; then
11149 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11150 else
11151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11152 fi
11153
11154 ;;
11155 esac
11156 fi
11157 if test no = "$with_gnu_ld"; then
11158 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11159 hardcode_libdir_separator=:
11160
11161 case $host_cpu in
11162 hppa*64*|ia64*)
11163 hardcode_direct=no
11164 hardcode_shlibpath_var=no
11165 ;;
11166 *)
11167 hardcode_direct=yes
11168 hardcode_direct_absolute=yes
11169 export_dynamic_flag_spec='$wl-E'
11170
11171 # hardcode_minus_L: Not really in the search PATH,
11172 # but as the default location of the library.
11173 hardcode_minus_L=yes
11174 ;;
11175 esac
11176 fi
11177 ;;
11178
11179 irix5* | irix6* | nonstopux*)
11180 if test yes = "$GCC"; then
11181 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'
11182 # Try to use the -exported_symbol ld option, if it does not
11183 # work, assume that -exports_file does not work either and
11184 # implicitly export all symbols.
11185 # This should be the same for all languages, so no per-tag cache variable.
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11187 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11188 if test ${lt_cv_irix_exported_symbol+y}
11189 then :
11190 printf %s "(cached) " >&6
11191 else $as_nop
11192 save_LDFLAGS=$LDFLAGS
11193 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11196 int foo (void) { return 0; }
11197 _ACEOF
11198 if ac_fn_c_try_link "$LINENO"
11199 then :
11200 lt_cv_irix_exported_symbol=yes
11201 else $as_nop
11202 lt_cv_irix_exported_symbol=no
11203 fi
11204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11205 conftest$ac_exeext conftest.$ac_ext
11206 LDFLAGS=$save_LDFLAGS
11207 fi
11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11209 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11210 if test yes = "$lt_cv_irix_exported_symbol"; then
11211 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'
11212 fi
11213 else
11214 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'
11215 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'
11216 fi
11217 archive_cmds_need_lc='no'
11218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11219 hardcode_libdir_separator=:
11220 inherit_rpath=yes
11221 link_all_deplibs=yes
11222 ;;
11223
11224 linux*)
11225 case $cc_basename in
11226 tcc*)
11227 # Fabrice Bellard et al's Tiny C Compiler
11228 ld_shlibs=yes
11229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11230 ;;
11231 esac
11232 ;;
11233
11234 netbsd*)
11235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11237 else
11238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11239 fi
11240 hardcode_libdir_flag_spec='-R$libdir'
11241 hardcode_direct=yes
11242 hardcode_shlibpath_var=no
11243 ;;
11244
11245 newsos6)
11246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11247 hardcode_direct=yes
11248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11249 hardcode_libdir_separator=:
11250 hardcode_shlibpath_var=no
11251 ;;
11252
11253 *nto* | *qnx*)
11254 ;;
11255
11256 openbsd* | bitrig*)
11257 if test -f /usr/libexec/ld.so; then
11258 hardcode_direct=yes
11259 hardcode_shlibpath_var=no
11260 hardcode_direct_absolute=yes
11261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11263 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11264 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11265 export_dynamic_flag_spec='$wl-E'
11266 else
11267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11268 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11269 fi
11270 else
11271 ld_shlibs=no
11272 fi
11273 ;;
11274
11275 os2*)
11276 hardcode_libdir_flag_spec='-L$libdir'
11277 hardcode_minus_L=yes
11278 allow_undefined_flag=unsupported
11279 shrext_cmds=.dll
11280 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11281 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11282 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11283 $ECHO EXPORTS >> $output_objdir/$libname.def~
11284 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11286 emximp -o $lib $output_objdir/$libname.def'
11287 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11288 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11289 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11290 $ECHO EXPORTS >> $output_objdir/$libname.def~
11291 prefix_cmds="$SED"~
11292 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11293 prefix_cmds="$prefix_cmds -e 1d";
11294 fi~
11295 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11296 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11297 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11298 emximp -o $lib $output_objdir/$libname.def'
11299 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11300 enable_shared_with_static_runtimes=yes
11301 ;;
11302
11303 osf3*)
11304 if test yes = "$GCC"; then
11305 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11306 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'
11307 else
11308 allow_undefined_flag=' -expect_unresolved \*'
11309 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'
11310 fi
11311 archive_cmds_need_lc='no'
11312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11313 hardcode_libdir_separator=:
11314 ;;
11315
11316 osf4* | osf5*) # as osf3* with the addition of -msym flag
11317 if test yes = "$GCC"; then
11318 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11319 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'
11320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11321 else
11322 allow_undefined_flag=' -expect_unresolved \*'
11323 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'
11324 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~
11325 $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'
11326
11327 # Both c and cxx compiler support -rpath directly
11328 hardcode_libdir_flag_spec='-rpath $libdir'
11329 fi
11330 archive_cmds_need_lc='no'
11331 hardcode_libdir_separator=:
11332 ;;
11333
11334 solaris*)
11335 no_undefined_flag=' -z defs'
11336 if test yes = "$GCC"; then
11337 wlarc='$wl'
11338 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11340 $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'
11341 else
11342 case `$CC -V 2>&1` in
11343 *"Compilers 5.0"*)
11344 wlarc=''
11345 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11347 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11348 ;;
11349 *)
11350 wlarc='$wl'
11351 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11352 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11353 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11354 ;;
11355 esac
11356 fi
11357 hardcode_libdir_flag_spec='-R$libdir'
11358 hardcode_shlibpath_var=no
11359 case $host_os in
11360 solaris2.[0-5] | solaris2.[0-5].*) ;;
11361 *)
11362 # The compiler driver will combine and reorder linker options,
11363 # but understands '-z linker_flag'. GCC discards it without '$wl',
11364 # but is careful enough not to reorder.
11365 # Supported since Solaris 2.6 (maybe 2.5.1?)
11366 if test yes = "$GCC"; then
11367 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11368 else
11369 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11370 fi
11371 ;;
11372 esac
11373 link_all_deplibs=yes
11374 ;;
11375
11376 sunos4*)
11377 if test sequent = "$host_vendor"; then
11378 # Use $CC to link under sequent, because it throws in some extra .o
11379 # files that make .init and .fini sections work.
11380 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11381 else
11382 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11383 fi
11384 hardcode_libdir_flag_spec='-L$libdir'
11385 hardcode_direct=yes
11386 hardcode_minus_L=yes
11387 hardcode_shlibpath_var=no
11388 ;;
11389
11390 sysv4)
11391 case $host_vendor in
11392 sni)
11393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11394 hardcode_direct=yes # is this really true???
11395 ;;
11396 siemens)
11397 ## LD is ld it makes a PLAMLIB
11398 ## CC just makes a GrossModule.
11399 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11400 reload_cmds='$CC -r -o $output$reload_objs'
11401 hardcode_direct=no
11402 ;;
11403 motorola)
11404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11405 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11406 ;;
11407 esac
11408 runpath_var='LD_RUN_PATH'
11409 hardcode_shlibpath_var=no
11410 ;;
11411
11412 sysv4.3*)
11413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11414 hardcode_shlibpath_var=no
11415 export_dynamic_flag_spec='-Bexport'
11416 ;;
11417
11418 sysv4*MP*)
11419 if test -d /usr/nec; then
11420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11421 hardcode_shlibpath_var=no
11422 runpath_var=LD_RUN_PATH
11423 hardcode_runpath_var=yes
11424 ld_shlibs=yes
11425 fi
11426 ;;
11427
11428 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11429 no_undefined_flag='$wl-z,text'
11430 archive_cmds_need_lc=no
11431 hardcode_shlibpath_var=no
11432 runpath_var='LD_RUN_PATH'
11433
11434 if test yes = "$GCC"; then
11435 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11436 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11437 else
11438 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11439 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11440 fi
11441 ;;
11442
11443 sysv5* | sco3.2v5* | sco5v6*)
11444 # Note: We CANNOT use -z defs as we might desire, because we do not
11445 # link with -lc, and that would cause any symbols used from libc to
11446 # always be unresolved, which means just about no library would
11447 # ever link correctly. If we're not using GNU ld we use -z text
11448 # though, which does catch some bad symbols but isn't as heavy-handed
11449 # as -z defs.
11450 no_undefined_flag='$wl-z,text'
11451 allow_undefined_flag='$wl-z,nodefs'
11452 archive_cmds_need_lc=no
11453 hardcode_shlibpath_var=no
11454 hardcode_libdir_flag_spec='$wl-R,$libdir'
11455 hardcode_libdir_separator=':'
11456 link_all_deplibs=yes
11457 export_dynamic_flag_spec='$wl-Bexport'
11458 runpath_var='LD_RUN_PATH'
11459
11460 if test yes = "$GCC"; then
11461 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11462 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11463 else
11464 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11465 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11466 fi
11467 ;;
11468
11469 uts4*)
11470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471 hardcode_libdir_flag_spec='-L$libdir'
11472 hardcode_shlibpath_var=no
11473 ;;
11474
11475 *)
11476 ld_shlibs=no
11477 ;;
11478 esac
11479
11480 if test sni = "$host_vendor"; then
11481 case $host in
11482 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11483 export_dynamic_flag_spec='$wl-Blargedynsym'
11484 ;;
11485 esac
11486 fi
11487 fi
11488
11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11490 printf "%s\n" "$ld_shlibs" >&6; }
11491 test no = "$ld_shlibs" && can_build_shared=no
11492
11493 with_gnu_ld=$with_gnu_ld
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509 #
11510 # Do we need to explicitly link libc?
11511 #
11512 case "x$archive_cmds_need_lc" in
11513 x|xyes)
11514 # Assume -lc should be added
11515 archive_cmds_need_lc=yes
11516
11517 if test yes,yes = "$GCC,$enable_shared"; then
11518 case $archive_cmds in
11519 *'~'*)
11520 # FIXME: we may have to deal with multi-command sequences.
11521 ;;
11522 '$CC '*)
11523 # Test whether the compiler implicitly links with -lc since on some
11524 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11525 # to ld, don't add -lc before -lgcc.
11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11527 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11528 if test ${lt_cv_archive_cmds_need_lc+y}
11529 then :
11530 printf %s "(cached) " >&6
11531 else $as_nop
11532 $RM conftest*
11533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11534
11535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11536 (eval $ac_compile) 2>&5
11537 ac_status=$?
11538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11539 test $ac_status = 0; } 2>conftest.err; then
11540 soname=conftest
11541 lib=conftest
11542 libobjs=conftest.$ac_objext
11543 deplibs=
11544 wl=$lt_prog_compiler_wl
11545 pic_flag=$lt_prog_compiler_pic
11546 compiler_flags=-v
11547 linker_flags=-v
11548 verstring=
11549 output_objdir=.
11550 libname=conftest
11551 lt_save_allow_undefined_flag=$allow_undefined_flag
11552 allow_undefined_flag=
11553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11554 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11555 ac_status=$?
11556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557 test $ac_status = 0; }
11558 then
11559 lt_cv_archive_cmds_need_lc=no
11560 else
11561 lt_cv_archive_cmds_need_lc=yes
11562 fi
11563 allow_undefined_flag=$lt_save_allow_undefined_flag
11564 else
11565 cat conftest.err 1>&5
11566 fi
11567 $RM conftest*
11568
11569 fi
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11571 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11572 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11573 ;;
11574 esac
11575 fi
11576 ;;
11577 esac
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11731 printf %s "checking dynamic linker characteristics... " >&6; }
11732
11733 if test yes = "$GCC"; then
11734 case $host_os in
11735 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11736 *) lt_awk_arg='/^libraries:/' ;;
11737 esac
11738 case $host_os in
11739 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11740 *) lt_sed_strip_eq='s|=/|/|g' ;;
11741 esac
11742 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11743 case $lt_search_path_spec in
11744 *\;*)
11745 # if the path contains ";" then we assume it to be the separator
11746 # otherwise default to the standard path separator (i.e. ":") - it is
11747 # assumed that no part of a normal pathname contains ";" but that should
11748 # okay in the real world where ";" in dirpaths is itself problematic.
11749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11750 ;;
11751 *)
11752 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11753 ;;
11754 esac
11755 # Ok, now we have the path, separated by spaces, we can step through it
11756 # and add multilib dir if necessary...
11757 lt_tmp_lt_search_path_spec=
11758 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11759 # ...but if some path component already ends with the multilib dir we assume
11760 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11761 case "$lt_multi_os_dir; $lt_search_path_spec " in
11762 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11763 lt_multi_os_dir=
11764 ;;
11765 esac
11766 for lt_sys_path in $lt_search_path_spec; do
11767 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11769 elif test -n "$lt_multi_os_dir"; then
11770 test -d "$lt_sys_path" && \
11771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11772 fi
11773 done
11774 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11775 BEGIN {RS = " "; FS = "/|\n";} {
11776 lt_foo = "";
11777 lt_count = 0;
11778 for (lt_i = NF; lt_i > 0; lt_i--) {
11779 if ($lt_i != "" && $lt_i != ".") {
11780 if ($lt_i == "..") {
11781 lt_count++;
11782 } else {
11783 if (lt_count == 0) {
11784 lt_foo = "/" $lt_i lt_foo;
11785 } else {
11786 lt_count--;
11787 }
11788 }
11789 }
11790 }
11791 if (lt_foo != "") { lt_freq[lt_foo]++; }
11792 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11793 }'`
11794 # AWK program above erroneously prepends '/' to C:/dos/paths
11795 # for these hosts.
11796 case $host_os in
11797 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11798 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11799 esac
11800 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11801 else
11802 sys_lib_search_path_spec="/lib /usr/lib /Users/birby/homebrew/lib"
11803 fi
11804 library_names_spec=
11805 libname_spec='lib$name'
11806 soname_spec=
11807 shrext_cmds=.so
11808 postinstall_cmds=
11809 postuninstall_cmds=
11810 finish_cmds=
11811 finish_eval=
11812 shlibpath_var=
11813 shlibpath_overrides_runpath=unknown
11814 version_type=none
11815 dynamic_linker="$host_os ld.so"
11816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11817 need_lib_prefix=unknown
11818 hardcode_into_libs=no
11819
11820 # when you set need_version to no, make sure it does not cause -set_version
11821 # flags to be left without arguments
11822 need_version=unknown
11823
11824
11825
11826 case $host_os in
11827 aix3*)
11828 version_type=linux # correct to gnu/linux during the next big refactor
11829 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11830 shlibpath_var=LIBPATH
11831
11832 # AIX 3 has no versioning support, so we append a major version to the name.
11833 soname_spec='$libname$release$shared_ext$major'
11834 ;;
11835
11836 aix[4-9]*)
11837 version_type=linux # correct to gnu/linux during the next big refactor
11838 need_lib_prefix=no
11839 need_version=no
11840 hardcode_into_libs=yes
11841 if test ia64 = "$host_cpu"; then
11842 # AIX 5 supports IA64
11843 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 else
11846 # With GCC up to 2.95.x, collect2 would create an import file
11847 # for dependence libraries. The import file would start with
11848 # the line '#! .'. This would cause the generated library to
11849 # depend on '.', always an invalid library. This was fixed in
11850 # development snapshots of GCC prior to 3.0.
11851 case $host_os in
11852 aix4 | aix4.[01] | aix4.[01].*)
11853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11854 echo ' yes '
11855 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11856 :
11857 else
11858 can_build_shared=no
11859 fi
11860 ;;
11861 esac
11862 # Using Import Files as archive members, it is possible to support
11863 # filename-based versioning of shared library archives on AIX. While
11864 # this would work for both with and without runtime linking, it will
11865 # prevent static linking of such archives. So we do filename-based
11866 # shared library versioning with .so extension only, which is used
11867 # when both runtime linking and shared linking is enabled.
11868 # Unfortunately, runtime linking may impact performance, so we do
11869 # not want this to be the default eventually. Also, we use the
11870 # versioned .so libs for executables only if there is the -brtl
11871 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11872 # To allow for filename-based versioning support, we need to create
11873 # libNAME.so.V as an archive file, containing:
11874 # *) an Import File, referring to the versioned filename of the
11875 # archive as well as the shared archive member, telling the
11876 # bitwidth (32 or 64) of that shared object, and providing the
11877 # list of exported symbols of that shared object, eventually
11878 # decorated with the 'weak' keyword
11879 # *) the shared object with the F_LOADONLY flag set, to really avoid
11880 # it being seen by the linker.
11881 # At run time we better use the real file rather than another symlink,
11882 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11883
11884 case $with_aix_soname,$aix_use_runtimelinking in
11885 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11886 # soname into executable. Probably we can add versioning support to
11887 # collect2, so additional links can be useful in future.
11888 aix,yes) # traditional libtool
11889 dynamic_linker='AIX unversionable lib.so'
11890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11891 # instead of lib<name>.a to let people know that these are not
11892 # typical AIX shared libraries.
11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11894 ;;
11895 aix,no) # traditional AIX only
11896 dynamic_linker='AIX lib.a(lib.so.V)'
11897 # We preserve .a as extension for shared libraries through AIX4.2
11898 # and later when we are not doing run time linking.
11899 library_names_spec='$libname$release.a $libname.a'
11900 soname_spec='$libname$release$shared_ext$major'
11901 ;;
11902 svr4,*) # full svr4 only
11903 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11904 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11905 # We do not specify a path in Import Files, so LIBPATH fires.
11906 shlibpath_overrides_runpath=yes
11907 ;;
11908 *,yes) # both, prefer svr4
11909 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11910 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11911 # unpreferred sharedlib libNAME.a needs extra handling
11912 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"'
11913 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"'
11914 # We do not specify a path in Import Files, so LIBPATH fires.
11915 shlibpath_overrides_runpath=yes
11916 ;;
11917 *,no) # both, prefer aix
11918 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11919 library_names_spec='$libname$release.a $libname.a'
11920 soname_spec='$libname$release$shared_ext$major'
11921 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11922 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)'
11923 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"'
11924 ;;
11925 esac
11926 shlibpath_var=LIBPATH
11927 fi
11928 ;;
11929
11930 amigaos*)
11931 case $host_cpu in
11932 powerpc)
11933 # Since July 2007 AmigaOS4 officially supports .so libraries.
11934 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936 ;;
11937 m68k)
11938 library_names_spec='$libname.ixlibrary $libname.a'
11939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11940 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'
11941 ;;
11942 esac
11943 ;;
11944
11945 beos*)
11946 library_names_spec='$libname$shared_ext'
11947 dynamic_linker="$host_os ld.so"
11948 shlibpath_var=LIBRARY_PATH
11949 ;;
11950
11951 bsdi[45]*)
11952 version_type=linux # correct to gnu/linux during the next big refactor
11953 need_version=no
11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11955 soname_spec='$libname$release$shared_ext$major'
11956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /Users/birby/homebrew/lib"
11959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /Users/birby/homebrew/lib"
11960 # the default ld.so.conf also contains /usr/contrib/lib and
11961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11962 # libtool to hard-code these into programs
11963 ;;
11964
11965 cygwin* | mingw* | pw32* | cegcc*)
11966 version_type=windows
11967 shrext_cmds=.dll
11968 need_version=no
11969 need_lib_prefix=no
11970
11971 case $GCC,$cc_basename in
11972 yes,*)
11973 # gcc
11974 library_names_spec='$libname.dll.a'
11975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11976 postinstall_cmds='base_file=`basename \$file`~
11977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11978 dldir=$destdir/`dirname \$dlpath`~
11979 test -d \$dldir || mkdir -p \$dldir~
11980 $install_prog $dir/$dlname \$dldir/$dlname~
11981 chmod a+x \$dldir/$dlname~
11982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11984 fi'
11985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11986 dlpath=$dir/\$dldll~
11987 $RM \$dlpath'
11988 shlibpath_overrides_runpath=yes
11989
11990 case $host_os in
11991 cygwin*)
11992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11993 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11994
11995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11996 ;;
11997 mingw* | cegcc*)
11998 # MinGW DLLs use traditional 'lib' prefix
11999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12000 ;;
12001 pw32*)
12002 # pw32 DLLs use 'pw' prefix rather than 'lib'
12003 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12004 ;;
12005 esac
12006 dynamic_linker='Win32 ld.exe'
12007 ;;
12008
12009 *,cl*)
12010 # Native MSVC
12011 libname_spec='$name'
12012 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12013 library_names_spec='$libname.dll.lib'
12014
12015 case $build_os in
12016 mingw*)
12017 sys_lib_search_path_spec=
12018 lt_save_ifs=$IFS
12019 IFS=';'
12020 for lt_path in $LIB
12021 do
12022 IFS=$lt_save_ifs
12023 # Let DOS variable expansion print the short 8.3 style file name.
12024 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12025 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12026 done
12027 IFS=$lt_save_ifs
12028 # Convert to MSYS style.
12029 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12030 ;;
12031 cygwin*)
12032 # Convert to unix form, then to dos form, then back to unix form
12033 # but this time dos style (no spaces!) so that the unix form looks
12034 # like /cygdrive/c/PROGRA~1:/cygdr...
12035 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12036 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12037 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12038 ;;
12039 *)
12040 sys_lib_search_path_spec=$LIB
12041 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12042 # It is most probably a Windows format PATH.
12043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12044 else
12045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12046 fi
12047 # FIXME: find the short name or the path components, as spaces are
12048 # common. (e.g. "Program Files" -> "PROGRA~1")
12049 ;;
12050 esac
12051
12052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12053 postinstall_cmds='base_file=`basename \$file`~
12054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12055 dldir=$destdir/`dirname \$dlpath`~
12056 test -d \$dldir || mkdir -p \$dldir~
12057 $install_prog $dir/$dlname \$dldir/$dlname'
12058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12059 dlpath=$dir/\$dldll~
12060 $RM \$dlpath'
12061 shlibpath_overrides_runpath=yes
12062 dynamic_linker='Win32 link.exe'
12063 ;;
12064
12065 *)
12066 # Assume MSVC wrapper
12067 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12068 dynamic_linker='Win32 ld.exe'
12069 ;;
12070 esac
12071 # FIXME: first we should search . and the directory the executable is in
12072 shlibpath_var=PATH
12073 ;;
12074
12075 darwin* | rhapsody*)
12076 dynamic_linker="$host_os dyld"
12077 version_type=darwin
12078 need_lib_prefix=no
12079 need_version=no
12080 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12081 soname_spec='$libname$release$major$shared_ext'
12082 shlibpath_overrides_runpath=yes
12083 shlibpath_var=DYLD_LIBRARY_PATH
12084 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12085
12086 sys_lib_search_path_spec="$sys_lib_search_path_spec /Users/birby/homebrew/lib"
12087 sys_lib_dlsearch_path_spec='/Users/birby/homebrew/lib /lib /usr/lib'
12088 ;;
12089
12090 dgux*)
12091 version_type=linux # correct to gnu/linux during the next big refactor
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12095 soname_spec='$libname$release$shared_ext$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 ;;
12098
12099 freebsd* | dragonfly*)
12100 # DragonFly does not have aout. When/if they implement a new
12101 # versioning mechanism, adjust this.
12102 if test -x /usr/bin/objformat; then
12103 objformat=`/usr/bin/objformat`
12104 else
12105 case $host_os in
12106 freebsd[23].*) objformat=aout ;;
12107 *) objformat=elf ;;
12108 esac
12109 fi
12110 version_type=freebsd-$objformat
12111 case $version_type in
12112 freebsd-elf*)
12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114 soname_spec='$libname$release$shared_ext$major'
12115 need_version=no
12116 need_lib_prefix=no
12117 ;;
12118 freebsd-*)
12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12120 need_version=yes
12121 ;;
12122 esac
12123 shlibpath_var=LD_LIBRARY_PATH
12124 case $host_os in
12125 freebsd2.*)
12126 shlibpath_overrides_runpath=yes
12127 ;;
12128 freebsd3.[01]* | freebsdelf3.[01]*)
12129 shlibpath_overrides_runpath=yes
12130 hardcode_into_libs=yes
12131 ;;
12132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12134 shlibpath_overrides_runpath=no
12135 hardcode_into_libs=yes
12136 ;;
12137 *) # from 4.6 on, and DragonFly
12138 shlibpath_overrides_runpath=yes
12139 hardcode_into_libs=yes
12140 ;;
12141 esac
12142 ;;
12143
12144 haiku*)
12145 version_type=linux # correct to gnu/linux during the next big refactor
12146 need_lib_prefix=no
12147 need_version=no
12148 dynamic_linker="$host_os runtime_loader"
12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12150 soname_spec='$libname$release$shared_ext$major'
12151 shlibpath_var=LIBRARY_PATH
12152 shlibpath_overrides_runpath=no
12153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12154 hardcode_into_libs=yes
12155 ;;
12156
12157 hpux9* | hpux10* | hpux11*)
12158 # Give a soname corresponding to the major version so that dld.sl refuses to
12159 # link against other versions.
12160 version_type=sunos
12161 need_lib_prefix=no
12162 need_version=no
12163 case $host_cpu in
12164 ia64*)
12165 shrext_cmds='.so'
12166 hardcode_into_libs=yes
12167 dynamic_linker="$host_os dld.so"
12168 shlibpath_var=LD_LIBRARY_PATH
12169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12171 soname_spec='$libname$release$shared_ext$major'
12172 if test 32 = "$HPUX_IA64_MODE"; then
12173 sys_lib_search_path_spec="/usr/lib/hpux32 /Users/birby/homebrew/lib/hpux32 /Users/birby/homebrew/lib"
12174 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12175 else
12176 sys_lib_search_path_spec="/usr/lib/hpux64 /Users/birby/homebrew/lib/hpux64"
12177 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12178 fi
12179 ;;
12180 hppa*64*)
12181 shrext_cmds='.sl'
12182 hardcode_into_libs=yes
12183 dynamic_linker="$host_os dld.sl"
12184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12187 soname_spec='$libname$release$shared_ext$major'
12188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12190 ;;
12191 *)
12192 shrext_cmds='.sl'
12193 dynamic_linker="$host_os dld.sl"
12194 shlibpath_var=SHLIB_PATH
12195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12197 soname_spec='$libname$release$shared_ext$major'
12198 ;;
12199 esac
12200 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12201 postinstall_cmds='chmod 555 $lib'
12202 # or fails outright, so override atomically:
12203 install_override_mode=555
12204 ;;
12205
12206 interix[3-9]*)
12207 version_type=linux # correct to gnu/linux during the next big refactor
12208 need_lib_prefix=no
12209 need_version=no
12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12211 soname_spec='$libname$release$shared_ext$major'
12212 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12213 shlibpath_var=LD_LIBRARY_PATH
12214 shlibpath_overrides_runpath=no
12215 hardcode_into_libs=yes
12216 ;;
12217
12218 irix5* | irix6* | nonstopux*)
12219 case $host_os in
12220 nonstopux*) version_type=nonstopux ;;
12221 *)
12222 if test yes = "$lt_cv_prog_gnu_ld"; then
12223 version_type=linux # correct to gnu/linux during the next big refactor
12224 else
12225 version_type=irix
12226 fi ;;
12227 esac
12228 need_lib_prefix=no
12229 need_version=no
12230 soname_spec='$libname$release$shared_ext$major'
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12232 case $host_os in
12233 irix5* | nonstopux*)
12234 libsuff= shlibsuff=
12235 ;;
12236 *)
12237 case $LD in # libtool.m4 will add one of these switches to LD
12238 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12239 libsuff= shlibsuff= libmagic=32-bit;;
12240 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12241 libsuff=32 shlibsuff=N32 libmagic=N32;;
12242 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12243 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12244 *) libsuff= shlibsuff= libmagic=never-match;;
12245 esac
12246 ;;
12247 esac
12248 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12249 shlibpath_overrides_runpath=no
12250 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /Users/birby/homebrew/lib$libsuff"
12251 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12252 hardcode_into_libs=yes
12253 ;;
12254
12255 # No shared lib support for Linux oldld, aout, or coff.
12256 linux*oldld* | linux*aout* | linux*coff*)
12257 dynamic_linker=no
12258 ;;
12259
12260 linux*android*)
12261 version_type=none # Android doesn't support versioned libraries.
12262 need_lib_prefix=no
12263 need_version=no
12264 library_names_spec='$libname$release$shared_ext'
12265 soname_spec='$libname$release$shared_ext'
12266 finish_cmds=
12267 shlibpath_var=LD_LIBRARY_PATH
12268 shlibpath_overrides_runpath=yes
12269
12270 # This implies no fast_install, which is unacceptable.
12271 # Some rework will be needed to allow for fast_install
12272 # before this can be enabled.
12273 hardcode_into_libs=yes
12274
12275 dynamic_linker='Android linker'
12276 # Don't embed -rpath directories since the linker doesn't support them.
12277 hardcode_libdir_flag_spec='-L$libdir'
12278 ;;
12279
12280 # This must be glibc/ELF.
12281 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12282 version_type=linux # correct to gnu/linux during the next big refactor
12283 need_lib_prefix=no
12284 need_version=no
12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12286 soname_spec='$libname$release$shared_ext$major'
12287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 shlibpath_overrides_runpath=no
12290
12291 # Some binutils ld are patched to set DT_RUNPATH
12292 if test ${lt_cv_shlibpath_overrides_runpath+y}
12293 then :
12294 printf %s "(cached) " >&6
12295 else $as_nop
12296 lt_cv_shlibpath_overrides_runpath=no
12297 save_LDFLAGS=$LDFLAGS
12298 save_libdir=$libdir
12299 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12300 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12303
12304 int
12305 main (void)
12306 {
12307
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"
12313 then :
12314 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12315 then :
12316 lt_cv_shlibpath_overrides_runpath=yes
12317 fi
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LDFLAGS=$save_LDFLAGS
12322 libdir=$save_libdir
12323
12324 fi
12325
12326 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12327
12328 # This implies no fast_install, which is unacceptable.
12329 # Some rework will be needed to allow for fast_install
12330 # before this can be enabled.
12331 hardcode_into_libs=yes
12332
12333 # Ideally, we could use ldconfig to report *all* directores which are
12334 # searched for libraries, however this is still not possible. Aside from not
12335 # being certain /sbin/ldconfig is available, command
12336 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12337 # even though it is searched at run-time. Try to do the best guess by
12338 # appending ld.so.conf contents (and includes) to the search path.
12339 if test -f /etc/ld.so.conf; then
12340 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' ' '`
12341 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12342 fi
12343
12344 # We used to test for /lib/ld.so.1 and disable shared libraries on
12345 # powerpc, because MkLinux only supported shared libraries with the
12346 # GNU dynamic linker. Since this was broken with cross compilers,
12347 # most powerpc-linux boxes support dynamic linking these days and
12348 # people can always --disable-shared, the test was removed, and we
12349 # assume the GNU/Linux dynamic linker is in use.
12350 dynamic_linker='GNU/Linux ld.so'
12351 ;;
12352
12353 netbsd*)
12354 version_type=sunos
12355 need_lib_prefix=no
12356 need_version=no
12357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12358 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12360 dynamic_linker='NetBSD (a.out) ld.so'
12361 else
12362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12363 soname_spec='$libname$release$shared_ext$major'
12364 dynamic_linker='NetBSD ld.elf_so'
12365 fi
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=yes
12368 hardcode_into_libs=yes
12369 ;;
12370
12371 newsos6)
12372 version_type=linux # correct to gnu/linux during the next big refactor
12373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12374 shlibpath_var=LD_LIBRARY_PATH
12375 shlibpath_overrides_runpath=yes
12376 ;;
12377
12378 *nto* | *qnx*)
12379 version_type=qnx
12380 need_lib_prefix=no
12381 need_version=no
12382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12383 soname_spec='$libname$release$shared_ext$major'
12384 shlibpath_var=LD_LIBRARY_PATH
12385 shlibpath_overrides_runpath=no
12386 hardcode_into_libs=yes
12387 dynamic_linker='ldqnx.so'
12388 ;;
12389
12390 openbsd* | bitrig*)
12391 version_type=sunos
12392 sys_lib_dlsearch_path_spec=/usr/lib
12393 need_lib_prefix=no
12394 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12395 need_version=no
12396 else
12397 need_version=yes
12398 fi
12399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=yes
12403 ;;
12404
12405 os2*)
12406 libname_spec='$name'
12407 version_type=windows
12408 shrext_cmds=.dll
12409 need_version=no
12410 need_lib_prefix=no
12411 # OS/2 can only load a DLL with a base name of 8 characters or less.
12412 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12413 v=$($ECHO $release$versuffix | tr -d .-);
12414 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12415 $ECHO $n$v`$shared_ext'
12416 library_names_spec='${libname}_dll.$libext'
12417 dynamic_linker='OS/2 ld.exe'
12418 shlibpath_var=BEGINLIBPATH
12419 sys_lib_search_path_spec="/lib /usr/lib /Users/birby/homebrew/lib"
12420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12421 postinstall_cmds='base_file=`basename \$file`~
12422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12423 dldir=$destdir/`dirname \$dlpath`~
12424 test -d \$dldir || mkdir -p \$dldir~
12425 $install_prog $dir/$dlname \$dldir/$dlname~
12426 chmod a+x \$dldir/$dlname~
12427 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12428 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12429 fi'
12430 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12431 dlpath=$dir/\$dldll~
12432 $RM \$dlpath'
12433 ;;
12434
12435 osf3* | osf4* | osf5*)
12436 version_type=osf
12437 need_lib_prefix=no
12438 need_version=no
12439 soname_spec='$libname$release$shared_ext$major'
12440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12441 shlibpath_var=LD_LIBRARY_PATH
12442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /Users/birby/homebrew/lib /var/shlib"
12443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12444 ;;
12445
12446 rdos*)
12447 dynamic_linker=no
12448 ;;
12449
12450 solaris*)
12451 version_type=linux # correct to gnu/linux during the next big refactor
12452 need_lib_prefix=no
12453 need_version=no
12454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12455 soname_spec='$libname$release$shared_ext$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 shlibpath_overrides_runpath=yes
12458 hardcode_into_libs=yes
12459 # ldd complains unless libraries are executable
12460 postinstall_cmds='chmod +x $lib'
12461 ;;
12462
12463 sunos4*)
12464 version_type=sunos
12465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 shlibpath_overrides_runpath=yes
12469 if test yes = "$with_gnu_ld"; then
12470 need_lib_prefix=no
12471 fi
12472 need_version=yes
12473 ;;
12474
12475 sysv4 | sysv4.3*)
12476 version_type=linux # correct to gnu/linux during the next big refactor
12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12478 soname_spec='$libname$release$shared_ext$major'
12479 shlibpath_var=LD_LIBRARY_PATH
12480 case $host_vendor in
12481 sni)
12482 shlibpath_overrides_runpath=no
12483 need_lib_prefix=no
12484 runpath_var=LD_RUN_PATH
12485 ;;
12486 siemens)
12487 need_lib_prefix=no
12488 ;;
12489 motorola)
12490 need_lib_prefix=no
12491 need_version=no
12492 shlibpath_overrides_runpath=no
12493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12494 ;;
12495 esac
12496 ;;
12497
12498 sysv4*MP*)
12499 if test -d /usr/nec; then
12500 version_type=linux # correct to gnu/linux during the next big refactor
12501 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12502 soname_spec='$libname$shared_ext.$major'
12503 shlibpath_var=LD_LIBRARY_PATH
12504 fi
12505 ;;
12506
12507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12508 version_type=sco
12509 need_lib_prefix=no
12510 need_version=no
12511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12512 soname_spec='$libname$release$shared_ext$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=yes
12515 hardcode_into_libs=yes
12516 if test yes = "$with_gnu_ld"; then
12517 sys_lib_search_path_spec='/Users/birby/homebrew/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12518 else
12519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12520 case $host_os in
12521 sco3.2v5*)
12522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12523 ;;
12524 esac
12525 fi
12526 sys_lib_dlsearch_path_spec='/usr/lib'
12527 ;;
12528
12529 tpf*)
12530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12531 version_type=linux # correct to gnu/linux during the next big refactor
12532 need_lib_prefix=no
12533 need_version=no
12534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12535 shlibpath_var=LD_LIBRARY_PATH
12536 shlibpath_overrides_runpath=no
12537 hardcode_into_libs=yes
12538 ;;
12539
12540 uts4*)
12541 version_type=linux # correct to gnu/linux during the next big refactor
12542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12543 soname_spec='$libname$release$shared_ext$major'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 ;;
12546
12547 *)
12548 dynamic_linker=no
12549 ;;
12550 esac
12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12552 printf "%s\n" "$dynamic_linker" >&6; }
12553 test no = "$dynamic_linker" && can_build_shared=no
12554
12555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12556 if test yes = "$GCC"; then
12557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12558 fi
12559
12560 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12561 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12562 fi
12563
12564 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12565 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12566 fi
12567
12568 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12569 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12570
12571 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12572 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12573
12574 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12575 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12674 printf %s "checking how to hardcode library paths into programs... " >&6; }
12675 hardcode_action=
12676 if test -n "$hardcode_libdir_flag_spec" ||
12677 test -n "$runpath_var" ||
12678 test yes = "$hardcode_automatic"; then
12679
12680 # We can hardcode non-existent directories.
12681 if test no != "$hardcode_direct" &&
12682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12683 # have to relink, otherwise we might link with an installed library
12684 # when we should be linking with a yet-to-be-installed one
12685 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12686 test no != "$hardcode_minus_L"; then
12687 # Linking always hardcodes the temporary library directory.
12688 hardcode_action=relink
12689 else
12690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12691 hardcode_action=immediate
12692 fi
12693 else
12694 # We cannot hardcode anything, or else we can only hardcode existing
12695 # directories.
12696 hardcode_action=unsupported
12697 fi
12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12699 printf "%s\n" "$hardcode_action" >&6; }
12700
12701 if test relink = "$hardcode_action" ||
12702 test yes = "$inherit_rpath"; then
12703 # Fast installation is not supported
12704 enable_fast_install=no
12705 elif test yes = "$shlibpath_overrides_runpath" ||
12706 test no = "$enable_shared"; then
12707 # Fast installation is not necessary
12708 enable_fast_install=needless
12709 fi
12710
12711
12712
12713
12714
12715
12716 if test yes != "$enable_dlopen"; then
12717 enable_dlopen=unknown
12718 enable_dlopen_self=unknown
12719 enable_dlopen_self_static=unknown
12720 else
12721 lt_cv_dlopen=no
12722 lt_cv_dlopen_libs=
12723
12724 case $host_os in
12725 beos*)
12726 lt_cv_dlopen=load_add_on
12727 lt_cv_dlopen_libs=
12728 lt_cv_dlopen_self=yes
12729 ;;
12730
12731 mingw* | pw32* | cegcc*)
12732 lt_cv_dlopen=LoadLibrary
12733 lt_cv_dlopen_libs=
12734 ;;
12735
12736 cygwin*)
12737 lt_cv_dlopen=dlopen
12738 lt_cv_dlopen_libs=
12739 ;;
12740
12741 darwin*)
12742 # if libdl is installed we need to link against it
12743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12744 printf %s "checking for dlopen in -ldl... " >&6; }
12745 if test ${ac_cv_lib_dl_dlopen+y}
12746 then :
12747 printf %s "(cached) " >&6
12748 else $as_nop
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-ldl $LIBS"
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757 char dlopen ();
12758 int
12759 main (void)
12760 {
12761 return dlopen ();
12762 ;
12763 return 0;
12764 }
12765 _ACEOF
12766 if ac_fn_c_try_link "$LINENO"
12767 then :
12768 ac_cv_lib_dl_dlopen=yes
12769 else $as_nop
12770 ac_cv_lib_dl_dlopen=no
12771 fi
12772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12773 conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12775 fi
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12777 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12778 if test "x$ac_cv_lib_dl_dlopen" = xyes
12779 then :
12780 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12781 else $as_nop
12782
12783 lt_cv_dlopen=dyld
12784 lt_cv_dlopen_libs=
12785 lt_cv_dlopen_self=yes
12786
12787 fi
12788
12789 ;;
12790
12791 tpf*)
12792 # Don't try to run any link tests for TPF. We know it's impossible
12793 # because TPF is a cross-compiler, and we know how we open DSOs.
12794 lt_cv_dlopen=dlopen
12795 lt_cv_dlopen_libs=
12796 lt_cv_dlopen_self=no
12797 ;;
12798
12799 *)
12800 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12801 if test "x$ac_cv_func_shl_load" = xyes
12802 then :
12803 lt_cv_dlopen=shl_load
12804 else $as_nop
12805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12806 printf %s "checking for shl_load in -ldld... " >&6; }
12807 if test ${ac_cv_lib_dld_shl_load+y}
12808 then :
12809 printf %s "(cached) " >&6
12810 else $as_nop
12811 ac_check_lib_save_LIBS=$LIBS
12812 LIBS="-ldld $LIBS"
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12815
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12819 char shl_load ();
12820 int
12821 main (void)
12822 {
12823 return shl_load ();
12824 ;
12825 return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_c_try_link "$LINENO"
12829 then :
12830 ac_cv_lib_dld_shl_load=yes
12831 else $as_nop
12832 ac_cv_lib_dld_shl_load=no
12833 fi
12834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12835 conftest$ac_exeext conftest.$ac_ext
12836 LIBS=$ac_check_lib_save_LIBS
12837 fi
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12839 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12840 if test "x$ac_cv_lib_dld_shl_load" = xyes
12841 then :
12842 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12843 else $as_nop
12844 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12845 if test "x$ac_cv_func_dlopen" = xyes
12846 then :
12847 lt_cv_dlopen=dlopen
12848 else $as_nop
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12850 printf %s "checking for dlopen in -ldl... " >&6; }
12851 if test ${ac_cv_lib_dl_dlopen+y}
12852 then :
12853 printf %s "(cached) " >&6
12854 else $as_nop
12855 ac_check_lib_save_LIBS=$LIBS
12856 LIBS="-ldl $LIBS"
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12859
12860 /* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12863 char dlopen ();
12864 int
12865 main (void)
12866 {
12867 return dlopen ();
12868 ;
12869 return 0;
12870 }
12871 _ACEOF
12872 if ac_fn_c_try_link "$LINENO"
12873 then :
12874 ac_cv_lib_dl_dlopen=yes
12875 else $as_nop
12876 ac_cv_lib_dl_dlopen=no
12877 fi
12878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12881 fi
12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12883 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12884 if test "x$ac_cv_lib_dl_dlopen" = xyes
12885 then :
12886 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12887 else $as_nop
12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12889 printf %s "checking for dlopen in -lsvld... " >&6; }
12890 if test ${ac_cv_lib_svld_dlopen+y}
12891 then :
12892 printf %s "(cached) " >&6
12893 else $as_nop
12894 ac_check_lib_save_LIBS=$LIBS
12895 LIBS="-lsvld $LIBS"
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12902 char dlopen ();
12903 int
12904 main (void)
12905 {
12906 return dlopen ();
12907 ;
12908 return 0;
12909 }
12910 _ACEOF
12911 if ac_fn_c_try_link "$LINENO"
12912 then :
12913 ac_cv_lib_svld_dlopen=yes
12914 else $as_nop
12915 ac_cv_lib_svld_dlopen=no
12916 fi
12917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12918 conftest$ac_exeext conftest.$ac_ext
12919 LIBS=$ac_check_lib_save_LIBS
12920 fi
12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12922 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12923 if test "x$ac_cv_lib_svld_dlopen" = xyes
12924 then :
12925 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12926 else $as_nop
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12928 printf %s "checking for dld_link in -ldld... " >&6; }
12929 if test ${ac_cv_lib_dld_dld_link+y}
12930 then :
12931 printf %s "(cached) " >&6
12932 else $as_nop
12933 ac_check_lib_save_LIBS=$LIBS
12934 LIBS="-ldld $LIBS"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12941 char dld_link ();
12942 int
12943 main (void)
12944 {
12945 return dld_link ();
12946 ;
12947 return 0;
12948 }
12949 _ACEOF
12950 if ac_fn_c_try_link "$LINENO"
12951 then :
12952 ac_cv_lib_dld_dld_link=yes
12953 else $as_nop
12954 ac_cv_lib_dld_dld_link=no
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_lib_save_LIBS
12959 fi
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12961 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12962 if test "x$ac_cv_lib_dld_dld_link" = xyes
12963 then :
12964 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12965 fi
12966
12967
12968 fi
12969
12970
12971 fi
12972
12973
12974 fi
12975
12976
12977 fi
12978
12979
12980 fi
12981
12982 ;;
12983 esac
12984
12985 if test no = "$lt_cv_dlopen"; then
12986 enable_dlopen=no
12987 else
12988 enable_dlopen=yes
12989 fi
12990
12991 case $lt_cv_dlopen in
12992 dlopen)
12993 save_CPPFLAGS=$CPPFLAGS
12994 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12995
12996 save_LDFLAGS=$LDFLAGS
12997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12998
12999 save_LIBS=$LIBS
13000 LIBS="$lt_cv_dlopen_libs $LIBS"
13001
13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13003 printf %s "checking whether a program can dlopen itself... " >&6; }
13004 if test ${lt_cv_dlopen_self+y}
13005 then :
13006 printf %s "(cached) " >&6
13007 else $as_nop
13008 if test yes = "$cross_compiling"; then :
13009 lt_cv_dlopen_self=cross
13010 else
13011 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13012 lt_status=$lt_dlunknown
13013 cat > conftest.$ac_ext <<_LT_EOF
13014 #line $LINENO "configure"
13015 #include "confdefs.h"
13016
13017 #if HAVE_DLFCN_H
13018 #include <dlfcn.h>
13019 #endif
13020
13021 #include <stdio.h>
13022
13023 #ifdef RTLD_GLOBAL
13024 # define LT_DLGLOBAL RTLD_GLOBAL
13025 #else
13026 # ifdef DL_GLOBAL
13027 # define LT_DLGLOBAL DL_GLOBAL
13028 # else
13029 # define LT_DLGLOBAL 0
13030 # endif
13031 #endif
13032
13033 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13034 find out it does not work in some platform. */
13035 #ifndef LT_DLLAZY_OR_NOW
13036 # ifdef RTLD_LAZY
13037 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13038 # else
13039 # ifdef DL_LAZY
13040 # define LT_DLLAZY_OR_NOW DL_LAZY
13041 # else
13042 # ifdef RTLD_NOW
13043 # define LT_DLLAZY_OR_NOW RTLD_NOW
13044 # else
13045 # ifdef DL_NOW
13046 # define LT_DLLAZY_OR_NOW DL_NOW
13047 # else
13048 # define LT_DLLAZY_OR_NOW 0
13049 # endif
13050 # endif
13051 # endif
13052 # endif
13053 #endif
13054
13055 /* When -fvisibility=hidden is used, assume the code has been annotated
13056 correspondingly for the symbols needed. */
13057 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13058 int fnord () __attribute__((visibility("default")));
13059 #endif
13060
13061 int fnord () { return 42; }
13062 int main ()
13063 {
13064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13065 int status = $lt_dlunknown;
13066
13067 if (self)
13068 {
13069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13070 else
13071 {
13072 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13073 else puts (dlerror ());
13074 }
13075 /* dlclose (self); */
13076 }
13077 else
13078 puts (dlerror ());
13079
13080 return status;
13081 }
13082 _LT_EOF
13083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13084 (eval $ac_link) 2>&5
13085 ac_status=$?
13086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13087 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13088 (./conftest; exit; ) >&5 2>/dev/null
13089 lt_status=$?
13090 case x$lt_status in
13091 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13092 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13093 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13094 esac
13095 else :
13096 # compilation failed
13097 lt_cv_dlopen_self=no
13098 fi
13099 fi
13100 rm -fr conftest*
13101
13102
13103 fi
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13105 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13106
13107 if test yes = "$lt_cv_dlopen_self"; then
13108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13110 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13111 if test ${lt_cv_dlopen_self_static+y}
13112 then :
13113 printf %s "(cached) " >&6
13114 else $as_nop
13115 if test yes = "$cross_compiling"; then :
13116 lt_cv_dlopen_self_static=cross
13117 else
13118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13119 lt_status=$lt_dlunknown
13120 cat > conftest.$ac_ext <<_LT_EOF
13121 #line $LINENO "configure"
13122 #include "confdefs.h"
13123
13124 #if HAVE_DLFCN_H
13125 #include <dlfcn.h>
13126 #endif
13127
13128 #include <stdio.h>
13129
13130 #ifdef RTLD_GLOBAL
13131 # define LT_DLGLOBAL RTLD_GLOBAL
13132 #else
13133 # ifdef DL_GLOBAL
13134 # define LT_DLGLOBAL DL_GLOBAL
13135 # else
13136 # define LT_DLGLOBAL 0
13137 # endif
13138 #endif
13139
13140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13141 find out it does not work in some platform. */
13142 #ifndef LT_DLLAZY_OR_NOW
13143 # ifdef RTLD_LAZY
13144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13145 # else
13146 # ifdef DL_LAZY
13147 # define LT_DLLAZY_OR_NOW DL_LAZY
13148 # else
13149 # ifdef RTLD_NOW
13150 # define LT_DLLAZY_OR_NOW RTLD_NOW
13151 # else
13152 # ifdef DL_NOW
13153 # define LT_DLLAZY_OR_NOW DL_NOW
13154 # else
13155 # define LT_DLLAZY_OR_NOW 0
13156 # endif
13157 # endif
13158 # endif
13159 # endif
13160 #endif
13161
13162 /* When -fvisibility=hidden is used, assume the code has been annotated
13163 correspondingly for the symbols needed. */
13164 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13165 int fnord () __attribute__((visibility("default")));
13166 #endif
13167
13168 int fnord () { return 42; }
13169 int main ()
13170 {
13171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13172 int status = $lt_dlunknown;
13173
13174 if (self)
13175 {
13176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13177 else
13178 {
13179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13180 else puts (dlerror ());
13181 }
13182 /* dlclose (self); */
13183 }
13184 else
13185 puts (dlerror ());
13186
13187 return status;
13188 }
13189 _LT_EOF
13190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13191 (eval $ac_link) 2>&5
13192 ac_status=$?
13193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13194 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13195 (./conftest; exit; ) >&5 2>/dev/null
13196 lt_status=$?
13197 case x$lt_status in
13198 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13199 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13200 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13201 esac
13202 else :
13203 # compilation failed
13204 lt_cv_dlopen_self_static=no
13205 fi
13206 fi
13207 rm -fr conftest*
13208
13209
13210 fi
13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13212 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13213 fi
13214
13215 CPPFLAGS=$save_CPPFLAGS
13216 LDFLAGS=$save_LDFLAGS
13217 LIBS=$save_LIBS
13218 ;;
13219 esac
13220
13221 case $lt_cv_dlopen_self in
13222 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13223 *) enable_dlopen_self=unknown ;;
13224 esac
13225
13226 case $lt_cv_dlopen_self_static in
13227 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13228 *) enable_dlopen_self_static=unknown ;;
13229 esac
13230 fi
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248 striplib=
13249 old_striplib=
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13251 printf %s "checking whether stripping libraries is possible... " >&6; }
13252 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13253 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13254 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256 printf "%s\n" "yes" >&6; }
13257 else
13258 # FIXME - insert some real tests, host_os isn't really good enough
13259 case $host_os in
13260 darwin*)
13261 if test -n "$STRIP"; then
13262 striplib="$STRIP -x"
13263 old_striplib="$STRIP -S"
13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13265 printf "%s\n" "yes" >&6; }
13266 else
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 printf "%s\n" "no" >&6; }
13269 fi
13270 ;;
13271 *)
13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273 printf "%s\n" "no" >&6; }
13274 ;;
13275 esac
13276 fi
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289 # Report what library types will actually be built
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13291 printf %s "checking if libtool supports shared libraries... " >&6; }
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13293 printf "%s\n" "$can_build_shared" >&6; }
13294
13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13296 printf %s "checking whether to build shared libraries... " >&6; }
13297 test no = "$can_build_shared" && enable_shared=no
13298
13299 # On AIX, shared libraries and static libraries use the same namespace, and
13300 # are all built from PIC.
13301 case $host_os in
13302 aix3*)
13303 test yes = "$enable_shared" && enable_static=no
13304 if test -n "$RANLIB"; then
13305 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13306 postinstall_cmds='$RANLIB $lib'
13307 fi
13308 ;;
13309
13310 aix[4-9]*)
13311 if test ia64 != "$host_cpu"; then
13312 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13313 yes,aix,yes) ;; # shared object as lib.so file only
13314 yes,svr4,*) ;; # shared object as lib.so archive member only
13315 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13316 esac
13317 fi
13318 ;;
13319 esac
13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13321 printf "%s\n" "$enable_shared" >&6; }
13322
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13324 printf %s "checking whether to build static libraries... " >&6; }
13325 # Make sure either enable_shared or enable_static is yes.
13326 test yes = "$enable_shared" || enable_static=yes
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13328 printf "%s\n" "$enable_static" >&6; }
13329
13330
13331
13332
13333 fi
13334 ac_ext=cpp
13335 ac_cpp='$CXXCPP $CPPFLAGS'
13336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13339
13340 CC=$lt_save_CC
13341
13342 if test -n "$CXX" && ( test no != "$CXX" &&
13343 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13344 (test g++ != "$CXX"))); then
13345 ac_ext=cpp
13346 ac_cpp='$CXXCPP $CPPFLAGS'
13347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13351 printf %s "checking how to run the C++ preprocessor... " >&6; }
13352 if test -z "$CXXCPP"; then
13353 if test ${ac_cv_prog_CXXCPP+y}
13354 then :
13355 printf %s "(cached) " >&6
13356 else $as_nop
13357 # Double quotes because $CXX needs to be expanded
13358 for CXXCPP in "$CXX -E" cpp /lib/cpp
13359 do
13360 ac_preproc_ok=false
13361 for ac_cxx_preproc_warn_flag in '' yes
13362 do
13363 # Use a header file that comes with gcc, so configuring glibc
13364 # with a fresh cross-compiler works.
13365 # On the NeXT, cc -E runs the code through the compiler's parser,
13366 # not just through cpp. "Syntax error" is here to catch this case.
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 #include <limits.h>
13370 Syntax error
13371 _ACEOF
13372 if ac_fn_cxx_try_cpp "$LINENO"
13373 then :
13374
13375 else $as_nop
13376 # Broken: fails on valid input.
13377 continue
13378 fi
13379 rm -f conftest.err conftest.i conftest.$ac_ext
13380
13381 # OK, works on sane cases. Now check whether nonexistent headers
13382 # can be detected and how.
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 #include <ac_nonexistent.h>
13386 _ACEOF
13387 if ac_fn_cxx_try_cpp "$LINENO"
13388 then :
13389 # Broken: success on invalid input.
13390 continue
13391 else $as_nop
13392 # Passes both tests.
13393 ac_preproc_ok=:
13394 break
13395 fi
13396 rm -f conftest.err conftest.i conftest.$ac_ext
13397
13398 done
13399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13400 rm -f conftest.i conftest.err conftest.$ac_ext
13401 if $ac_preproc_ok
13402 then :
13403 break
13404 fi
13405
13406 done
13407 ac_cv_prog_CXXCPP=$CXXCPP
13408
13409 fi
13410 CXXCPP=$ac_cv_prog_CXXCPP
13411 else
13412 ac_cv_prog_CXXCPP=$CXXCPP
13413 fi
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13415 printf "%s\n" "$CXXCPP" >&6; }
13416 ac_preproc_ok=false
13417 for ac_cxx_preproc_warn_flag in '' yes
13418 do
13419 # Use a header file that comes with gcc, so configuring glibc
13420 # with a fresh cross-compiler works.
13421 # On the NeXT, cc -E runs the code through the compiler's parser,
13422 # not just through cpp. "Syntax error" is here to catch this case.
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 #include <limits.h>
13426 Syntax error
13427 _ACEOF
13428 if ac_fn_cxx_try_cpp "$LINENO"
13429 then :
13430
13431 else $as_nop
13432 # Broken: fails on valid input.
13433 continue
13434 fi
13435 rm -f conftest.err conftest.i conftest.$ac_ext
13436
13437 # OK, works on sane cases. Now check whether nonexistent headers
13438 # can be detected and how.
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441 #include <ac_nonexistent.h>
13442 _ACEOF
13443 if ac_fn_cxx_try_cpp "$LINENO"
13444 then :
13445 # Broken: success on invalid input.
13446 continue
13447 else $as_nop
13448 # Passes both tests.
13449 ac_preproc_ok=:
13450 break
13451 fi
13452 rm -f conftest.err conftest.i conftest.$ac_ext
13453
13454 done
13455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13456 rm -f conftest.i conftest.err conftest.$ac_ext
13457 if $ac_preproc_ok
13458 then :
13459
13460 else $as_nop
13461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13462 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13463 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13464 See \`config.log' for more details" "$LINENO" 5; }
13465 fi
13466
13467 ac_ext=cpp
13468 ac_cpp='$CXXCPP $CPPFLAGS'
13469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13472
13473 else
13474 _lt_caught_CXX_error=yes
13475 fi
13476
13477 ac_ext=cpp
13478 ac_cpp='$CXXCPP $CPPFLAGS'
13479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13482
13483 archive_cmds_need_lc_CXX=no
13484 allow_undefined_flag_CXX=
13485 always_export_symbols_CXX=no
13486 archive_expsym_cmds_CXX=
13487 compiler_needs_object_CXX=no
13488 export_dynamic_flag_spec_CXX=
13489 hardcode_direct_CXX=no
13490 hardcode_direct_absolute_CXX=no
13491 hardcode_libdir_flag_spec_CXX=
13492 hardcode_libdir_separator_CXX=
13493 hardcode_minus_L_CXX=no
13494 hardcode_shlibpath_var_CXX=unsupported
13495 hardcode_automatic_CXX=no
13496 inherit_rpath_CXX=no
13497 module_cmds_CXX=
13498 module_expsym_cmds_CXX=
13499 link_all_deplibs_CXX=unknown
13500 old_archive_cmds_CXX=$old_archive_cmds
13501 reload_flag_CXX=$reload_flag
13502 reload_cmds_CXX=$reload_cmds
13503 no_undefined_flag_CXX=
13504 whole_archive_flag_spec_CXX=
13505 enable_shared_with_static_runtimes_CXX=no
13506
13507 # Source file extension for C++ test sources.
13508 ac_ext=cpp
13509
13510 # Object file extension for compiled C++ test sources.
13511 objext=o
13512 objext_CXX=$objext
13513
13514 # No sense in running all these tests if we already determined that
13515 # the CXX compiler isn't working. Some variables (like enable_shared)
13516 # are currently assumed to apply to all compilers on this platform,
13517 # and will be corrupted by setting them based on a non-working compiler.
13518 if test yes != "$_lt_caught_CXX_error"; then
13519 # Code to be used in simple compile tests
13520 lt_simple_compile_test_code="int some_variable = 0;"
13521
13522 # Code to be used in simple link tests
13523 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13524
13525 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13526
13527
13528
13529
13530
13531
13532 # If no C compiler was specified, use CC.
13533 LTCC=${LTCC-"$CC"}
13534
13535 # If no C compiler flags were specified, use CFLAGS.
13536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13537
13538 # Allow CC to be a program name with arguments.
13539 compiler=$CC
13540
13541
13542 # save warnings/boilerplate of simple test code
13543 ac_outfile=conftest.$ac_objext
13544 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13546 _lt_compiler_boilerplate=`cat conftest.err`
13547 $RM conftest*
13548
13549 ac_outfile=conftest.$ac_objext
13550 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13552 _lt_linker_boilerplate=`cat conftest.err`
13553 $RM -r conftest*
13554
13555
13556 # Allow CC to be a program name with arguments.
13557 lt_save_CC=$CC
13558 lt_save_CFLAGS=$CFLAGS
13559 lt_save_LD=$LD
13560 lt_save_GCC=$GCC
13561 GCC=$GXX
13562 lt_save_with_gnu_ld=$with_gnu_ld
13563 lt_save_path_LD=$lt_cv_path_LD
13564 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13565 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13566 else
13567 $as_unset lt_cv_prog_gnu_ld
13568 fi
13569 if test -n "${lt_cv_path_LDCXX+set}"; then
13570 lt_cv_path_LD=$lt_cv_path_LDCXX
13571 else
13572 $as_unset lt_cv_path_LD
13573 fi
13574 test -z "${LDCXX+set}" || LD=$LDCXX
13575 CC=${CXX-"c++"}
13576 CFLAGS=$CXXFLAGS
13577 compiler=$CC
13578 compiler_CXX=$CC
13579 func_cc_basename $compiler
13580 cc_basename=$func_cc_basename_result
13581
13582
13583 if test -n "$compiler"; then
13584 # We don't want -fno-exception when compiling C++ code, so set the
13585 # no_builtin_flag separately
13586 if test yes = "$GXX"; then
13587 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13588 else
13589 lt_prog_compiler_no_builtin_flag_CXX=
13590 fi
13591
13592 if test yes = "$GXX"; then
13593 # Set up default GNU C++ configuration
13594
13595
13596
13597 # Check whether --with-gnu-ld was given.
13598 if test ${with_gnu_ld+y}
13599 then :
13600 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13601 else $as_nop
13602 with_gnu_ld=no
13603 fi
13604
13605 ac_prog=ld
13606 if test yes = "$GCC"; then
13607 # Check if gcc -print-prog-name=ld gives a path.
13608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13609 printf %s "checking for ld used by $CC... " >&6; }
13610 case $host in
13611 *-*-mingw*)
13612 # gcc leaves a trailing carriage return, which upsets mingw
13613 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13614 *)
13615 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13616 esac
13617 case $ac_prog in
13618 # Accept absolute paths.
13619 [\\/]* | ?:[\\/]*)
13620 re_direlt='/[^/][^/]*/\.\./'
13621 # Canonicalize the pathname of ld
13622 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13623 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13624 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13625 done
13626 test -z "$LD" && LD=$ac_prog
13627 ;;
13628 "")
13629 # If it fails, then pretend we aren't using GCC.
13630 ac_prog=ld
13631 ;;
13632 *)
13633 # If it is relative, then search for the first ld in PATH.
13634 with_gnu_ld=unknown
13635 ;;
13636 esac
13637 elif test yes = "$with_gnu_ld"; then
13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13639 printf %s "checking for GNU ld... " >&6; }
13640 else
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13642 printf %s "checking for non-GNU ld... " >&6; }
13643 fi
13644 if test ${lt_cv_path_LD+y}
13645 then :
13646 printf %s "(cached) " >&6
13647 else $as_nop
13648 if test -z "$LD"; then
13649 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13650 for ac_dir in $PATH; do
13651 IFS=$lt_save_ifs
13652 test -z "$ac_dir" && ac_dir=.
13653 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13654 lt_cv_path_LD=$ac_dir/$ac_prog
13655 # Check to see if the program is GNU ld. I'd rather use --version,
13656 # but apparently some variants of GNU ld only accept -v.
13657 # Break only if it was the GNU/non-GNU ld that we prefer.
13658 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13659 *GNU* | *'with BFD'*)
13660 test no != "$with_gnu_ld" && break
13661 ;;
13662 *)
13663 test yes != "$with_gnu_ld" && break
13664 ;;
13665 esac
13666 fi
13667 done
13668 IFS=$lt_save_ifs
13669 else
13670 lt_cv_path_LD=$LD # Let the user override the test with a path.
13671 fi
13672 fi
13673
13674 LD=$lt_cv_path_LD
13675 if test -n "$LD"; then
13676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13677 printf "%s\n" "$LD" >&6; }
13678 else
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13680 printf "%s\n" "no" >&6; }
13681 fi
13682 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13684 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13685 if test ${lt_cv_prog_gnu_ld+y}
13686 then :
13687 printf %s "(cached) " >&6
13688 else $as_nop
13689 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13690 case `$LD -v 2>&1 </dev/null` in
13691 *GNU* | *'with BFD'*)
13692 lt_cv_prog_gnu_ld=yes
13693 ;;
13694 *)
13695 lt_cv_prog_gnu_ld=no
13696 ;;
13697 esac
13698 fi
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13700 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
13701 with_gnu_ld=$lt_cv_prog_gnu_ld
13702
13703
13704
13705
13706
13707
13708
13709 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13710 # archiving commands below assume that GNU ld is being used.
13711 if test yes = "$with_gnu_ld"; then
13712 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13713 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'
13714
13715 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13716 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13717
13718 # If archive_cmds runs LD, not CC, wlarc should be empty
13719 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13720 # investigate it a little bit more. (MM)
13721 wlarc='$wl'
13722
13723 # ancient GNU ld didn't support --whole-archive et. al.
13724 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13725 $GREP 'no-whole-archive' > /dev/null; then
13726 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13727 else
13728 whole_archive_flag_spec_CXX=
13729 fi
13730 else
13731 with_gnu_ld=no
13732 wlarc=
13733
13734 # A generic and very simple default shared library creation
13735 # command for GNU C++ for the case where it uses the native
13736 # linker, instead of GNU ld. If possible, this setting should
13737 # overridden to take advantage of the native linker features on
13738 # the platform it is being used on.
13739 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13740 fi
13741
13742 # Commands to make compiler produce verbose output that lists
13743 # what "hidden" libraries, object files and flags are used when
13744 # linking a shared library.
13745 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13746
13747 else
13748 GXX=no
13749 with_gnu_ld=no
13750 wlarc=
13751 fi
13752
13753 # PORTME: fill in a description of your system's C++ link characteristics
13754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13755 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13756 ld_shlibs_CXX=yes
13757 case $host_os in
13758 aix3*)
13759 # FIXME: insert proper C++ library support
13760 ld_shlibs_CXX=no
13761 ;;
13762 aix[4-9]*)
13763 if test ia64 = "$host_cpu"; then
13764 # On IA64, the linker does run time linking by default, so we don't
13765 # have to do anything special.
13766 aix_use_runtimelinking=no
13767 exp_sym_flag='-Bexport'
13768 no_entry_flag=
13769 else
13770 aix_use_runtimelinking=no
13771
13772 # Test if we are trying to use run time linking or normal
13773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13774 # have runtime linking enabled, and use it for executables.
13775 # For shared libraries, we enable/disable runtime linking
13776 # depending on the kind of the shared library created -
13777 # when "with_aix_soname,aix_use_runtimelinking" is:
13778 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13779 # "aix,yes" lib.so shared, rtl:yes, for executables
13780 # lib.a static archive
13781 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13782 # lib.a(lib.so.V) shared, rtl:no, for executables
13783 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13784 # lib.a(lib.so.V) shared, rtl:no
13785 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13786 # lib.a static archive
13787 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13788 for ld_flag in $LDFLAGS; do
13789 case $ld_flag in
13790 *-brtl*)
13791 aix_use_runtimelinking=yes
13792 break
13793 ;;
13794 esac
13795 done
13796 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13797 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13798 # so we don't have lib.a shared libs to link our executables.
13799 # We have to force runtime linking in this case.
13800 aix_use_runtimelinking=yes
13801 LDFLAGS="$LDFLAGS -Wl,-brtl"
13802 fi
13803 ;;
13804 esac
13805
13806 exp_sym_flag='-bexport'
13807 no_entry_flag='-bnoentry'
13808 fi
13809
13810 # When large executables or shared objects are built, AIX ld can
13811 # have problems creating the table of contents. If linking a library
13812 # or program results in "error TOC overflow" add -mminimal-toc to
13813 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13814 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13815
13816 archive_cmds_CXX=''
13817 hardcode_direct_CXX=yes
13818 hardcode_direct_absolute_CXX=yes
13819 hardcode_libdir_separator_CXX=':'
13820 link_all_deplibs_CXX=yes
13821 file_list_spec_CXX='$wl-f,'
13822 case $with_aix_soname,$aix_use_runtimelinking in
13823 aix,*) ;; # no import file
13824 svr4,* | *,yes) # use import file
13825 # The Import File defines what to hardcode.
13826 hardcode_direct_CXX=no
13827 hardcode_direct_absolute_CXX=no
13828 ;;
13829 esac
13830
13831 if test yes = "$GXX"; then
13832 case $host_os in aix4.[012]|aix4.[012].*)
13833 # We only want to do this on AIX 4.2 and lower, the check
13834 # below for broken collect2 doesn't work under 4.3+
13835 collect2name=`$CC -print-prog-name=collect2`
13836 if test -f "$collect2name" &&
13837 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13838 then
13839 # We have reworked collect2
13840 :
13841 else
13842 # We have old collect2
13843 hardcode_direct_CXX=unsupported
13844 # It fails to find uninstalled libraries when the uninstalled
13845 # path is not listed in the libpath. Setting hardcode_minus_L
13846 # to unsupported forces relinking
13847 hardcode_minus_L_CXX=yes
13848 hardcode_libdir_flag_spec_CXX='-L$libdir'
13849 hardcode_libdir_separator_CXX=
13850 fi
13851 esac
13852 shared_flag='-shared'
13853 if test yes = "$aix_use_runtimelinking"; then
13854 shared_flag=$shared_flag' $wl-G'
13855 fi
13856 # Need to ensure runtime linking is disabled for the traditional
13857 # shared library, or the linker may eventually find shared libraries
13858 # /with/ Import File - we do not want to mix them.
13859 shared_flag_aix='-shared'
13860 shared_flag_svr4='-shared $wl-G'
13861 else
13862 # not using gcc
13863 if test ia64 = "$host_cpu"; then
13864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13865 # chokes on -Wl,-G. The following line is correct:
13866 shared_flag='-G'
13867 else
13868 if test yes = "$aix_use_runtimelinking"; then
13869 shared_flag='$wl-G'
13870 else
13871 shared_flag='$wl-bM:SRE'
13872 fi
13873 shared_flag_aix='$wl-bM:SRE'
13874 shared_flag_svr4='$wl-G'
13875 fi
13876 fi
13877
13878 export_dynamic_flag_spec_CXX='$wl-bexpall'
13879 # It seems that -bexpall does not export symbols beginning with
13880 # underscore (_), so it is better to generate a list of symbols to
13881 # export.
13882 always_export_symbols_CXX=yes
13883 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13884 # Warning - without using the other runtime loading flags (-brtl),
13885 # -berok will link without error, but may produce a broken library.
13886 # The "-G" linker flag allows undefined symbols.
13887 no_undefined_flag_CXX='-bernotok'
13888 # Determine the default libpath from the value encoded in an empty
13889 # executable.
13890 if test set = "${lt_cv_aix_libpath+set}"; then
13891 aix_libpath=$lt_cv_aix_libpath
13892 else
13893 if test ${lt_cv_aix_libpath__CXX+y}
13894 then :
13895 printf %s "(cached) " >&6
13896 else $as_nop
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899
13900 int
13901 main (void)
13902 {
13903
13904 ;
13905 return 0;
13906 }
13907 _ACEOF
13908 if ac_fn_cxx_try_link "$LINENO"
13909 then :
13910
13911 lt_aix_libpath_sed='
13912 /Import File Strings/,/^$/ {
13913 /^0/ {
13914 s/^0 *\([^ ]*\) *$/\1/
13915 p
13916 }
13917 }'
13918 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13919 # Check for a 64-bit object if we didn't find anything.
13920 if test -z "$lt_cv_aix_libpath__CXX"; then
13921 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13922 fi
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13925 conftest$ac_exeext conftest.$ac_ext
13926 if test -z "$lt_cv_aix_libpath__CXX"; then
13927 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13928 fi
13929
13930 fi
13931
13932 aix_libpath=$lt_cv_aix_libpath__CXX
13933 fi
13934
13935 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13936
13937 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
13938 else
13939 if test ia64 = "$host_cpu"; then
13940 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13941 allow_undefined_flag_CXX="-z nodefs"
13942 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"
13943 else
13944 # Determine the default libpath from the value encoded in an
13945 # empty executable.
13946 if test set = "${lt_cv_aix_libpath+set}"; then
13947 aix_libpath=$lt_cv_aix_libpath
13948 else
13949 if test ${lt_cv_aix_libpath__CXX+y}
13950 then :
13951 printf %s "(cached) " >&6
13952 else $as_nop
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955
13956 int
13957 main (void)
13958 {
13959
13960 ;
13961 return 0;
13962 }
13963 _ACEOF
13964 if ac_fn_cxx_try_link "$LINENO"
13965 then :
13966
13967 lt_aix_libpath_sed='
13968 /Import File Strings/,/^$/ {
13969 /^0/ {
13970 s/^0 *\([^ ]*\) *$/\1/
13971 p
13972 }
13973 }'
13974 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13975 # Check for a 64-bit object if we didn't find anything.
13976 if test -z "$lt_cv_aix_libpath__CXX"; then
13977 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13978 fi
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13981 conftest$ac_exeext conftest.$ac_ext
13982 if test -z "$lt_cv_aix_libpath__CXX"; then
13983 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13984 fi
13985
13986 fi
13987
13988 aix_libpath=$lt_cv_aix_libpath__CXX
13989 fi
13990
13991 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13992 # Warning - without using the other run time loading flags,
13993 # -berok will link without error, but may produce a broken library.
13994 no_undefined_flag_CXX=' $wl-bernotok'
13995 allow_undefined_flag_CXX=' $wl-berok'
13996 if test yes = "$with_gnu_ld"; then
13997 # We only use this code for GNU lds that support --whole-archive.
13998 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13999 else
14000 # Exported symbols can be pulled into shared objects from archives
14001 whole_archive_flag_spec_CXX='$convenience'
14002 fi
14003 archive_cmds_need_lc_CXX=yes
14004 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14005 # -brtl affects multiple linker settings, -berok does not and is overridden later
14006 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14007 if test svr4 != "$with_aix_soname"; then
14008 # This is similar to how AIX traditionally builds its shared
14009 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14010 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'
14011 fi
14012 if test aix != "$with_aix_soname"; then
14013 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'
14014 else
14015 # used by -dlpreopen to get the symbols
14016 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14017 fi
14018 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14019 fi
14020 fi
14021 ;;
14022
14023 beos*)
14024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14025 allow_undefined_flag_CXX=unsupported
14026 # Joseph Beckenbach <[email protected]> says some releases of gcc
14027 # support --undefined. This deserves some investigation. FIXME
14028 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14029 else
14030 ld_shlibs_CXX=no
14031 fi
14032 ;;
14033
14034 chorus*)
14035 case $cc_basename in
14036 *)
14037 # FIXME: insert proper C++ library support
14038 ld_shlibs_CXX=no
14039 ;;
14040 esac
14041 ;;
14042
14043 cygwin* | mingw* | pw32* | cegcc*)
14044 case $GXX,$cc_basename in
14045 ,cl* | no,cl*)
14046 # Native MSVC
14047 # hardcode_libdir_flag_spec is actually meaningless, as there is
14048 # no search path for DLLs.
14049 hardcode_libdir_flag_spec_CXX=' '
14050 allow_undefined_flag_CXX=unsupported
14051 always_export_symbols_CXX=yes
14052 file_list_spec_CXX='@'
14053 # Tell ltmain to make .lib files, not .a files.
14054 libext=lib
14055 # Tell ltmain to make .dll files, not .so files.
14056 shrext_cmds=.dll
14057 # FIXME: Setting linknames here is a bad hack.
14058 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14059 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14060 cp "$export_symbols" "$output_objdir/$soname.def";
14061 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14062 else
14063 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14064 fi~
14065 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14066 linknames='
14067 # The linker will not automatically build a static lib if we build a DLL.
14068 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14069 enable_shared_with_static_runtimes_CXX=yes
14070 # Don't use ranlib
14071 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14072 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14073 lt_tool_outputfile="@TOOL_OUTPUT@"~
14074 case $lt_outputfile in
14075 *.exe|*.EXE) ;;
14076 *)
14077 lt_outputfile=$lt_outputfile.exe
14078 lt_tool_outputfile=$lt_tool_outputfile.exe
14079 ;;
14080 esac~
14081 func_to_tool_file "$lt_outputfile"~
14082 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14084 $RM "$lt_outputfile.manifest";
14085 fi'
14086 ;;
14087 *)
14088 # g++
14089 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14090 # as there is no search path for DLLs.
14091 hardcode_libdir_flag_spec_CXX='-L$libdir'
14092 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14093 allow_undefined_flag_CXX=unsupported
14094 always_export_symbols_CXX=no
14095 enable_shared_with_static_runtimes_CXX=yes
14096
14097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14098 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'
14099 # If the export-symbols file already is a .def file, use it as
14100 # is; otherwise, prepend EXPORTS...
14101 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14102 cp $export_symbols $output_objdir/$soname.def;
14103 else
14104 echo EXPORTS > $output_objdir/$soname.def;
14105 cat $export_symbols >> $output_objdir/$soname.def;
14106 fi~
14107 $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'
14108 else
14109 ld_shlibs_CXX=no
14110 fi
14111 ;;
14112 esac
14113 ;;
14114 darwin* | rhapsody*)
14115
14116
14117 archive_cmds_need_lc_CXX=no
14118 hardcode_direct_CXX=no
14119 hardcode_automatic_CXX=yes
14120 hardcode_shlibpath_var_CXX=unsupported
14121 if test yes = "$lt_cv_ld_force_load"; then
14122 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\"`'
14123
14124 else
14125 whole_archive_flag_spec_CXX=''
14126 fi
14127 link_all_deplibs_CXX=yes
14128 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14129 case $cc_basename in
14130 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14131 *) _lt_dar_can_shared=$GCC ;;
14132 esac
14133 if test yes = "$_lt_dar_can_shared"; then
14134 output_verbose_link_cmd=func_echo_all
14135 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"
14136 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14137 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"
14138 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"
14139 if test yes != "$lt_cv_apple_cc_single_mod"; then
14140 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"
14141 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"
14142 fi
14143
14144 else
14145 ld_shlibs_CXX=no
14146 fi
14147
14148 ;;
14149
14150 os2*)
14151 hardcode_libdir_flag_spec_CXX='-L$libdir'
14152 hardcode_minus_L_CXX=yes
14153 allow_undefined_flag_CXX=unsupported
14154 shrext_cmds=.dll
14155 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14158 $ECHO EXPORTS >> $output_objdir/$libname.def~
14159 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14161 emximp -o $lib $output_objdir/$libname.def'
14162 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14165 $ECHO EXPORTS >> $output_objdir/$libname.def~
14166 prefix_cmds="$SED"~
14167 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14168 prefix_cmds="$prefix_cmds -e 1d";
14169 fi~
14170 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14171 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14173 emximp -o $lib $output_objdir/$libname.def'
14174 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14175 enable_shared_with_static_runtimes_CXX=yes
14176 ;;
14177
14178 dgux*)
14179 case $cc_basename in
14180 ec++*)
14181 # FIXME: insert proper C++ library support
14182 ld_shlibs_CXX=no
14183 ;;
14184 ghcx*)
14185 # Green Hills C++ Compiler
14186 # FIXME: insert proper C++ library support
14187 ld_shlibs_CXX=no
14188 ;;
14189 *)
14190 # FIXME: insert proper C++ library support
14191 ld_shlibs_CXX=no
14192 ;;
14193 esac
14194 ;;
14195
14196 freebsd2.*)
14197 # C++ shared libraries reported to be fairly broken before
14198 # switch to ELF
14199 ld_shlibs_CXX=no
14200 ;;
14201
14202 freebsd-elf*)
14203 archive_cmds_need_lc_CXX=no
14204 ;;
14205
14206 freebsd* | dragonfly*)
14207 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14208 # conventions
14209 ld_shlibs_CXX=yes
14210 ;;
14211
14212 haiku*)
14213 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14214 link_all_deplibs_CXX=yes
14215 ;;
14216
14217 hpux9*)
14218 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14219 hardcode_libdir_separator_CXX=:
14220 export_dynamic_flag_spec_CXX='$wl-E'
14221 hardcode_direct_CXX=yes
14222 hardcode_minus_L_CXX=yes # Not in the search PATH,
14223 # but as the default
14224 # location of the library.
14225
14226 case $cc_basename in
14227 CC*)
14228 # FIXME: insert proper C++ library support
14229 ld_shlibs_CXX=no
14230 ;;
14231 aCC*)
14232 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'
14233 # Commands to make compiler produce verbose output that lists
14234 # what "hidden" libraries, object files and flags are used when
14235 # linking a shared library.
14236 #
14237 # There doesn't appear to be a way to prevent this compiler from
14238 # explicitly linking system object files so we need to strip them
14239 # from the output so that they don't get included in the library
14240 # dependencies.
14241 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"'
14242 ;;
14243 *)
14244 if test yes = "$GXX"; then
14245 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'
14246 else
14247 # FIXME: insert proper C++ library support
14248 ld_shlibs_CXX=no
14249 fi
14250 ;;
14251 esac
14252 ;;
14253
14254 hpux10*|hpux11*)
14255 if test no = "$with_gnu_ld"; then
14256 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14257 hardcode_libdir_separator_CXX=:
14258
14259 case $host_cpu in
14260 hppa*64*|ia64*)
14261 ;;
14262 *)
14263 export_dynamic_flag_spec_CXX='$wl-E'
14264 ;;
14265 esac
14266 fi
14267 case $host_cpu in
14268 hppa*64*|ia64*)
14269 hardcode_direct_CXX=no
14270 hardcode_shlibpath_var_CXX=no
14271 ;;
14272 *)
14273 hardcode_direct_CXX=yes
14274 hardcode_direct_absolute_CXX=yes
14275 hardcode_minus_L_CXX=yes # Not in the search PATH,
14276 # but as the default
14277 # location of the library.
14278 ;;
14279 esac
14280
14281 case $cc_basename in
14282 CC*)
14283 # FIXME: insert proper C++ library support
14284 ld_shlibs_CXX=no
14285 ;;
14286 aCC*)
14287 case $host_cpu in
14288 hppa*64*)
14289 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14290 ;;
14291 ia64*)
14292 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14293 ;;
14294 *)
14295 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14296 ;;
14297 esac
14298 # Commands to make compiler produce verbose output that lists
14299 # what "hidden" libraries, object files and flags are used when
14300 # linking a shared library.
14301 #
14302 # There doesn't appear to be a way to prevent this compiler from
14303 # explicitly linking system object files so we need to strip them
14304 # from the output so that they don't get included in the library
14305 # dependencies.
14306 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"'
14307 ;;
14308 *)
14309 if test yes = "$GXX"; then
14310 if test no = "$with_gnu_ld"; then
14311 case $host_cpu in
14312 hppa*64*)
14313 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14314 ;;
14315 ia64*)
14316 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14317 ;;
14318 *)
14319 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'
14320 ;;
14321 esac
14322 fi
14323 else
14324 # FIXME: insert proper C++ library support
14325 ld_shlibs_CXX=no
14326 fi
14327 ;;
14328 esac
14329 ;;
14330
14331 interix[3-9]*)
14332 hardcode_direct_CXX=no
14333 hardcode_shlibpath_var_CXX=no
14334 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14335 export_dynamic_flag_spec_CXX='$wl-E'
14336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14337 # Instead, shared libraries are loaded at an image base (0x10000000 by
14338 # default) and relocated if they conflict, which is a slow very memory
14339 # consuming and fragmenting process. To avoid this, we pick a random,
14340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14342 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'
14343 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'
14344 ;;
14345 irix5* | irix6*)
14346 case $cc_basename in
14347 CC*)
14348 # SGI C++
14349 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'
14350
14351 # Archives containing C++ object files must be created using
14352 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14353 # necessary to make sure instantiated templates are included
14354 # in the archive.
14355 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14356 ;;
14357 *)
14358 if test yes = "$GXX"; then
14359 if test no = "$with_gnu_ld"; then
14360 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'
14361 else
14362 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'
14363 fi
14364 fi
14365 link_all_deplibs_CXX=yes
14366 ;;
14367 esac
14368 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14369 hardcode_libdir_separator_CXX=:
14370 inherit_rpath_CXX=yes
14371 ;;
14372
14373 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14374 case $cc_basename in
14375 KCC*)
14376 # Kuck and Associates, Inc. (KAI) C++ Compiler
14377
14378 # KCC will only create a shared library if the output file
14379 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14380 # to its proper name (with version) after linking.
14381 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'
14382 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'
14383 # Commands to make compiler produce verbose output that lists
14384 # what "hidden" libraries, object files and flags are used when
14385 # linking a shared library.
14386 #
14387 # There doesn't appear to be a way to prevent this compiler from
14388 # explicitly linking system object files so we need to strip them
14389 # from the output so that they don't get included in the library
14390 # dependencies.
14391 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"'
14392
14393 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14394 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14395
14396 # Archives containing C++ object files must be created using
14397 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14398 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14399 ;;
14400 icpc* | ecpc* )
14401 # Intel C++
14402 with_gnu_ld=yes
14403 # version 8.0 and above of icpc choke on multiply defined symbols
14404 # if we add $predep_objects and $postdep_objects, however 7.1 and
14405 # earlier do not add the objects themselves.
14406 case `$CC -V 2>&1` in
14407 *"Version 7."*)
14408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14409 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'
14410 ;;
14411 *) # Version 8.0 or newer
14412 tmp_idyn=
14413 case $host_cpu in
14414 ia64*) tmp_idyn=' -i_dynamic';;
14415 esac
14416 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14417 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'
14418 ;;
14419 esac
14420 archive_cmds_need_lc_CXX=no
14421 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14422 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14423 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14424 ;;
14425 pgCC* | pgcpp*)
14426 # Portland Group C++ compiler
14427 case `$CC -V` in
14428 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14429 prelink_cmds_CXX='tpldir=Template.dir~
14430 rm -rf $tpldir~
14431 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14432 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14433 old_archive_cmds_CXX='tpldir=Template.dir~
14434 rm -rf $tpldir~
14435 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14436 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14437 $RANLIB $oldlib'
14438 archive_cmds_CXX='tpldir=Template.dir~
14439 rm -rf $tpldir~
14440 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14441 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14442 archive_expsym_cmds_CXX='tpldir=Template.dir~
14443 rm -rf $tpldir~
14444 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14445 $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'
14446 ;;
14447 *) # Version 6 and above use weak symbols
14448 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14449 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'
14450 ;;
14451 esac
14452
14453 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14454 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14455 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'
14456 ;;
14457 cxx*)
14458 # Compaq C++
14459 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14460 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'
14461
14462 runpath_var=LD_RUN_PATH
14463 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14464 hardcode_libdir_separator_CXX=:
14465
14466 # Commands to make compiler produce verbose output that lists
14467 # what "hidden" libraries, object files and flags are used when
14468 # linking a shared library.
14469 #
14470 # There doesn't appear to be a way to prevent this compiler from
14471 # explicitly linking system object files so we need to strip them
14472 # from the output so that they don't get included in the library
14473 # dependencies.
14474 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'
14475 ;;
14476 xl* | mpixl* | bgxl*)
14477 # IBM XL 8.0 on PPC, with GNU ld
14478 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14479 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14480 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14481 if test yes = "$supports_anon_versioning"; then
14482 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14484 echo "local: *; };" >> $output_objdir/$libname.ver~
14485 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14486 fi
14487 ;;
14488 *)
14489 case `$CC -V 2>&1 | sed 5q` in
14490 *Sun\ C*)
14491 # Sun C++ 5.9
14492 no_undefined_flag_CXX=' -zdefs'
14493 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14494 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'
14495 hardcode_libdir_flag_spec_CXX='-R$libdir'
14496 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'
14497 compiler_needs_object_CXX=yes
14498
14499 # Not sure whether something based on
14500 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14501 # would be better.
14502 output_verbose_link_cmd='func_echo_all'
14503
14504 # Archives containing C++ object files must be created using
14505 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14506 # necessary to make sure instantiated templates are included
14507 # in the archive.
14508 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14509 ;;
14510 esac
14511 ;;
14512 esac
14513 ;;
14514
14515 lynxos*)
14516 # FIXME: insert proper C++ library support
14517 ld_shlibs_CXX=no
14518 ;;
14519
14520 m88k*)
14521 # FIXME: insert proper C++ library support
14522 ld_shlibs_CXX=no
14523 ;;
14524
14525 mvs*)
14526 case $cc_basename in
14527 cxx*)
14528 # FIXME: insert proper C++ library support
14529 ld_shlibs_CXX=no
14530 ;;
14531 *)
14532 # FIXME: insert proper C++ library support
14533 ld_shlibs_CXX=no
14534 ;;
14535 esac
14536 ;;
14537
14538 netbsd*)
14539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14540 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14541 wlarc=
14542 hardcode_libdir_flag_spec_CXX='-R$libdir'
14543 hardcode_direct_CXX=yes
14544 hardcode_shlibpath_var_CXX=no
14545 fi
14546 # Workaround some broken pre-1.5 toolchains
14547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14548 ;;
14549
14550 *nto* | *qnx*)
14551 ld_shlibs_CXX=yes
14552 ;;
14553
14554 openbsd* | bitrig*)
14555 if test -f /usr/libexec/ld.so; then
14556 hardcode_direct_CXX=yes
14557 hardcode_shlibpath_var_CXX=no
14558 hardcode_direct_absolute_CXX=yes
14559 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14560 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14562 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14563 export_dynamic_flag_spec_CXX='$wl-E'
14564 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14565 fi
14566 output_verbose_link_cmd=func_echo_all
14567 else
14568 ld_shlibs_CXX=no
14569 fi
14570 ;;
14571
14572 osf3* | osf4* | osf5*)
14573 case $cc_basename in
14574 KCC*)
14575 # Kuck and Associates, Inc. (KAI) C++ Compiler
14576
14577 # KCC will only create a shared library if the output file
14578 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14579 # to its proper name (with version) after linking.
14580 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'
14581
14582 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14583 hardcode_libdir_separator_CXX=:
14584
14585 # Archives containing C++ object files must be created using
14586 # the KAI C++ compiler.
14587 case $host in
14588 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14589 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14590 esac
14591 ;;
14592 RCC*)
14593 # Rational C++ 2.4.1
14594 # FIXME: insert proper C++ library support
14595 ld_shlibs_CXX=no
14596 ;;
14597 cxx*)
14598 case $host in
14599 osf3*)
14600 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14601 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'
14602 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14603 ;;
14604 *)
14605 allow_undefined_flag_CXX=' -expect_unresolved \*'
14606 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'
14607 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14608 echo "-hidden">> $lib.exp~
14609 $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~
14610 $RM $lib.exp'
14611 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14612 ;;
14613 esac
14614
14615 hardcode_libdir_separator_CXX=:
14616
14617 # Commands to make compiler produce verbose output that lists
14618 # what "hidden" libraries, object files and flags are used when
14619 # linking a shared library.
14620 #
14621 # There doesn't appear to be a way to prevent this compiler from
14622 # explicitly linking system object files so we need to strip them
14623 # from the output so that they don't get included in the library
14624 # dependencies.
14625 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"'
14626 ;;
14627 *)
14628 if test yes,no = "$GXX,$with_gnu_ld"; then
14629 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14630 case $host in
14631 osf3*)
14632 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'
14633 ;;
14634 *)
14635 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'
14636 ;;
14637 esac
14638
14639 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14640 hardcode_libdir_separator_CXX=:
14641
14642 # Commands to make compiler produce verbose output that lists
14643 # what "hidden" libraries, object files and flags are used when
14644 # linking a shared library.
14645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14646
14647 else
14648 # FIXME: insert proper C++ library support
14649 ld_shlibs_CXX=no
14650 fi
14651 ;;
14652 esac
14653 ;;
14654
14655 psos*)
14656 # FIXME: insert proper C++ library support
14657 ld_shlibs_CXX=no
14658 ;;
14659
14660 sunos4*)
14661 case $cc_basename in
14662 CC*)
14663 # Sun C++ 4.x
14664 # FIXME: insert proper C++ library support
14665 ld_shlibs_CXX=no
14666 ;;
14667 lcc*)
14668 # Lucid
14669 # FIXME: insert proper C++ library support
14670 ld_shlibs_CXX=no
14671 ;;
14672 *)
14673 # FIXME: insert proper C++ library support
14674 ld_shlibs_CXX=no
14675 ;;
14676 esac
14677 ;;
14678
14679 solaris*)
14680 case $cc_basename in
14681 CC* | sunCC*)
14682 # Sun C++ 4.2, 5.x and Centerline C++
14683 archive_cmds_need_lc_CXX=yes
14684 no_undefined_flag_CXX=' -zdefs'
14685 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14686 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14687 $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'
14688
14689 hardcode_libdir_flag_spec_CXX='-R$libdir'
14690 hardcode_shlibpath_var_CXX=no
14691 case $host_os in
14692 solaris2.[0-5] | solaris2.[0-5].*) ;;
14693 *)
14694 # The compiler driver will combine and reorder linker options,
14695 # but understands '-z linker_flag'.
14696 # Supported since Solaris 2.6 (maybe 2.5.1?)
14697 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14698 ;;
14699 esac
14700 link_all_deplibs_CXX=yes
14701
14702 output_verbose_link_cmd='func_echo_all'
14703
14704 # Archives containing C++ object files must be created using
14705 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14706 # necessary to make sure instantiated templates are included
14707 # in the archive.
14708 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14709 ;;
14710 gcx*)
14711 # Green Hills C++ Compiler
14712 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14713
14714 # The C++ compiler must be used to create the archive.
14715 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14716 ;;
14717 *)
14718 # GNU C++ compiler with Solaris linker
14719 if test yes,no = "$GXX,$with_gnu_ld"; then
14720 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14721 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14722 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14723 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14724 $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'
14725
14726 # Commands to make compiler produce verbose output that lists
14727 # what "hidden" libraries, object files and flags are used when
14728 # linking a shared library.
14729 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14730 else
14731 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14732 # platform.
14733 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14734 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14735 $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'
14736
14737 # Commands to make compiler produce verbose output that lists
14738 # what "hidden" libraries, object files and flags are used when
14739 # linking a shared library.
14740 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14741 fi
14742
14743 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14744 case $host_os in
14745 solaris2.[0-5] | solaris2.[0-5].*) ;;
14746 *)
14747 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14748 ;;
14749 esac
14750 fi
14751 ;;
14752 esac
14753 ;;
14754
14755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14756 no_undefined_flag_CXX='$wl-z,text'
14757 archive_cmds_need_lc_CXX=no
14758 hardcode_shlibpath_var_CXX=no
14759 runpath_var='LD_RUN_PATH'
14760
14761 case $cc_basename in
14762 CC*)
14763 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14764 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14765 ;;
14766 *)
14767 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14768 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14769 ;;
14770 esac
14771 ;;
14772
14773 sysv5* | sco3.2v5* | sco5v6*)
14774 # Note: We CANNOT use -z defs as we might desire, because we do not
14775 # link with -lc, and that would cause any symbols used from libc to
14776 # always be unresolved, which means just about no library would
14777 # ever link correctly. If we're not using GNU ld we use -z text
14778 # though, which does catch some bad symbols but isn't as heavy-handed
14779 # as -z defs.
14780 no_undefined_flag_CXX='$wl-z,text'
14781 allow_undefined_flag_CXX='$wl-z,nodefs'
14782 archive_cmds_need_lc_CXX=no
14783 hardcode_shlibpath_var_CXX=no
14784 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14785 hardcode_libdir_separator_CXX=':'
14786 link_all_deplibs_CXX=yes
14787 export_dynamic_flag_spec_CXX='$wl-Bexport'
14788 runpath_var='LD_RUN_PATH'
14789
14790 case $cc_basename in
14791 CC*)
14792 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14793 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14794 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14795 '"$old_archive_cmds_CXX"
14796 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14797 '"$reload_cmds_CXX"
14798 ;;
14799 *)
14800 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14801 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14802 ;;
14803 esac
14804 ;;
14805
14806 tandem*)
14807 case $cc_basename in
14808 NCC*)
14809 # NonStop-UX NCC 3.20
14810 # FIXME: insert proper C++ library support
14811 ld_shlibs_CXX=no
14812 ;;
14813 *)
14814 # FIXME: insert proper C++ library support
14815 ld_shlibs_CXX=no
14816 ;;
14817 esac
14818 ;;
14819
14820 vxworks*)
14821 # FIXME: insert proper C++ library support
14822 ld_shlibs_CXX=no
14823 ;;
14824
14825 *)
14826 # FIXME: insert proper C++ library support
14827 ld_shlibs_CXX=no
14828 ;;
14829 esac
14830
14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14832 printf "%s\n" "$ld_shlibs_CXX" >&6; }
14833 test no = "$ld_shlibs_CXX" && can_build_shared=no
14834
14835 GCC_CXX=$GXX
14836 LD_CXX=$LD
14837
14838 ## CAVEAT EMPTOR:
14839 ## There is no encapsulation within the following macros, do not change
14840 ## the running order or otherwise move them around unless you know exactly
14841 ## what you are doing...
14842 # Dependencies to place before and after the object being linked:
14843 predep_objects_CXX=
14844 postdep_objects_CXX=
14845 predeps_CXX=
14846 postdeps_CXX=
14847 compiler_lib_search_path_CXX=
14848
14849 cat > conftest.$ac_ext <<_LT_EOF
14850 class Foo
14851 {
14852 public:
14853 Foo (void) { a = 0; }
14854 private:
14855 int a;
14856 };
14857 _LT_EOF
14858
14859
14860 _lt_libdeps_save_CFLAGS=$CFLAGS
14861 case "$CC $CFLAGS " in #(
14862 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14863 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14864 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14865 esac
14866
14867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14868 (eval $ac_compile) 2>&5
14869 ac_status=$?
14870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871 test $ac_status = 0; }; then
14872 # Parse the compiler output and extract the necessary
14873 # objects, libraries and library flags.
14874
14875 # Sentinel used to keep track of whether or not we are before
14876 # the conftest object file.
14877 pre_test_object_deps_done=no
14878
14879 for p in `eval "$output_verbose_link_cmd"`; do
14880 case $prev$p in
14881
14882 -L* | -R* | -l*)
14883 # Some compilers place space between "-{L,R}" and the path.
14884 # Remove the space.
14885 if test x-L = "$p" ||
14886 test x-R = "$p"; then
14887 prev=$p
14888 continue
14889 fi
14890
14891 # Expand the sysroot to ease extracting the directories later.
14892 if test -z "$prev"; then
14893 case $p in
14894 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14895 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14896 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14897 esac
14898 fi
14899 case $p in
14900 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14901 esac
14902 if test no = "$pre_test_object_deps_done"; then
14903 case $prev in
14904 -L | -R)
14905 # Internal compiler library paths should come after those
14906 # provided the user. The postdeps already come after the
14907 # user supplied libs so there is no need to process them.
14908 if test -z "$compiler_lib_search_path_CXX"; then
14909 compiler_lib_search_path_CXX=$prev$p
14910 else
14911 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14912 fi
14913 ;;
14914 # The "-l" case would never come before the object being
14915 # linked, so don't bother handling this case.
14916 esac
14917 else
14918 if test -z "$postdeps_CXX"; then
14919 postdeps_CXX=$prev$p
14920 else
14921 postdeps_CXX="${postdeps_CXX} $prev$p"
14922 fi
14923 fi
14924 prev=
14925 ;;
14926
14927 *.lto.$objext) ;; # Ignore GCC LTO objects
14928 *.$objext)
14929 # This assumes that the test object file only shows up
14930 # once in the compiler output.
14931 if test "$p" = "conftest.$objext"; then
14932 pre_test_object_deps_done=yes
14933 continue
14934 fi
14935
14936 if test no = "$pre_test_object_deps_done"; then
14937 if test -z "$predep_objects_CXX"; then
14938 predep_objects_CXX=$p
14939 else
14940 predep_objects_CXX="$predep_objects_CXX $p"
14941 fi
14942 else
14943 if test -z "$postdep_objects_CXX"; then
14944 postdep_objects_CXX=$p
14945 else
14946 postdep_objects_CXX="$postdep_objects_CXX $p"
14947 fi
14948 fi
14949 ;;
14950
14951 *) ;; # Ignore the rest.
14952
14953 esac
14954 done
14955
14956 # Clean up.
14957 rm -f a.out a.exe
14958 else
14959 echo "libtool.m4: error: problem compiling CXX test program"
14960 fi
14961
14962 $RM -f confest.$objext
14963 CFLAGS=$_lt_libdeps_save_CFLAGS
14964
14965 # PORTME: override above test on systems where it is broken
14966 case $host_os in
14967 interix[3-9]*)
14968 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14969 # hack all around it, let's just trust "g++" to DTRT.
14970 predep_objects_CXX=
14971 postdep_objects_CXX=
14972 postdeps_CXX=
14973 ;;
14974 esac
14975
14976
14977 case " $postdeps_CXX " in
14978 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14979 esac
14980 compiler_lib_search_dirs_CXX=
14981 if test -n "${compiler_lib_search_path_CXX}"; then
14982 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14983 fi
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015 lt_prog_compiler_wl_CXX=
15016 lt_prog_compiler_pic_CXX=
15017 lt_prog_compiler_static_CXX=
15018
15019
15020 # C++ specific cases for pic, static, wl, etc.
15021 if test yes = "$GXX"; then
15022 lt_prog_compiler_wl_CXX='-Wl,'
15023 lt_prog_compiler_static_CXX='-static'
15024
15025 case $host_os in
15026 aix*)
15027 # All AIX code is PIC.
15028 if test ia64 = "$host_cpu"; then
15029 # AIX 5 now supports IA64 processor
15030 lt_prog_compiler_static_CXX='-Bstatic'
15031 fi
15032 lt_prog_compiler_pic_CXX='-fPIC'
15033 ;;
15034
15035 amigaos*)
15036 case $host_cpu in
15037 powerpc)
15038 # see comment about AmigaOS4 .so support
15039 lt_prog_compiler_pic_CXX='-fPIC'
15040 ;;
15041 m68k)
15042 # FIXME: we need at least 68020 code to build shared libraries, but
15043 # adding the '-m68020' flag to GCC prevents building anything better,
15044 # like '-m68040'.
15045 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15046 ;;
15047 esac
15048 ;;
15049
15050 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15051 # PIC is the default for these OSes.
15052 ;;
15053 mingw* | cygwin* | os2* | pw32* | cegcc*)
15054 # This hack is so that the source file can tell whether it is being
15055 # built for inclusion in a dll (and should export symbols for example).
15056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15057 # (--disable-auto-import) libraries
15058 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15059 case $host_os in
15060 os2*)
15061 lt_prog_compiler_static_CXX='$wl-static'
15062 ;;
15063 esac
15064 ;;
15065 darwin* | rhapsody*)
15066 # PIC is the default on this platform
15067 # Common symbols not allowed in MH_DYLIB files
15068 lt_prog_compiler_pic_CXX='-fno-common'
15069 ;;
15070 *djgpp*)
15071 # DJGPP does not support shared libraries at all
15072 lt_prog_compiler_pic_CXX=
15073 ;;
15074 haiku*)
15075 # PIC is the default for Haiku.
15076 # The "-static" flag exists, but is broken.
15077 lt_prog_compiler_static_CXX=
15078 ;;
15079 interix[3-9]*)
15080 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15081 # Instead, we relocate shared libraries at runtime.
15082 ;;
15083 sysv4*MP*)
15084 if test -d /usr/nec; then
15085 lt_prog_compiler_pic_CXX=-Kconform_pic
15086 fi
15087 ;;
15088 hpux*)
15089 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15090 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15091 # sets the default TLS model and affects inlining.
15092 case $host_cpu in
15093 hppa*64*)
15094 ;;
15095 *)
15096 lt_prog_compiler_pic_CXX='-fPIC'
15097 ;;
15098 esac
15099 ;;
15100 *qnx* | *nto*)
15101 # QNX uses GNU C++, but need to define -shared option too, otherwise
15102 # it will coredump.
15103 lt_prog_compiler_pic_CXX='-fPIC -shared'
15104 ;;
15105 *)
15106 lt_prog_compiler_pic_CXX='-fPIC'
15107 ;;
15108 esac
15109 else
15110 case $host_os in
15111 aix[4-9]*)
15112 # All AIX code is PIC.
15113 if test ia64 = "$host_cpu"; then
15114 # AIX 5 now supports IA64 processor
15115 lt_prog_compiler_static_CXX='-Bstatic'
15116 else
15117 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15118 fi
15119 ;;
15120 chorus*)
15121 case $cc_basename in
15122 cxch68*)
15123 # Green Hills C++ Compiler
15124 # _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"
15125 ;;
15126 esac
15127 ;;
15128 mingw* | cygwin* | os2* | pw32* | cegcc*)
15129 # This hack is so that the source file can tell whether it is being
15130 # built for inclusion in a dll (and should export symbols for example).
15131 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15132 ;;
15133 dgux*)
15134 case $cc_basename in
15135 ec++*)
15136 lt_prog_compiler_pic_CXX='-KPIC'
15137 ;;
15138 ghcx*)
15139 # Green Hills C++ Compiler
15140 lt_prog_compiler_pic_CXX='-pic'
15141 ;;
15142 *)
15143 ;;
15144 esac
15145 ;;
15146 freebsd* | dragonfly*)
15147 # FreeBSD uses GNU C++
15148 ;;
15149 hpux9* | hpux10* | hpux11*)
15150 case $cc_basename in
15151 CC*)
15152 lt_prog_compiler_wl_CXX='-Wl,'
15153 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15154 if test ia64 != "$host_cpu"; then
15155 lt_prog_compiler_pic_CXX='+Z'
15156 fi
15157 ;;
15158 aCC*)
15159 lt_prog_compiler_wl_CXX='-Wl,'
15160 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15161 case $host_cpu in
15162 hppa*64*|ia64*)
15163 # +Z the default
15164 ;;
15165 *)
15166 lt_prog_compiler_pic_CXX='+Z'
15167 ;;
15168 esac
15169 ;;
15170 *)
15171 ;;
15172 esac
15173 ;;
15174 interix*)
15175 # This is c89, which is MS Visual C++ (no shared libs)
15176 # Anyone wants to do a port?
15177 ;;
15178 irix5* | irix6* | nonstopux*)
15179 case $cc_basename in
15180 CC*)
15181 lt_prog_compiler_wl_CXX='-Wl,'
15182 lt_prog_compiler_static_CXX='-non_shared'
15183 # CC pic flag -KPIC is the default.
15184 ;;
15185 *)
15186 ;;
15187 esac
15188 ;;
15189 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15190 case $cc_basename in
15191 KCC*)
15192 # KAI C++ Compiler
15193 lt_prog_compiler_wl_CXX='--backend -Wl,'
15194 lt_prog_compiler_pic_CXX='-fPIC'
15195 ;;
15196 ecpc* )
15197 # old Intel C++ for x86_64, which still supported -KPIC.
15198 lt_prog_compiler_wl_CXX='-Wl,'
15199 lt_prog_compiler_pic_CXX='-KPIC'
15200 lt_prog_compiler_static_CXX='-static'
15201 ;;
15202 icpc* )
15203 # Intel C++, used to be incompatible with GCC.
15204 # ICC 10 doesn't accept -KPIC any more.
15205 lt_prog_compiler_wl_CXX='-Wl,'
15206 lt_prog_compiler_pic_CXX='-fPIC'
15207 lt_prog_compiler_static_CXX='-static'
15208 ;;
15209 pgCC* | pgcpp*)
15210 # Portland Group C++ compiler
15211 lt_prog_compiler_wl_CXX='-Wl,'
15212 lt_prog_compiler_pic_CXX='-fpic'
15213 lt_prog_compiler_static_CXX='-Bstatic'
15214 ;;
15215 cxx*)
15216 # Compaq C++
15217 # Make sure the PIC flag is empty. It appears that all Alpha
15218 # Linux and Compaq Tru64 Unix objects are PIC.
15219 lt_prog_compiler_pic_CXX=
15220 lt_prog_compiler_static_CXX='-non_shared'
15221 ;;
15222 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15223 # IBM XL 8.0, 9.0 on PPC and BlueGene
15224 lt_prog_compiler_wl_CXX='-Wl,'
15225 lt_prog_compiler_pic_CXX='-qpic'
15226 lt_prog_compiler_static_CXX='-qstaticlink'
15227 ;;
15228 *)
15229 case `$CC -V 2>&1 | sed 5q` in
15230 *Sun\ C*)
15231 # Sun C++ 5.9
15232 lt_prog_compiler_pic_CXX='-KPIC'
15233 lt_prog_compiler_static_CXX='-Bstatic'
15234 lt_prog_compiler_wl_CXX='-Qoption ld '
15235 ;;
15236 esac
15237 ;;
15238 esac
15239 ;;
15240 lynxos*)
15241 ;;
15242 m88k*)
15243 ;;
15244 mvs*)
15245 case $cc_basename in
15246 cxx*)
15247 lt_prog_compiler_pic_CXX='-W c,exportall'
15248 ;;
15249 *)
15250 ;;
15251 esac
15252 ;;
15253 netbsd*)
15254 ;;
15255 *qnx* | *nto*)
15256 # QNX uses GNU C++, but need to define -shared option too, otherwise
15257 # it will coredump.
15258 lt_prog_compiler_pic_CXX='-fPIC -shared'
15259 ;;
15260 osf3* | osf4* | osf5*)
15261 case $cc_basename in
15262 KCC*)
15263 lt_prog_compiler_wl_CXX='--backend -Wl,'
15264 ;;
15265 RCC*)
15266 # Rational C++ 2.4.1
15267 lt_prog_compiler_pic_CXX='-pic'
15268 ;;
15269 cxx*)
15270 # Digital/Compaq C++
15271 lt_prog_compiler_wl_CXX='-Wl,'
15272 # Make sure the PIC flag is empty. It appears that all Alpha
15273 # Linux and Compaq Tru64 Unix objects are PIC.
15274 lt_prog_compiler_pic_CXX=
15275 lt_prog_compiler_static_CXX='-non_shared'
15276 ;;
15277 *)
15278 ;;
15279 esac
15280 ;;
15281 psos*)
15282 ;;
15283 solaris*)
15284 case $cc_basename in
15285 CC* | sunCC*)
15286 # Sun C++ 4.2, 5.x and Centerline C++
15287 lt_prog_compiler_pic_CXX='-KPIC'
15288 lt_prog_compiler_static_CXX='-Bstatic'
15289 lt_prog_compiler_wl_CXX='-Qoption ld '
15290 ;;
15291 gcx*)
15292 # Green Hills C++ Compiler
15293 lt_prog_compiler_pic_CXX='-PIC'
15294 ;;
15295 *)
15296 ;;
15297 esac
15298 ;;
15299 sunos4*)
15300 case $cc_basename in
15301 CC*)
15302 # Sun C++ 4.x
15303 lt_prog_compiler_pic_CXX='-pic'
15304 lt_prog_compiler_static_CXX='-Bstatic'
15305 ;;
15306 lcc*)
15307 # Lucid
15308 lt_prog_compiler_pic_CXX='-pic'
15309 ;;
15310 *)
15311 ;;
15312 esac
15313 ;;
15314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15315 case $cc_basename in
15316 CC*)
15317 lt_prog_compiler_wl_CXX='-Wl,'
15318 lt_prog_compiler_pic_CXX='-KPIC'
15319 lt_prog_compiler_static_CXX='-Bstatic'
15320 ;;
15321 esac
15322 ;;
15323 tandem*)
15324 case $cc_basename in
15325 NCC*)
15326 # NonStop-UX NCC 3.20
15327 lt_prog_compiler_pic_CXX='-KPIC'
15328 ;;
15329 *)
15330 ;;
15331 esac
15332 ;;
15333 vxworks*)
15334 ;;
15335 *)
15336 lt_prog_compiler_can_build_shared_CXX=no
15337 ;;
15338 esac
15339 fi
15340
15341 case $host_os in
15342 # For platforms that do not support PIC, -DPIC is meaningless:
15343 *djgpp*)
15344 lt_prog_compiler_pic_CXX=
15345 ;;
15346 *)
15347 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15348 ;;
15349 esac
15350
15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15352 printf %s "checking for $compiler option to produce PIC... " >&6; }
15353 if test ${lt_cv_prog_compiler_pic_CXX+y}
15354 then :
15355 printf %s "(cached) " >&6
15356 else $as_nop
15357 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15358 fi
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15360 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15361 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15362
15363 #
15364 # Check to make sure the PIC flag actually works.
15365 #
15366 if test -n "$lt_prog_compiler_pic_CXX"; then
15367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15368 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15369 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15370 then :
15371 printf %s "(cached) " >&6
15372 else $as_nop
15373 lt_cv_prog_compiler_pic_works_CXX=no
15374 ac_outfile=conftest.$ac_objext
15375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15376 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15377 # Insert the option either (1) after the last *FLAGS variable, or
15378 # (2) before a word containing "conftest.", or (3) at the end.
15379 # Note that $ac_compile itself does not contain backslashes and begins
15380 # with a dollar sign (not a hyphen), so the echo should work correctly.
15381 # The option is referenced via a variable to avoid confusing sed.
15382 lt_compile=`echo "$ac_compile" | $SED \
15383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15385 -e 's:$: $lt_compiler_flag:'`
15386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15387 (eval "$lt_compile" 2>conftest.err)
15388 ac_status=$?
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 if (exit $ac_status) && test -s "$ac_outfile"; then
15392 # The compiler can only warn and ignore the option if not recognized
15393 # So say no if there are warnings other than the usual output.
15394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15397 lt_cv_prog_compiler_pic_works_CXX=yes
15398 fi
15399 fi
15400 $RM conftest*
15401
15402 fi
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15404 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15405
15406 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15407 case $lt_prog_compiler_pic_CXX in
15408 "" | " "*) ;;
15409 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15410 esac
15411 else
15412 lt_prog_compiler_pic_CXX=
15413 lt_prog_compiler_can_build_shared_CXX=no
15414 fi
15415
15416 fi
15417
15418
15419
15420
15421
15422 #
15423 # Check to make sure the static flag actually works.
15424 #
15425 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15427 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15428 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15429 then :
15430 printf %s "(cached) " >&6
15431 else $as_nop
15432 lt_cv_prog_compiler_static_works_CXX=no
15433 save_LDFLAGS=$LDFLAGS
15434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15437 # The linker can only warn and ignore the option if not recognized
15438 # So say no if there are warnings
15439 if test -s conftest.err; then
15440 # Append any errors to the config.log.
15441 cat conftest.err 1>&5
15442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15444 if diff conftest.exp conftest.er2 >/dev/null; then
15445 lt_cv_prog_compiler_static_works_CXX=yes
15446 fi
15447 else
15448 lt_cv_prog_compiler_static_works_CXX=yes
15449 fi
15450 fi
15451 $RM -r conftest*
15452 LDFLAGS=$save_LDFLAGS
15453
15454 fi
15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15456 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15457
15458 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15459 :
15460 else
15461 lt_prog_compiler_static_CXX=
15462 fi
15463
15464
15465
15466
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15468 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15469 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15470 then :
15471 printf %s "(cached) " >&6
15472 else $as_nop
15473 lt_cv_prog_compiler_c_o_CXX=no
15474 $RM -r conftest 2>/dev/null
15475 mkdir conftest
15476 cd conftest
15477 mkdir out
15478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15479
15480 lt_compiler_flag="-o out/conftest2.$ac_objext"
15481 # Insert the option either (1) after the last *FLAGS variable, or
15482 # (2) before a word containing "conftest.", or (3) at the end.
15483 # Note that $ac_compile itself does not contain backslashes and begins
15484 # with a dollar sign (not a hyphen), so the echo should work correctly.
15485 lt_compile=`echo "$ac_compile" | $SED \
15486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15488 -e 's:$: $lt_compiler_flag:'`
15489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15490 (eval "$lt_compile" 2>out/conftest.err)
15491 ac_status=$?
15492 cat out/conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15495 then
15496 # The compiler can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15501 lt_cv_prog_compiler_c_o_CXX=yes
15502 fi
15503 fi
15504 chmod u+w . 2>&5
15505 $RM conftest*
15506 # SGI C++ compiler will create directory out/ii_files/ for
15507 # template instantiation
15508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15509 $RM out/* && rmdir out
15510 cd ..
15511 $RM -r conftest
15512 $RM conftest*
15513
15514 fi
15515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15516 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15517
15518
15519
15520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15521 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15522 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15523 then :
15524 printf %s "(cached) " >&6
15525 else $as_nop
15526 lt_cv_prog_compiler_c_o_CXX=no
15527 $RM -r conftest 2>/dev/null
15528 mkdir conftest
15529 cd conftest
15530 mkdir out
15531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15532
15533 lt_compiler_flag="-o out/conftest2.$ac_objext"
15534 # Insert the option either (1) after the last *FLAGS variable, or
15535 # (2) before a word containing "conftest.", or (3) at the end.
15536 # Note that $ac_compile itself does not contain backslashes and begins
15537 # with a dollar sign (not a hyphen), so the echo should work correctly.
15538 lt_compile=`echo "$ac_compile" | $SED \
15539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15541 -e 's:$: $lt_compiler_flag:'`
15542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15543 (eval "$lt_compile" 2>out/conftest.err)
15544 ac_status=$?
15545 cat out/conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15548 then
15549 # The compiler can only warn and ignore the option if not recognized
15550 # So say no if there are warnings
15551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15554 lt_cv_prog_compiler_c_o_CXX=yes
15555 fi
15556 fi
15557 chmod u+w . 2>&5
15558 $RM conftest*
15559 # SGI C++ compiler will create directory out/ii_files/ for
15560 # template instantiation
15561 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15562 $RM out/* && rmdir out
15563 cd ..
15564 $RM -r conftest
15565 $RM conftest*
15566
15567 fi
15568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15569 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15570
15571
15572
15573
15574 hard_links=nottested
15575 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15576 # do not overwrite the value of need_locks provided by the user
15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15578 printf %s "checking if we can lock with hard links... " >&6; }
15579 hard_links=yes
15580 $RM conftest*
15581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15582 touch conftest.a
15583 ln conftest.a conftest.b 2>&5 || hard_links=no
15584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15586 printf "%s\n" "$hard_links" >&6; }
15587 if test no = "$hard_links"; then
15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15589 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15590 need_locks=warn
15591 fi
15592 else
15593 need_locks=no
15594 fi
15595
15596
15597
15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15599 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15600
15601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15602 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15603 case $host_os in
15604 aix[4-9]*)
15605 # If we're using GNU nm, then we don't want the "-C" option.
15606 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15607 # Without the "-l" option, or with the "-B" option, AIX nm treats
15608 # weak defined symbols like other global defined symbols, whereas
15609 # GNU nm marks them as "W".
15610 # While the 'weak' keyword is ignored in the Export File, we need
15611 # it in the Import File for the 'aix-soname' feature, so we have
15612 # to replace the "-B" option with "-P" for AIX nm.
15613 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15614 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'
15615 else
15616 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15617 fi
15618 ;;
15619 pw32*)
15620 export_symbols_cmds_CXX=$ltdll_cmds
15621 ;;
15622 cygwin* | mingw* | cegcc*)
15623 case $cc_basename in
15624 cl*)
15625 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15626 ;;
15627 *)
15628 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'
15629 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15630 ;;
15631 esac
15632 ;;
15633 *)
15634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15635 ;;
15636 esac
15637
15638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15639 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15640 test no = "$ld_shlibs_CXX" && can_build_shared=no
15641
15642 with_gnu_ld_CXX=$with_gnu_ld
15643
15644
15645
15646
15647
15648
15649 #
15650 # Do we need to explicitly link libc?
15651 #
15652 case "x$archive_cmds_need_lc_CXX" in
15653 x|xyes)
15654 # Assume -lc should be added
15655 archive_cmds_need_lc_CXX=yes
15656
15657 if test yes,yes = "$GCC,$enable_shared"; then
15658 case $archive_cmds_CXX in
15659 *'~'*)
15660 # FIXME: we may have to deal with multi-command sequences.
15661 ;;
15662 '$CC '*)
15663 # Test whether the compiler implicitly links with -lc since on some
15664 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15665 # to ld, don't add -lc before -lgcc.
15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15667 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15668 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15669 then :
15670 printf %s "(cached) " >&6
15671 else $as_nop
15672 $RM conftest*
15673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15674
15675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15676 (eval $ac_compile) 2>&5
15677 ac_status=$?
15678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15679 test $ac_status = 0; } 2>conftest.err; then
15680 soname=conftest
15681 lib=conftest
15682 libobjs=conftest.$ac_objext
15683 deplibs=
15684 wl=$lt_prog_compiler_wl_CXX
15685 pic_flag=$lt_prog_compiler_pic_CXX
15686 compiler_flags=-v
15687 linker_flags=-v
15688 verstring=
15689 output_objdir=.
15690 libname=conftest
15691 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15692 allow_undefined_flag_CXX=
15693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15694 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15695 ac_status=$?
15696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15697 test $ac_status = 0; }
15698 then
15699 lt_cv_archive_cmds_need_lc_CXX=no
15700 else
15701 lt_cv_archive_cmds_need_lc_CXX=yes
15702 fi
15703 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15704 else
15705 cat conftest.err 1>&5
15706 fi
15707 $RM conftest*
15708
15709 fi
15710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15711 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15712 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15713 ;;
15714 esac
15715 fi
15716 ;;
15717 esac
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15781 printf %s "checking dynamic linker characteristics... " >&6; }
15782
15783 library_names_spec=
15784 libname_spec='lib$name'
15785 soname_spec=
15786 shrext_cmds=.so
15787 postinstall_cmds=
15788 postuninstall_cmds=
15789 finish_cmds=
15790 finish_eval=
15791 shlibpath_var=
15792 shlibpath_overrides_runpath=unknown
15793 version_type=none
15794 dynamic_linker="$host_os ld.so"
15795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15796 need_lib_prefix=unknown
15797 hardcode_into_libs=no
15798
15799 # when you set need_version to no, make sure it does not cause -set_version
15800 # flags to be left without arguments
15801 need_version=unknown
15802
15803
15804
15805 case $host_os in
15806 aix3*)
15807 version_type=linux # correct to gnu/linux during the next big refactor
15808 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15809 shlibpath_var=LIBPATH
15810
15811 # AIX 3 has no versioning support, so we append a major version to the name.
15812 soname_spec='$libname$release$shared_ext$major'
15813 ;;
15814
15815 aix[4-9]*)
15816 version_type=linux # correct to gnu/linux during the next big refactor
15817 need_lib_prefix=no
15818 need_version=no
15819 hardcode_into_libs=yes
15820 if test ia64 = "$host_cpu"; then
15821 # AIX 5 supports IA64
15822 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15823 shlibpath_var=LD_LIBRARY_PATH
15824 else
15825 # With GCC up to 2.95.x, collect2 would create an import file
15826 # for dependence libraries. The import file would start with
15827 # the line '#! .'. This would cause the generated library to
15828 # depend on '.', always an invalid library. This was fixed in
15829 # development snapshots of GCC prior to 3.0.
15830 case $host_os in
15831 aix4 | aix4.[01] | aix4.[01].*)
15832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15833 echo ' yes '
15834 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15835 :
15836 else
15837 can_build_shared=no
15838 fi
15839 ;;
15840 esac
15841 # Using Import Files as archive members, it is possible to support
15842 # filename-based versioning of shared library archives on AIX. While
15843 # this would work for both with and without runtime linking, it will
15844 # prevent static linking of such archives. So we do filename-based
15845 # shared library versioning with .so extension only, which is used
15846 # when both runtime linking and shared linking is enabled.
15847 # Unfortunately, runtime linking may impact performance, so we do
15848 # not want this to be the default eventually. Also, we use the
15849 # versioned .so libs for executables only if there is the -brtl
15850 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15851 # To allow for filename-based versioning support, we need to create
15852 # libNAME.so.V as an archive file, containing:
15853 # *) an Import File, referring to the versioned filename of the
15854 # archive as well as the shared archive member, telling the
15855 # bitwidth (32 or 64) of that shared object, and providing the
15856 # list of exported symbols of that shared object, eventually
15857 # decorated with the 'weak' keyword
15858 # *) the shared object with the F_LOADONLY flag set, to really avoid
15859 # it being seen by the linker.
15860 # At run time we better use the real file rather than another symlink,
15861 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15862
15863 case $with_aix_soname,$aix_use_runtimelinking in
15864 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15865 # soname into executable. Probably we can add versioning support to
15866 # collect2, so additional links can be useful in future.
15867 aix,yes) # traditional libtool
15868 dynamic_linker='AIX unversionable lib.so'
15869 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15870 # instead of lib<name>.a to let people know that these are not
15871 # typical AIX shared libraries.
15872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15873 ;;
15874 aix,no) # traditional AIX only
15875 dynamic_linker='AIX lib.a(lib.so.V)'
15876 # We preserve .a as extension for shared libraries through AIX4.2
15877 # and later when we are not doing run time linking.
15878 library_names_spec='$libname$release.a $libname.a'
15879 soname_spec='$libname$release$shared_ext$major'
15880 ;;
15881 svr4,*) # full svr4 only
15882 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15883 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15884 # We do not specify a path in Import Files, so LIBPATH fires.
15885 shlibpath_overrides_runpath=yes
15886 ;;
15887 *,yes) # both, prefer svr4
15888 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15889 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15890 # unpreferred sharedlib libNAME.a needs extra handling
15891 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"'
15892 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"'
15893 # We do not specify a path in Import Files, so LIBPATH fires.
15894 shlibpath_overrides_runpath=yes
15895 ;;
15896 *,no) # both, prefer aix
15897 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15898 library_names_spec='$libname$release.a $libname.a'
15899 soname_spec='$libname$release$shared_ext$major'
15900 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15901 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)'
15902 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"'
15903 ;;
15904 esac
15905 shlibpath_var=LIBPATH
15906 fi
15907 ;;
15908
15909 amigaos*)
15910 case $host_cpu in
15911 powerpc)
15912 # Since July 2007 AmigaOS4 officially supports .so libraries.
15913 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15915 ;;
15916 m68k)
15917 library_names_spec='$libname.ixlibrary $libname.a'
15918 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15919 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'
15920 ;;
15921 esac
15922 ;;
15923
15924 beos*)
15925 library_names_spec='$libname$shared_ext'
15926 dynamic_linker="$host_os ld.so"
15927 shlibpath_var=LIBRARY_PATH
15928 ;;
15929
15930 bsdi[45]*)
15931 version_type=linux # correct to gnu/linux during the next big refactor
15932 need_version=no
15933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15934 soname_spec='$libname$release$shared_ext$major'
15935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /Users/birby/homebrew/lib"
15938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /Users/birby/homebrew/lib"
15939 # the default ld.so.conf also contains /usr/contrib/lib and
15940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15941 # libtool to hard-code these into programs
15942 ;;
15943
15944 cygwin* | mingw* | pw32* | cegcc*)
15945 version_type=windows
15946 shrext_cmds=.dll
15947 need_version=no
15948 need_lib_prefix=no
15949
15950 case $GCC,$cc_basename in
15951 yes,*)
15952 # gcc
15953 library_names_spec='$libname.dll.a'
15954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15955 postinstall_cmds='base_file=`basename \$file`~
15956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15957 dldir=$destdir/`dirname \$dlpath`~
15958 test -d \$dldir || mkdir -p \$dldir~
15959 $install_prog $dir/$dlname \$dldir/$dlname~
15960 chmod a+x \$dldir/$dlname~
15961 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15962 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15963 fi'
15964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15965 dlpath=$dir/\$dldll~
15966 $RM \$dlpath'
15967 shlibpath_overrides_runpath=yes
15968
15969 case $host_os in
15970 cygwin*)
15971 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15972 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15973
15974 ;;
15975 mingw* | cegcc*)
15976 # MinGW DLLs use traditional 'lib' prefix
15977 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15978 ;;
15979 pw32*)
15980 # pw32 DLLs use 'pw' prefix rather than 'lib'
15981 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15982 ;;
15983 esac
15984 dynamic_linker='Win32 ld.exe'
15985 ;;
15986
15987 *,cl*)
15988 # Native MSVC
15989 libname_spec='$name'
15990 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15991 library_names_spec='$libname.dll.lib'
15992
15993 case $build_os in
15994 mingw*)
15995 sys_lib_search_path_spec=
15996 lt_save_ifs=$IFS
15997 IFS=';'
15998 for lt_path in $LIB
15999 do
16000 IFS=$lt_save_ifs
16001 # Let DOS variable expansion print the short 8.3 style file name.
16002 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16003 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16004 done
16005 IFS=$lt_save_ifs
16006 # Convert to MSYS style.
16007 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16008 ;;
16009 cygwin*)
16010 # Convert to unix form, then to dos form, then back to unix form
16011 # but this time dos style (no spaces!) so that the unix form looks
16012 # like /cygdrive/c/PROGRA~1:/cygdr...
16013 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16014 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16015 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16016 ;;
16017 *)
16018 sys_lib_search_path_spec=$LIB
16019 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16020 # It is most probably a Windows format PATH.
16021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16022 else
16023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16024 fi
16025 # FIXME: find the short name or the path components, as spaces are
16026 # common. (e.g. "Program Files" -> "PROGRA~1")
16027 ;;
16028 esac
16029
16030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16031 postinstall_cmds='base_file=`basename \$file`~
16032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16033 dldir=$destdir/`dirname \$dlpath`~
16034 test -d \$dldir || mkdir -p \$dldir~
16035 $install_prog $dir/$dlname \$dldir/$dlname'
16036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16037 dlpath=$dir/\$dldll~
16038 $RM \$dlpath'
16039 shlibpath_overrides_runpath=yes
16040 dynamic_linker='Win32 link.exe'
16041 ;;
16042
16043 *)
16044 # Assume MSVC wrapper
16045 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16046 dynamic_linker='Win32 ld.exe'
16047 ;;
16048 esac
16049 # FIXME: first we should search . and the directory the executable is in
16050 shlibpath_var=PATH
16051 ;;
16052
16053 darwin* | rhapsody*)
16054 dynamic_linker="$host_os dyld"
16055 version_type=darwin
16056 need_lib_prefix=no
16057 need_version=no
16058 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16059 soname_spec='$libname$release$major$shared_ext'
16060 shlibpath_overrides_runpath=yes
16061 shlibpath_var=DYLD_LIBRARY_PATH
16062 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16063
16064 sys_lib_dlsearch_path_spec='/Users/birby/homebrew/lib /lib /usr/lib'
16065 ;;
16066
16067 dgux*)
16068 version_type=linux # correct to gnu/linux during the next big refactor
16069 need_lib_prefix=no
16070 need_version=no
16071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16072 soname_spec='$libname$release$shared_ext$major'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 ;;
16075
16076 freebsd* | dragonfly*)
16077 # DragonFly does not have aout. When/if they implement a new
16078 # versioning mechanism, adjust this.
16079 if test -x /usr/bin/objformat; then
16080 objformat=`/usr/bin/objformat`
16081 else
16082 case $host_os in
16083 freebsd[23].*) objformat=aout ;;
16084 *) objformat=elf ;;
16085 esac
16086 fi
16087 version_type=freebsd-$objformat
16088 case $version_type in
16089 freebsd-elf*)
16090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16091 soname_spec='$libname$release$shared_ext$major'
16092 need_version=no
16093 need_lib_prefix=no
16094 ;;
16095 freebsd-*)
16096 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16097 need_version=yes
16098 ;;
16099 esac
16100 shlibpath_var=LD_LIBRARY_PATH
16101 case $host_os in
16102 freebsd2.*)
16103 shlibpath_overrides_runpath=yes
16104 ;;
16105 freebsd3.[01]* | freebsdelf3.[01]*)
16106 shlibpath_overrides_runpath=yes
16107 hardcode_into_libs=yes
16108 ;;
16109 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16110 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16111 shlibpath_overrides_runpath=no
16112 hardcode_into_libs=yes
16113 ;;
16114 *) # from 4.6 on, and DragonFly
16115 shlibpath_overrides_runpath=yes
16116 hardcode_into_libs=yes
16117 ;;
16118 esac
16119 ;;
16120
16121 haiku*)
16122 version_type=linux # correct to gnu/linux during the next big refactor
16123 need_lib_prefix=no
16124 need_version=no
16125 dynamic_linker="$host_os runtime_loader"
16126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16127 soname_spec='$libname$release$shared_ext$major'
16128 shlibpath_var=LIBRARY_PATH
16129 shlibpath_overrides_runpath=no
16130 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16131 hardcode_into_libs=yes
16132 ;;
16133
16134 hpux9* | hpux10* | hpux11*)
16135 # Give a soname corresponding to the major version so that dld.sl refuses to
16136 # link against other versions.
16137 version_type=sunos
16138 need_lib_prefix=no
16139 need_version=no
16140 case $host_cpu in
16141 ia64*)
16142 shrext_cmds='.so'
16143 hardcode_into_libs=yes
16144 dynamic_linker="$host_os dld.so"
16145 shlibpath_var=LD_LIBRARY_PATH
16146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16148 soname_spec='$libname$release$shared_ext$major'
16149 if test 32 = "$HPUX_IA64_MODE"; then
16150 sys_lib_search_path_spec="/usr/lib/hpux32 /Users/birby/homebrew/lib/hpux32 /Users/birby/homebrew/lib"
16151 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16152 else
16153 sys_lib_search_path_spec="/usr/lib/hpux64 /Users/birby/homebrew/lib/hpux64"
16154 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16155 fi
16156 ;;
16157 hppa*64*)
16158 shrext_cmds='.sl'
16159 hardcode_into_libs=yes
16160 dynamic_linker="$host_os dld.sl"
16161 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16164 soname_spec='$libname$release$shared_ext$major'
16165 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16167 ;;
16168 *)
16169 shrext_cmds='.sl'
16170 dynamic_linker="$host_os dld.sl"
16171 shlibpath_var=SHLIB_PATH
16172 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16174 soname_spec='$libname$release$shared_ext$major'
16175 ;;
16176 esac
16177 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16178 postinstall_cmds='chmod 555 $lib'
16179 # or fails outright, so override atomically:
16180 install_override_mode=555
16181 ;;
16182
16183 interix[3-9]*)
16184 version_type=linux # correct to gnu/linux during the next big refactor
16185 need_lib_prefix=no
16186 need_version=no
16187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16188 soname_spec='$libname$release$shared_ext$major'
16189 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 shlibpath_overrides_runpath=no
16192 hardcode_into_libs=yes
16193 ;;
16194
16195 irix5* | irix6* | nonstopux*)
16196 case $host_os in
16197 nonstopux*) version_type=nonstopux ;;
16198 *)
16199 if test yes = "$lt_cv_prog_gnu_ld"; then
16200 version_type=linux # correct to gnu/linux during the next big refactor
16201 else
16202 version_type=irix
16203 fi ;;
16204 esac
16205 need_lib_prefix=no
16206 need_version=no
16207 soname_spec='$libname$release$shared_ext$major'
16208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16209 case $host_os in
16210 irix5* | nonstopux*)
16211 libsuff= shlibsuff=
16212 ;;
16213 *)
16214 case $LD in # libtool.m4 will add one of these switches to LD
16215 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16216 libsuff= shlibsuff= libmagic=32-bit;;
16217 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16218 libsuff=32 shlibsuff=N32 libmagic=N32;;
16219 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16220 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16221 *) libsuff= shlibsuff= libmagic=never-match;;
16222 esac
16223 ;;
16224 esac
16225 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16226 shlibpath_overrides_runpath=no
16227 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /Users/birby/homebrew/lib$libsuff"
16228 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16229 hardcode_into_libs=yes
16230 ;;
16231
16232 # No shared lib support for Linux oldld, aout, or coff.
16233 linux*oldld* | linux*aout* | linux*coff*)
16234 dynamic_linker=no
16235 ;;
16236
16237 linux*android*)
16238 version_type=none # Android doesn't support versioned libraries.
16239 need_lib_prefix=no
16240 need_version=no
16241 library_names_spec='$libname$release$shared_ext'
16242 soname_spec='$libname$release$shared_ext'
16243 finish_cmds=
16244 shlibpath_var=LD_LIBRARY_PATH
16245 shlibpath_overrides_runpath=yes
16246
16247 # This implies no fast_install, which is unacceptable.
16248 # Some rework will be needed to allow for fast_install
16249 # before this can be enabled.
16250 hardcode_into_libs=yes
16251
16252 dynamic_linker='Android linker'
16253 # Don't embed -rpath directories since the linker doesn't support them.
16254 hardcode_libdir_flag_spec_CXX='-L$libdir'
16255 ;;
16256
16257 # This must be glibc/ELF.
16258 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16259 version_type=linux # correct to gnu/linux during the next big refactor
16260 need_lib_prefix=no
16261 need_version=no
16262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16263 soname_spec='$libname$release$shared_ext$major'
16264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16265 shlibpath_var=LD_LIBRARY_PATH
16266 shlibpath_overrides_runpath=no
16267
16268 # Some binutils ld are patched to set DT_RUNPATH
16269 if test ${lt_cv_shlibpath_overrides_runpath+y}
16270 then :
16271 printf %s "(cached) " >&6
16272 else $as_nop
16273 lt_cv_shlibpath_overrides_runpath=no
16274 save_LDFLAGS=$LDFLAGS
16275 save_libdir=$libdir
16276 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16277 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280
16281 int
16282 main (void)
16283 {
16284
16285 ;
16286 return 0;
16287 }
16288 _ACEOF
16289 if ac_fn_cxx_try_link "$LINENO"
16290 then :
16291 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16292 then :
16293 lt_cv_shlibpath_overrides_runpath=yes
16294 fi
16295 fi
16296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16297 conftest$ac_exeext conftest.$ac_ext
16298 LDFLAGS=$save_LDFLAGS
16299 libdir=$save_libdir
16300
16301 fi
16302
16303 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16304
16305 # This implies no fast_install, which is unacceptable.
16306 # Some rework will be needed to allow for fast_install
16307 # before this can be enabled.
16308 hardcode_into_libs=yes
16309
16310 # Ideally, we could use ldconfig to report *all* directores which are
16311 # searched for libraries, however this is still not possible. Aside from not
16312 # being certain /sbin/ldconfig is available, command
16313 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16314 # even though it is searched at run-time. Try to do the best guess by
16315 # appending ld.so.conf contents (and includes) to the search path.
16316 if test -f /etc/ld.so.conf; then
16317 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' ' '`
16318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16319 fi
16320
16321 # We used to test for /lib/ld.so.1 and disable shared libraries on
16322 # powerpc, because MkLinux only supported shared libraries with the
16323 # GNU dynamic linker. Since this was broken with cross compilers,
16324 # most powerpc-linux boxes support dynamic linking these days and
16325 # people can always --disable-shared, the test was removed, and we
16326 # assume the GNU/Linux dynamic linker is in use.
16327 dynamic_linker='GNU/Linux ld.so'
16328 ;;
16329
16330 netbsd*)
16331 version_type=sunos
16332 need_lib_prefix=no
16333 need_version=no
16334 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16335 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16337 dynamic_linker='NetBSD (a.out) ld.so'
16338 else
16339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16340 soname_spec='$libname$release$shared_ext$major'
16341 dynamic_linker='NetBSD ld.elf_so'
16342 fi
16343 shlibpath_var=LD_LIBRARY_PATH
16344 shlibpath_overrides_runpath=yes
16345 hardcode_into_libs=yes
16346 ;;
16347
16348 newsos6)
16349 version_type=linux # correct to gnu/linux during the next big refactor
16350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16351 shlibpath_var=LD_LIBRARY_PATH
16352 shlibpath_overrides_runpath=yes
16353 ;;
16354
16355 *nto* | *qnx*)
16356 version_type=qnx
16357 need_lib_prefix=no
16358 need_version=no
16359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16360 soname_spec='$libname$release$shared_ext$major'
16361 shlibpath_var=LD_LIBRARY_PATH
16362 shlibpath_overrides_runpath=no
16363 hardcode_into_libs=yes
16364 dynamic_linker='ldqnx.so'
16365 ;;
16366
16367 openbsd* | bitrig*)
16368 version_type=sunos
16369 sys_lib_dlsearch_path_spec=/usr/lib
16370 need_lib_prefix=no
16371 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16372 need_version=no
16373 else
16374 need_version=yes
16375 fi
16376 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 shlibpath_overrides_runpath=yes
16380 ;;
16381
16382 os2*)
16383 libname_spec='$name'
16384 version_type=windows
16385 shrext_cmds=.dll
16386 need_version=no
16387 need_lib_prefix=no
16388 # OS/2 can only load a DLL with a base name of 8 characters or less.
16389 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16390 v=$($ECHO $release$versuffix | tr -d .-);
16391 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16392 $ECHO $n$v`$shared_ext'
16393 library_names_spec='${libname}_dll.$libext'
16394 dynamic_linker='OS/2 ld.exe'
16395 shlibpath_var=BEGINLIBPATH
16396 sys_lib_search_path_spec="/lib /usr/lib /Users/birby/homebrew/lib"
16397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16398 postinstall_cmds='base_file=`basename \$file`~
16399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16400 dldir=$destdir/`dirname \$dlpath`~
16401 test -d \$dldir || mkdir -p \$dldir~
16402 $install_prog $dir/$dlname \$dldir/$dlname~
16403 chmod a+x \$dldir/$dlname~
16404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16406 fi'
16407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16408 dlpath=$dir/\$dldll~
16409 $RM \$dlpath'
16410 ;;
16411
16412 osf3* | osf4* | osf5*)
16413 version_type=osf
16414 need_lib_prefix=no
16415 need_version=no
16416 soname_spec='$libname$release$shared_ext$major'
16417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /Users/birby/homebrew/lib /var/shlib"
16420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16421 ;;
16422
16423 rdos*)
16424 dynamic_linker=no
16425 ;;
16426
16427 solaris*)
16428 version_type=linux # correct to gnu/linux during the next big refactor
16429 need_lib_prefix=no
16430 need_version=no
16431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16432 soname_spec='$libname$release$shared_ext$major'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 shlibpath_overrides_runpath=yes
16435 hardcode_into_libs=yes
16436 # ldd complains unless libraries are executable
16437 postinstall_cmds='chmod +x $lib'
16438 ;;
16439
16440 sunos4*)
16441 version_type=sunos
16442 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 shlibpath_overrides_runpath=yes
16446 if test yes = "$with_gnu_ld"; then
16447 need_lib_prefix=no
16448 fi
16449 need_version=yes
16450 ;;
16451
16452 sysv4 | sysv4.3*)
16453 version_type=linux # correct to gnu/linux during the next big refactor
16454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16455 soname_spec='$libname$release$shared_ext$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 case $host_vendor in
16458 sni)
16459 shlibpath_overrides_runpath=no
16460 need_lib_prefix=no
16461 runpath_var=LD_RUN_PATH
16462 ;;
16463 siemens)
16464 need_lib_prefix=no
16465 ;;
16466 motorola)
16467 need_lib_prefix=no
16468 need_version=no
16469 shlibpath_overrides_runpath=no
16470 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16471 ;;
16472 esac
16473 ;;
16474
16475 sysv4*MP*)
16476 if test -d /usr/nec; then
16477 version_type=linux # correct to gnu/linux during the next big refactor
16478 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16479 soname_spec='$libname$shared_ext.$major'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 fi
16482 ;;
16483
16484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16485 version_type=sco
16486 need_lib_prefix=no
16487 need_version=no
16488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16489 soname_spec='$libname$release$shared_ext$major'
16490 shlibpath_var=LD_LIBRARY_PATH
16491 shlibpath_overrides_runpath=yes
16492 hardcode_into_libs=yes
16493 if test yes = "$with_gnu_ld"; then
16494 sys_lib_search_path_spec='/Users/birby/homebrew/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16495 else
16496 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16497 case $host_os in
16498 sco3.2v5*)
16499 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16500 ;;
16501 esac
16502 fi
16503 sys_lib_dlsearch_path_spec='/usr/lib'
16504 ;;
16505
16506 tpf*)
16507 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16508 version_type=linux # correct to gnu/linux during the next big refactor
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16512 shlibpath_var=LD_LIBRARY_PATH
16513 shlibpath_overrides_runpath=no
16514 hardcode_into_libs=yes
16515 ;;
16516
16517 uts4*)
16518 version_type=linux # correct to gnu/linux during the next big refactor
16519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16520 soname_spec='$libname$release$shared_ext$major'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 ;;
16523
16524 *)
16525 dynamic_linker=no
16526 ;;
16527 esac
16528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16529 printf "%s\n" "$dynamic_linker" >&6; }
16530 test no = "$dynamic_linker" && can_build_shared=no
16531
16532 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16533 if test yes = "$GCC"; then
16534 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16535 fi
16536
16537 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16538 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16539 fi
16540
16541 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16542 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16543 fi
16544
16545 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16546 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16547
16548 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16549 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16550
16551 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16552 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16594 printf %s "checking how to hardcode library paths into programs... " >&6; }
16595 hardcode_action_CXX=
16596 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16597 test -n "$runpath_var_CXX" ||
16598 test yes = "$hardcode_automatic_CXX"; then
16599
16600 # We can hardcode non-existent directories.
16601 if test no != "$hardcode_direct_CXX" &&
16602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16603 # have to relink, otherwise we might link with an installed library
16604 # when we should be linking with a yet-to-be-installed one
16605 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16606 test no != "$hardcode_minus_L_CXX"; then
16607 # Linking always hardcodes the temporary library directory.
16608 hardcode_action_CXX=relink
16609 else
16610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16611 hardcode_action_CXX=immediate
16612 fi
16613 else
16614 # We cannot hardcode anything, or else we can only hardcode existing
16615 # directories.
16616 hardcode_action_CXX=unsupported
16617 fi
16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16619 printf "%s\n" "$hardcode_action_CXX" >&6; }
16620
16621 if test relink = "$hardcode_action_CXX" ||
16622 test yes = "$inherit_rpath_CXX"; then
16623 # Fast installation is not supported
16624 enable_fast_install=no
16625 elif test yes = "$shlibpath_overrides_runpath" ||
16626 test no = "$enable_shared"; then
16627 # Fast installation is not necessary
16628 enable_fast_install=needless
16629 fi
16630
16631
16632
16633
16634
16635
16636
16637 fi # test -n "$compiler"
16638
16639 CC=$lt_save_CC
16640 CFLAGS=$lt_save_CFLAGS
16641 LDCXX=$LD
16642 LD=$lt_save_LD
16643 GCC=$lt_save_GCC
16644 with_gnu_ld=$lt_save_with_gnu_ld
16645 lt_cv_path_LDCXX=$lt_cv_path_LD
16646 lt_cv_path_LD=$lt_save_path_LD
16647 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16648 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16649 fi # test yes != "$_lt_caught_CXX_error"
16650
16651 ac_ext=cpp
16652 ac_cpp='$CXXCPP $CPPFLAGS'
16653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671 ac_config_commands="$ac_config_commands libtool"
16672
16673
16674
16675
16676 # Only expand once:
16677
16678
16679
16680 # Extract the first word of "$CXX", so it can be a program name with args.
16681 set dummy $CXX; ac_word=$2
16682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16683 printf %s "checking for $ac_word... " >&6; }
16684 if test ${ac_cv_path_pfk_cxx_lib_path+y}
16685 then :
16686 printf %s "(cached) " >&6
16687 else $as_nop
16688 case $pfk_cxx_lib_path in
16689 [\\/]* | ?:[\\/]*)
16690 ac_cv_path_pfk_cxx_lib_path="$pfk_cxx_lib_path" # Let the user override the test with a path.
16691 ;;
16692 *)
16693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16694 for as_dir in $PATH
16695 do
16696 IFS=$as_save_IFS
16697 case $as_dir in #(((
16698 '') as_dir=./ ;;
16699 */) ;;
16700 *) as_dir=$as_dir/ ;;
16701 esac
16702 for ac_exec_ext in '' $ac_executable_extensions; do
16703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16704 ac_cv_path_pfk_cxx_lib_path="$as_dir$ac_word$ac_exec_ext"
16705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16706 break 2
16707 fi
16708 done
16709 done
16710 IFS=$as_save_IFS
16711
16712 test -z "$ac_cv_path_pfk_cxx_lib_path" && ac_cv_path_pfk_cxx_lib_path="$CXX "
16713 ;;
16714 esac
16715 fi
16716 pfk_cxx_lib_path=$ac_cv_path_pfk_cxx_lib_path
16717 if test -n "$pfk_cxx_lib_path"; then
16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pfk_cxx_lib_path" >&5
16719 printf "%s\n" "$pfk_cxx_lib_path" >&6; }
16720 else
16721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16722 printf "%s\n" "no" >&6; }
16723 fi
16724
16725
16726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking standard C++ library path" >&5
16727 printf %s "checking standard C++ library path... " >&6; }
16728 CXX_LIB_PATH=`dirname $pfk_cxx_lib_path | sed -e "s/bin/lib/"`
16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX_LIB_PATH " >&5
16730 printf "%s\n" "$CXX_LIB_PATH " >&6; }
16731
16732
16733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
16734 printf %s "checking maximum warning verbosity option... " >&6; }
16735 if test -n "$CXX"
16736 then
16737 if test "$GXX" = "yes"
16738 then
16739 ac_compile_warnings_opt='-Wall'
16740 elif test "$CXX" = "CC"
16741 then
16742 ac_compile_warnings_opt='+w2'
16743 fi
16744 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
16745 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
16746 fi
16747
16748 if test -n "$CC"
16749 then
16750 if test "$GCC" = "yes"
16751 then
16752 ac_compile_warnings_opt='-Wall'
16753 fi
16754 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
16755 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
16756 fi
16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
16758 printf "%s\n" "$ac_compile_warnings_msg" >&6; }
16759 unset ac_compile_warnings_msg
16760 unset ac_compile_warnings_opt
16761
16762
16763 #AC_COMPILE_ANSI
16764
16765 # AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
16766 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
16767 ac_ext=cpp
16768 ac_cpp='$CXXCPP $CPPFLAGS'
16769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16772 ac_success=no
16773
16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
16775 printf %s "checking whether $CXX supports C++14 features by default... " >&6; }
16776 if test ${ax_cv_cxx_compile_cxx14+y}
16777 then :
16778 printf %s "(cached) " >&6
16779 else $as_nop
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h. */
16782
16783
16784 // If the compiler admits that it is not ready for C++11, why torture it?
16785 // Hopefully, this will speed up the test.
16786
16787 #ifndef __cplusplus
16788
16789 #error "This is not a C++ compiler"
16790
16791 #elif __cplusplus < 201103L
16792
16793 #error "This is not a C++11 compiler"
16794
16795 #else
16796
16797 namespace cxx11
16798 {
16799
16800 namespace test_static_assert
16801 {
16802
16803 template <typename T>
16804 struct check
16805 {
16806 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16807 };
16808
16809 }
16810
16811 namespace test_final_override
16812 {
16813
16814 struct Base
16815 {
16816 virtual ~Base() {}
16817 virtual void f() {}
16818 };
16819
16820 struct Derived : public Base
16821 {
16822 virtual ~Derived() override {}
16823 virtual void f() override {}
16824 };
16825
16826 }
16827
16828 namespace test_double_right_angle_brackets
16829 {
16830
16831 template < typename T >
16832 struct check {};
16833
16834 typedef check<void> single_type;
16835 typedef check<check<void>> double_type;
16836 typedef check<check<check<void>>> triple_type;
16837 typedef check<check<check<check<void>>>> quadruple_type;
16838
16839 }
16840
16841 namespace test_decltype
16842 {
16843
16844 int
16845 f()
16846 {
16847 int a = 1;
16848 decltype(a) b = 2;
16849 return a + b;
16850 }
16851
16852 }
16853
16854 namespace test_type_deduction
16855 {
16856
16857 template < typename T1, typename T2 >
16858 struct is_same
16859 {
16860 static const bool value = false;
16861 };
16862
16863 template < typename T >
16864 struct is_same<T, T>
16865 {
16866 static const bool value = true;
16867 };
16868
16869 template < typename T1, typename T2 >
16870 auto
16871 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16872 {
16873 return a1 + a2;
16874 }
16875
16876 int
16877 test(const int c, volatile int v)
16878 {
16879 static_assert(is_same<int, decltype(0)>::value == true, "");
16880 static_assert(is_same<int, decltype(c)>::value == false, "");
16881 static_assert(is_same<int, decltype(v)>::value == false, "");
16882 auto ac = c;
16883 auto av = v;
16884 auto sumi = ac + av + 'x';
16885 auto sumf = ac + av + 1.0;
16886 static_assert(is_same<int, decltype(ac)>::value == true, "");
16887 static_assert(is_same<int, decltype(av)>::value == true, "");
16888 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16889 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16890 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16891 return (sumf > 0.0) ? sumi : add(c, v);
16892 }
16893
16894 }
16895
16896 namespace test_noexcept
16897 {
16898
16899 int f() { return 0; }
16900 int g() noexcept { return 0; }
16901
16902 static_assert(noexcept(f()) == false, "");
16903 static_assert(noexcept(g()) == true, "");
16904
16905 }
16906
16907 namespace test_constexpr
16908 {
16909
16910 template < typename CharT >
16911 unsigned long constexpr
16912 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16913 {
16914 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16915 }
16916
16917 template < typename CharT >
16918 unsigned long constexpr
16919 strlen_c(const CharT *const s) noexcept
16920 {
16921 return strlen_c_r(s, 0UL);
16922 }
16923
16924 static_assert(strlen_c("") == 0UL, "");
16925 static_assert(strlen_c("1") == 1UL, "");
16926 static_assert(strlen_c("example") == 7UL, "");
16927 static_assert(strlen_c("another\0example") == 7UL, "");
16928
16929 }
16930
16931 namespace test_rvalue_references
16932 {
16933
16934 template < int N >
16935 struct answer
16936 {
16937 static constexpr int value = N;
16938 };
16939
16940 answer<1> f(int&) { return answer<1>(); }
16941 answer<2> f(const int&) { return answer<2>(); }
16942 answer<3> f(int&&) { return answer<3>(); }
16943
16944 void
16945 test()
16946 {
16947 int i = 0;
16948 const int c = 0;
16949 static_assert(decltype(f(i))::value == 1, "");
16950 static_assert(decltype(f(c))::value == 2, "");
16951 static_assert(decltype(f(0))::value == 3, "");
16952 }
16953
16954 }
16955
16956 namespace test_uniform_initialization
16957 {
16958
16959 struct test
16960 {
16961 static const int zero {};
16962 static const int one {1};
16963 };
16964
16965 static_assert(test::zero == 0, "");
16966 static_assert(test::one == 1, "");
16967
16968 }
16969
16970 namespace test_lambdas
16971 {
16972
16973 void
16974 test1()
16975 {
16976 auto lambda1 = [](){};
16977 auto lambda2 = lambda1;
16978 lambda1();
16979 lambda2();
16980 }
16981
16982 int
16983 test2()
16984 {
16985 auto a = [](int i, int j){ return i + j; }(1, 2);
16986 auto b = []() -> int { return '0'; }();
16987 auto c = [=](){ return a + b; }();
16988 auto d = [&](){ return c; }();
16989 auto e = [a, &b](int x) mutable {
16990 const auto identity = [](int y){ return y; };
16991 for (auto i = 0; i < a; ++i)
16992 a += b--;
16993 return x + identity(a + b);
16994 }(0);
16995 return a + b + c + d + e;
16996 }
16997
16998 int
16999 test3()
17000 {
17001 const auto nullary = [](){ return 0; };
17002 const auto unary = [](int x){ return x; };
17003 using nullary_t = decltype(nullary);
17004 using unary_t = decltype(unary);
17005 const auto higher1st = [](nullary_t f){ return f(); };
17006 const auto higher2nd = [unary](nullary_t f1){
17007 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17008 };
17009 return higher1st(nullary) + higher2nd(nullary)(unary);
17010 }
17011
17012 }
17013
17014 namespace test_variadic_templates
17015 {
17016
17017 template <int...>
17018 struct sum;
17019
17020 template <int N0, int... N1toN>
17021 struct sum<N0, N1toN...>
17022 {
17023 static constexpr auto value = N0 + sum<N1toN...>::value;
17024 };
17025
17026 template <>
17027 struct sum<>
17028 {
17029 static constexpr auto value = 0;
17030 };
17031
17032 static_assert(sum<>::value == 0, "");
17033 static_assert(sum<1>::value == 1, "");
17034 static_assert(sum<23>::value == 23, "");
17035 static_assert(sum<1, 2>::value == 3, "");
17036 static_assert(sum<5, 5, 11>::value == 21, "");
17037 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17038
17039 }
17040
17041 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17042 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17043 // because of this.
17044 namespace test_template_alias_sfinae
17045 {
17046
17047 struct foo {};
17048
17049 template<typename T>
17050 using member = typename T::member_type;
17051
17052 template<typename T>
17053 void func(...) {}
17054
17055 template<typename T>
17056 void func(member<T>*) {}
17057
17058 void test();
17059
17060 void test() { func<foo>(0); }
17061
17062 }
17063
17064 } // namespace cxx11
17065
17066 #endif // __cplusplus >= 201103L
17067
17068
17069
17070
17071 // If the compiler admits that it is not ready for C++14, why torture it?
17072 // Hopefully, this will speed up the test.
17073
17074 #ifndef __cplusplus
17075
17076 #error "This is not a C++ compiler"
17077
17078 #elif __cplusplus < 201402L
17079
17080 #error "This is not a C++14 compiler"
17081
17082 #else
17083
17084 namespace cxx14
17085 {
17086
17087 namespace test_polymorphic_lambdas
17088 {
17089
17090 int
17091 test()
17092 {
17093 const auto lambda = [](auto&&... args){
17094 const auto istiny = [](auto x){
17095 return (sizeof(x) == 1UL) ? 1 : 0;
17096 };
17097 const int aretiny[] = { istiny(args)... };
17098 return aretiny[0];
17099 };
17100 return lambda(1, 1L, 1.0f, '1');
17101 }
17102
17103 }
17104
17105 namespace test_binary_literals
17106 {
17107
17108 constexpr auto ivii = 0b0000000000101010;
17109 static_assert(ivii == 42, "wrong value");
17110
17111 }
17112
17113 namespace test_generalized_constexpr
17114 {
17115
17116 template < typename CharT >
17117 constexpr unsigned long
17118 strlen_c(const CharT *const s) noexcept
17119 {
17120 auto length = 0UL;
17121 for (auto p = s; *p; ++p)
17122 ++length;
17123 return length;
17124 }
17125
17126 static_assert(strlen_c("") == 0UL, "");
17127 static_assert(strlen_c("x") == 1UL, "");
17128 static_assert(strlen_c("test") == 4UL, "");
17129 static_assert(strlen_c("another\0test") == 7UL, "");
17130
17131 }
17132
17133 namespace test_lambda_init_capture
17134 {
17135
17136 int
17137 test()
17138 {
17139 auto x = 0;
17140 const auto lambda1 = [a = x](int b){ return a + b; };
17141 const auto lambda2 = [a = lambda1(x)](){ return a; };
17142 return lambda2();
17143 }
17144
17145 }
17146
17147 namespace test_digit_separators
17148 {
17149
17150 constexpr auto ten_million = 100'000'000;
17151 static_assert(ten_million == 100000000, "");
17152
17153 }
17154
17155 namespace test_return_type_deduction
17156 {
17157
17158 auto f(int& x) { return x; }
17159 decltype(auto) g(int& x) { return x; }
17160
17161 template < typename T1, typename T2 >
17162 struct is_same
17163 {
17164 static constexpr auto value = false;
17165 };
17166
17167 template < typename T >
17168 struct is_same<T, T>
17169 {
17170 static constexpr auto value = true;
17171 };
17172
17173 int
17174 test()
17175 {
17176 auto x = 0;
17177 static_assert(is_same<int, decltype(f(x))>::value, "");
17178 static_assert(is_same<int&, decltype(g(x))>::value, "");
17179 return x;
17180 }
17181
17182 }
17183
17184 } // namespace cxx14
17185
17186 #endif // __cplusplus >= 201402L
17187
17188
17189
17190 _ACEOF
17191 if ac_fn_cxx_try_compile "$LINENO"
17192 then :
17193 ax_cv_cxx_compile_cxx14=yes
17194 else $as_nop
17195 ax_cv_cxx_compile_cxx14=no
17196 fi
17197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17198 fi
17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
17200 printf "%s\n" "$ax_cv_cxx_compile_cxx14" >&6; }
17201 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
17202 ac_success=yes
17203 fi
17204
17205 if test x$ac_success = xno; then
17206 for alternative in ${ax_cxx_compile_alternatives}; do
17207 switch="-std=gnu++${alternative}"
17208 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
17210 printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
17211 if eval test \${$cachevar+y}
17212 then :
17213 printf %s "(cached) " >&6
17214 else $as_nop
17215 ac_save_CXX="$CXX"
17216 CXX="$CXX $switch"
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17219
17220
17221 // If the compiler admits that it is not ready for C++11, why torture it?
17222 // Hopefully, this will speed up the test.
17223
17224 #ifndef __cplusplus
17225
17226 #error "This is not a C++ compiler"
17227
17228 #elif __cplusplus < 201103L
17229
17230 #error "This is not a C++11 compiler"
17231
17232 #else
17233
17234 namespace cxx11
17235 {
17236
17237 namespace test_static_assert
17238 {
17239
17240 template <typename T>
17241 struct check
17242 {
17243 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17244 };
17245
17246 }
17247
17248 namespace test_final_override
17249 {
17250
17251 struct Base
17252 {
17253 virtual ~Base() {}
17254 virtual void f() {}
17255 };
17256
17257 struct Derived : public Base
17258 {
17259 virtual ~Derived() override {}
17260 virtual void f() override {}
17261 };
17262
17263 }
17264
17265 namespace test_double_right_angle_brackets
17266 {
17267
17268 template < typename T >
17269 struct check {};
17270
17271 typedef check<void> single_type;
17272 typedef check<check<void>> double_type;
17273 typedef check<check<check<void>>> triple_type;
17274 typedef check<check<check<check<void>>>> quadruple_type;
17275
17276 }
17277
17278 namespace test_decltype
17279 {
17280
17281 int
17282 f()
17283 {
17284 int a = 1;
17285 decltype(a) b = 2;
17286 return a + b;
17287 }
17288
17289 }
17290
17291 namespace test_type_deduction
17292 {
17293
17294 template < typename T1, typename T2 >
17295 struct is_same
17296 {
17297 static const bool value = false;
17298 };
17299
17300 template < typename T >
17301 struct is_same<T, T>
17302 {
17303 static const bool value = true;
17304 };
17305
17306 template < typename T1, typename T2 >
17307 auto
17308 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17309 {
17310 return a1 + a2;
17311 }
17312
17313 int
17314 test(const int c, volatile int v)
17315 {
17316 static_assert(is_same<int, decltype(0)>::value == true, "");
17317 static_assert(is_same<int, decltype(c)>::value == false, "");
17318 static_assert(is_same<int, decltype(v)>::value == false, "");
17319 auto ac = c;
17320 auto av = v;
17321 auto sumi = ac + av + 'x';
17322 auto sumf = ac + av + 1.0;
17323 static_assert(is_same<int, decltype(ac)>::value == true, "");
17324 static_assert(is_same<int, decltype(av)>::value == true, "");
17325 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17326 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17327 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17328 return (sumf > 0.0) ? sumi : add(c, v);
17329 }
17330
17331 }
17332
17333 namespace test_noexcept
17334 {
17335
17336 int f() { return 0; }
17337 int g() noexcept { return 0; }
17338
17339 static_assert(noexcept(f()) == false, "");
17340 static_assert(noexcept(g()) == true, "");
17341
17342 }
17343
17344 namespace test_constexpr
17345 {
17346
17347 template < typename CharT >
17348 unsigned long constexpr
17349 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17350 {
17351 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17352 }
17353
17354 template < typename CharT >
17355 unsigned long constexpr
17356 strlen_c(const CharT *const s) noexcept
17357 {
17358 return strlen_c_r(s, 0UL);
17359 }
17360
17361 static_assert(strlen_c("") == 0UL, "");
17362 static_assert(strlen_c("1") == 1UL, "");
17363 static_assert(strlen_c("example") == 7UL, "");
17364 static_assert(strlen_c("another\0example") == 7UL, "");
17365
17366 }
17367
17368 namespace test_rvalue_references
17369 {
17370
17371 template < int N >
17372 struct answer
17373 {
17374 static constexpr int value = N;
17375 };
17376
17377 answer<1> f(int&) { return answer<1>(); }
17378 answer<2> f(const int&) { return answer<2>(); }
17379 answer<3> f(int&&) { return answer<3>(); }
17380
17381 void
17382 test()
17383 {
17384 int i = 0;
17385 const int c = 0;
17386 static_assert(decltype(f(i))::value == 1, "");
17387 static_assert(decltype(f(c))::value == 2, "");
17388 static_assert(decltype(f(0))::value == 3, "");
17389 }
17390
17391 }
17392
17393 namespace test_uniform_initialization
17394 {
17395
17396 struct test
17397 {
17398 static const int zero {};
17399 static const int one {1};
17400 };
17401
17402 static_assert(test::zero == 0, "");
17403 static_assert(test::one == 1, "");
17404
17405 }
17406
17407 namespace test_lambdas
17408 {
17409
17410 void
17411 test1()
17412 {
17413 auto lambda1 = [](){};
17414 auto lambda2 = lambda1;
17415 lambda1();
17416 lambda2();
17417 }
17418
17419 int
17420 test2()
17421 {
17422 auto a = [](int i, int j){ return i + j; }(1, 2);
17423 auto b = []() -> int { return '0'; }();
17424 auto c = [=](){ return a + b; }();
17425 auto d = [&](){ return c; }();
17426 auto e = [a, &b](int x) mutable {
17427 const auto identity = [](int y){ return y; };
17428 for (auto i = 0; i < a; ++i)
17429 a += b--;
17430 return x + identity(a + b);
17431 }(0);
17432 return a + b + c + d + e;
17433 }
17434
17435 int
17436 test3()
17437 {
17438 const auto nullary = [](){ return 0; };
17439 const auto unary = [](int x){ return x; };
17440 using nullary_t = decltype(nullary);
17441 using unary_t = decltype(unary);
17442 const auto higher1st = [](nullary_t f){ return f(); };
17443 const auto higher2nd = [unary](nullary_t f1){
17444 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17445 };
17446 return higher1st(nullary) + higher2nd(nullary)(unary);
17447 }
17448
17449 }
17450
17451 namespace test_variadic_templates
17452 {
17453
17454 template <int...>
17455 struct sum;
17456
17457 template <int N0, int... N1toN>
17458 struct sum<N0, N1toN...>
17459 {
17460 static constexpr auto value = N0 + sum<N1toN...>::value;
17461 };
17462
17463 template <>
17464 struct sum<>
17465 {
17466 static constexpr auto value = 0;
17467 };
17468
17469 static_assert(sum<>::value == 0, "");
17470 static_assert(sum<1>::value == 1, "");
17471 static_assert(sum<23>::value == 23, "");
17472 static_assert(sum<1, 2>::value == 3, "");
17473 static_assert(sum<5, 5, 11>::value == 21, "");
17474 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17475
17476 }
17477
17478 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17479 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17480 // because of this.
17481 namespace test_template_alias_sfinae
17482 {
17483
17484 struct foo {};
17485
17486 template<typename T>
17487 using member = typename T::member_type;
17488
17489 template<typename T>
17490 void func(...) {}
17491
17492 template<typename T>
17493 void func(member<T>*) {}
17494
17495 void test();
17496
17497 void test() { func<foo>(0); }
17498
17499 }
17500
17501 } // namespace cxx11
17502
17503 #endif // __cplusplus >= 201103L
17504
17505
17506
17507
17508 // If the compiler admits that it is not ready for C++14, why torture it?
17509 // Hopefully, this will speed up the test.
17510
17511 #ifndef __cplusplus
17512
17513 #error "This is not a C++ compiler"
17514
17515 #elif __cplusplus < 201402L
17516
17517 #error "This is not a C++14 compiler"
17518
17519 #else
17520
17521 namespace cxx14
17522 {
17523
17524 namespace test_polymorphic_lambdas
17525 {
17526
17527 int
17528 test()
17529 {
17530 const auto lambda = [](auto&&... args){
17531 const auto istiny = [](auto x){
17532 return (sizeof(x) == 1UL) ? 1 : 0;
17533 };
17534 const int aretiny[] = { istiny(args)... };
17535 return aretiny[0];
17536 };
17537 return lambda(1, 1L, 1.0f, '1');
17538 }
17539
17540 }
17541
17542 namespace test_binary_literals
17543 {
17544
17545 constexpr auto ivii = 0b0000000000101010;
17546 static_assert(ivii == 42, "wrong value");
17547
17548 }
17549
17550 namespace test_generalized_constexpr
17551 {
17552
17553 template < typename CharT >
17554 constexpr unsigned long
17555 strlen_c(const CharT *const s) noexcept
17556 {
17557 auto length = 0UL;
17558 for (auto p = s; *p; ++p)
17559 ++length;
17560 return length;
17561 }
17562
17563 static_assert(strlen_c("") == 0UL, "");
17564 static_assert(strlen_c("x") == 1UL, "");
17565 static_assert(strlen_c("test") == 4UL, "");
17566 static_assert(strlen_c("another\0test") == 7UL, "");
17567
17568 }
17569
17570 namespace test_lambda_init_capture
17571 {
17572
17573 int
17574 test()
17575 {
17576 auto x = 0;
17577 const auto lambda1 = [a = x](int b){ return a + b; };
17578 const auto lambda2 = [a = lambda1(x)](){ return a; };
17579 return lambda2();
17580 }
17581
17582 }
17583
17584 namespace test_digit_separators
17585 {
17586
17587 constexpr auto ten_million = 100'000'000;
17588 static_assert(ten_million == 100000000, "");
17589
17590 }
17591
17592 namespace test_return_type_deduction
17593 {
17594
17595 auto f(int& x) { return x; }
17596 decltype(auto) g(int& x) { return x; }
17597
17598 template < typename T1, typename T2 >
17599 struct is_same
17600 {
17601 static constexpr auto value = false;
17602 };
17603
17604 template < typename T >
17605 struct is_same<T, T>
17606 {
17607 static constexpr auto value = true;
17608 };
17609
17610 int
17611 test()
17612 {
17613 auto x = 0;
17614 static_assert(is_same<int, decltype(f(x))>::value, "");
17615 static_assert(is_same<int&, decltype(g(x))>::value, "");
17616 return x;
17617 }
17618
17619 }
17620
17621 } // namespace cxx14
17622
17623 #endif // __cplusplus >= 201402L
17624
17625
17626
17627 _ACEOF
17628 if ac_fn_cxx_try_compile "$LINENO"
17629 then :
17630 eval $cachevar=yes
17631 else $as_nop
17632 eval $cachevar=no
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17635 CXX="$ac_save_CXX"
17636 fi
17637 eval ac_res=\$$cachevar
17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17639 printf "%s\n" "$ac_res" >&6; }
17640 if eval test x\$$cachevar = xyes; then
17641 CXX="$CXX $switch"
17642 if test -n "$CXXCPP" ; then
17643 CXXCPP="$CXXCPP $switch"
17644 fi
17645 ac_success=yes
17646 break
17647 fi
17648 done
17649 fi
17650
17651 if test x$ac_success = xno; then
17652 for alternative in ${ax_cxx_compile_alternatives}; do
17653 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17654 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
17656 printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
17657 if eval test \${$cachevar+y}
17658 then :
17659 printf %s "(cached) " >&6
17660 else $as_nop
17661 ac_save_CXX="$CXX"
17662 CXX="$CXX $switch"
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17665
17666
17667 // If the compiler admits that it is not ready for C++11, why torture it?
17668 // Hopefully, this will speed up the test.
17669
17670 #ifndef __cplusplus
17671
17672 #error "This is not a C++ compiler"
17673
17674 #elif __cplusplus < 201103L
17675
17676 #error "This is not a C++11 compiler"
17677
17678 #else
17679
17680 namespace cxx11
17681 {
17682
17683 namespace test_static_assert
17684 {
17685
17686 template <typename T>
17687 struct check
17688 {
17689 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17690 };
17691
17692 }
17693
17694 namespace test_final_override
17695 {
17696
17697 struct Base
17698 {
17699 virtual ~Base() {}
17700 virtual void f() {}
17701 };
17702
17703 struct Derived : public Base
17704 {
17705 virtual ~Derived() override {}
17706 virtual void f() override {}
17707 };
17708
17709 }
17710
17711 namespace test_double_right_angle_brackets
17712 {
17713
17714 template < typename T >
17715 struct check {};
17716
17717 typedef check<void> single_type;
17718 typedef check<check<void>> double_type;
17719 typedef check<check<check<void>>> triple_type;
17720 typedef check<check<check<check<void>>>> quadruple_type;
17721
17722 }
17723
17724 namespace test_decltype
17725 {
17726
17727 int
17728 f()
17729 {
17730 int a = 1;
17731 decltype(a) b = 2;
17732 return a + b;
17733 }
17734
17735 }
17736
17737 namespace test_type_deduction
17738 {
17739
17740 template < typename T1, typename T2 >
17741 struct is_same
17742 {
17743 static const bool value = false;
17744 };
17745
17746 template < typename T >
17747 struct is_same<T, T>
17748 {
17749 static const bool value = true;
17750 };
17751
17752 template < typename T1, typename T2 >
17753 auto
17754 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17755 {
17756 return a1 + a2;
17757 }
17758
17759 int
17760 test(const int c, volatile int v)
17761 {
17762 static_assert(is_same<int, decltype(0)>::value == true, "");
17763 static_assert(is_same<int, decltype(c)>::value == false, "");
17764 static_assert(is_same<int, decltype(v)>::value == false, "");
17765 auto ac = c;
17766 auto av = v;
17767 auto sumi = ac + av + 'x';
17768 auto sumf = ac + av + 1.0;
17769 static_assert(is_same<int, decltype(ac)>::value == true, "");
17770 static_assert(is_same<int, decltype(av)>::value == true, "");
17771 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17772 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17773 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17774 return (sumf > 0.0) ? sumi : add(c, v);
17775 }
17776
17777 }
17778
17779 namespace test_noexcept
17780 {
17781
17782 int f() { return 0; }
17783 int g() noexcept { return 0; }
17784
17785 static_assert(noexcept(f()) == false, "");
17786 static_assert(noexcept(g()) == true, "");
17787
17788 }
17789
17790 namespace test_constexpr
17791 {
17792
17793 template < typename CharT >
17794 unsigned long constexpr
17795 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17796 {
17797 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17798 }
17799
17800 template < typename CharT >
17801 unsigned long constexpr
17802 strlen_c(const CharT *const s) noexcept
17803 {
17804 return strlen_c_r(s, 0UL);
17805 }
17806
17807 static_assert(strlen_c("") == 0UL, "");
17808 static_assert(strlen_c("1") == 1UL, "");
17809 static_assert(strlen_c("example") == 7UL, "");
17810 static_assert(strlen_c("another\0example") == 7UL, "");
17811
17812 }
17813
17814 namespace test_rvalue_references
17815 {
17816
17817 template < int N >
17818 struct answer
17819 {
17820 static constexpr int value = N;
17821 };
17822
17823 answer<1> f(int&) { return answer<1>(); }
17824 answer<2> f(const int&) { return answer<2>(); }
17825 answer<3> f(int&&) { return answer<3>(); }
17826
17827 void
17828 test()
17829 {
17830 int i = 0;
17831 const int c = 0;
17832 static_assert(decltype(f(i))::value == 1, "");
17833 static_assert(decltype(f(c))::value == 2, "");
17834 static_assert(decltype(f(0))::value == 3, "");
17835 }
17836
17837 }
17838
17839 namespace test_uniform_initialization
17840 {
17841
17842 struct test
17843 {
17844 static const int zero {};
17845 static const int one {1};
17846 };
17847
17848 static_assert(test::zero == 0, "");
17849 static_assert(test::one == 1, "");
17850
17851 }
17852
17853 namespace test_lambdas
17854 {
17855
17856 void
17857 test1()
17858 {
17859 auto lambda1 = [](){};
17860 auto lambda2 = lambda1;
17861 lambda1();
17862 lambda2();
17863 }
17864
17865 int
17866 test2()
17867 {
17868 auto a = [](int i, int j){ return i + j; }(1, 2);
17869 auto b = []() -> int { return '0'; }();
17870 auto c = [=](){ return a + b; }();
17871 auto d = [&](){ return c; }();
17872 auto e = [a, &b](int x) mutable {
17873 const auto identity = [](int y){ return y; };
17874 for (auto i = 0; i < a; ++i)
17875 a += b--;
17876 return x + identity(a + b);
17877 }(0);
17878 return a + b + c + d + e;
17879 }
17880
17881 int
17882 test3()
17883 {
17884 const auto nullary = [](){ return 0; };
17885 const auto unary = [](int x){ return x; };
17886 using nullary_t = decltype(nullary);
17887 using unary_t = decltype(unary);
17888 const auto higher1st = [](nullary_t f){ return f(); };
17889 const auto higher2nd = [unary](nullary_t f1){
17890 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17891 };
17892 return higher1st(nullary) + higher2nd(nullary)(unary);
17893 }
17894
17895 }
17896
17897 namespace test_variadic_templates
17898 {
17899
17900 template <int...>
17901 struct sum;
17902
17903 template <int N0, int... N1toN>
17904 struct sum<N0, N1toN...>
17905 {
17906 static constexpr auto value = N0 + sum<N1toN...>::value;
17907 };
17908
17909 template <>
17910 struct sum<>
17911 {
17912 static constexpr auto value = 0;
17913 };
17914
17915 static_assert(sum<>::value == 0, "");
17916 static_assert(sum<1>::value == 1, "");
17917 static_assert(sum<23>::value == 23, "");
17918 static_assert(sum<1, 2>::value == 3, "");
17919 static_assert(sum<5, 5, 11>::value == 21, "");
17920 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17921
17922 }
17923
17924 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17925 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17926 // because of this.
17927 namespace test_template_alias_sfinae
17928 {
17929
17930 struct foo {};
17931
17932 template<typename T>
17933 using member = typename T::member_type;
17934
17935 template<typename T>
17936 void func(...) {}
17937
17938 template<typename T>
17939 void func(member<T>*) {}
17940
17941 void test();
17942
17943 void test() { func<foo>(0); }
17944
17945 }
17946
17947 } // namespace cxx11
17948
17949 #endif // __cplusplus >= 201103L
17950
17951
17952
17953
17954 // If the compiler admits that it is not ready for C++14, why torture it?
17955 // Hopefully, this will speed up the test.
17956
17957 #ifndef __cplusplus
17958
17959 #error "This is not a C++ compiler"
17960
17961 #elif __cplusplus < 201402L
17962
17963 #error "This is not a C++14 compiler"
17964
17965 #else
17966
17967 namespace cxx14
17968 {
17969
17970 namespace test_polymorphic_lambdas
17971 {
17972
17973 int
17974 test()
17975 {
17976 const auto lambda = [](auto&&... args){
17977 const auto istiny = [](auto x){
17978 return (sizeof(x) == 1UL) ? 1 : 0;
17979 };
17980 const int aretiny[] = { istiny(args)... };
17981 return aretiny[0];
17982 };
17983 return lambda(1, 1L, 1.0f, '1');
17984 }
17985
17986 }
17987
17988 namespace test_binary_literals
17989 {
17990
17991 constexpr auto ivii = 0b0000000000101010;
17992 static_assert(ivii == 42, "wrong value");
17993
17994 }
17995
17996 namespace test_generalized_constexpr
17997 {
17998
17999 template < typename CharT >
18000 constexpr unsigned long
18001 strlen_c(const CharT *const s) noexcept
18002 {
18003 auto length = 0UL;
18004 for (auto p = s; *p; ++p)
18005 ++length;
18006 return length;
18007 }
18008
18009 static_assert(strlen_c("") == 0UL, "");
18010 static_assert(strlen_c("x") == 1UL, "");
18011 static_assert(strlen_c("test") == 4UL, "");
18012 static_assert(strlen_c("another\0test") == 7UL, "");
18013
18014 }
18015
18016 namespace test_lambda_init_capture
18017 {
18018
18019 int
18020 test()
18021 {
18022 auto x = 0;
18023 const auto lambda1 = [a = x](int b){ return a + b; };
18024 const auto lambda2 = [a = lambda1(x)](){ return a; };
18025 return lambda2();
18026 }
18027
18028 }
18029
18030 namespace test_digit_separators
18031 {
18032
18033 constexpr auto ten_million = 100'000'000;
18034 static_assert(ten_million == 100000000, "");
18035
18036 }
18037
18038 namespace test_return_type_deduction
18039 {
18040
18041 auto f(int& x) { return x; }
18042 decltype(auto) g(int& x) { return x; }
18043
18044 template < typename T1, typename T2 >
18045 struct is_same
18046 {
18047 static constexpr auto value = false;
18048 };
18049
18050 template < typename T >
18051 struct is_same<T, T>
18052 {
18053 static constexpr auto value = true;
18054 };
18055
18056 int
18057 test()
18058 {
18059 auto x = 0;
18060 static_assert(is_same<int, decltype(f(x))>::value, "");
18061 static_assert(is_same<int&, decltype(g(x))>::value, "");
18062 return x;
18063 }
18064
18065 }
18066
18067 } // namespace cxx14
18068
18069 #endif // __cplusplus >= 201402L
18070
18071
18072
18073 _ACEOF
18074 if ac_fn_cxx_try_compile "$LINENO"
18075 then :
18076 eval $cachevar=yes
18077 else $as_nop
18078 eval $cachevar=no
18079 fi
18080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18081 CXX="$ac_save_CXX"
18082 fi
18083 eval ac_res=\$$cachevar
18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18085 printf "%s\n" "$ac_res" >&6; }
18086 if eval test x\$$cachevar = xyes; then
18087 CXX="$CXX $switch"
18088 if test -n "$CXXCPP" ; then
18089 CXXCPP="$CXXCPP $switch"
18090 fi
18091 ac_success=yes
18092 break
18093 fi
18094 done
18095 if test x$ac_success = xyes; then
18096 break
18097 fi
18098 done
18099 fi
18100 ac_ext=cpp
18101 ac_cpp='$CXXCPP $CPPFLAGS'
18102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18105
18106 if test x$ax_cxx_compile_cxx14_required = xtrue; then
18107 if test x$ac_success = xno; then
18108 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
18109 fi
18110 fi
18111 if test x$ac_success = xno; then
18112 HAVE_CXX14=0
18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
18114 printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;}
18115 else
18116 HAVE_CXX14=1
18117
18118 printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h
18119
18120 fi
18121
18122
18123
18124 # Extract the first word of "gmake", so it can be a program name with args.
18125 set dummy gmake; ac_word=$2
18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18127 printf %s "checking for $ac_word... " >&6; }
18128 if test ${ac_cv_prog_GMAKE+y}
18129 then :
18130 printf %s "(cached) " >&6
18131 else $as_nop
18132 if test -n "$GMAKE"; then
18133 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
18134 else
18135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18136 for as_dir in $PATH
18137 do
18138 IFS=$as_save_IFS
18139 case $as_dir in #(((
18140 '') as_dir=./ ;;
18141 */) ;;
18142 *) as_dir=$as_dir/ ;;
18143 esac
18144 for ac_exec_ext in '' $ac_executable_extensions; do
18145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18146 ac_cv_prog_GMAKE="gmake"
18147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18148 break 2
18149 fi
18150 done
18151 done
18152 IFS=$as_save_IFS
18153
18154 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="make"
18155 fi
18156 fi
18157 GMAKE=$ac_cv_prog_GMAKE
18158 if test -n "$GMAKE"; then
18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
18160 printf "%s\n" "$GMAKE" >&6; }
18161 else
18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18163 printf "%s\n" "no" >&6; }
18164 fi
18165
18166
18167
18168
18169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
18170 printf %s "checking for main in -lstdc++... " >&6; }
18171 if test ${ac_cv_lib_stdcpp_main+y}
18172 then :
18173 printf %s "(cached) " >&6
18174 else $as_nop
18175 ac_check_lib_save_LIBS=$LIBS
18176 LIBS="-lstdc++ $LIBS"
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18179
18180 namespace conftest {
18181 extern "C" int main ();
18182 }
18183 int
18184 main (void)
18185 {
18186 return conftest::main ();
18187 ;
18188 return 0;
18189 }
18190 _ACEOF
18191 if ac_fn_cxx_try_link "$LINENO"
18192 then :
18193 ac_cv_lib_stdcpp_main=yes
18194 else $as_nop
18195 ac_cv_lib_stdcpp_main=no
18196 fi
18197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18198 conftest$ac_exeext conftest.$ac_ext
18199 LIBS=$ac_check_lib_save_LIBS
18200 fi
18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
18202 printf "%s\n" "$ac_cv_lib_stdcpp_main" >&6; }
18203 if test "x$ac_cv_lib_stdcpp_main" = xyes
18204 then :
18205 LIBSTDCPP="lstdc++"
18206 else $as_nop
18207 LIBSTDCPP=
18208 fi
18209
18210
18211
18212
18213
18214
18215 # Check whether --with-cfitsio was given.
18216 if test ${with_cfitsio+y}
18217 then :
18218 withval=$with_cfitsio; with_cfitsio=$withval
18219 if test "${with_cfitsio}" != yes; then
18220 cfitsio_include="$withval/include"
18221 cfitsio_libdir="$withval/lib"
18222 fi
18223 else $as_nop
18224 cfitsio_include="/usr/local/cfitsio/include"
18225 cfitsio_libdir="/usr/local/cfitsio/lib"
18226
18227 fi
18228
18229
18230
18231 # Check whether --with-cfitsio-include was given.
18232 if test ${with_cfitsio_include+y}
18233 then :
18234 withval=$with_cfitsio_include; cfitsio_include="$withval"
18235 fi
18236
18237
18238
18239 # Check whether --with-cfitsio-libdir was given.
18240 if test ${with_cfitsio_libdir+y}
18241 then :
18242 withval=$with_cfitsio_libdir; cfitsio_libdir="$withval"
18243 fi
18244
18245
18246 if test "${with_cfitsio}" != no ; then
18247 OLD_LIBS=$LIBS
18248 OLD_LDFLAGS=$LDFLAGS
18249 OLD_CPPFLAGS=$CPPFLAGS
18250
18251 if test "${cfitsio_libdir}" ; then
18252 LDFLAGS="$LDFLAGS -L${cfitsio_libdir}"
18253 RDFLAGS="${cfitsio_libdir}"
18254 fi
18255 if test "${cfitsio_include}" ; then
18256 CPPFLAGS="$CPPFLAGS -I${cfitsio_include}"
18257 fi
18258
18259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffpss in -lcfitsio" >&5
18260 printf %s "checking for ffpss in -lcfitsio... " >&6; }
18261 if test ${ac_cv_lib_cfitsio_ffpss+y}
18262 then :
18263 printf %s "(cached) " >&6
18264 else $as_nop
18265 ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-lcfitsio $LIBS"
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h. */
18269
18270 namespace conftest {
18271 extern "C" int ffpss ();
18272 }
18273 int
18274 main (void)
18275 {
18276 return conftest::ffpss ();
18277 ;
18278 return 0;
18279 }
18280 _ACEOF
18281 if ac_fn_cxx_try_link "$LINENO"
18282 then :
18283 ac_cv_lib_cfitsio_ffpss=yes
18284 else $as_nop
18285 ac_cv_lib_cfitsio_ffpss=no
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18288 conftest$ac_exeext conftest.$ac_ext
18289 LIBS=$ac_check_lib_save_LIBS
18290 fi
18291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffpss" >&5
18292 printf "%s\n" "$ac_cv_lib_cfitsio_ffpss" >&6; }
18293 if test "x$ac_cv_lib_cfitsio_ffpss" = xyes
18294 then :
18295 printf "%s\n" "#define HAVE_LIBCFITSIO 1" >>confdefs.h
18296
18297 LIBS="-lcfitsio $LIBS"
18298
18299 else $as_nop
18300 no_good=yes
18301 fi
18302
18303 ac_fn_cxx_check_header_compile "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default"
18304 if test "x$ac_cv_header_fitsio_h" = xyes
18305 then :
18306
18307 else $as_nop
18308 no_good=yes
18309 fi
18310
18311 if test "$no_good" = yes; then
18312 as_fn_error $? "cfitsio NOT found" "$LINENO" 5
18313
18314 LIBS=$OLD_LIBS
18315 LDFLAGS=$OLD_LDFLAGS
18316 CPPFLAGS=$OLD_CPPFLAGS
18317 else
18318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cfitsio found." >&5
18319 printf "%s\n" "cfitsio found." >&6; }
18320
18321
18322 printf "%s\n" "#define HAVE_PKG_cfitsio 1" >>confdefs.h
18323
18324
18325 fi
18326
18327 fi
18328
18329
18330
18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
18332 printf %s "checking whether the compiler implements namespaces... " >&6; }
18333 if test ${ax_cv_cxx_namespaces+y}
18334 then :
18335 printf %s "(cached) " >&6
18336 else $as_nop
18337 ac_ext=cpp
18338 ac_cpp='$CXXCPP $CPPFLAGS'
18339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18342
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 namespace Outer { namespace Inner { int i = 0; }}
18346 using namespace Outer::Inner; int foo(void) { return i;}
18347 _ACEOF
18348 if ac_fn_cxx_try_compile "$LINENO"
18349 then :
18350 ax_cv_cxx_namespaces=yes
18351 else $as_nop
18352 ax_cv_cxx_namespaces=no
18353 fi
18354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18355 ac_ext=cpp
18356 ac_cpp='$CXXCPP $CPPFLAGS'
18357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18360
18361
18362 fi
18363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
18364 printf "%s\n" "$ax_cv_cxx_namespaces" >&6; }
18365 if test "$ax_cv_cxx_namespaces" = yes; then
18366
18367 printf "%s\n" "#define HAVE_NAMESPACES /**/" >>confdefs.h
18368
18369 fi
18370
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler has valarray<T>" >&5
18372 printf %s "checking whether the compiler has valarray<T>... " >&6; }
18373 if test ${ax_cv_cxx_have_valarray+y}
18374 then :
18375 printf %s "(cached) " >&6
18376 else $as_nop
18377
18378 ac_ext=cpp
18379 ac_cpp='$CXXCPP $CPPFLAGS'
18380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18383
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #include <valarray>
18387 #ifdef HAVE_NAMESPACES
18388 using namespace std;
18389 #endif
18390 int
18391 main (void)
18392 {
18393 valarray<float> x(100); return 0;
18394 ;
18395 return 0;
18396 }
18397 _ACEOF
18398 if ac_fn_cxx_try_compile "$LINENO"
18399 then :
18400 ax_cv_cxx_have_valarray=yes
18401 else $as_nop
18402 ax_cv_cxx_have_valarray=no
18403 fi
18404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18405 ac_ext=cpp
18406 ac_cpp='$CXXCPP $CPPFLAGS'
18407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18410
18411
18412 fi
18413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_valarray" >&5
18414 printf "%s\n" "$ax_cv_cxx_have_valarray" >&6; }
18415 if test "$ax_cv_cxx_have_valarray" = yes; then
18416
18417 printf "%s\n" "#define HAVE_VALARRAY /**/" >>confdefs.h
18418
18419 fi
18420
18421 if test "x$ax_cv_cxx_have_valarray" != xyes; then
18422 as_fn_error $? "valarray<T> is missing and required. " "$LINENO" 5
18423 fi
18424
18425 ac_fn_cxx_check_header_compile "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
18426 if test "x$ac_cv_header_sstream" = xyes
18427 then :
18428
18429 else $as_nop
18430 ac_fn_cxx_check_header_compile "$LINENO" "strstream" "ac_cv_header_strstream" "$ac_includes_default"
18431 if test "x$ac_cv_header_strstream" = xyes
18432 then :
18433
18434 printf "%s\n" "#define SSTREAM_DEFECT 1" >>confdefs.h
18435
18436 else $as_nop
18437 as_fn_error $? "You have neither the <sstream> or <strstream> header file" "$LINENO" 5
18438
18439 fi
18440
18441 fi
18442
18443
18444 # Check whether --enable-msvc-code was given.
18445 if test ${enable_msvc_code+y}
18446 then :
18447 enableval=$enable_msvc_code;
18448 printf "%s\n" "#define ITERATORBASE_DEFECT 1" >>confdefs.h
18449
18450
18451 printf "%s\n" "#define SPEC_TEMPLATE_DECL_DEFECT 1" >>confdefs.h
18452
18453
18454 printf "%s\n" "#define TEMPLATE_AMBIG7_DEFECT 1" >>confdefs.h
18455
18456
18457 fi
18458
18459
18460
18461
18462
18463 ac_config_files="$ac_config_files Makefile Doxyfile CCfits.pc vs.net/Makefile"
18464
18465 cat >confcache <<\_ACEOF
18466 # This file is a shell script that caches the results of configure
18467 # tests run on this system so they can be shared between configure
18468 # scripts and configure runs, see configure's option --config-cache.
18469 # It is not useful on other systems. If it contains results you don't
18470 # want to keep, you may remove or edit it.
18471 #
18472 # config.status only pays attention to the cache file if you give it
18473 # the --recheck option to rerun configure.
18474 #
18475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18477 # following values.
18478
18479 _ACEOF
18480
18481 # The following way of writing the cache mishandles newlines in values,
18482 # but we know of no workaround that is simple, portable, and efficient.
18483 # So, we kill variables containing newlines.
18484 # Ultrix sh set writes to stderr and can't be redirected directly,
18485 # and sets the high bit in the cache file unless we assign to the vars.
18486 (
18487 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18488 eval ac_val=\$$ac_var
18489 case $ac_val in #(
18490 *${as_nl}*)
18491 case $ac_var in #(
18492 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18493 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18494 esac
18495 case $ac_var in #(
18496 _ | IFS | as_nl) ;; #(
18497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18498 *) { eval $ac_var=; unset $ac_var;} ;;
18499 esac ;;
18500 esac
18501 done
18502
18503 (set) 2>&1 |
18504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18505 *${as_nl}ac_space=\ *)
18506 # `set' does not quote correctly, so add quotes: double-quote
18507 # substitution turns \\\\ into \\, and sed turns \\ into \.
18508 sed -n \
18509 "s/'/'\\\\''/g;
18510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18511 ;; #(
18512 *)
18513 # `set' quotes correctly as required by POSIX, so do not add quotes.
18514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18515 ;;
18516 esac |
18517 sort
18518 ) |
18519 sed '
18520 /^ac_cv_env_/b end
18521 t clear
18522 :clear
18523 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18524 t end
18525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18526 :end' >>confcache
18527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18528 if test -w "$cache_file"; then
18529 if test "x$cache_file" != "x/dev/null"; then
18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18531 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18532 if test ! -f "$cache_file" || test -h "$cache_file"; then
18533 cat confcache >"$cache_file"
18534 else
18535 case $cache_file in #(
18536 */* | ?:*)
18537 mv -f confcache "$cache_file"$$ &&
18538 mv -f "$cache_file"$$ "$cache_file" ;; #(
18539 *)
18540 mv -f confcache "$cache_file" ;;
18541 esac
18542 fi
18543 fi
18544 else
18545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18546 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18547 fi
18548 fi
18549 rm -f confcache
18550
18551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18552 # Let make expand exec_prefix.
18553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18554
18555 DEFS=-DHAVE_CONFIG_H
18556
18557 ac_libobjs=
18558 ac_ltlibobjs=
18559 U=
18560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18561 # 1. Remove the extension, and $U if already installed.
18562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18563 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18565 # will be set to the directory where LIBOBJS objects are built.
18566 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18567 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18568 done
18569 LIBOBJS=$ac_libobjs
18570
18571 LTLIBOBJS=$ac_ltlibobjs
18572
18573
18574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18575 printf %s "checking that generated files are newer than configure... " >&6; }
18576 if test -n "$am_sleep_pid"; then
18577 # Hide warnings about reused PIDs.
18578 wait $am_sleep_pid 2>/dev/null
18579 fi
18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18581 printf "%s\n" "done" >&6; }
18582 if test -n "$EXEEXT"; then
18583 am__EXEEXT_TRUE=
18584 am__EXEEXT_FALSE='#'
18585 else
18586 am__EXEEXT_TRUE='#'
18587 am__EXEEXT_FALSE=
18588 fi
18589
18590 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18591 as_fn_error $? "conditional \"AMDEP\" was never defined.
18592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18593 fi
18594 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18595 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18597 fi
18598 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18599 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18601 fi
18602
18603 : "${CONFIG_STATUS=./config.status}"
18604 ac_write_fail=0
18605 ac_clean_files_save=$ac_clean_files
18606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18608 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18609 as_write_fail=0
18610 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18611 #! $SHELL
18612 # Generated by $as_me.
18613 # Run this file to recreate the current configuration.
18614 # Compiler output produced by configure, useful for debugging
18615 # configure, is in config.log if it exists.
18616
18617 debug=false
18618 ac_cs_recheck=false
18619 ac_cs_silent=false
18620
18621 SHELL=\${CONFIG_SHELL-$SHELL}
18622 export SHELL
18623 _ASEOF
18624 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18625 ## -------------------- ##
18626 ## M4sh Initialization. ##
18627 ## -------------------- ##
18628
18629 # Be more Bourne compatible
18630 DUALCASE=1; export DUALCASE # for MKS sh
18631 as_nop=:
18632 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18633 then :
18634 emulate sh
18635 NULLCMD=:
18636 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18637 # is contrary to our usage. Disable this feature.
18638 alias -g '${1+"$@"}'='"$@"'
18639 setopt NO_GLOB_SUBST
18640 else $as_nop
18641 case `(set -o) 2>/dev/null` in #(
18642 *posix*) :
18643 set -o posix ;; #(
18644 *) :
18645 ;;
18646 esac
18647 fi
18648
18649
18650
18651 # Reset variables that may have inherited troublesome values from
18652 # the environment.
18653
18654 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18655 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18656 # side effect of setting IFS to empty, thus disabling word splitting.)
18657 # Quoting is to prevent editors from complaining about space-tab.
18658 as_nl='
18659 '
18660 export as_nl
18661 IFS=" "" $as_nl"
18662
18663 PS1='$ '
18664 PS2='> '
18665 PS4='+ '
18666
18667 # Ensure predictable behavior from utilities with locale-dependent output.
18668 LC_ALL=C
18669 export LC_ALL
18670 LANGUAGE=C
18671 export LANGUAGE
18672
18673 # We cannot yet rely on "unset" to work, but we need these variables
18674 # to be unset--not just set to an empty or harmless value--now, to
18675 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18676 # also avoids known problems related to "unset" and subshell syntax
18677 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18678 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18679 do eval test \${$as_var+y} \
18680 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18681 done
18682
18683 # Ensure that fds 0, 1, and 2 are open.
18684 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18685 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18686 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18687
18688 # The user is always right.
18689 if ${PATH_SEPARATOR+false} :; then
18690 PATH_SEPARATOR=:
18691 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18692 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18693 PATH_SEPARATOR=';'
18694 }
18695 fi
18696
18697
18698 # Find who we are. Look in the path if we contain no directory separator.
18699 as_myself=
18700 case $0 in #((
18701 *[\\/]* ) as_myself=$0 ;;
18702 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18703 for as_dir in $PATH
18704 do
18705 IFS=$as_save_IFS
18706 case $as_dir in #(((
18707 '') as_dir=./ ;;
18708 */) ;;
18709 *) as_dir=$as_dir/ ;;
18710 esac
18711 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18712 done
18713 IFS=$as_save_IFS
18714
18715 ;;
18716 esac
18717 # We did not find ourselves, most probably we were run as `sh COMMAND'
18718 # in which case we are not to be found in the path.
18719 if test "x$as_myself" = x; then
18720 as_myself=$0
18721 fi
18722 if test ! -f "$as_myself"; then
18723 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18724 exit 1
18725 fi
18726
18727
18728
18729 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18730 # ----------------------------------------
18731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18733 # script with STATUS, using 1 if that was 0.
18734 as_fn_error ()
18735 {
18736 as_status=$1; test $as_status -eq 0 && as_status=1
18737 if test "$4"; then
18738 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18740 fi
18741 printf "%s\n" "$as_me: error: $2" >&2
18742 as_fn_exit $as_status
18743 } # as_fn_error
18744
18745
18746
18747 # as_fn_set_status STATUS
18748 # -----------------------
18749 # Set $? to STATUS, without forking.
18750 as_fn_set_status ()
18751 {
18752 return $1
18753 } # as_fn_set_status
18754
18755 # as_fn_exit STATUS
18756 # -----------------
18757 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18758 as_fn_exit ()
18759 {
18760 set +e
18761 as_fn_set_status $1
18762 exit $1
18763 } # as_fn_exit
18764
18765 # as_fn_unset VAR
18766 # ---------------
18767 # Portably unset VAR.
18768 as_fn_unset ()
18769 {
18770 { eval $1=; unset $1;}
18771 }
18772 as_unset=as_fn_unset
18773
18774 # as_fn_append VAR VALUE
18775 # ----------------------
18776 # Append the text in VALUE to the end of the definition contained in VAR. Take
18777 # advantage of any shell optimizations that allow amortized linear growth over
18778 # repeated appends, instead of the typical quadratic growth present in naive
18779 # implementations.
18780 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18781 then :
18782 eval 'as_fn_append ()
18783 {
18784 eval $1+=\$2
18785 }'
18786 else $as_nop
18787 as_fn_append ()
18788 {
18789 eval $1=\$$1\$2
18790 }
18791 fi # as_fn_append
18792
18793 # as_fn_arith ARG...
18794 # ------------------
18795 # Perform arithmetic evaluation on the ARGs, and store the result in the
18796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18797 # must be portable across $(()) and expr.
18798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18799 then :
18800 eval 'as_fn_arith ()
18801 {
18802 as_val=$(( $* ))
18803 }'
18804 else $as_nop
18805 as_fn_arith ()
18806 {
18807 as_val=`expr "$@" || test $? -eq 1`
18808 }
18809 fi # as_fn_arith
18810
18811
18812 if expr a : '\(a\)' >/dev/null 2>&1 &&
18813 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18814 as_expr=expr
18815 else
18816 as_expr=false
18817 fi
18818
18819 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18820 as_basename=basename
18821 else
18822 as_basename=false
18823 fi
18824
18825 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18826 as_dirname=dirname
18827 else
18828 as_dirname=false
18829 fi
18830
18831 as_me=`$as_basename -- "$0" ||
18832 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18833 X"$0" : 'X\(//\)$' \| \
18834 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18835 printf "%s\n" X/"$0" |
18836 sed '/^.*\/\([^/][^/]*\)\/*$/{
18837 s//\1/
18838 q
18839 }
18840 /^X\/\(\/\/\)$/{
18841 s//\1/
18842 q
18843 }
18844 /^X\/\(\/\).*/{
18845 s//\1/
18846 q
18847 }
18848 s/.*/./; q'`
18849
18850 # Avoid depending upon Character Ranges.
18851 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18852 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18853 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18854 as_cr_digits='0123456789'
18855 as_cr_alnum=$as_cr_Letters$as_cr_digits
18856
18857
18858 # Determine whether it's possible to make 'echo' print without a newline.
18859 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18860 # for compatibility with existing Makefiles.
18861 ECHO_C= ECHO_N= ECHO_T=
18862 case `echo -n x` in #(((((
18863 -n*)
18864 case `echo 'xy\c'` in
18865 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18866 xy) ECHO_C='\c';;
18867 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18868 ECHO_T=' ';;
18869 esac;;
18870 *)
18871 ECHO_N='-n';;
18872 esac
18873
18874 # For backward compatibility with old third-party macros, we provide
18875 # the shell variables $as_echo and $as_echo_n. New code should use
18876 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18877 as_echo='printf %s\n'
18878 as_echo_n='printf %s'
18879
18880 rm -f conf$$ conf$$.exe conf$$.file
18881 if test -d conf$$.dir; then
18882 rm -f conf$$.dir/conf$$.file
18883 else
18884 rm -f conf$$.dir
18885 mkdir conf$$.dir 2>/dev/null
18886 fi
18887 if (echo >conf$$.file) 2>/dev/null; then
18888 if ln -s conf$$.file conf$$ 2>/dev/null; then
18889 as_ln_s='ln -s'
18890 # ... but there are two gotchas:
18891 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18892 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18893 # In both cases, we have to default to `cp -pR'.
18894 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18895 as_ln_s='cp -pR'
18896 elif ln conf$$.file conf$$ 2>/dev/null; then
18897 as_ln_s=ln
18898 else
18899 as_ln_s='cp -pR'
18900 fi
18901 else
18902 as_ln_s='cp -pR'
18903 fi
18904 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18905 rmdir conf$$.dir 2>/dev/null
18906
18907
18908 # as_fn_mkdir_p
18909 # -------------
18910 # Create "$as_dir" as a directory, including parents if necessary.
18911 as_fn_mkdir_p ()
18912 {
18913
18914 case $as_dir in #(
18915 -*) as_dir=./$as_dir;;
18916 esac
18917 test -d "$as_dir" || eval $as_mkdir_p || {
18918 as_dirs=
18919 while :; do
18920 case $as_dir in #(
18921 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18922 *) as_qdir=$as_dir;;
18923 esac
18924 as_dirs="'$as_qdir' $as_dirs"
18925 as_dir=`$as_dirname -- "$as_dir" ||
18926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18927 X"$as_dir" : 'X\(//\)[^/]' \| \
18928 X"$as_dir" : 'X\(//\)$' \| \
18929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18930 printf "%s\n" X"$as_dir" |
18931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18932 s//\1/
18933 q
18934 }
18935 /^X\(\/\/\)[^/].*/{
18936 s//\1/
18937 q
18938 }
18939 /^X\(\/\/\)$/{
18940 s//\1/
18941 q
18942 }
18943 /^X\(\/\).*/{
18944 s//\1/
18945 q
18946 }
18947 s/.*/./; q'`
18948 test -d "$as_dir" && break
18949 done
18950 test -z "$as_dirs" || eval "mkdir $as_dirs"
18951 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18952
18953
18954 } # as_fn_mkdir_p
18955 if mkdir -p . 2>/dev/null; then
18956 as_mkdir_p='mkdir -p "$as_dir"'
18957 else
18958 test -d ./-p && rmdir ./-p
18959 as_mkdir_p=false
18960 fi
18961
18962
18963 # as_fn_executable_p FILE
18964 # -----------------------
18965 # Test if FILE is an executable regular file.
18966 as_fn_executable_p ()
18967 {
18968 test -f "$1" && test -x "$1"
18969 } # as_fn_executable_p
18970 as_test_x='test -x'
18971 as_executable_p=as_fn_executable_p
18972
18973 # Sed expression to map a string onto a valid CPP name.
18974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18975
18976 # Sed expression to map a string onto a valid variable name.
18977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18978
18979
18980 exec 6>&1
18981 ## ----------------------------------- ##
18982 ## Main body of $CONFIG_STATUS script. ##
18983 ## ----------------------------------- ##
18984 _ASEOF
18985 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18986
18987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18988 # Save the log message, to keep $0 and so on meaningful, and to
18989 # report actual input values of CONFIG_FILES etc. instead of their
18990 # values after options handling.
18991 ac_log="
18992 This file was extended by CCfits $as_me 2.7, which was
18993 generated by GNU Autoconf 2.71. Invocation command line was
18994
18995 CONFIG_FILES = $CONFIG_FILES
18996 CONFIG_HEADERS = $CONFIG_HEADERS
18997 CONFIG_LINKS = $CONFIG_LINKS
18998 CONFIG_COMMANDS = $CONFIG_COMMANDS
18999 $ $0 $@
19000
19001 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19002 "
19003
19004 _ACEOF
19005
19006 case $ac_config_files in *"
19007 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19008 esac
19009
19010 case $ac_config_headers in *"
19011 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19012 esac
19013
19014
19015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19016 # Files that config.status was made for.
19017 config_files="$ac_config_files"
19018 config_headers="$ac_config_headers"
19019 config_commands="$ac_config_commands"
19020
19021 _ACEOF
19022
19023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19024 ac_cs_usage="\
19025 \`$as_me' instantiates files and other configuration actions
19026 from templates according to the current configuration. Unless the files
19027 and actions are specified as TAGs, all are instantiated by default.
19028
19029 Usage: $0 [OPTION]... [TAG]...
19030
19031 -h, --help print this help, then exit
19032 -V, --version print version number and configuration settings, then exit
19033 --config print configuration, then exit
19034 -q, --quiet, --silent
19035 do not print progress messages
19036 -d, --debug don't remove temporary files
19037 --recheck update $as_me by reconfiguring in the same conditions
19038 --file=FILE[:TEMPLATE]
19039 instantiate the configuration file FILE
19040 --header=FILE[:TEMPLATE]
19041 instantiate the configuration header FILE
19042
19043 Configuration files:
19044 $config_files
19045
19046 Configuration headers:
19047 $config_headers
19048
19049 Configuration commands:
19050 $config_commands
19051
19052 Report bugs to the package provider."
19053
19054 _ACEOF
19055 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19056 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19058 ac_cs_config='$ac_cs_config_escaped'
19059 ac_cs_version="\\
19060 CCfits config.status 2.7
19061 configured by $0, generated by GNU Autoconf 2.71,
19062 with options \\"\$ac_cs_config\\"
19063
19064 Copyright (C) 2021 Free Software Foundation, Inc.
19065 This config.status script is free software; the Free Software Foundation
19066 gives unlimited permission to copy, distribute and modify it."
19067
19068 ac_pwd='$ac_pwd'
19069 srcdir='$srcdir'
19070 INSTALL='$INSTALL'
19071 MKDIR_P='$MKDIR_P'
19072 AWK='$AWK'
19073 test -n "\$AWK" || AWK=awk
19074 _ACEOF
19075
19076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19077 # The default lists apply if the user does not specify any file.
19078 ac_need_defaults=:
19079 while test $# != 0
19080 do
19081 case $1 in
19082 --*=?*)
19083 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19084 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19085 ac_shift=:
19086 ;;
19087 --*=)
19088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19089 ac_optarg=
19090 ac_shift=:
19091 ;;
19092 *)
19093 ac_option=$1
19094 ac_optarg=$2
19095 ac_shift=shift
19096 ;;
19097 esac
19098
19099 case $ac_option in
19100 # Handling of the options.
19101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19102 ac_cs_recheck=: ;;
19103 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19104 printf "%s\n" "$ac_cs_version"; exit ;;
19105 --config | --confi | --conf | --con | --co | --c )
19106 printf "%s\n" "$ac_cs_config"; exit ;;
19107 --debug | --debu | --deb | --de | --d | -d )
19108 debug=: ;;
19109 --file | --fil | --fi | --f )
19110 $ac_shift
19111 case $ac_optarg in
19112 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19113 '') as_fn_error $? "missing file argument" ;;
19114 esac
19115 as_fn_append CONFIG_FILES " '$ac_optarg'"
19116 ac_need_defaults=false;;
19117 --header | --heade | --head | --hea )
19118 $ac_shift
19119 case $ac_optarg in
19120 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19121 esac
19122 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19123 ac_need_defaults=false;;
19124 --he | --h)
19125 # Conflict between --help and --header
19126 as_fn_error $? "ambiguous option: \`$1'
19127 Try \`$0 --help' for more information.";;
19128 --help | --hel | -h )
19129 printf "%s\n" "$ac_cs_usage"; exit ;;
19130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19132 ac_cs_silent=: ;;
19133
19134 # This is an error.
19135 -*) as_fn_error $? "unrecognized option: \`$1'
19136 Try \`$0 --help' for more information." ;;
19137
19138 *) as_fn_append ac_config_targets " $1"
19139 ac_need_defaults=false ;;
19140
19141 esac
19142 shift
19143 done
19144
19145 ac_configure_extra_args=
19146
19147 if $ac_cs_silent; then
19148 exec 6>/dev/null
19149 ac_configure_extra_args="$ac_configure_extra_args --silent"
19150 fi
19151
19152 _ACEOF
19153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19154 if \$ac_cs_recheck; then
19155 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19156 shift
19157 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19158 CONFIG_SHELL='$SHELL'
19159 export CONFIG_SHELL
19160 exec "\$@"
19161 fi
19162
19163 _ACEOF
19164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19165 exec 5>>config.log
19166 {
19167 echo
19168 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19169 ## Running $as_me. ##
19170 _ASBOX
19171 printf "%s\n" "$ac_log"
19172 } >&5
19173
19174 _ACEOF
19175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19176 #
19177 # INIT-COMMANDS
19178 #
19179 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19180
19181
19182 # The HP-UX ksh and POSIX shell print the target directory to stdout
19183 # if CDPATH is set.
19184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19185
19186 sed_quote_subst='$sed_quote_subst'
19187 double_quote_subst='$double_quote_subst'
19188 delay_variable_subst='$delay_variable_subst'
19189 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19190 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19191 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19192 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19193 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19194 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19195 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19196 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19197 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19198 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19199 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19200 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19201 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19202 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19203 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19204 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19205 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19206 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19207 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19208 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19209 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19210 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19211 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19212 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19213 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19214 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19215 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19216 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19217 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19218 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19219 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19220 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19221 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19222 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19223 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19224 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19225 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19226 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19227 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19228 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19229 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19230 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19231 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19232 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19233 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19234 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19235 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19236 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19237 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19238 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19239 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19240 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19241 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19242 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19243 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19244 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19245 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19246 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19247 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"`'
19248 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19249 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19250 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19251 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19252 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19253 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19254 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19255 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19256 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19257 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19258 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19259 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19260 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19261 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19262 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19263 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19264 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19265 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19266 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19267 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19268 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19269 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19270 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19271 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19272 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19273 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19274 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19275 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19276 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19277 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19278 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19279 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19280 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19281 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19282 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19283 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19284 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19285 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19286 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19287 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19288 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19289 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19290 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19291 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19292 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19293 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19294 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19295 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19296 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19297 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19298 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19299 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19300 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19301 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19302 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19303 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19304 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19305 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19306 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19307 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19308 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19309 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19310 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19311 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19312 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19313 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19314 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19315 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19316 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19317 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19318 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19319 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19320 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19321 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19322 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19323 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19324 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19325 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19326 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19327 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19328 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19329 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19330 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19331 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19332 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19333 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19334 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19335 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19336 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19337 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19338 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19339 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19340 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19341 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19342 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19343 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19344 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19345 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19346 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19347 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19348 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19349 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19350 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19351 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19352 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19353 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19354 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19355 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19356 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19357 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19358 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19359 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19360 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19361 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19362 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19363 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19364 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19365 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19366 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19367 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19368 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19369 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19370 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19371 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19372 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19373 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19374 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19375 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19376 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19377 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19378
19379 LTCC='$LTCC'
19380 LTCFLAGS='$LTCFLAGS'
19381 compiler='$compiler_DEFAULT'
19382
19383 # A function that is used when there is no print builtin or printf.
19384 func_fallback_echo ()
19385 {
19386 eval 'cat <<_LTECHO_EOF
19387 \$1
19388 _LTECHO_EOF'
19389 }
19390
19391 # Quote evaled strings.
19392 for var in SHELL \
19393 ECHO \
19394 PATH_SEPARATOR \
19395 SED \
19396 GREP \
19397 EGREP \
19398 FGREP \
19399 LD \
19400 NM \
19401 LN_S \
19402 lt_SP2NL \
19403 lt_NL2SP \
19404 reload_flag \
19405 OBJDUMP \
19406 deplibs_check_method \
19407 file_magic_cmd \
19408 file_magic_glob \
19409 want_nocaseglob \
19410 DLLTOOL \
19411 sharedlib_from_linklib_cmd \
19412 AR \
19413 AR_FLAGS \
19414 archiver_list_spec \
19415 STRIP \
19416 RANLIB \
19417 CC \
19418 CFLAGS \
19419 compiler \
19420 lt_cv_sys_global_symbol_pipe \
19421 lt_cv_sys_global_symbol_to_cdecl \
19422 lt_cv_sys_global_symbol_to_import \
19423 lt_cv_sys_global_symbol_to_c_name_address \
19424 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19425 lt_cv_nm_interface \
19426 nm_file_list_spec \
19427 lt_cv_truncate_bin \
19428 lt_prog_compiler_no_builtin_flag \
19429 lt_prog_compiler_pic \
19430 lt_prog_compiler_wl \
19431 lt_prog_compiler_static \
19432 lt_cv_prog_compiler_c_o \
19433 need_locks \
19434 MANIFEST_TOOL \
19435 DSYMUTIL \
19436 NMEDIT \
19437 LIPO \
19438 OTOOL \
19439 OTOOL64 \
19440 shrext_cmds \
19441 export_dynamic_flag_spec \
19442 whole_archive_flag_spec \
19443 compiler_needs_object \
19444 with_gnu_ld \
19445 allow_undefined_flag \
19446 no_undefined_flag \
19447 hardcode_libdir_flag_spec \
19448 hardcode_libdir_separator \
19449 exclude_expsyms \
19450 include_expsyms \
19451 file_list_spec \
19452 variables_saved_for_relink \
19453 libname_spec \
19454 library_names_spec \
19455 soname_spec \
19456 install_override_mode \
19457 finish_eval \
19458 old_striplib \
19459 striplib \
19460 compiler_lib_search_dirs \
19461 predep_objects \
19462 postdep_objects \
19463 predeps \
19464 postdeps \
19465 compiler_lib_search_path \
19466 LD_CXX \
19467 reload_flag_CXX \
19468 compiler_CXX \
19469 lt_prog_compiler_no_builtin_flag_CXX \
19470 lt_prog_compiler_pic_CXX \
19471 lt_prog_compiler_wl_CXX \
19472 lt_prog_compiler_static_CXX \
19473 lt_cv_prog_compiler_c_o_CXX \
19474 export_dynamic_flag_spec_CXX \
19475 whole_archive_flag_spec_CXX \
19476 compiler_needs_object_CXX \
19477 with_gnu_ld_CXX \
19478 allow_undefined_flag_CXX \
19479 no_undefined_flag_CXX \
19480 hardcode_libdir_flag_spec_CXX \
19481 hardcode_libdir_separator_CXX \
19482 exclude_expsyms_CXX \
19483 include_expsyms_CXX \
19484 file_list_spec_CXX \
19485 compiler_lib_search_dirs_CXX \
19486 predep_objects_CXX \
19487 postdep_objects_CXX \
19488 predeps_CXX \
19489 postdeps_CXX \
19490 compiler_lib_search_path_CXX; do
19491 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19492 *[\\\\\\\`\\"\\\$]*)
19493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19494 ;;
19495 *)
19496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19497 ;;
19498 esac
19499 done
19500
19501 # Double-quote double-evaled strings.
19502 for var in reload_cmds \
19503 old_postinstall_cmds \
19504 old_postuninstall_cmds \
19505 old_archive_cmds \
19506 extract_expsyms_cmds \
19507 old_archive_from_new_cmds \
19508 old_archive_from_expsyms_cmds \
19509 archive_cmds \
19510 archive_expsym_cmds \
19511 module_cmds \
19512 module_expsym_cmds \
19513 export_symbols_cmds \
19514 prelink_cmds \
19515 postlink_cmds \
19516 postinstall_cmds \
19517 postuninstall_cmds \
19518 finish_cmds \
19519 sys_lib_search_path_spec \
19520 configure_time_dlsearch_path \
19521 configure_time_lt_sys_library_path \
19522 reload_cmds_CXX \
19523 old_archive_cmds_CXX \
19524 old_archive_from_new_cmds_CXX \
19525 old_archive_from_expsyms_cmds_CXX \
19526 archive_cmds_CXX \
19527 archive_expsym_cmds_CXX \
19528 module_cmds_CXX \
19529 module_expsym_cmds_CXX \
19530 export_symbols_cmds_CXX \
19531 prelink_cmds_CXX \
19532 postlink_cmds_CXX; do
19533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19534 *[\\\\\\\`\\"\\\$]*)
19535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19536 ;;
19537 *)
19538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19539 ;;
19540 esac
19541 done
19542
19543 ac_aux_dir='$ac_aux_dir'
19544
19545 # See if we are running on zsh, and set the options that allow our
19546 # commands through without removal of \ escapes INIT.
19547 if test -n "\${ZSH_VERSION+set}"; then
19548 setopt NO_GLOB_SUBST
19549 fi
19550
19551
19552 PACKAGE='$PACKAGE'
19553 VERSION='$VERSION'
19554 RM='$RM'
19555 ofile='$ofile'
19556
19557
19558
19559
19560
19561
19562 _ACEOF
19563
19564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19565
19566 # Handling of arguments.
19567 for ac_config_target in $ac_config_targets
19568 do
19569 case $ac_config_target in
19570 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19571 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19572 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19574 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
19575 "CCfits.pc") CONFIG_FILES="$CONFIG_FILES CCfits.pc" ;;
19576 "vs.net/Makefile") CONFIG_FILES="$CONFIG_FILES vs.net/Makefile" ;;
19577
19578 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19579 esac
19580 done
19581
19582
19583 # If the user did not use the arguments to specify the items to instantiate,
19584 # then the envvar interface is used. Set only those that are not.
19585 # We use the long form for the default assignment because of an extremely
19586 # bizarre bug on SunOS 4.1.3.
19587 if $ac_need_defaults; then
19588 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19589 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19590 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19591 fi
19592
19593 # Have a temporary directory for convenience. Make it in the build tree
19594 # simply because there is no reason against having it here, and in addition,
19595 # creating and moving files from /tmp can sometimes cause problems.
19596 # Hook for its removal unless debugging.
19597 # Note that there is a small window in which the directory will not be cleaned:
19598 # after its creation but before its name has been assigned to `$tmp'.
19599 $debug ||
19600 {
19601 tmp= ac_tmp=
19602 trap 'exit_status=$?
19603 : "${ac_tmp:=$tmp}"
19604 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19605 ' 0
19606 trap 'as_fn_exit 1' 1 2 13 15
19607 }
19608 # Create a (secure) tmp directory for tmp files.
19609
19610 {
19611 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19612 test -d "$tmp"
19613 } ||
19614 {
19615 tmp=./conf$$-$RANDOM
19616 (umask 077 && mkdir "$tmp")
19617 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19618 ac_tmp=$tmp
19619
19620 # Set up the scripts for CONFIG_FILES section.
19621 # No need to generate them if there are no CONFIG_FILES.
19622 # This happens for instance with `./config.status config.h'.
19623 if test -n "$CONFIG_FILES"; then
19624
19625
19626 ac_cr=`echo X | tr X '\015'`
19627 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19628 # But we know of no other shell where ac_cr would be empty at this
19629 # point, so we can use a bashism as a fallback.
19630 if test "x$ac_cr" = x; then
19631 eval ac_cr=\$\'\\r\'
19632 fi
19633 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19634 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19635 ac_cs_awk_cr='\\r'
19636 else
19637 ac_cs_awk_cr=$ac_cr
19638 fi
19639
19640 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19641 _ACEOF
19642
19643
19644 {
19645 echo "cat >conf$$subs.awk <<_ACEOF" &&
19646 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19647 echo "_ACEOF"
19648 } >conf$$subs.sh ||
19649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19650 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19651 ac_delim='%!_!# '
19652 for ac_last_try in false false false false false :; do
19653 . ./conf$$subs.sh ||
19654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19655
19656 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19657 if test $ac_delim_n = $ac_delim_num; then
19658 break
19659 elif $ac_last_try; then
19660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19661 else
19662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19663 fi
19664 done
19665 rm -f conf$$subs.sh
19666
19667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19668 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19669 _ACEOF
19670 sed -n '
19671 h
19672 s/^/S["/; s/!.*/"]=/
19673 p
19674 g
19675 s/^[^!]*!//
19676 :repl
19677 t repl
19678 s/'"$ac_delim"'$//
19679 t delim
19680 :nl
19681 h
19682 s/\(.\{148\}\)..*/\1/
19683 t more1
19684 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19685 p
19686 n
19687 b repl
19688 :more1
19689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19690 p
19691 g
19692 s/.\{148\}//
19693 t nl
19694 :delim
19695 h
19696 s/\(.\{148\}\)..*/\1/
19697 t more2
19698 s/["\\]/\\&/g; s/^/"/; s/$/"/
19699 p
19700 b
19701 :more2
19702 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19703 p
19704 g
19705 s/.\{148\}//
19706 t delim
19707 ' <conf$$subs.awk | sed '
19708 /^[^""]/{
19709 N
19710 s/\n//
19711 }
19712 ' >>$CONFIG_STATUS || ac_write_fail=1
19713 rm -f conf$$subs.awk
19714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19715 _ACAWK
19716 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19717 for (key in S) S_is_set[key] = 1
19718 FS = ""
19719
19720 }
19721 {
19722 line = $ 0
19723 nfields = split(line, field, "@")
19724 substed = 0
19725 len = length(field[1])
19726 for (i = 2; i < nfields; i++) {
19727 key = field[i]
19728 keylen = length(key)
19729 if (S_is_set[key]) {
19730 value = S[key]
19731 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19732 len += length(value) + length(field[++i])
19733 substed = 1
19734 } else
19735 len += 1 + keylen
19736 }
19737
19738 print line
19739 }
19740
19741 _ACAWK
19742 _ACEOF
19743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19744 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19745 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19746 else
19747 cat
19748 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19749 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19750 _ACEOF
19751
19752 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19753 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19754 # trailing colons and then remove the whole line if VPATH becomes empty
19755 # (actually we leave an empty line to preserve line numbers).
19756 if test "x$srcdir" = x.; then
19757 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19758 h
19759 s///
19760 s/^/:/
19761 s/[ ]*$/:/
19762 s/:\$(srcdir):/:/g
19763 s/:\${srcdir}:/:/g
19764 s/:@srcdir@:/:/g
19765 s/^:*//
19766 s/:*$//
19767 x
19768 s/\(=[ ]*\).*/\1/
19769 G
19770 s/\n//
19771 s/^[^=]*=[ ]*$//
19772 }'
19773 fi
19774
19775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19776 fi # test -n "$CONFIG_FILES"
19777
19778 # Set up the scripts for CONFIG_HEADERS section.
19779 # No need to generate them if there are no CONFIG_HEADERS.
19780 # This happens for instance with `./config.status Makefile'.
19781 if test -n "$CONFIG_HEADERS"; then
19782 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19783 BEGIN {
19784 _ACEOF
19785
19786 # Transform confdefs.h into an awk script `defines.awk', embedded as
19787 # here-document in config.status, that substitutes the proper values into
19788 # config.h.in to produce config.h.
19789
19790 # Create a delimiter string that does not exist in confdefs.h, to ease
19791 # handling of long lines.
19792 ac_delim='%!_!# '
19793 for ac_last_try in false false :; do
19794 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19795 if test -z "$ac_tt"; then
19796 break
19797 elif $ac_last_try; then
19798 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19799 else
19800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19801 fi
19802 done
19803
19804 # For the awk script, D is an array of macro values keyed by name,
19805 # likewise P contains macro parameters if any. Preserve backslash
19806 # newline sequences.
19807
19808 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19809 sed -n '
19810 s/.\{148\}/&'"$ac_delim"'/g
19811 t rset
19812 :rset
19813 s/^[ ]*#[ ]*define[ ][ ]*/ /
19814 t def
19815 d
19816 :def
19817 s/\\$//
19818 t bsnl
19819 s/["\\]/\\&/g
19820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19821 D["\1"]=" \3"/p
19822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19823 d
19824 :bsnl
19825 s/["\\]/\\&/g
19826 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19827 D["\1"]=" \3\\\\\\n"\\/p
19828 t cont
19829 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19830 t cont
19831 d
19832 :cont
19833 n
19834 s/.\{148\}/&'"$ac_delim"'/g
19835 t clear
19836 :clear
19837 s/\\$//
19838 t bsnlc
19839 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19840 d
19841 :bsnlc
19842 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19843 b cont
19844 ' <confdefs.h | sed '
19845 s/'"$ac_delim"'/"\\\
19846 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19847
19848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19849 for (key in D) D_is_set[key] = 1
19850 FS = ""
19851 }
19852 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19853 line = \$ 0
19854 split(line, arg, " ")
19855 if (arg[1] == "#") {
19856 defundef = arg[2]
19857 mac1 = arg[3]
19858 } else {
19859 defundef = substr(arg[1], 2)
19860 mac1 = arg[2]
19861 }
19862 split(mac1, mac2, "(") #)
19863 macro = mac2[1]
19864 prefix = substr(line, 1, index(line, defundef) - 1)
19865 if (D_is_set[macro]) {
19866 # Preserve the white space surrounding the "#".
19867 print prefix "define", macro P[macro] D[macro]
19868 next
19869 } else {
19870 # Replace #undef with comments. This is necessary, for example,
19871 # in the case of _POSIX_SOURCE, which is predefined and required
19872 # on some systems where configure will not decide to define it.
19873 if (defundef == "undef") {
19874 print "/*", prefix defundef, macro, "*/"
19875 next
19876 }
19877 }
19878 }
19879 { print }
19880 _ACAWK
19881 _ACEOF
19882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19883 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19884 fi # test -n "$CONFIG_HEADERS"
19885
19886
19887 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19888 shift
19889 for ac_tag
19890 do
19891 case $ac_tag in
19892 :[FHLC]) ac_mode=$ac_tag; continue;;
19893 esac
19894 case $ac_mode$ac_tag in
19895 :[FHL]*:*);;
19896 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19897 :[FH]-) ac_tag=-:-;;
19898 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19899 esac
19900 ac_save_IFS=$IFS
19901 IFS=:
19902 set x $ac_tag
19903 IFS=$ac_save_IFS
19904 shift
19905 ac_file=$1
19906 shift
19907
19908 case $ac_mode in
19909 :L) ac_source=$1;;
19910 :[FH])
19911 ac_file_inputs=
19912 for ac_f
19913 do
19914 case $ac_f in
19915 -) ac_f="$ac_tmp/stdin";;
19916 *) # Look for the file first in the build tree, then in the source tree
19917 # (if the path is not absolute). The absolute path cannot be DOS-style,
19918 # because $ac_f cannot contain `:'.
19919 test -f "$ac_f" ||
19920 case $ac_f in
19921 [\\/$]*) false;;
19922 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19923 esac ||
19924 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19925 esac
19926 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19927 as_fn_append ac_file_inputs " '$ac_f'"
19928 done
19929
19930 # Let's still pretend it is `configure' which instantiates (i.e., don't
19931 # use $as_me), people would be surprised to read:
19932 # /* config.h. Generated by config.status. */
19933 configure_input='Generated from '`
19934 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19935 `' by configure.'
19936 if test x"$ac_file" != x-; then
19937 configure_input="$ac_file. $configure_input"
19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19939 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19940 fi
19941 # Neutralize special characters interpreted by sed in replacement strings.
19942 case $configure_input in #(
19943 *\&* | *\|* | *\\* )
19944 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19945 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19946 *) ac_sed_conf_input=$configure_input;;
19947 esac
19948
19949 case $ac_tag in
19950 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19952 esac
19953 ;;
19954 esac
19955
19956 ac_dir=`$as_dirname -- "$ac_file" ||
19957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19958 X"$ac_file" : 'X\(//\)[^/]' \| \
19959 X"$ac_file" : 'X\(//\)$' \| \
19960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19961 printf "%s\n" X"$ac_file" |
19962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19963 s//\1/
19964 q
19965 }
19966 /^X\(\/\/\)[^/].*/{
19967 s//\1/
19968 q
19969 }
19970 /^X\(\/\/\)$/{
19971 s//\1/
19972 q
19973 }
19974 /^X\(\/\).*/{
19975 s//\1/
19976 q
19977 }
19978 s/.*/./; q'`
19979 as_dir="$ac_dir"; as_fn_mkdir_p
19980 ac_builddir=.
19981
19982 case "$ac_dir" in
19983 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19984 *)
19985 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19986 # A ".." for each directory in $ac_dir_suffix.
19987 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19988 case $ac_top_builddir_sub in
19989 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19990 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19991 esac ;;
19992 esac
19993 ac_abs_top_builddir=$ac_pwd
19994 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19995 # for backward compatibility:
19996 ac_top_builddir=$ac_top_build_prefix
19997
19998 case $srcdir in
19999 .) # We are building in place.
20000 ac_srcdir=.
20001 ac_top_srcdir=$ac_top_builddir_sub
20002 ac_abs_top_srcdir=$ac_pwd ;;
20003 [\\/]* | ?:[\\/]* ) # Absolute name.
20004 ac_srcdir=$srcdir$ac_dir_suffix;
20005 ac_top_srcdir=$srcdir
20006 ac_abs_top_srcdir=$srcdir ;;
20007 *) # Relative name.
20008 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20009 ac_top_srcdir=$ac_top_build_prefix$srcdir
20010 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20011 esac
20012 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20013
20014
20015 case $ac_mode in
20016 :F)
20017 #
20018 # CONFIG_FILE
20019 #
20020
20021 case $INSTALL in
20022 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20023 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20024 esac
20025 ac_MKDIR_P=$MKDIR_P
20026 case $MKDIR_P in
20027 [\\/$]* | ?:[\\/]* ) ;;
20028 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20029 esac
20030 _ACEOF
20031
20032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20033 # If the template does not know about datarootdir, expand it.
20034 # FIXME: This hack should be removed a few years after 2.60.
20035 ac_datarootdir_hack=; ac_datarootdir_seen=
20036 ac_sed_dataroot='
20037 /datarootdir/ {
20038 p
20039 q
20040 }
20041 /@datadir@/p
20042 /@docdir@/p
20043 /@infodir@/p
20044 /@localedir@/p
20045 /@mandir@/p'
20046 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20047 *datarootdir*) ac_datarootdir_seen=yes;;
20048 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20050 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20051 _ACEOF
20052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20053 ac_datarootdir_hack='
20054 s&@datadir@&$datadir&g
20055 s&@docdir@&$docdir&g
20056 s&@infodir@&$infodir&g
20057 s&@localedir@&$localedir&g
20058 s&@mandir@&$mandir&g
20059 s&\\\${datarootdir}&$datarootdir&g' ;;
20060 esac
20061 _ACEOF
20062
20063 # Neutralize VPATH when `$srcdir' = `.'.
20064 # Shell code in configure.ac might set extrasub.
20065 # FIXME: do we really want to maintain this feature?
20066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20067 ac_sed_extra="$ac_vpsub
20068 $extrasub
20069 _ACEOF
20070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20071 :t
20072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20073 s|@configure_input@|$ac_sed_conf_input|;t t
20074 s&@top_builddir@&$ac_top_builddir_sub&;t t
20075 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20076 s&@srcdir@&$ac_srcdir&;t t
20077 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20078 s&@top_srcdir@&$ac_top_srcdir&;t t
20079 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20080 s&@builddir@&$ac_builddir&;t t
20081 s&@abs_builddir@&$ac_abs_builddir&;t t
20082 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20083 s&@INSTALL@&$ac_INSTALL&;t t
20084 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20085 $ac_datarootdir_hack
20086 "
20087 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20088 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20089
20090 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20091 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20092 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20093 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20095 which seems to be undefined. Please make sure it is defined" >&5
20096 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20097 which seems to be undefined. Please make sure it is defined" >&2;}
20098
20099 rm -f "$ac_tmp/stdin"
20100 case $ac_file in
20101 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20102 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20103 esac \
20104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20105 ;;
20106 :H)
20107 #
20108 # CONFIG_HEADER
20109 #
20110 if test x"$ac_file" != x-; then
20111 {
20112 printf "%s\n" "/* $configure_input */" >&1 \
20113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20114 } >"$ac_tmp/config.h" \
20115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20116 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20118 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20119 else
20120 rm -f "$ac_file"
20121 mv "$ac_tmp/config.h" "$ac_file" \
20122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20123 fi
20124 else
20125 printf "%s\n" "/* $configure_input */" >&1 \
20126 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20127 || as_fn_error $? "could not create -" "$LINENO" 5
20128 fi
20129 # Compute "$ac_file"'s index in $config_headers.
20130 _am_arg="$ac_file"
20131 _am_stamp_count=1
20132 for _am_header in $config_headers :; do
20133 case $_am_header in
20134 $_am_arg | $_am_arg:* )
20135 break ;;
20136 * )
20137 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20138 esac
20139 done
20140 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20141 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20142 X"$_am_arg" : 'X\(//\)[^/]' \| \
20143 X"$_am_arg" : 'X\(//\)$' \| \
20144 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20145 printf "%s\n" X"$_am_arg" |
20146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20147 s//\1/
20148 q
20149 }
20150 /^X\(\/\/\)[^/].*/{
20151 s//\1/
20152 q
20153 }
20154 /^X\(\/\/\)$/{
20155 s//\1/
20156 q
20157 }
20158 /^X\(\/\).*/{
20159 s//\1/
20160 q
20161 }
20162 s/.*/./; q'`/stamp-h$_am_stamp_count
20163 ;;
20164
20165 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20166 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20167 ;;
20168 esac
20169
20170
20171 case $ac_file$ac_mode in
20172 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20173 # Older Autoconf quotes --file arguments for eval, but not when files
20174 # are listed without --file. Let's play safe and only enable the eval
20175 # if we detect the quoting.
20176 # TODO: see whether this extra hack can be removed once we start
20177 # requiring Autoconf 2.70 or later.
20178 case $CONFIG_FILES in #(
20179 *\'*) :
20180 eval set x "$CONFIG_FILES" ;; #(
20181 *) :
20182 set x $CONFIG_FILES ;; #(
20183 *) :
20184 ;;
20185 esac
20186 shift
20187 # Used to flag and report bootstrapping failures.
20188 am_rc=0
20189 for am_mf
20190 do
20191 # Strip MF so we end up with the name of the file.
20192 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20193 # Check whether this is an Automake generated Makefile which includes
20194 # dependency-tracking related rules and includes.
20195 # Grep'ing the whole file directly is not great: AIX grep has a line
20196 # limit of 2048, but all sed's we know have understand at least 4000.
20197 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20198 || continue
20199 am_dirpart=`$as_dirname -- "$am_mf" ||
20200 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20201 X"$am_mf" : 'X\(//\)[^/]' \| \
20202 X"$am_mf" : 'X\(//\)$' \| \
20203 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20204 printf "%s\n" X"$am_mf" |
20205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20206 s//\1/
20207 q
20208 }
20209 /^X\(\/\/\)[^/].*/{
20210 s//\1/
20211 q
20212 }
20213 /^X\(\/\/\)$/{
20214 s//\1/
20215 q
20216 }
20217 /^X\(\/\).*/{
20218 s//\1/
20219 q
20220 }
20221 s/.*/./; q'`
20222 am_filepart=`$as_basename -- "$am_mf" ||
20223 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20224 X"$am_mf" : 'X\(//\)$' \| \
20225 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20226 printf "%s\n" X/"$am_mf" |
20227 sed '/^.*\/\([^/][^/]*\)\/*$/{
20228 s//\1/
20229 q
20230 }
20231 /^X\/\(\/\/\)$/{
20232 s//\1/
20233 q
20234 }
20235 /^X\/\(\/\).*/{
20236 s//\1/
20237 q
20238 }
20239 s/.*/./; q'`
20240 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20241 && sed -e '/# am--include-marker/d' "$am_filepart" \
20242 | $MAKE -f - am--depfiles" >&5
20243 (cd "$am_dirpart" \
20244 && sed -e '/# am--include-marker/d' "$am_filepart" \
20245 | $MAKE -f - am--depfiles) >&5 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } || am_rc=$?
20249 done
20250 if test $am_rc -ne 0; then
20251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20252 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20253 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20254 for automatic dependency tracking. If GNU make was not used, consider
20255 re-running the configure script with MAKE=\"gmake\" (or whatever is
20256 necessary). You can also try re-running configure with the
20257 '--disable-dependency-tracking' option to at least be able to build
20258 the package (albeit without support for automatic dependency tracking).
20259 See \`config.log' for more details" "$LINENO" 5; }
20260 fi
20261 { am_dirpart=; unset am_dirpart;}
20262 { am_filepart=; unset am_filepart;}
20263 { am_mf=; unset am_mf;}
20264 { am_rc=; unset am_rc;}
20265 rm -f conftest-deps.mk
20266 }
20267 ;;
20268 "libtool":C)
20269
20270 # See if we are running on zsh, and set the options that allow our
20271 # commands through without removal of \ escapes.
20272 if test -n "${ZSH_VERSION+set}"; then
20273 setopt NO_GLOB_SUBST
20274 fi
20275
20276 cfgfile=${ofile}T
20277 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20278 $RM "$cfgfile"
20279
20280 cat <<_LT_EOF >> "$cfgfile"
20281 #! $SHELL
20282 # Generated automatically by $as_me ($PACKAGE) $VERSION
20283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20284 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20285
20286 # Provide generalized library-building support services.
20287 # Written by Gordon Matzigkeit, 1996
20288
20289 # Copyright (C) 2014 Free Software Foundation, Inc.
20290 # This is free software; see the source for copying conditions. There is NO
20291 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20292
20293 # GNU Libtool is free software; you can redistribute it and/or modify
20294 # it under the terms of the GNU General Public License as published by
20295 # the Free Software Foundation; either version 2 of of the License, or
20296 # (at your option) any later version.
20297 #
20298 # As a special exception to the GNU General Public License, if you
20299 # distribute this file as part of a program or library that is built
20300 # using GNU Libtool, you may include this file under the same
20301 # distribution terms that you use for the rest of that program.
20302 #
20303 # GNU Libtool is distributed in the hope that it will be useful, but
20304 # WITHOUT ANY WARRANTY; without even the implied warranty of
20305 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20306 # GNU General Public License for more details.
20307 #
20308 # You should have received a copy of the GNU General Public License
20309 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20310
20311
20312 # The names of the tagged configurations supported by this script.
20313 available_tags='CXX '
20314
20315 # Configured defaults for sys_lib_dlsearch_path munging.
20316 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20317
20318 # ### BEGIN LIBTOOL CONFIG
20319
20320 # Whether or not to build static libraries.
20321 build_old_libs=$enable_static
20322
20323 # Which release of libtool.m4 was used?
20324 macro_version=$macro_version
20325 macro_revision=$macro_revision
20326
20327 # Whether or not to build shared libraries.
20328 build_libtool_libs=$enable_shared
20329
20330 # What type of objects to build.
20331 pic_mode=$pic_mode
20332
20333 # Whether or not to optimize for fast installation.
20334 fast_install=$enable_fast_install
20335
20336 # Shared archive member basename,for filename based shared library versioning on AIX.
20337 shared_archive_member_spec=$shared_archive_member_spec
20338
20339 # Shell to use when invoking shell scripts.
20340 SHELL=$lt_SHELL
20341
20342 # An echo program that protects backslashes.
20343 ECHO=$lt_ECHO
20344
20345 # The PATH separator for the build system.
20346 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20347
20348 # The host system.
20349 host_alias=$host_alias
20350 host=$host
20351 host_os=$host_os
20352
20353 # The build system.
20354 build_alias=$build_alias
20355 build=$build
20356 build_os=$build_os
20357
20358 # A sed program that does not truncate output.
20359 SED=$lt_SED
20360
20361 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20362 Xsed="\$SED -e 1s/^X//"
20363
20364 # A grep program that handles long lines.
20365 GREP=$lt_GREP
20366
20367 # An ERE matcher.
20368 EGREP=$lt_EGREP
20369
20370 # A literal string matcher.
20371 FGREP=$lt_FGREP
20372
20373 # A BSD- or MS-compatible name lister.
20374 NM=$lt_NM
20375
20376 # Whether we need soft or hard links.
20377 LN_S=$lt_LN_S
20378
20379 # What is the maximum length of a command?
20380 max_cmd_len=$max_cmd_len
20381
20382 # Object file suffix (normally "o").
20383 objext=$ac_objext
20384
20385 # Executable file suffix (normally "").
20386 exeext=$exeext
20387
20388 # whether the shell understands "unset".
20389 lt_unset=$lt_unset
20390
20391 # turn spaces into newlines.
20392 SP2NL=$lt_lt_SP2NL
20393
20394 # turn newlines into spaces.
20395 NL2SP=$lt_lt_NL2SP
20396
20397 # convert \$build file names to \$host format.
20398 to_host_file_cmd=$lt_cv_to_host_file_cmd
20399
20400 # convert \$build files to toolchain format.
20401 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20402
20403 # An object symbol dumper.
20404 OBJDUMP=$lt_OBJDUMP
20405
20406 # Method to check whether dependent libraries are shared objects.
20407 deplibs_check_method=$lt_deplibs_check_method
20408
20409 # Command to use when deplibs_check_method = "file_magic".
20410 file_magic_cmd=$lt_file_magic_cmd
20411
20412 # How to find potential files when deplibs_check_method = "file_magic".
20413 file_magic_glob=$lt_file_magic_glob
20414
20415 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20416 want_nocaseglob=$lt_want_nocaseglob
20417
20418 # DLL creation program.
20419 DLLTOOL=$lt_DLLTOOL
20420
20421 # Command to associate shared and link libraries.
20422 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20423
20424 # The archiver.
20425 AR=$lt_AR
20426
20427 # Flags to create an archive.
20428 AR_FLAGS=$lt_AR_FLAGS
20429
20430 # How to feed a file listing to the archiver.
20431 archiver_list_spec=$lt_archiver_list_spec
20432
20433 # A symbol stripping program.
20434 STRIP=$lt_STRIP
20435
20436 # Commands used to install an old-style archive.
20437 RANLIB=$lt_RANLIB
20438 old_postinstall_cmds=$lt_old_postinstall_cmds
20439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20440
20441 # Whether to use a lock for old archive extraction.
20442 lock_old_archive_extraction=$lock_old_archive_extraction
20443
20444 # A C compiler.
20445 LTCC=$lt_CC
20446
20447 # LTCC compiler flags.
20448 LTCFLAGS=$lt_CFLAGS
20449
20450 # Take the output of nm and produce a listing of raw symbols and C names.
20451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20452
20453 # Transform the output of nm in a proper C declaration.
20454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20455
20456 # Transform the output of nm into a list of symbols to manually relocate.
20457 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20458
20459 # Transform the output of nm in a C name address pair.
20460 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20461
20462 # Transform the output of nm in a C name address pair when lib prefix is needed.
20463 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20464
20465 # The name lister interface.
20466 nm_interface=$lt_lt_cv_nm_interface
20467
20468 # Specify filename containing input files for \$NM.
20469 nm_file_list_spec=$lt_nm_file_list_spec
20470
20471 # The root where to search for dependent libraries,and where our libraries should be installed.
20472 lt_sysroot=$lt_sysroot
20473
20474 # Command to truncate a binary pipe.
20475 lt_truncate_bin=$lt_lt_cv_truncate_bin
20476
20477 # The name of the directory that contains temporary libtool files.
20478 objdir=$objdir
20479
20480 # Used to examine libraries when file_magic_cmd begins with "file".
20481 MAGIC_CMD=$MAGIC_CMD
20482
20483 # Must we lock files when doing compilation?
20484 need_locks=$lt_need_locks
20485
20486 # Manifest tool.
20487 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20488
20489 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20490 DSYMUTIL=$lt_DSYMUTIL
20491
20492 # Tool to change global to local symbols on Mac OS X.
20493 NMEDIT=$lt_NMEDIT
20494
20495 # Tool to manipulate fat objects and archives on Mac OS X.
20496 LIPO=$lt_LIPO
20497
20498 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20499 OTOOL=$lt_OTOOL
20500
20501 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20502 OTOOL64=$lt_OTOOL64
20503
20504 # Old archive suffix (normally "a").
20505 libext=$libext
20506
20507 # Shared library suffix (normally ".so").
20508 shrext_cmds=$lt_shrext_cmds
20509
20510 # The commands to extract the exported symbol list from a shared archive.
20511 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20512
20513 # Variables whose values should be saved in libtool wrapper scripts and
20514 # restored at link time.
20515 variables_saved_for_relink=$lt_variables_saved_for_relink
20516
20517 # Do we need the "lib" prefix for modules?
20518 need_lib_prefix=$need_lib_prefix
20519
20520 # Do we need a version for libraries?
20521 need_version=$need_version
20522
20523 # Library versioning type.
20524 version_type=$version_type
20525
20526 # Shared library runtime path variable.
20527 runpath_var=$runpath_var
20528
20529 # Shared library path variable.
20530 shlibpath_var=$shlibpath_var
20531
20532 # Is shlibpath searched before the hard-coded library search path?
20533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20534
20535 # Format of library name prefix.
20536 libname_spec=$lt_libname_spec
20537
20538 # List of archive names. First name is the real one, the rest are links.
20539 # The last name is the one that the linker finds with -lNAME
20540 library_names_spec=$lt_library_names_spec
20541
20542 # The coded name of the library, if different from the real name.
20543 soname_spec=$lt_soname_spec
20544
20545 # Permission mode override for installation of shared libraries.
20546 install_override_mode=$lt_install_override_mode
20547
20548 # Command to use after installation of a shared archive.
20549 postinstall_cmds=$lt_postinstall_cmds
20550
20551 # Command to use after uninstallation of a shared archive.
20552 postuninstall_cmds=$lt_postuninstall_cmds
20553
20554 # Commands used to finish a libtool library installation in a directory.
20555 finish_cmds=$lt_finish_cmds
20556
20557 # As "finish_cmds", except a single script fragment to be evaled but
20558 # not shown.
20559 finish_eval=$lt_finish_eval
20560
20561 # Whether we should hardcode library paths into libraries.
20562 hardcode_into_libs=$hardcode_into_libs
20563
20564 # Compile-time system search path for libraries.
20565 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20566
20567 # Detected run-time system search path for libraries.
20568 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20569
20570 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20571 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20572
20573 # Whether dlopen is supported.
20574 dlopen_support=$enable_dlopen
20575
20576 # Whether dlopen of programs is supported.
20577 dlopen_self=$enable_dlopen_self
20578
20579 # Whether dlopen of statically linked programs is supported.
20580 dlopen_self_static=$enable_dlopen_self_static
20581
20582 # Commands to strip libraries.
20583 old_striplib=$lt_old_striplib
20584 striplib=$lt_striplib
20585
20586
20587 # The linker used to build libraries.
20588 LD=$lt_LD
20589
20590 # How to create reloadable object files.
20591 reload_flag=$lt_reload_flag
20592 reload_cmds=$lt_reload_cmds
20593
20594 # Commands used to build an old-style archive.
20595 old_archive_cmds=$lt_old_archive_cmds
20596
20597 # A language specific compiler.
20598 CC=$lt_compiler
20599
20600 # Is the compiler the GNU compiler?
20601 with_gcc=$GCC
20602
20603 # Compiler flag to turn off builtin functions.
20604 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20605
20606 # Additional compiler flags for building library objects.
20607 pic_flag=$lt_lt_prog_compiler_pic
20608
20609 # How to pass a linker flag through the compiler.
20610 wl=$lt_lt_prog_compiler_wl
20611
20612 # Compiler flag to prevent dynamic linking.
20613 link_static_flag=$lt_lt_prog_compiler_static
20614
20615 # Does compiler simultaneously support -c and -o options?
20616 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20617
20618 # Whether or not to add -lc for building shared libraries.
20619 build_libtool_need_lc=$archive_cmds_need_lc
20620
20621 # Whether or not to disallow shared libs when runtime libs are static.
20622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20623
20624 # Compiler flag to allow reflexive dlopens.
20625 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20626
20627 # Compiler flag to generate shared objects directly from archives.
20628 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20629
20630 # Whether the compiler copes with passing no objects directly.
20631 compiler_needs_object=$lt_compiler_needs_object
20632
20633 # Create an old-style archive from a shared archive.
20634 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20635
20636 # Create a temporary old-style archive to link instead of a shared archive.
20637 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20638
20639 # Commands used to build a shared archive.
20640 archive_cmds=$lt_archive_cmds
20641 archive_expsym_cmds=$lt_archive_expsym_cmds
20642
20643 # Commands used to build a loadable module if different from building
20644 # a shared archive.
20645 module_cmds=$lt_module_cmds
20646 module_expsym_cmds=$lt_module_expsym_cmds
20647
20648 # Whether we are building with GNU ld or not.
20649 with_gnu_ld=$lt_with_gnu_ld
20650
20651 # Flag that allows shared libraries with undefined symbols to be built.
20652 allow_undefined_flag=$lt_allow_undefined_flag
20653
20654 # Flag that enforces no undefined symbols.
20655 no_undefined_flag=$lt_no_undefined_flag
20656
20657 # Flag to hardcode \$libdir into a binary during linking.
20658 # This must work even if \$libdir does not exist
20659 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20660
20661 # Whether we need a single "-rpath" flag with a separated argument.
20662 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20663
20664 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20665 # DIR into the resulting binary.
20666 hardcode_direct=$hardcode_direct
20667
20668 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20669 # DIR into the resulting binary and the resulting library dependency is
20670 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20671 # library is relocated.
20672 hardcode_direct_absolute=$hardcode_direct_absolute
20673
20674 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20675 # into the resulting binary.
20676 hardcode_minus_L=$hardcode_minus_L
20677
20678 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20679 # into the resulting binary.
20680 hardcode_shlibpath_var=$hardcode_shlibpath_var
20681
20682 # Set to "yes" if building a shared library automatically hardcodes DIR
20683 # into the library and all subsequent libraries and executables linked
20684 # against it.
20685 hardcode_automatic=$hardcode_automatic
20686
20687 # Set to yes if linker adds runtime paths of dependent libraries
20688 # to runtime path list.
20689 inherit_rpath=$inherit_rpath
20690
20691 # Whether libtool must link a program against all its dependency libraries.
20692 link_all_deplibs=$link_all_deplibs
20693
20694 # Set to "yes" if exported symbols are required.
20695 always_export_symbols=$always_export_symbols
20696
20697 # The commands to list exported symbols.
20698 export_symbols_cmds=$lt_export_symbols_cmds
20699
20700 # Symbols that should not be listed in the preloaded symbols.
20701 exclude_expsyms=$lt_exclude_expsyms
20702
20703 # Symbols that must always be exported.
20704 include_expsyms=$lt_include_expsyms
20705
20706 # Commands necessary for linking programs (against libraries) with templates.
20707 prelink_cmds=$lt_prelink_cmds
20708
20709 # Commands necessary for finishing linking programs.
20710 postlink_cmds=$lt_postlink_cmds
20711
20712 # Specify filename containing input files.
20713 file_list_spec=$lt_file_list_spec
20714
20715 # How to hardcode a shared library path into an executable.
20716 hardcode_action=$hardcode_action
20717
20718 # The directories searched by this compiler when creating a shared library.
20719 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20720
20721 # Dependencies to place before and after the objects being linked to
20722 # create a shared library.
20723 predep_objects=$lt_predep_objects
20724 postdep_objects=$lt_postdep_objects
20725 predeps=$lt_predeps
20726 postdeps=$lt_postdeps
20727
20728 # The library search path used internally by the compiler when linking
20729 # a shared library.
20730 compiler_lib_search_path=$lt_compiler_lib_search_path
20731
20732 # ### END LIBTOOL CONFIG
20733
20734 _LT_EOF
20735
20736 cat <<'_LT_EOF' >> "$cfgfile"
20737
20738 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20739
20740 # func_munge_path_list VARIABLE PATH
20741 # -----------------------------------
20742 # VARIABLE is name of variable containing _space_ separated list of
20743 # directories to be munged by the contents of PATH, which is string
20744 # having a format:
20745 # "DIR[:DIR]:"
20746 # string "DIR[ DIR]" will be prepended to VARIABLE
20747 # ":DIR[:DIR]"
20748 # string "DIR[ DIR]" will be appended to VARIABLE
20749 # "DIRP[:DIRP]::[DIRA:]DIRA"
20750 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20751 # "DIRA[ DIRA]" will be appended to VARIABLE
20752 # "DIR[:DIR]"
20753 # VARIABLE will be replaced by "DIR[ DIR]"
20754 func_munge_path_list ()
20755 {
20756 case x$2 in
20757 x)
20758 ;;
20759 *:)
20760 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20761 ;;
20762 x:*)
20763 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20764 ;;
20765 *::*)
20766 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20767 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20768 ;;
20769 *)
20770 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20771 ;;
20772 esac
20773 }
20774
20775
20776 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20777 func_cc_basename ()
20778 {
20779 for cc_temp in $*""; do
20780 case $cc_temp in
20781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20783 \-*) ;;
20784 *) break;;
20785 esac
20786 done
20787 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20788 }
20789
20790
20791 # ### END FUNCTIONS SHARED WITH CONFIGURE
20792
20793 _LT_EOF
20794
20795 case $host_os in
20796 aix3*)
20797 cat <<\_LT_EOF >> "$cfgfile"
20798 # AIX sometimes has problems with the GCC collect2 program. For some
20799 # reason, if we set the COLLECT_NAMES environment variable, the problems
20800 # vanish in a puff of smoke.
20801 if test set != "${COLLECT_NAMES+set}"; then
20802 COLLECT_NAMES=
20803 export COLLECT_NAMES
20804 fi
20805 _LT_EOF
20806 ;;
20807 esac
20808
20809
20810
20811 ltmain=$ac_aux_dir/ltmain.sh
20812
20813
20814 # We use sed instead of cat because bash on DJGPP gets confused if
20815 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20816 # text mode, it properly converts lines to CR/LF. This bash problem
20817 # is reportedly fixed, but why not run on old versions too?
20818 sed '$q' "$ltmain" >> "$cfgfile" \
20819 || (rm -f "$cfgfile"; exit 1)
20820
20821 mv -f "$cfgfile" "$ofile" ||
20822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20823 chmod +x "$ofile"
20824
20825
20826 cat <<_LT_EOF >> "$ofile"
20827
20828 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20829
20830 # The linker used to build libraries.
20831 LD=$lt_LD_CXX
20832
20833 # How to create reloadable object files.
20834 reload_flag=$lt_reload_flag_CXX
20835 reload_cmds=$lt_reload_cmds_CXX
20836
20837 # Commands used to build an old-style archive.
20838 old_archive_cmds=$lt_old_archive_cmds_CXX
20839
20840 # A language specific compiler.
20841 CC=$lt_compiler_CXX
20842
20843 # Is the compiler the GNU compiler?
20844 with_gcc=$GCC_CXX
20845
20846 # Compiler flag to turn off builtin functions.
20847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20848
20849 # Additional compiler flags for building library objects.
20850 pic_flag=$lt_lt_prog_compiler_pic_CXX
20851
20852 # How to pass a linker flag through the compiler.
20853 wl=$lt_lt_prog_compiler_wl_CXX
20854
20855 # Compiler flag to prevent dynamic linking.
20856 link_static_flag=$lt_lt_prog_compiler_static_CXX
20857
20858 # Does compiler simultaneously support -c and -o options?
20859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20860
20861 # Whether or not to add -lc for building shared libraries.
20862 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20863
20864 # Whether or not to disallow shared libs when runtime libs are static.
20865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20866
20867 # Compiler flag to allow reflexive dlopens.
20868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20869
20870 # Compiler flag to generate shared objects directly from archives.
20871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20872
20873 # Whether the compiler copes with passing no objects directly.
20874 compiler_needs_object=$lt_compiler_needs_object_CXX
20875
20876 # Create an old-style archive from a shared archive.
20877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20878
20879 # Create a temporary old-style archive to link instead of a shared archive.
20880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20881
20882 # Commands used to build a shared archive.
20883 archive_cmds=$lt_archive_cmds_CXX
20884 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20885
20886 # Commands used to build a loadable module if different from building
20887 # a shared archive.
20888 module_cmds=$lt_module_cmds_CXX
20889 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20890
20891 # Whether we are building with GNU ld or not.
20892 with_gnu_ld=$lt_with_gnu_ld_CXX
20893
20894 # Flag that allows shared libraries with undefined symbols to be built.
20895 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20896
20897 # Flag that enforces no undefined symbols.
20898 no_undefined_flag=$lt_no_undefined_flag_CXX
20899
20900 # Flag to hardcode \$libdir into a binary during linking.
20901 # This must work even if \$libdir does not exist
20902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20903
20904 # Whether we need a single "-rpath" flag with a separated argument.
20905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20906
20907 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20908 # DIR into the resulting binary.
20909 hardcode_direct=$hardcode_direct_CXX
20910
20911 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20912 # DIR into the resulting binary and the resulting library dependency is
20913 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20914 # library is relocated.
20915 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20916
20917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20918 # into the resulting binary.
20919 hardcode_minus_L=$hardcode_minus_L_CXX
20920
20921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20922 # into the resulting binary.
20923 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20924
20925 # Set to "yes" if building a shared library automatically hardcodes DIR
20926 # into the library and all subsequent libraries and executables linked
20927 # against it.
20928 hardcode_automatic=$hardcode_automatic_CXX
20929
20930 # Set to yes if linker adds runtime paths of dependent libraries
20931 # to runtime path list.
20932 inherit_rpath=$inherit_rpath_CXX
20933
20934 # Whether libtool must link a program against all its dependency libraries.
20935 link_all_deplibs=$link_all_deplibs_CXX
20936
20937 # Set to "yes" if exported symbols are required.
20938 always_export_symbols=$always_export_symbols_CXX
20939
20940 # The commands to list exported symbols.
20941 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20942
20943 # Symbols that should not be listed in the preloaded symbols.
20944 exclude_expsyms=$lt_exclude_expsyms_CXX
20945
20946 # Symbols that must always be exported.
20947 include_expsyms=$lt_include_expsyms_CXX
20948
20949 # Commands necessary for linking programs (against libraries) with templates.
20950 prelink_cmds=$lt_prelink_cmds_CXX
20951
20952 # Commands necessary for finishing linking programs.
20953 postlink_cmds=$lt_postlink_cmds_CXX
20954
20955 # Specify filename containing input files.
20956 file_list_spec=$lt_file_list_spec_CXX
20957
20958 # How to hardcode a shared library path into an executable.
20959 hardcode_action=$hardcode_action_CXX
20960
20961 # The directories searched by this compiler when creating a shared library.
20962 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20963
20964 # Dependencies to place before and after the objects being linked to
20965 # create a shared library.
20966 predep_objects=$lt_predep_objects_CXX
20967 postdep_objects=$lt_postdep_objects_CXX
20968 predeps=$lt_predeps_CXX
20969 postdeps=$lt_postdeps_CXX
20970
20971 # The library search path used internally by the compiler when linking
20972 # a shared library.
20973 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20974
20975 # ### END LIBTOOL TAG CONFIG: CXX
20976 _LT_EOF
20977
20978 ;;
20979
20980 esac
20981 done # for ac_tag
20982
20983
20984 as_fn_exit 0
20985 _ACEOF
20986 ac_clean_files=$ac_clean_files_save
20987
20988 test $ac_write_fail = 0 ||
20989 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20990
20991
20992 # configure is writing to config.log, and then calls config.status.
20993 # config.status does its own redirection, appending to config.log.
20994 # Unfortunately, on DOS this fails, as config.log is still kept open
20995 # by configure, so config.status won't be able to write to it; its
20996 # output is simply discarded. So we exec the FD to /dev/null,
20997 # effectively closing config.log, so it can be properly (re)opened and
20998 # appended to by config.status. When coming back to configure, we
20999 # need to make the FD available again.
21000 if test "$no_create" != yes; then
21001 ac_cs_success=:
21002 ac_config_status_args=
21003 test "$silent" = yes &&
21004 ac_config_status_args="$ac_config_status_args --quiet"
21005 exec 5>/dev/null
21006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21007 exec 5>>config.log
21008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21009 # would make configure fail if this is the last instruction.
21010 $ac_cs_success || as_fn_exit 1
21011 fi
21012 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21014 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21015 fi
21016
21017
21018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CCFits project now configured." >&5
21019 printf "%s\n" "CCFits project now configured." >&6; }
21020