Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for creduce 2.11.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='creduce'
592 PACKAGE_TARNAME='creduce'
593 PACKAGE_VERSION='2.11.0'
594 PACKAGE_STRING='creduce 2.11.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='http://embed.cs.utah.edu/creduce/'
597
598 ac_unique_file="clang_delta/ClangDelta.cpp"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 CLANG_FORMAT
640 PERL_VERSION
641 PERL
642 LEXLIB
643 LEX_OUTPUT_ROOT
644 LEX
645 CLANG_LDFLAGS
646 CLANG_CPPFLAGS
647 LLVM_BINDIR
648 LLVM_CONFIG
649 CXXCPP
650 CPP
651 LT_SYS_LIBRARY_PATH
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 LIBTOOL
673 am__fastdepCXX_FALSE
674 am__fastdepCXX_TRUE
675 CXXDEPMODE
676 ac_ct_CXX
677 CXXFLAGS
678 CXX
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_maintainer_mode
781 enable_dependency_tracking
782 enable_shared
783 enable_static
784 with_pic
785 enable_fast_install
786 with_aix_soname
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 with_llvm
791 with_clang
792 enable_trans_assert
793 '
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 LT_SYS_LIBRARY_PATH
806 CPP
807 CXXCPP
808 PERL
809 CLANG_FORMAT'
810
811
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
833
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
876
877 # Accept the important Cygnus configure options, so we can diagnose typos.
878
879 case $ac_dashdash$ac_option in
880 --)
881 ac_dashdash=yes ;;
882
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
887
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
892
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
899
900 --config-cache | -C)
901 cache_file=config.cache ;;
902
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
907
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
914
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
940
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1160
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1176
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1180
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1187
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1194
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1197 ;;
1198
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1208
1209 *)
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 ;;
1216
1217 esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1238 do
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
1311 srcdir=$ac_confdir
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 srcdir=..
1314 fi
1315 else
1316 ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 \`configure' configures creduce 2.11.0 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/creduce]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1403 _ACEOF
1404
1405 cat <<\_ACEOF
1406
1407 Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411
1412 System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of creduce 2.11.0:";;
1422 esac
1423 cat <<\_ACEOF
1424
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-silent-rules less verbose build output (undo: "make V=1")
1430 --disable-silent-rules verbose build output (undo: "make V=0")
1431 --enable-maintainer-mode
1432 enable make rules and dependencies not useful (and
1433 sometimes confusing) to the casual installer
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-static[=PKGS] build static libraries [default=yes]
1440 --enable-fast-install[=PKGS]
1441 optimize for fast installation [default=yes]
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1443 --enable-trans-assert use assert() in clang_delta transformations
1444 [default=yes]
1445
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --with-aix-soname=aix|svr4|both
1452 shared library versioning (aka "SONAME") variant to
1453 provide on AIX, [default=aix].
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1456 compiler's sysroot if not specified).
1457 --with-llvm[=DIR] use LLVM located in DIR
1458 --with-clang[=DIR] use separate Clang tree located in DIR [advanced
1459 option; default is to find Clang libraries and
1460 headers in LLVM tree]
1461
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1472 LT_SYS_LIBRARY_PATH
1473 User-defined run-time library search path.
1474 CPP C preprocessor
1475 CXXCPP C++ preprocessor
1476 PERL Perl interpreter
1477 CLANG_FORMAT
1478 `clang-format' (LLVM/Clang) program
1479
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1482
1483 Report bugs to <[email protected]>.
1484 creduce home page: <http://embed.cs.utah.edu/creduce/>.
1485 _ACEOF
1486 ac_status=$?
1487 fi
1488
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" ||
1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 continue
1495 ac_builddir=.
1496
1497 case "$ac_dir" in
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *)
1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 esac ;;
1507 esac
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1512
1513 case $srcdir in
1514 .) # We are building in place.
1515 ac_srcdir=.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1522 *) # Relative name.
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 esac
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1537 else
1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 fi || ac_status=$?
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1541 done
1542 fi
1543
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546 cat <<\_ACEOF
1547 creduce configure 2.11.0
1548 generated by GNU Autoconf 2.69
1549
1550 Copyright (C) 2012 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554 exit
1555 fi
1556
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1560
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_compile
1598
1599 # ac_fn_cxx_try_compile LINENO
1600 # ----------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_cxx_try_compile ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext
1606 if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_cxx_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631 fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_cxx_try_compile
1636
1637 # ac_fn_c_try_link LINENO
1638 # -----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_link ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest$ac_exeext
1644 if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest$ac_exeext && {
1663 test "$cross_compiling" = yes ||
1664 test -x conftest$ac_exeext
1665 }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_link
1682
1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists and can be compiled using the include files in
1686 # INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1697 $4
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701 eval "$3=yes"
1702 else
1703 eval "$3=no"
1704 fi
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706 fi
1707 eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712 } # ac_fn_c_check_header_compile
1713
1714 # ac_fn_c_try_cpp LINENO
1715 # ----------------------
1716 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_cpp ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_cpp conftest.$ac_ext"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } > conftest.i && {
1736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 }; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745 fi
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_cpp
1750
1751 # ac_fn_c_try_run LINENO
1752 # ----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1754 # that executables *can* be run.
1755 ac_fn_c_try_run ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>&5
1766 ac_status=$?
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1769 { { case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_try") 2>&5
1776 ac_status=$?
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; }; }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: program exited with status $ac_status" >&5
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=$ac_status
1786 fi
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_run
1792
1793 # ac_fn_c_check_func LINENO FUNC VAR
1794 # ----------------------------------
1795 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1796 ac_fn_c_check_func ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1808 #define $2 innocuous_$2
1809
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char $2 (); below.
1812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1813 <limits.h> exists even on freestanding compilers. */
1814
1815 #ifdef __STDC__
1816 # include <limits.h>
1817 #else
1818 # include <assert.h>
1819 #endif
1820
1821 #undef $2
1822
1823 /* Override any GCC internal prototype to avoid an error.
1824 Use char because int might match the return type of a GCC
1825 builtin and then its argument prototype would still apply. */
1826 #ifdef __cplusplus
1827 extern "C"
1828 #endif
1829 char $2 ();
1830 /* The GNU C library defines this for functions which it implements
1831 to always fail with ENOSYS. Some functions are actually named
1832 something starting with __ and the normal name is an alias. */
1833 #if defined __stub_$2 || defined __stub___$2
1834 choke me
1835 #endif
1836
1837 int
1838 main ()
1839 {
1840 return $2 ();
1841 ;
1842 return 0;
1843 }
1844 _ACEOF
1845 if ac_fn_c_try_link "$LINENO"; then :
1846 eval "$3=yes"
1847 else
1848 eval "$3=no"
1849 fi
1850 rm -f core conftest.err conftest.$ac_objext \
1851 conftest$ac_exeext conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_func
1859
1860 # ac_fn_cxx_try_cpp LINENO
1861 # ------------------------
1862 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_cpp ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_cpp conftest.$ac_ext"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } > conftest.i && {
1882 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 }; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_retval=1
1891 fi
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1894
1895 } # ac_fn_cxx_try_cpp
1896
1897 # ac_fn_cxx_try_link LINENO
1898 # -------------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_link ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1917 fi
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1925 }; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_retval=1
1932 fi
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941 } # ac_fn_cxx_try_link
1942 cat >config.log <<_ACEOF
1943 This file contains any messages produced by compilers while
1944 running configure, to aid debugging if configure makes a mistake.
1945
1946 It was created by creduce $as_me 2.11.0, which was
1947 generated by GNU Autoconf 2.69. Invocation command line was
1948
1949 $ $0 $@
1950
1951 _ACEOF
1952 exec 5>>config.log
1953 {
1954 cat <<_ASUNAME
1955 ## --------- ##
1956 ## Platform. ##
1957 ## --------- ##
1958
1959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1964
1965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1967
1968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1971 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1975
1976 _ASUNAME
1977
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 $as_echo "PATH: $as_dir"
1984 done
1985 IFS=$as_save_IFS
1986
1987 } >&5
1988
1989 cat >&5 <<_ACEOF
1990
1991
1992 ## ----------- ##
1993 ## Core tests. ##
1994 ## ----------- ##
1995
1996 _ACEOF
1997
1998
1999 # Keep a trace of the command line.
2000 # Strip out --no-create and --no-recursion so they do not pile up.
2001 # Strip out --silent because we don't want to record it for future runs.
2002 # Also quote any args containing shell meta-characters.
2003 # Make two passes to allow for proper duplicate-argument suppression.
2004 ac_configure_args=
2005 ac_configure_args0=
2006 ac_configure_args1=
2007 ac_must_keep_next=false
2008 for ac_pass in 1 2
2009 do
2010 for ac_arg
2011 do
2012 case $ac_arg in
2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2015 | -silent | --silent | --silen | --sile | --sil)
2016 continue ;;
2017 *\'*)
2018 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 esac
2020 case $ac_pass in
2021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2022 2)
2023 as_fn_append ac_configure_args1 " '$ac_arg'"
2024 if test $ac_must_keep_next = true; then
2025 ac_must_keep_next=false # Got value, back to normal.
2026 else
2027 case $ac_arg in
2028 *=* | --config-cache | -C | -disable-* | --disable-* \
2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2031 | -with-* | --with-* | -without-* | --without-* | --x)
2032 case "$ac_configure_args0 " in
2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2034 esac
2035 ;;
2036 -* ) ac_must_keep_next=true ;;
2037 esac
2038 fi
2039 as_fn_append ac_configure_args " '$ac_arg'"
2040 ;;
2041 esac
2042 done
2043 done
2044 { ac_configure_args0=; unset ac_configure_args0;}
2045 { ac_configure_args1=; unset ac_configure_args1;}
2046
2047 # When interrupted or exit'd, cleanup temporary files, and complete
2048 # config.log. We remove comments because anyway the quotes in there
2049 # would cause problems or look ugly.
2050 # WARNING: Use '\'' to represent an apostrophe within the trap.
2051 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2052 trap 'exit_status=$?
2053 # Save into config.log some information that might help in debugging.
2054 {
2055 echo
2056
2057 $as_echo "## ---------------- ##
2058 ## Cache variables. ##
2059 ## ---------------- ##"
2060 echo
2061 # The following way of writing the cache mishandles newlines in values,
2062 (
2063 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in #(
2066 *${as_nl}*)
2067 case $ac_var in #(
2068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2069 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2070 esac
2071 case $ac_var in #(
2072 _ | IFS | as_nl) ;; #(
2073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2074 *) { eval $ac_var=; unset $ac_var;} ;;
2075 esac ;;
2076 esac
2077 done
2078 (set) 2>&1 |
2079 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2080 *${as_nl}ac_space=\ *)
2081 sed -n \
2082 "s/'\''/'\''\\\\'\'''\''/g;
2083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2084 ;; #(
2085 *)
2086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2087 ;;
2088 esac |
2089 sort
2090 )
2091 echo
2092
2093 $as_echo "## ----------------- ##
2094 ## Output variables. ##
2095 ## ----------------- ##"
2096 echo
2097 for ac_var in $ac_subst_vars
2098 do
2099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
2104 done | sort
2105 echo
2106
2107 if test -n "$ac_subst_files"; then
2108 $as_echo "## ------------------- ##
2109 ## File substitutions. ##
2110 ## ------------------- ##"
2111 echo
2112 for ac_var in $ac_subst_files
2113 do
2114 eval ac_val=\$$ac_var
2115 case $ac_val in
2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 esac
2118 $as_echo "$ac_var='\''$ac_val'\''"
2119 done | sort
2120 echo
2121 fi
2122
2123 if test -s confdefs.h; then
2124 $as_echo "## ----------- ##
2125 ## confdefs.h. ##
2126 ## ----------- ##"
2127 echo
2128 cat confdefs.h
2129 echo
2130 fi
2131 test "$ac_signal" != 0 &&
2132 $as_echo "$as_me: caught signal $ac_signal"
2133 $as_echo "$as_me: exit $exit_status"
2134 } >&5
2135 rm -f core *.core core.conftest.* &&
2136 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2137 exit $exit_status
2138 ' 0
2139 for ac_signal in 1 2 13 15; do
2140 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2141 done
2142 ac_signal=0
2143
2144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2145 rm -f -r conftest* confdefs.h
2146
2147 $as_echo "/* confdefs.h */" > confdefs.h
2148
2149 # Predefined preprocessor variables.
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_NAME "$PACKAGE_NAME"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_STRING "$PACKAGE_STRING"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_URL "$PACKAGE_URL"
2173 _ACEOF
2174
2175
2176 # Let the site file select an alternate cache file if it wants to.
2177 # Prefer an explicitly selected file to automatically selected ones.
2178 ac_site_file1=NONE
2179 ac_site_file2=NONE
2180 if test -n "$CONFIG_SITE"; then
2181 # We do not want a PATH search for config.site.
2182 case $CONFIG_SITE in #((
2183 -*) ac_site_file1=./$CONFIG_SITE;;
2184 */*) ac_site_file1=$CONFIG_SITE;;
2185 *) ac_site_file1=./$CONFIG_SITE;;
2186 esac
2187 elif test "x$prefix" != xNONE; then
2188 ac_site_file1=$prefix/share/config.site
2189 ac_site_file2=$prefix/etc/config.site
2190 else
2191 ac_site_file1=$ac_default_prefix/share/config.site
2192 ac_site_file2=$ac_default_prefix/etc/config.site
2193 fi
2194 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2195 do
2196 test "x$ac_site_file" = xNONE && continue
2197 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2199 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2200 sed 's/^/| /' "$ac_site_file" >&5
2201 . "$ac_site_file" \
2202 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204 as_fn_error $? "failed to load site script $ac_site_file
2205 See \`config.log' for more details" "$LINENO" 5; }
2206 fi
2207 done
2208
2209 if test -r "$cache_file"; then
2210 # Some versions of bash will fail to source /dev/null (special files
2211 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2212 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2214 $as_echo "$as_me: loading cache $cache_file" >&6;}
2215 case $cache_file in
2216 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2217 *) . "./$cache_file";;
2218 esac
2219 fi
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2222 $as_echo "$as_me: creating cache $cache_file" >&6;}
2223 >$cache_file
2224 fi
2225
2226 # Check that the precious variables saved in the cache have kept the same
2227 # value.
2228 ac_cache_corrupted=false
2229 for ac_var in $ac_precious_vars; do
2230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2231 eval ac_new_set=\$ac_env_${ac_var}_set
2232 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2233 eval ac_new_val=\$ac_env_${ac_var}_value
2234 case $ac_old_set,$ac_new_set in
2235 set,)
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2238 ac_cache_corrupted=: ;;
2239 ,set)
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2241 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2242 ac_cache_corrupted=: ;;
2243 ,);;
2244 *)
2245 if test "x$ac_old_val" != "x$ac_new_val"; then
2246 # differences in whitespace do not lead to failure.
2247 ac_old_val_w=`echo x $ac_old_val`
2248 ac_new_val_w=`echo x $ac_new_val`
2249 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2251 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2252 ac_cache_corrupted=:
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2255 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2256 eval $ac_var=\$ac_old_val
2257 fi
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2259 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2261 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2262 fi;;
2263 esac
2264 # Pass precious variables to config.status.
2265 if test "$ac_new_set" = set; then
2266 case $ac_new_val in
2267 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2268 *) ac_arg=$ac_var=$ac_new_val ;;
2269 esac
2270 case " $ac_configure_args " in
2271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2272 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2273 esac
2274 fi
2275 done
2276 if $ac_cache_corrupted; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2280 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2281 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2282 fi
2283 ## -------------------- ##
2284 ## Main body of script. ##
2285 ## -------------------- ##
2286
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293
2294
2295
2296 ac_aux_dir=
2297 for ac_dir in autoconf "$srcdir"/autoconf; do
2298 if test -f "$ac_dir/install-sh"; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/install-sh -c"
2301 break
2302 elif test -f "$ac_dir/install.sh"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/install.sh -c"
2305 break
2306 elif test -f "$ac_dir/shtool"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/shtool install -c"
2309 break
2310 fi
2311 done
2312 if test -z "$ac_aux_dir"; then
2313 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2314 fi
2315
2316 # These three variables are undocumented and unsupported,
2317 # and are intended to be withdrawn in a future Autoconf release.
2318 # They can cause serious problems if a builder's source tree is in a directory
2319 # whose full name contains unusual characters.
2320 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2321 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2322 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2323
2324
2325
2326 ac_config_headers="$ac_config_headers config.h"
2327
2328
2329 # Make sure we can run config.sub.
2330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2331 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2332
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2334 $as_echo_n "checking build system type... " >&6; }
2335 if ${ac_cv_build+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 ac_build_alias=$build_alias
2339 test "x$ac_build_alias" = x &&
2340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2341 test "x$ac_build_alias" = x &&
2342 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2345
2346 fi
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2348 $as_echo "$ac_cv_build" >&6; }
2349 case $ac_cv_build in
2350 *-*-*) ;;
2351 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2352 esac
2353 build=$ac_cv_build
2354 ac_save_IFS=$IFS; IFS='-'
2355 set x $ac_cv_build
2356 shift
2357 build_cpu=$1
2358 build_vendor=$2
2359 shift; shift
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2362 build_os=$*
2363 IFS=$ac_save_IFS
2364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2365
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2368 $as_echo_n "checking host system type... " >&6; }
2369 if ${ac_cv_host+:} false; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 if test "x$host_alias" = x; then
2373 ac_cv_host=$ac_cv_build
2374 else
2375 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2376 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2377 fi
2378
2379 fi
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2381 $as_echo "$ac_cv_host" >&6; }
2382 case $ac_cv_host in
2383 *-*-*) ;;
2384 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2385 esac
2386 host=$ac_cv_host
2387 ac_save_IFS=$IFS; IFS='-'
2388 set x $ac_cv_host
2389 shift
2390 host_cpu=$1
2391 host_vendor=$2
2392 shift; shift
2393 # Remember, the first character of IFS is used to create $*,
2394 # except with old shells:
2395 host_os=$*
2396 IFS=$ac_save_IFS
2397 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2398
2399
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2401 $as_echo_n "checking target system type... " >&6; }
2402 if ${ac_cv_target+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 if test "x$target_alias" = x; then
2406 ac_cv_target=$ac_cv_host
2407 else
2408 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2410 fi
2411
2412 fi
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2414 $as_echo "$ac_cv_target" >&6; }
2415 case $ac_cv_target in
2416 *-*-*) ;;
2417 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2418 esac
2419 target=$ac_cv_target
2420 ac_save_IFS=$IFS; IFS='-'
2421 set x $ac_cv_target
2422 shift
2423 target_cpu=$1
2424 target_vendor=$2
2425 shift; shift
2426 # Remember, the first character of IFS is used to create $*,
2427 # except with old shells:
2428 target_os=$*
2429 IFS=$ac_save_IFS
2430 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2431
2432
2433 # The aliases save the names the user supplied, while $host etc.
2434 # will get canonicalized.
2435 test -n "$target_alias" &&
2436 test "$program_prefix$program_suffix$program_transform_name" = \
2437 NONENONEs,x,x, &&
2438 program_prefix=${target_alias}-
2439
2440 # `-Wno-portability': avoid warnings about using `:=' in `Makefile.am' files.
2441 am__api_version='1.16'
2442
2443 # Find a good install program. We prefer a C program (faster),
2444 # so one script is as good as another. But avoid the broken or
2445 # incompatible versions:
2446 # SysV /etc/install, /usr/sbin/install
2447 # SunOS /usr/etc/install
2448 # IRIX /sbin/install
2449 # AIX /bin/install
2450 # AmigaOS /C/install, which installs bootblocks on floppy discs
2451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454 # OS/2's system install, which has a completely different semantic
2455 # ./install, which can be erroneously created by make from ./install.sh.
2456 # Reject install programs that cannot install multiple files.
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2458 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2459 if test -z "$INSTALL"; then
2460 if ${ac_cv_path_install+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 # Account for people who put trailing slashes in PATH elements.
2469 case $as_dir/ in #((
2470 ./ | .// | /[cC]/* | \
2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2473 /usr/ucb/* ) ;;
2474 *)
2475 # OSF1 and SCO ODT 3.0 have their own names for install.
2476 # Don't use installbsd from OSF since it installs stuff as root
2477 # by default.
2478 for ac_prog in ginstall scoinst install; do
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2481 if test $ac_prog = install &&
2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # AIX install. It has an incompatible calling convention.
2484 :
2485 elif test $ac_prog = install &&
2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # program-specific install script used by HP pwplus--don't use.
2488 :
2489 else
2490 rm -rf conftest.one conftest.two conftest.dir
2491 echo one > conftest.one
2492 echo two > conftest.two
2493 mkdir conftest.dir
2494 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495 test -s conftest.one && test -s conftest.two &&
2496 test -s conftest.dir/conftest.one &&
2497 test -s conftest.dir/conftest.two
2498 then
2499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500 break 3
2501 fi
2502 fi
2503 fi
2504 done
2505 done
2506 ;;
2507 esac
2508
2509 done
2510 IFS=$as_save_IFS
2511
2512 rm -rf conftest.one conftest.two conftest.dir
2513
2514 fi
2515 if test "${ac_cv_path_install+set}" = set; then
2516 INSTALL=$ac_cv_path_install
2517 else
2518 # As a last resort, use the slow shell script. Don't cache a
2519 # value for INSTALL within a source directory, because that will
2520 # break other packages using the cache if that directory is
2521 # removed, or if the value is a relative name.
2522 INSTALL=$ac_install_sh
2523 fi
2524 fi
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2526 $as_echo "$INSTALL" >&6; }
2527
2528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529 # It thinks the first close brace ends the variable substitution.
2530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531
2532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533
2534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2537 $as_echo_n "checking whether build environment is sane... " >&6; }
2538 # Reject unsafe characters in $srcdir or the absolute working directory
2539 # name. Accept space and tab only in the latter.
2540 am_lf='
2541 '
2542 case `pwd` in
2543 *[\\\"\#\$\&\'\`$am_lf]*)
2544 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2545 esac
2546 case $srcdir in
2547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2548 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2549 esac
2550
2551 # Do 'set' in a subshell so we don't clobber the current shell's
2552 # arguments. Must try -L first in case configure is actually a
2553 # symlink; some systems play weird games with the mod time of symlinks
2554 # (eg FreeBSD returns the mod time of the symlink's containing
2555 # directory).
2556 if (
2557 am_has_slept=no
2558 for am_try in 1 2; do
2559 echo "timestamp, slept: $am_has_slept" > conftest.file
2560 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2561 if test "$*" = "X"; then
2562 # -L didn't work.
2563 set X `ls -t "$srcdir/configure" conftest.file`
2564 fi
2565 if test "$*" != "X $srcdir/configure conftest.file" \
2566 && test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568 # If neither matched, then we have a broken ls. This can happen
2569 # if, for instance, CONFIG_SHELL is bash and it inherits a
2570 # broken ls alias from the environment. This has actually
2571 # happened. Such a system could not be considered "sane".
2572 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2573 alias in your environment" "$LINENO" 5
2574 fi
2575 if test "$2" = conftest.file || test $am_try -eq 2; then
2576 break
2577 fi
2578 # Just in case.
2579 sleep 1
2580 am_has_slept=yes
2581 done
2582 test "$2" = conftest.file
2583 )
2584 then
2585 # Ok.
2586 :
2587 else
2588 as_fn_error $? "newly created file is older than distributed files!
2589 Check your system clock" "$LINENO" 5
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2592 $as_echo "yes" >&6; }
2593 # If we didn't sleep, we still need to ensure time stamps of config.status and
2594 # generated files are strictly newer.
2595 am_sleep_pid=
2596 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2597 ( sleep 1 ) &
2598 am_sleep_pid=$!
2599 fi
2600
2601 rm -f conftest.file
2602
2603 test "$program_prefix" != NONE &&
2604 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2605 # Use a double $ so make ignores it.
2606 test "$program_suffix" != NONE &&
2607 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2608 # Double any \ or $.
2609 # By default was `s,x,x', remove it if useless.
2610 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2611 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2612
2613 # Expand $ac_aux_dir to an absolute path.
2614 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2615
2616 if test x"${MISSING+set}" != xset; then
2617 case $am_aux_dir in
2618 *\ * | *\ *)
2619 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2620 *)
2621 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2622 esac
2623 fi
2624 # Use eval to expand $SHELL
2625 if eval "$MISSING --is-lightweight"; then
2626 am_missing_run="$MISSING "
2627 else
2628 am_missing_run=
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2630 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2631 fi
2632
2633 if test x"${install_sh+set}" != xset; then
2634 case $am_aux_dir in
2635 *\ * | *\ *)
2636 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2637 *)
2638 install_sh="\${SHELL} $am_aux_dir/install-sh"
2639 esac
2640 fi
2641
2642 # Installed binaries are usually stripped using 'strip' when the user
2643 # run "make install-strip". However 'strip' might not be the right
2644 # tool to use in cross-compilation environments, therefore Automake
2645 # will honor the 'STRIP' environment variable to overrule this program.
2646 if test "$cross_compiling" != no; then
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}strip; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_STRIP+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$STRIP"; then
2656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 STRIP=$ac_cv_prog_STRIP
2676 if test -n "$STRIP"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2678 $as_echo "$STRIP" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685 fi
2686 if test -z "$ac_cv_prog_STRIP"; then
2687 ac_ct_STRIP=$STRIP
2688 # Extract the first word of "strip", so it can be a program name with args.
2689 set dummy strip; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$ac_ct_STRIP"; then
2696 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_ac_ct_STRIP="strip"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2716 if test -n "$ac_ct_STRIP"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2718 $as_echo "$ac_ct_STRIP" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724 if test "x$ac_ct_STRIP" = x; then
2725 STRIP=":"
2726 else
2727 case $cross_compiling:$ac_tool_warned in
2728 yes:)
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731 ac_tool_warned=yes ;;
2732 esac
2733 STRIP=$ac_ct_STRIP
2734 fi
2735 else
2736 STRIP="$ac_cv_prog_STRIP"
2737 fi
2738
2739 fi
2740 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2741
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2743 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2744 if test -z "$MKDIR_P"; then
2745 if ${ac_cv_path_mkdir+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_prog in mkdir gmkdir; do
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2756 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2757 'mkdir (GNU coreutils) '* | \
2758 'mkdir (coreutils) '* | \
2759 'mkdir (fileutils) '4.1*)
2760 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2761 break 3;;
2762 esac
2763 done
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769
2770 test -d ./--version && rmdir ./--version
2771 if test "${ac_cv_path_mkdir+set}" = set; then
2772 MKDIR_P="$ac_cv_path_mkdir -p"
2773 else
2774 # As a last resort, use the slow shell script. Don't cache a
2775 # value for MKDIR_P within a source directory, because that will
2776 # break other packages using the cache if that directory is
2777 # removed, or if the value is a relative name.
2778 MKDIR_P="$ac_install_sh -d"
2779 fi
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2782 $as_echo "$MKDIR_P" >&6; }
2783
2784 for ac_prog in gawk mawk nawk awk
2785 do
2786 # Extract the first word of "$ac_prog", so it can be a program name with args.
2787 set dummy $ac_prog; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_AWK+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$AWK"; then
2794 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_AWK="$ac_prog"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 AWK=$ac_cv_prog_AWK
2814 if test -n "$AWK"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2816 $as_echo "$AWK" >&6; }
2817 else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 fi
2821
2822
2823 test -n "$AWK" && break
2824 done
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2828 set x ${MAKE-make}
2829 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2830 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 cat >conftest.make <<\_ACEOF
2834 SHELL = /bin/sh
2835 all:
2836 @echo '@@@%%%=$(MAKE)=@@@%%%'
2837 _ACEOF
2838 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2840 *@@@%%%=?*=@@@%%%*)
2841 eval ac_cv_prog_make_${ac_make}_set=yes;;
2842 *)
2843 eval ac_cv_prog_make_${ac_make}_set=no;;
2844 esac
2845 rm -f conftest.make
2846 fi
2847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2849 $as_echo "yes" >&6; }
2850 SET_MAKE=
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 SET_MAKE="MAKE=${MAKE-make}"
2855 fi
2856
2857 rm -rf .tst 2>/dev/null
2858 mkdir .tst 2>/dev/null
2859 if test -d .tst; then
2860 am__leading_dot=.
2861 else
2862 am__leading_dot=_
2863 fi
2864 rmdir .tst 2>/dev/null
2865
2866 # Check whether --enable-silent-rules was given.
2867 if test "${enable_silent_rules+set}" = set; then :
2868 enableval=$enable_silent_rules;
2869 fi
2870
2871 case $enable_silent_rules in # (((
2872 yes) AM_DEFAULT_VERBOSITY=0;;
2873 no) AM_DEFAULT_VERBOSITY=1;;
2874 *) AM_DEFAULT_VERBOSITY=1;;
2875 esac
2876 am_make=${MAKE-make}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2878 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2879 if ${am_cv_make_support_nested_variables+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if $as_echo 'TRUE=$(BAR$(V))
2883 BAR0=false
2884 BAR1=true
2885 V=1
2886 am__doit:
2887 @$(TRUE)
2888 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2889 am_cv_make_support_nested_variables=yes
2890 else
2891 am_cv_make_support_nested_variables=no
2892 fi
2893 fi
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2895 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2896 if test $am_cv_make_support_nested_variables = yes; then
2897 AM_V='$(V)'
2898 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2899 else
2900 AM_V=$AM_DEFAULT_VERBOSITY
2901 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2902 fi
2903 AM_BACKSLASH='\'
2904
2905 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2907 # is not polluted with repeated "-I."
2908 am__isrc=' -I$(srcdir)'
2909 # test to see if srcdir already configured
2910 if test -f $srcdir/config.status; then
2911 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2912 fi
2913 fi
2914
2915 # test whether we have cygpath
2916 if test -z "$CYGPATH_W"; then
2917 if (cygpath --version) >/dev/null 2>/dev/null; then
2918 CYGPATH_W='cygpath -w'
2919 else
2920 CYGPATH_W=echo
2921 fi
2922 fi
2923
2924
2925 # Define the identity of the package.
2926 PACKAGE='creduce'
2927 VERSION='2.11.0'
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE "$PACKAGE"
2932 _ACEOF
2933
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define VERSION "$VERSION"
2937 _ACEOF
2938
2939 # Some tools Automake needs.
2940
2941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2942
2943
2944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2945
2946
2947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2948
2949
2950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2951
2952
2953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2954
2955 # For better backward compatibility. To be removed once Automake 1.9.x
2956 # dies out for good. For more background, see:
2957 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2958 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2959 mkdir_p='$(MKDIR_P)'
2960
2961 # We need awk for the "check" target (and possibly the TAP driver). The
2962 # system "awk" is bad on some platforms.
2963 # Always define AMTAR for backward compatibility. Yes, it's still used
2964 # in the wild :-( We should find a proper way to deprecate it ...
2965 AMTAR='$${TAR-tar}'
2966
2967
2968 # We'll loop over all known methods to create a tar archive until one works.
2969 _am_tools='gnutar pax cpio none'
2970
2971 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2972
2973
2974
2975
2976
2977
2978 # POSIX will say in a future version that running "rm -f" with no argument
2979 # is OK; and we want to be able to make that assumption in our Makefile
2980 # recipes. So use an aggressive probe to check that the usage we want is
2981 # actually supported "in the wild" to an acceptable degree.
2982 # See automake bug#10828.
2983 # To make any issue more visible, cause the running configure to be aborted
2984 # by default if the 'rm' program in use doesn't match our expectations; the
2985 # user can still override this though.
2986 if rm -f && rm -fr && rm -rf; then : OK; else
2987 cat >&2 <<'END'
2988 Oops!
2989
2990 Your 'rm' program seems unable to run without file operands specified
2991 on the command line, even when the '-f' option is present. This is contrary
2992 to the behaviour of most rm programs out there, and not conforming with
2993 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2994
2995 Please tell [email protected] about your system, including the value
2996 of your $PATH and any error possibly output before this message. This
2997 can help us improve future automake versions.
2998
2999 END
3000 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3001 echo 'Configuration will proceed anyway, since you have set the' >&2
3002 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3003 echo >&2
3004 else
3005 cat >&2 <<'END'
3006 Aborting the configuration process, to ensure you take notice of the issue.
3007
3008 You can download and install GNU coreutils to get an 'rm' implementation
3009 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3010
3011 If you want to complete the configuration process using your problematic
3012 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3013 to "yes", and re-run configure.
3014
3015 END
3016 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3017 fi
3018 fi
3019
3020
3021
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3023 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3024 # Check whether --enable-maintainer-mode was given.
3025 if test "${enable_maintainer_mode+set}" = set; then :
3026 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3027 else
3028 USE_MAINTAINER_MODE=no
3029 fi
3030
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3032 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3033 if test $USE_MAINTAINER_MODE = yes; then
3034 MAINTAINER_MODE_TRUE=
3035 MAINTAINER_MODE_FALSE='#'
3036 else
3037 MAINTAINER_MODE_TRUE='#'
3038 MAINTAINER_MODE_FALSE=
3039 fi
3040
3041 MAINT=$MAINTAINER_MODE_TRUE
3042
3043
3044
3045 # Avoid configure-time warnings about `--datarootdir' being ignored.
3046 # This can perhaps be removed in a few years after Autoconf 2.60.
3047 # See <http://www.gnu.org/software/libtool/manual/autoconf/Changed-Directory-Variables.html>
3048 #
3049
3050
3051 ###############################################################################
3052 ## clang_delta
3053
3054 DEPDIR="${am__leading_dot}deps"
3055
3056 ac_config_commands="$ac_config_commands depfiles"
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3059 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3060 cat > confinc.mk << 'END'
3061 am__doit:
3062 @echo this is the am__doit target >confinc.out
3063 .PHONY: am__doit
3064 END
3065 am__include="#"
3066 am__quote=
3067 # BSD make does it like this.
3068 echo '.include "confinc.mk" # ignored' > confmf.BSD
3069 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3070 echo 'include confinc.mk # ignored' > confmf.GNU
3071 _am_result=no
3072 for s in GNU BSD; do
3073 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3074 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }
3078 case $?:`cat confinc.out 2>/dev/null` in #(
3079 '0:this is the am__doit target') :
3080 case $s in #(
3081 BSD) :
3082 am__include='.include' am__quote='"' ;; #(
3083 *) :
3084 am__include='include' am__quote='' ;;
3085 esac ;; #(
3086 *) :
3087 ;;
3088 esac
3089 if test "$am__include" != "#"; then
3090 _am_result="yes ($s style)"
3091 break
3092 fi
3093 done
3094 rm -f confinc.* confmf.*
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3096 $as_echo "${_am_result}" >&6; }
3097
3098 # Check whether --enable-dependency-tracking was given.
3099 if test "${enable_dependency_tracking+set}" = set; then :
3100 enableval=$enable_dependency_tracking;
3101 fi
3102
3103 if test "x$enable_dependency_tracking" != xno; then
3104 am_depcomp="$ac_aux_dir/depcomp"
3105 AMDEPBACKSLASH='\'
3106 am__nodep='_no'
3107 fi
3108 if test "x$enable_dependency_tracking" != xno; then
3109 AMDEP_TRUE=
3110 AMDEP_FALSE='#'
3111 else
3112 AMDEP_TRUE='#'
3113 AMDEP_FALSE=
3114 fi
3115
3116
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 fi
3161 if test -z "$ac_cv_prog_CC"; then
3162 ac_ct_CC=$CC
3163 # Extract the first word of "gcc", so it can be a program name with args.
3164 set dummy gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_CC="gcc"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208 CC=$ac_ct_CC
3209 fi
3210 else
3211 CC="$ac_cv_prog_CC"
3212 fi
3213
3214 if test -z "$CC"; then
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}cc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_CC="${ac_tool_prefix}cc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253 fi
3254 fi
3255 if test -z "$CC"; then
3256 # Extract the first word of "cc", so it can be a program name with args.
3257 set dummy cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 ac_prog_rejected=no
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3275 ac_prog_rejected=yes
3276 continue
3277 fi
3278 ac_cv_prog_CC="cc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 if test $ac_prog_rejected = yes; then
3287 # We found a bogon in the path, so make sure we never use it.
3288 set dummy $ac_cv_prog_CC
3289 shift
3290 if test $# != 0; then
3291 # We chose a different compiler from the bogus one.
3292 # However, it has the same basename, so the bogon will be chosen
3293 # first if we set CC to just the basename; use the full file name.
3294 shift
3295 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3296 fi
3297 fi
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 if test -z "$CC"; then
3312 if test -n "$ac_tool_prefix"; then
3313 for ac_prog in cl.exe
3314 do
3315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352 test -n "$CC" && break
3353 done
3354 fi
3355 if test -z "$CC"; then
3356 ac_ct_CC=$CC
3357 for ac_prog in cl.exe
3358 do
3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$ac_ct_CC"; then
3367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_ac_ct_CC="$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380 done
3381 done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387 if test -n "$ac_ct_CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389 $as_echo "$ac_ct_CC" >&6; }
3390 else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396 test -n "$ac_ct_CC" && break
3397 done
3398
3399 if test "x$ac_ct_CC" = x; then
3400 CC=""
3401 else
3402 case $cross_compiling:$ac_tool_warned in
3403 yes:)
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3407 esac
3408 CC=$ac_ct_CC
3409 fi
3410 fi
3411
3412 fi
3413
3414
3415 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details" "$LINENO" 5; }
3419
3420 # Provide some information about the compiler.
3421 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3422 set X $ac_compile
3423 ac_compiler=$2
3424 for ac_option in --version -v -V -qversion; do
3425 { { ac_try="$ac_compiler $ac_option >&5"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3433 ac_status=$?
3434 if test -s conftest.err; then
3435 sed '10a\
3436 ... rest of stderr output deleted ...
3437 10q' conftest.err >conftest.er1
3438 cat conftest.er1 >&5
3439 fi
3440 rm -f conftest.er1 conftest.err
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3443 done
3444
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447
3448 int
3449 main ()
3450 {
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3460 # of exeext.
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3462 $as_echo_n "checking whether the C compiler works... " >&6; }
3463 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3464
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3467
3468 ac_rmfiles=
3469 for ac_file in $ac_files
3470 do
3471 case $ac_file in
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3474 esac
3475 done
3476 rm -f $ac_rmfiles
3477
3478 if { { ac_try="$ac_link_default"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_link_default") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3492 # so that the user can short-circuit this test for compilers unknown to
3493 # Autoconf.
3494 for ac_file in $ac_files ''
3495 do
3496 test -f "$ac_file" || continue
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3499 ;;
3500 [ab].out )
3501 # We found the default executable, but exeext='' is most
3502 # certainly right.
3503 break;;
3504 *.* )
3505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3506 then :; else
3507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3508 fi
3509 # We set ac_cv_exeext here because the later test for it is not
3510 # safe: cross compilers may not add the suffix if given an `-o'
3511 # argument, so we may need to know it at that point already.
3512 # Even if this section looks crufty: it has the advantage of
3513 # actually working.
3514 break;;
3515 * )
3516 break;;
3517 esac
3518 done
3519 test "$ac_cv_exeext" = no && ac_cv_exeext=
3520
3521 else
3522 ac_file=''
3523 fi
3524 if test -z "$ac_file"; then :
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error 77 "C compiler cannot create executables
3533 See \`config.log' for more details" "$LINENO" 5; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3537 fi
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3539 $as_echo_n "checking for C compiler default output file name... " >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3541 $as_echo "$ac_file" >&6; }
3542 ac_exeext=$ac_cv_exeext
3543
3544 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3545 ac_clean_files=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3547 $as_echo_n "checking for suffix of executables... " >&6; }
3548 if { { ac_try="$ac_link"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_link") 2>&5
3556 ac_status=$?
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; then :
3559 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3560 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3561 # work properly (i.e., refer to `conftest.exe'), while it won't with
3562 # `rm'.
3563 for ac_file in conftest.exe conftest conftest.*; do
3564 test -f "$ac_file" || continue
3565 case $ac_file in
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3568 break;;
3569 * ) break;;
3570 esac
3571 done
3572 else
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3576 See \`config.log' for more details" "$LINENO" 5; }
3577 fi
3578 rm -f conftest conftest$ac_cv_exeext
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3580 $as_echo "$ac_cv_exeext" >&6; }
3581
3582 rm -f conftest.$ac_ext
3583 EXEEXT=$ac_cv_exeext
3584 ac_exeext=$EXEEXT
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <stdio.h>
3588 int
3589 main ()
3590 {
3591 FILE *f = fopen ("conftest.out", "w");
3592 return ferror (f) || fclose (f) != 0;
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 ac_clean_files="$ac_clean_files conftest.out"
3599 # Check that the compiler produces executables we can run. If not, either
3600 # the compiler is broken, or we cross compile.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3602 $as_echo_n "checking whether we are cross compiling... " >&6; }
3603 if test "$cross_compiling" != yes; then
3604 { { ac_try="$ac_link"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_link") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }
3615 if { ac_try='./conftest$ac_cv_exeext'
3616 { { case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_try") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; }; then
3626 cross_compiling=no
3627 else
3628 if test "$cross_compiling" = maybe; then
3629 cross_compiling=yes
3630 else
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot run C compiled programs.
3634 If you meant to cross compile, use \`--host'.
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637 fi
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3641
3642 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3643 ac_clean_files=$ac_clean_files_save
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645 $as_echo_n "checking for suffix of object files... " >&6; }
3646 if ${ac_cv_objext+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.o conftest.obj
3661 if { { ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compile") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 for ac_file in conftest.o conftest.obj conftest.*; do
3673 test -f "$ac_file" || continue;
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 break;;
3678 esac
3679 done
3680 else
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of object files: cannot compile
3687 See \`config.log' for more details" "$LINENO" 5; }
3688 fi
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3694 ac_objext=$OBJEXT
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if ${ac_cv_c_compiler_gnu+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702
3703 int
3704 main ()
3705 {
3706 #ifndef __GNUC__
3707 choke me
3708 #endif
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_compiler_gnu=yes
3716 else
3717 ac_compiler_gnu=no
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3721
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725 if test $ac_compiler_gnu = yes; then
3726 GCC=yes
3727 else
3728 GCC=
3729 fi
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3734 if ${ac_cv_prog_cc_g+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 ac_save_c_werror_flag=$ac_c_werror_flag
3738 ac_c_werror_flag=yes
3739 ac_cv_prog_cc_g=no
3740 CFLAGS="-g"
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_g=yes
3754 else
3755 CFLAGS=""
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758
3759 int
3760 main ()
3761 {
3762
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768
3769 else
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3771 CFLAGS="-g"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774
3775 int
3776 main ()
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_g=yes
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794 $as_echo "$ac_cv_prog_cc_g" >&6; }
3795 if test "$ac_test_CFLAGS" = set; then
3796 CFLAGS=$ac_save_CFLAGS
3797 elif test $ac_cv_prog_cc_g = yes; then
3798 if test "$GCC" = yes; then
3799 CFLAGS="-g -O2"
3800 else
3801 CFLAGS="-g"
3802 fi
3803 else
3804 if test "$GCC" = yes; then
3805 CFLAGS="-O2"
3806 else
3807 CFLAGS=
3808 fi
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812 if ${ac_cv_prog_cc_c89+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 ac_cv_prog_cc_c89=no
3816 ac_save_CC=$CC
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #include <stdarg.h>
3820 #include <stdio.h>
3821 struct stat;
3822 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3823 struct buf { int x; };
3824 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3825 static char *e (p, i)
3826 char **p;
3827 int i;
3828 {
3829 return p[i];
3830 }
3831 static char *f (char * (*g) (char **, int), char **p, ...)
3832 {
3833 char *s;
3834 va_list v;
3835 va_start (v,p);
3836 s = g (p, va_arg (v,int));
3837 va_end (v);
3838 return s;
3839 }
3840
3841 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3842 function prototypes and stuff, but not '\xHH' hex character constants.
3843 These don't provoke an error unfortunately, instead are silently treated
3844 as 'x'. The following induces an error, until -std is added to get
3845 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3846 array size at least. It's necessary to write '\x00'==0 to get something
3847 that's true only with -std. */
3848 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3849
3850 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3851 inside strings and character constants. */
3852 #define FOO(x) 'x'
3853 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3854
3855 int test (int i, double x);
3856 struct s1 {int (*f) (int a);};
3857 struct s2 {int (*f) (double a);};
3858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3859 int argc;
3860 char **argv;
3861 int
3862 main ()
3863 {
3864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3870 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3871 do
3872 CC="$ac_save_CC $ac_arg"
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_cv_prog_cc_c89=$ac_arg
3875 fi
3876 rm -f core conftest.err conftest.$ac_objext
3877 test "x$ac_cv_prog_cc_c89" != "xno" && break
3878 done
3879 rm -f conftest.$ac_ext
3880 CC=$ac_save_CC
3881
3882 fi
3883 # AC_CACHE_VAL
3884 case "x$ac_cv_prog_cc_c89" in
3885 x)
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3887 $as_echo "none needed" >&6; } ;;
3888 xno)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3890 $as_echo "unsupported" >&6; } ;;
3891 *)
3892 CC="$CC $ac_cv_prog_cc_c89"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3894 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3895 esac
3896 if test "x$ac_cv_prog_cc_c89" != xno; then :
3897
3898 fi
3899
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3912 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3913 if ${am_cv_prog_cc_c_o+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918
3919 int
3920 main ()
3921 {
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 # Make sure it works both with $CC and with simple cc.
3928 # Following AC_PROG_CC_C_O, we do the test twice because some
3929 # compilers refuse to overwrite an existing .o file with -o,
3930 # though they will create one.
3931 am_cv_prog_cc_c_o=yes
3932 for am_i in 1 2; do
3933 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3934 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } \
3938 && test -f conftest2.$ac_objext; then
3939 : OK
3940 else
3941 am_cv_prog_cc_c_o=no
3942 break
3943 fi
3944 done
3945 rm -f core conftest*
3946 unset am_i
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3949 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3950 if test "$am_cv_prog_cc_c_o" != yes; then
3951 # Losing compiler, so override with the script.
3952 # FIXME: It is wrong to rewrite CC.
3953 # But if we don't then we get into trouble of one sort or another.
3954 # A longer-term fix would be to have automake use am__CC in this case,
3955 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3956 CC="$am_aux_dir/compile $CC"
3957 fi
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965 depcc="$CC" am_compiler_list=
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3968 $as_echo_n "checking dependency style of $depcc... " >&6; }
3969 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3973 # We make a subdir and do the tests there. Otherwise we can end up
3974 # making bogus files that we don't know about and never remove. For
3975 # instance it was reported that on HP-UX the gcc test will end up
3976 # making a dummy file named 'D' -- because '-MD' means "put the output
3977 # in D".
3978 rm -rf conftest.dir
3979 mkdir conftest.dir
3980 # Copy depcomp to subdir because otherwise we won't find it if we're
3981 # using a relative directory.
3982 cp "$am_depcomp" conftest.dir
3983 cd conftest.dir
3984 # We will build objects and dependencies in a subdirectory because
3985 # it helps to detect inapplicable dependency modes. For instance
3986 # both Tru64's cc and ICC support -MD to output dependencies as a
3987 # side effect of compilation, but ICC will put the dependencies in
3988 # the current directory while Tru64 will put them in the object
3989 # directory.
3990 mkdir sub
3991
3992 am_cv_CC_dependencies_compiler_type=none
3993 if test "$am_compiler_list" = ""; then
3994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3995 fi
3996 am__universal=false
3997 case " $depcc " in #(
3998 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3999 esac
4000
4001 for depmode in $am_compiler_list; do
4002 # Setup a source with many dependencies, because some compilers
4003 # like to wrap large dependency lists on column 80 (with \), and
4004 # we should not choose a depcomp mode which is confused by this.
4005 #
4006 # We need to recreate these files for each test, as the compiler may
4007 # overwrite some of them when testing with obscure command lines.
4008 # This happens at least with the AIX C compiler.
4009 : > sub/conftest.c
4010 for i in 1 2 3 4 5 6; do
4011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4012 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4013 # Solaris 10 /bin/sh.
4014 echo '/* dummy */' > sub/conftst$i.h
4015 done
4016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4017
4018 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4019 # mode. It turns out that the SunPro C++ compiler does not properly
4020 # handle '-M -o', and we need to detect this. Also, some Intel
4021 # versions had trouble with output in subdirs.
4022 am__obj=sub/conftest.${OBJEXT-o}
4023 am__minus_obj="-o $am__obj"
4024 case $depmode in
4025 gcc)
4026 # This depmode causes a compiler race in universal mode.
4027 test "$am__universal" = false || continue
4028 ;;
4029 nosideeffect)
4030 # After this tag, mechanisms are not by side-effect, so they'll
4031 # only be used when explicitly requested.
4032 if test "x$enable_dependency_tracking" = xyes; then
4033 continue
4034 else
4035 break
4036 fi
4037 ;;
4038 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4039 # This compiler won't grok '-c -o', but also, the minuso test has
4040 # not run yet. These depmodes are late enough in the game, and
4041 # so weak that their functioning should not be impacted.
4042 am__obj=conftest.${OBJEXT-o}
4043 am__minus_obj=
4044 ;;
4045 none) break ;;
4046 esac
4047 if depmode=$depmode \
4048 source=sub/conftest.c object=$am__obj \
4049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4050 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4051 >/dev/null 2>conftest.err &&
4052 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4054 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4056 # icc doesn't choke on unknown options, it will just issue warnings
4057 # or remarks (even with -Werror). So we grep stderr for any message
4058 # that says an option was ignored or not supported.
4059 # When given -MP, icc 7.0 and 7.1 complain thusly:
4060 # icc: Command line warning: ignoring option '-M'; no argument required
4061 # The diagnosis changed in icc 8.0:
4062 # icc: Command line remark: option '-MP' not supported
4063 if (grep 'ignoring option' conftest.err ||
4064 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4065 am_cv_CC_dependencies_compiler_type=$depmode
4066 break
4067 fi
4068 fi
4069 done
4070
4071 cd ..
4072 rm -rf conftest.dir
4073 else
4074 am_cv_CC_dependencies_compiler_type=none
4075 fi
4076
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4079 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4080 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4081
4082 if
4083 test "x$enable_dependency_tracking" != xno \
4084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4085 am__fastdepCC_TRUE=
4086 am__fastdepCC_FALSE='#'
4087 else
4088 am__fastdepCC_TRUE='#'
4089 am__fastdepCC_FALSE=
4090 fi
4091
4092
4093
4094 ac_ext=cpp
4095 ac_cpp='$CXXCPP $CPPFLAGS'
4096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4099 if test -z "$CXX"; then
4100 if test -n "$CCC"; then
4101 CXX=$CCC
4102 else
4103 if test -n "$ac_tool_prefix"; then
4104 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4105 do
4106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_CXX+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -n "$CXX"; then
4114 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127 done
4128 done
4129 IFS=$as_save_IFS
4130
4131 fi
4132 fi
4133 CXX=$ac_cv_prog_CXX
4134 if test -n "$CXX"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4136 $as_echo "$CXX" >&6; }
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4140 fi
4141
4142
4143 test -n "$CXX" && break
4144 done
4145 fi
4146 if test -z "$CXX"; then
4147 ac_ct_CXX=$CXX
4148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4149 do
4150 # Extract the first word of "$ac_prog", so it can be a program name with args.
4151 set dummy $ac_prog; ac_word=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test -n "$ac_ct_CXX"; then
4158 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_prog_ac_ct_CXX="$ac_prog"
4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4170 fi
4171 done
4172 done
4173 IFS=$as_save_IFS
4174
4175 fi
4176 fi
4177 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4178 if test -n "$ac_ct_CXX"; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4180 $as_echo "$ac_ct_CXX" >&6; }
4181 else
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 fi
4185
4186
4187 test -n "$ac_ct_CXX" && break
4188 done
4189
4190 if test "x$ac_ct_CXX" = x; then
4191 CXX="g++"
4192 else
4193 case $cross_compiling:$ac_tool_warned in
4194 yes:)
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4197 ac_tool_warned=yes ;;
4198 esac
4199 CXX=$ac_ct_CXX
4200 fi
4201 fi
4202
4203 fi
4204 fi
4205 # Provide some information about the compiler.
4206 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4207 set X $ac_compile
4208 ac_compiler=$2
4209 for ac_option in --version -v -V -qversion; do
4210 { { ac_try="$ac_compiler $ac_option >&5"
4211 case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214 esac
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4218 ac_status=$?
4219 if test -s conftest.err; then
4220 sed '10a\
4221 ... rest of stderr output deleted ...
4222 10q' conftest.err >conftest.er1
4223 cat conftest.er1 >&5
4224 fi
4225 rm -f conftest.er1 conftest.err
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }
4228 done
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4231 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4232 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237
4238 int
4239 main ()
4240 {
4241 #ifndef __GNUC__
4242 choke me
4243 #endif
4244
4245 ;
4246 return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_cxx_try_compile "$LINENO"; then :
4250 ac_compiler_gnu=yes
4251 else
4252 ac_compiler_gnu=no
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4256
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4259 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4260 if test $ac_compiler_gnu = yes; then
4261 GXX=yes
4262 else
4263 GXX=
4264 fi
4265 ac_test_CXXFLAGS=${CXXFLAGS+set}
4266 ac_save_CXXFLAGS=$CXXFLAGS
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4268 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4269 if ${ac_cv_prog_cxx_g+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4273 ac_cxx_werror_flag=yes
4274 ac_cv_prog_cxx_g=no
4275 CXXFLAGS="-g"
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278
4279 int
4280 main ()
4281 {
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_cxx_try_compile "$LINENO"; then :
4288 ac_cv_prog_cxx_g=yes
4289 else
4290 CXXFLAGS=""
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293
4294 int
4295 main ()
4296 {
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_cxx_try_compile "$LINENO"; then :
4303
4304 else
4305 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4306 CXXFLAGS="-g"
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309
4310 int
4311 main ()
4312 {
4313
4314 ;
4315 return 0;
4316 }
4317 _ACEOF
4318 if ac_fn_cxx_try_compile "$LINENO"; then :
4319 ac_cv_prog_cxx_g=yes
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 fi
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4329 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4330 if test "$ac_test_CXXFLAGS" = set; then
4331 CXXFLAGS=$ac_save_CXXFLAGS
4332 elif test $ac_cv_prog_cxx_g = yes; then
4333 if test "$GXX" = yes; then
4334 CXXFLAGS="-g -O2"
4335 else
4336 CXXFLAGS="-g"
4337 fi
4338 else
4339 if test "$GXX" = yes; then
4340 CXXFLAGS="-O2"
4341 else
4342 CXXFLAGS=
4343 fi
4344 fi
4345 ac_ext=c
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
4351 depcc="$CXX" am_compiler_list=
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4354 $as_echo_n "checking dependency style of $depcc... " >&6; }
4355 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4359 # We make a subdir and do the tests there. Otherwise we can end up
4360 # making bogus files that we don't know about and never remove. For
4361 # instance it was reported that on HP-UX the gcc test will end up
4362 # making a dummy file named 'D' -- because '-MD' means "put the output
4363 # in D".
4364 rm -rf conftest.dir
4365 mkdir conftest.dir
4366 # Copy depcomp to subdir because otherwise we won't find it if we're
4367 # using a relative directory.
4368 cp "$am_depcomp" conftest.dir
4369 cd conftest.dir
4370 # We will build objects and dependencies in a subdirectory because
4371 # it helps to detect inapplicable dependency modes. For instance
4372 # both Tru64's cc and ICC support -MD to output dependencies as a
4373 # side effect of compilation, but ICC will put the dependencies in
4374 # the current directory while Tru64 will put them in the object
4375 # directory.
4376 mkdir sub
4377
4378 am_cv_CXX_dependencies_compiler_type=none
4379 if test "$am_compiler_list" = ""; then
4380 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4381 fi
4382 am__universal=false
4383 case " $depcc " in #(
4384 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4385 esac
4386
4387 for depmode in $am_compiler_list; do
4388 # Setup a source with many dependencies, because some compilers
4389 # like to wrap large dependency lists on column 80 (with \), and
4390 # we should not choose a depcomp mode which is confused by this.
4391 #
4392 # We need to recreate these files for each test, as the compiler may
4393 # overwrite some of them when testing with obscure command lines.
4394 # This happens at least with the AIX C compiler.
4395 : > sub/conftest.c
4396 for i in 1 2 3 4 5 6; do
4397 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4398 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4399 # Solaris 10 /bin/sh.
4400 echo '/* dummy */' > sub/conftst$i.h
4401 done
4402 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4403
4404 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4405 # mode. It turns out that the SunPro C++ compiler does not properly
4406 # handle '-M -o', and we need to detect this. Also, some Intel
4407 # versions had trouble with output in subdirs.
4408 am__obj=sub/conftest.${OBJEXT-o}
4409 am__minus_obj="-o $am__obj"
4410 case $depmode in
4411 gcc)
4412 # This depmode causes a compiler race in universal mode.
4413 test "$am__universal" = false || continue
4414 ;;
4415 nosideeffect)
4416 # After this tag, mechanisms are not by side-effect, so they'll
4417 # only be used when explicitly requested.
4418 if test "x$enable_dependency_tracking" = xyes; then
4419 continue
4420 else
4421 break
4422 fi
4423 ;;
4424 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4425 # This compiler won't grok '-c -o', but also, the minuso test has
4426 # not run yet. These depmodes are late enough in the game, and
4427 # so weak that their functioning should not be impacted.
4428 am__obj=conftest.${OBJEXT-o}
4429 am__minus_obj=
4430 ;;
4431 none) break ;;
4432 esac
4433 if depmode=$depmode \
4434 source=sub/conftest.c object=$am__obj \
4435 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4436 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4437 >/dev/null 2>conftest.err &&
4438 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4439 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4440 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4441 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4442 # icc doesn't choke on unknown options, it will just issue warnings
4443 # or remarks (even with -Werror). So we grep stderr for any message
4444 # that says an option was ignored or not supported.
4445 # When given -MP, icc 7.0 and 7.1 complain thusly:
4446 # icc: Command line warning: ignoring option '-M'; no argument required
4447 # The diagnosis changed in icc 8.0:
4448 # icc: Command line remark: option '-MP' not supported
4449 if (grep 'ignoring option' conftest.err ||
4450 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4451 am_cv_CXX_dependencies_compiler_type=$depmode
4452 break
4453 fi
4454 fi
4455 done
4456
4457 cd ..
4458 rm -rf conftest.dir
4459 else
4460 am_cv_CXX_dependencies_compiler_type=none
4461 fi
4462
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4465 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4466 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4467
4468 if
4469 test "x$enable_dependency_tracking" != xno \
4470 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4471 am__fastdepCXX_TRUE=
4472 am__fastdepCXX_FALSE='#'
4473 else
4474 am__fastdepCXX_TRUE='#'
4475 am__fastdepCXX_FALSE=
4476 fi
4477
4478
4479 case `pwd` in
4480 *\ * | *\ *)
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4482 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4483 esac
4484
4485
4486
4487 macro_version='2.4.6'
4488 macro_revision='2.4.6'
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502 ltmain=$ac_aux_dir/ltmain.sh
4503
4504 # Backslashify metacharacters that are still active within
4505 # double-quoted strings.
4506 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4507
4508 # Same as above, but do not quote variable references.
4509 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4510
4511 # Sed substitution to delay expansion of an escaped shell variable in a
4512 # double_quote_subst'ed string.
4513 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4514
4515 # Sed substitution to delay expansion of an escaped single quote.
4516 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4517
4518 # Sed substitution to avoid accidental globbing in evaled expressions
4519 no_glob_subst='s/\*/\\\*/g'
4520
4521 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4522 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4523 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4526 $as_echo_n "checking how to print strings... " >&6; }
4527 # Test print first, because it will be a builtin if present.
4528 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4529 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4530 ECHO='print -r --'
4531 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4532 ECHO='printf %s\n'
4533 else
4534 # Use this function as a fallback that always works.
4535 func_fallback_echo ()
4536 {
4537 eval 'cat <<_LTECHO_EOF
4538 $1
4539 _LTECHO_EOF'
4540 }
4541 ECHO='func_fallback_echo'
4542 fi
4543
4544 # func_echo_all arg...
4545 # Invoke $ECHO with all args, space-separated.
4546 func_echo_all ()
4547 {
4548 $ECHO ""
4549 }
4550
4551 case $ECHO in
4552 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4553 $as_echo "printf" >&6; } ;;
4554 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4555 $as_echo "print -r" >&6; } ;;
4556 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4557 $as_echo "cat" >&6; } ;;
4558 esac
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4574 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4575 if ${ac_cv_path_SED+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4579 for ac_i in 1 2 3 4 5 6 7; do
4580 ac_script="$ac_script$as_nl$ac_script"
4581 done
4582 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4583 { ac_script=; unset ac_script;}
4584 if test -z "$SED"; then
4585 ac_path_SED_found=false
4586 # Loop through the user's path and test for each of PROGNAME-LIST
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_prog in sed gsed; do
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4595 as_fn_executable_p "$ac_path_SED" || continue
4596 # Check for GNU ac_path_SED and select it if it is found.
4597 # Check for GNU $ac_path_SED
4598 case `"$ac_path_SED" --version 2>&1` in
4599 *GNU*)
4600 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4601 *)
4602 ac_count=0
4603 $as_echo_n 0123456789 >"conftest.in"
4604 while :
4605 do
4606 cat "conftest.in" "conftest.in" >"conftest.tmp"
4607 mv "conftest.tmp" "conftest.in"
4608 cp "conftest.in" "conftest.nl"
4609 $as_echo '' >> "conftest.nl"
4610 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612 as_fn_arith $ac_count + 1 && ac_count=$as_val
4613 if test $ac_count -gt ${ac_path_SED_max-0}; then
4614 # Best one so far, save it but keep looking for a better one
4615 ac_cv_path_SED="$ac_path_SED"
4616 ac_path_SED_max=$ac_count
4617 fi
4618 # 10*(2^10) chars as input seems more than enough
4619 test $ac_count -gt 10 && break
4620 done
4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622 esac
4623
4624 $ac_path_SED_found && break 3
4625 done
4626 done
4627 done
4628 IFS=$as_save_IFS
4629 if test -z "$ac_cv_path_SED"; then
4630 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4631 fi
4632 else
4633 ac_cv_path_SED=$SED
4634 fi
4635
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4638 $as_echo "$ac_cv_path_SED" >&6; }
4639 SED="$ac_cv_path_SED"
4640 rm -f conftest.sed
4641
4642 test -z "$SED" && SED=sed
4643 Xsed="$SED -e 1s/^X//"
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4656 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4657 if ${ac_cv_path_GREP+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -z "$GREP"; then
4661 ac_path_GREP_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in grep ggrep; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4671 as_fn_executable_p "$ac_path_GREP" || continue
4672 # Check for GNU ac_path_GREP and select it if it is found.
4673 # Check for GNU $ac_path_GREP
4674 case `"$ac_path_GREP" --version 2>&1` in
4675 *GNU*)
4676 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4677 *)
4678 ac_count=0
4679 $as_echo_n 0123456789 >"conftest.in"
4680 while :
4681 do
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'GREP' >> "conftest.nl"
4686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 as_fn_arith $ac_count + 1 && ac_count=$as_val
4689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_GREP="$ac_path_GREP"
4692 ac_path_GREP_max=$ac_count
4693 fi
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4696 done
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 esac
4699
4700 $ac_path_GREP_found && break 3
4701 done
4702 done
4703 done
4704 IFS=$as_save_IFS
4705 if test -z "$ac_cv_path_GREP"; then
4706 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 fi
4708 else
4709 ac_cv_path_GREP=$GREP
4710 fi
4711
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4714 $as_echo "$ac_cv_path_GREP" >&6; }
4715 GREP="$ac_cv_path_GREP"
4716
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4719 $as_echo_n "checking for egrep... " >&6; }
4720 if ${ac_cv_path_EGREP+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4724 then ac_cv_path_EGREP="$GREP -E"
4725 else
4726 if test -z "$EGREP"; then
4727 ac_path_EGREP_found=false
4728 # Loop through the user's path and test for each of PROGNAME-LIST
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4731 do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_prog in egrep; do
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4737 as_fn_executable_p "$ac_path_EGREP" || continue
4738 # Check for GNU ac_path_EGREP and select it if it is found.
4739 # Check for GNU $ac_path_EGREP
4740 case `"$ac_path_EGREP" --version 2>&1` in
4741 *GNU*)
4742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4743 *)
4744 ac_count=0
4745 $as_echo_n 0123456789 >"conftest.in"
4746 while :
4747 do
4748 cat "conftest.in" "conftest.in" >"conftest.tmp"
4749 mv "conftest.tmp" "conftest.in"
4750 cp "conftest.in" "conftest.nl"
4751 $as_echo 'EGREP' >> "conftest.nl"
4752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4754 as_fn_arith $ac_count + 1 && ac_count=$as_val
4755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4756 # Best one so far, save it but keep looking for a better one
4757 ac_cv_path_EGREP="$ac_path_EGREP"
4758 ac_path_EGREP_max=$ac_count
4759 fi
4760 # 10*(2^10) chars as input seems more than enough
4761 test $ac_count -gt 10 && break
4762 done
4763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4764 esac
4765
4766 $ac_path_EGREP_found && break 3
4767 done
4768 done
4769 done
4770 IFS=$as_save_IFS
4771 if test -z "$ac_cv_path_EGREP"; then
4772 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4773 fi
4774 else
4775 ac_cv_path_EGREP=$EGREP
4776 fi
4777
4778 fi
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4781 $as_echo "$ac_cv_path_EGREP" >&6; }
4782 EGREP="$ac_cv_path_EGREP"
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4786 $as_echo_n "checking for fgrep... " >&6; }
4787 if ${ac_cv_path_FGREP+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4791 then ac_cv_path_FGREP="$GREP -F"
4792 else
4793 if test -z "$FGREP"; then
4794 ac_path_FGREP_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798 do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in fgrep; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4804 as_fn_executable_p "$ac_path_FGREP" || continue
4805 # Check for GNU ac_path_FGREP and select it if it is found.
4806 # Check for GNU $ac_path_FGREP
4807 case `"$ac_path_FGREP" --version 2>&1` in
4808 *GNU*)
4809 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4810 *)
4811 ac_count=0
4812 $as_echo_n 0123456789 >"conftest.in"
4813 while :
4814 do
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo 'FGREP' >> "conftest.nl"
4819 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_FGREP="$ac_path_FGREP"
4825 ac_path_FGREP_max=$ac_count
4826 fi
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4829 done
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 esac
4832
4833 $ac_path_FGREP_found && break 3
4834 done
4835 done
4836 done
4837 IFS=$as_save_IFS
4838 if test -z "$ac_cv_path_FGREP"; then
4839 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840 fi
4841 else
4842 ac_cv_path_FGREP=$FGREP
4843 fi
4844
4845 fi
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4848 $as_echo "$ac_cv_path_FGREP" >&6; }
4849 FGREP="$ac_cv_path_FGREP"
4850
4851
4852 test -z "$GREP" && GREP=grep
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872 # Check whether --with-gnu-ld was given.
4873 if test "${with_gnu_ld+set}" = set; then :
4874 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4875 else
4876 with_gnu_ld=no
4877 fi
4878
4879 ac_prog=ld
4880 if test yes = "$GCC"; then
4881 # Check if gcc -print-prog-name=ld gives a path.
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4883 $as_echo_n "checking for ld used by $CC... " >&6; }
4884 case $host in
4885 *-*-mingw*)
4886 # gcc leaves a trailing carriage return, which upsets mingw
4887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4888 *)
4889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4890 esac
4891 case $ac_prog in
4892 # Accept absolute paths.
4893 [\\/]* | ?:[\\/]*)
4894 re_direlt='/[^/][^/]*/\.\./'
4895 # Canonicalize the pathname of ld
4896 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4897 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4898 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4899 done
4900 test -z "$LD" && LD=$ac_prog
4901 ;;
4902 "")
4903 # If it fails, then pretend we aren't using GCC.
4904 ac_prog=ld
4905 ;;
4906 *)
4907 # If it is relative, then search for the first ld in PATH.
4908 with_gnu_ld=unknown
4909 ;;
4910 esac
4911 elif test yes = "$with_gnu_ld"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4913 $as_echo_n "checking for GNU ld... " >&6; }
4914 else
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4916 $as_echo_n "checking for non-GNU ld... " >&6; }
4917 fi
4918 if ${lt_cv_path_LD+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -z "$LD"; then
4922 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4923 for ac_dir in $PATH; do
4924 IFS=$lt_save_ifs
4925 test -z "$ac_dir" && ac_dir=.
4926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4927 lt_cv_path_LD=$ac_dir/$ac_prog
4928 # Check to see if the program is GNU ld. I'd rather use --version,
4929 # but apparently some variants of GNU ld only accept -v.
4930 # Break only if it was the GNU/non-GNU ld that we prefer.
4931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4932 *GNU* | *'with BFD'*)
4933 test no != "$with_gnu_ld" && break
4934 ;;
4935 *)
4936 test yes != "$with_gnu_ld" && break
4937 ;;
4938 esac
4939 fi
4940 done
4941 IFS=$lt_save_ifs
4942 else
4943 lt_cv_path_LD=$LD # Let the user override the test with a path.
4944 fi
4945 fi
4946
4947 LD=$lt_cv_path_LD
4948 if test -n "$LD"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4950 $as_echo "$LD" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4954 fi
4955 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4957 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4958 if ${lt_cv_prog_gnu_ld+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4962 case `$LD -v 2>&1 </dev/null` in
4963 *GNU* | *'with BFD'*)
4964 lt_cv_prog_gnu_ld=yes
4965 ;;
4966 *)
4967 lt_cv_prog_gnu_ld=no
4968 ;;
4969 esac
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4972 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4973 with_gnu_ld=$lt_cv_prog_gnu_ld
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4984 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4985 if ${lt_cv_path_NM+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$NM"; then
4989 # Let the user override the test.
4990 lt_cv_path_NM=$NM
4991 else
4992 lt_nm_to_check=${ac_tool_prefix}nm
4993 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4994 lt_nm_to_check="$lt_nm_to_check nm"
4995 fi
4996 for lt_tmp_nm in $lt_nm_to_check; do
4997 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4998 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4999 IFS=$lt_save_ifs
5000 test -z "$ac_dir" && ac_dir=.
5001 tmp_nm=$ac_dir/$lt_tmp_nm
5002 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5003 # Check to see if the nm accepts a BSD-compat flag.
5004 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5005 # nm: unknown option "B" ignored
5006 # Tru64's nm complains that /dev/null is an invalid object file
5007 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5008 case $build_os in
5009 mingw*) lt_bad_file=conftest.nm/nofile ;;
5010 *) lt_bad_file=/dev/null ;;
5011 esac
5012 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5013 *$lt_bad_file* | *'Invalid file or object type'*)
5014 lt_cv_path_NM="$tmp_nm -B"
5015 break 2
5016 ;;
5017 *)
5018 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5019 */dev/null*)
5020 lt_cv_path_NM="$tmp_nm -p"
5021 break 2
5022 ;;
5023 *)
5024 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5025 continue # so that we can try to find one that supports BSD flags
5026 ;;
5027 esac
5028 ;;
5029 esac
5030 fi
5031 done
5032 IFS=$lt_save_ifs
5033 done
5034 : ${lt_cv_path_NM=no}
5035 fi
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5038 $as_echo "$lt_cv_path_NM" >&6; }
5039 if test no != "$lt_cv_path_NM"; then
5040 NM=$lt_cv_path_NM
5041 else
5042 # Didn't find any BSD compatible name lister, look for dumpbin.
5043 if test -n "$DUMPBIN"; then :
5044 # Let the user override the test.
5045 else
5046 if test -n "$ac_tool_prefix"; then
5047 for ac_prog in dumpbin "link -dump"
5048 do
5049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_DUMPBIN+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$DUMPBIN"; then
5057 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5069 fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 DUMPBIN=$ac_cv_prog_DUMPBIN
5077 if test -n "$DUMPBIN"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5079 $as_echo "$DUMPBIN" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085
5086 test -n "$DUMPBIN" && break
5087 done
5088 fi
5089 if test -z "$DUMPBIN"; then
5090 ac_ct_DUMPBIN=$DUMPBIN
5091 for ac_prog in dumpbin "link -dump"
5092 do
5093 # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy $ac_prog; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -n "$ac_ct_DUMPBIN"; then
5101 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5121 if test -n "$ac_ct_DUMPBIN"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5123 $as_echo "$ac_ct_DUMPBIN" >&6; }
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 test -n "$ac_ct_DUMPBIN" && break
5131 done
5132
5133 if test "x$ac_ct_DUMPBIN" = x; then
5134 DUMPBIN=":"
5135 else
5136 case $cross_compiling:$ac_tool_warned in
5137 yes:)
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5140 ac_tool_warned=yes ;;
5141 esac
5142 DUMPBIN=$ac_ct_DUMPBIN
5143 fi
5144 fi
5145
5146 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5147 *COFF*)
5148 DUMPBIN="$DUMPBIN -symbols -headers"
5149 ;;
5150 *)
5151 DUMPBIN=:
5152 ;;
5153 esac
5154 fi
5155
5156 if test : != "$DUMPBIN"; then
5157 NM=$DUMPBIN
5158 fi
5159 fi
5160 test -z "$NM" && NM=nm
5161
5162
5163
5164
5165
5166
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5168 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5169 if ${lt_cv_nm_interface+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 lt_cv_nm_interface="BSD nm"
5173 echo "int some_variable = 0;" > conftest.$ac_ext
5174 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5175 (eval "$ac_compile" 2>conftest.err)
5176 cat conftest.err >&5
5177 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5178 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5179 cat conftest.err >&5
5180 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5181 cat conftest.out >&5
5182 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5183 lt_cv_nm_interface="MS dumpbin"
5184 fi
5185 rm -f conftest*
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5188 $as_echo "$lt_cv_nm_interface" >&6; }
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5191 $as_echo_n "checking whether ln -s works... " >&6; }
5192 LN_S=$as_ln_s
5193 if test "$LN_S" = "ln -s"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5195 $as_echo "yes" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5198 $as_echo "no, using $LN_S" >&6; }
5199 fi
5200
5201 # find the maximum length of command line arguments
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5203 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5204 if ${lt_cv_sys_max_cmd_len+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 i=0
5208 teststring=ABCD
5209
5210 case $build_os in
5211 msdosdjgpp*)
5212 # On DJGPP, this test can blow up pretty badly due to problems in libc
5213 # (any single argument exceeding 2000 bytes causes a buffer overrun
5214 # during glob expansion). Even if it were fixed, the result of this
5215 # check would be larger than it should be.
5216 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5217 ;;
5218
5219 gnu*)
5220 # Under GNU Hurd, this test is not required because there is
5221 # no limit to the length of command line arguments.
5222 # Libtool will interpret -1 as no limit whatsoever
5223 lt_cv_sys_max_cmd_len=-1;
5224 ;;
5225
5226 cygwin* | mingw* | cegcc*)
5227 # On Win9x/ME, this test blows up -- it succeeds, but takes
5228 # about 5 minutes as the teststring grows exponentially.
5229 # Worse, since 9x/ME are not pre-emptively multitasking,
5230 # you end up with a "frozen" computer, even though with patience
5231 # the test eventually succeeds (with a max line length of 256k).
5232 # Instead, let's just punt: use the minimum linelength reported by
5233 # all of the supported platforms: 8192 (on NT/2K/XP).
5234 lt_cv_sys_max_cmd_len=8192;
5235 ;;
5236
5237 mint*)
5238 # On MiNT this can take a long time and run out of memory.
5239 lt_cv_sys_max_cmd_len=8192;
5240 ;;
5241
5242 amigaos*)
5243 # On AmigaOS with pdksh, this test takes hours, literally.
5244 # So we just punt and use a minimum line length of 8192.
5245 lt_cv_sys_max_cmd_len=8192;
5246 ;;
5247
5248 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5249 # This has been around since 386BSD, at least. Likely further.
5250 if test -x /sbin/sysctl; then
5251 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5252 elif test -x /usr/sbin/sysctl; then
5253 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5254 else
5255 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5256 fi
5257 # And add a safety zone
5258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5260 ;;
5261
5262 interix*)
5263 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5264 lt_cv_sys_max_cmd_len=196608
5265 ;;
5266
5267 os2*)
5268 # The test takes a long time on OS/2.
5269 lt_cv_sys_max_cmd_len=8192
5270 ;;
5271
5272 osf*)
5273 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5274 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5275 # nice to cause kernel panics so lets avoid the loop below.
5276 # First set a reasonable default.
5277 lt_cv_sys_max_cmd_len=16384
5278 #
5279 if test -x /sbin/sysconfig; then
5280 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5281 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5282 esac
5283 fi
5284 ;;
5285 sco3.2v5*)
5286 lt_cv_sys_max_cmd_len=102400
5287 ;;
5288 sysv5* | sco5v6* | sysv4.2uw2*)
5289 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5290 if test -n "$kargmax"; then
5291 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5292 else
5293 lt_cv_sys_max_cmd_len=32768
5294 fi
5295 ;;
5296 *)
5297 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5298 if test -n "$lt_cv_sys_max_cmd_len" && \
5299 test undefined != "$lt_cv_sys_max_cmd_len"; then
5300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5302 else
5303 # Make teststring a little bigger before we do anything with it.
5304 # a 1K string should be a reasonable start.
5305 for i in 1 2 3 4 5 6 7 8; do
5306 teststring=$teststring$teststring
5307 done
5308 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5309 # If test is not a shell built-in, we'll probably end up computing a
5310 # maximum length that is only half of the actual maximum length, but
5311 # we can't tell.
5312 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5313 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5314 test 17 != "$i" # 1/2 MB should be enough
5315 do
5316 i=`expr $i + 1`
5317 teststring=$teststring$teststring
5318 done
5319 # Only check the string length outside the loop.
5320 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5321 teststring=
5322 # Add a significant safety factor because C++ compilers can tack on
5323 # massive amounts of additional arguments before passing them to the
5324 # linker. It appears as though 1/2 is a usable value.
5325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5326 fi
5327 ;;
5328 esac
5329
5330 fi
5331
5332 if test -n "$lt_cv_sys_max_cmd_len"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5334 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5337 $as_echo "none" >&6; }
5338 fi
5339 max_cmd_len=$lt_cv_sys_max_cmd_len
5340
5341
5342
5343
5344
5345
5346 : ${CP="cp -f"}
5347 : ${MV="mv -f"}
5348 : ${RM="rm -f"}
5349
5350 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5351 lt_unset=unset
5352 else
5353 lt_unset=false
5354 fi
5355
5356
5357
5358
5359
5360 # test EBCDIC or ASCII
5361 case `echo X|tr X '\101'` in
5362 A) # ASCII based system
5363 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5364 lt_SP2NL='tr \040 \012'
5365 lt_NL2SP='tr \015\012 \040\040'
5366 ;;
5367 *) # EBCDIC based system
5368 lt_SP2NL='tr \100 \n'
5369 lt_NL2SP='tr \r\n \100\100'
5370 ;;
5371 esac
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5382 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5383 if ${lt_cv_to_host_file_cmd+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 case $host in
5387 *-*-mingw* )
5388 case $build in
5389 *-*-mingw* ) # actually msys
5390 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5391 ;;
5392 *-*-cygwin* )
5393 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5394 ;;
5395 * ) # otherwise, assume *nix
5396 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5397 ;;
5398 esac
5399 ;;
5400 *-*-cygwin* )
5401 case $build in
5402 *-*-mingw* ) # actually msys
5403 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5404 ;;
5405 *-*-cygwin* )
5406 lt_cv_to_host_file_cmd=func_convert_file_noop
5407 ;;
5408 * ) # otherwise, assume *nix
5409 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5410 ;;
5411 esac
5412 ;;
5413 * ) # unhandled hosts (and "normal" native builds)
5414 lt_cv_to_host_file_cmd=func_convert_file_noop
5415 ;;
5416 esac
5417
5418 fi
5419
5420 to_host_file_cmd=$lt_cv_to_host_file_cmd
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5422 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5429 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5430 if ${lt_cv_to_tool_file_cmd+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 #assume ordinary cross tools, or native build.
5434 lt_cv_to_tool_file_cmd=func_convert_file_noop
5435 case $host in
5436 *-*-mingw* )
5437 case $build in
5438 *-*-mingw* ) # actually msys
5439 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5440 ;;
5441 esac
5442 ;;
5443 esac
5444
5445 fi
5446
5447 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5449 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5450
5451
5452
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5456 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5457 if ${lt_cv_ld_reload_flag+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 lt_cv_ld_reload_flag='-r'
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5463 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5464 reload_flag=$lt_cv_ld_reload_flag
5465 case $reload_flag in
5466 "" | " "*) ;;
5467 *) reload_flag=" $reload_flag" ;;
5468 esac
5469 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5470 case $host_os in
5471 cygwin* | mingw* | pw32* | cegcc*)
5472 if test yes != "$GCC"; then
5473 reload_cmds=false
5474 fi
5475 ;;
5476 darwin*)
5477 if test yes = "$GCC"; then
5478 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5479 else
5480 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5481 fi
5482 ;;
5483 esac
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_OBJDUMP+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$OBJDUMP"; then
5502 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515 done
5516 done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 OBJDUMP=$ac_cv_prog_OBJDUMP
5522 if test -n "$OBJDUMP"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5524 $as_echo "$OBJDUMP" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531 fi
5532 if test -z "$ac_cv_prog_OBJDUMP"; then
5533 ac_ct_OBJDUMP=$OBJDUMP
5534 # Extract the first word of "objdump", so it can be a program name with args.
5535 set dummy objdump; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$ac_ct_OBJDUMP"; then
5542 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5562 if test -n "$ac_ct_OBJDUMP"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5564 $as_echo "$ac_ct_OBJDUMP" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570 if test "x$ac_ct_OBJDUMP" = x; then
5571 OBJDUMP="false"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579 OBJDUMP=$ac_ct_OBJDUMP
5580 fi
5581 else
5582 OBJDUMP="$ac_cv_prog_OBJDUMP"
5583 fi
5584
5585 test -z "$OBJDUMP" && OBJDUMP=objdump
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5596 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5597 if ${lt_cv_deplibs_check_method+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 lt_cv_file_magic_cmd='$MAGIC_CMD'
5601 lt_cv_file_magic_test_file=
5602 lt_cv_deplibs_check_method='unknown'
5603 # Need to set the preceding variable on all platforms that support
5604 # interlibrary dependencies.
5605 # 'none' -- dependencies not supported.
5606 # 'unknown' -- same as none, but documents that we really don't know.
5607 # 'pass_all' -- all dependencies passed with no checks.
5608 # 'test_compile' -- check by making test program.
5609 # 'file_magic [[regex]]' -- check by looking for files in library path
5610 # that responds to the $file_magic_cmd with a given extended regex.
5611 # If you have 'file' or equivalent on your system and you're not sure
5612 # whether 'pass_all' will *always* work, you probably want this one.
5613
5614 case $host_os in
5615 aix[4-9]*)
5616 lt_cv_deplibs_check_method=pass_all
5617 ;;
5618
5619 beos*)
5620 lt_cv_deplibs_check_method=pass_all
5621 ;;
5622
5623 bsdi[45]*)
5624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5625 lt_cv_file_magic_cmd='/usr/bin/file -L'
5626 lt_cv_file_magic_test_file=/shlib/libc.so
5627 ;;
5628
5629 cygwin*)
5630 # func_win32_libid is a shell function defined in ltmain.sh
5631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5632 lt_cv_file_magic_cmd='func_win32_libid'
5633 ;;
5634
5635 mingw* | pw32*)
5636 # Base MSYS/MinGW do not provide the 'file' command needed by
5637 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5638 # unless we find 'file', for example because we are cross-compiling.
5639 if ( file / ) >/dev/null 2>&1; then
5640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5641 lt_cv_file_magic_cmd='func_win32_libid'
5642 else
5643 # Keep this pattern in sync with the one in func_win32_libid.
5644 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5645 lt_cv_file_magic_cmd='$OBJDUMP -f'
5646 fi
5647 ;;
5648
5649 cegcc*)
5650 # use the weaker test based on 'objdump'. See mingw*.
5651 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5652 lt_cv_file_magic_cmd='$OBJDUMP -f'
5653 ;;
5654
5655 darwin* | rhapsody*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659 freebsd* | dragonfly*)
5660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5661 case $host_cpu in
5662 i*86 )
5663 # Not sure whether the presence of OpenBSD here was a mistake.
5664 # Let's accept both of them until this is cleared up.
5665 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5666 lt_cv_file_magic_cmd=/usr/bin/file
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5668 ;;
5669 esac
5670 else
5671 lt_cv_deplibs_check_method=pass_all
5672 fi
5673 ;;
5674
5675 haiku*)
5676 lt_cv_deplibs_check_method=pass_all
5677 ;;
5678
5679 hpux10.20* | hpux11*)
5680 lt_cv_file_magic_cmd=/usr/bin/file
5681 case $host_cpu in
5682 ia64*)
5683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5684 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5685 ;;
5686 hppa*64*)
5687 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]'
5688 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5689 ;;
5690 *)
5691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5692 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5693 ;;
5694 esac
5695 ;;
5696
5697 interix[3-9]*)
5698 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5700 ;;
5701
5702 irix5* | irix6* | nonstopux*)
5703 case $LD in
5704 *-32|*"-32 ") libmagic=32-bit;;
5705 *-n32|*"-n32 ") libmagic=N32;;
5706 *-64|*"-64 ") libmagic=64-bit;;
5707 *) libmagic=never-match;;
5708 esac
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711
5712 # This must be glibc/ELF.
5713 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5714 lt_cv_deplibs_check_method=pass_all
5715 ;;
5716
5717 netbsd*)
5718 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5720 else
5721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5722 fi
5723 ;;
5724
5725 newos6*)
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5727 lt_cv_file_magic_cmd=/usr/bin/file
5728 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5729 ;;
5730
5731 *nto* | *qnx*)
5732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734
5735 openbsd* | bitrig*)
5736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5738 else
5739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5740 fi
5741 ;;
5742
5743 osf3* | osf4* | osf5*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747 rdos*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 solaris*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759 sysv4 | sysv4.3*)
5760 case $host_vendor in
5761 motorola)
5762 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]'
5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5764 ;;
5765 ncr)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768 sequent)
5769 lt_cv_file_magic_cmd='/bin/file'
5770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5771 ;;
5772 sni)
5773 lt_cv_file_magic_cmd='/bin/file'
5774 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5775 lt_cv_file_magic_test_file=/lib/libc.so
5776 ;;
5777 siemens)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780 pc)
5781 lt_cv_deplibs_check_method=pass_all
5782 ;;
5783 esac
5784 ;;
5785
5786 tpf*)
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
5789 os2*)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792 esac
5793
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5796 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5797
5798 file_magic_glob=
5799 want_nocaseglob=no
5800 if test "$build" = "$host"; then
5801 case $host_os in
5802 mingw* | pw32*)
5803 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5804 want_nocaseglob=yes
5805 else
5806 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5807 fi
5808 ;;
5809 esac
5810 fi
5811
5812 file_magic_cmd=$lt_cv_file_magic_cmd
5813 deplibs_check_method=$lt_cv_deplibs_check_method
5814 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_DLLTOOL+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$DLLTOOL"; then
5846 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 DLLTOOL=$ac_cv_prog_DLLTOOL
5866 if test -n "$DLLTOOL"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5868 $as_echo "$DLLTOOL" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874
5875 fi
5876 if test -z "$ac_cv_prog_DLLTOOL"; then
5877 ac_ct_DLLTOOL=$DLLTOOL
5878 # Extract the first word of "dlltool", so it can be a program name with args.
5879 set dummy dlltool; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$ac_ct_DLLTOOL"; then
5886 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5906 if test -n "$ac_ct_DLLTOOL"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5908 $as_echo "$ac_ct_DLLTOOL" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914 if test "x$ac_ct_DLLTOOL" = x; then
5915 DLLTOOL="false"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923 DLLTOOL=$ac_ct_DLLTOOL
5924 fi
5925 else
5926 DLLTOOL="$ac_cv_prog_DLLTOOL"
5927 fi
5928
5929 test -z "$DLLTOOL" && DLLTOOL=dlltool
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5941 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5942 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 lt_cv_sharedlib_from_linklib_cmd='unknown'
5946
5947 case $host_os in
5948 cygwin* | mingw* | pw32* | cegcc*)
5949 # two different shell functions defined in ltmain.sh;
5950 # decide which one to use based on capabilities of $DLLTOOL
5951 case `$DLLTOOL --help 2>&1` in
5952 *--identify-strict*)
5953 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5954 ;;
5955 *)
5956 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5957 ;;
5958 esac
5959 ;;
5960 *)
5961 # fallback: assume linklib IS sharedlib
5962 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5963 ;;
5964 esac
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5968 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5969 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5970 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5971
5972
5973
5974
5975
5976
5977
5978
5979 if test -n "$ac_tool_prefix"; then
5980 for ac_prog in ar
5981 do
5982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_AR+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if test -n "$AR"; then
5990 ac_cv_prog_AR="$AR" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 AR=$ac_cv_prog_AR
6010 if test -n "$AR"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6012 $as_echo "$AR" >&6; }
6013 else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018
6019 test -n "$AR" && break
6020 done
6021 fi
6022 if test -z "$AR"; then
6023 ac_ct_AR=$AR
6024 for ac_prog in ar
6025 do
6026 # Extract the first word of "$ac_prog", so it can be a program name with args.
6027 set dummy $ac_prog; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -n "$ac_ct_AR"; then
6034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_ac_ct_AR="$ac_prog"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6050
6051 fi
6052 fi
6053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6054 if test -n "$ac_ct_AR"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6056 $as_echo "$ac_ct_AR" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6060 fi
6061
6062
6063 test -n "$ac_ct_AR" && break
6064 done
6065
6066 if test "x$ac_ct_AR" = x; then
6067 AR="false"
6068 else
6069 case $cross_compiling:$ac_tool_warned in
6070 yes:)
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073 ac_tool_warned=yes ;;
6074 esac
6075 AR=$ac_ct_AR
6076 fi
6077 fi
6078
6079 : ${AR=ar}
6080 : ${AR_FLAGS=cru}
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6093 $as_echo_n "checking for archiver @FILE support... " >&6; }
6094 if ${lt_cv_ar_at_file+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 lt_cv_ar_at_file=no
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100
6101 int
6102 main ()
6103 {
6104
6105 ;
6106 return 0;
6107 }
6108 _ACEOF
6109 if ac_fn_c_try_compile "$LINENO"; then :
6110 echo conftest.$ac_objext > conftest.lst
6111 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6113 (eval $lt_ar_try) 2>&5
6114 ac_status=$?
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }
6117 if test 0 -eq "$ac_status"; then
6118 # Ensure the archiver fails upon bogus file names.
6119 rm -f conftest.$ac_objext libconftest.a
6120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6121 (eval $lt_ar_try) 2>&5
6122 ac_status=$?
6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124 test $ac_status = 0; }
6125 if test 0 -ne "$ac_status"; then
6126 lt_cv_ar_at_file=@
6127 fi
6128 fi
6129 rm -f conftest.* libconftest.a
6130
6131 fi
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6136 $as_echo "$lt_cv_ar_at_file" >&6; }
6137
6138 if test no = "$lt_cv_ar_at_file"; then
6139 archiver_list_spec=
6140 else
6141 archiver_list_spec=$lt_cv_ar_at_file
6142 fi
6143
6144
6145
6146
6147
6148
6149
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}strip; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_STRIP+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -n "$STRIP"; then
6159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 STRIP=$ac_cv_prog_STRIP
6179 if test -n "$STRIP"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6181 $as_echo "$STRIP" >&6; }
6182 else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188 fi
6189 if test -z "$ac_cv_prog_STRIP"; then
6190 ac_ct_STRIP=$STRIP
6191 # Extract the first word of "strip", so it can be a program name with args.
6192 set dummy strip; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$ac_ct_STRIP"; then
6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_ac_ct_STRIP="strip"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219 if test -n "$ac_ct_STRIP"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6221 $as_echo "$ac_ct_STRIP" >&6; }
6222 else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227 if test "x$ac_ct_STRIP" = x; then
6228 STRIP=":"
6229 else
6230 case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236 STRIP=$ac_ct_STRIP
6237 fi
6238 else
6239 STRIP="$ac_cv_prog_STRIP"
6240 fi
6241
6242 test -z "$STRIP" && STRIP=:
6243
6244
6245
6246
6247
6248
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_RANLIB+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$RANLIB"; then
6258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 RANLIB=$ac_cv_prog_RANLIB
6278 if test -n "$RANLIB"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6280 $as_echo "$RANLIB" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286
6287 fi
6288 if test -z "$ac_cv_prog_RANLIB"; then
6289 ac_ct_RANLIB=$RANLIB
6290 # Extract the first word of "ranlib", so it can be a program name with args.
6291 set dummy ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 if test -n "$ac_ct_RANLIB"; then
6298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_ac_ct_RANLIB="ranlib"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318 if test -n "$ac_ct_RANLIB"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6320 $as_echo "$ac_ct_RANLIB" >&6; }
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326 if test "x$ac_ct_RANLIB" = x; then
6327 RANLIB=":"
6328 else
6329 case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335 RANLIB=$ac_ct_RANLIB
6336 fi
6337 else
6338 RANLIB="$ac_cv_prog_RANLIB"
6339 fi
6340
6341 test -z "$RANLIB" && RANLIB=:
6342
6343
6344
6345
6346
6347
6348 # Determine commands to create old-style static archives.
6349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6350 old_postinstall_cmds='chmod 644 $oldlib'
6351 old_postuninstall_cmds=
6352
6353 if test -n "$RANLIB"; then
6354 case $host_os in
6355 bitrig* | openbsd*)
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6357 ;;
6358 *)
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6360 ;;
6361 esac
6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6363 fi
6364
6365 case $host_os in
6366 darwin*)
6367 lock_old_archive_extraction=yes ;;
6368 *)
6369 lock_old_archive_extraction=no ;;
6370 esac
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 # If no C compiler was specified, use CC.
6411 LTCC=${LTCC-"$CC"}
6412
6413 # If no C compiler flags were specified, use CFLAGS.
6414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6415
6416 # Allow CC to be a program name with arguments.
6417 compiler=$CC
6418
6419
6420 # Check for command to grab the raw symbol name followed by C symbol from nm.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6422 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6423 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426
6427 # These are sane defaults that work on at least a few old systems.
6428 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6429
6430 # Character class describing NM global symbol codes.
6431 symcode='[BCDEGRST]'
6432
6433 # Regexp to match symbols that can be accessed directly from C.
6434 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6435
6436 # Define system-specific variables.
6437 case $host_os in
6438 aix*)
6439 symcode='[BCDT]'
6440 ;;
6441 cygwin* | mingw* | pw32* | cegcc*)
6442 symcode='[ABCDGISTW]'
6443 ;;
6444 hpux*)
6445 if test ia64 = "$host_cpu"; then
6446 symcode='[ABCDEGRST]'
6447 fi
6448 ;;
6449 irix* | nonstopux*)
6450 symcode='[BCDEGRST]'
6451 ;;
6452 osf*)
6453 symcode='[BCDEGQRST]'
6454 ;;
6455 solaris*)
6456 symcode='[BDRT]'
6457 ;;
6458 sco3.2v5*)
6459 symcode='[DT]'
6460 ;;
6461 sysv4.2uw2*)
6462 symcode='[DT]'
6463 ;;
6464 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6465 symcode='[ABDT]'
6466 ;;
6467 sysv4)
6468 symcode='[DFNSTU]'
6469 ;;
6470 esac
6471
6472 # If we're using GNU nm, then use its standard symbol codes.
6473 case `$NM -V 2>&1` in
6474 *GNU* | *'with BFD'*)
6475 symcode='[ABCDGIRSTW]' ;;
6476 esac
6477
6478 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6479 # Gets list of data symbols to import.
6480 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6481 # Adjust the below global symbol transforms to fixup imported variables.
6482 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6483 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6484 lt_c_name_lib_hook="\
6485 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6486 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6487 else
6488 # Disable hooks by default.
6489 lt_cv_sys_global_symbol_to_import=
6490 lt_cdecl_hook=
6491 lt_c_name_hook=
6492 lt_c_name_lib_hook=
6493 fi
6494
6495 # Transform an extracted symbol line into a proper C declaration.
6496 # Some systems (esp. on ia64) link data and code symbols differently,
6497 # so use this general approach.
6498 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6499 $lt_cdecl_hook\
6500 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6501 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6502
6503 # Transform an extracted symbol line into symbol name and symbol address
6504 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6505 $lt_c_name_hook\
6506 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6507 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6508
6509 # Transform an extracted symbol line into symbol name with lib prefix and
6510 # symbol address.
6511 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6512 $lt_c_name_lib_hook\
6513 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6514 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6515 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6516
6517 # Handle CRLF in mingw tool chain
6518 opt_cr=
6519 case $build_os in
6520 mingw*)
6521 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6522 ;;
6523 esac
6524
6525 # Try without a prefix underscore, then with it.
6526 for ac_symprfx in "" "_"; do
6527
6528 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6529 symxfrm="\\1 $ac_symprfx\\2 \\2"
6530
6531 # Write the raw and C identifiers.
6532 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6533 # Fake it for dumpbin and say T for any non-static function,
6534 # D for any global variable and I for any imported variable.
6535 # Also find C++ and __fastcall symbols from MSVC++,
6536 # which start with @ or ?.
6537 lt_cv_sys_global_symbol_pipe="$AWK '"\
6538 " {last_section=section; section=\$ 3};"\
6539 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6540 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6541 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6542 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6543 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6544 " \$ 0!~/External *\|/{next};"\
6545 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6546 " {if(hide[section]) next};"\
6547 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6548 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6549 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6550 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6551 " ' prfx=^$ac_symprfx"
6552 else
6553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6554 fi
6555 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6556
6557 # Check to see that the pipe works correctly.
6558 pipe_works=no
6559
6560 rm -f conftest*
6561 cat > conftest.$ac_ext <<_LT_EOF
6562 #ifdef __cplusplus
6563 extern "C" {
6564 #endif
6565 char nm_test_var;
6566 void nm_test_func(void);
6567 void nm_test_func(void){}
6568 #ifdef __cplusplus
6569 }
6570 #endif
6571 int main(){nm_test_var='a';nm_test_func();return(0);}
6572 _LT_EOF
6573
6574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6575 (eval $ac_compile) 2>&5
6576 ac_status=$?
6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578 test $ac_status = 0; }; then
6579 # Now try to grab the symbols.
6580 nlist=conftest.nm
6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6582 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; } && test -s "$nlist"; then
6586 # Try sorting and uniquifying the output.
6587 if sort "$nlist" | uniq > "$nlist"T; then
6588 mv -f "$nlist"T "$nlist"
6589 else
6590 rm -f "$nlist"T
6591 fi
6592
6593 # Make sure that we snagged all the symbols we need.
6594 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6595 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6596 cat <<_LT_EOF > conftest.$ac_ext
6597 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6598 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6599 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6600 relocations are performed -- see ld's documentation on pseudo-relocs. */
6601 # define LT_DLSYM_CONST
6602 #elif defined __osf__
6603 /* This system does not cope well with relocations in const data. */
6604 # define LT_DLSYM_CONST
6605 #else
6606 # define LT_DLSYM_CONST const
6607 #endif
6608
6609 #ifdef __cplusplus
6610 extern "C" {
6611 #endif
6612
6613 _LT_EOF
6614 # Now generate the symbol file.
6615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6616
6617 cat <<_LT_EOF >> conftest.$ac_ext
6618
6619 /* The mapping between symbol names and symbols. */
6620 LT_DLSYM_CONST struct {
6621 const char *name;
6622 void *address;
6623 }
6624 lt__PROGRAM__LTX_preloaded_symbols[] =
6625 {
6626 { "@PROGRAM@", (void *) 0 },
6627 _LT_EOF
6628 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6629 cat <<\_LT_EOF >> conftest.$ac_ext
6630 {0, (void *) 0}
6631 };
6632
6633 /* This works around a problem in FreeBSD linker */
6634 #ifdef FREEBSD_WORKAROUND
6635 static const void *lt_preloaded_setup() {
6636 return lt__PROGRAM__LTX_preloaded_symbols;
6637 }
6638 #endif
6639
6640 #ifdef __cplusplus
6641 }
6642 #endif
6643 _LT_EOF
6644 # Now try linking the two files.
6645 mv conftest.$ac_objext conftstm.$ac_objext
6646 lt_globsym_save_LIBS=$LIBS
6647 lt_globsym_save_CFLAGS=$CFLAGS
6648 LIBS=conftstm.$ac_objext
6649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6651 (eval $ac_link) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6655 pipe_works=yes
6656 fi
6657 LIBS=$lt_globsym_save_LIBS
6658 CFLAGS=$lt_globsym_save_CFLAGS
6659 else
6660 echo "cannot find nm_test_func in $nlist" >&5
6661 fi
6662 else
6663 echo "cannot find nm_test_var in $nlist" >&5
6664 fi
6665 else
6666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6667 fi
6668 else
6669 echo "$progname: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 fi
6672 rm -rf conftest* conftst*
6673
6674 # Do not use the global_symbol_pipe unless it works.
6675 if test yes = "$pipe_works"; then
6676 break
6677 else
6678 lt_cv_sys_global_symbol_pipe=
6679 fi
6680 done
6681
6682 fi
6683
6684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6685 lt_cv_sys_global_symbol_to_cdecl=
6686 fi
6687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6689 $as_echo "failed" >&6; }
6690 else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6692 $as_echo "ok" >&6; }
6693 fi
6694
6695 # Response file support.
6696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6697 nm_file_list_spec='@'
6698 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6699 nm_file_list_spec='@'
6700 fi
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6739 $as_echo_n "checking for sysroot... " >&6; }
6740
6741 # Check whether --with-sysroot was given.
6742 if test "${with_sysroot+set}" = set; then :
6743 withval=$with_sysroot;
6744 else
6745 with_sysroot=no
6746 fi
6747
6748
6749 lt_sysroot=
6750 case $with_sysroot in #(
6751 yes)
6752 if test yes = "$GCC"; then
6753 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6754 fi
6755 ;; #(
6756 /*)
6757 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6758 ;; #(
6759 no|'')
6760 ;; #(
6761 *)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6763 $as_echo "$with_sysroot" >&6; }
6764 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6765 ;;
6766 esac
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6769 $as_echo "${lt_sysroot:-no}" >&6; }
6770
6771
6772
6773
6774
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6776 $as_echo_n "checking for a working dd... " >&6; }
6777 if ${ac_cv_path_lt_DD+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 printf 0123456789abcdef0123456789abcdef >conftest.i
6781 cat conftest.i conftest.i >conftest2.i
6782 : ${lt_DD:=$DD}
6783 if test -z "$lt_DD"; then
6784 ac_path_lt_DD_found=false
6785 # Loop through the user's path and test for each of PROGNAME-LIST
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_prog in dd; do
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6794 as_fn_executable_p "$ac_path_lt_DD" || continue
6795 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6796 cmp -s conftest.i conftest.out \
6797 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6798 fi
6799 $ac_path_lt_DD_found && break 3
6800 done
6801 done
6802 done
6803 IFS=$as_save_IFS
6804 if test -z "$ac_cv_path_lt_DD"; then
6805 :
6806 fi
6807 else
6808 ac_cv_path_lt_DD=$lt_DD
6809 fi
6810
6811 rm -f conftest.i conftest2.i conftest.out
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6814 $as_echo "$ac_cv_path_lt_DD" >&6; }
6815
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6818 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6819 if ${lt_cv_truncate_bin+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 printf 0123456789abcdef0123456789abcdef >conftest.i
6823 cat conftest.i conftest.i >conftest2.i
6824 lt_cv_truncate_bin=
6825 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6826 cmp -s conftest.i conftest.out \
6827 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6828 fi
6829 rm -f conftest.i conftest2.i conftest.out
6830 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6833 $as_echo "$lt_cv_truncate_bin" >&6; }
6834
6835
6836
6837
6838
6839
6840
6841 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6842 func_cc_basename ()
6843 {
6844 for cc_temp in $*""; do
6845 case $cc_temp in
6846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6848 \-*) ;;
6849 *) break;;
6850 esac
6851 done
6852 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6853 }
6854
6855 # Check whether --enable-libtool-lock was given.
6856 if test "${enable_libtool_lock+set}" = set; then :
6857 enableval=$enable_libtool_lock;
6858 fi
6859
6860 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6861
6862 # Some flags need to be propagated to the compiler or linker for good
6863 # libtool support.
6864 case $host in
6865 ia64-*-hpux*)
6866 # Find out what ABI is being produced by ac_compile, and set mode
6867 # options accordingly.
6868 echo 'int i;' > conftest.$ac_ext
6869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6870 (eval $ac_compile) 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; }; then
6874 case `/usr/bin/file conftest.$ac_objext` in
6875 *ELF-32*)
6876 HPUX_IA64_MODE=32
6877 ;;
6878 *ELF-64*)
6879 HPUX_IA64_MODE=64
6880 ;;
6881 esac
6882 fi
6883 rm -rf conftest*
6884 ;;
6885 *-*-irix6*)
6886 # Find out what ABI is being produced by ac_compile, and set linker
6887 # options accordingly.
6888 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890 (eval $ac_compile) 2>&5
6891 ac_status=$?
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }; then
6894 if test yes = "$lt_cv_prog_gnu_ld"; then
6895 case `/usr/bin/file conftest.$ac_objext` in
6896 *32-bit*)
6897 LD="${LD-ld} -melf32bsmip"
6898 ;;
6899 *N32*)
6900 LD="${LD-ld} -melf32bmipn32"
6901 ;;
6902 *64-bit*)
6903 LD="${LD-ld} -melf64bmip"
6904 ;;
6905 esac
6906 else
6907 case `/usr/bin/file conftest.$ac_objext` in
6908 *32-bit*)
6909 LD="${LD-ld} -32"
6910 ;;
6911 *N32*)
6912 LD="${LD-ld} -n32"
6913 ;;
6914 *64-bit*)
6915 LD="${LD-ld} -64"
6916 ;;
6917 esac
6918 fi
6919 fi
6920 rm -rf conftest*
6921 ;;
6922
6923 mips64*-*linux*)
6924 # Find out what ABI is being produced by ac_compile, and set linker
6925 # options accordingly.
6926 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6928 (eval $ac_compile) 2>&5
6929 ac_status=$?
6930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931 test $ac_status = 0; }; then
6932 emul=elf
6933 case `/usr/bin/file conftest.$ac_objext` in
6934 *32-bit*)
6935 emul="${emul}32"
6936 ;;
6937 *64-bit*)
6938 emul="${emul}64"
6939 ;;
6940 esac
6941 case `/usr/bin/file conftest.$ac_objext` in
6942 *MSB*)
6943 emul="${emul}btsmip"
6944 ;;
6945 *LSB*)
6946 emul="${emul}ltsmip"
6947 ;;
6948 esac
6949 case `/usr/bin/file conftest.$ac_objext` in
6950 *N32*)
6951 emul="${emul}n32"
6952 ;;
6953 esac
6954 LD="${LD-ld} -m $emul"
6955 fi
6956 rm -rf conftest*
6957 ;;
6958
6959 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6960 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6961 # Find out what ABI is being produced by ac_compile, and set linker
6962 # options accordingly. Note that the listed cases only cover the
6963 # situations where additional linker options are needed (such as when
6964 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6965 # vice versa); the common cases where no linker options are needed do
6966 # not appear in the list.
6967 echo 'int i;' > conftest.$ac_ext
6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6969 (eval $ac_compile) 2>&5
6970 ac_status=$?
6971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; }; then
6973 case `/usr/bin/file conftest.o` in
6974 *32-bit*)
6975 case $host in
6976 x86_64-*kfreebsd*-gnu)
6977 LD="${LD-ld} -m elf_i386_fbsd"
6978 ;;
6979 x86_64-*linux*)
6980 case `/usr/bin/file conftest.o` in
6981 *x86-64*)
6982 LD="${LD-ld} -m elf32_x86_64"
6983 ;;
6984 *)
6985 LD="${LD-ld} -m elf_i386"
6986 ;;
6987 esac
6988 ;;
6989 powerpc64le-*linux*)
6990 LD="${LD-ld} -m elf32lppclinux"
6991 ;;
6992 powerpc64-*linux*)
6993 LD="${LD-ld} -m elf32ppclinux"
6994 ;;
6995 s390x-*linux*)
6996 LD="${LD-ld} -m elf_s390"
6997 ;;
6998 sparc64-*linux*)
6999 LD="${LD-ld} -m elf32_sparc"
7000 ;;
7001 esac
7002 ;;
7003 *64-bit*)
7004 case $host in
7005 x86_64-*kfreebsd*-gnu)
7006 LD="${LD-ld} -m elf_x86_64_fbsd"
7007 ;;
7008 x86_64-*linux*)
7009 LD="${LD-ld} -m elf_x86_64"
7010 ;;
7011 powerpcle-*linux*)
7012 LD="${LD-ld} -m elf64lppc"
7013 ;;
7014 powerpc-*linux*)
7015 LD="${LD-ld} -m elf64ppc"
7016 ;;
7017 s390*-*linux*|s390*-*tpf*)
7018 LD="${LD-ld} -m elf64_s390"
7019 ;;
7020 sparc*-*linux*)
7021 LD="${LD-ld} -m elf64_sparc"
7022 ;;
7023 esac
7024 ;;
7025 esac
7026 fi
7027 rm -rf conftest*
7028 ;;
7029
7030 *-*-sco3.2v5*)
7031 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7032 SAVE_CFLAGS=$CFLAGS
7033 CFLAGS="$CFLAGS -belf"
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7035 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7036 if ${lt_cv_cc_needs_belf+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 ac_ext=c
7040 ac_cpp='$CPP $CPPFLAGS'
7041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7044
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047
7048 int
7049 main ()
7050 {
7051
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 lt_cv_cc_needs_belf=yes
7058 else
7059 lt_cv_cc_needs_belf=no
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 ac_ext=c
7064 ac_cpp='$CPP $CPPFLAGS'
7065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7068
7069 fi
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7071 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7072 if test yes != "$lt_cv_cc_needs_belf"; then
7073 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7074 CFLAGS=$SAVE_CFLAGS
7075 fi
7076 ;;
7077 *-*solaris*)
7078 # Find out what ABI is being produced by ac_compile, and set linker
7079 # options accordingly.
7080 echo 'int i;' > conftest.$ac_ext
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082 (eval $ac_compile) 2>&5
7083 ac_status=$?
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; }; then
7086 case `/usr/bin/file conftest.o` in
7087 *64-bit*)
7088 case $lt_cv_prog_gnu_ld in
7089 yes*)
7090 case $host in
7091 i?86-*-solaris*|x86_64-*-solaris*)
7092 LD="${LD-ld} -m elf_x86_64"
7093 ;;
7094 sparc*-*-solaris*)
7095 LD="${LD-ld} -m elf64_sparc"
7096 ;;
7097 esac
7098 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7099 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7100 LD=${LD-ld}_sol2
7101 fi
7102 ;;
7103 *)
7104 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7105 LD="${LD-ld} -64"
7106 fi
7107 ;;
7108 esac
7109 ;;
7110 esac
7111 fi
7112 rm -rf conftest*
7113 ;;
7114 esac
7115
7116 need_locks=$enable_libtool_lock
7117
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}mt; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$MANIFEST_TOOL"; then
7127 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7147 if test -n "$MANIFEST_TOOL"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7149 $as_echo "$MANIFEST_TOOL" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155
7156 fi
7157 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7158 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7159 # Extract the first word of "mt", so it can be a program name with args.
7160 set dummy mt; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$ac_ct_MANIFEST_TOOL"; then
7167 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7187 if test -n "$ac_ct_MANIFEST_TOOL"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7189 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7196 MANIFEST_TOOL=":"
7197 else
7198 case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7205 fi
7206 else
7207 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7208 fi
7209
7210 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7212 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7213 if ${lt_cv_path_mainfest_tool+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 lt_cv_path_mainfest_tool=no
7217 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7218 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7219 cat conftest.err >&5
7220 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7221 lt_cv_path_mainfest_tool=yes
7222 fi
7223 rm -f conftest*
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7226 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7227 if test yes != "$lt_cv_path_mainfest_tool"; then
7228 MANIFEST_TOOL=:
7229 fi
7230
7231
7232
7233
7234
7235
7236 case $host_os in
7237 rhapsody* | darwin*)
7238 if test -n "$ac_tool_prefix"; then
7239 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7240 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 if test -n "$DSYMUTIL"; then
7247 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7267 if test -n "$DSYMUTIL"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7269 $as_echo "$DSYMUTIL" >&6; }
7270 else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7273 fi
7274
7275
7276 fi
7277 if test -z "$ac_cv_prog_DSYMUTIL"; then
7278 ac_ct_DSYMUTIL=$DSYMUTIL
7279 # Extract the first word of "dsymutil", so it can be a program name with args.
7280 set dummy dsymutil; ac_word=$2
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 if test -n "$ac_ct_DSYMUTIL"; then
7287 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7303
7304 fi
7305 fi
7306 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7307 if test -n "$ac_ct_DSYMUTIL"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7309 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315 if test "x$ac_ct_DSYMUTIL" = x; then
7316 DSYMUTIL=":"
7317 else
7318 case $cross_compiling:$ac_tool_warned in
7319 yes:)
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7322 ac_tool_warned=yes ;;
7323 esac
7324 DSYMUTIL=$ac_ct_DSYMUTIL
7325 fi
7326 else
7327 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7328 fi
7329
7330 if test -n "$ac_tool_prefix"; then
7331 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_NMEDIT+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 if test -n "$NMEDIT"; then
7339 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352 done
7353 done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 NMEDIT=$ac_cv_prog_NMEDIT
7359 if test -n "$NMEDIT"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7361 $as_echo "$NMEDIT" >&6; }
7362 else
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367
7368 fi
7369 if test -z "$ac_cv_prog_NMEDIT"; then
7370 ac_ct_NMEDIT=$NMEDIT
7371 # Extract the first word of "nmedit", so it can be a program name with args.
7372 set dummy nmedit; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$ac_ct_NMEDIT"; then
7379 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7391 fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7399 if test -n "$ac_ct_NMEDIT"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7401 $as_echo "$ac_ct_NMEDIT" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407 if test "x$ac_ct_NMEDIT" = x; then
7408 NMEDIT=":"
7409 else
7410 case $cross_compiling:$ac_tool_warned in
7411 yes:)
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7415 esac
7416 NMEDIT=$ac_ct_NMEDIT
7417 fi
7418 else
7419 NMEDIT="$ac_cv_prog_NMEDIT"
7420 fi
7421
7422 if test -n "$ac_tool_prefix"; then
7423 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7424 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_LIPO+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 if test -n "$LIPO"; then
7431 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444 done
7445 done
7446 IFS=$as_save_IFS
7447
7448 fi
7449 fi
7450 LIPO=$ac_cv_prog_LIPO
7451 if test -n "$LIPO"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7453 $as_echo "$LIPO" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 fi
7458
7459
7460 fi
7461 if test -z "$ac_cv_prog_LIPO"; then
7462 ac_ct_LIPO=$LIPO
7463 # Extract the first word of "lipo", so it can be a program name with args.
7464 set dummy lipo; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$ac_ct_LIPO"; then
7471 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480 ac_cv_prog_ac_ct_LIPO="lipo"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7483 fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488 fi
7489 fi
7490 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7491 if test -n "$ac_ct_LIPO"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7493 $as_echo "$ac_ct_LIPO" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498
7499 if test "x$ac_ct_LIPO" = x; then
7500 LIPO=":"
7501 else
7502 case $cross_compiling:$ac_tool_warned in
7503 yes:)
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506 ac_tool_warned=yes ;;
7507 esac
7508 LIPO=$ac_ct_LIPO
7509 fi
7510 else
7511 LIPO="$ac_cv_prog_LIPO"
7512 fi
7513
7514 if test -n "$ac_tool_prefix"; then
7515 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7516 set dummy ${ac_tool_prefix}otool; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_OTOOL+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$OTOOL"; then
7523 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 OTOOL=$ac_cv_prog_OTOOL
7543 if test -n "$OTOOL"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7545 $as_echo "$OTOOL" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551
7552 fi
7553 if test -z "$ac_cv_prog_OTOOL"; then
7554 ac_ct_OTOOL=$OTOOL
7555 # Extract the first word of "otool", so it can be a program name with args.
7556 set dummy otool; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 if test -n "$ac_ct_OTOOL"; then
7563 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_ac_ct_OTOOL="otool"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576 done
7577 done
7578 IFS=$as_save_IFS
7579
7580 fi
7581 fi
7582 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7583 if test -n "$ac_ct_OTOOL"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7585 $as_echo "$ac_ct_OTOOL" >&6; }
7586 else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7589 fi
7590
7591 if test "x$ac_ct_OTOOL" = x; then
7592 OTOOL=":"
7593 else
7594 case $cross_compiling:$ac_tool_warned in
7595 yes:)
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7598 ac_tool_warned=yes ;;
7599 esac
7600 OTOOL=$ac_ct_OTOOL
7601 fi
7602 else
7603 OTOOL="$ac_cv_prog_OTOOL"
7604 fi
7605
7606 if test -n "$ac_tool_prefix"; then
7607 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7608 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_OTOOL64+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 if test -n "$OTOOL64"; then
7615 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632 fi
7633 fi
7634 OTOOL64=$ac_cv_prog_OTOOL64
7635 if test -n "$OTOOL64"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7637 $as_echo "$OTOOL64" >&6; }
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7641 fi
7642
7643
7644 fi
7645 if test -z "$ac_cv_prog_OTOOL64"; then
7646 ac_ct_OTOOL64=$OTOOL64
7647 # Extract the first word of "otool64", so it can be a program name with args.
7648 set dummy otool64; ac_word=$2
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 $as_echo_n "checking for $ac_word... " >&6; }
7651 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 if test -n "$ac_ct_OTOOL64"; then
7655 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_ac_ct_OTOOL64="otool64"
7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672 fi
7673 fi
7674 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7675 if test -n "$ac_ct_OTOOL64"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7677 $as_echo "$ac_ct_OTOOL64" >&6; }
7678 else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7681 fi
7682
7683 if test "x$ac_ct_OTOOL64" = x; then
7684 OTOOL64=":"
7685 else
7686 case $cross_compiling:$ac_tool_warned in
7687 yes:)
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7690 ac_tool_warned=yes ;;
7691 esac
7692 OTOOL64=$ac_ct_OTOOL64
7693 fi
7694 else
7695 OTOOL64="$ac_cv_prog_OTOOL64"
7696 fi
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7725 $as_echo_n "checking for -single_module linker flag... " >&6; }
7726 if ${lt_cv_apple_cc_single_mod+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 lt_cv_apple_cc_single_mod=no
7730 if test -z "$LT_MULTI_MODULE"; then
7731 # By default we will add the -single_module flag. You can override
7732 # by either setting the environment variable LT_MULTI_MODULE
7733 # non-empty at configure time, or by adding -multi_module to the
7734 # link flags.
7735 rm -rf libconftest.dylib*
7736 echo "int foo(void){return 1;}" > conftest.c
7737 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7738 -dynamiclib -Wl,-single_module conftest.c" >&5
7739 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7740 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7741 _lt_result=$?
7742 # If there is a non-empty error log, and "single_module"
7743 # appears in it, assume the flag caused a linker warning
7744 if test -s conftest.err && $GREP single_module conftest.err; then
7745 cat conftest.err >&5
7746 # Otherwise, if the output was created with a 0 exit code from
7747 # the compiler, it worked.
7748 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7749 lt_cv_apple_cc_single_mod=yes
7750 else
7751 cat conftest.err >&5
7752 fi
7753 rm -rf libconftest.dylib*
7754 rm -f conftest.*
7755 fi
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7758 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7761 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7762 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 lt_cv_ld_exported_symbols_list=no
7766 save_LDFLAGS=$LDFLAGS
7767 echo "_main" > conftest.sym
7768 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771
7772 int
7773 main ()
7774 {
7775
7776 ;
7777 return 0;
7778 }
7779 _ACEOF
7780 if ac_fn_c_try_link "$LINENO"; then :
7781 lt_cv_ld_exported_symbols_list=yes
7782 else
7783 lt_cv_ld_exported_symbols_list=no
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787 LDFLAGS=$save_LDFLAGS
7788
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7791 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7792
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7794 $as_echo_n "checking for -force_load linker flag... " >&6; }
7795 if ${lt_cv_ld_force_load+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 lt_cv_ld_force_load=no
7799 cat > conftest.c << _LT_EOF
7800 int forced_loaded() { return 2;}
7801 _LT_EOF
7802 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7803 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7804 echo "$AR cru libconftest.a conftest.o" >&5
7805 $AR cru libconftest.a conftest.o 2>&5
7806 echo "$RANLIB libconftest.a" >&5
7807 $RANLIB libconftest.a 2>&5
7808 cat > conftest.c << _LT_EOF
7809 int main() { return 0;}
7810 _LT_EOF
7811 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7812 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7813 _lt_result=$?
7814 if test -s conftest.err && $GREP force_load conftest.err; then
7815 cat conftest.err >&5
7816 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7817 lt_cv_ld_force_load=yes
7818 else
7819 cat conftest.err >&5
7820 fi
7821 rm -f conftest.err libconftest.a conftest conftest.c
7822 rm -rf conftest.dSYM
7823
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7826 $as_echo "$lt_cv_ld_force_load" >&6; }
7827 case $host_os in
7828 rhapsody* | darwin1.[012])
7829 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7830 darwin1.*)
7831 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7832 darwin*) # darwin 5.x on
7833 # if running on 10.5 or later, the deployment target defaults
7834 # to the OS version, if on x86, and 10.4, the deployment
7835 # target defaults to 10.4. Don't you love it?
7836 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7837 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7838 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7839 10.[012][,.]*)
7840 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7841 10.*)
7842 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7843 esac
7844 ;;
7845 esac
7846 if test yes = "$lt_cv_apple_cc_single_mod"; then
7847 _lt_dar_single_mod='$single_module'
7848 fi
7849 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7850 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7851 else
7852 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7853 fi
7854 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7855 _lt_dsymutil='~$DSYMUTIL $lib || :'
7856 else
7857 _lt_dsymutil=
7858 fi
7859 ;;
7860 esac
7861
7862 # func_munge_path_list VARIABLE PATH
7863 # -----------------------------------
7864 # VARIABLE is name of variable containing _space_ separated list of
7865 # directories to be munged by the contents of PATH, which is string
7866 # having a format:
7867 # "DIR[:DIR]:"
7868 # string "DIR[ DIR]" will be prepended to VARIABLE
7869 # ":DIR[:DIR]"
7870 # string "DIR[ DIR]" will be appended to VARIABLE
7871 # "DIRP[:DIRP]::[DIRA:]DIRA"
7872 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7873 # "DIRA[ DIRA]" will be appended to VARIABLE
7874 # "DIR[:DIR]"
7875 # VARIABLE will be replaced by "DIR[ DIR]"
7876 func_munge_path_list ()
7877 {
7878 case x$2 in
7879 x)
7880 ;;
7881 *:)
7882 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7883 ;;
7884 x:*)
7885 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7886 ;;
7887 *::*)
7888 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7889 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7890 ;;
7891 *)
7892 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7893 ;;
7894 esac
7895 }
7896
7897 ac_ext=c
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7903 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7904 # On Suns, sometimes $CPP names a directory.
7905 if test -n "$CPP" && test -d "$CPP"; then
7906 CPP=
7907 fi
7908 if test -z "$CPP"; then
7909 if ${ac_cv_prog_CPP+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 # Double quotes because CPP needs to be expanded
7913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7914 do
7915 ac_preproc_ok=false
7916 for ac_c_preproc_warn_flag in '' yes
7917 do
7918 # Use a header file that comes with gcc, so configuring glibc
7919 # with a fresh cross-compiler works.
7920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7921 # <limits.h> exists even on freestanding compilers.
7922 # On the NeXT, cc -E runs the code through the compiler's parser,
7923 # not just through cpp. "Syntax error" is here to catch this case.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 #ifdef __STDC__
7927 # include <limits.h>
7928 #else
7929 # include <assert.h>
7930 #endif
7931 Syntax error
7932 _ACEOF
7933 if ac_fn_c_try_cpp "$LINENO"; then :
7934
7935 else
7936 # Broken: fails on valid input.
7937 continue
7938 fi
7939 rm -f conftest.err conftest.i conftest.$ac_ext
7940
7941 # OK, works on sane cases. Now check whether nonexistent headers
7942 # can be detected and how.
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 #include <ac_nonexistent.h>
7946 _ACEOF
7947 if ac_fn_c_try_cpp "$LINENO"; then :
7948 # Broken: success on invalid input.
7949 continue
7950 else
7951 # Passes both tests.
7952 ac_preproc_ok=:
7953 break
7954 fi
7955 rm -f conftest.err conftest.i conftest.$ac_ext
7956
7957 done
7958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7959 rm -f conftest.i conftest.err conftest.$ac_ext
7960 if $ac_preproc_ok; then :
7961 break
7962 fi
7963
7964 done
7965 ac_cv_prog_CPP=$CPP
7966
7967 fi
7968 CPP=$ac_cv_prog_CPP
7969 else
7970 ac_cv_prog_CPP=$CPP
7971 fi
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7973 $as_echo "$CPP" >&6; }
7974 ac_preproc_ok=false
7975 for ac_c_preproc_warn_flag in '' yes
7976 do
7977 # Use a header file that comes with gcc, so configuring glibc
7978 # with a fresh cross-compiler works.
7979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7980 # <limits.h> exists even on freestanding compilers.
7981 # On the NeXT, cc -E runs the code through the compiler's parser,
7982 # not just through cpp. "Syntax error" is here to catch this case.
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #ifdef __STDC__
7986 # include <limits.h>
7987 #else
7988 # include <assert.h>
7989 #endif
7990 Syntax error
7991 _ACEOF
7992 if ac_fn_c_try_cpp "$LINENO"; then :
7993
7994 else
7995 # Broken: fails on valid input.
7996 continue
7997 fi
7998 rm -f conftest.err conftest.i conftest.$ac_ext
7999
8000 # OK, works on sane cases. Now check whether nonexistent headers
8001 # can be detected and how.
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 #include <ac_nonexistent.h>
8005 _ACEOF
8006 if ac_fn_c_try_cpp "$LINENO"; then :
8007 # Broken: success on invalid input.
8008 continue
8009 else
8010 # Passes both tests.
8011 ac_preproc_ok=:
8012 break
8013 fi
8014 rm -f conftest.err conftest.i conftest.$ac_ext
8015
8016 done
8017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8018 rm -f conftest.i conftest.err conftest.$ac_ext
8019 if $ac_preproc_ok; then :
8020
8021 else
8022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8024 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8025 See \`config.log' for more details" "$LINENO" 5; }
8026 fi
8027
8028 ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8036 $as_echo_n "checking for ANSI C header files... " >&6; }
8037 if ${ac_cv_header_stdc+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8042 #include <stdlib.h>
8043 #include <stdarg.h>
8044 #include <string.h>
8045 #include <float.h>
8046
8047 int
8048 main ()
8049 {
8050
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_compile "$LINENO"; then :
8056 ac_cv_header_stdc=yes
8057 else
8058 ac_cv_header_stdc=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061
8062 if test $ac_cv_header_stdc = yes; then
8063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 #include <string.h>
8067
8068 _ACEOF
8069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8070 $EGREP "memchr" >/dev/null 2>&1; then :
8071
8072 else
8073 ac_cv_header_stdc=no
8074 fi
8075 rm -f conftest*
8076
8077 fi
8078
8079 if test $ac_cv_header_stdc = yes; then
8080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <stdlib.h>
8084
8085 _ACEOF
8086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8087 $EGREP "free" >/dev/null 2>&1; then :
8088
8089 else
8090 ac_cv_header_stdc=no
8091 fi
8092 rm -f conftest*
8093
8094 fi
8095
8096 if test $ac_cv_header_stdc = yes; then
8097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8098 if test "$cross_compiling" = yes; then :
8099 :
8100 else
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 #include <ctype.h>
8104 #include <stdlib.h>
8105 #if ((' ' & 0x0FF) == 0x020)
8106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8108 #else
8109 # define ISLOWER(c) \
8110 (('a' <= (c) && (c) <= 'i') \
8111 || ('j' <= (c) && (c) <= 'r') \
8112 || ('s' <= (c) && (c) <= 'z'))
8113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8114 #endif
8115
8116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8117 int
8118 main ()
8119 {
8120 int i;
8121 for (i = 0; i < 256; i++)
8122 if (XOR (islower (i), ISLOWER (i))
8123 || toupper (i) != TOUPPER (i))
8124 return 2;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_run "$LINENO"; then :
8129
8130 else
8131 ac_cv_header_stdc=no
8132 fi
8133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8134 conftest.$ac_objext conftest.beam conftest.$ac_ext
8135 fi
8136
8137 fi
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8140 $as_echo "$ac_cv_header_stdc" >&6; }
8141 if test $ac_cv_header_stdc = yes; then
8142
8143 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8144
8145 fi
8146
8147 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8148 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8149 inttypes.h stdint.h unistd.h
8150 do :
8151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8153 "
8154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8155 cat >>confdefs.h <<_ACEOF
8156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8157 _ACEOF
8158
8159 fi
8160
8161 done
8162
8163
8164 for ac_header in dlfcn.h
8165 do :
8166 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8167 "
8168 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8169 cat >>confdefs.h <<_ACEOF
8170 #define HAVE_DLFCN_H 1
8171 _ACEOF
8172
8173 fi
8174
8175 done
8176
8177
8178
8179
8180 func_stripname_cnf ()
8181 {
8182 case $2 in
8183 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8184 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8185 esac
8186 } # func_stripname_cnf
8187
8188
8189
8190
8191
8192 # Set options
8193
8194
8195
8196 enable_dlopen=no
8197
8198
8199 enable_win32_dll=no
8200
8201
8202 # Check whether --enable-shared was given.
8203 if test "${enable_shared+set}" = set; then :
8204 enableval=$enable_shared; p=${PACKAGE-default}
8205 case $enableval in
8206 yes) enable_shared=yes ;;
8207 no) enable_shared=no ;;
8208 *)
8209 enable_shared=no
8210 # Look at the argument we got. We use all the common list separators.
8211 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8212 for pkg in $enableval; do
8213 IFS=$lt_save_ifs
8214 if test "X$pkg" = "X$p"; then
8215 enable_shared=yes
8216 fi
8217 done
8218 IFS=$lt_save_ifs
8219 ;;
8220 esac
8221 else
8222 enable_shared=yes
8223 fi
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233 # Check whether --enable-static was given.
8234 if test "${enable_static+set}" = set; then :
8235 enableval=$enable_static; p=${PACKAGE-default}
8236 case $enableval in
8237 yes) enable_static=yes ;;
8238 no) enable_static=no ;;
8239 *)
8240 enable_static=no
8241 # Look at the argument we got. We use all the common list separators.
8242 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8243 for pkg in $enableval; do
8244 IFS=$lt_save_ifs
8245 if test "X$pkg" = "X$p"; then
8246 enable_static=yes
8247 fi
8248 done
8249 IFS=$lt_save_ifs
8250 ;;
8251 esac
8252 else
8253 enable_static=yes
8254 fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265 # Check whether --with-pic was given.
8266 if test "${with_pic+set}" = set; then :
8267 withval=$with_pic; lt_p=${PACKAGE-default}
8268 case $withval in
8269 yes|no) pic_mode=$withval ;;
8270 *)
8271 pic_mode=default
8272 # Look at the argument we got. We use all the common list separators.
8273 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8274 for lt_pkg in $withval; do
8275 IFS=$lt_save_ifs
8276 if test "X$lt_pkg" = "X$lt_p"; then
8277 pic_mode=yes
8278 fi
8279 done
8280 IFS=$lt_save_ifs
8281 ;;
8282 esac
8283 else
8284 pic_mode=default
8285 fi
8286
8287
8288
8289
8290
8291
8292
8293
8294 # Check whether --enable-fast-install was given.
8295 if test "${enable_fast_install+set}" = set; then :
8296 enableval=$enable_fast_install; p=${PACKAGE-default}
8297 case $enableval in
8298 yes) enable_fast_install=yes ;;
8299 no) enable_fast_install=no ;;
8300 *)
8301 enable_fast_install=no
8302 # Look at the argument we got. We use all the common list separators.
8303 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8304 for pkg in $enableval; do
8305 IFS=$lt_save_ifs
8306 if test "X$pkg" = "X$p"; then
8307 enable_fast_install=yes
8308 fi
8309 done
8310 IFS=$lt_save_ifs
8311 ;;
8312 esac
8313 else
8314 enable_fast_install=yes
8315 fi
8316
8317
8318
8319
8320
8321
8322
8323
8324 shared_archive_member_spec=
8325 case $host,$enable_shared in
8326 power*-*-aix[5-9]*,yes)
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8328 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8329
8330 # Check whether --with-aix-soname was given.
8331 if test "${with_aix_soname+set}" = set; then :
8332 withval=$with_aix_soname; case $withval in
8333 aix|svr4|both)
8334 ;;
8335 *)
8336 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8337 ;;
8338 esac
8339 lt_cv_with_aix_soname=$with_aix_soname
8340 else
8341 if ${lt_cv_with_aix_soname+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 lt_cv_with_aix_soname=aix
8345 fi
8346
8347 with_aix_soname=$lt_cv_with_aix_soname
8348 fi
8349
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8351 $as_echo "$with_aix_soname" >&6; }
8352 if test aix != "$with_aix_soname"; then
8353 # For the AIX way of multilib, we name the shared archive member
8354 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8355 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8356 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8357 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8358 if test 64 = "${OBJECT_MODE-32}"; then
8359 shared_archive_member_spec=shr_64
8360 else
8361 shared_archive_member_spec=shr
8362 fi
8363 fi
8364 ;;
8365 *)
8366 with_aix_soname=aix
8367 ;;
8368 esac
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379 # This can be used to rebuild libtool when needed
8380 LIBTOOL_DEPS=$ltmain
8381
8382 # Always use our own libtool.
8383 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414 test -z "$LN_S" && LN_S="ln -s"
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429 if test -n "${ZSH_VERSION+set}"; then
8430 setopt NO_GLOB_SUBST
8431 fi
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8434 $as_echo_n "checking for objdir... " >&6; }
8435 if ${lt_cv_objdir+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 rm -f .libs 2>/dev/null
8439 mkdir .libs 2>/dev/null
8440 if test -d .libs; then
8441 lt_cv_objdir=.libs
8442 else
8443 # MS-DOS does not allow filenames that begin with a dot.
8444 lt_cv_objdir=_libs
8445 fi
8446 rmdir .libs 2>/dev/null
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8449 $as_echo "$lt_cv_objdir" >&6; }
8450 objdir=$lt_cv_objdir
8451
8452
8453
8454
8455
8456 cat >>confdefs.h <<_ACEOF
8457 #define LT_OBJDIR "$lt_cv_objdir/"
8458 _ACEOF
8459
8460
8461
8462
8463 case $host_os in
8464 aix3*)
8465 # AIX sometimes has problems with the GCC collect2 program. For some
8466 # reason, if we set the COLLECT_NAMES environment variable, the problems
8467 # vanish in a puff of smoke.
8468 if test set != "${COLLECT_NAMES+set}"; then
8469 COLLECT_NAMES=
8470 export COLLECT_NAMES
8471 fi
8472 ;;
8473 esac
8474
8475 # Global variables:
8476 ofile=libtool
8477 can_build_shared=yes
8478
8479 # All known linkers require a '.a' archive for static linking (except MSVC,
8480 # which needs '.lib').
8481 libext=a
8482
8483 with_gnu_ld=$lt_cv_prog_gnu_ld
8484
8485 old_CC=$CC
8486 old_CFLAGS=$CFLAGS
8487
8488 # Set sane defaults for various variables
8489 test -z "$CC" && CC=cc
8490 test -z "$LTCC" && LTCC=$CC
8491 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8492 test -z "$LD" && LD=ld
8493 test -z "$ac_objext" && ac_objext=o
8494
8495 func_cc_basename $compiler
8496 cc_basename=$func_cc_basename_result
8497
8498
8499 # Only perform the check for file, if the check method requires it
8500 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8501 case $deplibs_check_method in
8502 file_magic*)
8503 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8505 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8506 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 case $MAGIC_CMD in
8510 [\\/*] | ?:[\\/]*)
8511 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8512 ;;
8513 *)
8514 lt_save_MAGIC_CMD=$MAGIC_CMD
8515 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8517 for ac_dir in $ac_dummy; do
8518 IFS=$lt_save_ifs
8519 test -z "$ac_dir" && ac_dir=.
8520 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8521 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8522 if test -n "$file_magic_test_file"; then
8523 case $deplibs_check_method in
8524 "file_magic "*)
8525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8526 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8528 $EGREP "$file_magic_regex" > /dev/null; then
8529 :
8530 else
8531 cat <<_LT_EOF 1>&2
8532
8533 *** Warning: the command libtool uses to detect shared libraries,
8534 *** $file_magic_cmd, produces output that libtool cannot recognize.
8535 *** The result is that libtool may fail to recognize shared libraries
8536 *** as such. This will affect the creation of libtool libraries that
8537 *** depend on shared libraries, but programs linked with such libtool
8538 *** libraries will work regardless of this problem. Nevertheless, you
8539 *** may want to report the problem to your system manager and/or to
8540 *** [email protected]
8541
8542 _LT_EOF
8543 fi ;;
8544 esac
8545 fi
8546 break
8547 fi
8548 done
8549 IFS=$lt_save_ifs
8550 MAGIC_CMD=$lt_save_MAGIC_CMD
8551 ;;
8552 esac
8553 fi
8554
8555 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8556 if test -n "$MAGIC_CMD"; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8558 $as_echo "$MAGIC_CMD" >&6; }
8559 else
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8562 fi
8563
8564
8565
8566
8567
8568 if test -z "$lt_cv_path_MAGIC_CMD"; then
8569 if test -n "$ac_tool_prefix"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8571 $as_echo_n "checking for file... " >&6; }
8572 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 case $MAGIC_CMD in
8576 [\\/*] | ?:[\\/]*)
8577 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8578 ;;
8579 *)
8580 lt_save_MAGIC_CMD=$MAGIC_CMD
8581 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8582 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8583 for ac_dir in $ac_dummy; do
8584 IFS=$lt_save_ifs
8585 test -z "$ac_dir" && ac_dir=.
8586 if test -f "$ac_dir/file"; then
8587 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8588 if test -n "$file_magic_test_file"; then
8589 case $deplibs_check_method in
8590 "file_magic "*)
8591 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8592 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8594 $EGREP "$file_magic_regex" > /dev/null; then
8595 :
8596 else
8597 cat <<_LT_EOF 1>&2
8598
8599 *** Warning: the command libtool uses to detect shared libraries,
8600 *** $file_magic_cmd, produces output that libtool cannot recognize.
8601 *** The result is that libtool may fail to recognize shared libraries
8602 *** as such. This will affect the creation of libtool libraries that
8603 *** depend on shared libraries, but programs linked with such libtool
8604 *** libraries will work regardless of this problem. Nevertheless, you
8605 *** may want to report the problem to your system manager and/or to
8606 *** [email protected]
8607
8608 _LT_EOF
8609 fi ;;
8610 esac
8611 fi
8612 break
8613 fi
8614 done
8615 IFS=$lt_save_ifs
8616 MAGIC_CMD=$lt_save_MAGIC_CMD
8617 ;;
8618 esac
8619 fi
8620
8621 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8622 if test -n "$MAGIC_CMD"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8624 $as_echo "$MAGIC_CMD" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631 else
8632 MAGIC_CMD=:
8633 fi
8634 fi
8635
8636 fi
8637 ;;
8638 esac
8639
8640 # Use C for the default configuration in the libtool script
8641
8642 lt_save_CC=$CC
8643 ac_ext=c
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649
8650 # Source file extension for C test sources.
8651 ac_ext=c
8652
8653 # Object file extension for compiled C test sources.
8654 objext=o
8655 objext=$objext
8656
8657 # Code to be used in simple compile tests
8658 lt_simple_compile_test_code="int some_variable = 0;"
8659
8660 # Code to be used in simple link tests
8661 lt_simple_link_test_code='int main(){return(0);}'
8662
8663
8664
8665
8666
8667
8668
8669 # If no C compiler was specified, use CC.
8670 LTCC=${LTCC-"$CC"}
8671
8672 # If no C compiler flags were specified, use CFLAGS.
8673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8674
8675 # Allow CC to be a program name with arguments.
8676 compiler=$CC
8677
8678 # Save the default compiler, since it gets overwritten when the other
8679 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8680 compiler_DEFAULT=$CC
8681
8682 # save warnings/boilerplate of simple test code
8683 ac_outfile=conftest.$ac_objext
8684 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8686 _lt_compiler_boilerplate=`cat conftest.err`
8687 $RM conftest*
8688
8689 ac_outfile=conftest.$ac_objext
8690 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8692 _lt_linker_boilerplate=`cat conftest.err`
8693 $RM -r conftest*
8694
8695
8696 ## CAVEAT EMPTOR:
8697 ## There is no encapsulation within the following macros, do not change
8698 ## the running order or otherwise move them around unless you know exactly
8699 ## what you are doing...
8700 if test -n "$compiler"; then
8701
8702 lt_prog_compiler_no_builtin_flag=
8703
8704 if test yes = "$GCC"; then
8705 case $cc_basename in
8706 nvcc*)
8707 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8708 *)
8709 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8710 esac
8711
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8713 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8714 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 lt_cv_prog_compiler_rtti_exceptions=no
8718 ac_outfile=conftest.$ac_objext
8719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8720 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8721 # Insert the option either (1) after the last *FLAGS variable, or
8722 # (2) before a word containing "conftest.", or (3) at the end.
8723 # Note that $ac_compile itself does not contain backslashes and begins
8724 # with a dollar sign (not a hyphen), so the echo should work correctly.
8725 # The option is referenced via a variable to avoid confusing sed.
8726 lt_compile=`echo "$ac_compile" | $SED \
8727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8729 -e 's:$: $lt_compiler_flag:'`
8730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8731 (eval "$lt_compile" 2>conftest.err)
8732 ac_status=$?
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 if (exit $ac_status) && test -s "$ac_outfile"; then
8736 # The compiler can only warn and ignore the option if not recognized
8737 # So say no if there are warnings other than the usual output.
8738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8741 lt_cv_prog_compiler_rtti_exceptions=yes
8742 fi
8743 fi
8744 $RM conftest*
8745
8746 fi
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8748 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8749
8750 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8751 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8752 else
8753 :
8754 fi
8755
8756 fi
8757
8758
8759
8760
8761
8762
8763 lt_prog_compiler_wl=
8764 lt_prog_compiler_pic=
8765 lt_prog_compiler_static=
8766
8767
8768 if test yes = "$GCC"; then
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_static='-static'
8771
8772 case $host_os in
8773 aix*)
8774 # All AIX code is PIC.
8775 if test ia64 = "$host_cpu"; then
8776 # AIX 5 now supports IA64 processor
8777 lt_prog_compiler_static='-Bstatic'
8778 fi
8779 lt_prog_compiler_pic='-fPIC'
8780 ;;
8781
8782 amigaos*)
8783 case $host_cpu in
8784 powerpc)
8785 # see comment about AmigaOS4 .so support
8786 lt_prog_compiler_pic='-fPIC'
8787 ;;
8788 m68k)
8789 # FIXME: we need at least 68020 code to build shared libraries, but
8790 # adding the '-m68020' flag to GCC prevents building anything better,
8791 # like '-m68040'.
8792 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8793 ;;
8794 esac
8795 ;;
8796
8797 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8798 # PIC is the default for these OSes.
8799 ;;
8800
8801 mingw* | cygwin* | pw32* | os2* | cegcc*)
8802 # This hack is so that the source file can tell whether it is being
8803 # built for inclusion in a dll (and should export symbols for example).
8804 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8805 # (--disable-auto-import) libraries
8806 lt_prog_compiler_pic='-DDLL_EXPORT'
8807 case $host_os in
8808 os2*)
8809 lt_prog_compiler_static='$wl-static'
8810 ;;
8811 esac
8812 ;;
8813
8814 darwin* | rhapsody*)
8815 # PIC is the default on this platform
8816 # Common symbols not allowed in MH_DYLIB files
8817 lt_prog_compiler_pic='-fno-common'
8818 ;;
8819
8820 haiku*)
8821 # PIC is the default for Haiku.
8822 # The "-static" flag exists, but is broken.
8823 lt_prog_compiler_static=
8824 ;;
8825
8826 hpux*)
8827 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8828 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8829 # sets the default TLS model and affects inlining.
8830 case $host_cpu in
8831 hppa*64*)
8832 # +Z the default
8833 ;;
8834 *)
8835 lt_prog_compiler_pic='-fPIC'
8836 ;;
8837 esac
8838 ;;
8839
8840 interix[3-9]*)
8841 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8842 # Instead, we relocate shared libraries at runtime.
8843 ;;
8844
8845 msdosdjgpp*)
8846 # Just because we use GCC doesn't mean we suddenly get shared libraries
8847 # on systems that don't support them.
8848 lt_prog_compiler_can_build_shared=no
8849 enable_shared=no
8850 ;;
8851
8852 *nto* | *qnx*)
8853 # QNX uses GNU C++, but need to define -shared option too, otherwise
8854 # it will coredump.
8855 lt_prog_compiler_pic='-fPIC -shared'
8856 ;;
8857
8858 sysv4*MP*)
8859 if test -d /usr/nec; then
8860 lt_prog_compiler_pic=-Kconform_pic
8861 fi
8862 ;;
8863
8864 *)
8865 lt_prog_compiler_pic='-fPIC'
8866 ;;
8867 esac
8868
8869 case $cc_basename in
8870 nvcc*) # Cuda Compiler Driver 2.2
8871 lt_prog_compiler_wl='-Xlinker '
8872 if test -n "$lt_prog_compiler_pic"; then
8873 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8874 fi
8875 ;;
8876 esac
8877 else
8878 # PORTME Check for flag to pass linker flags through the system compiler.
8879 case $host_os in
8880 aix*)
8881 lt_prog_compiler_wl='-Wl,'
8882 if test ia64 = "$host_cpu"; then
8883 # AIX 5 now supports IA64 processor
8884 lt_prog_compiler_static='-Bstatic'
8885 else
8886 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8887 fi
8888 ;;
8889
8890 darwin* | rhapsody*)
8891 # PIC is the default on this platform
8892 # Common symbols not allowed in MH_DYLIB files
8893 lt_prog_compiler_pic='-fno-common'
8894 case $cc_basename in
8895 nagfor*)
8896 # NAG Fortran compiler
8897 lt_prog_compiler_wl='-Wl,-Wl,,'
8898 lt_prog_compiler_pic='-PIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 ;;
8901 esac
8902 ;;
8903
8904 mingw* | cygwin* | pw32* | os2* | cegcc*)
8905 # This hack is so that the source file can tell whether it is being
8906 # built for inclusion in a dll (and should export symbols for example).
8907 lt_prog_compiler_pic='-DDLL_EXPORT'
8908 case $host_os in
8909 os2*)
8910 lt_prog_compiler_static='$wl-static'
8911 ;;
8912 esac
8913 ;;
8914
8915 hpux9* | hpux10* | hpux11*)
8916 lt_prog_compiler_wl='-Wl,'
8917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8918 # not for PA HP-UX.
8919 case $host_cpu in
8920 hppa*64*|ia64*)
8921 # +Z the default
8922 ;;
8923 *)
8924 lt_prog_compiler_pic='+Z'
8925 ;;
8926 esac
8927 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8928 lt_prog_compiler_static='$wl-a ${wl}archive'
8929 ;;
8930
8931 irix5* | irix6* | nonstopux*)
8932 lt_prog_compiler_wl='-Wl,'
8933 # PIC (with -KPIC) is the default.
8934 lt_prog_compiler_static='-non_shared'
8935 ;;
8936
8937 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8938 case $cc_basename in
8939 # old Intel for x86_64, which still supported -KPIC.
8940 ecc*)
8941 lt_prog_compiler_wl='-Wl,'
8942 lt_prog_compiler_pic='-KPIC'
8943 lt_prog_compiler_static='-static'
8944 ;;
8945 # icc used to be incompatible with GCC.
8946 # ICC 10 doesn't accept -KPIC any more.
8947 icc* | ifort*)
8948 lt_prog_compiler_wl='-Wl,'
8949 lt_prog_compiler_pic='-fPIC'
8950 lt_prog_compiler_static='-static'
8951 ;;
8952 # Lahey Fortran 8.1.
8953 lf95*)
8954 lt_prog_compiler_wl='-Wl,'
8955 lt_prog_compiler_pic='--shared'
8956 lt_prog_compiler_static='--static'
8957 ;;
8958 nagfor*)
8959 # NAG Fortran compiler
8960 lt_prog_compiler_wl='-Wl,-Wl,,'
8961 lt_prog_compiler_pic='-PIC'
8962 lt_prog_compiler_static='-Bstatic'
8963 ;;
8964 tcc*)
8965 # Fabrice Bellard et al's Tiny C Compiler
8966 lt_prog_compiler_wl='-Wl,'
8967 lt_prog_compiler_pic='-fPIC'
8968 lt_prog_compiler_static='-static'
8969 ;;
8970 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8971 # Portland Group compilers (*not* the Pentium gcc compiler,
8972 # which looks to be a dead project)
8973 lt_prog_compiler_wl='-Wl,'
8974 lt_prog_compiler_pic='-fpic'
8975 lt_prog_compiler_static='-Bstatic'
8976 ;;
8977 ccc*)
8978 lt_prog_compiler_wl='-Wl,'
8979 # All Alpha code is PIC.
8980 lt_prog_compiler_static='-non_shared'
8981 ;;
8982 xl* | bgxl* | bgf* | mpixl*)
8983 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='-qpic'
8986 lt_prog_compiler_static='-qstaticlink'
8987 ;;
8988 *)
8989 case `$CC -V 2>&1 | sed 5q` in
8990 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8991 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8992 lt_prog_compiler_pic='-KPIC'
8993 lt_prog_compiler_static='-Bstatic'
8994 lt_prog_compiler_wl=''
8995 ;;
8996 *Sun\ F* | *Sun*Fortran*)
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 lt_prog_compiler_wl='-Qoption ld '
9000 ;;
9001 *Sun\ C*)
9002 # Sun C 5.9
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 lt_prog_compiler_wl='-Wl,'
9006 ;;
9007 *Intel*\ [CF]*Compiler*)
9008 lt_prog_compiler_wl='-Wl,'
9009 lt_prog_compiler_pic='-fPIC'
9010 lt_prog_compiler_static='-static'
9011 ;;
9012 *Portland\ Group*)
9013 lt_prog_compiler_wl='-Wl,'
9014 lt_prog_compiler_pic='-fpic'
9015 lt_prog_compiler_static='-Bstatic'
9016 ;;
9017 esac
9018 ;;
9019 esac
9020 ;;
9021
9022 newsos6)
9023 lt_prog_compiler_pic='-KPIC'
9024 lt_prog_compiler_static='-Bstatic'
9025 ;;
9026
9027 *nto* | *qnx*)
9028 # QNX uses GNU C++, but need to define -shared option too, otherwise
9029 # it will coredump.
9030 lt_prog_compiler_pic='-fPIC -shared'
9031 ;;
9032
9033 osf3* | osf4* | osf5*)
9034 lt_prog_compiler_wl='-Wl,'
9035 # All OSF/1 code is PIC.
9036 lt_prog_compiler_static='-non_shared'
9037 ;;
9038
9039 rdos*)
9040 lt_prog_compiler_static='-non_shared'
9041 ;;
9042
9043 solaris*)
9044 lt_prog_compiler_pic='-KPIC'
9045 lt_prog_compiler_static='-Bstatic'
9046 case $cc_basename in
9047 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9048 lt_prog_compiler_wl='-Qoption ld ';;
9049 *)
9050 lt_prog_compiler_wl='-Wl,';;
9051 esac
9052 ;;
9053
9054 sunos4*)
9055 lt_prog_compiler_wl='-Qoption ld '
9056 lt_prog_compiler_pic='-PIC'
9057 lt_prog_compiler_static='-Bstatic'
9058 ;;
9059
9060 sysv4 | sysv4.2uw2* | sysv4.3*)
9061 lt_prog_compiler_wl='-Wl,'
9062 lt_prog_compiler_pic='-KPIC'
9063 lt_prog_compiler_static='-Bstatic'
9064 ;;
9065
9066 sysv4*MP*)
9067 if test -d /usr/nec; then
9068 lt_prog_compiler_pic='-Kconform_pic'
9069 lt_prog_compiler_static='-Bstatic'
9070 fi
9071 ;;
9072
9073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_pic='-KPIC'
9076 lt_prog_compiler_static='-Bstatic'
9077 ;;
9078
9079 unicos*)
9080 lt_prog_compiler_wl='-Wl,'
9081 lt_prog_compiler_can_build_shared=no
9082 ;;
9083
9084 uts4*)
9085 lt_prog_compiler_pic='-pic'
9086 lt_prog_compiler_static='-Bstatic'
9087 ;;
9088
9089 *)
9090 lt_prog_compiler_can_build_shared=no
9091 ;;
9092 esac
9093 fi
9094
9095 case $host_os in
9096 # For platforms that do not support PIC, -DPIC is meaningless:
9097 *djgpp*)
9098 lt_prog_compiler_pic=
9099 ;;
9100 *)
9101 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9102 ;;
9103 esac
9104
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9106 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9107 if ${lt_cv_prog_compiler_pic+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9113 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9114 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9115
9116 #
9117 # Check to make sure the PIC flag actually works.
9118 #
9119 if test -n "$lt_prog_compiler_pic"; then
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9121 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9122 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 lt_cv_prog_compiler_pic_works=no
9126 ac_outfile=conftest.$ac_objext
9127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9128 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 # The option is referenced via a variable to avoid confusing sed.
9134 lt_compile=`echo "$ac_compile" | $SED \
9135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9137 -e 's:$: $lt_compiler_flag:'`
9138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9139 (eval "$lt_compile" 2>conftest.err)
9140 ac_status=$?
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 if (exit $ac_status) && test -s "$ac_outfile"; then
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings other than the usual output.
9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9148 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_pic_works=yes
9150 fi
9151 fi
9152 $RM conftest*
9153
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9156 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9157
9158 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9159 case $lt_prog_compiler_pic in
9160 "" | " "*) ;;
9161 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9162 esac
9163 else
9164 lt_prog_compiler_pic=
9165 lt_prog_compiler_can_build_shared=no
9166 fi
9167
9168 fi
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180 #
9181 # Check to make sure the static flag actually works.
9182 #
9183 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9185 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9186 if ${lt_cv_prog_compiler_static_works+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 lt_cv_prog_compiler_static_works=no
9190 save_LDFLAGS=$LDFLAGS
9191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9194 # The linker can only warn and ignore the option if not recognized
9195 # So say no if there are warnings
9196 if test -s conftest.err; then
9197 # Append any errors to the config.log.
9198 cat conftest.err 1>&5
9199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201 if diff conftest.exp conftest.er2 >/dev/null; then
9202 lt_cv_prog_compiler_static_works=yes
9203 fi
9204 else
9205 lt_cv_prog_compiler_static_works=yes
9206 fi
9207 fi
9208 $RM -r conftest*
9209 LDFLAGS=$save_LDFLAGS
9210
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9213 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9214
9215 if test yes = "$lt_cv_prog_compiler_static_works"; then
9216 :
9217 else
9218 lt_prog_compiler_static=
9219 fi
9220
9221
9222
9223
9224
9225
9226
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9228 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9229 if ${lt_cv_prog_compiler_c_o+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 lt_cv_prog_compiler_c_o=no
9233 $RM -r conftest 2>/dev/null
9234 mkdir conftest
9235 cd conftest
9236 mkdir out
9237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9238
9239 lt_compiler_flag="-o out/conftest2.$ac_objext"
9240 # Insert the option either (1) after the last *FLAGS variable, or
9241 # (2) before a word containing "conftest.", or (3) at the end.
9242 # Note that $ac_compile itself does not contain backslashes and begins
9243 # with a dollar sign (not a hyphen), so the echo should work correctly.
9244 lt_compile=`echo "$ac_compile" | $SED \
9245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9247 -e 's:$: $lt_compiler_flag:'`
9248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9249 (eval "$lt_compile" 2>out/conftest.err)
9250 ac_status=$?
9251 cat out/conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9254 then
9255 # The compiler can only warn and ignore the option if not recognized
9256 # So say no if there are warnings
9257 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9260 lt_cv_prog_compiler_c_o=yes
9261 fi
9262 fi
9263 chmod u+w . 2>&5
9264 $RM conftest*
9265 # SGI C++ compiler will create directory out/ii_files/ for
9266 # template instantiation
9267 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9268 $RM out/* && rmdir out
9269 cd ..
9270 $RM -r conftest
9271 $RM conftest*
9272
9273 fi
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9275 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9276
9277
9278
9279
9280
9281
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9284 if ${lt_cv_prog_compiler_c_o+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 lt_cv_prog_compiler_c_o=no
9288 $RM -r conftest 2>/dev/null
9289 mkdir conftest
9290 cd conftest
9291 mkdir out
9292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9293
9294 lt_compiler_flag="-o out/conftest2.$ac_objext"
9295 # Insert the option either (1) after the last *FLAGS variable, or
9296 # (2) before a word containing "conftest.", or (3) at the end.
9297 # Note that $ac_compile itself does not contain backslashes and begins
9298 # with a dollar sign (not a hyphen), so the echo should work correctly.
9299 lt_compile=`echo "$ac_compile" | $SED \
9300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9302 -e 's:$: $lt_compiler_flag:'`
9303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9304 (eval "$lt_compile" 2>out/conftest.err)
9305 ac_status=$?
9306 cat out/conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9309 then
9310 # The compiler can only warn and ignore the option if not recognized
9311 # So say no if there are warnings
9312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9315 lt_cv_prog_compiler_c_o=yes
9316 fi
9317 fi
9318 chmod u+w . 2>&5
9319 $RM conftest*
9320 # SGI C++ compiler will create directory out/ii_files/ for
9321 # template instantiation
9322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9323 $RM out/* && rmdir out
9324 cd ..
9325 $RM -r conftest
9326 $RM conftest*
9327
9328 fi
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9331
9332
9333
9334
9335 hard_links=nottested
9336 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9337 # do not overwrite the value of need_locks provided by the user
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9339 $as_echo_n "checking if we can lock with hard links... " >&6; }
9340 hard_links=yes
9341 $RM conftest*
9342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9343 touch conftest.a
9344 ln conftest.a conftest.b 2>&5 || hard_links=no
9345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9347 $as_echo "$hard_links" >&6; }
9348 if test no = "$hard_links"; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9350 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9351 need_locks=warn
9352 fi
9353 else
9354 need_locks=no
9355 fi
9356
9357
9358
9359
9360
9361
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9363 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9364
9365 runpath_var=
9366 allow_undefined_flag=
9367 always_export_symbols=no
9368 archive_cmds=
9369 archive_expsym_cmds=
9370 compiler_needs_object=no
9371 enable_shared_with_static_runtimes=no
9372 export_dynamic_flag_spec=
9373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9374 hardcode_automatic=no
9375 hardcode_direct=no
9376 hardcode_direct_absolute=no
9377 hardcode_libdir_flag_spec=
9378 hardcode_libdir_separator=
9379 hardcode_minus_L=no
9380 hardcode_shlibpath_var=unsupported
9381 inherit_rpath=no
9382 link_all_deplibs=unknown
9383 module_cmds=
9384 module_expsym_cmds=
9385 old_archive_from_new_cmds=
9386 old_archive_from_expsyms_cmds=
9387 thread_safe_flag_spec=
9388 whole_archive_flag_spec=
9389 # include_expsyms should be a list of space-separated symbols to be *always*
9390 # included in the symbol list
9391 include_expsyms=
9392 # exclude_expsyms can be an extended regexp of symbols to exclude
9393 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9394 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9395 # as well as any symbol that contains 'd'.
9396 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9397 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9398 # platforms (ab)use it in PIC code, but their linkers get confused if
9399 # the symbol is explicitly referenced. Since portable code cannot
9400 # rely on this symbol name, it's probably fine to never include it in
9401 # preloaded symbol tables.
9402 # Exclude shared library initialization/finalization symbols.
9403 extract_expsyms_cmds=
9404
9405 case $host_os in
9406 cygwin* | mingw* | pw32* | cegcc*)
9407 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9408 # When not using gcc, we currently assume that we are using
9409 # Microsoft Visual C++.
9410 if test yes != "$GCC"; then
9411 with_gnu_ld=no
9412 fi
9413 ;;
9414 interix*)
9415 # we just hope/assume this is gcc and not c89 (= MSVC++)
9416 with_gnu_ld=yes
9417 ;;
9418 openbsd* | bitrig*)
9419 with_gnu_ld=no
9420 ;;
9421 esac
9422
9423 ld_shlibs=yes
9424
9425 # On some targets, GNU ld is compatible enough with the native linker
9426 # that we're better off using the native interface for both.
9427 lt_use_gnu_ld_interface=no
9428 if test yes = "$with_gnu_ld"; then
9429 case $host_os in
9430 aix*)
9431 # The AIX port of GNU ld has always aspired to compatibility
9432 # with the native linker. However, as the warning in the GNU ld
9433 # block says, versions before 2.19.5* couldn't really create working
9434 # shared libraries, regardless of the interface used.
9435 case `$LD -v 2>&1` in
9436 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9437 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9438 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9439 *)
9440 lt_use_gnu_ld_interface=yes
9441 ;;
9442 esac
9443 ;;
9444 *)
9445 lt_use_gnu_ld_interface=yes
9446 ;;
9447 esac
9448 fi
9449
9450 if test yes = "$lt_use_gnu_ld_interface"; then
9451 # If archive_cmds runs LD, not CC, wlarc should be empty
9452 wlarc='$wl'
9453
9454 # Set some defaults for GNU ld with shared library support. These
9455 # are reset later if shared libraries are not supported. Putting them
9456 # here allows them to be overridden if necessary.
9457 runpath_var=LD_RUN_PATH
9458 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9459 export_dynamic_flag_spec='$wl--export-dynamic'
9460 # ancient GNU ld didn't support --whole-archive et. al.
9461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9462 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9463 else
9464 whole_archive_flag_spec=
9465 fi
9466 supports_anon_versioning=no
9467 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9468 *GNU\ gold*) supports_anon_versioning=yes ;;
9469 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9470 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9471 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9472 *\ 2.11.*) ;; # other 2.11 versions
9473 *) supports_anon_versioning=yes ;;
9474 esac
9475
9476 # See if GNU ld supports shared libraries.
9477 case $host_os in
9478 aix[3-9]*)
9479 # On AIX/PPC, the GNU linker is very broken
9480 if test ia64 != "$host_cpu"; then
9481 ld_shlibs=no
9482 cat <<_LT_EOF 1>&2
9483
9484 *** Warning: the GNU linker, at least up to release 2.19, is reported
9485 *** to be unable to reliably create shared libraries on AIX.
9486 *** Therefore, libtool is disabling shared libraries support. If you
9487 *** really care for shared libraries, you may want to install binutils
9488 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9489 *** You will then need to restart the configuration process.
9490
9491 _LT_EOF
9492 fi
9493 ;;
9494
9495 amigaos*)
9496 case $host_cpu in
9497 powerpc)
9498 # see comment about AmigaOS4 .so support
9499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9500 archive_expsym_cmds=''
9501 ;;
9502 m68k)
9503 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)'
9504 hardcode_libdir_flag_spec='-L$libdir'
9505 hardcode_minus_L=yes
9506 ;;
9507 esac
9508 ;;
9509
9510 beos*)
9511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9512 allow_undefined_flag=unsupported
9513 # Joseph Beckenbach <[email protected]> says some releases of gcc
9514 # support --undefined. This deserves some investigation. FIXME
9515 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9516 else
9517 ld_shlibs=no
9518 fi
9519 ;;
9520
9521 cygwin* | mingw* | pw32* | cegcc*)
9522 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9523 # as there is no search path for DLLs.
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 export_dynamic_flag_spec='$wl--export-all-symbols'
9526 allow_undefined_flag=unsupported
9527 always_export_symbols=no
9528 enable_shared_with_static_runtimes=yes
9529 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'
9530 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9531
9532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9534 # If the export-symbols file already is a .def file, use it as
9535 # is; otherwise, prepend EXPORTS...
9536 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9537 cp $export_symbols $output_objdir/$soname.def;
9538 else
9539 echo EXPORTS > $output_objdir/$soname.def;
9540 cat $export_symbols >> $output_objdir/$soname.def;
9541 fi~
9542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9543 else
9544 ld_shlibs=no
9545 fi
9546 ;;
9547
9548 haiku*)
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9550 link_all_deplibs=yes
9551 ;;
9552
9553 os2*)
9554 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_minus_L=yes
9556 allow_undefined_flag=unsupported
9557 shrext_cmds=.dll
9558 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9559 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9560 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9561 $ECHO EXPORTS >> $output_objdir/$libname.def~
9562 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9563 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9564 emximp -o $lib $output_objdir/$libname.def'
9565 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9566 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9567 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9568 $ECHO EXPORTS >> $output_objdir/$libname.def~
9569 prefix_cmds="$SED"~
9570 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9571 prefix_cmds="$prefix_cmds -e 1d";
9572 fi~
9573 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9574 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9575 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9576 emximp -o $lib $output_objdir/$libname.def'
9577 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9578 enable_shared_with_static_runtimes=yes
9579 ;;
9580
9581 interix[3-9]*)
9582 hardcode_direct=no
9583 hardcode_shlibpath_var=no
9584 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9585 export_dynamic_flag_spec='$wl-E'
9586 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9587 # Instead, shared libraries are loaded at an image base (0x10000000 by
9588 # default) and relocated if they conflict, which is a slow very memory
9589 # consuming and fragmenting process. To avoid this, we pick a random,
9590 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9591 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9592 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9593 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'
9594 ;;
9595
9596 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9597 tmp_diet=no
9598 if test linux-dietlibc = "$host_os"; then
9599 case $cc_basename in
9600 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9601 esac
9602 fi
9603 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9604 && test no = "$tmp_diet"
9605 then
9606 tmp_addflag=' $pic_flag'
9607 tmp_sharedflag='-shared'
9608 case $cc_basename,$host_cpu in
9609 pgcc*) # Portland Group C compiler
9610 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'
9611 tmp_addflag=' $pic_flag'
9612 ;;
9613 pgf77* | pgf90* | pgf95* | pgfortran*)
9614 # Portland Group f77 and f90 compilers
9615 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'
9616 tmp_addflag=' $pic_flag -Mnomain' ;;
9617 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9618 tmp_addflag=' -i_dynamic' ;;
9619 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9620 tmp_addflag=' -i_dynamic -nofor_main' ;;
9621 ifc* | ifort*) # Intel Fortran compiler
9622 tmp_addflag=' -nofor_main' ;;
9623 lf95*) # Lahey Fortran 8.1
9624 whole_archive_flag_spec=
9625 tmp_sharedflag='--shared' ;;
9626 nagfor*) # NAGFOR 5.3
9627 tmp_sharedflag='-Wl,-shared' ;;
9628 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9629 tmp_sharedflag='-qmkshrobj'
9630 tmp_addflag= ;;
9631 nvcc*) # Cuda Compiler Driver 2.2
9632 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'
9633 compiler_needs_object=yes
9634 ;;
9635 esac
9636 case `$CC -V 2>&1 | sed 5q` in
9637 *Sun\ C*) # Sun C 5.9
9638 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'
9639 compiler_needs_object=yes
9640 tmp_sharedflag='-G' ;;
9641 *Sun\ F*) # Sun Fortran 8.3
9642 tmp_sharedflag='-G' ;;
9643 esac
9644 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9645
9646 if test yes = "$supports_anon_versioning"; then
9647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9649 echo "local: *; };" >> $output_objdir/$libname.ver~
9650 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9651 fi
9652
9653 case $cc_basename in
9654 tcc*)
9655 export_dynamic_flag_spec='-rdynamic'
9656 ;;
9657 xlf* | bgf* | bgxlf* | mpixlf*)
9658 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9659 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9660 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9661 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9662 if test yes = "$supports_anon_versioning"; then
9663 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9665 echo "local: *; };" >> $output_objdir/$libname.ver~
9666 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9667 fi
9668 ;;
9669 esac
9670 else
9671 ld_shlibs=no
9672 fi
9673 ;;
9674
9675 netbsd*)
9676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9677 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9678 wlarc=
9679 else
9680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9681 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9682 fi
9683 ;;
9684
9685 solaris*)
9686 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9687 ld_shlibs=no
9688 cat <<_LT_EOF 1>&2
9689
9690 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9691 *** create shared libraries on Solaris systems. Therefore, libtool
9692 *** is disabling shared libraries support. We urge you to upgrade GNU
9693 *** binutils to release 2.9.1 or newer. Another option is to modify
9694 *** your PATH or compiler configuration so that the native linker is
9695 *** used, and then restart.
9696
9697 _LT_EOF
9698 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9699 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9700 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9701 else
9702 ld_shlibs=no
9703 fi
9704 ;;
9705
9706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9707 case `$LD -v 2>&1` in
9708 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9709 ld_shlibs=no
9710 cat <<_LT_EOF 1>&2
9711
9712 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9713 *** reliably create shared libraries on SCO systems. Therefore, libtool
9714 *** is disabling shared libraries support. We urge you to upgrade GNU
9715 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9716 *** your PATH or compiler configuration so that the native linker is
9717 *** used, and then restart.
9718
9719 _LT_EOF
9720 ;;
9721 *)
9722 # For security reasons, it is highly recommended that you always
9723 # use absolute paths for naming shared libraries, and exclude the
9724 # DT_RUNPATH tag from executables and libraries. But doing so
9725 # requires that you compile everything twice, which is a pain.
9726 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9727 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9730 else
9731 ld_shlibs=no
9732 fi
9733 ;;
9734 esac
9735 ;;
9736
9737 sunos4*)
9738 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9739 wlarc=
9740 hardcode_direct=yes
9741 hardcode_shlibpath_var=no
9742 ;;
9743
9744 *)
9745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9747 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9748 else
9749 ld_shlibs=no
9750 fi
9751 ;;
9752 esac
9753
9754 if test no = "$ld_shlibs"; then
9755 runpath_var=
9756 hardcode_libdir_flag_spec=
9757 export_dynamic_flag_spec=
9758 whole_archive_flag_spec=
9759 fi
9760 else
9761 # PORTME fill in a description of your system's linker (not GNU ld)
9762 case $host_os in
9763 aix3*)
9764 allow_undefined_flag=unsupported
9765 always_export_symbols=yes
9766 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'
9767 # Note: this linker hardcodes the directories in LIBPATH if there
9768 # are no directories specified by -L.
9769 hardcode_minus_L=yes
9770 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9771 # Neither direct hardcoding nor static linking is supported with a
9772 # broken collect2.
9773 hardcode_direct=unsupported
9774 fi
9775 ;;
9776
9777 aix[4-9]*)
9778 if test ia64 = "$host_cpu"; then
9779 # On IA64, the linker does run time linking by default, so we don't
9780 # have to do anything special.
9781 aix_use_runtimelinking=no
9782 exp_sym_flag='-Bexport'
9783 no_entry_flag=
9784 else
9785 # If we're using GNU nm, then we don't want the "-C" option.
9786 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9787 # Without the "-l" option, or with the "-B" option, AIX nm treats
9788 # weak defined symbols like other global defined symbols, whereas
9789 # GNU nm marks them as "W".
9790 # While the 'weak' keyword is ignored in the Export File, we need
9791 # it in the Import File for the 'aix-soname' feature, so we have
9792 # to replace the "-B" option with "-P" for AIX nm.
9793 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9794 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'
9795 else
9796 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'
9797 fi
9798 aix_use_runtimelinking=no
9799
9800 # Test if we are trying to use run time linking or normal
9801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9802 # have runtime linking enabled, and use it for executables.
9803 # For shared libraries, we enable/disable runtime linking
9804 # depending on the kind of the shared library created -
9805 # when "with_aix_soname,aix_use_runtimelinking" is:
9806 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9807 # "aix,yes" lib.so shared, rtl:yes, for executables
9808 # lib.a static archive
9809 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9810 # lib.a(lib.so.V) shared, rtl:no, for executables
9811 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9812 # lib.a(lib.so.V) shared, rtl:no
9813 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9814 # lib.a static archive
9815 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9816 for ld_flag in $LDFLAGS; do
9817 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9818 aix_use_runtimelinking=yes
9819 break
9820 fi
9821 done
9822 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9823 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9824 # so we don't have lib.a shared libs to link our executables.
9825 # We have to force runtime linking in this case.
9826 aix_use_runtimelinking=yes
9827 LDFLAGS="$LDFLAGS -Wl,-brtl"
9828 fi
9829 ;;
9830 esac
9831
9832 exp_sym_flag='-bexport'
9833 no_entry_flag='-bnoentry'
9834 fi
9835
9836 # When large executables or shared objects are built, AIX ld can
9837 # have problems creating the table of contents. If linking a library
9838 # or program results in "error TOC overflow" add -mminimal-toc to
9839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9841
9842 archive_cmds=''
9843 hardcode_direct=yes
9844 hardcode_direct_absolute=yes
9845 hardcode_libdir_separator=':'
9846 link_all_deplibs=yes
9847 file_list_spec='$wl-f,'
9848 case $with_aix_soname,$aix_use_runtimelinking in
9849 aix,*) ;; # traditional, no import file
9850 svr4,* | *,yes) # use import file
9851 # The Import File defines what to hardcode.
9852 hardcode_direct=no
9853 hardcode_direct_absolute=no
9854 ;;
9855 esac
9856
9857 if test yes = "$GCC"; then
9858 case $host_os in aix4.[012]|aix4.[012].*)
9859 # We only want to do this on AIX 4.2 and lower, the check
9860 # below for broken collect2 doesn't work under 4.3+
9861 collect2name=`$CC -print-prog-name=collect2`
9862 if test -f "$collect2name" &&
9863 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9864 then
9865 # We have reworked collect2
9866 :
9867 else
9868 # We have old collect2
9869 hardcode_direct=unsupported
9870 # It fails to find uninstalled libraries when the uninstalled
9871 # path is not listed in the libpath. Setting hardcode_minus_L
9872 # to unsupported forces relinking
9873 hardcode_minus_L=yes
9874 hardcode_libdir_flag_spec='-L$libdir'
9875 hardcode_libdir_separator=
9876 fi
9877 ;;
9878 esac
9879 shared_flag='-shared'
9880 if test yes = "$aix_use_runtimelinking"; then
9881 shared_flag="$shared_flag "'$wl-G'
9882 fi
9883 # Need to ensure runtime linking is disabled for the traditional
9884 # shared library, or the linker may eventually find shared libraries
9885 # /with/ Import File - we do not want to mix them.
9886 shared_flag_aix='-shared'
9887 shared_flag_svr4='-shared $wl-G'
9888 else
9889 # not using gcc
9890 if test ia64 = "$host_cpu"; then
9891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9892 # chokes on -Wl,-G. The following line is correct:
9893 shared_flag='-G'
9894 else
9895 if test yes = "$aix_use_runtimelinking"; then
9896 shared_flag='$wl-G'
9897 else
9898 shared_flag='$wl-bM:SRE'
9899 fi
9900 shared_flag_aix='$wl-bM:SRE'
9901 shared_flag_svr4='$wl-G'
9902 fi
9903 fi
9904
9905 export_dynamic_flag_spec='$wl-bexpall'
9906 # It seems that -bexpall does not export symbols beginning with
9907 # underscore (_), so it is better to generate a list of symbols to export.
9908 always_export_symbols=yes
9909 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9910 # Warning - without using the other runtime loading flags (-brtl),
9911 # -berok will link without error, but may produce a broken library.
9912 allow_undefined_flag='-berok'
9913 # Determine the default libpath from the value encoded in an
9914 # empty executable.
9915 if test set = "${lt_cv_aix_libpath+set}"; then
9916 aix_libpath=$lt_cv_aix_libpath
9917 else
9918 if ${lt_cv_aix_libpath_+:} false; then :
9919 $as_echo_n "(cached) " >&6
9920 else
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9923
9924 int
9925 main ()
9926 {
9927
9928 ;
9929 return 0;
9930 }
9931 _ACEOF
9932 if ac_fn_c_try_link "$LINENO"; then :
9933
9934 lt_aix_libpath_sed='
9935 /Import File Strings/,/^$/ {
9936 /^0/ {
9937 s/^0 *\([^ ]*\) *$/\1/
9938 p
9939 }
9940 }'
9941 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9942 # Check for a 64-bit object if we didn't find anything.
9943 if test -z "$lt_cv_aix_libpath_"; then
9944 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9945 fi
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 if test -z "$lt_cv_aix_libpath_"; then
9950 lt_cv_aix_libpath_=/usr/lib:/lib
9951 fi
9952
9953 fi
9954
9955 aix_libpath=$lt_cv_aix_libpath_
9956 fi
9957
9958 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9959 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
9960 else
9961 if test ia64 = "$host_cpu"; then
9962 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9963 allow_undefined_flag="-z nodefs"
9964 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"
9965 else
9966 # Determine the default libpath from the value encoded in an
9967 # empty executable.
9968 if test set = "${lt_cv_aix_libpath+set}"; then
9969 aix_libpath=$lt_cv_aix_libpath
9970 else
9971 if ${lt_cv_aix_libpath_+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976
9977 int
9978 main ()
9979 {
9980
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986
9987 lt_aix_libpath_sed='
9988 /Import File Strings/,/^$/ {
9989 /^0/ {
9990 s/^0 *\([^ ]*\) *$/\1/
9991 p
9992 }
9993 }'
9994 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9995 # Check for a 64-bit object if we didn't find anything.
9996 if test -z "$lt_cv_aix_libpath_"; then
9997 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9998 fi
9999 fi
10000 rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 if test -z "$lt_cv_aix_libpath_"; then
10003 lt_cv_aix_libpath_=/usr/lib:/lib
10004 fi
10005
10006 fi
10007
10008 aix_libpath=$lt_cv_aix_libpath_
10009 fi
10010
10011 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10012 # Warning - without using the other run time loading flags,
10013 # -berok will link without error, but may produce a broken library.
10014 no_undefined_flag=' $wl-bernotok'
10015 allow_undefined_flag=' $wl-berok'
10016 if test yes = "$with_gnu_ld"; then
10017 # We only use this code for GNU lds that support --whole-archive.
10018 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10019 else
10020 # Exported symbols can be pulled into shared objects from archives
10021 whole_archive_flag_spec='$convenience'
10022 fi
10023 archive_cmds_need_lc=yes
10024 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10025 # -brtl affects multiple linker settings, -berok does not and is overridden later
10026 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10027 if test svr4 != "$with_aix_soname"; then
10028 # This is similar to how AIX traditionally builds its shared libraries.
10029 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'
10030 fi
10031 if test aix != "$with_aix_soname"; then
10032 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'
10033 else
10034 # used by -dlpreopen to get the symbols
10035 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10036 fi
10037 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10038 fi
10039 fi
10040 ;;
10041
10042 amigaos*)
10043 case $host_cpu in
10044 powerpc)
10045 # see comment about AmigaOS4 .so support
10046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10047 archive_expsym_cmds=''
10048 ;;
10049 m68k)
10050 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)'
10051 hardcode_libdir_flag_spec='-L$libdir'
10052 hardcode_minus_L=yes
10053 ;;
10054 esac
10055 ;;
10056
10057 bsdi[45]*)
10058 export_dynamic_flag_spec=-rdynamic
10059 ;;
10060
10061 cygwin* | mingw* | pw32* | cegcc*)
10062 # When not using gcc, we currently assume that we are using
10063 # Microsoft Visual C++.
10064 # hardcode_libdir_flag_spec is actually meaningless, as there is
10065 # no search path for DLLs.
10066 case $cc_basename in
10067 cl*)
10068 # Native MSVC
10069 hardcode_libdir_flag_spec=' '
10070 allow_undefined_flag=unsupported
10071 always_export_symbols=yes
10072 file_list_spec='@'
10073 # Tell ltmain to make .lib files, not .a files.
10074 libext=lib
10075 # Tell ltmain to make .dll files, not .so files.
10076 shrext_cmds=.dll
10077 # FIXME: Setting linknames here is a bad hack.
10078 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10079 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10080 cp "$export_symbols" "$output_objdir/$soname.def";
10081 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10082 else
10083 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10084 fi~
10085 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10086 linknames='
10087 # The linker will not automatically build a static lib if we build a DLL.
10088 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10089 enable_shared_with_static_runtimes=yes
10090 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10091 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10092 # Don't use ranlib
10093 old_postinstall_cmds='chmod 644 $oldlib'
10094 postlink_cmds='lt_outputfile="@OUTPUT@"~
10095 lt_tool_outputfile="@TOOL_OUTPUT@"~
10096 case $lt_outputfile in
10097 *.exe|*.EXE) ;;
10098 *)
10099 lt_outputfile=$lt_outputfile.exe
10100 lt_tool_outputfile=$lt_tool_outputfile.exe
10101 ;;
10102 esac~
10103 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10104 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10105 $RM "$lt_outputfile.manifest";
10106 fi'
10107 ;;
10108 *)
10109 # Assume MSVC wrapper
10110 hardcode_libdir_flag_spec=' '
10111 allow_undefined_flag=unsupported
10112 # Tell ltmain to make .lib files, not .a files.
10113 libext=lib
10114 # Tell ltmain to make .dll files, not .so files.
10115 shrext_cmds=.dll
10116 # FIXME: Setting linknames here is a bad hack.
10117 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10118 # The linker will automatically build a .lib file if we build a DLL.
10119 old_archive_from_new_cmds='true'
10120 # FIXME: Should let the user specify the lib program.
10121 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10122 enable_shared_with_static_runtimes=yes
10123 ;;
10124 esac
10125 ;;
10126
10127 darwin* | rhapsody*)
10128
10129
10130 archive_cmds_need_lc=no
10131 hardcode_direct=no
10132 hardcode_automatic=yes
10133 hardcode_shlibpath_var=unsupported
10134 if test yes = "$lt_cv_ld_force_load"; then
10135 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\"`'
10136
10137 else
10138 whole_archive_flag_spec=''
10139 fi
10140 link_all_deplibs=yes
10141 allow_undefined_flag=$_lt_dar_allow_undefined
10142 case $cc_basename in
10143 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10144 *) _lt_dar_can_shared=$GCC ;;
10145 esac
10146 if test yes = "$_lt_dar_can_shared"; then
10147 output_verbose_link_cmd=func_echo_all
10148 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10149 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10150 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"
10151 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"
10152
10153 else
10154 ld_shlibs=no
10155 fi
10156
10157 ;;
10158
10159 dgux*)
10160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_libdir_flag_spec='-L$libdir'
10162 hardcode_shlibpath_var=no
10163 ;;
10164
10165 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10166 # support. Future versions do this automatically, but an explicit c++rt0.o
10167 # does not break anything, and helps significantly (at the cost of a little
10168 # extra space).
10169 freebsd2.2*)
10170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10171 hardcode_libdir_flag_spec='-R$libdir'
10172 hardcode_direct=yes
10173 hardcode_shlibpath_var=no
10174 ;;
10175
10176 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10177 freebsd2.*)
10178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_direct=yes
10180 hardcode_minus_L=yes
10181 hardcode_shlibpath_var=no
10182 ;;
10183
10184 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10185 freebsd* | dragonfly*)
10186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10187 hardcode_libdir_flag_spec='-R$libdir'
10188 hardcode_direct=yes
10189 hardcode_shlibpath_var=no
10190 ;;
10191
10192 hpux9*)
10193 if test yes = "$GCC"; then
10194 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'
10195 else
10196 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'
10197 fi
10198 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10199 hardcode_libdir_separator=:
10200 hardcode_direct=yes
10201
10202 # hardcode_minus_L: Not really in the search PATH,
10203 # but as the default location of the library.
10204 hardcode_minus_L=yes
10205 export_dynamic_flag_spec='$wl-E'
10206 ;;
10207
10208 hpux10*)
10209 if test yes,no = "$GCC,$with_gnu_ld"; then
10210 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10211 else
10212 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10213 fi
10214 if test no = "$with_gnu_ld"; then
10215 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10216 hardcode_libdir_separator=:
10217 hardcode_direct=yes
10218 hardcode_direct_absolute=yes
10219 export_dynamic_flag_spec='$wl-E'
10220 # hardcode_minus_L: Not really in the search PATH,
10221 # but as the default location of the library.
10222 hardcode_minus_L=yes
10223 fi
10224 ;;
10225
10226 hpux11*)
10227 if test yes,no = "$GCC,$with_gnu_ld"; then
10228 case $host_cpu in
10229 hppa*64*)
10230 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 ;;
10232 ia64*)
10233 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10234 ;;
10235 *)
10236 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10237 ;;
10238 esac
10239 else
10240 case $host_cpu in
10241 hppa*64*)
10242 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 ;;
10244 ia64*)
10245 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10246 ;;
10247 *)
10248
10249 # Older versions of the 11.00 compiler do not understand -b yet
10250 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10252 $as_echo_n "checking if $CC understands -b... " >&6; }
10253 if ${lt_cv_prog_compiler__b+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 lt_cv_prog_compiler__b=no
10257 save_LDFLAGS=$LDFLAGS
10258 LDFLAGS="$LDFLAGS -b"
10259 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10261 # The linker can only warn and ignore the option if not recognized
10262 # So say no if there are warnings
10263 if test -s conftest.err; then
10264 # Append any errors to the config.log.
10265 cat conftest.err 1>&5
10266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10268 if diff conftest.exp conftest.er2 >/dev/null; then
10269 lt_cv_prog_compiler__b=yes
10270 fi
10271 else
10272 lt_cv_prog_compiler__b=yes
10273 fi
10274 fi
10275 $RM -r conftest*
10276 LDFLAGS=$save_LDFLAGS
10277
10278 fi
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10280 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10281
10282 if test yes = "$lt_cv_prog_compiler__b"; then
10283 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10284 else
10285 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10286 fi
10287
10288 ;;
10289 esac
10290 fi
10291 if test no = "$with_gnu_ld"; then
10292 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10293 hardcode_libdir_separator=:
10294
10295 case $host_cpu in
10296 hppa*64*|ia64*)
10297 hardcode_direct=no
10298 hardcode_shlibpath_var=no
10299 ;;
10300 *)
10301 hardcode_direct=yes
10302 hardcode_direct_absolute=yes
10303 export_dynamic_flag_spec='$wl-E'
10304
10305 # hardcode_minus_L: Not really in the search PATH,
10306 # but as the default location of the library.
10307 hardcode_minus_L=yes
10308 ;;
10309 esac
10310 fi
10311 ;;
10312
10313 irix5* | irix6* | nonstopux*)
10314 if test yes = "$GCC"; then
10315 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'
10316 # Try to use the -exported_symbol ld option, if it does not
10317 # work, assume that -exports_file does not work either and
10318 # implicitly export all symbols.
10319 # This should be the same for all languages, so no per-tag cache variable.
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10321 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10322 if ${lt_cv_irix_exported_symbol+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 save_LDFLAGS=$LDFLAGS
10326 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 int foo (void) { return 0; }
10330 _ACEOF
10331 if ac_fn_c_try_link "$LINENO"; then :
10332 lt_cv_irix_exported_symbol=yes
10333 else
10334 lt_cv_irix_exported_symbol=no
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LDFLAGS=$save_LDFLAGS
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10341 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10342 if test yes = "$lt_cv_irix_exported_symbol"; then
10343 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'
10344 fi
10345 else
10346 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'
10347 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'
10348 fi
10349 archive_cmds_need_lc='no'
10350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10351 hardcode_libdir_separator=:
10352 inherit_rpath=yes
10353 link_all_deplibs=yes
10354 ;;
10355
10356 linux*)
10357 case $cc_basename in
10358 tcc*)
10359 # Fabrice Bellard et al's Tiny C Compiler
10360 ld_shlibs=yes
10361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10362 ;;
10363 esac
10364 ;;
10365
10366 netbsd*)
10367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10369 else
10370 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10371 fi
10372 hardcode_libdir_flag_spec='-R$libdir'
10373 hardcode_direct=yes
10374 hardcode_shlibpath_var=no
10375 ;;
10376
10377 newsos6)
10378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379 hardcode_direct=yes
10380 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10381 hardcode_libdir_separator=:
10382 hardcode_shlibpath_var=no
10383 ;;
10384
10385 *nto* | *qnx*)
10386 ;;
10387
10388 openbsd* | bitrig*)
10389 if test -f /usr/libexec/ld.so; then
10390 hardcode_direct=yes
10391 hardcode_shlibpath_var=no
10392 hardcode_direct_absolute=yes
10393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10394 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10396 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10397 export_dynamic_flag_spec='$wl-E'
10398 else
10399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10400 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10401 fi
10402 else
10403 ld_shlibs=no
10404 fi
10405 ;;
10406
10407 os2*)
10408 hardcode_libdir_flag_spec='-L$libdir'
10409 hardcode_minus_L=yes
10410 allow_undefined_flag=unsupported
10411 shrext_cmds=.dll
10412 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10413 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10414 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10415 $ECHO EXPORTS >> $output_objdir/$libname.def~
10416 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10417 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10418 emximp -o $lib $output_objdir/$libname.def'
10419 archive_expsym_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 prefix_cmds="$SED"~
10424 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10425 prefix_cmds="$prefix_cmds -e 1d";
10426 fi~
10427 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10428 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10429 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10430 emximp -o $lib $output_objdir/$libname.def'
10431 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10432 enable_shared_with_static_runtimes=yes
10433 ;;
10434
10435 osf3*)
10436 if test yes = "$GCC"; then
10437 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10438 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'
10439 else
10440 allow_undefined_flag=' -expect_unresolved \*'
10441 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'
10442 fi
10443 archive_cmds_need_lc='no'
10444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10445 hardcode_libdir_separator=:
10446 ;;
10447
10448 osf4* | osf5*) # as osf3* with the addition of -msym flag
10449 if test yes = "$GCC"; then
10450 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10451 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'
10452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10453 else
10454 allow_undefined_flag=' -expect_unresolved \*'
10455 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'
10456 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~
10457 $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'
10458
10459 # Both c and cxx compiler support -rpath directly
10460 hardcode_libdir_flag_spec='-rpath $libdir'
10461 fi
10462 archive_cmds_need_lc='no'
10463 hardcode_libdir_separator=:
10464 ;;
10465
10466 solaris*)
10467 no_undefined_flag=' -z defs'
10468 if test yes = "$GCC"; then
10469 wlarc='$wl'
10470 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10472 $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'
10473 else
10474 case `$CC -V 2>&1` in
10475 *"Compilers 5.0"*)
10476 wlarc=''
10477 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10479 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10480 ;;
10481 *)
10482 wlarc='$wl'
10483 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10484 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10485 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10486 ;;
10487 esac
10488 fi
10489 hardcode_libdir_flag_spec='-R$libdir'
10490 hardcode_shlibpath_var=no
10491 case $host_os in
10492 solaris2.[0-5] | solaris2.[0-5].*) ;;
10493 *)
10494 # The compiler driver will combine and reorder linker options,
10495 # but understands '-z linker_flag'. GCC discards it without '$wl',
10496 # but is careful enough not to reorder.
10497 # Supported since Solaris 2.6 (maybe 2.5.1?)
10498 if test yes = "$GCC"; then
10499 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10500 else
10501 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10502 fi
10503 ;;
10504 esac
10505 link_all_deplibs=yes
10506 ;;
10507
10508 sunos4*)
10509 if test sequent = "$host_vendor"; then
10510 # Use $CC to link under sequent, because it throws in some extra .o
10511 # files that make .init and .fini sections work.
10512 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10513 else
10514 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10515 fi
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_direct=yes
10518 hardcode_minus_L=yes
10519 hardcode_shlibpath_var=no
10520 ;;
10521
10522 sysv4)
10523 case $host_vendor in
10524 sni)
10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526 hardcode_direct=yes # is this really true???
10527 ;;
10528 siemens)
10529 ## LD is ld it makes a PLAMLIB
10530 ## CC just makes a GrossModule.
10531 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10532 reload_cmds='$CC -r -o $output$reload_objs'
10533 hardcode_direct=no
10534 ;;
10535 motorola)
10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10538 ;;
10539 esac
10540 runpath_var='LD_RUN_PATH'
10541 hardcode_shlibpath_var=no
10542 ;;
10543
10544 sysv4.3*)
10545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546 hardcode_shlibpath_var=no
10547 export_dynamic_flag_spec='-Bexport'
10548 ;;
10549
10550 sysv4*MP*)
10551 if test -d /usr/nec; then
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_shlibpath_var=no
10554 runpath_var=LD_RUN_PATH
10555 hardcode_runpath_var=yes
10556 ld_shlibs=yes
10557 fi
10558 ;;
10559
10560 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10561 no_undefined_flag='$wl-z,text'
10562 archive_cmds_need_lc=no
10563 hardcode_shlibpath_var=no
10564 runpath_var='LD_RUN_PATH'
10565
10566 if test yes = "$GCC"; then
10567 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 else
10570 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10571 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10572 fi
10573 ;;
10574
10575 sysv5* | sco3.2v5* | sco5v6*)
10576 # Note: We CANNOT use -z defs as we might desire, because we do not
10577 # link with -lc, and that would cause any symbols used from libc to
10578 # always be unresolved, which means just about no library would
10579 # ever link correctly. If we're not using GNU ld we use -z text
10580 # though, which does catch some bad symbols but isn't as heavy-handed
10581 # as -z defs.
10582 no_undefined_flag='$wl-z,text'
10583 allow_undefined_flag='$wl-z,nodefs'
10584 archive_cmds_need_lc=no
10585 hardcode_shlibpath_var=no
10586 hardcode_libdir_flag_spec='$wl-R,$libdir'
10587 hardcode_libdir_separator=':'
10588 link_all_deplibs=yes
10589 export_dynamic_flag_spec='$wl-Bexport'
10590 runpath_var='LD_RUN_PATH'
10591
10592 if test yes = "$GCC"; then
10593 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10595 else
10596 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10597 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10598 fi
10599 ;;
10600
10601 uts4*)
10602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603 hardcode_libdir_flag_spec='-L$libdir'
10604 hardcode_shlibpath_var=no
10605 ;;
10606
10607 *)
10608 ld_shlibs=no
10609 ;;
10610 esac
10611
10612 if test sni = "$host_vendor"; then
10613 case $host in
10614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10615 export_dynamic_flag_spec='$wl-Blargedynsym'
10616 ;;
10617 esac
10618 fi
10619 fi
10620
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10622 $as_echo "$ld_shlibs" >&6; }
10623 test no = "$ld_shlibs" && can_build_shared=no
10624
10625 with_gnu_ld=$with_gnu_ld
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641 #
10642 # Do we need to explicitly link libc?
10643 #
10644 case "x$archive_cmds_need_lc" in
10645 x|xyes)
10646 # Assume -lc should be added
10647 archive_cmds_need_lc=yes
10648
10649 if test yes,yes = "$GCC,$enable_shared"; then
10650 case $archive_cmds in
10651 *'~'*)
10652 # FIXME: we may have to deal with multi-command sequences.
10653 ;;
10654 '$CC '*)
10655 # Test whether the compiler implicitly links with -lc since on some
10656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10657 # to ld, don't add -lc before -lgcc.
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10659 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10660 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 $RM conftest*
10664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10665
10666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10667 (eval $ac_compile) 2>&5
10668 ac_status=$?
10669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10670 test $ac_status = 0; } 2>conftest.err; then
10671 soname=conftest
10672 lib=conftest
10673 libobjs=conftest.$ac_objext
10674 deplibs=
10675 wl=$lt_prog_compiler_wl
10676 pic_flag=$lt_prog_compiler_pic
10677 compiler_flags=-v
10678 linker_flags=-v
10679 verstring=
10680 output_objdir=.
10681 libname=conftest
10682 lt_save_allow_undefined_flag=$allow_undefined_flag
10683 allow_undefined_flag=
10684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10685 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10686 ac_status=$?
10687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10688 test $ac_status = 0; }
10689 then
10690 lt_cv_archive_cmds_need_lc=no
10691 else
10692 lt_cv_archive_cmds_need_lc=yes
10693 fi
10694 allow_undefined_flag=$lt_save_allow_undefined_flag
10695 else
10696 cat conftest.err 1>&5
10697 fi
10698 $RM conftest*
10699
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10702 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10703 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10704 ;;
10705 esac
10706 fi
10707 ;;
10708 esac
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10862 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10863
10864 if test yes = "$GCC"; then
10865 case $host_os in
10866 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10867 *) lt_awk_arg='/^libraries:/' ;;
10868 esac
10869 case $host_os in
10870 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10871 *) lt_sed_strip_eq='s|=/|/|g' ;;
10872 esac
10873 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10874 case $lt_search_path_spec in
10875 *\;*)
10876 # if the path contains ";" then we assume it to be the separator
10877 # otherwise default to the standard path separator (i.e. ":") - it is
10878 # assumed that no part of a normal pathname contains ";" but that should
10879 # okay in the real world where ";" in dirpaths is itself problematic.
10880 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10881 ;;
10882 *)
10883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10884 ;;
10885 esac
10886 # Ok, now we have the path, separated by spaces, we can step through it
10887 # and add multilib dir if necessary...
10888 lt_tmp_lt_search_path_spec=
10889 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10890 # ...but if some path component already ends with the multilib dir we assume
10891 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10892 case "$lt_multi_os_dir; $lt_search_path_spec " in
10893 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10894 lt_multi_os_dir=
10895 ;;
10896 esac
10897 for lt_sys_path in $lt_search_path_spec; do
10898 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10900 elif test -n "$lt_multi_os_dir"; then
10901 test -d "$lt_sys_path" && \
10902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10903 fi
10904 done
10905 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10906 BEGIN {RS = " "; FS = "/|\n";} {
10907 lt_foo = "";
10908 lt_count = 0;
10909 for (lt_i = NF; lt_i > 0; lt_i--) {
10910 if ($lt_i != "" && $lt_i != ".") {
10911 if ($lt_i == "..") {
10912 lt_count++;
10913 } else {
10914 if (lt_count == 0) {
10915 lt_foo = "/" $lt_i lt_foo;
10916 } else {
10917 lt_count--;
10918 }
10919 }
10920 }
10921 }
10922 if (lt_foo != "") { lt_freq[lt_foo]++; }
10923 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10924 }'`
10925 # AWK program above erroneously prepends '/' to C:/dos/paths
10926 # for these hosts.
10927 case $host_os in
10928 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10929 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10930 esac
10931 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10932 else
10933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10934 fi
10935 library_names_spec=
10936 libname_spec='lib$name'
10937 soname_spec=
10938 shrext_cmds=.so
10939 postinstall_cmds=
10940 postuninstall_cmds=
10941 finish_cmds=
10942 finish_eval=
10943 shlibpath_var=
10944 shlibpath_overrides_runpath=unknown
10945 version_type=none
10946 dynamic_linker="$host_os ld.so"
10947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10948 need_lib_prefix=unknown
10949 hardcode_into_libs=no
10950
10951 # when you set need_version to no, make sure it does not cause -set_version
10952 # flags to be left without arguments
10953 need_version=unknown
10954
10955
10956
10957 case $host_os in
10958 aix3*)
10959 version_type=linux # correct to gnu/linux during the next big refactor
10960 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10961 shlibpath_var=LIBPATH
10962
10963 # AIX 3 has no versioning support, so we append a major version to the name.
10964 soname_spec='$libname$release$shared_ext$major'
10965 ;;
10966
10967 aix[4-9]*)
10968 version_type=linux # correct to gnu/linux during the next big refactor
10969 need_lib_prefix=no
10970 need_version=no
10971 hardcode_into_libs=yes
10972 if test ia64 = "$host_cpu"; then
10973 # AIX 5 supports IA64
10974 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 else
10977 # With GCC up to 2.95.x, collect2 would create an import file
10978 # for dependence libraries. The import file would start with
10979 # the line '#! .'. This would cause the generated library to
10980 # depend on '.', always an invalid library. This was fixed in
10981 # development snapshots of GCC prior to 3.0.
10982 case $host_os in
10983 aix4 | aix4.[01] | aix4.[01].*)
10984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10985 echo ' yes '
10986 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10987 :
10988 else
10989 can_build_shared=no
10990 fi
10991 ;;
10992 esac
10993 # Using Import Files as archive members, it is possible to support
10994 # filename-based versioning of shared library archives on AIX. While
10995 # this would work for both with and without runtime linking, it will
10996 # prevent static linking of such archives. So we do filename-based
10997 # shared library versioning with .so extension only, which is used
10998 # when both runtime linking and shared linking is enabled.
10999 # Unfortunately, runtime linking may impact performance, so we do
11000 # not want this to be the default eventually. Also, we use the
11001 # versioned .so libs for executables only if there is the -brtl
11002 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11003 # To allow for filename-based versioning support, we need to create
11004 # libNAME.so.V as an archive file, containing:
11005 # *) an Import File, referring to the versioned filename of the
11006 # archive as well as the shared archive member, telling the
11007 # bitwidth (32 or 64) of that shared object, and providing the
11008 # list of exported symbols of that shared object, eventually
11009 # decorated with the 'weak' keyword
11010 # *) the shared object with the F_LOADONLY flag set, to really avoid
11011 # it being seen by the linker.
11012 # At run time we better use the real file rather than another symlink,
11013 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11014
11015 case $with_aix_soname,$aix_use_runtimelinking in
11016 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11017 # soname into executable. Probably we can add versioning support to
11018 # collect2, so additional links can be useful in future.
11019 aix,yes) # traditional libtool
11020 dynamic_linker='AIX unversionable lib.so'
11021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11022 # instead of lib<name>.a to let people know that these are not
11023 # typical AIX shared libraries.
11024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11025 ;;
11026 aix,no) # traditional AIX only
11027 dynamic_linker='AIX lib.a(lib.so.V)'
11028 # We preserve .a as extension for shared libraries through AIX4.2
11029 # and later when we are not doing run time linking.
11030 library_names_spec='$libname$release.a $libname.a'
11031 soname_spec='$libname$release$shared_ext$major'
11032 ;;
11033 svr4,*) # full svr4 only
11034 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11035 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11036 # We do not specify a path in Import Files, so LIBPATH fires.
11037 shlibpath_overrides_runpath=yes
11038 ;;
11039 *,yes) # both, prefer svr4
11040 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11041 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11042 # unpreferred sharedlib libNAME.a needs extra handling
11043 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"'
11044 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"'
11045 # We do not specify a path in Import Files, so LIBPATH fires.
11046 shlibpath_overrides_runpath=yes
11047 ;;
11048 *,no) # both, prefer aix
11049 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11050 library_names_spec='$libname$release.a $libname.a'
11051 soname_spec='$libname$release$shared_ext$major'
11052 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11053 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)'
11054 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"'
11055 ;;
11056 esac
11057 shlibpath_var=LIBPATH
11058 fi
11059 ;;
11060
11061 amigaos*)
11062 case $host_cpu in
11063 powerpc)
11064 # Since July 2007 AmigaOS4 officially supports .so libraries.
11065 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11067 ;;
11068 m68k)
11069 library_names_spec='$libname.ixlibrary $libname.a'
11070 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11071 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'
11072 ;;
11073 esac
11074 ;;
11075
11076 beos*)
11077 library_names_spec='$libname$shared_ext'
11078 dynamic_linker="$host_os ld.so"
11079 shlibpath_var=LIBRARY_PATH
11080 ;;
11081
11082 bsdi[45]*)
11083 version_type=linux # correct to gnu/linux during the next big refactor
11084 need_version=no
11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11086 soname_spec='$libname$release$shared_ext$major'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11090 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11091 # the default ld.so.conf also contains /usr/contrib/lib and
11092 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11093 # libtool to hard-code these into programs
11094 ;;
11095
11096 cygwin* | mingw* | pw32* | cegcc*)
11097 version_type=windows
11098 shrext_cmds=.dll
11099 need_version=no
11100 need_lib_prefix=no
11101
11102 case $GCC,$cc_basename in
11103 yes,*)
11104 # gcc
11105 library_names_spec='$libname.dll.a'
11106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11107 postinstall_cmds='base_file=`basename \$file`~
11108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11109 dldir=$destdir/`dirname \$dlpath`~
11110 test -d \$dldir || mkdir -p \$dldir~
11111 $install_prog $dir/$dlname \$dldir/$dlname~
11112 chmod a+x \$dldir/$dlname~
11113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11115 fi'
11116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11117 dlpath=$dir/\$dldll~
11118 $RM \$dlpath'
11119 shlibpath_overrides_runpath=yes
11120
11121 case $host_os in
11122 cygwin*)
11123 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11124 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11125
11126 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11127 ;;
11128 mingw* | cegcc*)
11129 # MinGW DLLs use traditional 'lib' prefix
11130 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11131 ;;
11132 pw32*)
11133 # pw32 DLLs use 'pw' prefix rather than 'lib'
11134 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11135 ;;
11136 esac
11137 dynamic_linker='Win32 ld.exe'
11138 ;;
11139
11140 *,cl*)
11141 # Native MSVC
11142 libname_spec='$name'
11143 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11144 library_names_spec='$libname.dll.lib'
11145
11146 case $build_os in
11147 mingw*)
11148 sys_lib_search_path_spec=
11149 lt_save_ifs=$IFS
11150 IFS=';'
11151 for lt_path in $LIB
11152 do
11153 IFS=$lt_save_ifs
11154 # Let DOS variable expansion print the short 8.3 style file name.
11155 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11156 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11157 done
11158 IFS=$lt_save_ifs
11159 # Convert to MSYS style.
11160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11161 ;;
11162 cygwin*)
11163 # Convert to unix form, then to dos form, then back to unix form
11164 # but this time dos style (no spaces!) so that the unix form looks
11165 # like /cygdrive/c/PROGRA~1:/cygdr...
11166 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11167 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11168 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11169 ;;
11170 *)
11171 sys_lib_search_path_spec=$LIB
11172 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11173 # It is most probably a Windows format PATH.
11174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11175 else
11176 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11177 fi
11178 # FIXME: find the short name or the path components, as spaces are
11179 # common. (e.g. "Program Files" -> "PROGRA~1")
11180 ;;
11181 esac
11182
11183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11184 postinstall_cmds='base_file=`basename \$file`~
11185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11186 dldir=$destdir/`dirname \$dlpath`~
11187 test -d \$dldir || mkdir -p \$dldir~
11188 $install_prog $dir/$dlname \$dldir/$dlname'
11189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11190 dlpath=$dir/\$dldll~
11191 $RM \$dlpath'
11192 shlibpath_overrides_runpath=yes
11193 dynamic_linker='Win32 link.exe'
11194 ;;
11195
11196 *)
11197 # Assume MSVC wrapper
11198 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11199 dynamic_linker='Win32 ld.exe'
11200 ;;
11201 esac
11202 # FIXME: first we should search . and the directory the executable is in
11203 shlibpath_var=PATH
11204 ;;
11205
11206 darwin* | rhapsody*)
11207 dynamic_linker="$host_os dyld"
11208 version_type=darwin
11209 need_lib_prefix=no
11210 need_version=no
11211 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11212 soname_spec='$libname$release$major$shared_ext'
11213 shlibpath_overrides_runpath=yes
11214 shlibpath_var=DYLD_LIBRARY_PATH
11215 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11216
11217 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11218 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11219 ;;
11220
11221 dgux*)
11222 version_type=linux # correct to gnu/linux during the next big refactor
11223 need_lib_prefix=no
11224 need_version=no
11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226 soname_spec='$libname$release$shared_ext$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 ;;
11229
11230 freebsd* | dragonfly*)
11231 # DragonFly does not have aout. When/if they implement a new
11232 # versioning mechanism, adjust this.
11233 if test -x /usr/bin/objformat; then
11234 objformat=`/usr/bin/objformat`
11235 else
11236 case $host_os in
11237 freebsd[23].*) objformat=aout ;;
11238 *) objformat=elf ;;
11239 esac
11240 fi
11241 version_type=freebsd-$objformat
11242 case $version_type in
11243 freebsd-elf*)
11244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245 soname_spec='$libname$release$shared_ext$major'
11246 need_version=no
11247 need_lib_prefix=no
11248 ;;
11249 freebsd-*)
11250 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11251 need_version=yes
11252 ;;
11253 esac
11254 shlibpath_var=LD_LIBRARY_PATH
11255 case $host_os in
11256 freebsd2.*)
11257 shlibpath_overrides_runpath=yes
11258 ;;
11259 freebsd3.[01]* | freebsdelf3.[01]*)
11260 shlibpath_overrides_runpath=yes
11261 hardcode_into_libs=yes
11262 ;;
11263 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11264 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11265 shlibpath_overrides_runpath=no
11266 hardcode_into_libs=yes
11267 ;;
11268 *) # from 4.6 on, and DragonFly
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11271 ;;
11272 esac
11273 ;;
11274
11275 haiku*)
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 need_lib_prefix=no
11278 need_version=no
11279 dynamic_linker="$host_os runtime_loader"
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281 soname_spec='$libname$release$shared_ext$major'
11282 shlibpath_var=LIBRARY_PATH
11283 shlibpath_overrides_runpath=no
11284 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11285 hardcode_into_libs=yes
11286 ;;
11287
11288 hpux9* | hpux10* | hpux11*)
11289 # Give a soname corresponding to the major version so that dld.sl refuses to
11290 # link against other versions.
11291 version_type=sunos
11292 need_lib_prefix=no
11293 need_version=no
11294 case $host_cpu in
11295 ia64*)
11296 shrext_cmds='.so'
11297 hardcode_into_libs=yes
11298 dynamic_linker="$host_os dld.so"
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11302 soname_spec='$libname$release$shared_ext$major'
11303 if test 32 = "$HPUX_IA64_MODE"; then
11304 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11305 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11306 else
11307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11308 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11309 fi
11310 ;;
11311 hppa*64*)
11312 shrext_cmds='.sl'
11313 hardcode_into_libs=yes
11314 dynamic_linker="$host_os dld.sl"
11315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11318 soname_spec='$libname$release$shared_ext$major'
11319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11321 ;;
11322 *)
11323 shrext_cmds='.sl'
11324 dynamic_linker="$host_os dld.sl"
11325 shlibpath_var=SHLIB_PATH
11326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11328 soname_spec='$libname$release$shared_ext$major'
11329 ;;
11330 esac
11331 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11332 postinstall_cmds='chmod 555 $lib'
11333 # or fails outright, so override atomically:
11334 install_override_mode=555
11335 ;;
11336
11337 interix[3-9]*)
11338 version_type=linux # correct to gnu/linux during the next big refactor
11339 need_lib_prefix=no
11340 need_version=no
11341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11342 soname_spec='$libname$release$shared_ext$major'
11343 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11344 shlibpath_var=LD_LIBRARY_PATH
11345 shlibpath_overrides_runpath=no
11346 hardcode_into_libs=yes
11347 ;;
11348
11349 irix5* | irix6* | nonstopux*)
11350 case $host_os in
11351 nonstopux*) version_type=nonstopux ;;
11352 *)
11353 if test yes = "$lt_cv_prog_gnu_ld"; then
11354 version_type=linux # correct to gnu/linux during the next big refactor
11355 else
11356 version_type=irix
11357 fi ;;
11358 esac
11359 need_lib_prefix=no
11360 need_version=no
11361 soname_spec='$libname$release$shared_ext$major'
11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11363 case $host_os in
11364 irix5* | nonstopux*)
11365 libsuff= shlibsuff=
11366 ;;
11367 *)
11368 case $LD in # libtool.m4 will add one of these switches to LD
11369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11370 libsuff= shlibsuff= libmagic=32-bit;;
11371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11372 libsuff=32 shlibsuff=N32 libmagic=N32;;
11373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11374 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11375 *) libsuff= shlibsuff= libmagic=never-match;;
11376 esac
11377 ;;
11378 esac
11379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11380 shlibpath_overrides_runpath=no
11381 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11382 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11383 hardcode_into_libs=yes
11384 ;;
11385
11386 # No shared lib support for Linux oldld, aout, or coff.
11387 linux*oldld* | linux*aout* | linux*coff*)
11388 dynamic_linker=no
11389 ;;
11390
11391 linux*android*)
11392 version_type=none # Android doesn't support versioned libraries.
11393 need_lib_prefix=no
11394 need_version=no
11395 library_names_spec='$libname$release$shared_ext'
11396 soname_spec='$libname$release$shared_ext'
11397 finish_cmds=
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=yes
11400
11401 # This implies no fast_install, which is unacceptable.
11402 # Some rework will be needed to allow for fast_install
11403 # before this can be enabled.
11404 hardcode_into_libs=yes
11405
11406 dynamic_linker='Android linker'
11407 # Don't embed -rpath directories since the linker doesn't support them.
11408 hardcode_libdir_flag_spec='-L$libdir'
11409 ;;
11410
11411 # This must be glibc/ELF.
11412 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 need_lib_prefix=no
11415 need_version=no
11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11417 soname_spec='$libname$release$shared_ext$major'
11418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath=no
11421
11422 # Some binutils ld are patched to set DT_RUNPATH
11423 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 lt_cv_shlibpath_overrides_runpath=no
11427 save_LDFLAGS=$LDFLAGS
11428 save_libdir=$libdir
11429 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11430 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11433
11434 int
11435 main ()
11436 {
11437
11438 ;
11439 return 0;
11440 }
11441 _ACEOF
11442 if ac_fn_c_try_link "$LINENO"; then :
11443 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11444 lt_cv_shlibpath_overrides_runpath=yes
11445 fi
11446 fi
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11449 LDFLAGS=$save_LDFLAGS
11450 libdir=$save_libdir
11451
11452 fi
11453
11454 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11455
11456 # This implies no fast_install, which is unacceptable.
11457 # Some rework will be needed to allow for fast_install
11458 # before this can be enabled.
11459 hardcode_into_libs=yes
11460
11461 # Ideally, we could use ldconfig to report *all* directores which are
11462 # searched for libraries, however this is still not possible. Aside from not
11463 # being certain /sbin/ldconfig is available, command
11464 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11465 # even though it is searched at run-time. Try to do the best guess by
11466 # appending ld.so.conf contents (and includes) to the search path.
11467 if test -f /etc/ld.so.conf; then
11468 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' ' '`
11469 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11470 fi
11471
11472 # We used to test for /lib/ld.so.1 and disable shared libraries on
11473 # powerpc, because MkLinux only supported shared libraries with the
11474 # GNU dynamic linker. Since this was broken with cross compilers,
11475 # most powerpc-linux boxes support dynamic linking these days and
11476 # people can always --disable-shared, the test was removed, and we
11477 # assume the GNU/Linux dynamic linker is in use.
11478 dynamic_linker='GNU/Linux ld.so'
11479 ;;
11480
11481 netbsd*)
11482 version_type=sunos
11483 need_lib_prefix=no
11484 need_version=no
11485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11486 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11488 dynamic_linker='NetBSD (a.out) ld.so'
11489 else
11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11491 soname_spec='$libname$release$shared_ext$major'
11492 dynamic_linker='NetBSD ld.elf_so'
11493 fi
11494 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=yes
11496 hardcode_into_libs=yes
11497 ;;
11498
11499 newsos6)
11500 version_type=linux # correct to gnu/linux during the next big refactor
11501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11504 ;;
11505
11506 *nto* | *qnx*)
11507 version_type=qnx
11508 need_lib_prefix=no
11509 need_version=no
11510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11511 soname_spec='$libname$release$shared_ext$major'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=no
11514 hardcode_into_libs=yes
11515 dynamic_linker='ldqnx.so'
11516 ;;
11517
11518 openbsd* | bitrig*)
11519 version_type=sunos
11520 sys_lib_dlsearch_path_spec=/usr/lib
11521 need_lib_prefix=no
11522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11523 need_version=no
11524 else
11525 need_version=yes
11526 fi
11527 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes
11531 ;;
11532
11533 os2*)
11534 libname_spec='$name'
11535 version_type=windows
11536 shrext_cmds=.dll
11537 need_version=no
11538 need_lib_prefix=no
11539 # OS/2 can only load a DLL with a base name of 8 characters or less.
11540 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11541 v=$($ECHO $release$versuffix | tr -d .-);
11542 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11543 $ECHO $n$v`$shared_ext'
11544 library_names_spec='${libname}_dll.$libext'
11545 dynamic_linker='OS/2 ld.exe'
11546 shlibpath_var=BEGINLIBPATH
11547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11549 postinstall_cmds='base_file=`basename \$file`~
11550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11551 dldir=$destdir/`dirname \$dlpath`~
11552 test -d \$dldir || mkdir -p \$dldir~
11553 $install_prog $dir/$dlname \$dldir/$dlname~
11554 chmod a+x \$dldir/$dlname~
11555 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11556 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11557 fi'
11558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11559 dlpath=$dir/\$dldll~
11560 $RM \$dlpath'
11561 ;;
11562
11563 osf3* | osf4* | osf5*)
11564 version_type=osf
11565 need_lib_prefix=no
11566 need_version=no
11567 soname_spec='$libname$release$shared_ext$major'
11568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11572 ;;
11573
11574 rdos*)
11575 dynamic_linker=no
11576 ;;
11577
11578 solaris*)
11579 version_type=linux # correct to gnu/linux during the next big refactor
11580 need_lib_prefix=no
11581 need_version=no
11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583 soname_spec='$libname$release$shared_ext$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11587 # ldd complains unless libraries are executable
11588 postinstall_cmds='chmod +x $lib'
11589 ;;
11590
11591 sunos4*)
11592 version_type=sunos
11593 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=yes
11597 if test yes = "$with_gnu_ld"; then
11598 need_lib_prefix=no
11599 fi
11600 need_version=yes
11601 ;;
11602
11603 sysv4 | sysv4.3*)
11604 version_type=linux # correct to gnu/linux during the next big refactor
11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11606 soname_spec='$libname$release$shared_ext$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 case $host_vendor in
11609 sni)
11610 shlibpath_overrides_runpath=no
11611 need_lib_prefix=no
11612 runpath_var=LD_RUN_PATH
11613 ;;
11614 siemens)
11615 need_lib_prefix=no
11616 ;;
11617 motorola)
11618 need_lib_prefix=no
11619 need_version=no
11620 shlibpath_overrides_runpath=no
11621 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11622 ;;
11623 esac
11624 ;;
11625
11626 sysv4*MP*)
11627 if test -d /usr/nec; then
11628 version_type=linux # correct to gnu/linux during the next big refactor
11629 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11630 soname_spec='$libname$shared_ext.$major'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 fi
11633 ;;
11634
11635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11636 version_type=sco
11637 need_lib_prefix=no
11638 need_version=no
11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11640 soname_spec='$libname$release$shared_ext$major'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 hardcode_into_libs=yes
11644 if test yes = "$with_gnu_ld"; then
11645 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11646 else
11647 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11648 case $host_os in
11649 sco3.2v5*)
11650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11651 ;;
11652 esac
11653 fi
11654 sys_lib_dlsearch_path_spec='/usr/lib'
11655 ;;
11656
11657 tpf*)
11658 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11659 version_type=linux # correct to gnu/linux during the next big refactor
11660 need_lib_prefix=no
11661 need_version=no
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=no
11665 hardcode_into_libs=yes
11666 ;;
11667
11668 uts4*)
11669 version_type=linux # correct to gnu/linux during the next big refactor
11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11671 soname_spec='$libname$release$shared_ext$major'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 ;;
11674
11675 *)
11676 dynamic_linker=no
11677 ;;
11678 esac
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11680 $as_echo "$dynamic_linker" >&6; }
11681 test no = "$dynamic_linker" && can_build_shared=no
11682
11683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11684 if test yes = "$GCC"; then
11685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11686 fi
11687
11688 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11689 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11690 fi
11691
11692 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11693 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11694 fi
11695
11696 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11697 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11698
11699 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11700 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11701
11702 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11703 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11802 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11803 hardcode_action=
11804 if test -n "$hardcode_libdir_flag_spec" ||
11805 test -n "$runpath_var" ||
11806 test yes = "$hardcode_automatic"; then
11807
11808 # We can hardcode non-existent directories.
11809 if test no != "$hardcode_direct" &&
11810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11811 # have to relink, otherwise we might link with an installed library
11812 # when we should be linking with a yet-to-be-installed one
11813 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11814 test no != "$hardcode_minus_L"; then
11815 # Linking always hardcodes the temporary library directory.
11816 hardcode_action=relink
11817 else
11818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11819 hardcode_action=immediate
11820 fi
11821 else
11822 # We cannot hardcode anything, or else we can only hardcode existing
11823 # directories.
11824 hardcode_action=unsupported
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11827 $as_echo "$hardcode_action" >&6; }
11828
11829 if test relink = "$hardcode_action" ||
11830 test yes = "$inherit_rpath"; then
11831 # Fast installation is not supported
11832 enable_fast_install=no
11833 elif test yes = "$shlibpath_overrides_runpath" ||
11834 test no = "$enable_shared"; then
11835 # Fast installation is not necessary
11836 enable_fast_install=needless
11837 fi
11838
11839
11840
11841
11842
11843
11844 if test yes != "$enable_dlopen"; then
11845 enable_dlopen=unknown
11846 enable_dlopen_self=unknown
11847 enable_dlopen_self_static=unknown
11848 else
11849 lt_cv_dlopen=no
11850 lt_cv_dlopen_libs=
11851
11852 case $host_os in
11853 beos*)
11854 lt_cv_dlopen=load_add_on
11855 lt_cv_dlopen_libs=
11856 lt_cv_dlopen_self=yes
11857 ;;
11858
11859 mingw* | pw32* | cegcc*)
11860 lt_cv_dlopen=LoadLibrary
11861 lt_cv_dlopen_libs=
11862 ;;
11863
11864 cygwin*)
11865 lt_cv_dlopen=dlopen
11866 lt_cv_dlopen_libs=
11867 ;;
11868
11869 darwin*)
11870 # if libdl is installed we need to link against it
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11873 if ${ac_cv_lib_dl_dlopen+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 ac_check_lib_save_LIBS=$LIBS
11877 LIBS="-ldl $LIBS"
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11880
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char dlopen ();
11888 int
11889 main ()
11890 {
11891 return dlopen ();
11892 ;
11893 return 0;
11894 }
11895 _ACEOF
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_lib_dl_dlopen=yes
11898 else
11899 ac_cv_lib_dl_dlopen=no
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903 LIBS=$ac_check_lib_save_LIBS
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11907 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11908 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11909 else
11910
11911 lt_cv_dlopen=dyld
11912 lt_cv_dlopen_libs=
11913 lt_cv_dlopen_self=yes
11914
11915 fi
11916
11917 ;;
11918
11919 tpf*)
11920 # Don't try to run any link tests for TPF. We know it's impossible
11921 # because TPF is a cross-compiler, and we know how we open DSOs.
11922 lt_cv_dlopen=dlopen
11923 lt_cv_dlopen_libs=
11924 lt_cv_dlopen_self=no
11925 ;;
11926
11927 *)
11928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11929 if test "x$ac_cv_func_shl_load" = xyes; then :
11930 lt_cv_dlopen=shl_load
11931 else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11933 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11934 if ${ac_cv_lib_dld_shl_load+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-ldld $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char shl_load ();
11949 int
11950 main ()
11951 {
11952 return shl_load ();
11953 ;
11954 return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_dld_shl_load=yes
11959 else
11960 ac_cv_lib_dld_shl_load=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11967 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11968 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11969 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11970 else
11971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11972 if test "x$ac_cv_func_dlopen" = xyes; then :
11973 lt_cv_dlopen=dlopen
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if ${ac_cv_lib_dl_dlopen+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldl $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12002 else
12003 ac_cv_lib_dl_dlopen=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12012 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12015 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12016 if ${ac_cv_lib_svld_dlopen+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-lsvld $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12023
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char dlopen ();
12031 int
12032 main ()
12033 {
12034 return dlopen ();
12035 ;
12036 return 0;
12037 }
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"; then :
12040 ac_cv_lib_svld_dlopen=yes
12041 else
12042 ac_cv_lib_svld_dlopen=no
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12049 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12050 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12051 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12054 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12055 if ${ac_cv_lib_dld_dld_link+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-ldld $LIBS"
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char dld_link ();
12070 int
12071 main ()
12072 {
12073 return dld_link ();
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_dld_dld_link=yes
12080 else
12081 ac_cv_lib_dld_dld_link=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12089 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12090 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12091 fi
12092
12093
12094 fi
12095
12096
12097 fi
12098
12099
12100 fi
12101
12102
12103 fi
12104
12105
12106 fi
12107
12108 ;;
12109 esac
12110
12111 if test no = "$lt_cv_dlopen"; then
12112 enable_dlopen=no
12113 else
12114 enable_dlopen=yes
12115 fi
12116
12117 case $lt_cv_dlopen in
12118 dlopen)
12119 save_CPPFLAGS=$CPPFLAGS
12120 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12121
12122 save_LDFLAGS=$LDFLAGS
12123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12124
12125 save_LIBS=$LIBS
12126 LIBS="$lt_cv_dlopen_libs $LIBS"
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12130 if ${lt_cv_dlopen_self+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 if test yes = "$cross_compiling"; then :
12134 lt_cv_dlopen_self=cross
12135 else
12136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137 lt_status=$lt_dlunknown
12138 cat > conftest.$ac_ext <<_LT_EOF
12139 #line $LINENO "configure"
12140 #include "confdefs.h"
12141
12142 #if HAVE_DLFCN_H
12143 #include <dlfcn.h>
12144 #endif
12145
12146 #include <stdio.h>
12147
12148 #ifdef RTLD_GLOBAL
12149 # define LT_DLGLOBAL RTLD_GLOBAL
12150 #else
12151 # ifdef DL_GLOBAL
12152 # define LT_DLGLOBAL DL_GLOBAL
12153 # else
12154 # define LT_DLGLOBAL 0
12155 # endif
12156 #endif
12157
12158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159 find out it does not work in some platform. */
12160 #ifndef LT_DLLAZY_OR_NOW
12161 # ifdef RTLD_LAZY
12162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12163 # else
12164 # ifdef DL_LAZY
12165 # define LT_DLLAZY_OR_NOW DL_LAZY
12166 # else
12167 # ifdef RTLD_NOW
12168 # define LT_DLLAZY_OR_NOW RTLD_NOW
12169 # else
12170 # ifdef DL_NOW
12171 # define LT_DLLAZY_OR_NOW DL_NOW
12172 # else
12173 # define LT_DLLAZY_OR_NOW 0
12174 # endif
12175 # endif
12176 # endif
12177 # endif
12178 #endif
12179
12180 /* When -fvisibility=hidden is used, assume the code has been annotated
12181 correspondingly for the symbols needed. */
12182 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12183 int fnord () __attribute__((visibility("default")));
12184 #endif
12185
12186 int fnord () { return 42; }
12187 int main ()
12188 {
12189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12190 int status = $lt_dlunknown;
12191
12192 if (self)
12193 {
12194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12195 else
12196 {
12197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12198 else puts (dlerror ());
12199 }
12200 /* dlclose (self); */
12201 }
12202 else
12203 puts (dlerror ());
12204
12205 return status;
12206 }
12207 _LT_EOF
12208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12209 (eval $ac_link) 2>&5
12210 ac_status=$?
12211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12213 (./conftest; exit; ) >&5 2>/dev/null
12214 lt_status=$?
12215 case x$lt_status in
12216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12219 esac
12220 else :
12221 # compilation failed
12222 lt_cv_dlopen_self=no
12223 fi
12224 fi
12225 rm -fr conftest*
12226
12227
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12230 $as_echo "$lt_cv_dlopen_self" >&6; }
12231
12232 if test yes = "$lt_cv_dlopen_self"; then
12233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12235 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12236 if ${lt_cv_dlopen_self_static+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 if test yes = "$cross_compiling"; then :
12240 lt_cv_dlopen_self_static=cross
12241 else
12242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12243 lt_status=$lt_dlunknown
12244 cat > conftest.$ac_ext <<_LT_EOF
12245 #line $LINENO "configure"
12246 #include "confdefs.h"
12247
12248 #if HAVE_DLFCN_H
12249 #include <dlfcn.h>
12250 #endif
12251
12252 #include <stdio.h>
12253
12254 #ifdef RTLD_GLOBAL
12255 # define LT_DLGLOBAL RTLD_GLOBAL
12256 #else
12257 # ifdef DL_GLOBAL
12258 # define LT_DLGLOBAL DL_GLOBAL
12259 # else
12260 # define LT_DLGLOBAL 0
12261 # endif
12262 #endif
12263
12264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12265 find out it does not work in some platform. */
12266 #ifndef LT_DLLAZY_OR_NOW
12267 # ifdef RTLD_LAZY
12268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12269 # else
12270 # ifdef DL_LAZY
12271 # define LT_DLLAZY_OR_NOW DL_LAZY
12272 # else
12273 # ifdef RTLD_NOW
12274 # define LT_DLLAZY_OR_NOW RTLD_NOW
12275 # else
12276 # ifdef DL_NOW
12277 # define LT_DLLAZY_OR_NOW DL_NOW
12278 # else
12279 # define LT_DLLAZY_OR_NOW 0
12280 # endif
12281 # endif
12282 # endif
12283 # endif
12284 #endif
12285
12286 /* When -fvisibility=hidden is used, assume the code has been annotated
12287 correspondingly for the symbols needed. */
12288 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12289 int fnord () __attribute__((visibility("default")));
12290 #endif
12291
12292 int fnord () { return 42; }
12293 int main ()
12294 {
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
12297
12298 if (self)
12299 {
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12301 else
12302 {
12303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304 else puts (dlerror ());
12305 }
12306 /* dlclose (self); */
12307 }
12308 else
12309 puts (dlerror ());
12310
12311 return status;
12312 }
12313 _LT_EOF
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12319 (./conftest; exit; ) >&5 2>/dev/null
12320 lt_status=$?
12321 case x$lt_status in
12322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12325 esac
12326 else :
12327 # compilation failed
12328 lt_cv_dlopen_self_static=no
12329 fi
12330 fi
12331 rm -fr conftest*
12332
12333
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12337 fi
12338
12339 CPPFLAGS=$save_CPPFLAGS
12340 LDFLAGS=$save_LDFLAGS
12341 LIBS=$save_LIBS
12342 ;;
12343 esac
12344
12345 case $lt_cv_dlopen_self in
12346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12347 *) enable_dlopen_self=unknown ;;
12348 esac
12349
12350 case $lt_cv_dlopen_self_static in
12351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12352 *) enable_dlopen_self_static=unknown ;;
12353 esac
12354 fi
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372 striplib=
12373 old_striplib=
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12375 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381 else
12382 # FIXME - insert some real tests, host_os isn't really good enough
12383 case $host_os in
12384 darwin*)
12385 if test -n "$STRIP"; then
12386 striplib="$STRIP -x"
12387 old_striplib="$STRIP -S"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 fi
12394 ;;
12395 *)
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 ;;
12399 esac
12400 fi
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413 # Report what library types will actually be built
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12417 $as_echo "$can_build_shared" >&6; }
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12420 $as_echo_n "checking whether to build shared libraries... " >&6; }
12421 test no = "$can_build_shared" && enable_shared=no
12422
12423 # On AIX, shared libraries and static libraries use the same namespace, and
12424 # are all built from PIC.
12425 case $host_os in
12426 aix3*)
12427 test yes = "$enable_shared" && enable_static=no
12428 if test -n "$RANLIB"; then
12429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12430 postinstall_cmds='$RANLIB $lib'
12431 fi
12432 ;;
12433
12434 aix[4-9]*)
12435 if test ia64 != "$host_cpu"; then
12436 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12437 yes,aix,yes) ;; # shared object as lib.so file only
12438 yes,svr4,*) ;; # shared object as lib.so archive member only
12439 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12440 esac
12441 fi
12442 ;;
12443 esac
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12445 $as_echo "$enable_shared" >&6; }
12446
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12448 $as_echo_n "checking whether to build static libraries... " >&6; }
12449 # Make sure either enable_shared or enable_static is yes.
12450 test yes = "$enable_shared" || enable_static=yes
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12452 $as_echo "$enable_static" >&6; }
12453
12454
12455
12456
12457 fi
12458 ac_ext=c
12459 ac_cpp='$CPP $CPPFLAGS'
12460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12463
12464 CC=$lt_save_CC
12465
12466 if test -n "$CXX" && ( test no != "$CXX" &&
12467 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12468 (test g++ != "$CXX"))); then
12469 ac_ext=cpp
12470 ac_cpp='$CXXCPP $CPPFLAGS'
12471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12475 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12476 if test -z "$CXXCPP"; then
12477 if ${ac_cv_prog_CXXCPP+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 # Double quotes because CXXCPP needs to be expanded
12481 for CXXCPP in "$CXX -E" "/lib/cpp"
12482 do
12483 ac_preproc_ok=false
12484 for ac_cxx_preproc_warn_flag in '' yes
12485 do
12486 # Use a header file that comes with gcc, so configuring glibc
12487 # with a fresh cross-compiler works.
12488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12489 # <limits.h> exists even on freestanding compilers.
12490 # On the NeXT, cc -E runs the code through the compiler's parser,
12491 # not just through cpp. "Syntax error" is here to catch this case.
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494 #ifdef __STDC__
12495 # include <limits.h>
12496 #else
12497 # include <assert.h>
12498 #endif
12499 Syntax error
12500 _ACEOF
12501 if ac_fn_cxx_try_cpp "$LINENO"; then :
12502
12503 else
12504 # Broken: fails on valid input.
12505 continue
12506 fi
12507 rm -f conftest.err conftest.i conftest.$ac_ext
12508
12509 # OK, works on sane cases. Now check whether nonexistent headers
12510 # can be detected and how.
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513 #include <ac_nonexistent.h>
12514 _ACEOF
12515 if ac_fn_cxx_try_cpp "$LINENO"; then :
12516 # Broken: success on invalid input.
12517 continue
12518 else
12519 # Passes both tests.
12520 ac_preproc_ok=:
12521 break
12522 fi
12523 rm -f conftest.err conftest.i conftest.$ac_ext
12524
12525 done
12526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12527 rm -f conftest.i conftest.err conftest.$ac_ext
12528 if $ac_preproc_ok; then :
12529 break
12530 fi
12531
12532 done
12533 ac_cv_prog_CXXCPP=$CXXCPP
12534
12535 fi
12536 CXXCPP=$ac_cv_prog_CXXCPP
12537 else
12538 ac_cv_prog_CXXCPP=$CXXCPP
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12541 $as_echo "$CXXCPP" >&6; }
12542 ac_preproc_ok=false
12543 for ac_cxx_preproc_warn_flag in '' yes
12544 do
12545 # Use a header file that comes with gcc, so configuring glibc
12546 # with a fresh cross-compiler works.
12547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12548 # <limits.h> exists even on freestanding compilers.
12549 # On the NeXT, cc -E runs the code through the compiler's parser,
12550 # not just through cpp. "Syntax error" is here to catch this case.
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 #ifdef __STDC__
12554 # include <limits.h>
12555 #else
12556 # include <assert.h>
12557 #endif
12558 Syntax error
12559 _ACEOF
12560 if ac_fn_cxx_try_cpp "$LINENO"; then :
12561
12562 else
12563 # Broken: fails on valid input.
12564 continue
12565 fi
12566 rm -f conftest.err conftest.i conftest.$ac_ext
12567
12568 # OK, works on sane cases. Now check whether nonexistent headers
12569 # can be detected and how.
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12572 #include <ac_nonexistent.h>
12573 _ACEOF
12574 if ac_fn_cxx_try_cpp "$LINENO"; then :
12575 # Broken: success on invalid input.
12576 continue
12577 else
12578 # Passes both tests.
12579 ac_preproc_ok=:
12580 break
12581 fi
12582 rm -f conftest.err conftest.i conftest.$ac_ext
12583
12584 done
12585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12586 rm -f conftest.i conftest.err conftest.$ac_ext
12587 if $ac_preproc_ok; then :
12588
12589 else
12590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12592 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12593 See \`config.log' for more details" "$LINENO" 5; }
12594 fi
12595
12596 ac_ext=c
12597 ac_cpp='$CPP $CPPFLAGS'
12598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12601
12602 else
12603 _lt_caught_CXX_error=yes
12604 fi
12605
12606 ac_ext=cpp
12607 ac_cpp='$CXXCPP $CPPFLAGS'
12608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12611
12612 archive_cmds_need_lc_CXX=no
12613 allow_undefined_flag_CXX=
12614 always_export_symbols_CXX=no
12615 archive_expsym_cmds_CXX=
12616 compiler_needs_object_CXX=no
12617 export_dynamic_flag_spec_CXX=
12618 hardcode_direct_CXX=no
12619 hardcode_direct_absolute_CXX=no
12620 hardcode_libdir_flag_spec_CXX=
12621 hardcode_libdir_separator_CXX=
12622 hardcode_minus_L_CXX=no
12623 hardcode_shlibpath_var_CXX=unsupported
12624 hardcode_automatic_CXX=no
12625 inherit_rpath_CXX=no
12626 module_cmds_CXX=
12627 module_expsym_cmds_CXX=
12628 link_all_deplibs_CXX=unknown
12629 old_archive_cmds_CXX=$old_archive_cmds
12630 reload_flag_CXX=$reload_flag
12631 reload_cmds_CXX=$reload_cmds
12632 no_undefined_flag_CXX=
12633 whole_archive_flag_spec_CXX=
12634 enable_shared_with_static_runtimes_CXX=no
12635
12636 # Source file extension for C++ test sources.
12637 ac_ext=cpp
12638
12639 # Object file extension for compiled C++ test sources.
12640 objext=o
12641 objext_CXX=$objext
12642
12643 # No sense in running all these tests if we already determined that
12644 # the CXX compiler isn't working. Some variables (like enable_shared)
12645 # are currently assumed to apply to all compilers on this platform,
12646 # and will be corrupted by setting them based on a non-working compiler.
12647 if test yes != "$_lt_caught_CXX_error"; then
12648 # Code to be used in simple compile tests
12649 lt_simple_compile_test_code="int some_variable = 0;"
12650
12651 # Code to be used in simple link tests
12652 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12653
12654 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12655
12656
12657
12658
12659
12660
12661 # If no C compiler was specified, use CC.
12662 LTCC=${LTCC-"$CC"}
12663
12664 # If no C compiler flags were specified, use CFLAGS.
12665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12666
12667 # Allow CC to be a program name with arguments.
12668 compiler=$CC
12669
12670
12671 # save warnings/boilerplate of simple test code
12672 ac_outfile=conftest.$ac_objext
12673 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12675 _lt_compiler_boilerplate=`cat conftest.err`
12676 $RM conftest*
12677
12678 ac_outfile=conftest.$ac_objext
12679 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12681 _lt_linker_boilerplate=`cat conftest.err`
12682 $RM -r conftest*
12683
12684
12685 # Allow CC to be a program name with arguments.
12686 lt_save_CC=$CC
12687 lt_save_CFLAGS=$CFLAGS
12688 lt_save_LD=$LD
12689 lt_save_GCC=$GCC
12690 GCC=$GXX
12691 lt_save_with_gnu_ld=$with_gnu_ld
12692 lt_save_path_LD=$lt_cv_path_LD
12693 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12694 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12695 else
12696 $as_unset lt_cv_prog_gnu_ld
12697 fi
12698 if test -n "${lt_cv_path_LDCXX+set}"; then
12699 lt_cv_path_LD=$lt_cv_path_LDCXX
12700 else
12701 $as_unset lt_cv_path_LD
12702 fi
12703 test -z "${LDCXX+set}" || LD=$LDCXX
12704 CC=${CXX-"c++"}
12705 CFLAGS=$CXXFLAGS
12706 compiler=$CC
12707 compiler_CXX=$CC
12708 func_cc_basename $compiler
12709 cc_basename=$func_cc_basename_result
12710
12711
12712 if test -n "$compiler"; then
12713 # We don't want -fno-exception when compiling C++ code, so set the
12714 # no_builtin_flag separately
12715 if test yes = "$GXX"; then
12716 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12717 else
12718 lt_prog_compiler_no_builtin_flag_CXX=
12719 fi
12720
12721 if test yes = "$GXX"; then
12722 # Set up default GNU C++ configuration
12723
12724
12725
12726 # Check whether --with-gnu-ld was given.
12727 if test "${with_gnu_ld+set}" = set; then :
12728 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12729 else
12730 with_gnu_ld=no
12731 fi
12732
12733 ac_prog=ld
12734 if test yes = "$GCC"; then
12735 # Check if gcc -print-prog-name=ld gives a path.
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12737 $as_echo_n "checking for ld used by $CC... " >&6; }
12738 case $host in
12739 *-*-mingw*)
12740 # gcc leaves a trailing carriage return, which upsets mingw
12741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12742 *)
12743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12744 esac
12745 case $ac_prog in
12746 # Accept absolute paths.
12747 [\\/]* | ?:[\\/]*)
12748 re_direlt='/[^/][^/]*/\.\./'
12749 # Canonicalize the pathname of ld
12750 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12751 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12752 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12753 done
12754 test -z "$LD" && LD=$ac_prog
12755 ;;
12756 "")
12757 # If it fails, then pretend we aren't using GCC.
12758 ac_prog=ld
12759 ;;
12760 *)
12761 # If it is relative, then search for the first ld in PATH.
12762 with_gnu_ld=unknown
12763 ;;
12764 esac
12765 elif test yes = "$with_gnu_ld"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12767 $as_echo_n "checking for GNU ld... " >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12770 $as_echo_n "checking for non-GNU ld... " >&6; }
12771 fi
12772 if ${lt_cv_path_LD+:} false; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 if test -z "$LD"; then
12776 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12777 for ac_dir in $PATH; do
12778 IFS=$lt_save_ifs
12779 test -z "$ac_dir" && ac_dir=.
12780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12781 lt_cv_path_LD=$ac_dir/$ac_prog
12782 # Check to see if the program is GNU ld. I'd rather use --version,
12783 # but apparently some variants of GNU ld only accept -v.
12784 # Break only if it was the GNU/non-GNU ld that we prefer.
12785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12786 *GNU* | *'with BFD'*)
12787 test no != "$with_gnu_ld" && break
12788 ;;
12789 *)
12790 test yes != "$with_gnu_ld" && break
12791 ;;
12792 esac
12793 fi
12794 done
12795 IFS=$lt_save_ifs
12796 else
12797 lt_cv_path_LD=$LD # Let the user override the test with a path.
12798 fi
12799 fi
12800
12801 LD=$lt_cv_path_LD
12802 if test -n "$LD"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12804 $as_echo "$LD" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12811 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12812 if ${lt_cv_prog_gnu_ld+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12816 case `$LD -v 2>&1 </dev/null` in
12817 *GNU* | *'with BFD'*)
12818 lt_cv_prog_gnu_ld=yes
12819 ;;
12820 *)
12821 lt_cv_prog_gnu_ld=no
12822 ;;
12823 esac
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12826 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12827 with_gnu_ld=$lt_cv_prog_gnu_ld
12828
12829
12830
12831
12832
12833
12834
12835 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12836 # archiving commands below assume that GNU ld is being used.
12837 if test yes = "$with_gnu_ld"; then
12838 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12839 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'
12840
12841 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12842 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12843
12844 # If archive_cmds runs LD, not CC, wlarc should be empty
12845 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12846 # investigate it a little bit more. (MM)
12847 wlarc='$wl'
12848
12849 # ancient GNU ld didn't support --whole-archive et. al.
12850 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12851 $GREP 'no-whole-archive' > /dev/null; then
12852 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12853 else
12854 whole_archive_flag_spec_CXX=
12855 fi
12856 else
12857 with_gnu_ld=no
12858 wlarc=
12859
12860 # A generic and very simple default shared library creation
12861 # command for GNU C++ for the case where it uses the native
12862 # linker, instead of GNU ld. If possible, this setting should
12863 # overridden to take advantage of the native linker features on
12864 # the platform it is being used on.
12865 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12866 fi
12867
12868 # Commands to make compiler produce verbose output that lists
12869 # what "hidden" libraries, object files and flags are used when
12870 # linking a shared library.
12871 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12872
12873 else
12874 GXX=no
12875 with_gnu_ld=no
12876 wlarc=
12877 fi
12878
12879 # PORTME: fill in a description of your system's C++ link characteristics
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12881 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12882 ld_shlibs_CXX=yes
12883 case $host_os in
12884 aix3*)
12885 # FIXME: insert proper C++ library support
12886 ld_shlibs_CXX=no
12887 ;;
12888 aix[4-9]*)
12889 if test ia64 = "$host_cpu"; then
12890 # On IA64, the linker does run time linking by default, so we don't
12891 # have to do anything special.
12892 aix_use_runtimelinking=no
12893 exp_sym_flag='-Bexport'
12894 no_entry_flag=
12895 else
12896 aix_use_runtimelinking=no
12897
12898 # Test if we are trying to use run time linking or normal
12899 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12900 # have runtime linking enabled, and use it for executables.
12901 # For shared libraries, we enable/disable runtime linking
12902 # depending on the kind of the shared library created -
12903 # when "with_aix_soname,aix_use_runtimelinking" is:
12904 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12905 # "aix,yes" lib.so shared, rtl:yes, for executables
12906 # lib.a static archive
12907 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12908 # lib.a(lib.so.V) shared, rtl:no, for executables
12909 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12910 # lib.a(lib.so.V) shared, rtl:no
12911 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12912 # lib.a static archive
12913 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12914 for ld_flag in $LDFLAGS; do
12915 case $ld_flag in
12916 *-brtl*)
12917 aix_use_runtimelinking=yes
12918 break
12919 ;;
12920 esac
12921 done
12922 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12923 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12924 # so we don't have lib.a shared libs to link our executables.
12925 # We have to force runtime linking in this case.
12926 aix_use_runtimelinking=yes
12927 LDFLAGS="$LDFLAGS -Wl,-brtl"
12928 fi
12929 ;;
12930 esac
12931
12932 exp_sym_flag='-bexport'
12933 no_entry_flag='-bnoentry'
12934 fi
12935
12936 # When large executables or shared objects are built, AIX ld can
12937 # have problems creating the table of contents. If linking a library
12938 # or program results in "error TOC overflow" add -mminimal-toc to
12939 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12940 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12941
12942 archive_cmds_CXX=''
12943 hardcode_direct_CXX=yes
12944 hardcode_direct_absolute_CXX=yes
12945 hardcode_libdir_separator_CXX=':'
12946 link_all_deplibs_CXX=yes
12947 file_list_spec_CXX='$wl-f,'
12948 case $with_aix_soname,$aix_use_runtimelinking in
12949 aix,*) ;; # no import file
12950 svr4,* | *,yes) # use import file
12951 # The Import File defines what to hardcode.
12952 hardcode_direct_CXX=no
12953 hardcode_direct_absolute_CXX=no
12954 ;;
12955 esac
12956
12957 if test yes = "$GXX"; then
12958 case $host_os in aix4.[012]|aix4.[012].*)
12959 # We only want to do this on AIX 4.2 and lower, the check
12960 # below for broken collect2 doesn't work under 4.3+
12961 collect2name=`$CC -print-prog-name=collect2`
12962 if test -f "$collect2name" &&
12963 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12964 then
12965 # We have reworked collect2
12966 :
12967 else
12968 # We have old collect2
12969 hardcode_direct_CXX=unsupported
12970 # It fails to find uninstalled libraries when the uninstalled
12971 # path is not listed in the libpath. Setting hardcode_minus_L
12972 # to unsupported forces relinking
12973 hardcode_minus_L_CXX=yes
12974 hardcode_libdir_flag_spec_CXX='-L$libdir'
12975 hardcode_libdir_separator_CXX=
12976 fi
12977 esac
12978 shared_flag='-shared'
12979 if test yes = "$aix_use_runtimelinking"; then
12980 shared_flag=$shared_flag' $wl-G'
12981 fi
12982 # Need to ensure runtime linking is disabled for the traditional
12983 # shared library, or the linker may eventually find shared libraries
12984 # /with/ Import File - we do not want to mix them.
12985 shared_flag_aix='-shared'
12986 shared_flag_svr4='-shared $wl-G'
12987 else
12988 # not using gcc
12989 if test ia64 = "$host_cpu"; then
12990 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12991 # chokes on -Wl,-G. The following line is correct:
12992 shared_flag='-G'
12993 else
12994 if test yes = "$aix_use_runtimelinking"; then
12995 shared_flag='$wl-G'
12996 else
12997 shared_flag='$wl-bM:SRE'
12998 fi
12999 shared_flag_aix='$wl-bM:SRE'
13000 shared_flag_svr4='$wl-G'
13001 fi
13002 fi
13003
13004 export_dynamic_flag_spec_CXX='$wl-bexpall'
13005 # It seems that -bexpall does not export symbols beginning with
13006 # underscore (_), so it is better to generate a list of symbols to
13007 # export.
13008 always_export_symbols_CXX=yes
13009 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13010 # Warning - without using the other runtime loading flags (-brtl),
13011 # -berok will link without error, but may produce a broken library.
13012 # The "-G" linker flag allows undefined symbols.
13013 no_undefined_flag_CXX='-bernotok'
13014 # Determine the default libpath from the value encoded in an empty
13015 # executable.
13016 if test set = "${lt_cv_aix_libpath+set}"; then
13017 aix_libpath=$lt_cv_aix_libpath
13018 else
13019 if ${lt_cv_aix_libpath__CXX+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024
13025 int
13026 main ()
13027 {
13028
13029 ;
13030 return 0;
13031 }
13032 _ACEOF
13033 if ac_fn_cxx_try_link "$LINENO"; then :
13034
13035 lt_aix_libpath_sed='
13036 /Import File Strings/,/^$/ {
13037 /^0/ {
13038 s/^0 *\([^ ]*\) *$/\1/
13039 p
13040 }
13041 }'
13042 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13043 # Check for a 64-bit object if we didn't find anything.
13044 if test -z "$lt_cv_aix_libpath__CXX"; then
13045 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13046 fi
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050 if test -z "$lt_cv_aix_libpath__CXX"; then
13051 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13052 fi
13053
13054 fi
13055
13056 aix_libpath=$lt_cv_aix_libpath__CXX
13057 fi
13058
13059 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13060
13061 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
13062 else
13063 if test ia64 = "$host_cpu"; then
13064 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13065 allow_undefined_flag_CXX="-z nodefs"
13066 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"
13067 else
13068 # Determine the default libpath from the value encoded in an
13069 # empty executable.
13070 if test set = "${lt_cv_aix_libpath+set}"; then
13071 aix_libpath=$lt_cv_aix_libpath
13072 else
13073 if ${lt_cv_aix_libpath__CXX+:} false; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078
13079 int
13080 main ()
13081 {
13082
13083 ;
13084 return 0;
13085 }
13086 _ACEOF
13087 if ac_fn_cxx_try_link "$LINENO"; then :
13088
13089 lt_aix_libpath_sed='
13090 /Import File Strings/,/^$/ {
13091 /^0/ {
13092 s/^0 *\([^ ]*\) *$/\1/
13093 p
13094 }
13095 }'
13096 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13097 # Check for a 64-bit object if we didn't find anything.
13098 if test -z "$lt_cv_aix_libpath__CXX"; then
13099 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13100 fi
13101 fi
13102 rm -f core conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13104 if test -z "$lt_cv_aix_libpath__CXX"; then
13105 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13106 fi
13107
13108 fi
13109
13110 aix_libpath=$lt_cv_aix_libpath__CXX
13111 fi
13112
13113 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13114 # Warning - without using the other run time loading flags,
13115 # -berok will link without error, but may produce a broken library.
13116 no_undefined_flag_CXX=' $wl-bernotok'
13117 allow_undefined_flag_CXX=' $wl-berok'
13118 if test yes = "$with_gnu_ld"; then
13119 # We only use this code for GNU lds that support --whole-archive.
13120 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13121 else
13122 # Exported symbols can be pulled into shared objects from archives
13123 whole_archive_flag_spec_CXX='$convenience'
13124 fi
13125 archive_cmds_need_lc_CXX=yes
13126 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13127 # -brtl affects multiple linker settings, -berok does not and is overridden later
13128 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13129 if test svr4 != "$with_aix_soname"; then
13130 # This is similar to how AIX traditionally builds its shared
13131 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13132 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'
13133 fi
13134 if test aix != "$with_aix_soname"; then
13135 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'
13136 else
13137 # used by -dlpreopen to get the symbols
13138 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13139 fi
13140 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13141 fi
13142 fi
13143 ;;
13144
13145 beos*)
13146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13147 allow_undefined_flag_CXX=unsupported
13148 # Joseph Beckenbach <[email protected]> says some releases of gcc
13149 # support --undefined. This deserves some investigation. FIXME
13150 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13151 else
13152 ld_shlibs_CXX=no
13153 fi
13154 ;;
13155
13156 chorus*)
13157 case $cc_basename in
13158 *)
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 ;;
13162 esac
13163 ;;
13164
13165 cygwin* | mingw* | pw32* | cegcc*)
13166 case $GXX,$cc_basename in
13167 ,cl* | no,cl*)
13168 # Native MSVC
13169 # hardcode_libdir_flag_spec is actually meaningless, as there is
13170 # no search path for DLLs.
13171 hardcode_libdir_flag_spec_CXX=' '
13172 allow_undefined_flag_CXX=unsupported
13173 always_export_symbols_CXX=yes
13174 file_list_spec_CXX='@'
13175 # Tell ltmain to make .lib files, not .a files.
13176 libext=lib
13177 # Tell ltmain to make .dll files, not .so files.
13178 shrext_cmds=.dll
13179 # FIXME: Setting linknames here is a bad hack.
13180 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13181 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13182 cp "$export_symbols" "$output_objdir/$soname.def";
13183 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13184 else
13185 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13186 fi~
13187 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13188 linknames='
13189 # The linker will not automatically build a static lib if we build a DLL.
13190 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13191 enable_shared_with_static_runtimes_CXX=yes
13192 # Don't use ranlib
13193 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13194 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13195 lt_tool_outputfile="@TOOL_OUTPUT@"~
13196 case $lt_outputfile in
13197 *.exe|*.EXE) ;;
13198 *)
13199 lt_outputfile=$lt_outputfile.exe
13200 lt_tool_outputfile=$lt_tool_outputfile.exe
13201 ;;
13202 esac~
13203 func_to_tool_file "$lt_outputfile"~
13204 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13205 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13206 $RM "$lt_outputfile.manifest";
13207 fi'
13208 ;;
13209 *)
13210 # g++
13211 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13212 # as there is no search path for DLLs.
13213 hardcode_libdir_flag_spec_CXX='-L$libdir'
13214 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13215 allow_undefined_flag_CXX=unsupported
13216 always_export_symbols_CXX=no
13217 enable_shared_with_static_runtimes_CXX=yes
13218
13219 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13220 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'
13221 # If the export-symbols file already is a .def file, use it as
13222 # is; otherwise, prepend EXPORTS...
13223 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13224 cp $export_symbols $output_objdir/$soname.def;
13225 else
13226 echo EXPORTS > $output_objdir/$soname.def;
13227 cat $export_symbols >> $output_objdir/$soname.def;
13228 fi~
13229 $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'
13230 else
13231 ld_shlibs_CXX=no
13232 fi
13233 ;;
13234 esac
13235 ;;
13236 darwin* | rhapsody*)
13237
13238
13239 archive_cmds_need_lc_CXX=no
13240 hardcode_direct_CXX=no
13241 hardcode_automatic_CXX=yes
13242 hardcode_shlibpath_var_CXX=unsupported
13243 if test yes = "$lt_cv_ld_force_load"; then
13244 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\"`'
13245
13246 else
13247 whole_archive_flag_spec_CXX=''
13248 fi
13249 link_all_deplibs_CXX=yes
13250 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13251 case $cc_basename in
13252 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13253 *) _lt_dar_can_shared=$GCC ;;
13254 esac
13255 if test yes = "$_lt_dar_can_shared"; then
13256 output_verbose_link_cmd=func_echo_all
13257 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"
13258 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13259 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"
13260 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"
13261 if test yes != "$lt_cv_apple_cc_single_mod"; then
13262 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"
13263 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"
13264 fi
13265
13266 else
13267 ld_shlibs_CXX=no
13268 fi
13269
13270 ;;
13271
13272 os2*)
13273 hardcode_libdir_flag_spec_CXX='-L$libdir'
13274 hardcode_minus_L_CXX=yes
13275 allow_undefined_flag_CXX=unsupported
13276 shrext_cmds=.dll
13277 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13278 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13279 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13280 $ECHO EXPORTS >> $output_objdir/$libname.def~
13281 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13282 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13283 emximp -o $lib $output_objdir/$libname.def'
13284 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13285 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13286 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13287 $ECHO EXPORTS >> $output_objdir/$libname.def~
13288 prefix_cmds="$SED"~
13289 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13290 prefix_cmds="$prefix_cmds -e 1d";
13291 fi~
13292 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13293 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13294 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13295 emximp -o $lib $output_objdir/$libname.def'
13296 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13297 enable_shared_with_static_runtimes_CXX=yes
13298 ;;
13299
13300 dgux*)
13301 case $cc_basename in
13302 ec++*)
13303 # FIXME: insert proper C++ library support
13304 ld_shlibs_CXX=no
13305 ;;
13306 ghcx*)
13307 # Green Hills C++ Compiler
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13310 ;;
13311 *)
13312 # FIXME: insert proper C++ library support
13313 ld_shlibs_CXX=no
13314 ;;
13315 esac
13316 ;;
13317
13318 freebsd2.*)
13319 # C++ shared libraries reported to be fairly broken before
13320 # switch to ELF
13321 ld_shlibs_CXX=no
13322 ;;
13323
13324 freebsd-elf*)
13325 archive_cmds_need_lc_CXX=no
13326 ;;
13327
13328 freebsd* | dragonfly*)
13329 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13330 # conventions
13331 ld_shlibs_CXX=yes
13332 ;;
13333
13334 haiku*)
13335 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13336 link_all_deplibs_CXX=yes
13337 ;;
13338
13339 hpux9*)
13340 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13341 hardcode_libdir_separator_CXX=:
13342 export_dynamic_flag_spec_CXX='$wl-E'
13343 hardcode_direct_CXX=yes
13344 hardcode_minus_L_CXX=yes # Not in the search PATH,
13345 # but as the default
13346 # location of the library.
13347
13348 case $cc_basename in
13349 CC*)
13350 # FIXME: insert proper C++ library support
13351 ld_shlibs_CXX=no
13352 ;;
13353 aCC*)
13354 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'
13355 # Commands to make compiler produce verbose output that lists
13356 # what "hidden" libraries, object files and flags are used when
13357 # linking a shared library.
13358 #
13359 # There doesn't appear to be a way to prevent this compiler from
13360 # explicitly linking system object files so we need to strip them
13361 # from the output so that they don't get included in the library
13362 # dependencies.
13363 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"'
13364 ;;
13365 *)
13366 if test yes = "$GXX"; then
13367 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'
13368 else
13369 # FIXME: insert proper C++ library support
13370 ld_shlibs_CXX=no
13371 fi
13372 ;;
13373 esac
13374 ;;
13375
13376 hpux10*|hpux11*)
13377 if test no = "$with_gnu_ld"; then
13378 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13379 hardcode_libdir_separator_CXX=:
13380
13381 case $host_cpu in
13382 hppa*64*|ia64*)
13383 ;;
13384 *)
13385 export_dynamic_flag_spec_CXX='$wl-E'
13386 ;;
13387 esac
13388 fi
13389 case $host_cpu in
13390 hppa*64*|ia64*)
13391 hardcode_direct_CXX=no
13392 hardcode_shlibpath_var_CXX=no
13393 ;;
13394 *)
13395 hardcode_direct_CXX=yes
13396 hardcode_direct_absolute_CXX=yes
13397 hardcode_minus_L_CXX=yes # Not in the search PATH,
13398 # but as the default
13399 # location of the library.
13400 ;;
13401 esac
13402
13403 case $cc_basename in
13404 CC*)
13405 # FIXME: insert proper C++ library support
13406 ld_shlibs_CXX=no
13407 ;;
13408 aCC*)
13409 case $host_cpu in
13410 hppa*64*)
13411 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13412 ;;
13413 ia64*)
13414 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13415 ;;
13416 *)
13417 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13418 ;;
13419 esac
13420 # Commands to make compiler produce verbose output that lists
13421 # what "hidden" libraries, object files and flags are used when
13422 # linking a shared library.
13423 #
13424 # There doesn't appear to be a way to prevent this compiler from
13425 # explicitly linking system object files so we need to strip them
13426 # from the output so that they don't get included in the library
13427 # dependencies.
13428 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"'
13429 ;;
13430 *)
13431 if test yes = "$GXX"; then
13432 if test no = "$with_gnu_ld"; then
13433 case $host_cpu in
13434 hppa*64*)
13435 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13436 ;;
13437 ia64*)
13438 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439 ;;
13440 *)
13441 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'
13442 ;;
13443 esac
13444 fi
13445 else
13446 # FIXME: insert proper C++ library support
13447 ld_shlibs_CXX=no
13448 fi
13449 ;;
13450 esac
13451 ;;
13452
13453 interix[3-9]*)
13454 hardcode_direct_CXX=no
13455 hardcode_shlibpath_var_CXX=no
13456 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13457 export_dynamic_flag_spec_CXX='$wl-E'
13458 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13459 # Instead, shared libraries are loaded at an image base (0x10000000 by
13460 # default) and relocated if they conflict, which is a slow very memory
13461 # consuming and fragmenting process. To avoid this, we pick a random,
13462 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13463 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13464 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'
13465 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'
13466 ;;
13467 irix5* | irix6*)
13468 case $cc_basename in
13469 CC*)
13470 # SGI C++
13471 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'
13472
13473 # Archives containing C++ object files must be created using
13474 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13475 # necessary to make sure instantiated templates are included
13476 # in the archive.
13477 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13478 ;;
13479 *)
13480 if test yes = "$GXX"; then
13481 if test no = "$with_gnu_ld"; then
13482 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'
13483 else
13484 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'
13485 fi
13486 fi
13487 link_all_deplibs_CXX=yes
13488 ;;
13489 esac
13490 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13491 hardcode_libdir_separator_CXX=:
13492 inherit_rpath_CXX=yes
13493 ;;
13494
13495 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13496 case $cc_basename in
13497 KCC*)
13498 # Kuck and Associates, Inc. (KAI) C++ Compiler
13499
13500 # KCC will only create a shared library if the output file
13501 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13502 # to its proper name (with version) after linking.
13503 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'
13504 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'
13505 # Commands to make compiler produce verbose output that lists
13506 # what "hidden" libraries, object files and flags are used when
13507 # linking a shared library.
13508 #
13509 # There doesn't appear to be a way to prevent this compiler from
13510 # explicitly linking system object files so we need to strip them
13511 # from the output so that they don't get included in the library
13512 # dependencies.
13513 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"'
13514
13515 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13516 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13517
13518 # Archives containing C++ object files must be created using
13519 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13520 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13521 ;;
13522 icpc* | ecpc* )
13523 # Intel C++
13524 with_gnu_ld=yes
13525 # version 8.0 and above of icpc choke on multiply defined symbols
13526 # if we add $predep_objects and $postdep_objects, however 7.1 and
13527 # earlier do not add the objects themselves.
13528 case `$CC -V 2>&1` in
13529 *"Version 7."*)
13530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13531 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'
13532 ;;
13533 *) # Version 8.0 or newer
13534 tmp_idyn=
13535 case $host_cpu in
13536 ia64*) tmp_idyn=' -i_dynamic';;
13537 esac
13538 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13539 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'
13540 ;;
13541 esac
13542 archive_cmds_need_lc_CXX=no
13543 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13544 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13545 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13546 ;;
13547 pgCC* | pgcpp*)
13548 # Portland Group C++ compiler
13549 case `$CC -V` in
13550 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13551 prelink_cmds_CXX='tpldir=Template.dir~
13552 rm -rf $tpldir~
13553 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13554 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13555 old_archive_cmds_CXX='tpldir=Template.dir~
13556 rm -rf $tpldir~
13557 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13558 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13559 $RANLIB $oldlib'
13560 archive_cmds_CXX='tpldir=Template.dir~
13561 rm -rf $tpldir~
13562 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13563 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13564 archive_expsym_cmds_CXX='tpldir=Template.dir~
13565 rm -rf $tpldir~
13566 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13567 $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'
13568 ;;
13569 *) # Version 6 and above use weak symbols
13570 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13571 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'
13572 ;;
13573 esac
13574
13575 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13576 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13577 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'
13578 ;;
13579 cxx*)
13580 # Compaq C++
13581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13582 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'
13583
13584 runpath_var=LD_RUN_PATH
13585 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13586 hardcode_libdir_separator_CXX=:
13587
13588 # Commands to make compiler produce verbose output that lists
13589 # what "hidden" libraries, object files and flags are used when
13590 # linking a shared library.
13591 #
13592 # There doesn't appear to be a way to prevent this compiler from
13593 # explicitly linking system object files so we need to strip them
13594 # from the output so that they don't get included in the library
13595 # dependencies.
13596 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'
13597 ;;
13598 xl* | mpixl* | bgxl*)
13599 # IBM XL 8.0 on PPC, with GNU ld
13600 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13601 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13602 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13603 if test yes = "$supports_anon_versioning"; then
13604 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13605 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13606 echo "local: *; };" >> $output_objdir/$libname.ver~
13607 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13608 fi
13609 ;;
13610 *)
13611 case `$CC -V 2>&1 | sed 5q` in
13612 *Sun\ C*)
13613 # Sun C++ 5.9
13614 no_undefined_flag_CXX=' -zdefs'
13615 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13616 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'
13617 hardcode_libdir_flag_spec_CXX='-R$libdir'
13618 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'
13619 compiler_needs_object_CXX=yes
13620
13621 # Not sure whether something based on
13622 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13623 # would be better.
13624 output_verbose_link_cmd='func_echo_all'
13625
13626 # Archives containing C++ object files must be created using
13627 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13628 # necessary to make sure instantiated templates are included
13629 # in the archive.
13630 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13631 ;;
13632 esac
13633 ;;
13634 esac
13635 ;;
13636
13637 lynxos*)
13638 # FIXME: insert proper C++ library support
13639 ld_shlibs_CXX=no
13640 ;;
13641
13642 m88k*)
13643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13645 ;;
13646
13647 mvs*)
13648 case $cc_basename in
13649 cxx*)
13650 # FIXME: insert proper C++ library support
13651 ld_shlibs_CXX=no
13652 ;;
13653 *)
13654 # FIXME: insert proper C++ library support
13655 ld_shlibs_CXX=no
13656 ;;
13657 esac
13658 ;;
13659
13660 netbsd*)
13661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13662 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13663 wlarc=
13664 hardcode_libdir_flag_spec_CXX='-R$libdir'
13665 hardcode_direct_CXX=yes
13666 hardcode_shlibpath_var_CXX=no
13667 fi
13668 # Workaround some broken pre-1.5 toolchains
13669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13670 ;;
13671
13672 *nto* | *qnx*)
13673 ld_shlibs_CXX=yes
13674 ;;
13675
13676 openbsd* | bitrig*)
13677 if test -f /usr/libexec/ld.so; then
13678 hardcode_direct_CXX=yes
13679 hardcode_shlibpath_var_CXX=no
13680 hardcode_direct_absolute_CXX=yes
13681 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13682 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13684 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13685 export_dynamic_flag_spec_CXX='$wl-E'
13686 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13687 fi
13688 output_verbose_link_cmd=func_echo_all
13689 else
13690 ld_shlibs_CXX=no
13691 fi
13692 ;;
13693
13694 osf3* | osf4* | osf5*)
13695 case $cc_basename in
13696 KCC*)
13697 # Kuck and Associates, Inc. (KAI) C++ Compiler
13698
13699 # KCC will only create a shared library if the output file
13700 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13701 # to its proper name (with version) after linking.
13702 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'
13703
13704 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13705 hardcode_libdir_separator_CXX=:
13706
13707 # Archives containing C++ object files must be created using
13708 # the KAI C++ compiler.
13709 case $host in
13710 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13711 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13712 esac
13713 ;;
13714 RCC*)
13715 # Rational C++ 2.4.1
13716 # FIXME: insert proper C++ library support
13717 ld_shlibs_CXX=no
13718 ;;
13719 cxx*)
13720 case $host in
13721 osf3*)
13722 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13723 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'
13724 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13725 ;;
13726 *)
13727 allow_undefined_flag_CXX=' -expect_unresolved \*'
13728 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'
13729 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13730 echo "-hidden">> $lib.exp~
13731 $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~
13732 $RM $lib.exp'
13733 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13734 ;;
13735 esac
13736
13737 hardcode_libdir_separator_CXX=:
13738
13739 # Commands to make compiler produce verbose output that lists
13740 # what "hidden" libraries, object files and flags are used when
13741 # linking a shared library.
13742 #
13743 # There doesn't appear to be a way to prevent this compiler from
13744 # explicitly linking system object files so we need to strip them
13745 # from the output so that they don't get included in the library
13746 # dependencies.
13747 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"'
13748 ;;
13749 *)
13750 if test yes,no = "$GXX,$with_gnu_ld"; then
13751 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13752 case $host in
13753 osf3*)
13754 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'
13755 ;;
13756 *)
13757 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'
13758 ;;
13759 esac
13760
13761 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13762 hardcode_libdir_separator_CXX=:
13763
13764 # Commands to make compiler produce verbose output that lists
13765 # what "hidden" libraries, object files and flags are used when
13766 # linking a shared library.
13767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13768
13769 else
13770 # FIXME: insert proper C++ library support
13771 ld_shlibs_CXX=no
13772 fi
13773 ;;
13774 esac
13775 ;;
13776
13777 psos*)
13778 # FIXME: insert proper C++ library support
13779 ld_shlibs_CXX=no
13780 ;;
13781
13782 sunos4*)
13783 case $cc_basename in
13784 CC*)
13785 # Sun C++ 4.x
13786 # FIXME: insert proper C++ library support
13787 ld_shlibs_CXX=no
13788 ;;
13789 lcc*)
13790 # Lucid
13791 # FIXME: insert proper C++ library support
13792 ld_shlibs_CXX=no
13793 ;;
13794 *)
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13797 ;;
13798 esac
13799 ;;
13800
13801 solaris*)
13802 case $cc_basename in
13803 CC* | sunCC*)
13804 # Sun C++ 4.2, 5.x and Centerline C++
13805 archive_cmds_need_lc_CXX=yes
13806 no_undefined_flag_CXX=' -zdefs'
13807 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13808 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13809 $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'
13810
13811 hardcode_libdir_flag_spec_CXX='-R$libdir'
13812 hardcode_shlibpath_var_CXX=no
13813 case $host_os in
13814 solaris2.[0-5] | solaris2.[0-5].*) ;;
13815 *)
13816 # The compiler driver will combine and reorder linker options,
13817 # but understands '-z linker_flag'.
13818 # Supported since Solaris 2.6 (maybe 2.5.1?)
13819 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13820 ;;
13821 esac
13822 link_all_deplibs_CXX=yes
13823
13824 output_verbose_link_cmd='func_echo_all'
13825
13826 # Archives containing C++ object files must be created using
13827 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13828 # necessary to make sure instantiated templates are included
13829 # in the archive.
13830 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13831 ;;
13832 gcx*)
13833 # Green Hills C++ Compiler
13834 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13835
13836 # The C++ compiler must be used to create the archive.
13837 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13838 ;;
13839 *)
13840 # GNU C++ compiler with Solaris linker
13841 if test yes,no = "$GXX,$with_gnu_ld"; then
13842 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13843 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13844 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13845 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13846 $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'
13847
13848 # Commands to make compiler produce verbose output that lists
13849 # what "hidden" libraries, object files and flags are used when
13850 # linking a shared library.
13851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13852 else
13853 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13854 # platform.
13855 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13856 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13857 $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'
13858
13859 # Commands to make compiler produce verbose output that lists
13860 # what "hidden" libraries, object files and flags are used when
13861 # linking a shared library.
13862 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13863 fi
13864
13865 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13866 case $host_os in
13867 solaris2.[0-5] | solaris2.[0-5].*) ;;
13868 *)
13869 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13870 ;;
13871 esac
13872 fi
13873 ;;
13874 esac
13875 ;;
13876
13877 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13878 no_undefined_flag_CXX='$wl-z,text'
13879 archive_cmds_need_lc_CXX=no
13880 hardcode_shlibpath_var_CXX=no
13881 runpath_var='LD_RUN_PATH'
13882
13883 case $cc_basename in
13884 CC*)
13885 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13886 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13887 ;;
13888 *)
13889 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13890 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13891 ;;
13892 esac
13893 ;;
13894
13895 sysv5* | sco3.2v5* | sco5v6*)
13896 # Note: We CANNOT use -z defs as we might desire, because we do not
13897 # link with -lc, and that would cause any symbols used from libc to
13898 # always be unresolved, which means just about no library would
13899 # ever link correctly. If we're not using GNU ld we use -z text
13900 # though, which does catch some bad symbols but isn't as heavy-handed
13901 # as -z defs.
13902 no_undefined_flag_CXX='$wl-z,text'
13903 allow_undefined_flag_CXX='$wl-z,nodefs'
13904 archive_cmds_need_lc_CXX=no
13905 hardcode_shlibpath_var_CXX=no
13906 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13907 hardcode_libdir_separator_CXX=':'
13908 link_all_deplibs_CXX=yes
13909 export_dynamic_flag_spec_CXX='$wl-Bexport'
13910 runpath_var='LD_RUN_PATH'
13911
13912 case $cc_basename in
13913 CC*)
13914 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13915 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13916 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13917 '"$old_archive_cmds_CXX"
13918 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13919 '"$reload_cmds_CXX"
13920 ;;
13921 *)
13922 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13924 ;;
13925 esac
13926 ;;
13927
13928 tandem*)
13929 case $cc_basename in
13930 NCC*)
13931 # NonStop-UX NCC 3.20
13932 # FIXME: insert proper C++ library support
13933 ld_shlibs_CXX=no
13934 ;;
13935 *)
13936 # FIXME: insert proper C++ library support
13937 ld_shlibs_CXX=no
13938 ;;
13939 esac
13940 ;;
13941
13942 vxworks*)
13943 # FIXME: insert proper C++ library support
13944 ld_shlibs_CXX=no
13945 ;;
13946
13947 *)
13948 # FIXME: insert proper C++ library support
13949 ld_shlibs_CXX=no
13950 ;;
13951 esac
13952
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13954 $as_echo "$ld_shlibs_CXX" >&6; }
13955 test no = "$ld_shlibs_CXX" && can_build_shared=no
13956
13957 GCC_CXX=$GXX
13958 LD_CXX=$LD
13959
13960 ## CAVEAT EMPTOR:
13961 ## There is no encapsulation within the following macros, do not change
13962 ## the running order or otherwise move them around unless you know exactly
13963 ## what you are doing...
13964 # Dependencies to place before and after the object being linked:
13965 predep_objects_CXX=
13966 postdep_objects_CXX=
13967 predeps_CXX=
13968 postdeps_CXX=
13969 compiler_lib_search_path_CXX=
13970
13971 cat > conftest.$ac_ext <<_LT_EOF
13972 class Foo
13973 {
13974 public:
13975 Foo (void) { a = 0; }
13976 private:
13977 int a;
13978 };
13979 _LT_EOF
13980
13981
13982 _lt_libdeps_save_CFLAGS=$CFLAGS
13983 case "$CC $CFLAGS " in #(
13984 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13985 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13986 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13987 esac
13988
13989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13990 (eval $ac_compile) 2>&5
13991 ac_status=$?
13992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13993 test $ac_status = 0; }; then
13994 # Parse the compiler output and extract the necessary
13995 # objects, libraries and library flags.
13996
13997 # Sentinel used to keep track of whether or not we are before
13998 # the conftest object file.
13999 pre_test_object_deps_done=no
14000
14001 for p in `eval "$output_verbose_link_cmd"`; do
14002 case $prev$p in
14003
14004 -L* | -R* | -l*)
14005 # Some compilers place space between "-{L,R}" and the path.
14006 # Remove the space.
14007 if test x-L = "$p" ||
14008 test x-R = "$p"; then
14009 prev=$p
14010 continue
14011 fi
14012
14013 # Expand the sysroot to ease extracting the directories later.
14014 if test -z "$prev"; then
14015 case $p in
14016 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14017 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14018 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14019 esac
14020 fi
14021 case $p in
14022 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14023 esac
14024 if test no = "$pre_test_object_deps_done"; then
14025 case $prev in
14026 -L | -R)
14027 # Internal compiler library paths should come after those
14028 # provided the user. The postdeps already come after the
14029 # user supplied libs so there is no need to process them.
14030 if test -z "$compiler_lib_search_path_CXX"; then
14031 compiler_lib_search_path_CXX=$prev$p
14032 else
14033 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14034 fi
14035 ;;
14036 # The "-l" case would never come before the object being
14037 # linked, so don't bother handling this case.
14038 esac
14039 else
14040 if test -z "$postdeps_CXX"; then
14041 postdeps_CXX=$prev$p
14042 else
14043 postdeps_CXX="${postdeps_CXX} $prev$p"
14044 fi
14045 fi
14046 prev=
14047 ;;
14048
14049 *.lto.$objext) ;; # Ignore GCC LTO objects
14050 *.$objext)
14051 # This assumes that the test object file only shows up
14052 # once in the compiler output.
14053 if test "$p" = "conftest.$objext"; then
14054 pre_test_object_deps_done=yes
14055 continue
14056 fi
14057
14058 if test no = "$pre_test_object_deps_done"; then
14059 if test -z "$predep_objects_CXX"; then
14060 predep_objects_CXX=$p
14061 else
14062 predep_objects_CXX="$predep_objects_CXX $p"
14063 fi
14064 else
14065 if test -z "$postdep_objects_CXX"; then
14066 postdep_objects_CXX=$p
14067 else
14068 postdep_objects_CXX="$postdep_objects_CXX $p"
14069 fi
14070 fi
14071 ;;
14072
14073 *) ;; # Ignore the rest.
14074
14075 esac
14076 done
14077
14078 # Clean up.
14079 rm -f a.out a.exe
14080 else
14081 echo "libtool.m4: error: problem compiling CXX test program"
14082 fi
14083
14084 $RM -f confest.$objext
14085 CFLAGS=$_lt_libdeps_save_CFLAGS
14086
14087 # PORTME: override above test on systems where it is broken
14088 case $host_os in
14089 interix[3-9]*)
14090 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14091 # hack all around it, let's just trust "g++" to DTRT.
14092 predep_objects_CXX=
14093 postdep_objects_CXX=
14094 postdeps_CXX=
14095 ;;
14096 esac
14097
14098
14099 case " $postdeps_CXX " in
14100 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14101 esac
14102 compiler_lib_search_dirs_CXX=
14103 if test -n "${compiler_lib_search_path_CXX}"; then
14104 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14105 fi
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137 lt_prog_compiler_wl_CXX=
14138 lt_prog_compiler_pic_CXX=
14139 lt_prog_compiler_static_CXX=
14140
14141
14142 # C++ specific cases for pic, static, wl, etc.
14143 if test yes = "$GXX"; then
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 lt_prog_compiler_static_CXX='-static'
14146
14147 case $host_os in
14148 aix*)
14149 # All AIX code is PIC.
14150 if test ia64 = "$host_cpu"; then
14151 # AIX 5 now supports IA64 processor
14152 lt_prog_compiler_static_CXX='-Bstatic'
14153 fi
14154 lt_prog_compiler_pic_CXX='-fPIC'
14155 ;;
14156
14157 amigaos*)
14158 case $host_cpu in
14159 powerpc)
14160 # see comment about AmigaOS4 .so support
14161 lt_prog_compiler_pic_CXX='-fPIC'
14162 ;;
14163 m68k)
14164 # FIXME: we need at least 68020 code to build shared libraries, but
14165 # adding the '-m68020' flag to GCC prevents building anything better,
14166 # like '-m68040'.
14167 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14168 ;;
14169 esac
14170 ;;
14171
14172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14173 # PIC is the default for these OSes.
14174 ;;
14175 mingw* | cygwin* | os2* | pw32* | cegcc*)
14176 # This hack is so that the source file can tell whether it is being
14177 # built for inclusion in a dll (and should export symbols for example).
14178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14179 # (--disable-auto-import) libraries
14180 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14181 case $host_os in
14182 os2*)
14183 lt_prog_compiler_static_CXX='$wl-static'
14184 ;;
14185 esac
14186 ;;
14187 darwin* | rhapsody*)
14188 # PIC is the default on this platform
14189 # Common symbols not allowed in MH_DYLIB files
14190 lt_prog_compiler_pic_CXX='-fno-common'
14191 ;;
14192 *djgpp*)
14193 # DJGPP does not support shared libraries at all
14194 lt_prog_compiler_pic_CXX=
14195 ;;
14196 haiku*)
14197 # PIC is the default for Haiku.
14198 # The "-static" flag exists, but is broken.
14199 lt_prog_compiler_static_CXX=
14200 ;;
14201 interix[3-9]*)
14202 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14203 # Instead, we relocate shared libraries at runtime.
14204 ;;
14205 sysv4*MP*)
14206 if test -d /usr/nec; then
14207 lt_prog_compiler_pic_CXX=-Kconform_pic
14208 fi
14209 ;;
14210 hpux*)
14211 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14212 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14213 # sets the default TLS model and affects inlining.
14214 case $host_cpu in
14215 hppa*64*)
14216 ;;
14217 *)
14218 lt_prog_compiler_pic_CXX='-fPIC'
14219 ;;
14220 esac
14221 ;;
14222 *qnx* | *nto*)
14223 # QNX uses GNU C++, but need to define -shared option too, otherwise
14224 # it will coredump.
14225 lt_prog_compiler_pic_CXX='-fPIC -shared'
14226 ;;
14227 *)
14228 lt_prog_compiler_pic_CXX='-fPIC'
14229 ;;
14230 esac
14231 else
14232 case $host_os in
14233 aix[4-9]*)
14234 # All AIX code is PIC.
14235 if test ia64 = "$host_cpu"; then
14236 # AIX 5 now supports IA64 processor
14237 lt_prog_compiler_static_CXX='-Bstatic'
14238 else
14239 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14240 fi
14241 ;;
14242 chorus*)
14243 case $cc_basename in
14244 cxch68*)
14245 # Green Hills C++ Compiler
14246 # _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"
14247 ;;
14248 esac
14249 ;;
14250 mingw* | cygwin* | os2* | pw32* | cegcc*)
14251 # This hack is so that the source file can tell whether it is being
14252 # built for inclusion in a dll (and should export symbols for example).
14253 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14254 ;;
14255 dgux*)
14256 case $cc_basename in
14257 ec++*)
14258 lt_prog_compiler_pic_CXX='-KPIC'
14259 ;;
14260 ghcx*)
14261 # Green Hills C++ Compiler
14262 lt_prog_compiler_pic_CXX='-pic'
14263 ;;
14264 *)
14265 ;;
14266 esac
14267 ;;
14268 freebsd* | dragonfly*)
14269 # FreeBSD uses GNU C++
14270 ;;
14271 hpux9* | hpux10* | hpux11*)
14272 case $cc_basename in
14273 CC*)
14274 lt_prog_compiler_wl_CXX='-Wl,'
14275 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14276 if test ia64 != "$host_cpu"; then
14277 lt_prog_compiler_pic_CXX='+Z'
14278 fi
14279 ;;
14280 aCC*)
14281 lt_prog_compiler_wl_CXX='-Wl,'
14282 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14283 case $host_cpu in
14284 hppa*64*|ia64*)
14285 # +Z the default
14286 ;;
14287 *)
14288 lt_prog_compiler_pic_CXX='+Z'
14289 ;;
14290 esac
14291 ;;
14292 *)
14293 ;;
14294 esac
14295 ;;
14296 interix*)
14297 # This is c89, which is MS Visual C++ (no shared libs)
14298 # Anyone wants to do a port?
14299 ;;
14300 irix5* | irix6* | nonstopux*)
14301 case $cc_basename in
14302 CC*)
14303 lt_prog_compiler_wl_CXX='-Wl,'
14304 lt_prog_compiler_static_CXX='-non_shared'
14305 # CC pic flag -KPIC is the default.
14306 ;;
14307 *)
14308 ;;
14309 esac
14310 ;;
14311 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14312 case $cc_basename in
14313 KCC*)
14314 # KAI C++ Compiler
14315 lt_prog_compiler_wl_CXX='--backend -Wl,'
14316 lt_prog_compiler_pic_CXX='-fPIC'
14317 ;;
14318 ecpc* )
14319 # old Intel C++ for x86_64, which still supported -KPIC.
14320 lt_prog_compiler_wl_CXX='-Wl,'
14321 lt_prog_compiler_pic_CXX='-KPIC'
14322 lt_prog_compiler_static_CXX='-static'
14323 ;;
14324 icpc* )
14325 # Intel C++, used to be incompatible with GCC.
14326 # ICC 10 doesn't accept -KPIC any more.
14327 lt_prog_compiler_wl_CXX='-Wl,'
14328 lt_prog_compiler_pic_CXX='-fPIC'
14329 lt_prog_compiler_static_CXX='-static'
14330 ;;
14331 pgCC* | pgcpp*)
14332 # Portland Group C++ compiler
14333 lt_prog_compiler_wl_CXX='-Wl,'
14334 lt_prog_compiler_pic_CXX='-fpic'
14335 lt_prog_compiler_static_CXX='-Bstatic'
14336 ;;
14337 cxx*)
14338 # Compaq C++
14339 # Make sure the PIC flag is empty. It appears that all Alpha
14340 # Linux and Compaq Tru64 Unix objects are PIC.
14341 lt_prog_compiler_pic_CXX=
14342 lt_prog_compiler_static_CXX='-non_shared'
14343 ;;
14344 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14345 # IBM XL 8.0, 9.0 on PPC and BlueGene
14346 lt_prog_compiler_wl_CXX='-Wl,'
14347 lt_prog_compiler_pic_CXX='-qpic'
14348 lt_prog_compiler_static_CXX='-qstaticlink'
14349 ;;
14350 *)
14351 case `$CC -V 2>&1 | sed 5q` in
14352 *Sun\ C*)
14353 # Sun C++ 5.9
14354 lt_prog_compiler_pic_CXX='-KPIC'
14355 lt_prog_compiler_static_CXX='-Bstatic'
14356 lt_prog_compiler_wl_CXX='-Qoption ld '
14357 ;;
14358 esac
14359 ;;
14360 esac
14361 ;;
14362 lynxos*)
14363 ;;
14364 m88k*)
14365 ;;
14366 mvs*)
14367 case $cc_basename in
14368 cxx*)
14369 lt_prog_compiler_pic_CXX='-W c,exportall'
14370 ;;
14371 *)
14372 ;;
14373 esac
14374 ;;
14375 netbsd*)
14376 ;;
14377 *qnx* | *nto*)
14378 # QNX uses GNU C++, but need to define -shared option too, otherwise
14379 # it will coredump.
14380 lt_prog_compiler_pic_CXX='-fPIC -shared'
14381 ;;
14382 osf3* | osf4* | osf5*)
14383 case $cc_basename in
14384 KCC*)
14385 lt_prog_compiler_wl_CXX='--backend -Wl,'
14386 ;;
14387 RCC*)
14388 # Rational C++ 2.4.1
14389 lt_prog_compiler_pic_CXX='-pic'
14390 ;;
14391 cxx*)
14392 # Digital/Compaq C++
14393 lt_prog_compiler_wl_CXX='-Wl,'
14394 # Make sure the PIC flag is empty. It appears that all Alpha
14395 # Linux and Compaq Tru64 Unix objects are PIC.
14396 lt_prog_compiler_pic_CXX=
14397 lt_prog_compiler_static_CXX='-non_shared'
14398 ;;
14399 *)
14400 ;;
14401 esac
14402 ;;
14403 psos*)
14404 ;;
14405 solaris*)
14406 case $cc_basename in
14407 CC* | sunCC*)
14408 # Sun C++ 4.2, 5.x and Centerline C++
14409 lt_prog_compiler_pic_CXX='-KPIC'
14410 lt_prog_compiler_static_CXX='-Bstatic'
14411 lt_prog_compiler_wl_CXX='-Qoption ld '
14412 ;;
14413 gcx*)
14414 # Green Hills C++ Compiler
14415 lt_prog_compiler_pic_CXX='-PIC'
14416 ;;
14417 *)
14418 ;;
14419 esac
14420 ;;
14421 sunos4*)
14422 case $cc_basename in
14423 CC*)
14424 # Sun C++ 4.x
14425 lt_prog_compiler_pic_CXX='-pic'
14426 lt_prog_compiler_static_CXX='-Bstatic'
14427 ;;
14428 lcc*)
14429 # Lucid
14430 lt_prog_compiler_pic_CXX='-pic'
14431 ;;
14432 *)
14433 ;;
14434 esac
14435 ;;
14436 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14437 case $cc_basename in
14438 CC*)
14439 lt_prog_compiler_wl_CXX='-Wl,'
14440 lt_prog_compiler_pic_CXX='-KPIC'
14441 lt_prog_compiler_static_CXX='-Bstatic'
14442 ;;
14443 esac
14444 ;;
14445 tandem*)
14446 case $cc_basename in
14447 NCC*)
14448 # NonStop-UX NCC 3.20
14449 lt_prog_compiler_pic_CXX='-KPIC'
14450 ;;
14451 *)
14452 ;;
14453 esac
14454 ;;
14455 vxworks*)
14456 ;;
14457 *)
14458 lt_prog_compiler_can_build_shared_CXX=no
14459 ;;
14460 esac
14461 fi
14462
14463 case $host_os in
14464 # For platforms that do not support PIC, -DPIC is meaningless:
14465 *djgpp*)
14466 lt_prog_compiler_pic_CXX=
14467 ;;
14468 *)
14469 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14470 ;;
14471 esac
14472
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14474 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14475 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14481 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14482 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14483
14484 #
14485 # Check to make sure the PIC flag actually works.
14486 #
14487 if test -n "$lt_prog_compiler_pic_CXX"; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14489 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14490 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14491 $as_echo_n "(cached) " >&6
14492 else
14493 lt_cv_prog_compiler_pic_works_CXX=no
14494 ac_outfile=conftest.$ac_objext
14495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14496 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14497 # Insert the option either (1) after the last *FLAGS variable, or
14498 # (2) before a word containing "conftest.", or (3) at the end.
14499 # Note that $ac_compile itself does not contain backslashes and begins
14500 # with a dollar sign (not a hyphen), so the echo should work correctly.
14501 # The option is referenced via a variable to avoid confusing sed.
14502 lt_compile=`echo "$ac_compile" | $SED \
14503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505 -e 's:$: $lt_compiler_flag:'`
14506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14507 (eval "$lt_compile" 2>conftest.err)
14508 ac_status=$?
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 if (exit $ac_status) && test -s "$ac_outfile"; then
14512 # The compiler can only warn and ignore the option if not recognized
14513 # So say no if there are warnings other than the usual output.
14514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14517 lt_cv_prog_compiler_pic_works_CXX=yes
14518 fi
14519 fi
14520 $RM conftest*
14521
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14524 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14525
14526 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14527 case $lt_prog_compiler_pic_CXX in
14528 "" | " "*) ;;
14529 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14530 esac
14531 else
14532 lt_prog_compiler_pic_CXX=
14533 lt_prog_compiler_can_build_shared_CXX=no
14534 fi
14535
14536 fi
14537
14538
14539
14540
14541
14542 #
14543 # Check to make sure the static flag actually works.
14544 #
14545 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14547 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14548 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 lt_cv_prog_compiler_static_works_CXX=no
14552 save_LDFLAGS=$LDFLAGS
14553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14556 # The linker can only warn and ignore the option if not recognized
14557 # So say no if there are warnings
14558 if test -s conftest.err; then
14559 # Append any errors to the config.log.
14560 cat conftest.err 1>&5
14561 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14563 if diff conftest.exp conftest.er2 >/dev/null; then
14564 lt_cv_prog_compiler_static_works_CXX=yes
14565 fi
14566 else
14567 lt_cv_prog_compiler_static_works_CXX=yes
14568 fi
14569 fi
14570 $RM -r conftest*
14571 LDFLAGS=$save_LDFLAGS
14572
14573 fi
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14575 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14576
14577 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14578 :
14579 else
14580 lt_prog_compiler_static_CXX=
14581 fi
14582
14583
14584
14585
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14588 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 lt_cv_prog_compiler_c_o_CXX=no
14592 $RM -r conftest 2>/dev/null
14593 mkdir conftest
14594 cd conftest
14595 mkdir out
14596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14597
14598 lt_compiler_flag="-o out/conftest2.$ac_objext"
14599 # Insert the option either (1) after the last *FLAGS variable, or
14600 # (2) before a word containing "conftest.", or (3) at the end.
14601 # Note that $ac_compile itself does not contain backslashes and begins
14602 # with a dollar sign (not a hyphen), so the echo should work correctly.
14603 lt_compile=`echo "$ac_compile" | $SED \
14604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14606 -e 's:$: $lt_compiler_flag:'`
14607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14608 (eval "$lt_compile" 2>out/conftest.err)
14609 ac_status=$?
14610 cat out/conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14613 then
14614 # The compiler can only warn and ignore the option if not recognized
14615 # So say no if there are warnings
14616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14619 lt_cv_prog_compiler_c_o_CXX=yes
14620 fi
14621 fi
14622 chmod u+w . 2>&5
14623 $RM conftest*
14624 # SGI C++ compiler will create directory out/ii_files/ for
14625 # template instantiation
14626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14627 $RM out/* && rmdir out
14628 cd ..
14629 $RM -r conftest
14630 $RM conftest*
14631
14632 fi
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14634 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14635
14636
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14640 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 lt_cv_prog_compiler_c_o_CXX=no
14644 $RM -r conftest 2>/dev/null
14645 mkdir conftest
14646 cd conftest
14647 mkdir out
14648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14649
14650 lt_compiler_flag="-o out/conftest2.$ac_objext"
14651 # Insert the option either (1) after the last *FLAGS variable, or
14652 # (2) before a word containing "conftest.", or (3) at the end.
14653 # Note that $ac_compile itself does not contain backslashes and begins
14654 # with a dollar sign (not a hyphen), so the echo should work correctly.
14655 lt_compile=`echo "$ac_compile" | $SED \
14656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14658 -e 's:$: $lt_compiler_flag:'`
14659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14660 (eval "$lt_compile" 2>out/conftest.err)
14661 ac_status=$?
14662 cat out/conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14665 then
14666 # The compiler can only warn and ignore the option if not recognized
14667 # So say no if there are warnings
14668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14671 lt_cv_prog_compiler_c_o_CXX=yes
14672 fi
14673 fi
14674 chmod u+w . 2>&5
14675 $RM conftest*
14676 # SGI C++ compiler will create directory out/ii_files/ for
14677 # template instantiation
14678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14679 $RM out/* && rmdir out
14680 cd ..
14681 $RM -r conftest
14682 $RM conftest*
14683
14684 fi
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14686 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14687
14688
14689
14690
14691 hard_links=nottested
14692 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14693 # do not overwrite the value of need_locks provided by the user
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14695 $as_echo_n "checking if we can lock with hard links... " >&6; }
14696 hard_links=yes
14697 $RM conftest*
14698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14699 touch conftest.a
14700 ln conftest.a conftest.b 2>&5 || hard_links=no
14701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14703 $as_echo "$hard_links" >&6; }
14704 if test no = "$hard_links"; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14706 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14707 need_locks=warn
14708 fi
14709 else
14710 need_locks=no
14711 fi
14712
14713
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14717
14718 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14719 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14720 case $host_os in
14721 aix[4-9]*)
14722 # If we're using GNU nm, then we don't want the "-C" option.
14723 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14724 # Without the "-l" option, or with the "-B" option, AIX nm treats
14725 # weak defined symbols like other global defined symbols, whereas
14726 # GNU nm marks them as "W".
14727 # While the 'weak' keyword is ignored in the Export File, we need
14728 # it in the Import File for the 'aix-soname' feature, so we have
14729 # to replace the "-B" option with "-P" for AIX nm.
14730 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14731 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'
14732 else
14733 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'
14734 fi
14735 ;;
14736 pw32*)
14737 export_symbols_cmds_CXX=$ltdll_cmds
14738 ;;
14739 cygwin* | mingw* | cegcc*)
14740 case $cc_basename in
14741 cl*)
14742 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14743 ;;
14744 *)
14745 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'
14746 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14747 ;;
14748 esac
14749 ;;
14750 *)
14751 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14752 ;;
14753 esac
14754
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14756 $as_echo "$ld_shlibs_CXX" >&6; }
14757 test no = "$ld_shlibs_CXX" && can_build_shared=no
14758
14759 with_gnu_ld_CXX=$with_gnu_ld
14760
14761
14762
14763
14764
14765
14766 #
14767 # Do we need to explicitly link libc?
14768 #
14769 case "x$archive_cmds_need_lc_CXX" in
14770 x|xyes)
14771 # Assume -lc should be added
14772 archive_cmds_need_lc_CXX=yes
14773
14774 if test yes,yes = "$GCC,$enable_shared"; then
14775 case $archive_cmds_CXX in
14776 *'~'*)
14777 # FIXME: we may have to deal with multi-command sequences.
14778 ;;
14779 '$CC '*)
14780 # Test whether the compiler implicitly links with -lc since on some
14781 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14782 # to ld, don't add -lc before -lgcc.
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14784 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14785 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 $RM conftest*
14789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14790
14791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14792 (eval $ac_compile) 2>&5
14793 ac_status=$?
14794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14795 test $ac_status = 0; } 2>conftest.err; then
14796 soname=conftest
14797 lib=conftest
14798 libobjs=conftest.$ac_objext
14799 deplibs=
14800 wl=$lt_prog_compiler_wl_CXX
14801 pic_flag=$lt_prog_compiler_pic_CXX
14802 compiler_flags=-v
14803 linker_flags=-v
14804 verstring=
14805 output_objdir=.
14806 libname=conftest
14807 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14808 allow_undefined_flag_CXX=
14809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14810 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14811 ac_status=$?
14812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14813 test $ac_status = 0; }
14814 then
14815 lt_cv_archive_cmds_need_lc_CXX=no
14816 else
14817 lt_cv_archive_cmds_need_lc_CXX=yes
14818 fi
14819 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14820 else
14821 cat conftest.err 1>&5
14822 fi
14823 $RM conftest*
14824
14825 fi
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14827 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14828 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14829 ;;
14830 esac
14831 fi
14832 ;;
14833 esac
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14897 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14898
14899 library_names_spec=
14900 libname_spec='lib$name'
14901 soname_spec=
14902 shrext_cmds=.so
14903 postinstall_cmds=
14904 postuninstall_cmds=
14905 finish_cmds=
14906 finish_eval=
14907 shlibpath_var=
14908 shlibpath_overrides_runpath=unknown
14909 version_type=none
14910 dynamic_linker="$host_os ld.so"
14911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14912 need_lib_prefix=unknown
14913 hardcode_into_libs=no
14914
14915 # when you set need_version to no, make sure it does not cause -set_version
14916 # flags to be left without arguments
14917 need_version=unknown
14918
14919
14920
14921 case $host_os in
14922 aix3*)
14923 version_type=linux # correct to gnu/linux during the next big refactor
14924 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14925 shlibpath_var=LIBPATH
14926
14927 # AIX 3 has no versioning support, so we append a major version to the name.
14928 soname_spec='$libname$release$shared_ext$major'
14929 ;;
14930
14931 aix[4-9]*)
14932 version_type=linux # correct to gnu/linux during the next big refactor
14933 need_lib_prefix=no
14934 need_version=no
14935 hardcode_into_libs=yes
14936 if test ia64 = "$host_cpu"; then
14937 # AIX 5 supports IA64
14938 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 else
14941 # With GCC up to 2.95.x, collect2 would create an import file
14942 # for dependence libraries. The import file would start with
14943 # the line '#! .'. This would cause the generated library to
14944 # depend on '.', always an invalid library. This was fixed in
14945 # development snapshots of GCC prior to 3.0.
14946 case $host_os in
14947 aix4 | aix4.[01] | aix4.[01].*)
14948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14949 echo ' yes '
14950 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14951 :
14952 else
14953 can_build_shared=no
14954 fi
14955 ;;
14956 esac
14957 # Using Import Files as archive members, it is possible to support
14958 # filename-based versioning of shared library archives on AIX. While
14959 # this would work for both with and without runtime linking, it will
14960 # prevent static linking of such archives. So we do filename-based
14961 # shared library versioning with .so extension only, which is used
14962 # when both runtime linking and shared linking is enabled.
14963 # Unfortunately, runtime linking may impact performance, so we do
14964 # not want this to be the default eventually. Also, we use the
14965 # versioned .so libs for executables only if there is the -brtl
14966 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14967 # To allow for filename-based versioning support, we need to create
14968 # libNAME.so.V as an archive file, containing:
14969 # *) an Import File, referring to the versioned filename of the
14970 # archive as well as the shared archive member, telling the
14971 # bitwidth (32 or 64) of that shared object, and providing the
14972 # list of exported symbols of that shared object, eventually
14973 # decorated with the 'weak' keyword
14974 # *) the shared object with the F_LOADONLY flag set, to really avoid
14975 # it being seen by the linker.
14976 # At run time we better use the real file rather than another symlink,
14977 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14978
14979 case $with_aix_soname,$aix_use_runtimelinking in
14980 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14981 # soname into executable. Probably we can add versioning support to
14982 # collect2, so additional links can be useful in future.
14983 aix,yes) # traditional libtool
14984 dynamic_linker='AIX unversionable lib.so'
14985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14986 # instead of lib<name>.a to let people know that these are not
14987 # typical AIX shared libraries.
14988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14989 ;;
14990 aix,no) # traditional AIX only
14991 dynamic_linker='AIX lib.a(lib.so.V)'
14992 # We preserve .a as extension for shared libraries through AIX4.2
14993 # and later when we are not doing run time linking.
14994 library_names_spec='$libname$release.a $libname.a'
14995 soname_spec='$libname$release$shared_ext$major'
14996 ;;
14997 svr4,*) # full svr4 only
14998 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14999 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15000 # We do not specify a path in Import Files, so LIBPATH fires.
15001 shlibpath_overrides_runpath=yes
15002 ;;
15003 *,yes) # both, prefer svr4
15004 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15005 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15006 # unpreferred sharedlib libNAME.a needs extra handling
15007 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"'
15008 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"'
15009 # We do not specify a path in Import Files, so LIBPATH fires.
15010 shlibpath_overrides_runpath=yes
15011 ;;
15012 *,no) # both, prefer aix
15013 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15014 library_names_spec='$libname$release.a $libname.a'
15015 soname_spec='$libname$release$shared_ext$major'
15016 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15017 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)'
15018 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"'
15019 ;;
15020 esac
15021 shlibpath_var=LIBPATH
15022 fi
15023 ;;
15024
15025 amigaos*)
15026 case $host_cpu in
15027 powerpc)
15028 # Since July 2007 AmigaOS4 officially supports .so libraries.
15029 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15031 ;;
15032 m68k)
15033 library_names_spec='$libname.ixlibrary $libname.a'
15034 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15035 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'
15036 ;;
15037 esac
15038 ;;
15039
15040 beos*)
15041 library_names_spec='$libname$shared_ext'
15042 dynamic_linker="$host_os ld.so"
15043 shlibpath_var=LIBRARY_PATH
15044 ;;
15045
15046 bsdi[45]*)
15047 version_type=linux # correct to gnu/linux during the next big refactor
15048 need_version=no
15049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15050 soname_spec='$libname$release$shared_ext$major'
15051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15055 # the default ld.so.conf also contains /usr/contrib/lib and
15056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15057 # libtool to hard-code these into programs
15058 ;;
15059
15060 cygwin* | mingw* | pw32* | cegcc*)
15061 version_type=windows
15062 shrext_cmds=.dll
15063 need_version=no
15064 need_lib_prefix=no
15065
15066 case $GCC,$cc_basename in
15067 yes,*)
15068 # gcc
15069 library_names_spec='$libname.dll.a'
15070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15071 postinstall_cmds='base_file=`basename \$file`~
15072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15073 dldir=$destdir/`dirname \$dlpath`~
15074 test -d \$dldir || mkdir -p \$dldir~
15075 $install_prog $dir/$dlname \$dldir/$dlname~
15076 chmod a+x \$dldir/$dlname~
15077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15079 fi'
15080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15081 dlpath=$dir/\$dldll~
15082 $RM \$dlpath'
15083 shlibpath_overrides_runpath=yes
15084
15085 case $host_os in
15086 cygwin*)
15087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15088 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15089
15090 ;;
15091 mingw* | cegcc*)
15092 # MinGW DLLs use traditional 'lib' prefix
15093 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15094 ;;
15095 pw32*)
15096 # pw32 DLLs use 'pw' prefix rather than 'lib'
15097 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15098 ;;
15099 esac
15100 dynamic_linker='Win32 ld.exe'
15101 ;;
15102
15103 *,cl*)
15104 # Native MSVC
15105 libname_spec='$name'
15106 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15107 library_names_spec='$libname.dll.lib'
15108
15109 case $build_os in
15110 mingw*)
15111 sys_lib_search_path_spec=
15112 lt_save_ifs=$IFS
15113 IFS=';'
15114 for lt_path in $LIB
15115 do
15116 IFS=$lt_save_ifs
15117 # Let DOS variable expansion print the short 8.3 style file name.
15118 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15119 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15120 done
15121 IFS=$lt_save_ifs
15122 # Convert to MSYS style.
15123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15124 ;;
15125 cygwin*)
15126 # Convert to unix form, then to dos form, then back to unix form
15127 # but this time dos style (no spaces!) so that the unix form looks
15128 # like /cygdrive/c/PROGRA~1:/cygdr...
15129 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15130 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15131 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15132 ;;
15133 *)
15134 sys_lib_search_path_spec=$LIB
15135 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15136 # It is most probably a Windows format PATH.
15137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15138 else
15139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15140 fi
15141 # FIXME: find the short name or the path components, as spaces are
15142 # common. (e.g. "Program Files" -> "PROGRA~1")
15143 ;;
15144 esac
15145
15146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15147 postinstall_cmds='base_file=`basename \$file`~
15148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15149 dldir=$destdir/`dirname \$dlpath`~
15150 test -d \$dldir || mkdir -p \$dldir~
15151 $install_prog $dir/$dlname \$dldir/$dlname'
15152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15153 dlpath=$dir/\$dldll~
15154 $RM \$dlpath'
15155 shlibpath_overrides_runpath=yes
15156 dynamic_linker='Win32 link.exe'
15157 ;;
15158
15159 *)
15160 # Assume MSVC wrapper
15161 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15162 dynamic_linker='Win32 ld.exe'
15163 ;;
15164 esac
15165 # FIXME: first we should search . and the directory the executable is in
15166 shlibpath_var=PATH
15167 ;;
15168
15169 darwin* | rhapsody*)
15170 dynamic_linker="$host_os dyld"
15171 version_type=darwin
15172 need_lib_prefix=no
15173 need_version=no
15174 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15175 soname_spec='$libname$release$major$shared_ext'
15176 shlibpath_overrides_runpath=yes
15177 shlibpath_var=DYLD_LIBRARY_PATH
15178 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15179
15180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15181 ;;
15182
15183 dgux*)
15184 version_type=linux # correct to gnu/linux during the next big refactor
15185 need_lib_prefix=no
15186 need_version=no
15187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15188 soname_spec='$libname$release$shared_ext$major'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 ;;
15191
15192 freebsd* | dragonfly*)
15193 # DragonFly does not have aout. When/if they implement a new
15194 # versioning mechanism, adjust this.
15195 if test -x /usr/bin/objformat; then
15196 objformat=`/usr/bin/objformat`
15197 else
15198 case $host_os in
15199 freebsd[23].*) objformat=aout ;;
15200 *) objformat=elf ;;
15201 esac
15202 fi
15203 version_type=freebsd-$objformat
15204 case $version_type in
15205 freebsd-elf*)
15206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15207 soname_spec='$libname$release$shared_ext$major'
15208 need_version=no
15209 need_lib_prefix=no
15210 ;;
15211 freebsd-*)
15212 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15213 need_version=yes
15214 ;;
15215 esac
15216 shlibpath_var=LD_LIBRARY_PATH
15217 case $host_os in
15218 freebsd2.*)
15219 shlibpath_overrides_runpath=yes
15220 ;;
15221 freebsd3.[01]* | freebsdelf3.[01]*)
15222 shlibpath_overrides_runpath=yes
15223 hardcode_into_libs=yes
15224 ;;
15225 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15226 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15227 shlibpath_overrides_runpath=no
15228 hardcode_into_libs=yes
15229 ;;
15230 *) # from 4.6 on, and DragonFly
15231 shlibpath_overrides_runpath=yes
15232 hardcode_into_libs=yes
15233 ;;
15234 esac
15235 ;;
15236
15237 haiku*)
15238 version_type=linux # correct to gnu/linux during the next big refactor
15239 need_lib_prefix=no
15240 need_version=no
15241 dynamic_linker="$host_os runtime_loader"
15242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15243 soname_spec='$libname$release$shared_ext$major'
15244 shlibpath_var=LIBRARY_PATH
15245 shlibpath_overrides_runpath=no
15246 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15247 hardcode_into_libs=yes
15248 ;;
15249
15250 hpux9* | hpux10* | hpux11*)
15251 # Give a soname corresponding to the major version so that dld.sl refuses to
15252 # link against other versions.
15253 version_type=sunos
15254 need_lib_prefix=no
15255 need_version=no
15256 case $host_cpu in
15257 ia64*)
15258 shrext_cmds='.so'
15259 hardcode_into_libs=yes
15260 dynamic_linker="$host_os dld.so"
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15264 soname_spec='$libname$release$shared_ext$major'
15265 if test 32 = "$HPUX_IA64_MODE"; then
15266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15267 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15268 else
15269 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15270 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15271 fi
15272 ;;
15273 hppa*64*)
15274 shrext_cmds='.sl'
15275 hardcode_into_libs=yes
15276 dynamic_linker="$host_os dld.sl"
15277 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15280 soname_spec='$libname$release$shared_ext$major'
15281 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15283 ;;
15284 *)
15285 shrext_cmds='.sl'
15286 dynamic_linker="$host_os dld.sl"
15287 shlibpath_var=SHLIB_PATH
15288 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15290 soname_spec='$libname$release$shared_ext$major'
15291 ;;
15292 esac
15293 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15294 postinstall_cmds='chmod 555 $lib'
15295 # or fails outright, so override atomically:
15296 install_override_mode=555
15297 ;;
15298
15299 interix[3-9]*)
15300 version_type=linux # correct to gnu/linux during the next big refactor
15301 need_lib_prefix=no
15302 need_version=no
15303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15304 soname_spec='$libname$release$shared_ext$major'
15305 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=no
15308 hardcode_into_libs=yes
15309 ;;
15310
15311 irix5* | irix6* | nonstopux*)
15312 case $host_os in
15313 nonstopux*) version_type=nonstopux ;;
15314 *)
15315 if test yes = "$lt_cv_prog_gnu_ld"; then
15316 version_type=linux # correct to gnu/linux during the next big refactor
15317 else
15318 version_type=irix
15319 fi ;;
15320 esac
15321 need_lib_prefix=no
15322 need_version=no
15323 soname_spec='$libname$release$shared_ext$major'
15324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15325 case $host_os in
15326 irix5* | nonstopux*)
15327 libsuff= shlibsuff=
15328 ;;
15329 *)
15330 case $LD in # libtool.m4 will add one of these switches to LD
15331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15332 libsuff= shlibsuff= libmagic=32-bit;;
15333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15334 libsuff=32 shlibsuff=N32 libmagic=N32;;
15335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15337 *) libsuff= shlibsuff= libmagic=never-match;;
15338 esac
15339 ;;
15340 esac
15341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15342 shlibpath_overrides_runpath=no
15343 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15344 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15345 hardcode_into_libs=yes
15346 ;;
15347
15348 # No shared lib support for Linux oldld, aout, or coff.
15349 linux*oldld* | linux*aout* | linux*coff*)
15350 dynamic_linker=no
15351 ;;
15352
15353 linux*android*)
15354 version_type=none # Android doesn't support versioned libraries.
15355 need_lib_prefix=no
15356 need_version=no
15357 library_names_spec='$libname$release$shared_ext'
15358 soname_spec='$libname$release$shared_ext'
15359 finish_cmds=
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=yes
15362
15363 # This implies no fast_install, which is unacceptable.
15364 # Some rework will be needed to allow for fast_install
15365 # before this can be enabled.
15366 hardcode_into_libs=yes
15367
15368 dynamic_linker='Android linker'
15369 # Don't embed -rpath directories since the linker doesn't support them.
15370 hardcode_libdir_flag_spec_CXX='-L$libdir'
15371 ;;
15372
15373 # This must be glibc/ELF.
15374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15375 version_type=linux # correct to gnu/linux during the next big refactor
15376 need_lib_prefix=no
15377 need_version=no
15378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15379 soname_spec='$libname$release$shared_ext$major'
15380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 shlibpath_overrides_runpath=no
15383
15384 # Some binutils ld are patched to set DT_RUNPATH
15385 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15386 $as_echo_n "(cached) " >&6
15387 else
15388 lt_cv_shlibpath_overrides_runpath=no
15389 save_LDFLAGS=$LDFLAGS
15390 save_libdir=$libdir
15391 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15392 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15395
15396 int
15397 main ()
15398 {
15399
15400 ;
15401 return 0;
15402 }
15403 _ACEOF
15404 if ac_fn_cxx_try_link "$LINENO"; then :
15405 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15406 lt_cv_shlibpath_overrides_runpath=yes
15407 fi
15408 fi
15409 rm -f core conftest.err conftest.$ac_objext \
15410 conftest$ac_exeext conftest.$ac_ext
15411 LDFLAGS=$save_LDFLAGS
15412 libdir=$save_libdir
15413
15414 fi
15415
15416 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15417
15418 # This implies no fast_install, which is unacceptable.
15419 # Some rework will be needed to allow for fast_install
15420 # before this can be enabled.
15421 hardcode_into_libs=yes
15422
15423 # Ideally, we could use ldconfig to report *all* directores which are
15424 # searched for libraries, however this is still not possible. Aside from not
15425 # being certain /sbin/ldconfig is available, command
15426 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15427 # even though it is searched at run-time. Try to do the best guess by
15428 # appending ld.so.conf contents (and includes) to the search path.
15429 if test -f /etc/ld.so.conf; then
15430 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' ' '`
15431 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15432 fi
15433
15434 # We used to test for /lib/ld.so.1 and disable shared libraries on
15435 # powerpc, because MkLinux only supported shared libraries with the
15436 # GNU dynamic linker. Since this was broken with cross compilers,
15437 # most powerpc-linux boxes support dynamic linking these days and
15438 # people can always --disable-shared, the test was removed, and we
15439 # assume the GNU/Linux dynamic linker is in use.
15440 dynamic_linker='GNU/Linux ld.so'
15441 ;;
15442
15443 netbsd*)
15444 version_type=sunos
15445 need_lib_prefix=no
15446 need_version=no
15447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15448 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15450 dynamic_linker='NetBSD (a.out) ld.so'
15451 else
15452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15453 soname_spec='$libname$release$shared_ext$major'
15454 dynamic_linker='NetBSD ld.elf_so'
15455 fi
15456 shlibpath_var=LD_LIBRARY_PATH
15457 shlibpath_overrides_runpath=yes
15458 hardcode_into_libs=yes
15459 ;;
15460
15461 newsos6)
15462 version_type=linux # correct to gnu/linux during the next big refactor
15463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes
15466 ;;
15467
15468 *nto* | *qnx*)
15469 version_type=qnx
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15473 soname_spec='$libname$release$shared_ext$major'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=no
15476 hardcode_into_libs=yes
15477 dynamic_linker='ldqnx.so'
15478 ;;
15479
15480 openbsd* | bitrig*)
15481 version_type=sunos
15482 sys_lib_dlsearch_path_spec=/usr/lib
15483 need_lib_prefix=no
15484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15485 need_version=no
15486 else
15487 need_version=yes
15488 fi
15489 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15491 shlibpath_var=LD_LIBRARY_PATH
15492 shlibpath_overrides_runpath=yes
15493 ;;
15494
15495 os2*)
15496 libname_spec='$name'
15497 version_type=windows
15498 shrext_cmds=.dll
15499 need_version=no
15500 need_lib_prefix=no
15501 # OS/2 can only load a DLL with a base name of 8 characters or less.
15502 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15503 v=$($ECHO $release$versuffix | tr -d .-);
15504 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15505 $ECHO $n$v`$shared_ext'
15506 library_names_spec='${libname}_dll.$libext'
15507 dynamic_linker='OS/2 ld.exe'
15508 shlibpath_var=BEGINLIBPATH
15509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15511 postinstall_cmds='base_file=`basename \$file`~
15512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15513 dldir=$destdir/`dirname \$dlpath`~
15514 test -d \$dldir || mkdir -p \$dldir~
15515 $install_prog $dir/$dlname \$dldir/$dlname~
15516 chmod a+x \$dldir/$dlname~
15517 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15518 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15519 fi'
15520 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15521 dlpath=$dir/\$dldll~
15522 $RM \$dlpath'
15523 ;;
15524
15525 osf3* | osf4* | osf5*)
15526 version_type=osf
15527 need_lib_prefix=no
15528 need_version=no
15529 soname_spec='$libname$release$shared_ext$major'
15530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15534 ;;
15535
15536 rdos*)
15537 dynamic_linker=no
15538 ;;
15539
15540 solaris*)
15541 version_type=linux # correct to gnu/linux during the next big refactor
15542 need_lib_prefix=no
15543 need_version=no
15544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15545 soname_spec='$libname$release$shared_ext$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=yes
15548 hardcode_into_libs=yes
15549 # ldd complains unless libraries are executable
15550 postinstall_cmds='chmod +x $lib'
15551 ;;
15552
15553 sunos4*)
15554 version_type=sunos
15555 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 if test yes = "$with_gnu_ld"; then
15560 need_lib_prefix=no
15561 fi
15562 need_version=yes
15563 ;;
15564
15565 sysv4 | sysv4.3*)
15566 version_type=linux # correct to gnu/linux during the next big refactor
15567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15568 soname_spec='$libname$release$shared_ext$major'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 case $host_vendor in
15571 sni)
15572 shlibpath_overrides_runpath=no
15573 need_lib_prefix=no
15574 runpath_var=LD_RUN_PATH
15575 ;;
15576 siemens)
15577 need_lib_prefix=no
15578 ;;
15579 motorola)
15580 need_lib_prefix=no
15581 need_version=no
15582 shlibpath_overrides_runpath=no
15583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15584 ;;
15585 esac
15586 ;;
15587
15588 sysv4*MP*)
15589 if test -d /usr/nec; then
15590 version_type=linux # correct to gnu/linux during the next big refactor
15591 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15592 soname_spec='$libname$shared_ext.$major'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 fi
15595 ;;
15596
15597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15598 version_type=sco
15599 need_lib_prefix=no
15600 need_version=no
15601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15602 soname_spec='$libname$release$shared_ext$major'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15605 hardcode_into_libs=yes
15606 if test yes = "$with_gnu_ld"; then
15607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15608 else
15609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15610 case $host_os in
15611 sco3.2v5*)
15612 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15613 ;;
15614 esac
15615 fi
15616 sys_lib_dlsearch_path_spec='/usr/lib'
15617 ;;
15618
15619 tpf*)
15620 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15621 version_type=linux # correct to gnu/linux during the next big refactor
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=no
15627 hardcode_into_libs=yes
15628 ;;
15629
15630 uts4*)
15631 version_type=linux # correct to gnu/linux during the next big refactor
15632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15633 soname_spec='$libname$release$shared_ext$major'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 ;;
15636
15637 *)
15638 dynamic_linker=no
15639 ;;
15640 esac
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15642 $as_echo "$dynamic_linker" >&6; }
15643 test no = "$dynamic_linker" && can_build_shared=no
15644
15645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15646 if test yes = "$GCC"; then
15647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15648 fi
15649
15650 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15651 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15652 fi
15653
15654 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15655 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15656 fi
15657
15658 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15659 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15660
15661 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15662 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15663
15664 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15665 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15707 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15708 hardcode_action_CXX=
15709 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15710 test -n "$runpath_var_CXX" ||
15711 test yes = "$hardcode_automatic_CXX"; then
15712
15713 # We can hardcode non-existent directories.
15714 if test no != "$hardcode_direct_CXX" &&
15715 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15716 # have to relink, otherwise we might link with an installed library
15717 # when we should be linking with a yet-to-be-installed one
15718 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15719 test no != "$hardcode_minus_L_CXX"; then
15720 # Linking always hardcodes the temporary library directory.
15721 hardcode_action_CXX=relink
15722 else
15723 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15724 hardcode_action_CXX=immediate
15725 fi
15726 else
15727 # We cannot hardcode anything, or else we can only hardcode existing
15728 # directories.
15729 hardcode_action_CXX=unsupported
15730 fi
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15732 $as_echo "$hardcode_action_CXX" >&6; }
15733
15734 if test relink = "$hardcode_action_CXX" ||
15735 test yes = "$inherit_rpath_CXX"; then
15736 # Fast installation is not supported
15737 enable_fast_install=no
15738 elif test yes = "$shlibpath_overrides_runpath" ||
15739 test no = "$enable_shared"; then
15740 # Fast installation is not necessary
15741 enable_fast_install=needless
15742 fi
15743
15744
15745
15746
15747
15748
15749
15750 fi # test -n "$compiler"
15751
15752 CC=$lt_save_CC
15753 CFLAGS=$lt_save_CFLAGS
15754 LDCXX=$LD
15755 LD=$lt_save_LD
15756 GCC=$lt_save_GCC
15757 with_gnu_ld=$lt_save_with_gnu_ld
15758 lt_cv_path_LDCXX=$lt_cv_path_LD
15759 lt_cv_path_LD=$lt_save_path_LD
15760 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15761 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15762 fi # test yes != "$_lt_caught_CXX_error"
15763
15764 ac_ext=c
15765 ac_cpp='$CPP $CPPFLAGS'
15766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784 ac_config_commands="$ac_config_commands libtool"
15785
15786
15787
15788
15789 # Only expand once:
15790
15791
15792
15793
15794
15795 # Check whether --with-llvm was given.
15796 if test "${with_llvm+set}" = set; then :
15797 withval=$with_llvm; with_llvm="$withval"
15798 else
15799 with_llvm=yes
15800 fi
15801
15802
15803 if test "x$with_llvm" = "xno"; then
15804 as_fn_error $? "--with-llvm=no was given but this package requires LLVM" "$LINENO" 5
15805 elif test "x$with_llvm" = "xyes"; then
15806 with_llvm_path="$PATH"
15807 else
15808 with_llvm_path="$with_llvm/bin$PATH_SEPARATOR$with_llvm"
15809 fi
15810
15811 # Extract the first word of "llvm-config", so it can be a program name with args.
15812 set dummy llvm-config; ac_word=$2
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15814 $as_echo_n "checking for $ac_word... " >&6; }
15815 if ${ac_cv_path_LLVM_CONFIG+:} false; then :
15816 $as_echo_n "(cached) " >&6
15817 else
15818 case $LLVM_CONFIG in
15819 [\\/]* | ?:[\\/]*)
15820 ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
15821 ;;
15822 *)
15823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15824 for as_dir in $with_llvm_path
15825 do
15826 IFS=$as_save_IFS
15827 test -z "$as_dir" && as_dir=.
15828 for ac_exec_ext in '' $ac_executable_extensions; do
15829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15830 ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15832 break 2
15833 fi
15834 done
15835 done
15836 IFS=$as_save_IFS
15837
15838 ;;
15839 esac
15840 fi
15841 LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
15842 if test -n "$LLVM_CONFIG"; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
15844 $as_echo "$LLVM_CONFIG" >&6; }
15845 else
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847 $as_echo "no" >&6; }
15848 fi
15849
15850
15851 if test -z "$LLVM_CONFIG"; then
15852 as_fn_error $? "LLVM is required but program \`llvm-config' cannot be found in $with_llvm_path" "$LINENO" 5
15853 fi
15854
15855 if test -n "9.0"; then
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM version" >&5
15857 $as_echo_n "checking for LLVM version... " >&6; }
15858 LLVM_VERSION=`$LLVM_CONFIG --version`
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_VERSION" >&5
15860 $as_echo "$LLVM_VERSION" >&6; }
15861
15862
15863
15864 # Used to indicate true or false condition
15865 ax_compare_version=false
15866
15867 # Convert the two version strings to be compared into a format that
15868 # allows a simple string comparison. The end result is that a version
15869 # string of the form 1.12.5-r617 will be converted to the form
15870 # 0001001200050617. In other words, each number is zero padded to four
15871 # digits, and non digits are removed.
15872
15873 ax_compare_version_A=`echo "$LLVM_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15874 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15875 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15876 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15877 -e 's/[^0-9]//g'`
15878
15879
15880 ax_compare_version_B=`echo "9.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15881 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15882 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15883 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15884 -e 's/[^0-9]//g'`
15885
15886
15887 ax_compare_version=`echo "x$ax_compare_version_A
15888 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15889
15890
15891
15892 if test "$ax_compare_version" = "true" ; then
15893 :
15894 else
15895 as_fn_error $? "LLVM version 9.0 or later is required" "$LINENO" 5
15896
15897 fi
15898
15899 fi
15900
15901 # LLVM post-3.4 supports `llvm-config --system-libs'.
15902 LLVM_SYSLIBS=`$LLVM_CONFIG --system-libs 2>/dev/null`
15903 if test $? -ne 0; then
15904 LLVM_SYSLIBS=""
15905 fi
15906
15907 # When setting `LLVM_CPPFLAGS', we weed out command-line options that might
15908 # be troublesome (e.g., -W/-f options that are not supported by `CXX', or -W
15909 # options that turn warnings into errors). We also weed out options that
15910 # might override choices that *we* want to control (e.g., debug and
15911 # optimization options).
15912 #
15913 # The subparts of the `grep' invocation below remove compiler command-line
15914 # options of the following forms:
15915 # -W... --- warning options
15916 # -w --- inhibits all warnings
15917 # -pedantic... --- pedantic warning options
15918 # -f...diagnostics... --- diagnostics reporting options (GCC, Clang)
15919 # -f...show... --- diagnostics reporting options (Clang)
15920 # -g... --- debugging options
15921 # -O... --- optimization options
15922 # [And for the llvm.org-provided build of Clang 3.8.0 for OS X, weed out:]
15923 # -isysroot
15924 # /Applications/Xcode.app/...
15925 #
15926 # The `tr/sed | grep | xargs' pipeline is intended to be portable. We use
15927 # `grep' for matching because writing fancy, portable `sed' expressions is
15928 # difficult. For example, some implementations use "\b" to match word
15929 # boundaries while others use "[[:<:]]" and "[[:>:]]". The Autoconf
15930 # documentation says that anchored matches in `sed' are not portable. Give
15931 # up; use `grep' instead. Bonus: better readability!
15932
15933 LLVM_BINDIR=`$LLVM_CONFIG --bindir`
15934 LLVM_CPPFLAGS=`$LLVM_CONFIG --cxxflags | tr '\t' ' ' | sed -e 's/ */ /g' | tr ' ' '\n' | grep -v -e '^-W' -e '^-w$' -e '^-pedantic' -e '^-f[a-z-]*diagnostics' -e '^-f[a-z-]*show' -e '^-g' -e '^-O$' -e '^-O[0-9s]' -e '^-isysroot$' -e '^/Applications/Xcode\\.app/.*\\.sdk$' | xargs`
15935 LLVM_LDFLAGS="`$LLVM_CONFIG --ldflags` $LLVM_SYSLIBS"
15936 LLVM_LIBS=`$LLVM_CONFIG --libs engine`
15937
15938 # The output of `llvm-config --ldflags' often contains library directives
15939 # that must come *after* all the LLVM libraries on the link line: e.g.,
15940 # "-lpthread -lffi -ldl -lm". To ensure this, we insert LLVM_LDFLAGS into
15941 # LIBS, *not* into LDFLAGS.
15942 #
15943 # Newer LLVM's (post-3.4) support `llvm-config --system-libs', which will
15944 # possibly help us to straighten this out in the future.
15945
15946
15947 CPPFLAGS_SAVED="$CPPFLAGS"
15948 CPPFLAGS="$CPPFLAGS $LLVM_CPPFLAGS"
15949 LDFLAGS_SAVED="$LDFLAGS"
15950 LDFLAGS="$LDFLAGS"
15951 # LDFLAGS="$LDFLAGS $LLVM_LDFLAGS" --- see comment above.
15952 LIBS_SAVED="$LIBS"
15953 LIBS="$LIBS $LLVM_LIBS $LLVM_LDFLAGS"
15954 # LIBS="$LIBS $LLVM_LIBS" --- see comment above.
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking can compile with and link with LLVM(engine)" >&5
15957 $as_echo_n "checking can compile with and link with LLVM(engine)... " >&6; }
15958 if ${ax_cv_llvm+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961
15962 ac_ext=cpp
15963 ac_cpp='$CXXCPP $CPPFLAGS'
15964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15967
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15970
15971 #include <llvm/IR/LLVMContext.h>
15972 #include <llvm/IR/Module.h>
15973 int
15974 main ()
15975 {
15976 llvm::LLVMContext context;
15977 llvm::Module *M = new llvm::Module("test", context);
15978 ;
15979 return 0;
15980 }
15981 _ACEOF
15982 if ac_fn_cxx_try_link "$LINENO"; then :
15983 ax_cv_llvm=yes
15984 else
15985 ax_cv_llvm=no
15986 fi
15987 rm -f core conftest.err conftest.$ac_objext \
15988 conftest$ac_exeext conftest.$ac_ext
15989 ac_ext=c
15990 ac_cpp='$CPP $CPPFLAGS'
15991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994
15995
15996 fi
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_llvm" >&5
15998 $as_echo "$ax_cv_llvm" >&6; }
15999
16000 CPPFLAGS="$CPPFLAGS_SAVED"
16001 LDFLAGS="$LDFLAGS_SAVED"
16002 LIBS="$LIBS_SAVED"
16003
16004 if test "$ax_cv_llvm" != "yes"; then
16005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16007 as_fn_error $? "cannot compile and link test program with selected LLVM
16008 See \`config.log' for more details" "$LINENO" 5; }
16009 fi
16010
16011
16012
16013
16014 # Check whether --with-clang was given.
16015 if test "${with_clang+set}" = set; then :
16016 withval=$with_clang; with_clang="$withval"
16017 else
16018 with_clang=no
16019 fi
16020
16021
16022 CLANG_CPPFLAGS=''
16023 CLANG_LDFLAGS=''
16024
16025 if test "x$with_clang" = "xno"; then
16026 true # Do nothing.
16027 elif test "x$with_clang" = "xyes"; then
16028 as_fn_error $? "--with-clang requires an argument (a Clang build/install tree)" "$LINENO" 5
16029 else
16030
16031 clang_dir="$with_clang"
16032 clang_cmake_file="$clang_dir/lib/cmake/clang/ClangConfig.cmake"
16033 as_ac_File=`$as_echo "ac_cv_file_$clang_cmake_file" | $as_tr_sh`
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $clang_cmake_file" >&5
16035 $as_echo_n "checking for $clang_cmake_file... " >&6; }
16036 if eval \${$as_ac_File+:} false; then :
16037 $as_echo_n "(cached) " >&6
16038 else
16039 test "$cross_compiling" = yes &&
16040 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16041 if test -r "$clang_cmake_file"; then
16042 eval "$as_ac_File=yes"
16043 else
16044 eval "$as_ac_File=no"
16045 fi
16046 fi
16047 eval ac_res=\$$as_ac_File
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16049 $as_echo "$ac_res" >&6; }
16050 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
16051
16052 else
16053
16054 as_fn_error $? "argument to --with-clang is not a Clang build/install tree" "$LINENO" 5
16055
16056 fi
16057
16058
16059 # Dig the list of include directories out of the $clang_cmake_file, which
16060 # is a CMake file. The sed expressions below:
16061 #
16062 # + Find the line: set(CLANG_INCLUDE_DIRS "<dirlist>")
16063 # and output: <dirlist>
16064 # + From the list: <dir1>;<dir2>;...
16065 # output: -I<dir1>;-I<dir2>;...
16066 # + Erase semis: -I<dir1> -I<dir2> ...
16067 #
16068 CLANG_CPPFLAGS=` sed -n -E -e 's/^set\(CLANG_INCLUDE_DIRS [^"]*"([^"]+)"\)$/\1/p' "$clang_cmake_file" | sed -E -e 's/([^;]+)/-I\1/g' -e 's/;/ /g'`
16069 #
16070 # Find the list of library directories. This is easy: everything is in
16071 # the "lib" subdirectory.
16072 #
16073 CLANG_LDFLAGS="-L$clang_dir/lib"
16074 fi
16075
16076
16077
16078
16079 # Handle configure-time choice of assertion-checking method.
16080 #
16081 # Check whether --enable-trans-assert was given.
16082 if test "${enable_trans_assert+set}" = set; then :
16083 enableval=$enable_trans_assert;
16084 else
16085 enable_trans_assert=yes
16086 fi
16087
16088 if test "x$enable_trans_assert" = "xyes"; then :
16089
16090 $as_echo "#define ENABLE_TRANS_ASSERT 1" >>confdefs.h
16091
16092 fi
16093
16094 # If we are using g++ or clang++, set the default `CXXFLAGS' to something more
16095 # pedantic. (Both g++ and clang++ cause `GXX' to be set.)
16096 #
16097 # `-fno-strict-aliasing' quiets many warnings about LLVM headers and possibly
16098 # improves our chances at working code.
16099 # `-Wno-unused-parameter' quiets many warnings about LLVM headers.
16100 # `-Wno-missing-field-initializers' quiets many warnings about LLVM headers.
16101 #
16102 if test "$ac_test_CXXFLAGS" = set; then
16103 # The user specified `CXXFLAGS', so do nothing.
16104 CXXFLAGS="$CXXFLAGS"
16105 elif test "$GXX" = yes; then
16106 CXXFLAGS="-g -O3 -fno-strict-aliasing -Wall -Wextra -Wno-long-long -Wno-unused-parameter -Wno-missing-field-initializers"
16107 fi
16108
16109 ###############################################################################
16110 ## clex
16111
16112 for ac_prog in flex lex
16113 do
16114 # Extract the first word of "$ac_prog", so it can be a program name with args.
16115 set dummy $ac_prog; ac_word=$2
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16117 $as_echo_n "checking for $ac_word... " >&6; }
16118 if ${ac_cv_prog_LEX+:} false; then :
16119 $as_echo_n "(cached) " >&6
16120 else
16121 if test -n "$LEX"; then
16122 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16123 else
16124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16125 for as_dir in $PATH
16126 do
16127 IFS=$as_save_IFS
16128 test -z "$as_dir" && as_dir=.
16129 for ac_exec_ext in '' $ac_executable_extensions; do
16130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16131 ac_cv_prog_LEX="$ac_prog"
16132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16133 break 2
16134 fi
16135 done
16136 done
16137 IFS=$as_save_IFS
16138
16139 fi
16140 fi
16141 LEX=$ac_cv_prog_LEX
16142 if test -n "$LEX"; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16144 $as_echo "$LEX" >&6; }
16145 else
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16148 fi
16149
16150
16151 test -n "$LEX" && break
16152 done
16153 test -n "$LEX" || LEX=":"
16154
16155 if test "x$LEX" != "x:"; then
16156 cat >conftest.l <<_ACEOF
16157 %%
16158 a { ECHO; }
16159 b { REJECT; }
16160 c { yymore (); }
16161 d { yyless (1); }
16162 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16163 yyless ((input () != 0)); }
16164 f { unput (yytext[0]); }
16165 . { BEGIN INITIAL; }
16166 %%
16167 #ifdef YYTEXT_POINTER
16168 extern char *yytext;
16169 #endif
16170 int
16171 main (void)
16172 {
16173 return ! yylex () + ! yywrap ();
16174 }
16175 _ACEOF
16176 { { ac_try="$LEX conftest.l"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180 esac
16181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16182 $as_echo "$ac_try_echo"; } >&5
16183 (eval "$LEX conftest.l") 2>&5
16184 ac_status=$?
16185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16186 test $ac_status = 0; }
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16188 $as_echo_n "checking lex output file root... " >&6; }
16189 if ${ac_cv_prog_lex_root+:} false; then :
16190 $as_echo_n "(cached) " >&6
16191 else
16192
16193 if test -f lex.yy.c; then
16194 ac_cv_prog_lex_root=lex.yy
16195 elif test -f lexyy.c; then
16196 ac_cv_prog_lex_root=lexyy
16197 else
16198 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
16199 fi
16200 fi
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16202 $as_echo "$ac_cv_prog_lex_root" >&6; }
16203 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16204
16205 if test -z "${LEXLIB+set}"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16207 $as_echo_n "checking lex library... " >&6; }
16208 if ${ac_cv_lib_lex+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210 else
16211
16212 ac_save_LIBS=$LIBS
16213 ac_cv_lib_lex='none needed'
16214 for ac_lib in '' -lfl -ll; do
16215 LIBS="$ac_lib $ac_save_LIBS"
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16218 `cat $LEX_OUTPUT_ROOT.c`
16219 _ACEOF
16220 if ac_fn_c_try_link "$LINENO"; then :
16221 ac_cv_lib_lex=$ac_lib
16222 fi
16223 rm -f core conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16225 test "$ac_cv_lib_lex" != 'none needed' && break
16226 done
16227 LIBS=$ac_save_LIBS
16228
16229 fi
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16231 $as_echo "$ac_cv_lib_lex" >&6; }
16232 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16233 fi
16234
16235
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16237 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16238 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 # POSIX says lex can declare yytext either as a pointer or an array; the
16242 # default is implementation-dependent. Figure out which it is, since
16243 # not all implementations provide the %pointer and %array declarations.
16244 ac_cv_prog_lex_yytext_pointer=no
16245 ac_save_LIBS=$LIBS
16246 LIBS="$LEXLIB $ac_save_LIBS"
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249
16250 #define YYTEXT_POINTER 1
16251 `cat $LEX_OUTPUT_ROOT.c`
16252 _ACEOF
16253 if ac_fn_c_try_link "$LINENO"; then :
16254 ac_cv_prog_lex_yytext_pointer=yes
16255 fi
16256 rm -f core conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_save_LIBS
16259
16260 fi
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16262 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16263 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16264
16265 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16266
16267 fi
16268 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16269
16270 fi
16271 if test "$LEX" = :; then
16272 LEX=${am_missing_run}flex
16273 fi
16274
16275 ###############################################################################
16276 ## creduce
16277
16278
16279 # Extract the first word of "perl", so it can be a program name with args.
16280 set dummy perl; ac_word=$2
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16282 $as_echo_n "checking for $ac_word... " >&6; }
16283 if ${ac_cv_path_PERL+:} false; then :
16284 $as_echo_n "(cached) " >&6
16285 else
16286 case $PERL in
16287 [\\/]* | ?:[\\/]*)
16288 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16289 ;;
16290 *)
16291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16292 for as_dir in $PATH
16293 do
16294 IFS=$as_save_IFS
16295 test -z "$as_dir" && as_dir=.
16296 for ac_exec_ext in '' $ac_executable_extensions; do
16297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16298 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16300 break 2
16301 fi
16302 done
16303 done
16304 IFS=$as_save_IFS
16305
16306 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
16307 ;;
16308 esac
16309 fi
16310 PERL=$ac_cv_path_PERL
16311 if test -n "$PERL"; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16313 $as_echo "$PERL" >&6; }
16314 else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316 $as_echo "no" >&6; }
16317 fi
16318
16319
16320 if test "x$PERL" = "xno"; then :
16321 as_fn_error $? "a Perl interpreter was not found" "$LINENO" 5
16322 fi
16323
16324
16325
16326
16327 if test -n "$PERL"; then :
16328
16329 ax_perl_version="5.10.0"
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
16332 $as_echo_n "checking for perl version... " >&6; }
16333
16334 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
16337 $as_echo "$perl_version" >&6; }
16338
16339 PERL_VERSION=$perl_version
16340
16341
16342
16343
16344
16345 # Used to indicate true or false condition
16346 ax_compare_version=false
16347
16348 # Convert the two version strings to be compared into a format that
16349 # allows a simple string comparison. The end result is that a version
16350 # string of the form 1.12.5-r617 will be converted to the form
16351 # 0001001200050617. In other words, each number is zero padded to four
16352 # digits, and non digits are removed.
16353
16354 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16355 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16356 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16357 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16358 -e 's/[^0-9]//g'`
16359
16360
16361 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16362 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16363 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16364 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16365 -e 's/[^0-9]//g'`
16366
16367
16368 ax_compare_version=`echo "x$ax_compare_version_A
16369 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
16370
16371
16372
16373 if test "$ax_compare_version" = "true" ; then
16374
16375 :
16376
16377
16378 else
16379 :
16380 as_fn_error $? "C-Reduce requires Perl 5.10.0 or later" "$LINENO" 5
16381
16382 fi
16383
16384
16385 else
16386
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
16388 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
16389 as_fn_error $? "C-Reduce requires Perl 5.10.0 or later" "$LINENO" 5
16390
16391 fi
16392
16393
16394 # Check for the run-time prerequisites of C-Reduce. We only warn the user when
16395 # these are not found at configure time. Let the user install the dependencies
16396 # later.
16397 #
16398 missing_required_runtime_prereq=no
16399 missing_optional_runtime_prereq=no
16400 #
16401 # creduce/creduce.in
16402 #
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415 # Make sure we have perl
16416 if test -z "$PERL"; then
16417 # Extract the first word of "perl", so it can be a program name with args.
16418 set dummy perl; ac_word=$2
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16420 $as_echo_n "checking for $ac_word... " >&6; }
16421 if ${ac_cv_prog_PERL+:} false; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424 if test -n "$PERL"; then
16425 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16426 else
16427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16428 for as_dir in $PATH
16429 do
16430 IFS=$as_save_IFS
16431 test -z "$as_dir" && as_dir=.
16432 for ac_exec_ext in '' $ac_executable_extensions; do
16433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16434 ac_cv_prog_PERL="perl"
16435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16436 break 2
16437 fi
16438 done
16439 done
16440 IFS=$as_save_IFS
16441
16442 fi
16443 fi
16444 PERL=$ac_cv_prog_PERL
16445 if test -n "$PERL"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16447 $as_echo "$PERL" >&6; }
16448 else
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450 $as_echo "no" >&6; }
16451 fi
16452
16453
16454 fi
16455
16456 if test "x$PERL" != x; then
16457 ax_perl_modules_failed=0
16458 for ax_perl_module in 'Exporter::Lite' 'File::Which' 'Getopt::Tabular' 'Regexp::Common' ; do
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
16460 $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
16461
16462 # Would be nice to log result here, but can't rely on autoconf internals
16463 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
16464 if test $? -ne 0; then
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16466 $as_echo "no" >&6; };
16467 ax_perl_modules_failed=1
16468 else
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16470 $as_echo "ok" >&6; };
16471 fi
16472 done
16473
16474 # Run optional shell commands
16475 if test "$ax_perl_modules_failed" = 0; then
16476 :
16477
16478 REQUIRED_PERL_MODULES=yes
16479
16480 else
16481 :
16482
16483 REQUIRED_PERL_MODULES=no
16484 missing_required_runtime_prereq=yes
16485
16486 fi
16487 else
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
16489 $as_echo "$as_me: WARNING: could not find perl" >&2;}
16490 fi
16491
16492
16493
16494
16495
16496
16497 # Make sure we have perl
16498 if test -z "$PERL"; then
16499 # Extract the first word of "perl", so it can be a program name with args.
16500 set dummy perl; ac_word=$2
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16502 $as_echo_n "checking for $ac_word... " >&6; }
16503 if ${ac_cv_prog_PERL+:} false; then :
16504 $as_echo_n "(cached) " >&6
16505 else
16506 if test -n "$PERL"; then
16507 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16508 else
16509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16510 for as_dir in $PATH
16511 do
16512 IFS=$as_save_IFS
16513 test -z "$as_dir" && as_dir=.
16514 for ac_exec_ext in '' $ac_executable_extensions; do
16515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16516 ac_cv_prog_PERL="perl"
16517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16518 break 2
16519 fi
16520 done
16521 done
16522 IFS=$as_save_IFS
16523
16524 fi
16525 fi
16526 PERL=$ac_cv_prog_PERL
16527 if test -n "$PERL"; then
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16529 $as_echo "$PERL" >&6; }
16530 else
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16532 $as_echo "no" >&6; }
16533 fi
16534
16535
16536 fi
16537
16538 if test "x$PERL" != x; then
16539 ax_perl_modules_failed=0
16540 for ax_perl_module in 'Term::ReadKey' ; do
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
16542 $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
16543
16544 # Would be nice to log result here, but can't rely on autoconf internals
16545 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
16546 if test $? -ne 0; then
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548 $as_echo "no" >&6; };
16549 ax_perl_modules_failed=1
16550 else
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16552 $as_echo "ok" >&6; };
16553 fi
16554 done
16555
16556 # Run optional shell commands
16557 if test "$ax_perl_modules_failed" = 0; then
16558 :
16559
16560 OPTIONAL_PERL_MODULES=yes
16561
16562 else
16563 :
16564
16565 OPTIONAL_PERL_MODULES=no
16566 missing_optional_runtime_prereq=yes
16567
16568 fi
16569 else
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
16571 $as_echo "$as_me: WARNING: could not find perl" >&2;}
16572 fi
16573 #
16574 # creduce/pass_indent.pm
16575 #
16576
16577 # Extract the first word of "clang-format", so it can be a program name with args.
16578 set dummy clang-format; ac_word=$2
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16580 $as_echo_n "checking for $ac_word... " >&6; }
16581 if ${ac_cv_path_CLANG_FORMAT+:} false; then :
16582 $as_echo_n "(cached) " >&6
16583 else
16584 case $CLANG_FORMAT in
16585 [\\/]* | ?:[\\/]*)
16586 ac_cv_path_CLANG_FORMAT="$CLANG_FORMAT" # Let the user override the test with a path.
16587 ;;
16588 *)
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 as_dummy="$LLVM_BINDIR:$PATH"
16591 for as_dir in $as_dummy
16592 do
16593 IFS=$as_save_IFS
16594 test -z "$as_dir" && as_dir=.
16595 for ac_exec_ext in '' $ac_executable_extensions; do
16596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16597 ac_cv_path_CLANG_FORMAT="$as_dir/$ac_word$ac_exec_ext"
16598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16599 break 2
16600 fi
16601 done
16602 done
16603 IFS=$as_save_IFS
16604
16605 test -z "$ac_cv_path_CLANG_FORMAT" && ac_cv_path_CLANG_FORMAT="no"
16606 ;;
16607 esac
16608 fi
16609 CLANG_FORMAT=$ac_cv_path_CLANG_FORMAT
16610 if test -n "$CLANG_FORMAT"; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_FORMAT" >&5
16612 $as_echo "$CLANG_FORMAT" >&6; }
16613 else
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615 $as_echo "no" >&6; }
16616 fi
16617
16618
16619 if test "x$CLANG_FORMAT" = "xno"; then :
16620 missing_required_runtime_prereq=yes
16621 fi
16622
16623 ###############################################################################
16624
16625 ac_config_files="$ac_config_files Makefile clang_delta/Makefile clex/Makefile creduce/Makefile delta/Makefile scripts/Makefile tests/Makefile unifdef/Makefile"
16626
16627 cat >confcache <<\_ACEOF
16628 # This file is a shell script that caches the results of configure
16629 # tests run on this system so they can be shared between configure
16630 # scripts and configure runs, see configure's option --config-cache.
16631 # It is not useful on other systems. If it contains results you don't
16632 # want to keep, you may remove or edit it.
16633 #
16634 # config.status only pays attention to the cache file if you give it
16635 # the --recheck option to rerun configure.
16636 #
16637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16639 # following values.
16640
16641 _ACEOF
16642
16643 # The following way of writing the cache mishandles newlines in values,
16644 # but we know of no workaround that is simple, portable, and efficient.
16645 # So, we kill variables containing newlines.
16646 # Ultrix sh set writes to stderr and can't be redirected directly,
16647 # and sets the high bit in the cache file unless we assign to the vars.
16648 (
16649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16650 eval ac_val=\$$ac_var
16651 case $ac_val in #(
16652 *${as_nl}*)
16653 case $ac_var in #(
16654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16656 esac
16657 case $ac_var in #(
16658 _ | IFS | as_nl) ;; #(
16659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16660 *) { eval $ac_var=; unset $ac_var;} ;;
16661 esac ;;
16662 esac
16663 done
16664
16665 (set) 2>&1 |
16666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16667 *${as_nl}ac_space=\ *)
16668 # `set' does not quote correctly, so add quotes: double-quote
16669 # substitution turns \\\\ into \\, and sed turns \\ into \.
16670 sed -n \
16671 "s/'/'\\\\''/g;
16672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16673 ;; #(
16674 *)
16675 # `set' quotes correctly as required by POSIX, so do not add quotes.
16676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16677 ;;
16678 esac |
16679 sort
16680 ) |
16681 sed '
16682 /^ac_cv_env_/b end
16683 t clear
16684 :clear
16685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16686 t end
16687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16688 :end' >>confcache
16689 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16690 if test -w "$cache_file"; then
16691 if test "x$cache_file" != "x/dev/null"; then
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16693 $as_echo "$as_me: updating cache $cache_file" >&6;}
16694 if test ! -f "$cache_file" || test -h "$cache_file"; then
16695 cat confcache >"$cache_file"
16696 else
16697 case $cache_file in #(
16698 */* | ?:*)
16699 mv -f confcache "$cache_file"$$ &&
16700 mv -f "$cache_file"$$ "$cache_file" ;; #(
16701 *)
16702 mv -f confcache "$cache_file" ;;
16703 esac
16704 fi
16705 fi
16706 else
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16708 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16709 fi
16710 fi
16711 rm -f confcache
16712
16713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16714 # Let make expand exec_prefix.
16715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16716
16717 DEFS=-DHAVE_CONFIG_H
16718
16719 ac_libobjs=
16720 ac_ltlibobjs=
16721 U=
16722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16723 # 1. Remove the extension, and $U if already installed.
16724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16725 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16727 # will be set to the directory where LIBOBJS objects are built.
16728 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16729 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16730 done
16731 LIBOBJS=$ac_libobjs
16732
16733 LTLIBOBJS=$ac_ltlibobjs
16734
16735
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16737 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16738 if test -n "$am_sleep_pid"; then
16739 # Hide warnings about reused PIDs.
16740 wait $am_sleep_pid 2>/dev/null
16741 fi
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16743 $as_echo "done" >&6; }
16744 if test -n "$EXEEXT"; then
16745 am__EXEEXT_TRUE=
16746 am__EXEEXT_FALSE='#'
16747 else
16748 am__EXEEXT_TRUE='#'
16749 am__EXEEXT_FALSE=
16750 fi
16751
16752 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16753 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16755 fi
16756 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16757 as_fn_error $? "conditional \"AMDEP\" was never defined.
16758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16759 fi
16760 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16761 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16763 fi
16764 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16765 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16767 fi
16768
16769 : "${CONFIG_STATUS=./config.status}"
16770 ac_write_fail=0
16771 ac_clean_files_save=$ac_clean_files
16772 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16774 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16775 as_write_fail=0
16776 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16777 #! $SHELL
16778 # Generated by $as_me.
16779 # Run this file to recreate the current configuration.
16780 # Compiler output produced by configure, useful for debugging
16781 # configure, is in config.log if it exists.
16782
16783 debug=false
16784 ac_cs_recheck=false
16785 ac_cs_silent=false
16786
16787 SHELL=\${CONFIG_SHELL-$SHELL}
16788 export SHELL
16789 _ASEOF
16790 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16791 ## -------------------- ##
16792 ## M4sh Initialization. ##
16793 ## -------------------- ##
16794
16795 # Be more Bourne compatible
16796 DUALCASE=1; export DUALCASE # for MKS sh
16797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16798 emulate sh
16799 NULLCMD=:
16800 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16801 # is contrary to our usage. Disable this feature.
16802 alias -g '${1+"$@"}'='"$@"'
16803 setopt NO_GLOB_SUBST
16804 else
16805 case `(set -o) 2>/dev/null` in #(
16806 *posix*) :
16807 set -o posix ;; #(
16808 *) :
16809 ;;
16810 esac
16811 fi
16812
16813
16814 as_nl='
16815 '
16816 export as_nl
16817 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16818 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16821 # Prefer a ksh shell builtin over an external printf program on Solaris,
16822 # but without wasting forks for bash or zsh.
16823 if test -z "$BASH_VERSION$ZSH_VERSION" \
16824 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16825 as_echo='print -r --'
16826 as_echo_n='print -rn --'
16827 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16828 as_echo='printf %s\n'
16829 as_echo_n='printf %s'
16830 else
16831 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16832 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16833 as_echo_n='/usr/ucb/echo -n'
16834 else
16835 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16836 as_echo_n_body='eval
16837 arg=$1;
16838 case $arg in #(
16839 *"$as_nl"*)
16840 expr "X$arg" : "X\\(.*\\)$as_nl";
16841 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16842 esac;
16843 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16844 '
16845 export as_echo_n_body
16846 as_echo_n='sh -c $as_echo_n_body as_echo'
16847 fi
16848 export as_echo_body
16849 as_echo='sh -c $as_echo_body as_echo'
16850 fi
16851
16852 # The user is always right.
16853 if test "${PATH_SEPARATOR+set}" != set; then
16854 PATH_SEPARATOR=:
16855 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16856 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16857 PATH_SEPARATOR=';'
16858 }
16859 fi
16860
16861
16862 # IFS
16863 # We need space, tab and new line, in precisely that order. Quoting is
16864 # there to prevent editors from complaining about space-tab.
16865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16866 # splitting by setting IFS to empty value.)
16867 IFS=" "" $as_nl"
16868
16869 # Find who we are. Look in the path if we contain no directory separator.
16870 as_myself=
16871 case $0 in #((
16872 *[\\/]* ) as_myself=$0 ;;
16873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16874 for as_dir in $PATH
16875 do
16876 IFS=$as_save_IFS
16877 test -z "$as_dir" && as_dir=.
16878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16879 done
16880 IFS=$as_save_IFS
16881
16882 ;;
16883 esac
16884 # We did not find ourselves, most probably we were run as `sh COMMAND'
16885 # in which case we are not to be found in the path.
16886 if test "x$as_myself" = x; then
16887 as_myself=$0
16888 fi
16889 if test ! -f "$as_myself"; then
16890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16891 exit 1
16892 fi
16893
16894 # Unset variables that we do not need and which cause bugs (e.g. in
16895 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16896 # suppresses any "Segmentation fault" message there. '((' could
16897 # trigger a bug in pdksh 5.2.14.
16898 for as_var in BASH_ENV ENV MAIL MAILPATH
16899 do eval test x\${$as_var+set} = xset \
16900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16901 done
16902 PS1='$ '
16903 PS2='> '
16904 PS4='+ '
16905
16906 # NLS nuisances.
16907 LC_ALL=C
16908 export LC_ALL
16909 LANGUAGE=C
16910 export LANGUAGE
16911
16912 # CDPATH.
16913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16914
16915
16916 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16917 # ----------------------------------------
16918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16920 # script with STATUS, using 1 if that was 0.
16921 as_fn_error ()
16922 {
16923 as_status=$1; test $as_status -eq 0 && as_status=1
16924 if test "$4"; then
16925 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16927 fi
16928 $as_echo "$as_me: error: $2" >&2
16929 as_fn_exit $as_status
16930 } # as_fn_error
16931
16932
16933 # as_fn_set_status STATUS
16934 # -----------------------
16935 # Set $? to STATUS, without forking.
16936 as_fn_set_status ()
16937 {
16938 return $1
16939 } # as_fn_set_status
16940
16941 # as_fn_exit STATUS
16942 # -----------------
16943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16944 as_fn_exit ()
16945 {
16946 set +e
16947 as_fn_set_status $1
16948 exit $1
16949 } # as_fn_exit
16950
16951 # as_fn_unset VAR
16952 # ---------------
16953 # Portably unset VAR.
16954 as_fn_unset ()
16955 {
16956 { eval $1=; unset $1;}
16957 }
16958 as_unset=as_fn_unset
16959 # as_fn_append VAR VALUE
16960 # ----------------------
16961 # Append the text in VALUE to the end of the definition contained in VAR. Take
16962 # advantage of any shell optimizations that allow amortized linear growth over
16963 # repeated appends, instead of the typical quadratic growth present in naive
16964 # implementations.
16965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16966 eval 'as_fn_append ()
16967 {
16968 eval $1+=\$2
16969 }'
16970 else
16971 as_fn_append ()
16972 {
16973 eval $1=\$$1\$2
16974 }
16975 fi # as_fn_append
16976
16977 # as_fn_arith ARG...
16978 # ------------------
16979 # Perform arithmetic evaluation on the ARGs, and store the result in the
16980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16981 # must be portable across $(()) and expr.
16982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16983 eval 'as_fn_arith ()
16984 {
16985 as_val=$(( $* ))
16986 }'
16987 else
16988 as_fn_arith ()
16989 {
16990 as_val=`expr "$@" || test $? -eq 1`
16991 }
16992 fi # as_fn_arith
16993
16994
16995 if expr a : '\(a\)' >/dev/null 2>&1 &&
16996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16997 as_expr=expr
16998 else
16999 as_expr=false
17000 fi
17001
17002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17003 as_basename=basename
17004 else
17005 as_basename=false
17006 fi
17007
17008 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17009 as_dirname=dirname
17010 else
17011 as_dirname=false
17012 fi
17013
17014 as_me=`$as_basename -- "$0" ||
17015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17016 X"$0" : 'X\(//\)$' \| \
17017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17018 $as_echo X/"$0" |
17019 sed '/^.*\/\([^/][^/]*\)\/*$/{
17020 s//\1/
17021 q
17022 }
17023 /^X\/\(\/\/\)$/{
17024 s//\1/
17025 q
17026 }
17027 /^X\/\(\/\).*/{
17028 s//\1/
17029 q
17030 }
17031 s/.*/./; q'`
17032
17033 # Avoid depending upon Character Ranges.
17034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17037 as_cr_digits='0123456789'
17038 as_cr_alnum=$as_cr_Letters$as_cr_digits
17039
17040 ECHO_C= ECHO_N= ECHO_T=
17041 case `echo -n x` in #(((((
17042 -n*)
17043 case `echo 'xy\c'` in
17044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17045 xy) ECHO_C='\c';;
17046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17047 ECHO_T=' ';;
17048 esac;;
17049 *)
17050 ECHO_N='-n';;
17051 esac
17052
17053 rm -f conf$$ conf$$.exe conf$$.file
17054 if test -d conf$$.dir; then
17055 rm -f conf$$.dir/conf$$.file
17056 else
17057 rm -f conf$$.dir
17058 mkdir conf$$.dir 2>/dev/null
17059 fi
17060 if (echo >conf$$.file) 2>/dev/null; then
17061 if ln -s conf$$.file conf$$ 2>/dev/null; then
17062 as_ln_s='ln -s'
17063 # ... but there are two gotchas:
17064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17066 # In both cases, we have to default to `cp -pR'.
17067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17068 as_ln_s='cp -pR'
17069 elif ln conf$$.file conf$$ 2>/dev/null; then
17070 as_ln_s=ln
17071 else
17072 as_ln_s='cp -pR'
17073 fi
17074 else
17075 as_ln_s='cp -pR'
17076 fi
17077 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17078 rmdir conf$$.dir 2>/dev/null
17079
17080
17081 # as_fn_mkdir_p
17082 # -------------
17083 # Create "$as_dir" as a directory, including parents if necessary.
17084 as_fn_mkdir_p ()
17085 {
17086
17087 case $as_dir in #(
17088 -*) as_dir=./$as_dir;;
17089 esac
17090 test -d "$as_dir" || eval $as_mkdir_p || {
17091 as_dirs=
17092 while :; do
17093 case $as_dir in #(
17094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17095 *) as_qdir=$as_dir;;
17096 esac
17097 as_dirs="'$as_qdir' $as_dirs"
17098 as_dir=`$as_dirname -- "$as_dir" ||
17099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17100 X"$as_dir" : 'X\(//\)[^/]' \| \
17101 X"$as_dir" : 'X\(//\)$' \| \
17102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17103 $as_echo X"$as_dir" |
17104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17105 s//\1/
17106 q
17107 }
17108 /^X\(\/\/\)[^/].*/{
17109 s//\1/
17110 q
17111 }
17112 /^X\(\/\/\)$/{
17113 s//\1/
17114 q
17115 }
17116 /^X\(\/\).*/{
17117 s//\1/
17118 q
17119 }
17120 s/.*/./; q'`
17121 test -d "$as_dir" && break
17122 done
17123 test -z "$as_dirs" || eval "mkdir $as_dirs"
17124 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17125
17126
17127 } # as_fn_mkdir_p
17128 if mkdir -p . 2>/dev/null; then
17129 as_mkdir_p='mkdir -p "$as_dir"'
17130 else
17131 test -d ./-p && rmdir ./-p
17132 as_mkdir_p=false
17133 fi
17134
17135
17136 # as_fn_executable_p FILE
17137 # -----------------------
17138 # Test if FILE is an executable regular file.
17139 as_fn_executable_p ()
17140 {
17141 test -f "$1" && test -x "$1"
17142 } # as_fn_executable_p
17143 as_test_x='test -x'
17144 as_executable_p=as_fn_executable_p
17145
17146 # Sed expression to map a string onto a valid CPP name.
17147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17148
17149 # Sed expression to map a string onto a valid variable name.
17150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17151
17152
17153 exec 6>&1
17154 ## ----------------------------------- ##
17155 ## Main body of $CONFIG_STATUS script. ##
17156 ## ----------------------------------- ##
17157 _ASEOF
17158 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17159
17160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17161 # Save the log message, to keep $0 and so on meaningful, and to
17162 # report actual input values of CONFIG_FILES etc. instead of their
17163 # values after options handling.
17164 ac_log="
17165 This file was extended by creduce $as_me 2.11.0, which was
17166 generated by GNU Autoconf 2.69. Invocation command line was
17167
17168 CONFIG_FILES = $CONFIG_FILES
17169 CONFIG_HEADERS = $CONFIG_HEADERS
17170 CONFIG_LINKS = $CONFIG_LINKS
17171 CONFIG_COMMANDS = $CONFIG_COMMANDS
17172 $ $0 $@
17173
17174 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17175 "
17176
17177 _ACEOF
17178
17179 case $ac_config_files in *"
17180 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17181 esac
17182
17183 case $ac_config_headers in *"
17184 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17185 esac
17186
17187
17188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17189 # Files that config.status was made for.
17190 config_files="$ac_config_files"
17191 config_headers="$ac_config_headers"
17192 config_commands="$ac_config_commands"
17193
17194 _ACEOF
17195
17196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17197 ac_cs_usage="\
17198 \`$as_me' instantiates files and other configuration actions
17199 from templates according to the current configuration. Unless the files
17200 and actions are specified as TAGs, all are instantiated by default.
17201
17202 Usage: $0 [OPTION]... [TAG]...
17203
17204 -h, --help print this help, then exit
17205 -V, --version print version number and configuration settings, then exit
17206 --config print configuration, then exit
17207 -q, --quiet, --silent
17208 do not print progress messages
17209 -d, --debug don't remove temporary files
17210 --recheck update $as_me by reconfiguring in the same conditions
17211 --file=FILE[:TEMPLATE]
17212 instantiate the configuration file FILE
17213 --header=FILE[:TEMPLATE]
17214 instantiate the configuration header FILE
17215
17216 Configuration files:
17217 $config_files
17218
17219 Configuration headers:
17220 $config_headers
17221
17222 Configuration commands:
17223 $config_commands
17224
17225 Report bugs to <[email protected]>.
17226 creduce home page: <http://embed.cs.utah.edu/creduce/>."
17227
17228 _ACEOF
17229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17230 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17231 ac_cs_version="\\
17232 creduce config.status 2.11.0
17233 configured by $0, generated by GNU Autoconf 2.69,
17234 with options \\"\$ac_cs_config\\"
17235
17236 Copyright (C) 2012 Free Software Foundation, Inc.
17237 This config.status script is free software; the Free Software Foundation
17238 gives unlimited permission to copy, distribute and modify it."
17239
17240 ac_pwd='$ac_pwd'
17241 srcdir='$srcdir'
17242 INSTALL='$INSTALL'
17243 MKDIR_P='$MKDIR_P'
17244 AWK='$AWK'
17245 test -n "\$AWK" || AWK=awk
17246 _ACEOF
17247
17248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17249 # The default lists apply if the user does not specify any file.
17250 ac_need_defaults=:
17251 while test $# != 0
17252 do
17253 case $1 in
17254 --*=?*)
17255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17256 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17257 ac_shift=:
17258 ;;
17259 --*=)
17260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17261 ac_optarg=
17262 ac_shift=:
17263 ;;
17264 *)
17265 ac_option=$1
17266 ac_optarg=$2
17267 ac_shift=shift
17268 ;;
17269 esac
17270
17271 case $ac_option in
17272 # Handling of the options.
17273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17274 ac_cs_recheck=: ;;
17275 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17276 $as_echo "$ac_cs_version"; exit ;;
17277 --config | --confi | --conf | --con | --co | --c )
17278 $as_echo "$ac_cs_config"; exit ;;
17279 --debug | --debu | --deb | --de | --d | -d )
17280 debug=: ;;
17281 --file | --fil | --fi | --f )
17282 $ac_shift
17283 case $ac_optarg in
17284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17285 '') as_fn_error $? "missing file argument" ;;
17286 esac
17287 as_fn_append CONFIG_FILES " '$ac_optarg'"
17288 ac_need_defaults=false;;
17289 --header | --heade | --head | --hea )
17290 $ac_shift
17291 case $ac_optarg in
17292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17293 esac
17294 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17295 ac_need_defaults=false;;
17296 --he | --h)
17297 # Conflict between --help and --header
17298 as_fn_error $? "ambiguous option: \`$1'
17299 Try \`$0 --help' for more information.";;
17300 --help | --hel | -h )
17301 $as_echo "$ac_cs_usage"; exit ;;
17302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17304 ac_cs_silent=: ;;
17305
17306 # This is an error.
17307 -*) as_fn_error $? "unrecognized option: \`$1'
17308 Try \`$0 --help' for more information." ;;
17309
17310 *) as_fn_append ac_config_targets " $1"
17311 ac_need_defaults=false ;;
17312
17313 esac
17314 shift
17315 done
17316
17317 ac_configure_extra_args=
17318
17319 if $ac_cs_silent; then
17320 exec 6>/dev/null
17321 ac_configure_extra_args="$ac_configure_extra_args --silent"
17322 fi
17323
17324 _ACEOF
17325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17326 if \$ac_cs_recheck; then
17327 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17328 shift
17329 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17330 CONFIG_SHELL='$SHELL'
17331 export CONFIG_SHELL
17332 exec "\$@"
17333 fi
17334
17335 _ACEOF
17336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17337 exec 5>>config.log
17338 {
17339 echo
17340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17341 ## Running $as_me. ##
17342 _ASBOX
17343 $as_echo "$ac_log"
17344 } >&5
17345
17346 _ACEOF
17347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17348 #
17349 # INIT-COMMANDS
17350 #
17351 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17352
17353
17354 # The HP-UX ksh and POSIX shell print the target directory to stdout
17355 # if CDPATH is set.
17356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17357
17358 sed_quote_subst='$sed_quote_subst'
17359 double_quote_subst='$double_quote_subst'
17360 delay_variable_subst='$delay_variable_subst'
17361 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17362 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17363 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17364 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17365 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17366 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17367 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17368 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17369 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17370 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17371 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17372 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17373 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17374 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17375 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17376 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17377 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17378 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17379 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17380 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17381 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17382 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17383 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17384 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17385 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17386 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17387 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17388 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17389 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17390 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17391 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17392 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17393 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17394 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17395 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17396 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17397 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17398 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17399 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17400 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17401 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17402 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17403 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17404 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17405 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17406 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17407 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17408 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17409 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17410 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17411 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17412 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17413 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17414 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17415 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17416 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17417 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17418 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17419 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"`'
17420 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17421 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17422 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17423 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17424 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17425 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17426 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17427 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17428 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17429 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17430 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17431 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17432 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17433 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17434 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17435 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17436 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17437 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17438 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17439 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17440 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17441 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17442 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17443 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17444 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17445 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17446 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17447 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17448 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17449 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17450 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17451 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17452 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17453 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17454 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17455 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17456 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17457 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17458 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17459 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17460 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17461 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17462 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17463 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17464 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17465 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17466 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17467 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17468 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17469 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17470 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17471 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17472 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17473 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17474 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17475 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17476 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17477 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17478 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17479 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17480 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17481 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17482 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17483 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17484 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17485 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17486 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17487 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17488 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17489 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17490 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17491 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17492 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17493 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17494 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17495 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17496 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17497 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17498 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17499 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17500 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17501 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17502 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17503 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17504 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17505 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17506 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17507 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17508 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17509 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17510 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17511 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17512 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17513 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17514 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17515 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17516 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17517 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17518 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17519 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17520 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17521 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17522 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17523 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17524 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17525 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17526 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17527 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17528 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17529 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17530 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17531 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17532 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17533 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17534 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17535 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17536 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17537 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17538 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17539 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17540 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17541 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17542 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17543 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17544 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17545 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17546 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17547 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17548 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17549 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17550
17551 LTCC='$LTCC'
17552 LTCFLAGS='$LTCFLAGS'
17553 compiler='$compiler_DEFAULT'
17554
17555 # A function that is used when there is no print builtin or printf.
17556 func_fallback_echo ()
17557 {
17558 eval 'cat <<_LTECHO_EOF
17559 \$1
17560 _LTECHO_EOF'
17561 }
17562
17563 # Quote evaled strings.
17564 for var in SHELL \
17565 ECHO \
17566 PATH_SEPARATOR \
17567 SED \
17568 GREP \
17569 EGREP \
17570 FGREP \
17571 LD \
17572 NM \
17573 LN_S \
17574 lt_SP2NL \
17575 lt_NL2SP \
17576 reload_flag \
17577 OBJDUMP \
17578 deplibs_check_method \
17579 file_magic_cmd \
17580 file_magic_glob \
17581 want_nocaseglob \
17582 DLLTOOL \
17583 sharedlib_from_linklib_cmd \
17584 AR \
17585 AR_FLAGS \
17586 archiver_list_spec \
17587 STRIP \
17588 RANLIB \
17589 CC \
17590 CFLAGS \
17591 compiler \
17592 lt_cv_sys_global_symbol_pipe \
17593 lt_cv_sys_global_symbol_to_cdecl \
17594 lt_cv_sys_global_symbol_to_import \
17595 lt_cv_sys_global_symbol_to_c_name_address \
17596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17597 lt_cv_nm_interface \
17598 nm_file_list_spec \
17599 lt_cv_truncate_bin \
17600 lt_prog_compiler_no_builtin_flag \
17601 lt_prog_compiler_pic \
17602 lt_prog_compiler_wl \
17603 lt_prog_compiler_static \
17604 lt_cv_prog_compiler_c_o \
17605 need_locks \
17606 MANIFEST_TOOL \
17607 DSYMUTIL \
17608 NMEDIT \
17609 LIPO \
17610 OTOOL \
17611 OTOOL64 \
17612 shrext_cmds \
17613 export_dynamic_flag_spec \
17614 whole_archive_flag_spec \
17615 compiler_needs_object \
17616 with_gnu_ld \
17617 allow_undefined_flag \
17618 no_undefined_flag \
17619 hardcode_libdir_flag_spec \
17620 hardcode_libdir_separator \
17621 exclude_expsyms \
17622 include_expsyms \
17623 file_list_spec \
17624 variables_saved_for_relink \
17625 libname_spec \
17626 library_names_spec \
17627 soname_spec \
17628 install_override_mode \
17629 finish_eval \
17630 old_striplib \
17631 striplib \
17632 compiler_lib_search_dirs \
17633 predep_objects \
17634 postdep_objects \
17635 predeps \
17636 postdeps \
17637 compiler_lib_search_path \
17638 LD_CXX \
17639 reload_flag_CXX \
17640 compiler_CXX \
17641 lt_prog_compiler_no_builtin_flag_CXX \
17642 lt_prog_compiler_pic_CXX \
17643 lt_prog_compiler_wl_CXX \
17644 lt_prog_compiler_static_CXX \
17645 lt_cv_prog_compiler_c_o_CXX \
17646 export_dynamic_flag_spec_CXX \
17647 whole_archive_flag_spec_CXX \
17648 compiler_needs_object_CXX \
17649 with_gnu_ld_CXX \
17650 allow_undefined_flag_CXX \
17651 no_undefined_flag_CXX \
17652 hardcode_libdir_flag_spec_CXX \
17653 hardcode_libdir_separator_CXX \
17654 exclude_expsyms_CXX \
17655 include_expsyms_CXX \
17656 file_list_spec_CXX \
17657 compiler_lib_search_dirs_CXX \
17658 predep_objects_CXX \
17659 postdep_objects_CXX \
17660 predeps_CXX \
17661 postdeps_CXX \
17662 compiler_lib_search_path_CXX; do
17663 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17664 *[\\\\\\\`\\"\\\$]*)
17665 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17666 ;;
17667 *)
17668 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17669 ;;
17670 esac
17671 done
17672
17673 # Double-quote double-evaled strings.
17674 for var in reload_cmds \
17675 old_postinstall_cmds \
17676 old_postuninstall_cmds \
17677 old_archive_cmds \
17678 extract_expsyms_cmds \
17679 old_archive_from_new_cmds \
17680 old_archive_from_expsyms_cmds \
17681 archive_cmds \
17682 archive_expsym_cmds \
17683 module_cmds \
17684 module_expsym_cmds \
17685 export_symbols_cmds \
17686 prelink_cmds \
17687 postlink_cmds \
17688 postinstall_cmds \
17689 postuninstall_cmds \
17690 finish_cmds \
17691 sys_lib_search_path_spec \
17692 configure_time_dlsearch_path \
17693 configure_time_lt_sys_library_path \
17694 reload_cmds_CXX \
17695 old_archive_cmds_CXX \
17696 old_archive_from_new_cmds_CXX \
17697 old_archive_from_expsyms_cmds_CXX \
17698 archive_cmds_CXX \
17699 archive_expsym_cmds_CXX \
17700 module_cmds_CXX \
17701 module_expsym_cmds_CXX \
17702 export_symbols_cmds_CXX \
17703 prelink_cmds_CXX \
17704 postlink_cmds_CXX; do
17705 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17706 *[\\\\\\\`\\"\\\$]*)
17707 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17708 ;;
17709 *)
17710 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17711 ;;
17712 esac
17713 done
17714
17715 ac_aux_dir='$ac_aux_dir'
17716
17717 # See if we are running on zsh, and set the options that allow our
17718 # commands through without removal of \ escapes INIT.
17719 if test -n "\${ZSH_VERSION+set}"; then
17720 setopt NO_GLOB_SUBST
17721 fi
17722
17723
17724 PACKAGE='$PACKAGE'
17725 VERSION='$VERSION'
17726 RM='$RM'
17727 ofile='$ofile'
17728
17729
17730
17731
17732
17733
17734 _ACEOF
17735
17736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17737
17738 # Handling of arguments.
17739 for ac_config_target in $ac_config_targets
17740 do
17741 case $ac_config_target in
17742 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17743 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17744 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17745 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17746 "clang_delta/Makefile") CONFIG_FILES="$CONFIG_FILES clang_delta/Makefile" ;;
17747 "clex/Makefile") CONFIG_FILES="$CONFIG_FILES clex/Makefile" ;;
17748 "creduce/Makefile") CONFIG_FILES="$CONFIG_FILES creduce/Makefile" ;;
17749 "delta/Makefile") CONFIG_FILES="$CONFIG_FILES delta/Makefile" ;;
17750 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17751 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17752 "unifdef/Makefile") CONFIG_FILES="$CONFIG_FILES unifdef/Makefile" ;;
17753
17754 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17755 esac
17756 done
17757
17758
17759 # If the user did not use the arguments to specify the items to instantiate,
17760 # then the envvar interface is used. Set only those that are not.
17761 # We use the long form for the default assignment because of an extremely
17762 # bizarre bug on SunOS 4.1.3.
17763 if $ac_need_defaults; then
17764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17767 fi
17768
17769 # Have a temporary directory for convenience. Make it in the build tree
17770 # simply because there is no reason against having it here, and in addition,
17771 # creating and moving files from /tmp can sometimes cause problems.
17772 # Hook for its removal unless debugging.
17773 # Note that there is a small window in which the directory will not be cleaned:
17774 # after its creation but before its name has been assigned to `$tmp'.
17775 $debug ||
17776 {
17777 tmp= ac_tmp=
17778 trap 'exit_status=$?
17779 : "${ac_tmp:=$tmp}"
17780 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17781 ' 0
17782 trap 'as_fn_exit 1' 1 2 13 15
17783 }
17784 # Create a (secure) tmp directory for tmp files.
17785
17786 {
17787 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17788 test -d "$tmp"
17789 } ||
17790 {
17791 tmp=./conf$$-$RANDOM
17792 (umask 077 && mkdir "$tmp")
17793 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17794 ac_tmp=$tmp
17795
17796 # Set up the scripts for CONFIG_FILES section.
17797 # No need to generate them if there are no CONFIG_FILES.
17798 # This happens for instance with `./config.status config.h'.
17799 if test -n "$CONFIG_FILES"; then
17800
17801
17802 ac_cr=`echo X | tr X '\015'`
17803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17804 # But we know of no other shell where ac_cr would be empty at this
17805 # point, so we can use a bashism as a fallback.
17806 if test "x$ac_cr" = x; then
17807 eval ac_cr=\$\'\\r\'
17808 fi
17809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17811 ac_cs_awk_cr='\\r'
17812 else
17813 ac_cs_awk_cr=$ac_cr
17814 fi
17815
17816 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17817 _ACEOF
17818
17819
17820 {
17821 echo "cat >conf$$subs.awk <<_ACEOF" &&
17822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17823 echo "_ACEOF"
17824 } >conf$$subs.sh ||
17825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17827 ac_delim='%!_!# '
17828 for ac_last_try in false false false false false :; do
17829 . ./conf$$subs.sh ||
17830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17831
17832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17833 if test $ac_delim_n = $ac_delim_num; then
17834 break
17835 elif $ac_last_try; then
17836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17837 else
17838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17839 fi
17840 done
17841 rm -f conf$$subs.sh
17842
17843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17844 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17845 _ACEOF
17846 sed -n '
17847 h
17848 s/^/S["/; s/!.*/"]=/
17849 p
17850 g
17851 s/^[^!]*!//
17852 :repl
17853 t repl
17854 s/'"$ac_delim"'$//
17855 t delim
17856 :nl
17857 h
17858 s/\(.\{148\}\)..*/\1/
17859 t more1
17860 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17861 p
17862 n
17863 b repl
17864 :more1
17865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17866 p
17867 g
17868 s/.\{148\}//
17869 t nl
17870 :delim
17871 h
17872 s/\(.\{148\}\)..*/\1/
17873 t more2
17874 s/["\\]/\\&/g; s/^/"/; s/$/"/
17875 p
17876 b
17877 :more2
17878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17879 p
17880 g
17881 s/.\{148\}//
17882 t delim
17883 ' <conf$$subs.awk | sed '
17884 /^[^""]/{
17885 N
17886 s/\n//
17887 }
17888 ' >>$CONFIG_STATUS || ac_write_fail=1
17889 rm -f conf$$subs.awk
17890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17891 _ACAWK
17892 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17893 for (key in S) S_is_set[key] = 1
17894 FS = ""
17895
17896 }
17897 {
17898 line = $ 0
17899 nfields = split(line, field, "@")
17900 substed = 0
17901 len = length(field[1])
17902 for (i = 2; i < nfields; i++) {
17903 key = field[i]
17904 keylen = length(key)
17905 if (S_is_set[key]) {
17906 value = S[key]
17907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17908 len += length(value) + length(field[++i])
17909 substed = 1
17910 } else
17911 len += 1 + keylen
17912 }
17913
17914 print line
17915 }
17916
17917 _ACAWK
17918 _ACEOF
17919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17922 else
17923 cat
17924 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17925 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17926 _ACEOF
17927
17928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17930 # trailing colons and then remove the whole line if VPATH becomes empty
17931 # (actually we leave an empty line to preserve line numbers).
17932 if test "x$srcdir" = x.; then
17933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17934 h
17935 s///
17936 s/^/:/
17937 s/[ ]*$/:/
17938 s/:\$(srcdir):/:/g
17939 s/:\${srcdir}:/:/g
17940 s/:@srcdir@:/:/g
17941 s/^:*//
17942 s/:*$//
17943 x
17944 s/\(=[ ]*\).*/\1/
17945 G
17946 s/\n//
17947 s/^[^=]*=[ ]*$//
17948 }'
17949 fi
17950
17951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952 fi # test -n "$CONFIG_FILES"
17953
17954 # Set up the scripts for CONFIG_HEADERS section.
17955 # No need to generate them if there are no CONFIG_HEADERS.
17956 # This happens for instance with `./config.status Makefile'.
17957 if test -n "$CONFIG_HEADERS"; then
17958 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17959 BEGIN {
17960 _ACEOF
17961
17962 # Transform confdefs.h into an awk script `defines.awk', embedded as
17963 # here-document in config.status, that substitutes the proper values into
17964 # config.h.in to produce config.h.
17965
17966 # Create a delimiter string that does not exist in confdefs.h, to ease
17967 # handling of long lines.
17968 ac_delim='%!_!# '
17969 for ac_last_try in false false :; do
17970 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17971 if test -z "$ac_tt"; then
17972 break
17973 elif $ac_last_try; then
17974 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17975 else
17976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17977 fi
17978 done
17979
17980 # For the awk script, D is an array of macro values keyed by name,
17981 # likewise P contains macro parameters if any. Preserve backslash
17982 # newline sequences.
17983
17984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17985 sed -n '
17986 s/.\{148\}/&'"$ac_delim"'/g
17987 t rset
17988 :rset
17989 s/^[ ]*#[ ]*define[ ][ ]*/ /
17990 t def
17991 d
17992 :def
17993 s/\\$//
17994 t bsnl
17995 s/["\\]/\\&/g
17996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17997 D["\1"]=" \3"/p
17998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17999 d
18000 :bsnl
18001 s/["\\]/\\&/g
18002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18003 D["\1"]=" \3\\\\\\n"\\/p
18004 t cont
18005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18006 t cont
18007 d
18008 :cont
18009 n
18010 s/.\{148\}/&'"$ac_delim"'/g
18011 t clear
18012 :clear
18013 s/\\$//
18014 t bsnlc
18015 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18016 d
18017 :bsnlc
18018 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18019 b cont
18020 ' <confdefs.h | sed '
18021 s/'"$ac_delim"'/"\\\
18022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18023
18024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025 for (key in D) D_is_set[key] = 1
18026 FS = ""
18027 }
18028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18029 line = \$ 0
18030 split(line, arg, " ")
18031 if (arg[1] == "#") {
18032 defundef = arg[2]
18033 mac1 = arg[3]
18034 } else {
18035 defundef = substr(arg[1], 2)
18036 mac1 = arg[2]
18037 }
18038 split(mac1, mac2, "(") #)
18039 macro = mac2[1]
18040 prefix = substr(line, 1, index(line, defundef) - 1)
18041 if (D_is_set[macro]) {
18042 # Preserve the white space surrounding the "#".
18043 print prefix "define", macro P[macro] D[macro]
18044 next
18045 } else {
18046 # Replace #undef with comments. This is necessary, for example,
18047 # in the case of _POSIX_SOURCE, which is predefined and required
18048 # on some systems where configure will not decide to define it.
18049 if (defundef == "undef") {
18050 print "/*", prefix defundef, macro, "*/"
18051 next
18052 }
18053 }
18054 }
18055 { print }
18056 _ACAWK
18057 _ACEOF
18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18060 fi # test -n "$CONFIG_HEADERS"
18061
18062
18063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18064 shift
18065 for ac_tag
18066 do
18067 case $ac_tag in
18068 :[FHLC]) ac_mode=$ac_tag; continue;;
18069 esac
18070 case $ac_mode$ac_tag in
18071 :[FHL]*:*);;
18072 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18073 :[FH]-) ac_tag=-:-;;
18074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18075 esac
18076 ac_save_IFS=$IFS
18077 IFS=:
18078 set x $ac_tag
18079 IFS=$ac_save_IFS
18080 shift
18081 ac_file=$1
18082 shift
18083
18084 case $ac_mode in
18085 :L) ac_source=$1;;
18086 :[FH])
18087 ac_file_inputs=
18088 for ac_f
18089 do
18090 case $ac_f in
18091 -) ac_f="$ac_tmp/stdin";;
18092 *) # Look for the file first in the build tree, then in the source tree
18093 # (if the path is not absolute). The absolute path cannot be DOS-style,
18094 # because $ac_f cannot contain `:'.
18095 test -f "$ac_f" ||
18096 case $ac_f in
18097 [\\/$]*) false;;
18098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18099 esac ||
18100 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18101 esac
18102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18103 as_fn_append ac_file_inputs " '$ac_f'"
18104 done
18105
18106 # Let's still pretend it is `configure' which instantiates (i.e., don't
18107 # use $as_me), people would be surprised to read:
18108 # /* config.h. Generated by config.status. */
18109 configure_input='Generated from '`
18110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18111 `' by configure.'
18112 if test x"$ac_file" != x-; then
18113 configure_input="$ac_file. $configure_input"
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18115 $as_echo "$as_me: creating $ac_file" >&6;}
18116 fi
18117 # Neutralize special characters interpreted by sed in replacement strings.
18118 case $configure_input in #(
18119 *\&* | *\|* | *\\* )
18120 ac_sed_conf_input=`$as_echo "$configure_input" |
18121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18122 *) ac_sed_conf_input=$configure_input;;
18123 esac
18124
18125 case $ac_tag in
18126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18128 esac
18129 ;;
18130 esac
18131
18132 ac_dir=`$as_dirname -- "$ac_file" ||
18133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134 X"$ac_file" : 'X\(//\)[^/]' \| \
18135 X"$ac_file" : 'X\(//\)$' \| \
18136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18137 $as_echo X"$ac_file" |
18138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18139 s//\1/
18140 q
18141 }
18142 /^X\(\/\/\)[^/].*/{
18143 s//\1/
18144 q
18145 }
18146 /^X\(\/\/\)$/{
18147 s//\1/
18148 q
18149 }
18150 /^X\(\/\).*/{
18151 s//\1/
18152 q
18153 }
18154 s/.*/./; q'`
18155 as_dir="$ac_dir"; as_fn_mkdir_p
18156 ac_builddir=.
18157
18158 case "$ac_dir" in
18159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18160 *)
18161 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18162 # A ".." for each directory in $ac_dir_suffix.
18163 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18164 case $ac_top_builddir_sub in
18165 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18166 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18167 esac ;;
18168 esac
18169 ac_abs_top_builddir=$ac_pwd
18170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18171 # for backward compatibility:
18172 ac_top_builddir=$ac_top_build_prefix
18173
18174 case $srcdir in
18175 .) # We are building in place.
18176 ac_srcdir=.
18177 ac_top_srcdir=$ac_top_builddir_sub
18178 ac_abs_top_srcdir=$ac_pwd ;;
18179 [\\/]* | ?:[\\/]* ) # Absolute name.
18180 ac_srcdir=$srcdir$ac_dir_suffix;
18181 ac_top_srcdir=$srcdir
18182 ac_abs_top_srcdir=$srcdir ;;
18183 *) # Relative name.
18184 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18185 ac_top_srcdir=$ac_top_build_prefix$srcdir
18186 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18187 esac
18188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18189
18190
18191 case $ac_mode in
18192 :F)
18193 #
18194 # CONFIG_FILE
18195 #
18196
18197 case $INSTALL in
18198 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18199 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18200 esac
18201 ac_MKDIR_P=$MKDIR_P
18202 case $MKDIR_P in
18203 [\\/$]* | ?:[\\/]* ) ;;
18204 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18205 esac
18206 _ACEOF
18207
18208
18209 # Neutralize VPATH when `$srcdir' = `.'.
18210 # Shell code in configure.ac might set extrasub.
18211 # FIXME: do we really want to maintain this feature?
18212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18213 ac_sed_extra="$ac_vpsub
18214 $extrasub
18215 _ACEOF
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 :t
18218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18219 s|@configure_input@|$ac_sed_conf_input|;t t
18220 s&@top_builddir@&$ac_top_builddir_sub&;t t
18221 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18222 s&@srcdir@&$ac_srcdir&;t t
18223 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18224 s&@top_srcdir@&$ac_top_srcdir&;t t
18225 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18226 s&@builddir@&$ac_builddir&;t t
18227 s&@abs_builddir@&$ac_abs_builddir&;t t
18228 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18229 s&@INSTALL@&$ac_INSTALL&;t t
18230 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18231 "
18232 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18233 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18234
18235
18236 rm -f "$ac_tmp/stdin"
18237 case $ac_file in
18238 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18239 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18240 esac \
18241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18242 ;;
18243 :H)
18244 #
18245 # CONFIG_HEADER
18246 #
18247 if test x"$ac_file" != x-; then
18248 {
18249 $as_echo "/* $configure_input */" \
18250 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18251 } >"$ac_tmp/config.h" \
18252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18253 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18255 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18256 else
18257 rm -f "$ac_file"
18258 mv "$ac_tmp/config.h" "$ac_file" \
18259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18260 fi
18261 else
18262 $as_echo "/* $configure_input */" \
18263 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18264 || as_fn_error $? "could not create -" "$LINENO" 5
18265 fi
18266 # Compute "$ac_file"'s index in $config_headers.
18267 _am_arg="$ac_file"
18268 _am_stamp_count=1
18269 for _am_header in $config_headers :; do
18270 case $_am_header in
18271 $_am_arg | $_am_arg:* )
18272 break ;;
18273 * )
18274 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18275 esac
18276 done
18277 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18278 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18279 X"$_am_arg" : 'X\(//\)[^/]' \| \
18280 X"$_am_arg" : 'X\(//\)$' \| \
18281 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18282 $as_echo X"$_am_arg" |
18283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18284 s//\1/
18285 q
18286 }
18287 /^X\(\/\/\)[^/].*/{
18288 s//\1/
18289 q
18290 }
18291 /^X\(\/\/\)$/{
18292 s//\1/
18293 q
18294 }
18295 /^X\(\/\).*/{
18296 s//\1/
18297 q
18298 }
18299 s/.*/./; q'`/stamp-h$_am_stamp_count
18300 ;;
18301
18302 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18303 $as_echo "$as_me: executing $ac_file commands" >&6;}
18304 ;;
18305 esac
18306
18307
18308 case $ac_file$ac_mode in
18309 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18310 # Older Autoconf quotes --file arguments for eval, but not when files
18311 # are listed without --file. Let's play safe and only enable the eval
18312 # if we detect the quoting.
18313 # TODO: see whether this extra hack can be removed once we start
18314 # requiring Autoconf 2.70 or later.
18315 case $CONFIG_FILES in #(
18316 *\'*) :
18317 eval set x "$CONFIG_FILES" ;; #(
18318 *) :
18319 set x $CONFIG_FILES ;; #(
18320 *) :
18321 ;;
18322 esac
18323 shift
18324 # Used to flag and report bootstrapping failures.
18325 am_rc=0
18326 for am_mf
18327 do
18328 # Strip MF so we end up with the name of the file.
18329 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18330 # Check whether this is an Automake generated Makefile which includes
18331 # dependency-tracking related rules and includes.
18332 # Grep'ing the whole file directly is not great: AIX grep has a line
18333 # limit of 2048, but all sed's we know have understand at least 4000.
18334 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18335 || continue
18336 am_dirpart=`$as_dirname -- "$am_mf" ||
18337 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18338 X"$am_mf" : 'X\(//\)[^/]' \| \
18339 X"$am_mf" : 'X\(//\)$' \| \
18340 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18341 $as_echo X"$am_mf" |
18342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18343 s//\1/
18344 q
18345 }
18346 /^X\(\/\/\)[^/].*/{
18347 s//\1/
18348 q
18349 }
18350 /^X\(\/\/\)$/{
18351 s//\1/
18352 q
18353 }
18354 /^X\(\/\).*/{
18355 s//\1/
18356 q
18357 }
18358 s/.*/./; q'`
18359 am_filepart=`$as_basename -- "$am_mf" ||
18360 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18361 X"$am_mf" : 'X\(//\)$' \| \
18362 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18363 $as_echo X/"$am_mf" |
18364 sed '/^.*\/\([^/][^/]*\)\/*$/{
18365 s//\1/
18366 q
18367 }
18368 /^X\/\(\/\/\)$/{
18369 s//\1/
18370 q
18371 }
18372 /^X\/\(\/\).*/{
18373 s//\1/
18374 q
18375 }
18376 s/.*/./; q'`
18377 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18378 && sed -e '/# am--include-marker/d' "$am_filepart" \
18379 | $MAKE -f - am--depfiles" >&5
18380 (cd "$am_dirpart" \
18381 && sed -e '/# am--include-marker/d' "$am_filepart" \
18382 | $MAKE -f - am--depfiles) >&5 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } || am_rc=$?
18386 done
18387 if test $am_rc -ne 0; then
18388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18390 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18391 for automatic dependency tracking. If GNU make was not used, consider
18392 re-running the configure script with MAKE=\"gmake\" (or whatever is
18393 necessary). You can also try re-running configure with the
18394 '--disable-dependency-tracking' option to at least be able to build
18395 the package (albeit without support for automatic dependency tracking).
18396 See \`config.log' for more details" "$LINENO" 5; }
18397 fi
18398 { am_dirpart=; unset am_dirpart;}
18399 { am_filepart=; unset am_filepart;}
18400 { am_mf=; unset am_mf;}
18401 { am_rc=; unset am_rc;}
18402 rm -f conftest-deps.mk
18403 }
18404 ;;
18405 "libtool":C)
18406
18407 # See if we are running on zsh, and set the options that allow our
18408 # commands through without removal of \ escapes.
18409 if test -n "${ZSH_VERSION+set}"; then
18410 setopt NO_GLOB_SUBST
18411 fi
18412
18413 cfgfile=${ofile}T
18414 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18415 $RM "$cfgfile"
18416
18417 cat <<_LT_EOF >> "$cfgfile"
18418 #! $SHELL
18419 # Generated automatically by $as_me ($PACKAGE) $VERSION
18420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18421 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18422
18423 # Provide generalized library-building support services.
18424 # Written by Gordon Matzigkeit, 1996
18425
18426 # Copyright (C) 2014 Free Software Foundation, Inc.
18427 # This is free software; see the source for copying conditions. There is NO
18428 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18429
18430 # GNU Libtool is free software; you can redistribute it and/or modify
18431 # it under the terms of the GNU General Public License as published by
18432 # the Free Software Foundation; either version 2 of of the License, or
18433 # (at your option) any later version.
18434 #
18435 # As a special exception to the GNU General Public License, if you
18436 # distribute this file as part of a program or library that is built
18437 # using GNU Libtool, you may include this file under the same
18438 # distribution terms that you use for the rest of that program.
18439 #
18440 # GNU Libtool is distributed in the hope that it will be useful, but
18441 # WITHOUT ANY WARRANTY; without even the implied warranty of
18442 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18443 # GNU General Public License for more details.
18444 #
18445 # You should have received a copy of the GNU General Public License
18446 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18447
18448
18449 # The names of the tagged configurations supported by this script.
18450 available_tags='CXX '
18451
18452 # Configured defaults for sys_lib_dlsearch_path munging.
18453 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18454
18455 # ### BEGIN LIBTOOL CONFIG
18456
18457 # Which release of libtool.m4 was used?
18458 macro_version=$macro_version
18459 macro_revision=$macro_revision
18460
18461 # Whether or not to build shared libraries.
18462 build_libtool_libs=$enable_shared
18463
18464 # Whether or not to build static libraries.
18465 build_old_libs=$enable_static
18466
18467 # What type of objects to build.
18468 pic_mode=$pic_mode
18469
18470 # Whether or not to optimize for fast installation.
18471 fast_install=$enable_fast_install
18472
18473 # Shared archive member basename,for filename based shared library versioning on AIX.
18474 shared_archive_member_spec=$shared_archive_member_spec
18475
18476 # Shell to use when invoking shell scripts.
18477 SHELL=$lt_SHELL
18478
18479 # An echo program that protects backslashes.
18480 ECHO=$lt_ECHO
18481
18482 # The PATH separator for the build system.
18483 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18484
18485 # The host system.
18486 host_alias=$host_alias
18487 host=$host
18488 host_os=$host_os
18489
18490 # The build system.
18491 build_alias=$build_alias
18492 build=$build
18493 build_os=$build_os
18494
18495 # A sed program that does not truncate output.
18496 SED=$lt_SED
18497
18498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18499 Xsed="\$SED -e 1s/^X//"
18500
18501 # A grep program that handles long lines.
18502 GREP=$lt_GREP
18503
18504 # An ERE matcher.
18505 EGREP=$lt_EGREP
18506
18507 # A literal string matcher.
18508 FGREP=$lt_FGREP
18509
18510 # A BSD- or MS-compatible name lister.
18511 NM=$lt_NM
18512
18513 # Whether we need soft or hard links.
18514 LN_S=$lt_LN_S
18515
18516 # What is the maximum length of a command?
18517 max_cmd_len=$max_cmd_len
18518
18519 # Object file suffix (normally "o").
18520 objext=$ac_objext
18521
18522 # Executable file suffix (normally "").
18523 exeext=$exeext
18524
18525 # whether the shell understands "unset".
18526 lt_unset=$lt_unset
18527
18528 # turn spaces into newlines.
18529 SP2NL=$lt_lt_SP2NL
18530
18531 # turn newlines into spaces.
18532 NL2SP=$lt_lt_NL2SP
18533
18534 # convert \$build file names to \$host format.
18535 to_host_file_cmd=$lt_cv_to_host_file_cmd
18536
18537 # convert \$build files to toolchain format.
18538 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18539
18540 # An object symbol dumper.
18541 OBJDUMP=$lt_OBJDUMP
18542
18543 # Method to check whether dependent libraries are shared objects.
18544 deplibs_check_method=$lt_deplibs_check_method
18545
18546 # Command to use when deplibs_check_method = "file_magic".
18547 file_magic_cmd=$lt_file_magic_cmd
18548
18549 # How to find potential files when deplibs_check_method = "file_magic".
18550 file_magic_glob=$lt_file_magic_glob
18551
18552 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18553 want_nocaseglob=$lt_want_nocaseglob
18554
18555 # DLL creation program.
18556 DLLTOOL=$lt_DLLTOOL
18557
18558 # Command to associate shared and link libraries.
18559 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18560
18561 # The archiver.
18562 AR=$lt_AR
18563
18564 # Flags to create an archive.
18565 AR_FLAGS=$lt_AR_FLAGS
18566
18567 # How to feed a file listing to the archiver.
18568 archiver_list_spec=$lt_archiver_list_spec
18569
18570 # A symbol stripping program.
18571 STRIP=$lt_STRIP
18572
18573 # Commands used to install an old-style archive.
18574 RANLIB=$lt_RANLIB
18575 old_postinstall_cmds=$lt_old_postinstall_cmds
18576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18577
18578 # Whether to use a lock for old archive extraction.
18579 lock_old_archive_extraction=$lock_old_archive_extraction
18580
18581 # A C compiler.
18582 LTCC=$lt_CC
18583
18584 # LTCC compiler flags.
18585 LTCFLAGS=$lt_CFLAGS
18586
18587 # Take the output of nm and produce a listing of raw symbols and C names.
18588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18589
18590 # Transform the output of nm in a proper C declaration.
18591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18592
18593 # Transform the output of nm into a list of symbols to manually relocate.
18594 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18595
18596 # Transform the output of nm in a C name address pair.
18597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18598
18599 # Transform the output of nm in a C name address pair when lib prefix is needed.
18600 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18601
18602 # The name lister interface.
18603 nm_interface=$lt_lt_cv_nm_interface
18604
18605 # Specify filename containing input files for \$NM.
18606 nm_file_list_spec=$lt_nm_file_list_spec
18607
18608 # The root where to search for dependent libraries,and where our libraries should be installed.
18609 lt_sysroot=$lt_sysroot
18610
18611 # Command to truncate a binary pipe.
18612 lt_truncate_bin=$lt_lt_cv_truncate_bin
18613
18614 # The name of the directory that contains temporary libtool files.
18615 objdir=$objdir
18616
18617 # Used to examine libraries when file_magic_cmd begins with "file".
18618 MAGIC_CMD=$MAGIC_CMD
18619
18620 # Must we lock files when doing compilation?
18621 need_locks=$lt_need_locks
18622
18623 # Manifest tool.
18624 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18625
18626 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18627 DSYMUTIL=$lt_DSYMUTIL
18628
18629 # Tool to change global to local symbols on Mac OS X.
18630 NMEDIT=$lt_NMEDIT
18631
18632 # Tool to manipulate fat objects and archives on Mac OS X.
18633 LIPO=$lt_LIPO
18634
18635 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18636 OTOOL=$lt_OTOOL
18637
18638 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18639 OTOOL64=$lt_OTOOL64
18640
18641 # Old archive suffix (normally "a").
18642 libext=$libext
18643
18644 # Shared library suffix (normally ".so").
18645 shrext_cmds=$lt_shrext_cmds
18646
18647 # The commands to extract the exported symbol list from a shared archive.
18648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18649
18650 # Variables whose values should be saved in libtool wrapper scripts and
18651 # restored at link time.
18652 variables_saved_for_relink=$lt_variables_saved_for_relink
18653
18654 # Do we need the "lib" prefix for modules?
18655 need_lib_prefix=$need_lib_prefix
18656
18657 # Do we need a version for libraries?
18658 need_version=$need_version
18659
18660 # Library versioning type.
18661 version_type=$version_type
18662
18663 # Shared library runtime path variable.
18664 runpath_var=$runpath_var
18665
18666 # Shared library path variable.
18667 shlibpath_var=$shlibpath_var
18668
18669 # Is shlibpath searched before the hard-coded library search path?
18670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18671
18672 # Format of library name prefix.
18673 libname_spec=$lt_libname_spec
18674
18675 # List of archive names. First name is the real one, the rest are links.
18676 # The last name is the one that the linker finds with -lNAME
18677 library_names_spec=$lt_library_names_spec
18678
18679 # The coded name of the library, if different from the real name.
18680 soname_spec=$lt_soname_spec
18681
18682 # Permission mode override for installation of shared libraries.
18683 install_override_mode=$lt_install_override_mode
18684
18685 # Command to use after installation of a shared archive.
18686 postinstall_cmds=$lt_postinstall_cmds
18687
18688 # Command to use after uninstallation of a shared archive.
18689 postuninstall_cmds=$lt_postuninstall_cmds
18690
18691 # Commands used to finish a libtool library installation in a directory.
18692 finish_cmds=$lt_finish_cmds
18693
18694 # As "finish_cmds", except a single script fragment to be evaled but
18695 # not shown.
18696 finish_eval=$lt_finish_eval
18697
18698 # Whether we should hardcode library paths into libraries.
18699 hardcode_into_libs=$hardcode_into_libs
18700
18701 # Compile-time system search path for libraries.
18702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18703
18704 # Detected run-time system search path for libraries.
18705 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18706
18707 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18708 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18709
18710 # Whether dlopen is supported.
18711 dlopen_support=$enable_dlopen
18712
18713 # Whether dlopen of programs is supported.
18714 dlopen_self=$enable_dlopen_self
18715
18716 # Whether dlopen of statically linked programs is supported.
18717 dlopen_self_static=$enable_dlopen_self_static
18718
18719 # Commands to strip libraries.
18720 old_striplib=$lt_old_striplib
18721 striplib=$lt_striplib
18722
18723
18724 # The linker used to build libraries.
18725 LD=$lt_LD
18726
18727 # How to create reloadable object files.
18728 reload_flag=$lt_reload_flag
18729 reload_cmds=$lt_reload_cmds
18730
18731 # Commands used to build an old-style archive.
18732 old_archive_cmds=$lt_old_archive_cmds
18733
18734 # A language specific compiler.
18735 CC=$lt_compiler
18736
18737 # Is the compiler the GNU compiler?
18738 with_gcc=$GCC
18739
18740 # Compiler flag to turn off builtin functions.
18741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18742
18743 # Additional compiler flags for building library objects.
18744 pic_flag=$lt_lt_prog_compiler_pic
18745
18746 # How to pass a linker flag through the compiler.
18747 wl=$lt_lt_prog_compiler_wl
18748
18749 # Compiler flag to prevent dynamic linking.
18750 link_static_flag=$lt_lt_prog_compiler_static
18751
18752 # Does compiler simultaneously support -c and -o options?
18753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18754
18755 # Whether or not to add -lc for building shared libraries.
18756 build_libtool_need_lc=$archive_cmds_need_lc
18757
18758 # Whether or not to disallow shared libs when runtime libs are static.
18759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18760
18761 # Compiler flag to allow reflexive dlopens.
18762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18763
18764 # Compiler flag to generate shared objects directly from archives.
18765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18766
18767 # Whether the compiler copes with passing no objects directly.
18768 compiler_needs_object=$lt_compiler_needs_object
18769
18770 # Create an old-style archive from a shared archive.
18771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18772
18773 # Create a temporary old-style archive to link instead of a shared archive.
18774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18775
18776 # Commands used to build a shared archive.
18777 archive_cmds=$lt_archive_cmds
18778 archive_expsym_cmds=$lt_archive_expsym_cmds
18779
18780 # Commands used to build a loadable module if different from building
18781 # a shared archive.
18782 module_cmds=$lt_module_cmds
18783 module_expsym_cmds=$lt_module_expsym_cmds
18784
18785 # Whether we are building with GNU ld or not.
18786 with_gnu_ld=$lt_with_gnu_ld
18787
18788 # Flag that allows shared libraries with undefined symbols to be built.
18789 allow_undefined_flag=$lt_allow_undefined_flag
18790
18791 # Flag that enforces no undefined symbols.
18792 no_undefined_flag=$lt_no_undefined_flag
18793
18794 # Flag to hardcode \$libdir into a binary during linking.
18795 # This must work even if \$libdir does not exist
18796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18797
18798 # Whether we need a single "-rpath" flag with a separated argument.
18799 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18800
18801 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18802 # DIR into the resulting binary.
18803 hardcode_direct=$hardcode_direct
18804
18805 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18806 # DIR into the resulting binary and the resulting library dependency is
18807 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18808 # library is relocated.
18809 hardcode_direct_absolute=$hardcode_direct_absolute
18810
18811 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18812 # into the resulting binary.
18813 hardcode_minus_L=$hardcode_minus_L
18814
18815 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18816 # into the resulting binary.
18817 hardcode_shlibpath_var=$hardcode_shlibpath_var
18818
18819 # Set to "yes" if building a shared library automatically hardcodes DIR
18820 # into the library and all subsequent libraries and executables linked
18821 # against it.
18822 hardcode_automatic=$hardcode_automatic
18823
18824 # Set to yes if linker adds runtime paths of dependent libraries
18825 # to runtime path list.
18826 inherit_rpath=$inherit_rpath
18827
18828 # Whether libtool must link a program against all its dependency libraries.
18829 link_all_deplibs=$link_all_deplibs
18830
18831 # Set to "yes" if exported symbols are required.
18832 always_export_symbols=$always_export_symbols
18833
18834 # The commands to list exported symbols.
18835 export_symbols_cmds=$lt_export_symbols_cmds
18836
18837 # Symbols that should not be listed in the preloaded symbols.
18838 exclude_expsyms=$lt_exclude_expsyms
18839
18840 # Symbols that must always be exported.
18841 include_expsyms=$lt_include_expsyms
18842
18843 # Commands necessary for linking programs (against libraries) with templates.
18844 prelink_cmds=$lt_prelink_cmds
18845
18846 # Commands necessary for finishing linking programs.
18847 postlink_cmds=$lt_postlink_cmds
18848
18849 # Specify filename containing input files.
18850 file_list_spec=$lt_file_list_spec
18851
18852 # How to hardcode a shared library path into an executable.
18853 hardcode_action=$hardcode_action
18854
18855 # The directories searched by this compiler when creating a shared library.
18856 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18857
18858 # Dependencies to place before and after the objects being linked to
18859 # create a shared library.
18860 predep_objects=$lt_predep_objects
18861 postdep_objects=$lt_postdep_objects
18862 predeps=$lt_predeps
18863 postdeps=$lt_postdeps
18864
18865 # The library search path used internally by the compiler when linking
18866 # a shared library.
18867 compiler_lib_search_path=$lt_compiler_lib_search_path
18868
18869 # ### END LIBTOOL CONFIG
18870
18871 _LT_EOF
18872
18873 cat <<'_LT_EOF' >> "$cfgfile"
18874
18875 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18876
18877 # func_munge_path_list VARIABLE PATH
18878 # -----------------------------------
18879 # VARIABLE is name of variable containing _space_ separated list of
18880 # directories to be munged by the contents of PATH, which is string
18881 # having a format:
18882 # "DIR[:DIR]:"
18883 # string "DIR[ DIR]" will be prepended to VARIABLE
18884 # ":DIR[:DIR]"
18885 # string "DIR[ DIR]" will be appended to VARIABLE
18886 # "DIRP[:DIRP]::[DIRA:]DIRA"
18887 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18888 # "DIRA[ DIRA]" will be appended to VARIABLE
18889 # "DIR[:DIR]"
18890 # VARIABLE will be replaced by "DIR[ DIR]"
18891 func_munge_path_list ()
18892 {
18893 case x$2 in
18894 x)
18895 ;;
18896 *:)
18897 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18898 ;;
18899 x:*)
18900 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18901 ;;
18902 *::*)
18903 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18904 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18905 ;;
18906 *)
18907 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18908 ;;
18909 esac
18910 }
18911
18912
18913 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18914 func_cc_basename ()
18915 {
18916 for cc_temp in $*""; do
18917 case $cc_temp in
18918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18920 \-*) ;;
18921 *) break;;
18922 esac
18923 done
18924 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18925 }
18926
18927
18928 # ### END FUNCTIONS SHARED WITH CONFIGURE
18929
18930 _LT_EOF
18931
18932 case $host_os in
18933 aix3*)
18934 cat <<\_LT_EOF >> "$cfgfile"
18935 # AIX sometimes has problems with the GCC collect2 program. For some
18936 # reason, if we set the COLLECT_NAMES environment variable, the problems
18937 # vanish in a puff of smoke.
18938 if test set != "${COLLECT_NAMES+set}"; then
18939 COLLECT_NAMES=
18940 export COLLECT_NAMES
18941 fi
18942 _LT_EOF
18943 ;;
18944 esac
18945
18946
18947 ltmain=$ac_aux_dir/ltmain.sh
18948
18949
18950 # We use sed instead of cat because bash on DJGPP gets confused if
18951 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18952 # text mode, it properly converts lines to CR/LF. This bash problem
18953 # is reportedly fixed, but why not run on old versions too?
18954 sed '$q' "$ltmain" >> "$cfgfile" \
18955 || (rm -f "$cfgfile"; exit 1)
18956
18957 mv -f "$cfgfile" "$ofile" ||
18958 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18959 chmod +x "$ofile"
18960
18961
18962 cat <<_LT_EOF >> "$ofile"
18963
18964 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18965
18966 # The linker used to build libraries.
18967 LD=$lt_LD_CXX
18968
18969 # How to create reloadable object files.
18970 reload_flag=$lt_reload_flag_CXX
18971 reload_cmds=$lt_reload_cmds_CXX
18972
18973 # Commands used to build an old-style archive.
18974 old_archive_cmds=$lt_old_archive_cmds_CXX
18975
18976 # A language specific compiler.
18977 CC=$lt_compiler_CXX
18978
18979 # Is the compiler the GNU compiler?
18980 with_gcc=$GCC_CXX
18981
18982 # Compiler flag to turn off builtin functions.
18983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18984
18985 # Additional compiler flags for building library objects.
18986 pic_flag=$lt_lt_prog_compiler_pic_CXX
18987
18988 # How to pass a linker flag through the compiler.
18989 wl=$lt_lt_prog_compiler_wl_CXX
18990
18991 # Compiler flag to prevent dynamic linking.
18992 link_static_flag=$lt_lt_prog_compiler_static_CXX
18993
18994 # Does compiler simultaneously support -c and -o options?
18995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18996
18997 # Whether or not to add -lc for building shared libraries.
18998 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18999
19000 # Whether or not to disallow shared libs when runtime libs are static.
19001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19002
19003 # Compiler flag to allow reflexive dlopens.
19004 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19005
19006 # Compiler flag to generate shared objects directly from archives.
19007 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19008
19009 # Whether the compiler copes with passing no objects directly.
19010 compiler_needs_object=$lt_compiler_needs_object_CXX
19011
19012 # Create an old-style archive from a shared archive.
19013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19014
19015 # Create a temporary old-style archive to link instead of a shared archive.
19016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19017
19018 # Commands used to build a shared archive.
19019 archive_cmds=$lt_archive_cmds_CXX
19020 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19021
19022 # Commands used to build a loadable module if different from building
19023 # a shared archive.
19024 module_cmds=$lt_module_cmds_CXX
19025 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19026
19027 # Whether we are building with GNU ld or not.
19028 with_gnu_ld=$lt_with_gnu_ld_CXX
19029
19030 # Flag that allows shared libraries with undefined symbols to be built.
19031 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19032
19033 # Flag that enforces no undefined symbols.
19034 no_undefined_flag=$lt_no_undefined_flag_CXX
19035
19036 # Flag to hardcode \$libdir into a binary during linking.
19037 # This must work even if \$libdir does not exist
19038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19039
19040 # Whether we need a single "-rpath" flag with a separated argument.
19041 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19042
19043 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19044 # DIR into the resulting binary.
19045 hardcode_direct=$hardcode_direct_CXX
19046
19047 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19048 # DIR into the resulting binary and the resulting library dependency is
19049 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19050 # library is relocated.
19051 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19052
19053 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19054 # into the resulting binary.
19055 hardcode_minus_L=$hardcode_minus_L_CXX
19056
19057 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19058 # into the resulting binary.
19059 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19060
19061 # Set to "yes" if building a shared library automatically hardcodes DIR
19062 # into the library and all subsequent libraries and executables linked
19063 # against it.
19064 hardcode_automatic=$hardcode_automatic_CXX
19065
19066 # Set to yes if linker adds runtime paths of dependent libraries
19067 # to runtime path list.
19068 inherit_rpath=$inherit_rpath_CXX
19069
19070 # Whether libtool must link a program against all its dependency libraries.
19071 link_all_deplibs=$link_all_deplibs_CXX
19072
19073 # Set to "yes" if exported symbols are required.
19074 always_export_symbols=$always_export_symbols_CXX
19075
19076 # The commands to list exported symbols.
19077 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19078
19079 # Symbols that should not be listed in the preloaded symbols.
19080 exclude_expsyms=$lt_exclude_expsyms_CXX
19081
19082 # Symbols that must always be exported.
19083 include_expsyms=$lt_include_expsyms_CXX
19084
19085 # Commands necessary for linking programs (against libraries) with templates.
19086 prelink_cmds=$lt_prelink_cmds_CXX
19087
19088 # Commands necessary for finishing linking programs.
19089 postlink_cmds=$lt_postlink_cmds_CXX
19090
19091 # Specify filename containing input files.
19092 file_list_spec=$lt_file_list_spec_CXX
19093
19094 # How to hardcode a shared library path into an executable.
19095 hardcode_action=$hardcode_action_CXX
19096
19097 # The directories searched by this compiler when creating a shared library.
19098 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19099
19100 # Dependencies to place before and after the objects being linked to
19101 # create a shared library.
19102 predep_objects=$lt_predep_objects_CXX
19103 postdep_objects=$lt_postdep_objects_CXX
19104 predeps=$lt_predeps_CXX
19105 postdeps=$lt_postdeps_CXX
19106
19107 # The library search path used internally by the compiler when linking
19108 # a shared library.
19109 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19110
19111 # ### END LIBTOOL TAG CONFIG: CXX
19112 _LT_EOF
19113
19114 ;;
19115
19116 esac
19117 done # for ac_tag
19118
19119
19120 as_fn_exit 0
19121 _ACEOF
19122 ac_clean_files=$ac_clean_files_save
19123
19124 test $ac_write_fail = 0 ||
19125 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19126
19127
19128 # configure is writing to config.log, and then calls config.status.
19129 # config.status does its own redirection, appending to config.log.
19130 # Unfortunately, on DOS this fails, as config.log is still kept open
19131 # by configure, so config.status won't be able to write to it; its
19132 # output is simply discarded. So we exec the FD to /dev/null,
19133 # effectively closing config.log, so it can be properly (re)opened and
19134 # appended to by config.status. When coming back to configure, we
19135 # need to make the FD available again.
19136 if test "$no_create" != yes; then
19137 ac_cs_success=:
19138 ac_config_status_args=
19139 test "$silent" = yes &&
19140 ac_config_status_args="$ac_config_status_args --quiet"
19141 exec 5>/dev/null
19142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19143 exec 5>>config.log
19144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19145 # would make configure fail if this is the last instruction.
19146 $ac_cs_success || as_fn_exit 1
19147 fi
19148 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19150 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19151 fi
19152
19153
19154 ###############################################################################
19155
19156 # Warn about things that will be needed at run time, but which we did not find
19157 # at configure time.
19158 #
19159 # First warn about required run-time dependencies...
19160 #
19161 if test "$missing_required_runtime_prereq" = "yes"; then :
19162 $as_echo "## ------------------------------------------------------------------------ ##
19163 ## WARNING: You cannot run C-Reduce until you install missing dependencies! ##
19164 ## ------------------------------------------------------------------------ ##"
19165 fi
19166
19167 if test "$REQUIRED_PERL_MODULES" = "no"; then :
19168
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install Perl modules required by C-Reduce." >&5
19170 $as_echo "$as_me: WARNING: You must install Perl modules required by C-Reduce." >&2;}
19171
19172 fi
19173 if test "x$CLANG_FORMAT" = "xno"; then :
19174
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must install \`clang-format' before running C-Reduce." >&5
19176 $as_echo "$as_me: WARNING: You must install \`clang-format' before running C-Reduce." >&2;}
19177 CLANG_FORMAT=clang-format
19178
19179 fi
19180
19181 if test "$missing_required_runtime_prereq" = "yes"; then :
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Read the INSTALL.md file for info about C-Reduce dependencies." >&5
19183 $as_echo "$as_me: WARNING: Read the INSTALL.md file for info about C-Reduce dependencies." >&2;}
19184 fi
19185
19186 # ...and then warn about optional run-time dependencies.
19187 #
19188 if test "$missing_optional_runtime_prereq" = "yes"; then :
19189 $as_echo "## ------------------------------------------------------------------------ ##
19190 ## NOTE: The following optional C-Reduce dependencies were not found. ##
19191 ## ------------------------------------------------------------------------ ##"
19192 fi
19193
19194 if test "$OPTIONAL_PERL_MODULES" = "no"; then :
19195
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: One or more useful Perl modules were not found." >&5
19197 $as_echo "$as_me: One or more useful Perl modules were not found." >&6;}
19198
19199 fi
19200
19201 if test "$missing_optional_runtime_prereq" = "yes"; then :
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: C-Reduce will use these tools if you install them in the future." >&5
19203 $as_echo "$as_me: C-Reduce will use these tools if you install them in the future." >&6;}
19204 fi
19205 if test "$missing_optional_runtime_prereq" = "yes"; then :
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: Read the INSTALL.md file for info about C-Reduce dependencies." >&5
19207 $as_echo "$as_me: Read the INSTALL.md file for info about C-Reduce dependencies." >&6;}
19208 fi
19209
19210 ###############################################################################
19211
19212 ## End of file.