nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for isl 0.10.
4 #
5 # Report bugs to <isl-development@googlegroups.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18  
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36  
37  
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75  
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84  
85  
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92  
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105  
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117  
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129  
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135  
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138  
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161  
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168  
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177  
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192  
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222  
223  
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241  
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: isl-development@googlegroups.com about your system,
251 $0: including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264  
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276  
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284  
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294  
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300  
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339  
340  
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359  
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376  
377  
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393  
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400  
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406  
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412  
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431  
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438  
439  
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462  
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470  
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483  
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510  
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517  
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540  
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543  
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546  
547 SHELL=${CONFIG_SHELL-/bin/sh}
548  
549  
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552  
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557  
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569  
570 # Identity of this package.
571 PACKAGE_NAME='isl'
572 PACKAGE_TARNAME='isl'
573 PACKAGE_VERSION='0.10'
574 PACKAGE_STRING='isl 0.10'
575 PACKAGE_BUGREPORT='isl-development@googlegroups.com'
576 PACKAGE_URL=''
577  
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 # include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 # include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613  
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 GIT_HEAD_VERSION
619 GIT_HEAD
620 GIT_HEAD_ID
621 pkgconfig_libfile
622 pkgconfig_libdir
623 WARNING_FLAGS
624 HAVE_CLANG_FALSE
625 HAVE_CLANG_TRUE
626 LIB_CLANG_EDIT
627 llvm_config_found
628 CLANG_LIBS
629 CLANG_LDFLAGS
630 CLANG_CXXFLAGS
631 HAVE_PIPLIB_FALSE
632 HAVE_PIPLIB_TRUE
633 PIPLIB_LIBS
634 PIPLIB_LDFLAGS
635 PIPLIB_CPPFLAGS
636 NEED_GET_MEMORY_FUNCTIONS_FALSE
637 NEED_GET_MEMORY_FUNCTIONS_TRUE
638 GMP_LIBS
639 GMP_LDFLAGS
640 GMP_CPPFLAGS
641 GENERATE_DOC_FALSE
642 GENERATE_DOC_TRUE
643 POD2HTML
644 PDFLATEX
645 PERL
646 CXXCPP
647 CPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 LIBTOOL
669 PRTDIAG
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 am__fastdepCXX_FALSE
679 am__fastdepCXX_TRUE
680 CXXDEPMODE
681 ac_ct_CXX
682 CXXFLAGS
683 CXX
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 versioninfo
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_silent_rules
768 enable_dependency_tracking
769 enable_portable_binary
770 with_gcc_arch
771 enable_shared
772 enable_static
773 with_pic
774 enable_fast_install
775 with_gnu_ld
776 with_sysroot
777 enable_libtool_lock
778 with_gmp
779 with_gmp_prefix
780 with_gmp_exec_prefix
781 with_gmp_builddir
782 with_piplib
783 with_piplib_prefix
784 with_piplib_exec_prefix
785 with_piplib_builddir
786 with_clang
787 with_clang_prefix
788 with_clang_exec_prefix
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP
802 CXXCPP'
803  
804  
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826  
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852  
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863  
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869  
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871  
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875  
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880  
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885  
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892  
893 --config-cache | -C)
894 cache_file=config.cache ;;
895  
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900  
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907  
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923  
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928  
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933  
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949  
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958  
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962  
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969  
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974  
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980  
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987  
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992  
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997  
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004  
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009  
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016  
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021  
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025  
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029  
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033  
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042  
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047  
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054  
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061  
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078  
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083  
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088  
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092  
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098  
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109  
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114  
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119  
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126  
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131  
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134  
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137  
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153  
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169  
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173  
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180  
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187  
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190 ;;
1191  
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201  
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209  
1210 esac
1211 done
1212  
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216 fi
1217  
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224 fi
1225  
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1231 do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246  
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253  
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1259 If a cross compiler is detected then cross compile mode will be used" >&2
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264  
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267  
1268 test "$silent" = yes && exec 6>/dev/null
1269  
1270  
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277  
1278  
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337  
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures isl 0.10 to adapt to many kinds of systems.
1346  
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348  
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351  
1352 Defaults for the options are specified in brackets.
1353  
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364  
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370  
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375  
1376 For better control, use the options below.
1377  
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/isl]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398 _ACEOF
1399  
1400 cat <<\_ACEOF
1401  
1402 Program names:
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406  
1407 System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 _ACEOF
1411 fi
1412  
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of isl 0.10:";;
1416 esac
1417 cat <<\_ACEOF
1418  
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-silent-rules less verbose build output (undo: `make V=1')
1424 --disable-silent-rules verbose build output (undo: `make V=0')
1425 --disable-dependency-tracking speeds up one-time build
1426 --enable-dependency-tracking do not reject slow dependency extractors
1427 --enable-portable-binary
1428 disable compiler optimizations that would produce
1429 unportable binaries
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435  
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1440 instead of guessing
1441 --with-pic try to use only PIC/non-PIC objects [default=use
1442 both]
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-sysroot=DIR Search for dependent libraries within DIR
1445 (or the compiler's sysroot if not specified).
1446 --with-gmp=system|build Which gmp to use [default=system]
1447 --with-gmp-prefix=DIR Prefix of gmp installation
1448 --with-gmp-exec-prefix=DIR
1449 Exec prefix of gmp installation
1450 --with-gmp-builddir=DIR Location of gmp builddir
1451 --with-piplib=no|system|build
1452 Which piplib to use [default=no]
1453 --with-piplib-prefix=DIR
1454 Prefix of piplib installation
1455 --with-piplib-exec-prefix=DIR
1456 Exec prefix of piplib installation
1457 --with-piplib-builddir=DIR
1458 Location of piplib builddir
1459 --with-clang=system|no Which clang to use [default=no]
1460 --with-clang-prefix=DIR Prefix of clang installation
1461 --with-clang-exec-prefix=DIR
1462 Exec prefix of clang installation
1463  
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
1474 CPP C preprocessor
1475 CXXCPP C++ preprocessor
1476  
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479  
1480 Report bugs to <isl-development@googlegroups.com>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484  
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492  
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508  
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524  
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539  
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 isl configure 0.10
1544 generated by GNU Autoconf 2.68
1545  
1546 Copyright (C) 2010 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552  
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556  
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587  
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592  
1593 } # ac_fn_c_try_compile
1594  
1595 # ac_fn_cxx_try_compile LINENO
1596 # ----------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_cxx_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_cxx_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625  
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630  
1631 } # ac_fn_cxx_try_compile
1632  
1633 # ac_fn_c_try_run LINENO
1634 # ----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636 # that executables *can* be run.
1637 ac_fn_c_try_run ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>&5
1648 ac_status=$?
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651 { { case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_try") 2>&5
1658 ac_status=$?
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; }; }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: program exited with status $ac_status" >&5
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666  
1667 ac_retval=$ac_status
1668 fi
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672  
1673 } # ac_fn_c_try_run
1674  
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_link ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 $as_test_x conftest$ac_exeext
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708  
1709 ac_retval=1
1710 fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718  
1719 } # ac_fn_c_try_link
1720  
1721 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists and can be compiled using the include files in
1724 # INCLUDES, setting the cache variable VAR accordingly.
1725 ac_fn_c_check_header_compile ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 $4
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"; then :
1739 eval "$3=yes"
1740 else
1741 eval "$3=no"
1742 fi
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744 fi
1745 eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749  
1750 } # ac_fn_c_check_header_compile
1751  
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_cpp ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } > conftest.i && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781  
1782 ac_retval=1
1783 fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786  
1787 } # ac_fn_c_try_cpp
1788  
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1805  
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1810  
1811 #ifdef __STDC__
1812 # include <limits.h>
1813 #else
1814 # include <assert.h>
1815 #endif
1816  
1817 #undef $2
1818  
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1822 #ifdef __cplusplus
1823 extern "C"
1824 #endif
1825 char $2 ();
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1830 choke me
1831 #endif
1832  
1833 int
1834 main ()
1835 {
1836 return $2 ();
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_link "$LINENO"; then :
1842 eval "$3=yes"
1843 else
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  
1854 } # ac_fn_c_check_func
1855  
1856 # ac_fn_cxx_try_cpp LINENO
1857 # ------------------------
1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_cpp ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_cpp conftest.$ac_ext"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } > conftest.i && {
1878 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 }; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885  
1886 ac_retval=1
1887 fi
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890  
1891 } # ac_fn_cxx_try_cpp
1892  
1893 # ac_fn_cxx_try_link LINENO
1894 # -------------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_link ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 $as_test_x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926  
1927 ac_retval=1
1928 fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936  
1937 } # ac_fn_cxx_try_link
1938  
1939 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1940 # -------------------------------------------
1941 # Tests whether TYPE exists after having included INCLUDES, setting cache
1942 # variable VAR accordingly.
1943 ac_fn_c_check_type ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 eval "$3=no"
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 $4
1955 int
1956 main ()
1957 {
1958 if (sizeof ($2))
1959 return 0;
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 $4
1968 int
1969 main ()
1970 {
1971 if (sizeof (($2)))
1972 return 0;
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978  
1979 else
1980 eval "$3=yes"
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 fi
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990  
1991 } # ac_fn_c_check_type
1992  
1993 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1994 # --------------------------------------------
1995 # Tries to find the compile-time value of EXPR in a program that includes
1996 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1997 # computed
1998 ac_fn_c_compute_int ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if test "$cross_compiling" = yes; then
2002 # Depending upon the size, compute the lo and hi bounds.
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 $4
2006 int
2007 main ()
2008 {
2009 static int test_array [1 - 2 * !(($2) >= 0)];
2010 test_array [0] = 0
2011  
2012 ;
2013 return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_lo=0 ac_mid=0
2018 while :; do
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 $4
2022 int
2023 main ()
2024 {
2025 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 test_array [0] = 0
2027  
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_hi=$ac_mid; break
2034 else
2035 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2036 if test $ac_lo -le $ac_mid; then
2037 ac_lo= ac_hi=
2038 break
2039 fi
2040 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 done
2044 else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $4
2048 int
2049 main ()
2050 {
2051 static int test_array [1 - 2 * !(($2) < 0)];
2052 test_array [0] = 0
2053  
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_hi=-1 ac_mid=-1
2060 while :; do
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2068 test_array [0] = 0
2069  
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_lo=$ac_mid; break
2076 else
2077 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2078 if test $ac_mid -le $ac_hi; then
2079 ac_lo= ac_hi=
2080 break
2081 fi
2082 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 done
2086 else
2087 ac_lo= ac_hi=
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 # Binary search between lo and hi bounds.
2093 while test "x$ac_lo" != "x$ac_hi"; do
2094 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 $4
2098 int
2099 main ()
2100 {
2101 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 test_array [0] = 0
2103  
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_hi=$ac_mid
2110 else
2111 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 done
2115 case $ac_lo in #((
2116 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2117 '') ac_retval=1 ;;
2118 esac
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $4
2123 static long int longval () { return $2; }
2124 static unsigned long int ulongval () { return $2; }
2125 #include <stdio.h>
2126 #include <stdlib.h>
2127 int
2128 main ()
2129 {
2130  
2131 FILE *f = fopen ("conftest.val", "w");
2132 if (! f)
2133 return 1;
2134 if (($2) < 0)
2135 {
2136 long int i = longval ();
2137 if (i != ($2))
2138 return 1;
2139 fprintf (f, "%ld", i);
2140 }
2141 else
2142 {
2143 unsigned long int i = ulongval ();
2144 if (i != ($2))
2145 return 1;
2146 fprintf (f, "%lu", i);
2147 }
2148 /* Do not output a trailing newline, as this causes \r\n confusion
2149 on some platforms. */
2150 return ferror (f) || fclose (f) != 0;
2151  
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_run "$LINENO"; then :
2157 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2158 else
2159 ac_retval=1
2160 fi
2161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2162 conftest.$ac_objext conftest.beam conftest.$ac_ext
2163 rm -f conftest.val
2164  
2165 fi
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
2168  
2169 } # ac_fn_c_compute_int
2170  
2171 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2172 # ---------------------------------------------
2173 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2174 # accordingly.
2175 ac_fn_c_check_decl ()
2176 {
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 as_decl_name=`echo $2|sed 's/ *(.*//'`
2179 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182 if eval \${$3+:} false; then :
2183 $as_echo_n "(cached) " >&6
2184 else
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 #ifndef $as_decl_name
2192 #ifdef __cplusplus
2193 (void) $as_decl_use;
2194 #else
2195 (void) $as_decl_name;
2196 #endif
2197 #endif
2198  
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 eval "$3=yes"
2205 else
2206 eval "$3=no"
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 eval ac_res=\$$3
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214  
2215 } # ac_fn_c_check_decl
2216  
2217 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2218 # ----------------------------------------------------
2219 # Tries to find if the field MEMBER exists in type AGGR, after including
2220 # INCLUDES, setting cache variable VAR accordingly.
2221 ac_fn_c_check_member ()
2222 {
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2225 $as_echo_n "checking for $2.$3... " >&6; }
2226 if eval \${$4+:} false; then :
2227 $as_echo_n "(cached) " >&6
2228 else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $5
2232 int
2233 main ()
2234 {
2235 static $2 ac_aggr;
2236 if (ac_aggr.$3)
2237 return 0;
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 eval "$4=yes"
2244 else
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2247 $5
2248 int
2249 main ()
2250 {
2251 static $2 ac_aggr;
2252 if (sizeof ac_aggr.$3)
2253 return 0;
2254 ;
2255 return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 eval "$4=yes"
2260 else
2261 eval "$4=no"
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 eval ac_res=\$$4
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271  
2272 } # ac_fn_c_check_member
2273  
2274 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2275 # ---------------------------------------------------------
2276 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2277 # the include files in INCLUDES and setting the cache variable VAR
2278 # accordingly.
2279 ac_fn_cxx_check_header_mongrel ()
2280 {
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 if eval \${$3+:} false; then :
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284 $as_echo_n "checking for $2... " >&6; }
2285 if eval \${$3+:} false; then :
2286 $as_echo_n "(cached) " >&6
2287 fi
2288 eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 else
2292 # Is the header compilable?
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2294 $as_echo_n "checking $2 usability... " >&6; }
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $4
2298 #include <$2>
2299 _ACEOF
2300 if ac_fn_cxx_try_compile "$LINENO"; then :
2301 ac_header_compiler=yes
2302 else
2303 ac_header_compiler=no
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2307 $as_echo "$ac_header_compiler" >&6; }
2308  
2309 # Is the header present?
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2311 $as_echo_n "checking $2 presence... " >&6; }
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 #include <$2>
2315 _ACEOF
2316 if ac_fn_cxx_try_cpp "$LINENO"; then :
2317 ac_header_preproc=yes
2318 else
2319 ac_header_preproc=no
2320 fi
2321 rm -f conftest.err conftest.i conftest.$ac_ext
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2323 $as_echo "$ac_header_preproc" >&6; }
2324  
2325 # So? What about this header?
2326 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2327 yes:no: )
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2329 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2331 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2332 ;;
2333 no:yes:* )
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2335 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2337 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2339 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2341 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2343 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2344 ( $as_echo "## ----------------------------------------------- ##
2345 ## Report this to isl-development@googlegroups.com ##
2346 ## ----------------------------------------------- ##"
2347 ) | sed "s/^/$as_me: WARNING: /" >&2
2348 ;;
2349 esac
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2351 $as_echo_n "checking for $2... " >&6; }
2352 if eval \${$3+:} false; then :
2353 $as_echo_n "(cached) " >&6
2354 else
2355 eval "$3=\$ac_header_compiler"
2356 fi
2357 eval ac_res=\$$3
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 fi
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362  
2363 } # ac_fn_cxx_check_header_mongrel
2364 cat >config.log <<_ACEOF
2365 This file contains any messages produced by compilers while
2366 running configure, to aid debugging if configure makes a mistake.
2367  
2368 It was created by isl $as_me 0.10, which was
2369 generated by GNU Autoconf 2.68. Invocation command line was
2370  
2371 $ $0 $@
2372  
2373 _ACEOF
2374 exec 5>>config.log
2375 {
2376 cat <<_ASUNAME
2377 ## --------- ##
2378 ## Platform. ##
2379 ## --------- ##
2380  
2381 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2382 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2383 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2384 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2385 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2386  
2387 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2388 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2389  
2390 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2391 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2392 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2393 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2394 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2395 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2396 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2397  
2398 _ASUNAME
2399  
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 $as_echo "PATH: $as_dir"
2406 done
2407 IFS=$as_save_IFS
2408  
2409 } >&5
2410  
2411 cat >&5 <<_ACEOF
2412  
2413  
2414 ## ----------- ##
2415 ## Core tests. ##
2416 ## ----------- ##
2417  
2418 _ACEOF
2419  
2420  
2421 # Keep a trace of the command line.
2422 # Strip out --no-create and --no-recursion so they do not pile up.
2423 # Strip out --silent because we don't want to record it for future runs.
2424 # Also quote any args containing shell meta-characters.
2425 # Make two passes to allow for proper duplicate-argument suppression.
2426 ac_configure_args=
2427 ac_configure_args0=
2428 ac_configure_args1=
2429 ac_must_keep_next=false
2430 for ac_pass in 1 2
2431 do
2432 for ac_arg
2433 do
2434 case $ac_arg in
2435 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2437 | -silent | --silent | --silen | --sile | --sil)
2438 continue ;;
2439 *\'*)
2440 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2441 esac
2442 case $ac_pass in
2443 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2444 2)
2445 as_fn_append ac_configure_args1 " '$ac_arg'"
2446 if test $ac_must_keep_next = true; then
2447 ac_must_keep_next=false # Got value, back to normal.
2448 else
2449 case $ac_arg in
2450 *=* | --config-cache | -C | -disable-* | --disable-* \
2451 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2452 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2453 | -with-* | --with-* | -without-* | --without-* | --x)
2454 case "$ac_configure_args0 " in
2455 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2456 esac
2457 ;;
2458 -* ) ac_must_keep_next=true ;;
2459 esac
2460 fi
2461 as_fn_append ac_configure_args " '$ac_arg'"
2462 ;;
2463 esac
2464 done
2465 done
2466 { ac_configure_args0=; unset ac_configure_args0;}
2467 { ac_configure_args1=; unset ac_configure_args1;}
2468  
2469 # When interrupted or exit'd, cleanup temporary files, and complete
2470 # config.log. We remove comments because anyway the quotes in there
2471 # would cause problems or look ugly.
2472 # WARNING: Use '\'' to represent an apostrophe within the trap.
2473 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2474 trap 'exit_status=$?
2475 # Save into config.log some information that might help in debugging.
2476 {
2477 echo
2478  
2479 $as_echo "## ---------------- ##
2480 ## Cache variables. ##
2481 ## ---------------- ##"
2482 echo
2483 # The following way of writing the cache mishandles newlines in values,
2484 (
2485 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2486 eval ac_val=\$$ac_var
2487 case $ac_val in #(
2488 *${as_nl}*)
2489 case $ac_var in #(
2490 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2491 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2492 esac
2493 case $ac_var in #(
2494 _ | IFS | as_nl) ;; #(
2495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2496 *) { eval $ac_var=; unset $ac_var;} ;;
2497 esac ;;
2498 esac
2499 done
2500 (set) 2>&1 |
2501 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2502 *${as_nl}ac_space=\ *)
2503 sed -n \
2504 "s/'\''/'\''\\\\'\'''\''/g;
2505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2506 ;; #(
2507 *)
2508 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2509 ;;
2510 esac |
2511 sort
2512 )
2513 echo
2514  
2515 $as_echo "## ----------------- ##
2516 ## Output variables. ##
2517 ## ----------------- ##"
2518 echo
2519 for ac_var in $ac_subst_vars
2520 do
2521 eval ac_val=\$$ac_var
2522 case $ac_val in
2523 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 esac
2525 $as_echo "$ac_var='\''$ac_val'\''"
2526 done | sort
2527 echo
2528  
2529 if test -n "$ac_subst_files"; then
2530 $as_echo "## ------------------- ##
2531 ## File substitutions. ##
2532 ## ------------------- ##"
2533 echo
2534 for ac_var in $ac_subst_files
2535 do
2536 eval ac_val=\$$ac_var
2537 case $ac_val in
2538 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539 esac
2540 $as_echo "$ac_var='\''$ac_val'\''"
2541 done | sort
2542 echo
2543 fi
2544  
2545 if test -s confdefs.h; then
2546 $as_echo "## ----------- ##
2547 ## confdefs.h. ##
2548 ## ----------- ##"
2549 echo
2550 cat confdefs.h
2551 echo
2552 fi
2553 test "$ac_signal" != 0 &&
2554 $as_echo "$as_me: caught signal $ac_signal"
2555 $as_echo "$as_me: exit $exit_status"
2556 } >&5
2557 rm -f core *.core core.conftest.* &&
2558 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2559 exit $exit_status
2560 ' 0
2561 for ac_signal in 1 2 13 15; do
2562 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2563 done
2564 ac_signal=0
2565  
2566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2567 rm -f -r conftest* confdefs.h
2568  
2569 $as_echo "/* confdefs.h */" > confdefs.h
2570  
2571 # Predefined preprocessor variables.
2572  
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_NAME "$PACKAGE_NAME"
2575 _ACEOF
2576  
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2579 _ACEOF
2580  
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2583 _ACEOF
2584  
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_STRING "$PACKAGE_STRING"
2587 _ACEOF
2588  
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2591 _ACEOF
2592  
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_URL "$PACKAGE_URL"
2595 _ACEOF
2596  
2597  
2598 # Let the site file select an alternate cache file if it wants to.
2599 # Prefer an explicitly selected file to automatically selected ones.
2600 ac_site_file1=NONE
2601 ac_site_file2=NONE
2602 if test -n "$CONFIG_SITE"; then
2603 # We do not want a PATH search for config.site.
2604 case $CONFIG_SITE in #((
2605 -*) ac_site_file1=./$CONFIG_SITE;;
2606 */*) ac_site_file1=$CONFIG_SITE;;
2607 *) ac_site_file1=./$CONFIG_SITE;;
2608 esac
2609 elif test "x$prefix" != xNONE; then
2610 ac_site_file1=$prefix/share/config.site
2611 ac_site_file2=$prefix/etc/config.site
2612 else
2613 ac_site_file1=$ac_default_prefix/share/config.site
2614 ac_site_file2=$ac_default_prefix/etc/config.site
2615 fi
2616 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2617 do
2618 test "x$ac_site_file" = xNONE && continue
2619 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2621 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2622 sed 's/^/| /' "$ac_site_file" >&5
2623 . "$ac_site_file" \
2624 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626 as_fn_error $? "failed to load site script $ac_site_file
2627 See \`config.log' for more details" "$LINENO" 5; }
2628 fi
2629 done
2630  
2631 if test -r "$cache_file"; then
2632 # Some versions of bash will fail to source /dev/null (special files
2633 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2634 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2636 $as_echo "$as_me: loading cache $cache_file" >&6;}
2637 case $cache_file in
2638 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2639 *) . "./$cache_file";;
2640 esac
2641 fi
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2644 $as_echo "$as_me: creating cache $cache_file" >&6;}
2645 >$cache_file
2646 fi
2647  
2648 # Check that the precious variables saved in the cache have kept the same
2649 # value.
2650 ac_cache_corrupted=false
2651 for ac_var in $ac_precious_vars; do
2652 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2653 eval ac_new_set=\$ac_env_${ac_var}_set
2654 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2655 eval ac_new_val=\$ac_env_${ac_var}_value
2656 case $ac_old_set,$ac_new_set in
2657 set,)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2661 ,set)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664 ac_cache_corrupted=: ;;
2665 ,);;
2666 *)
2667 if test "x$ac_old_val" != "x$ac_new_val"; then
2668 # differences in whitespace do not lead to failure.
2669 ac_old_val_w=`echo x $ac_old_val`
2670 ac_new_val_w=`echo x $ac_new_val`
2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674 ac_cache_corrupted=:
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678 eval $ac_var=\$ac_old_val
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2681 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2684 fi;;
2685 esac
2686 # Pass precious variables to config.status.
2687 if test "$ac_new_set" = set; then
2688 case $ac_new_val in
2689 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 *) ac_arg=$ac_var=$ac_new_val ;;
2691 esac
2692 case " $ac_configure_args " in
2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2694 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2695 esac
2696 fi
2697 done
2698 if $ac_cache_corrupted; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2704 fi
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2708  
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714  
2715  
2716 ac_aux_dir=
2717 for ac_dir in . "$srcdir"/.; do
2718 if test -f "$ac_dir/install-sh"; then
2719 ac_aux_dir=$ac_dir
2720 ac_install_sh="$ac_aux_dir/install-sh -c"
2721 break
2722 elif test -f "$ac_dir/install.sh"; then
2723 ac_aux_dir=$ac_dir
2724 ac_install_sh="$ac_aux_dir/install.sh -c"
2725 break
2726 elif test -f "$ac_dir/shtool"; then
2727 ac_aux_dir=$ac_dir
2728 ac_install_sh="$ac_aux_dir/shtool install -c"
2729 break
2730 fi
2731 done
2732 if test -z "$ac_aux_dir"; then
2733 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2734 fi
2735  
2736 # These three variables are undocumented and unsupported,
2737 # and are intended to be withdrawn in a future Autoconf release.
2738 # They can cause serious problems if a builder's source tree is in a directory
2739 # whose full name contains unusual characters.
2740 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2741 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2742 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2743  
2744  
2745  
2746 am__api_version='1.11'
2747  
2748 # Find a good install program. We prefer a C program (faster),
2749 # so one script is as good as another. But avoid the broken or
2750 # incompatible versions:
2751 # SysV /etc/install, /usr/sbin/install
2752 # SunOS /usr/etc/install
2753 # IRIX /sbin/install
2754 # AIX /bin/install
2755 # AmigaOS /C/install, which installs bootblocks on floppy discs
2756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2759 # OS/2's system install, which has a completely different semantic
2760 # ./install, which can be erroneously created by make from ./install.sh.
2761 # Reject install programs that cannot install multiple files.
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2763 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2764 if test -z "$INSTALL"; then
2765 if ${ac_cv_path_install+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 # Account for people who put trailing slashes in PATH elements.
2774 case $as_dir/ in #((
2775 ./ | .// | /[cC]/* | \
2776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2777 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2778 /usr/ucb/* ) ;;
2779 *)
2780 # OSF1 and SCO ODT 3.0 have their own names for install.
2781 # Don't use installbsd from OSF since it installs stuff as root
2782 # by default.
2783 for ac_prog in ginstall scoinst install; do
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2786 if test $ac_prog = install &&
2787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2788 # AIX install. It has an incompatible calling convention.
2789 :
2790 elif test $ac_prog = install &&
2791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2792 # program-specific install script used by HP pwplus--don't use.
2793 :
2794 else
2795 rm -rf conftest.one conftest.two conftest.dir
2796 echo one > conftest.one
2797 echo two > conftest.two
2798 mkdir conftest.dir
2799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2800 test -s conftest.one && test -s conftest.two &&
2801 test -s conftest.dir/conftest.one &&
2802 test -s conftest.dir/conftest.two
2803 then
2804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2805 break 3
2806 fi
2807 fi
2808 fi
2809 done
2810 done
2811 ;;
2812 esac
2813  
2814 done
2815 IFS=$as_save_IFS
2816  
2817 rm -rf conftest.one conftest.two conftest.dir
2818  
2819 fi
2820 if test "${ac_cv_path_install+set}" = set; then
2821 INSTALL=$ac_cv_path_install
2822 else
2823 # As a last resort, use the slow shell script. Don't cache a
2824 # value for INSTALL within a source directory, because that will
2825 # break other packages using the cache if that directory is
2826 # removed, or if the value is a relative name.
2827 INSTALL=$ac_install_sh
2828 fi
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2831 $as_echo "$INSTALL" >&6; }
2832  
2833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2834 # It thinks the first close brace ends the variable substitution.
2835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2836  
2837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2838  
2839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2840  
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2842 $as_echo_n "checking whether build environment is sane... " >&6; }
2843 # Just in case
2844 sleep 1
2845 echo timestamp > conftest.file
2846 # Reject unsafe characters in $srcdir or the absolute working directory
2847 # name. Accept space and tab only in the latter.
2848 am_lf='
2849 '
2850 case `pwd` in
2851 *[\\\"\#\$\&\'\`$am_lf]*)
2852 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2853 esac
2854 case $srcdir in
2855 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2856 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2857 esac
2858  
2859 # Do `set' in a subshell so we don't clobber the current shell's
2860 # arguments. Must try -L first in case configure is actually a
2861 # symlink; some systems play weird games with the mod time of symlinks
2862 # (eg FreeBSD returns the mod time of the symlink's containing
2863 # directory).
2864 if (
2865 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2866 if test "$*" = "X"; then
2867 # -L didn't work.
2868 set X `ls -t "$srcdir/configure" conftest.file`
2869 fi
2870 rm -f conftest.file
2871 if test "$*" != "X $srcdir/configure conftest.file" \
2872 && test "$*" != "X conftest.file $srcdir/configure"; then
2873  
2874 # If neither matched, then we have a broken ls. This can happen
2875 # if, for instance, CONFIG_SHELL is bash and it inherits a
2876 # broken ls alias from the environment. This has actually
2877 # happened. Such a system could not be considered "sane".
2878 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2879 alias in your environment" "$LINENO" 5
2880 fi
2881  
2882 test "$2" = conftest.file
2883 )
2884 then
2885 # Ok.
2886 :
2887 else
2888 as_fn_error $? "newly created file is older than distributed files!
2889 Check your system clock" "$LINENO" 5
2890 fi
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 test "$program_prefix" != NONE &&
2894 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2895 # Use a double $ so make ignores it.
2896 test "$program_suffix" != NONE &&
2897 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2898 # Double any \ or $.
2899 # By default was `s,x,x', remove it if useless.
2900 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2901 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2902  
2903 # expand $ac_aux_dir to an absolute path
2904 am_aux_dir=`cd $ac_aux_dir && pwd`
2905  
2906 if test x"${MISSING+set}" != xset; then
2907 case $am_aux_dir in
2908 *\ * | *\ *)
2909 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2910 *)
2911 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2912 esac
2913 fi
2914 # Use eval to expand $SHELL
2915 if eval "$MISSING --run true"; then
2916 am_missing_run="$MISSING --run "
2917 else
2918 am_missing_run=
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2920 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2921 fi
2922  
2923 if test x"${install_sh}" != xset; then
2924 case $am_aux_dir in
2925 *\ * | *\ *)
2926 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2927 *)
2928 install_sh="\${SHELL} $am_aux_dir/install-sh"
2929 esac
2930 fi
2931  
2932 # Installed binaries are usually stripped using `strip' when the user
2933 # run `make install-strip'. However `strip' might not be the right
2934 # tool to use in cross-compilation environments, therefore Automake
2935 # will honor the `STRIP' environment variable to overrule this program.
2936 if test "$cross_compiling" != no; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}strip; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_STRIP+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$STRIP"; then
2946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962  
2963 fi
2964 fi
2965 STRIP=$ac_cv_prog_STRIP
2966 if test -n "$STRIP"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2968 $as_echo "$STRIP" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973  
2974  
2975 fi
2976 if test -z "$ac_cv_prog_STRIP"; then
2977 ac_ct_STRIP=$STRIP
2978 # Extract the first word of "strip", so it can be a program name with args.
2979 set dummy strip; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$ac_ct_STRIP"; then
2986 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_ac_ct_STRIP="strip"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002  
3003 fi
3004 fi
3005 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3006 if test -n "$ac_ct_STRIP"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3008 $as_echo "$ac_ct_STRIP" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013  
3014 if test "x$ac_ct_STRIP" = x; then
3015 STRIP=":"
3016 else
3017 case $cross_compiling:$ac_tool_warned in
3018 yes:)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023 STRIP=$ac_ct_STRIP
3024 fi
3025 else
3026 STRIP="$ac_cv_prog_STRIP"
3027 fi
3028  
3029 fi
3030 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3031  
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3033 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3034 if test -z "$MKDIR_P"; then
3035 if ${ac_cv_path_mkdir+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_prog in mkdir gmkdir; do
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3046 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3047 'mkdir (GNU coreutils) '* | \
3048 'mkdir (coreutils) '* | \
3049 'mkdir (fileutils) '4.1*)
3050 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3051 break 3;;
3052 esac
3053 done
3054 done
3055 done
3056 IFS=$as_save_IFS
3057  
3058 fi
3059  
3060 test -d ./--version && rmdir ./--version
3061 if test "${ac_cv_path_mkdir+set}" = set; then
3062 MKDIR_P="$ac_cv_path_mkdir -p"
3063 else
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for MKDIR_P within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 MKDIR_P="$ac_install_sh -d"
3069 fi
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3072 $as_echo "$MKDIR_P" >&6; }
3073  
3074 mkdir_p="$MKDIR_P"
3075 case $mkdir_p in
3076 [\\/$]* | ?:[\\/]*) ;;
3077 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3078 esac
3079  
3080 for ac_prog in gawk mawk nawk awk
3081 do
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_AWK+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$AWK"; then
3090 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_AWK="$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106  
3107 fi
3108 fi
3109 AWK=$ac_cv_prog_AWK
3110 if test -n "$AWK"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3112 $as_echo "$AWK" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117  
3118  
3119 test -n "$AWK" && break
3120 done
3121  
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3123 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3124 set x ${MAKE-make}
3125 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3126 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 cat >conftest.make <<\_ACEOF
3130 SHELL = /bin/sh
3131 all:
3132 @echo '@@@%%%=$(MAKE)=@@@%%%'
3133 _ACEOF
3134 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3135 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3136 *@@@%%%=?*=@@@%%%*)
3137 eval ac_cv_prog_make_${ac_make}_set=yes;;
3138 *)
3139 eval ac_cv_prog_make_${ac_make}_set=no;;
3140 esac
3141 rm -f conftest.make
3142 fi
3143 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145 $as_echo "yes" >&6; }
3146 SET_MAKE=
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 SET_MAKE="MAKE=${MAKE-make}"
3151 fi
3152  
3153 rm -rf .tst 2>/dev/null
3154 mkdir .tst 2>/dev/null
3155 if test -d .tst; then
3156 am__leading_dot=.
3157 else
3158 am__leading_dot=_
3159 fi
3160 rmdir .tst 2>/dev/null
3161  
3162 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3163 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3164 # is not polluted with repeated "-I."
3165 am__isrc=' -I$(srcdir)'
3166 # test to see if srcdir already configured
3167 if test -f $srcdir/config.status; then
3168 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3169 fi
3170 fi
3171  
3172 # test whether we have cygpath
3173 if test -z "$CYGPATH_W"; then
3174 if (cygpath --version) >/dev/null 2>/dev/null; then
3175 CYGPATH_W='cygpath -w'
3176 else
3177 CYGPATH_W=echo
3178 fi
3179 fi
3180  
3181  
3182 # Define the identity of the package.
3183 PACKAGE='isl'
3184 VERSION='0.10'
3185  
3186  
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE "$PACKAGE"
3189 _ACEOF
3190  
3191  
3192 cat >>confdefs.h <<_ACEOF
3193 #define VERSION "$VERSION"
3194 _ACEOF
3195  
3196 # Some tools Automake needs.
3197  
3198 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3199  
3200  
3201 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3202  
3203  
3204 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3205  
3206  
3207 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3208  
3209  
3210 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3211  
3212 # We need awk for the "check" target. The system "awk" is bad on
3213 # some platforms.
3214 # Always define AMTAR for backward compatibility.
3215  
3216 AMTAR=${AMTAR-"${am_missing_run}tar"}
3217  
3218 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3219  
3220  
3221  
3222  
3223  
3224 # Check whether --enable-silent-rules was given.
3225 if test "${enable_silent_rules+set}" = set; then :
3226 enableval=$enable_silent_rules;
3227 fi
3228  
3229 case $enable_silent_rules in
3230 yes) AM_DEFAULT_VERBOSITY=0;;
3231 no) AM_DEFAULT_VERBOSITY=1;;
3232 *) AM_DEFAULT_VERBOSITY=0;;
3233 esac
3234 AM_BACKSLASH='\'
3235  
3236  
3237 versioninfo=10:0:0
3238  
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269  
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280  
3281  
3282 fi
3283 if test -z "$ac_cv_prog_CC"; then
3284 ac_ct_CC=$CC
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286 set dummy gcc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_ac_ct_CC="gcc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309  
3310 fi
3311 fi
3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315 $as_echo "$ac_ct_CC" >&6; }
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320  
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325 yes:)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328 ac_tool_warned=yes ;;
3329 esac
3330 CC=$ac_ct_CC
3331 fi
3332 else
3333 CC="$ac_cv_prog_CC"
3334 fi
3335  
3336 if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}cc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_CC+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359 done
3360 done
3361 IFS=$as_save_IFS
3362  
3363 fi
3364 fi
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373  
3374  
3375 fi
3376 fi
3377 if test -z "$CC"; then
3378 # Extract the first word of "cc", so it can be a program name with args.
3379 set dummy cc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_CC+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3387 else
3388 ac_prog_rejected=no
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3397 ac_prog_rejected=yes
3398 continue
3399 fi
3400 ac_cv_prog_CC="cc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404 done
3405 done
3406 IFS=$as_save_IFS
3407  
3408 if test $ac_prog_rejected = yes; then
3409 # We found a bogon in the path, so make sure we never use it.
3410 set dummy $ac_cv_prog_CC
3411 shift
3412 if test $# != 0; then
3413 # We chose a different compiler from the bogus one.
3414 # However, it has the same basename, so the bogon will be chosen
3415 # first if we set CC to just the basename; use the full file name.
3416 shift
3417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 fi
3419 fi
3420 fi
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430  
3431  
3432 fi
3433 if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 for ac_prog in cl.exe
3436 do
3437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461  
3462 fi
3463 fi
3464 CC=$ac_cv_prog_CC
3465 if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467 $as_echo "$CC" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472  
3473  
3474 test -n "$CC" && break
3475 done
3476 fi
3477 if test -z "$CC"; then
3478 ac_ct_CC=$CC
3479 for ac_prog in cl.exe
3480 do
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482 set dummy $ac_prog; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_ac_ct_CC="$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505  
3506 fi
3507 fi
3508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509 if test -n "$ac_ct_CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511 $as_echo "$ac_ct_CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3515 fi
3516  
3517  
3518 test -n "$ac_ct_CC" && break
3519 done
3520  
3521 if test "x$ac_ct_CC" = x; then
3522 CC=""
3523 else
3524 case $cross_compiling:$ac_tool_warned in
3525 yes:)
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528 ac_tool_warned=yes ;;
3529 esac
3530 CC=$ac_ct_CC
3531 fi
3532 fi
3533  
3534 fi
3535  
3536  
3537 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "no acceptable C compiler found in \$PATH
3540 See \`config.log' for more details" "$LINENO" 5; }
3541  
3542 # Provide some information about the compiler.
3543 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3544 set X $ac_compile
3545 ac_compiler=$2
3546 for ac_option in --version -v -V -qversion; do
3547 { { ac_try="$ac_compiler $ac_option >&5"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3555 ac_status=$?
3556 if test -s conftest.err; then
3557 sed '10a\
3558 ... rest of stderr output deleted ...
3559 10q' conftest.err >conftest.er1
3560 cat conftest.er1 >&5
3561 fi
3562 rm -f conftest.er1 conftest.err
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }
3565 done
3566  
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569  
3570 int
3571 main ()
3572 {
3573  
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 ac_clean_files_save=$ac_clean_files
3579 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3580 # Try to create an executable without -o first, disregard a.out.
3581 # It will help us diagnose broken compilers, and finding out an intuition
3582 # of exeext.
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3584 $as_echo_n "checking whether the C compiler works... " >&6; }
3585 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3586  
3587 # The possible output files:
3588 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3589  
3590 ac_rmfiles=
3591 for ac_file in $ac_files
3592 do
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3596 esac
3597 done
3598 rm -f $ac_rmfiles
3599  
3600 if { { ac_try="$ac_link_default"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link_default") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3612 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3613 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3614 # so that the user can short-circuit this test for compilers unknown to
3615 # Autoconf.
3616 for ac_file in $ac_files ''
3617 do
3618 test -f "$ac_file" || continue
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3621 ;;
3622 [ab].out )
3623 # We found the default executable, but exeext='' is most
3624 # certainly right.
3625 break;;
3626 *.* )
3627 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3628 then :; else
3629 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 fi
3631 # We set ac_cv_exeext here because the later test for it is not
3632 # safe: cross compilers may not add the suffix if given an `-o'
3633 # argument, so we may need to know it at that point already.
3634 # Even if this section looks crufty: it has the advantage of
3635 # actually working.
3636 break;;
3637 * )
3638 break;;
3639 esac
3640 done
3641 test "$ac_cv_exeext" = no && ac_cv_exeext=
3642  
3643 else
3644 ac_file=''
3645 fi
3646 if test -z "$ac_file"; then :
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 $as_echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651  
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error 77 "C compiler cannot create executables
3655 See \`config.log' for more details" "$LINENO" 5; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658 $as_echo "yes" >&6; }
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3661 $as_echo_n "checking for C compiler default output file name... " >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3663 $as_echo "$ac_file" >&6; }
3664 ac_exeext=$ac_cv_exeext
3665  
3666 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3667 ac_clean_files=$ac_clean_files_save
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669 $as_echo_n "checking for suffix of executables... " >&6; }
3670 if { { ac_try="$ac_link"
3671 case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683 # work properly (i.e., refer to `conftest.exe'), while it won't with
3684 # `rm'.
3685 for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 break;;
3691 * ) break;;
3692 esac
3693 done
3694 else
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details" "$LINENO" 5; }
3699 fi
3700 rm -f conftest conftest$ac_cv_exeext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702 $as_echo "$ac_cv_exeext" >&6; }
3703  
3704 rm -f conftest.$ac_ext
3705 EXEEXT=$ac_cv_exeext
3706 ac_exeext=$EXEEXT
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #include <stdio.h>
3710 int
3711 main ()
3712 {
3713 FILE *f = fopen ("conftest.out", "w");
3714 return ferror (f) || fclose (f) != 0;
3715  
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 ac_clean_files="$ac_clean_files conftest.out"
3721 # Check that the compiler produces executables we can run. If not, either
3722 # the compiler is broken, or we cross compile.
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3724 $as_echo_n "checking whether we are cross compiling... " >&6; }
3725 if test "$cross_compiling" != yes; then
3726 { { ac_try="$ac_link"
3727 case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }
3737 if { ac_try='./conftest$ac_cv_exeext'
3738 { { case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_try") 2>&5
3745 ac_status=$?
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }; }; then
3748 cross_compiling=no
3749 else
3750 if test "$cross_compiling" = maybe; then
3751 cross_compiling=yes
3752 else
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot run C compiled programs.
3756 If you meant to cross compile, use \`--host'.
3757 See \`config.log' for more details" "$LINENO" 5; }
3758 fi
3759 fi
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3762 $as_echo "$cross_compiling" >&6; }
3763  
3764 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3765 ac_clean_files=$ac_clean_files_save
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3767 $as_echo_n "checking for suffix of object files... " >&6; }
3768 if ${ac_cv_objext+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773  
3774 int
3775 main ()
3776 {
3777  
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 rm -f conftest.o conftest.obj
3783 if { { ac_try="$ac_compile"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_compile") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 for ac_file in conftest.o conftest.obj conftest.*; do
3795 test -f "$ac_file" || continue;
3796 case $ac_file in
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3799 break;;
3800 esac
3801 done
3802 else
3803 $as_echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805  
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "cannot compute suffix of object files: cannot compile
3809 See \`config.log' for more details" "$LINENO" 5; }
3810 fi
3811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3814 $as_echo "$ac_cv_objext" >&6; }
3815 OBJEXT=$ac_cv_objext
3816 ac_objext=$OBJEXT
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3818 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3819 if ${ac_cv_c_compiler_gnu+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824  
3825 int
3826 main ()
3827 {
3828 #ifndef __GNUC__
3829 choke me
3830 #endif
3831  
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_compiler_gnu=yes
3838 else
3839 ac_compiler_gnu=no
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3843  
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3846 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3847 if test $ac_compiler_gnu = yes; then
3848 GCC=yes
3849 else
3850 GCC=
3851 fi
3852 ac_test_CFLAGS=${CFLAGS+set}
3853 ac_save_CFLAGS=$CFLAGS
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3855 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3856 if ${ac_cv_prog_cc_g+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 ac_save_c_werror_flag=$ac_c_werror_flag
3860 ac_c_werror_flag=yes
3861 ac_cv_prog_cc_g=no
3862 CFLAGS="-g"
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865  
3866 int
3867 main ()
3868 {
3869  
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_g=yes
3876 else
3877 CFLAGS=""
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880  
3881 int
3882 main ()
3883 {
3884  
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890  
3891 else
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3893 CFLAGS="-g"
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896  
3897 int
3898 main ()
3899 {
3900  
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_prog_cc_g=yes
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 fi
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3916 $as_echo "$ac_cv_prog_cc_g" >&6; }
3917 if test "$ac_test_CFLAGS" = set; then
3918 CFLAGS=$ac_save_CFLAGS
3919 elif test $ac_cv_prog_cc_g = yes; then
3920 if test "$GCC" = yes; then
3921 CFLAGS="-g -O2"
3922 else
3923 CFLAGS="-g"
3924 fi
3925 else
3926 if test "$GCC" = yes; then
3927 CFLAGS="-O2"
3928 else
3929 CFLAGS=
3930 fi
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3933 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3934 if ${ac_cv_prog_cc_c89+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 ac_cv_prog_cc_c89=no
3938 ac_save_CC=$CC
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #include <stdarg.h>
3942 #include <stdio.h>
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3946 struct buf { int x; };
3947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3948 static char *e (p, i)
3949 char **p;
3950 int i;
3951 {
3952 return p[i];
3953 }
3954 static char *f (char * (*g) (char **, int), char **p, ...)
3955 {
3956 char *s;
3957 va_list v;
3958 va_start (v,p);
3959 s = g (p, va_arg (v,int));
3960 va_end (v);
3961 return s;
3962 }
3963  
3964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3965 function prototypes and stuff, but not '\xHH' hex character constants.
3966 These don't provoke an error unfortunately, instead are silently treated
3967 as 'x'. The following induces an error, until -std is added to get
3968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3969 array size at least. It's necessary to write '\x00'==0 to get something
3970 that's true only with -std. */
3971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3972  
3973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3974 inside strings and character constants. */
3975 #define FOO(x) 'x'
3976 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3977  
3978 int test (int i, double x);
3979 struct s1 {int (*f) (int a);};
3980 struct s2 {int (*f) (double a);};
3981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3982 int argc;
3983 char **argv;
3984 int
3985 main ()
3986 {
3987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3994 do
3995 CC="$ac_save_CC $ac_arg"
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997 ac_cv_prog_cc_c89=$ac_arg
3998 fi
3999 rm -f core conftest.err conftest.$ac_objext
4000 test "x$ac_cv_prog_cc_c89" != "xno" && break
4001 done
4002 rm -f conftest.$ac_ext
4003 CC=$ac_save_CC
4004  
4005 fi
4006 # AC_CACHE_VAL
4007 case "x$ac_cv_prog_cc_c89" in
4008 x)
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4010 $as_echo "none needed" >&6; } ;;
4011 xno)
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4013 $as_echo "unsupported" >&6; } ;;
4014 *)
4015 CC="$CC $ac_cv_prog_cc_c89"
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4017 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4018 esac
4019 if test "x$ac_cv_prog_cc_c89" != xno; then :
4020  
4021 fi
4022  
4023 ac_ext=c
4024 ac_cpp='$CPP $CPPFLAGS'
4025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028 DEPDIR="${am__leading_dot}deps"
4029  
4030 ac_config_commands="$ac_config_commands depfiles"
4031  
4032  
4033 am_make=${MAKE-make}
4034 cat > confinc << 'END'
4035 am__doit:
4036 @echo this is the am__doit target
4037 .PHONY: am__doit
4038 END
4039 # If we don't find an include directive, just comment out the code.
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4041 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4042 am__include="#"
4043 am__quote=
4044 _am_result=none
4045 # First try GNU make style include.
4046 echo "include confinc" > confmf
4047 # Ignore all kinds of additional output from `make'.
4048 case `$am_make -s -f confmf 2> /dev/null` in #(
4049 *the\ am__doit\ target*)
4050 am__include=include
4051 am__quote=
4052 _am_result=GNU
4053 ;;
4054 esac
4055 # Now try BSD make style include.
4056 if test "$am__include" = "#"; then
4057 echo '.include "confinc"' > confmf
4058 case `$am_make -s -f confmf 2> /dev/null` in #(
4059 *the\ am__doit\ target*)
4060 am__include=.include
4061 am__quote="\""
4062 _am_result=BSD
4063 ;;
4064 esac
4065 fi
4066  
4067  
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4069 $as_echo "$_am_result" >&6; }
4070 rm -f confinc confmf
4071  
4072 # Check whether --enable-dependency-tracking was given.
4073 if test "${enable_dependency_tracking+set}" = set; then :
4074 enableval=$enable_dependency_tracking;
4075 fi
4076  
4077 if test "x$enable_dependency_tracking" != xno; then
4078 am_depcomp="$ac_aux_dir/depcomp"
4079 AMDEPBACKSLASH='\'
4080 fi
4081 if test "x$enable_dependency_tracking" != xno; then
4082 AMDEP_TRUE=
4083 AMDEP_FALSE='#'
4084 else
4085 AMDEP_TRUE='#'
4086 AMDEP_FALSE=
4087 fi
4088  
4089  
4090  
4091 depcc="$CC" am_compiler_list=
4092  
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4094 $as_echo_n "checking dependency style of $depcc... " >&6; }
4095 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4099 # We make a subdir and do the tests there. Otherwise we can end up
4100 # making bogus files that we don't know about and never remove. For
4101 # instance it was reported that on HP-UX the gcc test will end up
4102 # making a dummy file named `D' -- because `-MD' means `put the output
4103 # in D'.
4104 mkdir conftest.dir
4105 # Copy depcomp to subdir because otherwise we won't find it if we're
4106 # using a relative directory.
4107 cp "$am_depcomp" conftest.dir
4108 cd conftest.dir
4109 # We will build objects and dependencies in a subdirectory because
4110 # it helps to detect inapplicable dependency modes. For instance
4111 # both Tru64's cc and ICC support -MD to output dependencies as a
4112 # side effect of compilation, but ICC will put the dependencies in
4113 # the current directory while Tru64 will put them in the object
4114 # directory.
4115 mkdir sub
4116  
4117 am_cv_CC_dependencies_compiler_type=none
4118 if test "$am_compiler_list" = ""; then
4119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4120 fi
4121 am__universal=false
4122 case " $depcc " in #(
4123 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4124 esac
4125  
4126 for depmode in $am_compiler_list; do
4127 # Setup a source with many dependencies, because some compilers
4128 # like to wrap large dependency lists on column 80 (with \), and
4129 # we should not choose a depcomp mode which is confused by this.
4130 #
4131 # We need to recreate these files for each test, as the compiler may
4132 # overwrite some of them when testing with obscure command lines.
4133 # This happens at least with the AIX C compiler.
4134 : > sub/conftest.c
4135 for i in 1 2 3 4 5 6; do
4136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4138 # Solaris 8's {/usr,}/bin/sh.
4139 touch sub/conftst$i.h
4140 done
4141 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4142  
4143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4144 # mode. It turns out that the SunPro C++ compiler does not properly
4145 # handle `-M -o', and we need to detect this. Also, some Intel
4146 # versions had trouble with output in subdirs
4147 am__obj=sub/conftest.${OBJEXT-o}
4148 am__minus_obj="-o $am__obj"
4149 case $depmode in
4150 gcc)
4151 # This depmode causes a compiler race in universal mode.
4152 test "$am__universal" = false || continue
4153 ;;
4154 nosideeffect)
4155 # after this tag, mechanisms are not by side-effect, so they'll
4156 # only be used when explicitly requested
4157 if test "x$enable_dependency_tracking" = xyes; then
4158 continue
4159 else
4160 break
4161 fi
4162 ;;
4163 msvisualcpp | msvcmsys)
4164 # This compiler won't grok `-c -o', but also, the minuso test has
4165 # not run yet. These depmodes are late enough in the game, and
4166 # so weak that their functioning should not be impacted.
4167 am__obj=conftest.${OBJEXT-o}
4168 am__minus_obj=
4169 ;;
4170 none) break ;;
4171 esac
4172 if depmode=$depmode \
4173 source=sub/conftest.c object=$am__obj \
4174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4175 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4176 >/dev/null 2>conftest.err &&
4177 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4179 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4181 # icc doesn't choke on unknown options, it will just issue warnings
4182 # or remarks (even with -Werror). So we grep stderr for any message
4183 # that says an option was ignored or not supported.
4184 # When given -MP, icc 7.0 and 7.1 complain thusly:
4185 # icc: Command line warning: ignoring option '-M'; no argument required
4186 # The diagnosis changed in icc 8.0:
4187 # icc: Command line remark: option '-MP' not supported
4188 if (grep 'ignoring option' conftest.err ||
4189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4190 am_cv_CC_dependencies_compiler_type=$depmode
4191 break
4192 fi
4193 fi
4194 done
4195  
4196 cd ..
4197 rm -rf conftest.dir
4198 else
4199 am_cv_CC_dependencies_compiler_type=none
4200 fi
4201  
4202 fi
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4204 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4205 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4206  
4207 if
4208 test "x$enable_dependency_tracking" != xno \
4209 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4210 am__fastdepCC_TRUE=
4211 am__fastdepCC_FALSE='#'
4212 else
4213 am__fastdepCC_TRUE='#'
4214 am__fastdepCC_FALSE=
4215 fi
4216  
4217  
4218 ac_ext=cpp
4219 ac_cpp='$CXXCPP $CPPFLAGS'
4220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4223 if test -z "$CXX"; then
4224 if test -n "$CCC"; then
4225 CXX=$CCC
4226 else
4227 if test -n "$ac_tool_prefix"; then
4228 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4229 do
4230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_CXX+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test -n "$CXX"; then
4238 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251 done
4252 done
4253 IFS=$as_save_IFS
4254  
4255 fi
4256 fi
4257 CXX=$ac_cv_prog_CXX
4258 if test -n "$CXX"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4260 $as_echo "$CXX" >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265  
4266  
4267 test -n "$CXX" && break
4268 done
4269 fi
4270 if test -z "$CXX"; then
4271 ac_ct_CXX=$CXX
4272 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4273 do
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$ac_ct_CXX"; then
4282 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_ac_ct_CXX="$ac_prog"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298  
4299 fi
4300 fi
4301 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4302 if test -n "$ac_ct_CXX"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4304 $as_echo "$ac_ct_CXX" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309  
4310  
4311 test -n "$ac_ct_CXX" && break
4312 done
4313  
4314 if test "x$ac_ct_CXX" = x; then
4315 CXX="g++"
4316 else
4317 case $cross_compiling:$ac_tool_warned in
4318 yes:)
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4321 ac_tool_warned=yes ;;
4322 esac
4323 CXX=$ac_ct_CXX
4324 fi
4325 fi
4326  
4327 fi
4328 fi
4329 # Provide some information about the compiler.
4330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4331 set X $ac_compile
4332 ac_compiler=$2
4333 for ac_option in --version -v -V -qversion; do
4334 { { ac_try="$ac_compiler $ac_option >&5"
4335 case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4342 ac_status=$?
4343 if test -s conftest.err; then
4344 sed '10a\
4345 ... rest of stderr output deleted ...
4346 10q' conftest.err >conftest.er1
4347 cat conftest.er1 >&5
4348 fi
4349 rm -f conftest.er1 conftest.err
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }
4352 done
4353  
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4355 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4356 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361  
4362 int
4363 main ()
4364 {
4365 #ifndef __GNUC__
4366 choke me
4367 #endif
4368  
4369 ;
4370 return 0;
4371 }
4372 _ACEOF
4373 if ac_fn_cxx_try_compile "$LINENO"; then :
4374 ac_compiler_gnu=yes
4375 else
4376 ac_compiler_gnu=no
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4380  
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4383 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4384 if test $ac_compiler_gnu = yes; then
4385 GXX=yes
4386 else
4387 GXX=
4388 fi
4389 ac_test_CXXFLAGS=${CXXFLAGS+set}
4390 ac_save_CXXFLAGS=$CXXFLAGS
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4392 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4393 if ${ac_cv_prog_cxx_g+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4397 ac_cxx_werror_flag=yes
4398 ac_cv_prog_cxx_g=no
4399 CXXFLAGS="-g"
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402  
4403 int
4404 main ()
4405 {
4406  
4407 ;
4408 return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_cxx_try_compile "$LINENO"; then :
4412 ac_cv_prog_cxx_g=yes
4413 else
4414 CXXFLAGS=""
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417  
4418 int
4419 main ()
4420 {
4421  
4422 ;
4423 return 0;
4424 }
4425 _ACEOF
4426 if ac_fn_cxx_try_compile "$LINENO"; then :
4427  
4428 else
4429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4430 CXXFLAGS="-g"
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433  
4434 int
4435 main ()
4436 {
4437  
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 if ac_fn_cxx_try_compile "$LINENO"; then :
4443 ac_cv_prog_cxx_g=yes
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 fi
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4451 fi
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4453 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4454 if test "$ac_test_CXXFLAGS" = set; then
4455 CXXFLAGS=$ac_save_CXXFLAGS
4456 elif test $ac_cv_prog_cxx_g = yes; then
4457 if test "$GXX" = yes; then
4458 CXXFLAGS="-g -O2"
4459 else
4460 CXXFLAGS="-g"
4461 fi
4462 else
4463 if test "$GXX" = yes; then
4464 CXXFLAGS="-O2"
4465 else
4466 CXXFLAGS=
4467 fi
4468 fi
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474  
4475 depcc="$CXX" am_compiler_list=
4476  
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4478 $as_echo_n "checking dependency style of $depcc... " >&6; }
4479 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4483 # We make a subdir and do the tests there. Otherwise we can end up
4484 # making bogus files that we don't know about and never remove. For
4485 # instance it was reported that on HP-UX the gcc test will end up
4486 # making a dummy file named `D' -- because `-MD' means `put the output
4487 # in D'.
4488 mkdir conftest.dir
4489 # Copy depcomp to subdir because otherwise we won't find it if we're
4490 # using a relative directory.
4491 cp "$am_depcomp" conftest.dir
4492 cd conftest.dir
4493 # We will build objects and dependencies in a subdirectory because
4494 # it helps to detect inapplicable dependency modes. For instance
4495 # both Tru64's cc and ICC support -MD to output dependencies as a
4496 # side effect of compilation, but ICC will put the dependencies in
4497 # the current directory while Tru64 will put them in the object
4498 # directory.
4499 mkdir sub
4500  
4501 am_cv_CXX_dependencies_compiler_type=none
4502 if test "$am_compiler_list" = ""; then
4503 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4504 fi
4505 am__universal=false
4506 case " $depcc " in #(
4507 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4508 esac
4509  
4510 for depmode in $am_compiler_list; do
4511 # Setup a source with many dependencies, because some compilers
4512 # like to wrap large dependency lists on column 80 (with \), and
4513 # we should not choose a depcomp mode which is confused by this.
4514 #
4515 # We need to recreate these files for each test, as the compiler may
4516 # overwrite some of them when testing with obscure command lines.
4517 # This happens at least with the AIX C compiler.
4518 : > sub/conftest.c
4519 for i in 1 2 3 4 5 6; do
4520 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4522 # Solaris 8's {/usr,}/bin/sh.
4523 touch sub/conftst$i.h
4524 done
4525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4526  
4527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528 # mode. It turns out that the SunPro C++ compiler does not properly
4529 # handle `-M -o', and we need to detect this. Also, some Intel
4530 # versions had trouble with output in subdirs
4531 am__obj=sub/conftest.${OBJEXT-o}
4532 am__minus_obj="-o $am__obj"
4533 case $depmode in
4534 gcc)
4535 # This depmode causes a compiler race in universal mode.
4536 test "$am__universal" = false || continue
4537 ;;
4538 nosideeffect)
4539 # after this tag, mechanisms are not by side-effect, so they'll
4540 # only be used when explicitly requested
4541 if test "x$enable_dependency_tracking" = xyes; then
4542 continue
4543 else
4544 break
4545 fi
4546 ;;
4547 msvisualcpp | msvcmsys)
4548 # This compiler won't grok `-c -o', but also, the minuso test has
4549 # not run yet. These depmodes are late enough in the game, and
4550 # so weak that their functioning should not be impacted.
4551 am__obj=conftest.${OBJEXT-o}
4552 am__minus_obj=
4553 ;;
4554 none) break ;;
4555 esac
4556 if depmode=$depmode \
4557 source=sub/conftest.c object=$am__obj \
4558 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4559 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4560 >/dev/null 2>conftest.err &&
4561 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4563 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4565 # icc doesn't choke on unknown options, it will just issue warnings
4566 # or remarks (even with -Werror). So we grep stderr for any message
4567 # that says an option was ignored or not supported.
4568 # When given -MP, icc 7.0 and 7.1 complain thusly:
4569 # icc: Command line warning: ignoring option '-M'; no argument required
4570 # The diagnosis changed in icc 8.0:
4571 # icc: Command line remark: option '-MP' not supported
4572 if (grep 'ignoring option' conftest.err ||
4573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4574 am_cv_CXX_dependencies_compiler_type=$depmode
4575 break
4576 fi
4577 fi
4578 done
4579  
4580 cd ..
4581 rm -rf conftest.dir
4582 else
4583 am_cv_CXX_dependencies_compiler_type=none
4584 fi
4585  
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4588 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4589 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4590  
4591 if
4592 test "x$enable_dependency_tracking" != xno \
4593 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4594 am__fastdepCXX_TRUE=
4595 am__fastdepCXX_FALSE='#'
4596 else
4597 am__fastdepCXX_TRUE='#'
4598 am__fastdepCXX_FALSE=
4599 fi
4600  
4601  
4602  
4603  
4604  
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
4606 $as_echo_n "checking for C compiler vendor... " >&6; }
4607 if ${ax_cv_c_compiler_vendor+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 ax_cv_c_compiler_vendor=unknown
4611 # note: don't check for gcc first since some other compilers define __GNUC__
4612 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
4613 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616  
4617 int
4618 main ()
4619 {
4620  
4621 #if !($vencpp)
4622 thisisanerror;
4623 #endif
4624  
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 done
4634  
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
4637 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
4638  
4639 # Make sure we can run config.sub.
4640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4641 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4642  
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4644 $as_echo_n "checking build system type... " >&6; }
4645 if ${ac_cv_build+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_build_alias=$build_alias
4649 test "x$ac_build_alias" = x &&
4650 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4651 test "x$ac_build_alias" = x &&
4652 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4653 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4655  
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4658 $as_echo "$ac_cv_build" >&6; }
4659 case $ac_cv_build in
4660 *-*-*) ;;
4661 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4662 esac
4663 build=$ac_cv_build
4664 ac_save_IFS=$IFS; IFS='-'
4665 set x $ac_cv_build
4666 shift
4667 build_cpu=$1
4668 build_vendor=$2
4669 shift; shift
4670 # Remember, the first character of IFS is used to create $*,
4671 # except with old shells:
4672 build_os=$*
4673 IFS=$ac_save_IFS
4674 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4675  
4676  
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4678 $as_echo_n "checking host system type... " >&6; }
4679 if ${ac_cv_host+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test "x$host_alias" = x; then
4683 ac_cv_host=$ac_cv_build
4684 else
4685 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4686 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4687 fi
4688  
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4691 $as_echo "$ac_cv_host" >&6; }
4692 case $ac_cv_host in
4693 *-*-*) ;;
4694 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4695 esac
4696 host=$ac_cv_host
4697 ac_save_IFS=$IFS; IFS='-'
4698 set x $ac_cv_host
4699 shift
4700 host_cpu=$1
4701 host_vendor=$2
4702 shift; shift
4703 # Remember, the first character of IFS is used to create $*,
4704 # except with old shells:
4705 host_os=$*
4706 IFS=$ac_save_IFS
4707 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4708  
4709  
4710  
4711  
4712  
4713  
4714  
4715 # Check whether --enable-portable-binary was given.
4716 if test "${enable_portable_binary+set}" = set; then :
4717 enableval=$enable_portable_binary; acx_maxopt_portable=$withval
4718 else
4719 acx_maxopt_portable=no
4720 fi
4721  
4722  
4723 # Try to determine "good" native compiler flags if none specified via CFLAGS
4724 if test "$ac_test_CFLAGS" != "set"; then
4725 CFLAGS=""
4726 case $ax_cv_c_compiler_vendor in
4727 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
4728 if test "x$acx_maxopt_portable" = xno; then
4729 CFLAGS="$CFLAGS -arch host"
4730 fi;;
4731  
4732 sun) CFLAGS="-native -fast -xO5 -dalign"
4733 if test "x$acx_maxopt_portable" = xyes; then
4734 CFLAGS="$CFLAGS -xarch=generic"
4735 fi;;
4736  
4737 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
4738 if test "x$acx_maxopt_portable" = xyes; then
4739 CFLAGS="$CFLAGS +DAportable"
4740 fi;;
4741  
4742 ibm) if test "x$acx_maxopt_portable" = xno; then
4743 xlc_opt="-qarch=auto -qtune=auto"
4744 else
4745 xlc_opt="-qtune=auto"
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
4748 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
4749 ax_save_FLAGS=$CFLAGS
4750 CFLAGS="$xlc_opt"
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753  
4754 int
4755 main ()
4756 {
4757  
4758 ;
4759 return 0;
4760 }
4761 _ACEOF
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
4764 else
4765 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 CFLAGS=$ax_save_FLAGS
4769 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4771 $as_echo "$ax_check_compiler_flags" >&6; }
4772 if test "x$ax_check_compiler_flags" = xyes; then
4773 CFLAGS="-O3 -qansialias -w $xlc_opt"
4774 else
4775 CFLAGS="-O3 -qansialias -w"
4776 echo "******************************************************"
4777 echo "* You seem to have the IBM C compiler. It is *"
4778 echo "* recommended for best performance that you use: *"
4779 echo "* *"
4780 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
4781 echo "* ^^^ ^^^ *"
4782 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
4783 echo "* CPU you have. (Set the CFLAGS environment var. *"
4784 echo "* and re-run configure.) For more info, man cc. *"
4785 echo "******************************************************"
4786 fi
4787  
4788 ;;
4789  
4790 intel) CFLAGS="-O3 -ansi_alias"
4791 if test "x$acx_maxopt_portable" = xno; then
4792 icc_archflag=unknown
4793 icc_flags=""
4794 case $host_cpu in
4795 i686*|x86_64*)
4796 # icc accepts gcc assembly syntax, so these should work:
4797  
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803  
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
4805 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
4806 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test "$cross_compiling" = yes; then :
4810 ax_cv_gcc_x86_cpuid_0=unknown
4811 else
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #include <stdio.h>
4815 int
4816 main ()
4817 {
4818  
4819 int op = 0, eax, ebx, ecx, edx;
4820 FILE *f;
4821 __asm__("cpuid"
4822 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
4823 : "a" (op));
4824 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
4825 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
4826 fclose(f);
4827 return 0;
4828  
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_c_try_run "$LINENO"; then :
4834 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
4835 else
4836 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
4837 fi
4838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4839 conftest.$ac_objext conftest.beam conftest.$ac_ext
4840 fi
4841  
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
4844 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850  
4851  
4852  
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858  
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
4860 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
4861 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test "$cross_compiling" = yes; then :
4865 ax_cv_gcc_x86_cpuid_1=unknown
4866 else
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 #include <stdio.h>
4870 int
4871 main ()
4872 {
4873  
4874 int op = 1, eax, ebx, ecx, edx;
4875 FILE *f;
4876 __asm__("cpuid"
4877 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
4878 : "a" (op));
4879 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
4880 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
4881 fclose(f);
4882 return 0;
4883  
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_run "$LINENO"; then :
4889 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
4890 else
4891 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
4892 fi
4893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4894 conftest.$ac_objext conftest.beam conftest.$ac_ext
4895 fi
4896  
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
4899 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
4900 ac_ext=c
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905  
4906  
4907 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
4908 *:756e6547:*:*) # Intel
4909 case $ax_cv_gcc_x86_cpuid_1 in
4910 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
4911 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
4912 *f??:*:*:*) icc_flags="-xN -xW -xK";;
4913 esac ;;
4914 esac ;;
4915 esac
4916 if test "x$icc_flags" != x; then
4917 for flag in $icc_flags; do
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
4919 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
4920 ax_save_FLAGS=$CFLAGS
4921 CFLAGS="$flag"
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924  
4925 int
4926 main ()
4927 {
4928  
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
4935 else
4936 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
4937 fi
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 CFLAGS=$ax_save_FLAGS
4940 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4942 $as_echo "$ax_check_compiler_flags" >&6; }
4943 if test "x$ax_check_compiler_flags" = xyes; then
4944 icc_archflag=$flag; break
4945 else
4946 :
4947 fi
4948  
4949 done
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
4952 $as_echo_n "checking for icc architecture flag... " >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
4954 $as_echo "$icc_archflag" >&6; }
4955 if test "x$icc_archflag" != xunknown; then
4956 CFLAGS="$CFLAGS $icc_archflag"
4957 fi
4958 fi
4959 ;;
4960  
4961 gnu)
4962 # default optimization flags for gcc on all systems
4963 CFLAGS="-O3 -fomit-frame-pointer"
4964  
4965 # -malign-double for x86 systems
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
4967 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
4968 if ${ax_cv_c_flags__malign_double+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971  
4972 ax_save_FLAGS=$CFLAGS
4973 CFLAGS="-malign-double"
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976  
4977 int
4978 main ()
4979 {
4980  
4981 ;
4982 return 0;
4983 }
4984 _ACEOF
4985 if ac_fn_c_try_compile "$LINENO"; then :
4986 ax_cv_c_flags__malign_double=yes
4987 else
4988 ax_cv_c_flags__malign_double=no
4989 fi
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 CFLAGS=$ax_save_FLAGS
4992 fi
4993  
4994 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
4996 $as_echo "$ax_check_compiler_flags" >&6; }
4997 if test "x$ax_check_compiler_flags" = xyes; then
4998 CFLAGS="$CFLAGS -malign-double"
4999 else
5000 :
5001 fi
5002  
5003  
5004 # -fstrict-aliasing for gcc-2.95+
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
5006 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
5007 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010  
5011 ax_save_FLAGS=$CFLAGS
5012 CFLAGS="-fstrict-aliasing"
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015  
5016 int
5017 main ()
5018 {
5019  
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025 ax_cv_c_flags__fstrict_aliasing=yes
5026 else
5027 ax_cv_c_flags__fstrict_aliasing=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 CFLAGS=$ax_save_FLAGS
5031 fi
5032  
5033 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5035 $as_echo "$ax_check_compiler_flags" >&6; }
5036 if test "x$ax_check_compiler_flags" = xyes; then
5037 CFLAGS="$CFLAGS -fstrict-aliasing"
5038 else
5039 :
5040 fi
5041  
5042  
5043 # note that we enable "unsafe" fp optimization with other compilers, too
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
5045 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
5046 if ${ax_cv_c_flags__ffast_math+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049  
5050 ax_save_FLAGS=$CFLAGS
5051 CFLAGS="-ffast-math"
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054  
5055 int
5056 main ()
5057 {
5058  
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064 ax_cv_c_flags__ffast_math=yes
5065 else
5066 ax_cv_c_flags__ffast_math=no
5067 fi
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 CFLAGS=$ax_save_FLAGS
5070 fi
5071  
5072 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5074 $as_echo "$ax_check_compiler_flags" >&6; }
5075 if test "x$ax_check_compiler_flags" = xyes; then
5076 CFLAGS="$CFLAGS -ffast-math"
5077 else
5078 :
5079 fi
5080  
5081  
5082  
5083  
5084  
5085  
5086 # Check whether --with-gcc-arch was given.
5087 if test "${with_gcc_arch+set}" = set; then :
5088 withval=$with_gcc_arch; ax_gcc_arch=$withval
5089 else
5090 ax_gcc_arch=yes
5091 fi
5092  
5093  
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
5095 $as_echo_n "checking for gcc architecture flag... " >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
5097 $as_echo "" >&6; }
5098 if ${ax_cv_gcc_archflag+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101  
5102 ax_cv_gcc_archflag="unknown"
5103  
5104 if test "$GCC" = yes; then
5105  
5106 if test "x$ax_gcc_arch" = xyes; then
5107 ax_gcc_arch=""
5108 if test "$cross_compiling" = no; then
5109 case $host_cpu in
5110 i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones
5111  
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117  
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
5119 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
5120 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test "$cross_compiling" = yes; then :
5124 ax_cv_gcc_x86_cpuid_0=unknown
5125 else
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #include <stdio.h>
5129 int
5130 main ()
5131 {
5132  
5133 int op = 0, eax, ebx, ecx, edx;
5134 FILE *f;
5135 __asm__("cpuid"
5136 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
5137 : "a" (op));
5138 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
5139 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
5140 fclose(f);
5141 return 0;
5142  
5143 ;
5144 return 0;
5145 }
5146 _ACEOF
5147 if ac_fn_c_try_run "$LINENO"; then :
5148 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
5149 else
5150 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
5151 fi
5152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5153 conftest.$ac_objext conftest.beam conftest.$ac_ext
5154 fi
5155  
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
5158 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
5159 ac_ext=c
5160 ac_cpp='$CPP $CPPFLAGS'
5161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164  
5165  
5166  
5167 ac_ext=c
5168 ac_cpp='$CPP $CPPFLAGS'
5169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172  
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
5174 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
5175 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test "$cross_compiling" = yes; then :
5179 ax_cv_gcc_x86_cpuid_1=unknown
5180 else
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <stdio.h>
5184 int
5185 main ()
5186 {
5187  
5188 int op = 1, eax, ebx, ecx, edx;
5189 FILE *f;
5190 __asm__("cpuid"
5191 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
5192 : "a" (op));
5193 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
5194 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
5195 fclose(f);
5196 return 0;
5197  
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_run "$LINENO"; then :
5203 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
5204 else
5205 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
5206 fi
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208 conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 fi
5210  
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
5213 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
5214 ac_ext=c
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219  
5220  
5221 case $ax_cv_gcc_x86_cpuid_0 in
5222 *:756e6547:*:*) # Intel
5223 case $ax_cv_gcc_x86_cpuid_1 in
5224 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
5225 *5??:*:*:*) ax_gcc_arch=pentium ;;
5226 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
5227 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
5228 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
5229 *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
5230 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
5231 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
5232 *f3[347]:*:*:*|*f41347:*:*:*)
5233 case $host_cpu in
5234 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
5235 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
5236 esac ;;
5237 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
5238 esac ;;
5239 *:68747541:*:*) # AMD
5240 case $ax_cv_gcc_x86_cpuid_1 in
5241 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
5242 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
5243 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
5244 *60?:*:*:*) ax_gcc_arch=k7 ;;
5245 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
5246 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
5247 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
5248 *6[68a]?:*:*:*)
5249  
5250 ac_ext=c
5251 ac_cpp='$CPP $CPPFLAGS'
5252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255  
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
5257 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
5258 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test "$cross_compiling" = yes; then :
5262 ax_cv_gcc_x86_cpuid_0x80000006=unknown
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #include <stdio.h>
5267 int
5268 main ()
5269 {
5270  
5271 int op = 0x80000006, eax, ebx, ecx, edx;
5272 FILE *f;
5273 __asm__("cpuid"
5274 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
5275 : "a" (op));
5276 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
5277 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
5278 fclose(f);
5279 return 0;
5280  
5281 ;
5282 return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_run "$LINENO"; then :
5286 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
5287 else
5288 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
5289 fi
5290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5291 conftest.$ac_objext conftest.beam conftest.$ac_ext
5292 fi
5293  
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
5296 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
5297 ac_ext=c
5298 ac_cpp='$CPP $CPPFLAGS'
5299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302  
5303 # L2 cache size
5304 case $ax_cv_gcc_x86_cpuid_0x80000006 in
5305 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
5306 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
5307 *) ax_gcc_arch="athlon-4 athlon k7" ;;
5308 esac ;;
5309 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
5310 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
5311 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
5312 *f??:*:*:*) ax_gcc_arch="k8" ;;
5313 esac ;;
5314 *:746e6543:*:*) # IDT
5315 case $ax_cv_gcc_x86_cpuid_1 in
5316 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
5317 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
5318 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
5319 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
5320 esac ;;
5321 esac
5322 if test x"$ax_gcc_arch" = x; then # fallback
5323 case $host_cpu in
5324 i586*) ax_gcc_arch=pentium ;;
5325 i686*) ax_gcc_arch=pentiumpro ;;
5326 esac
5327 fi
5328 ;;
5329  
5330 sparc*)
5331 # Extract the first word of "prtdiag", so it can be a program name with args.
5332 set dummy prtdiag; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_path_PRTDIAG+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 case $PRTDIAG in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
5341 ;;
5342 *)
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
5345 for as_dir in $as_dummy
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358  
5359 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
5360 ;;
5361 esac
5362 fi
5363 PRTDIAG=$ac_cv_path_PRTDIAG
5364 if test -n "$PRTDIAG"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
5366 $as_echo "$PRTDIAG" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 fi
5371  
5372  
5373 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
5374 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
5375 case $cputype in
5376 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
5377 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
5378 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
5379 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
5380 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
5381 *cypress*) ax_gcc_arch=cypress ;;
5382 esac ;;
5383  
5384 alphaev5) ax_gcc_arch=ev5 ;;
5385 alphaev56) ax_gcc_arch=ev56 ;;
5386 alphapca56) ax_gcc_arch="pca56 ev56" ;;
5387 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
5388 alphaev6) ax_gcc_arch=ev6 ;;
5389 alphaev67) ax_gcc_arch=ev67 ;;
5390 alphaev68) ax_gcc_arch="ev68 ev67" ;;
5391 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
5392 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
5393 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
5394  
5395 powerpc*)
5396 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
5397 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
5398 case $cputype in
5399 *750*) ax_gcc_arch="750 G3" ;;
5400 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
5401 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
5402 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
5403 *970*) ax_gcc_arch="970 G5 power4";;
5404 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
5405 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
5406 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
5407 *) ax_gcc_arch=$cputype ;;
5408 esac
5409 ax_gcc_arch="$ax_gcc_arch powerpc"
5410 ;;
5411 esac
5412 fi # not cross-compiling
5413 fi # guess arch
5414  
5415 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
5416 for arch in $ax_gcc_arch; do
5417 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
5418 flags="-mtune=$arch"
5419 # -mcpu=$arch and m$arch generate nonportable code on every arch except
5420 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
5421 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
5422 else
5423 flags="-march=$arch -mcpu=$arch -m$arch"
5424 fi
5425 for flag in $flags; do
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
5427 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
5428 ax_save_FLAGS=$CFLAGS
5429 CFLAGS="$flag"
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432  
5433 int
5434 main ()
5435 {
5436  
5437 ;
5438 return 0;
5439 }
5440 _ACEOF
5441 if ac_fn_c_try_compile "$LINENO"; then :
5442 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
5443 else
5444 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 CFLAGS=$ax_save_FLAGS
5448 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5450 $as_echo "$ax_check_compiler_flags" >&6; }
5451 if test "x$ax_check_compiler_flags" = xyes; then
5452 ax_cv_gcc_archflag=$flag; break
5453 else
5454 :
5455 fi
5456  
5457 done
5458 test "x$ax_cv_gcc_archflag" = xunknown || break
5459 done
5460 fi
5461  
5462 fi # $GCC=yes
5463  
5464 fi
5465  
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
5467 $as_echo_n "checking for gcc architecture flag... " >&6; }
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
5469 $as_echo "$ax_cv_gcc_archflag" >&6; }
5470 if test "x$ax_cv_gcc_archflag" = xunknown; then
5471 :
5472 else
5473 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
5474 fi
5475  
5476  
5477 # drop to -O1 for gcc 4.2
5478 $CC --version |
5479 sed -e 's/.* \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1 \2/' |
5480 (read major minor
5481 if test $major -eq 4 -a $minor -eq 2; then
5482 exit 0
5483 fi
5484 exit 1
5485 ) && CFLAGS="-O1"
5486 ;;
5487 esac
5488  
5489 if test -z "$CFLAGS"; then
5490 echo ""
5491 echo "********************************************************"
5492 echo "* WARNING: Don't know the best CFLAGS for this system *"
5493 echo "* Use ./configure CFLAGS=... to specify your own flags *"
5494 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
5495 echo "********************************************************"
5496 echo ""
5497 CFLAGS="-O3"
5498 fi
5499  
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
5501 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
5502 ax_save_FLAGS=$CFLAGS
5503 CFLAGS="$CFLAGS"
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506  
5507 int
5508 main ()
5509 {
5510  
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"; then :
5516 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
5517 else
5518 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 CFLAGS=$ax_save_FLAGS
5522 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
5524 $as_echo "$ax_check_compiler_flags" >&6; }
5525 if test "x$ax_check_compiler_flags" = xyes; then
5526 :
5527 else
5528  
5529 echo ""
5530 echo "********************************************************"
5531 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
5532 echo "* your compiler. *"
5533 echo "* Use ./configure CFLAGS=... to specify your own flags *"
5534 echo "********************************************************"
5535 echo ""
5536 CFLAGS=""
5537  
5538 fi
5539  
5540  
5541 fi
5542  
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports function __attribute__((__warn_unused_result__))" >&5
5544 $as_echo_n "checking whether the compiler supports function __attribute__((__warn_unused_result__))... " >&6; }
5545 if ${ax_cv_gcc_warn_unused_result+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548  
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 __attribute__((__warn_unused_result__))
5552 int f(int i) { return i; }
5553 int
5554 main ()
5555 {
5556  
5557 ;
5558 return 0;
5559 }
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 ax_cv_gcc_warn_unused_result=yes
5563 else
5564 ax_cv_gcc_warn_unused_result=no
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_warn_unused_result" >&5
5569 $as_echo "$ax_cv_gcc_warn_unused_result" >&6; }
5570 if test "$ax_cv_gcc_warn_unused_result" = yes; then
5571  
5572 $as_echo "#define GCC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))" >>confdefs.h
5573  
5574 fi
5575  
5576  
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5578 $as_echo_n "checking for __attribute__... " >&6; }
5579 if ${ax_cv___attribute__+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <stdlib.h>
5585 static void foo(void) __attribute__ ((unused));
5586 static void
5587 foo(void) {
5588 exit(1);
5589 }
5590  
5591 int
5592 main ()
5593 {
5594  
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 ax_cv___attribute__=yes
5601 else
5602 ax_cv___attribute__=no
5603  
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606  
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
5609 $as_echo "$ax_cv___attribute__" >&6; }
5610 if test "$ax_cv___attribute__" = "yes"; then
5611  
5612 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
5613  
5614 fi
5615  
5616  
5617 case `pwd` in
5618 *\ * | *\ *)
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5620 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5621 esac
5622  
5623  
5624  
5625 macro_version='2.4'
5626 macro_revision='1.3293'
5627  
5628  
5629  
5630  
5631  
5632  
5633  
5634  
5635  
5636  
5637  
5638  
5639  
5640 ltmain="$ac_aux_dir/ltmain.sh"
5641  
5642 # Backslashify metacharacters that are still active within
5643 # double-quoted strings.
5644 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5645  
5646 # Same as above, but do not quote variable references.
5647 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5648  
5649 # Sed substitution to delay expansion of an escaped shell variable in a
5650 # double_quote_subst'ed string.
5651 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5652  
5653 # Sed substitution to delay expansion of an escaped single quote.
5654 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5655  
5656 # Sed substitution to avoid accidental globbing in evaled expressions
5657 no_glob_subst='s/\*/\\\*/g'
5658  
5659 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5660 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5662  
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5664 $as_echo_n "checking how to print strings... " >&6; }
5665 # Test print first, because it will be a builtin if present.
5666 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5667 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5668 ECHO='print -r --'
5669 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5670 ECHO='printf %s\n'
5671 else
5672 # Use this function as a fallback that always works.
5673 func_fallback_echo ()
5674 {
5675 eval 'cat <<_LTECHO_EOF
5676 $1
5677 _LTECHO_EOF'
5678 }
5679 ECHO='func_fallback_echo'
5680 fi
5681  
5682 # func_echo_all arg...
5683 # Invoke $ECHO with all args, space-separated.
5684 func_echo_all ()
5685 {
5686 $ECHO ""
5687 }
5688  
5689 case "$ECHO" in
5690 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5691 $as_echo "printf" >&6; } ;;
5692 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5693 $as_echo "print -r" >&6; } ;;
5694 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5695 $as_echo "cat" >&6; } ;;
5696 esac
5697  
5698  
5699  
5700  
5701  
5702  
5703  
5704  
5705  
5706  
5707  
5708  
5709  
5710  
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5712 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5713 if ${ac_cv_path_SED+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5717 for ac_i in 1 2 3 4 5 6 7; do
5718 ac_script="$ac_script$as_nl$ac_script"
5719 done
5720 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5721 { ac_script=; unset ac_script;}
5722 if test -z "$SED"; then
5723 ac_path_SED_found=false
5724 # Loop through the user's path and test for each of PROGNAME-LIST
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_prog in sed gsed; do
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5733 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5734 # Check for GNU ac_path_SED and select it if it is found.
5735 # Check for GNU $ac_path_SED
5736 case `"$ac_path_SED" --version 2>&1` in
5737 *GNU*)
5738 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5739 *)
5740 ac_count=0
5741 $as_echo_n 0123456789 >"conftest.in"
5742 while :
5743 do
5744 cat "conftest.in" "conftest.in" >"conftest.tmp"
5745 mv "conftest.tmp" "conftest.in"
5746 cp "conftest.in" "conftest.nl"
5747 $as_echo '' >> "conftest.nl"
5748 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5750 as_fn_arith $ac_count + 1 && ac_count=$as_val
5751 if test $ac_count -gt ${ac_path_SED_max-0}; then
5752 # Best one so far, save it but keep looking for a better one
5753 ac_cv_path_SED="$ac_path_SED"
5754 ac_path_SED_max=$ac_count
5755 fi
5756 # 10*(2^10) chars as input seems more than enough
5757 test $ac_count -gt 10 && break
5758 done
5759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5760 esac
5761  
5762 $ac_path_SED_found && break 3
5763 done
5764 done
5765 done
5766 IFS=$as_save_IFS
5767 if test -z "$ac_cv_path_SED"; then
5768 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5769 fi
5770 else
5771 ac_cv_path_SED=$SED
5772 fi
5773  
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5776 $as_echo "$ac_cv_path_SED" >&6; }
5777 SED="$ac_cv_path_SED"
5778 rm -f conftest.sed
5779  
5780 test -z "$SED" && SED=sed
5781 Xsed="$SED -e 1s/^X//"
5782  
5783  
5784  
5785  
5786  
5787  
5788  
5789  
5790  
5791  
5792  
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5794 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5795 if ${ac_cv_path_GREP+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -z "$GREP"; then
5799 ac_path_GREP_found=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_prog in grep ggrep; do
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5809 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5810 # Check for GNU ac_path_GREP and select it if it is found.
5811 # Check for GNU $ac_path_GREP
5812 case `"$ac_path_GREP" --version 2>&1` in
5813 *GNU*)
5814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5815 *)
5816 ac_count=0
5817 $as_echo_n 0123456789 >"conftest.in"
5818 while :
5819 do
5820 cat "conftest.in" "conftest.in" >"conftest.tmp"
5821 mv "conftest.tmp" "conftest.in"
5822 cp "conftest.in" "conftest.nl"
5823 $as_echo 'GREP' >> "conftest.nl"
5824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5826 as_fn_arith $ac_count + 1 && ac_count=$as_val
5827 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5828 # Best one so far, save it but keep looking for a better one
5829 ac_cv_path_GREP="$ac_path_GREP"
5830 ac_path_GREP_max=$ac_count
5831 fi
5832 # 10*(2^10) chars as input seems more than enough
5833 test $ac_count -gt 10 && break
5834 done
5835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5836 esac
5837  
5838 $ac_path_GREP_found && break 3
5839 done
5840 done
5841 done
5842 IFS=$as_save_IFS
5843 if test -z "$ac_cv_path_GREP"; then
5844 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5845 fi
5846 else
5847 ac_cv_path_GREP=$GREP
5848 fi
5849  
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5852 $as_echo "$ac_cv_path_GREP" >&6; }
5853 GREP="$ac_cv_path_GREP"
5854  
5855  
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5857 $as_echo_n "checking for egrep... " >&6; }
5858 if ${ac_cv_path_EGREP+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5862 then ac_cv_path_EGREP="$GREP -E"
5863 else
5864 if test -z "$EGREP"; then
5865 ac_path_EGREP_found=false
5866 # Loop through the user's path and test for each of PROGNAME-LIST
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5869 do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_prog in egrep; do
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5875 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5876 # Check for GNU ac_path_EGREP and select it if it is found.
5877 # Check for GNU $ac_path_EGREP
5878 case `"$ac_path_EGREP" --version 2>&1` in
5879 *GNU*)
5880 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5881 *)
5882 ac_count=0
5883 $as_echo_n 0123456789 >"conftest.in"
5884 while :
5885 do
5886 cat "conftest.in" "conftest.in" >"conftest.tmp"
5887 mv "conftest.tmp" "conftest.in"
5888 cp "conftest.in" "conftest.nl"
5889 $as_echo 'EGREP' >> "conftest.nl"
5890 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5892 as_fn_arith $ac_count + 1 && ac_count=$as_val
5893 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5894 # Best one so far, save it but keep looking for a better one
5895 ac_cv_path_EGREP="$ac_path_EGREP"
5896 ac_path_EGREP_max=$ac_count
5897 fi
5898 # 10*(2^10) chars as input seems more than enough
5899 test $ac_count -gt 10 && break
5900 done
5901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5902 esac
5903  
5904 $ac_path_EGREP_found && break 3
5905 done
5906 done
5907 done
5908 IFS=$as_save_IFS
5909 if test -z "$ac_cv_path_EGREP"; then
5910 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5911 fi
5912 else
5913 ac_cv_path_EGREP=$EGREP
5914 fi
5915  
5916 fi
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5919 $as_echo "$ac_cv_path_EGREP" >&6; }
5920 EGREP="$ac_cv_path_EGREP"
5921  
5922  
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5924 $as_echo_n "checking for fgrep... " >&6; }
5925 if ${ac_cv_path_FGREP+:} false; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5929 then ac_cv_path_FGREP="$GREP -F"
5930 else
5931 if test -z "$FGREP"; then
5932 ac_path_FGREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_prog in fgrep; do
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5943 # Check for GNU ac_path_FGREP and select it if it is found.
5944 # Check for GNU $ac_path_FGREP
5945 case `"$ac_path_FGREP" --version 2>&1` in
5946 *GNU*)
5947 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5948 *)
5949 ac_count=0
5950 $as_echo_n 0123456789 >"conftest.in"
5951 while :
5952 do
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'FGREP' >> "conftest.nl"
5957 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959 as_fn_arith $ac_count + 1 && ac_count=$as_val
5960 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_FGREP="$ac_path_FGREP"
5963 ac_path_FGREP_max=$ac_count
5964 fi
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5967 done
5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5969 esac
5970  
5971 $ac_path_FGREP_found && break 3
5972 done
5973 done
5974 done
5975 IFS=$as_save_IFS
5976 if test -z "$ac_cv_path_FGREP"; then
5977 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5978 fi
5979 else
5980 ac_cv_path_FGREP=$FGREP
5981 fi
5982  
5983 fi
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5986 $as_echo "$ac_cv_path_FGREP" >&6; }
5987 FGREP="$ac_cv_path_FGREP"
5988  
5989  
5990 test -z "$GREP" && GREP=grep
5991  
5992  
5993  
5994  
5995  
5996  
5997  
5998  
5999  
6000  
6001  
6002  
6003  
6004  
6005  
6006  
6007  
6008  
6009  
6010 # Check whether --with-gnu-ld was given.
6011 if test "${with_gnu_ld+set}" = set; then :
6012 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6013 else
6014 with_gnu_ld=no
6015 fi
6016  
6017 ac_prog=ld
6018 if test "$GCC" = yes; then
6019 # Check if gcc -print-prog-name=ld gives a path.
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6021 $as_echo_n "checking for ld used by $CC... " >&6; }
6022 case $host in
6023 *-*-mingw*)
6024 # gcc leaves a trailing carriage return which upsets mingw
6025 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6026 *)
6027 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6028 esac
6029 case $ac_prog in
6030 # Accept absolute paths.
6031 [\\/]* | ?:[\\/]*)
6032 re_direlt='/[^/][^/]*/\.\./'
6033 # Canonicalize the pathname of ld
6034 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6035 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6036 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6037 done
6038 test -z "$LD" && LD="$ac_prog"
6039 ;;
6040 "")
6041 # If it fails, then pretend we aren't using GCC.
6042 ac_prog=ld
6043 ;;
6044 *)
6045 # If it is relative, then search for the first ld in PATH.
6046 with_gnu_ld=unknown
6047 ;;
6048 esac
6049 elif test "$with_gnu_ld" = yes; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6051 $as_echo_n "checking for GNU ld... " >&6; }
6052 else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6054 $as_echo_n "checking for non-GNU ld... " >&6; }
6055 fi
6056 if ${lt_cv_path_LD+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -z "$LD"; then
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061 for ac_dir in $PATH; do
6062 IFS="$lt_save_ifs"
6063 test -z "$ac_dir" && ac_dir=.
6064 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6065 lt_cv_path_LD="$ac_dir/$ac_prog"
6066 # Check to see if the program is GNU ld. I'd rather use --version,
6067 # but apparently some variants of GNU ld only accept -v.
6068 # Break only if it was the GNU/non-GNU ld that we prefer.
6069 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6070 *GNU* | *'with BFD'*)
6071 test "$with_gnu_ld" != no && break
6072 ;;
6073 *)
6074 test "$with_gnu_ld" != yes && break
6075 ;;
6076 esac
6077 fi
6078 done
6079 IFS="$lt_save_ifs"
6080 else
6081 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6082 fi
6083 fi
6084  
6085 LD="$lt_cv_path_LD"
6086 if test -n "$LD"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6088 $as_echo "$LD" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6096 if ${lt_cv_prog_gnu_ld+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6100 case `$LD -v 2>&1 </dev/null` in
6101 *GNU* | *'with BFD'*)
6102 lt_cv_prog_gnu_ld=yes
6103 ;;
6104 *)
6105 lt_cv_prog_gnu_ld=no
6106 ;;
6107 esac
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6110 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6111 with_gnu_ld=$lt_cv_prog_gnu_ld
6112  
6113  
6114  
6115  
6116  
6117  
6118  
6119  
6120  
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6122 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6123 if ${lt_cv_path_NM+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test -n "$NM"; then
6127 # Let the user override the test.
6128 lt_cv_path_NM="$NM"
6129 else
6130 lt_nm_to_check="${ac_tool_prefix}nm"
6131 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6132 lt_nm_to_check="$lt_nm_to_check nm"
6133 fi
6134 for lt_tmp_nm in $lt_nm_to_check; do
6135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6136 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6137 IFS="$lt_save_ifs"
6138 test -z "$ac_dir" && ac_dir=.
6139 tmp_nm="$ac_dir/$lt_tmp_nm"
6140 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6141 # Check to see if the nm accepts a BSD-compat flag.
6142 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6143 # nm: unknown option "B" ignored
6144 # Tru64's nm complains that /dev/null is an invalid object file
6145 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6146 */dev/null* | *'Invalid file or object type'*)
6147 lt_cv_path_NM="$tmp_nm -B"
6148 break
6149 ;;
6150 *)
6151 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6152 */dev/null*)
6153 lt_cv_path_NM="$tmp_nm -p"
6154 break
6155 ;;
6156 *)
6157 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6158 continue # so that we can try to find one that supports BSD flags
6159 ;;
6160 esac
6161 ;;
6162 esac
6163 fi
6164 done
6165 IFS="$lt_save_ifs"
6166 done
6167 : ${lt_cv_path_NM=no}
6168 fi
6169 fi
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6171 $as_echo "$lt_cv_path_NM" >&6; }
6172 if test "$lt_cv_path_NM" != "no"; then
6173 NM="$lt_cv_path_NM"
6174 else
6175 # Didn't find any BSD compatible name lister, look for dumpbin.
6176 if test -n "$DUMPBIN"; then :
6177 # Let the user override the test.
6178 else
6179 if test -n "$ac_tool_prefix"; then
6180 for ac_prog in dumpbin "link -dump"
6181 do
6182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_DUMPBIN+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$DUMPBIN"; then
6190 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206  
6207 fi
6208 fi
6209 DUMPBIN=$ac_cv_prog_DUMPBIN
6210 if test -n "$DUMPBIN"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6212 $as_echo "$DUMPBIN" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217  
6218  
6219 test -n "$DUMPBIN" && break
6220 done
6221 fi
6222 if test -z "$DUMPBIN"; then
6223 ac_ct_DUMPBIN=$DUMPBIN
6224 for ac_prog in dumpbin "link -dump"
6225 do
6226 # Extract the first word of "$ac_prog", so it can be a program name with args.
6227 set dummy $ac_prog; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 if test -n "$ac_ct_DUMPBIN"; then
6234 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250  
6251 fi
6252 fi
6253 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6254 if test -n "$ac_ct_DUMPBIN"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6256 $as_echo "$ac_ct_DUMPBIN" >&6; }
6257 else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261  
6262  
6263 test -n "$ac_ct_DUMPBIN" && break
6264 done
6265  
6266 if test "x$ac_ct_DUMPBIN" = x; then
6267 DUMPBIN=":"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275 DUMPBIN=$ac_ct_DUMPBIN
6276 fi
6277 fi
6278  
6279 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6280 *COFF*)
6281 DUMPBIN="$DUMPBIN -symbols"
6282 ;;
6283 *)
6284 DUMPBIN=:
6285 ;;
6286 esac
6287 fi
6288  
6289 if test "$DUMPBIN" != ":"; then
6290 NM="$DUMPBIN"
6291 fi
6292 fi
6293 test -z "$NM" && NM=nm
6294  
6295  
6296  
6297  
6298  
6299  
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6301 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6302 if ${lt_cv_nm_interface+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 lt_cv_nm_interface="BSD nm"
6306 echo "int some_variable = 0;" > conftest.$ac_ext
6307 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6308 (eval "$ac_compile" 2>conftest.err)
6309 cat conftest.err >&5
6310 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6311 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6312 cat conftest.err >&5
6313 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6314 cat conftest.out >&5
6315 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6316 lt_cv_nm_interface="MS dumpbin"
6317 fi
6318 rm -f conftest*
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6321 $as_echo "$lt_cv_nm_interface" >&6; }
6322  
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6324 $as_echo_n "checking whether ln -s works... " >&6; }
6325 LN_S=$as_ln_s
6326 if test "$LN_S" = "ln -s"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6328 $as_echo "yes" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6331 $as_echo "no, using $LN_S" >&6; }
6332 fi
6333  
6334 # find the maximum length of command line arguments
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6336 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6337 if ${lt_cv_sys_max_cmd_len+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 i=0
6341 teststring="ABCD"
6342  
6343 case $build_os in
6344 msdosdjgpp*)
6345 # On DJGPP, this test can blow up pretty badly due to problems in libc
6346 # (any single argument exceeding 2000 bytes causes a buffer overrun
6347 # during glob expansion). Even if it were fixed, the result of this
6348 # check would be larger than it should be.
6349 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6350 ;;
6351  
6352 gnu*)
6353 # Under GNU Hurd, this test is not required because there is
6354 # no limit to the length of command line arguments.
6355 # Libtool will interpret -1 as no limit whatsoever
6356 lt_cv_sys_max_cmd_len=-1;
6357 ;;
6358  
6359 cygwin* | mingw* | cegcc*)
6360 # On Win9x/ME, this test blows up -- it succeeds, but takes
6361 # about 5 minutes as the teststring grows exponentially.
6362 # Worse, since 9x/ME are not pre-emptively multitasking,
6363 # you end up with a "frozen" computer, even though with patience
6364 # the test eventually succeeds (with a max line length of 256k).
6365 # Instead, let's just punt: use the minimum linelength reported by
6366 # all of the supported platforms: 8192 (on NT/2K/XP).
6367 lt_cv_sys_max_cmd_len=8192;
6368 ;;
6369  
6370 mint*)
6371 # On MiNT this can take a long time and run out of memory.
6372 lt_cv_sys_max_cmd_len=8192;
6373 ;;
6374  
6375 amigaos*)
6376 # On AmigaOS with pdksh, this test takes hours, literally.
6377 # So we just punt and use a minimum line length of 8192.
6378 lt_cv_sys_max_cmd_len=8192;
6379 ;;
6380  
6381 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6382 # This has been around since 386BSD, at least. Likely further.
6383 if test -x /sbin/sysctl; then
6384 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6385 elif test -x /usr/sbin/sysctl; then
6386 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6387 else
6388 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6389 fi
6390 # And add a safety zone
6391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6393 ;;
6394  
6395 interix*)
6396 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6397 lt_cv_sys_max_cmd_len=196608
6398 ;;
6399  
6400 osf*)
6401 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6402 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6403 # nice to cause kernel panics so lets avoid the loop below.
6404 # First set a reasonable default.
6405 lt_cv_sys_max_cmd_len=16384
6406 #
6407 if test -x /sbin/sysconfig; then
6408 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6409 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6410 esac
6411 fi
6412 ;;
6413 sco3.2v5*)
6414 lt_cv_sys_max_cmd_len=102400
6415 ;;
6416 sysv5* | sco5v6* | sysv4.2uw2*)
6417 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6418 if test -n "$kargmax"; then
6419 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6420 else
6421 lt_cv_sys_max_cmd_len=32768
6422 fi
6423 ;;
6424 *)
6425 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6426 if test -n "$lt_cv_sys_max_cmd_len"; then
6427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6429 else
6430 # Make teststring a little bigger before we do anything with it.
6431 # a 1K string should be a reasonable start.
6432 for i in 1 2 3 4 5 6 7 8 ; do
6433 teststring=$teststring$teststring
6434 done
6435 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6436 # If test is not a shell built-in, we'll probably end up computing a
6437 # maximum length that is only half of the actual maximum length, but
6438 # we can't tell.
6439 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6440 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6441 test $i != 17 # 1/2 MB should be enough
6442 do
6443 i=`expr $i + 1`
6444 teststring=$teststring$teststring
6445 done
6446 # Only check the string length outside the loop.
6447 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6448 teststring=
6449 # Add a significant safety factor because C++ compilers can tack on
6450 # massive amounts of additional arguments before passing them to the
6451 # linker. It appears as though 1/2 is a usable value.
6452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6453 fi
6454 ;;
6455 esac
6456  
6457 fi
6458  
6459 if test -n $lt_cv_sys_max_cmd_len ; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6461 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6464 $as_echo "none" >&6; }
6465 fi
6466 max_cmd_len=$lt_cv_sys_max_cmd_len
6467  
6468  
6469  
6470  
6471  
6472  
6473 : ${CP="cp -f"}
6474 : ${MV="mv -f"}
6475 : ${RM="rm -f"}
6476  
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6478 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6479 # Try some XSI features
6480 xsi_shell=no
6481 ( _lt_dummy="a/b/c"
6482 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6483 = c,a/b,b/c, \
6484 && eval 'test $(( 1 + 1 )) -eq 2 \
6485 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6486 && xsi_shell=yes
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6488 $as_echo "$xsi_shell" >&6; }
6489  
6490  
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6492 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6493 lt_shell_append=no
6494 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6495 >/dev/null 2>&1 \
6496 && lt_shell_append=yes
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6498 $as_echo "$lt_shell_append" >&6; }
6499  
6500  
6501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6502 lt_unset=unset
6503 else
6504 lt_unset=false
6505 fi
6506  
6507  
6508  
6509  
6510  
6511 # test EBCDIC or ASCII
6512 case `echo X|tr X '\101'` in
6513 A) # ASCII based system
6514 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6515 lt_SP2NL='tr \040 \012'
6516 lt_NL2SP='tr \015\012 \040\040'
6517 ;;
6518 *) # EBCDIC based system
6519 lt_SP2NL='tr \100 \n'
6520 lt_NL2SP='tr \r\n \100\100'
6521 ;;
6522 esac
6523  
6524  
6525  
6526  
6527  
6528  
6529  
6530  
6531  
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6533 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6534 if ${lt_cv_to_host_file_cmd+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 case $host in
6538 *-*-mingw* )
6539 case $build in
6540 *-*-mingw* ) # actually msys
6541 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6542 ;;
6543 *-*-cygwin* )
6544 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6545 ;;
6546 * ) # otherwise, assume *nix
6547 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6548 ;;
6549 esac
6550 ;;
6551 *-*-cygwin* )
6552 case $build in
6553 *-*-mingw* ) # actually msys
6554 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6555 ;;
6556 *-*-cygwin* )
6557 lt_cv_to_host_file_cmd=func_convert_file_noop
6558 ;;
6559 * ) # otherwise, assume *nix
6560 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6561 ;;
6562 esac
6563 ;;
6564 * ) # unhandled hosts (and "normal" native builds)
6565 lt_cv_to_host_file_cmd=func_convert_file_noop
6566 ;;
6567 esac
6568  
6569 fi
6570  
6571 to_host_file_cmd=$lt_cv_to_host_file_cmd
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6573 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6574  
6575  
6576  
6577  
6578  
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6580 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6581 if ${lt_cv_to_tool_file_cmd+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 #assume ordinary cross tools, or native build.
6585 lt_cv_to_tool_file_cmd=func_convert_file_noop
6586 case $host in
6587 *-*-mingw* )
6588 case $build in
6589 *-*-mingw* ) # actually msys
6590 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6591 ;;
6592 esac
6593 ;;
6594 esac
6595  
6596 fi
6597  
6598 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6600 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6601  
6602  
6603  
6604  
6605  
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6607 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6608 if ${lt_cv_ld_reload_flag+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 lt_cv_ld_reload_flag='-r'
6612 fi
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6614 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6615 reload_flag=$lt_cv_ld_reload_flag
6616 case $reload_flag in
6617 "" | " "*) ;;
6618 *) reload_flag=" $reload_flag" ;;
6619 esac
6620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6621 case $host_os in
6622 cygwin* | mingw* | pw32* | cegcc*)
6623 if test "$GCC" != yes; then
6624 reload_cmds=false
6625 fi
6626 ;;
6627 darwin*)
6628 if test "$GCC" = yes; then
6629 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6630 else
6631 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6632 fi
6633 ;;
6634 esac
6635  
6636  
6637  
6638  
6639  
6640  
6641  
6642  
6643  
6644 if test -n "$ac_tool_prefix"; then
6645 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_prog_OBJDUMP+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 if test -n "$OBJDUMP"; then
6653 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669  
6670 fi
6671 fi
6672 OBJDUMP=$ac_cv_prog_OBJDUMP
6673 if test -n "$OBJDUMP"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6675 $as_echo "$OBJDUMP" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680  
6681  
6682 fi
6683 if test -z "$ac_cv_prog_OBJDUMP"; then
6684 ac_ct_OBJDUMP=$OBJDUMP
6685 # Extract the first word of "objdump", so it can be a program name with args.
6686 set dummy objdump; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$ac_ct_OBJDUMP"; then
6693 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709  
6710 fi
6711 fi
6712 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6713 if test -n "$ac_ct_OBJDUMP"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6715 $as_echo "$ac_ct_OBJDUMP" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720  
6721 if test "x$ac_ct_OBJDUMP" = x; then
6722 OBJDUMP="false"
6723 else
6724 case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730 OBJDUMP=$ac_ct_OBJDUMP
6731 fi
6732 else
6733 OBJDUMP="$ac_cv_prog_OBJDUMP"
6734 fi
6735  
6736 test -z "$OBJDUMP" && OBJDUMP=objdump
6737  
6738  
6739  
6740  
6741  
6742  
6743  
6744  
6745  
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6747 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6748 if ${lt_cv_deplibs_check_method+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 lt_cv_file_magic_cmd='$MAGIC_CMD'
6752 lt_cv_file_magic_test_file=
6753 lt_cv_deplibs_check_method='unknown'
6754 # Need to set the preceding variable on all platforms that support
6755 # interlibrary dependencies.
6756 # 'none' -- dependencies not supported.
6757 # `unknown' -- same as none, but documents that we really don't know.
6758 # 'pass_all' -- all dependencies passed with no checks.
6759 # 'test_compile' -- check by making test program.
6760 # 'file_magic [[regex]]' -- check by looking for files in library path
6761 # which responds to the $file_magic_cmd with a given extended regex.
6762 # If you have `file' or equivalent on your system and you're not sure
6763 # whether `pass_all' will *always* work, you probably want this one.
6764  
6765 case $host_os in
6766 aix[4-9]*)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769  
6770 beos*)
6771 lt_cv_deplibs_check_method=pass_all
6772 ;;
6773  
6774 bsdi[45]*)
6775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6776 lt_cv_file_magic_cmd='/usr/bin/file -L'
6777 lt_cv_file_magic_test_file=/shlib/libc.so
6778 ;;
6779  
6780 cygwin*)
6781 # func_win32_libid is a shell function defined in ltmain.sh
6782 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6783 lt_cv_file_magic_cmd='func_win32_libid'
6784 ;;
6785  
6786 mingw* | pw32*)
6787 # Base MSYS/MinGW do not provide the 'file' command needed by
6788 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6789 # unless we find 'file', for example because we are cross-compiling.
6790 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6791 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6792 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6793 lt_cv_file_magic_cmd='func_win32_libid'
6794 else
6795 # Keep this pattern in sync with the one in func_win32_libid.
6796 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6797 lt_cv_file_magic_cmd='$OBJDUMP -f'
6798 fi
6799 ;;
6800  
6801 cegcc*)
6802 # use the weaker test based on 'objdump'. See mingw*.
6803 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6804 lt_cv_file_magic_cmd='$OBJDUMP -f'
6805 ;;
6806  
6807 darwin* | rhapsody*)
6808 lt_cv_deplibs_check_method=pass_all
6809 ;;
6810  
6811 freebsd* | dragonfly*)
6812 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6813 case $host_cpu in
6814 i*86 )
6815 # Not sure whether the presence of OpenBSD here was a mistake.
6816 # Let's accept both of them until this is cleared up.
6817 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6818 lt_cv_file_magic_cmd=/usr/bin/file
6819 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6820 ;;
6821 esac
6822 else
6823 lt_cv_deplibs_check_method=pass_all
6824 fi
6825 ;;
6826  
6827 gnu*)
6828 lt_cv_deplibs_check_method=pass_all
6829 ;;
6830  
6831 haiku*)
6832 lt_cv_deplibs_check_method=pass_all
6833 ;;
6834  
6835 hpux10.20* | hpux11*)
6836 lt_cv_file_magic_cmd=/usr/bin/file
6837 case $host_cpu in
6838 ia64*)
6839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6841 ;;
6842 hppa*64*)
6843 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]'
6844 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6845 ;;
6846 *)
6847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6848 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6849 ;;
6850 esac
6851 ;;
6852  
6853 interix[3-9]*)
6854 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6856 ;;
6857  
6858 irix5* | irix6* | nonstopux*)
6859 case $LD in
6860 *-32|*"-32 ") libmagic=32-bit;;
6861 *-n32|*"-n32 ") libmagic=N32;;
6862 *-64|*"-64 ") libmagic=64-bit;;
6863 *) libmagic=never-match;;
6864 esac
6865 lt_cv_deplibs_check_method=pass_all
6866 ;;
6867  
6868 # This must be Linux ELF.
6869 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6870 lt_cv_deplibs_check_method=pass_all
6871 ;;
6872  
6873 netbsd* | netbsdelf*-gnu)
6874 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6876 else
6877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6878 fi
6879 ;;
6880  
6881 newos6*)
6882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6883 lt_cv_file_magic_cmd=/usr/bin/file
6884 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6885 ;;
6886  
6887 *nto* | *qnx*)
6888 lt_cv_deplibs_check_method=pass_all
6889 ;;
6890  
6891 openbsd*)
6892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6894 else
6895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6896 fi
6897 ;;
6898  
6899 osf3* | osf4* | osf5*)
6900 lt_cv_deplibs_check_method=pass_all
6901 ;;
6902  
6903 rdos*)
6904 lt_cv_deplibs_check_method=pass_all
6905 ;;
6906  
6907 solaris*)
6908 lt_cv_deplibs_check_method=pass_all
6909 ;;
6910  
6911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6912 lt_cv_deplibs_check_method=pass_all
6913 ;;
6914  
6915 sysv4 | sysv4.3*)
6916 case $host_vendor in
6917 motorola)
6918 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]'
6919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6920 ;;
6921 ncr)
6922 lt_cv_deplibs_check_method=pass_all
6923 ;;
6924 sequent)
6925 lt_cv_file_magic_cmd='/bin/file'
6926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6927 ;;
6928 sni)
6929 lt_cv_file_magic_cmd='/bin/file'
6930 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6931 lt_cv_file_magic_test_file=/lib/libc.so
6932 ;;
6933 siemens)
6934 lt_cv_deplibs_check_method=pass_all
6935 ;;
6936 pc)
6937 lt_cv_deplibs_check_method=pass_all
6938 ;;
6939 esac
6940 ;;
6941  
6942 tpf*)
6943 lt_cv_deplibs_check_method=pass_all
6944 ;;
6945 esac
6946  
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6949 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6950  
6951 file_magic_glob=
6952 want_nocaseglob=no
6953 if test "$build" = "$host"; then
6954 case $host_os in
6955 mingw* | pw32*)
6956 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6957 want_nocaseglob=yes
6958 else
6959 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6960 fi
6961 ;;
6962 esac
6963 fi
6964  
6965 file_magic_cmd=$lt_cv_file_magic_cmd
6966 deplibs_check_method=$lt_cv_deplibs_check_method
6967 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6968  
6969  
6970  
6971  
6972  
6973  
6974  
6975  
6976  
6977  
6978  
6979  
6980  
6981  
6982  
6983  
6984  
6985  
6986  
6987  
6988  
6989  
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_DLLTOOL+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$DLLTOOL"; then
6999 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015  
7016 fi
7017 fi
7018 DLLTOOL=$ac_cv_prog_DLLTOOL
7019 if test -n "$DLLTOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7021 $as_echo "$DLLTOOL" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026  
7027  
7028 fi
7029 if test -z "$ac_cv_prog_DLLTOOL"; then
7030 ac_ct_DLLTOOL=$DLLTOOL
7031 # Extract the first word of "dlltool", so it can be a program name with args.
7032 set dummy dlltool; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$ac_ct_DLLTOOL"; then
7039 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055  
7056 fi
7057 fi
7058 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7059 if test -n "$ac_ct_DLLTOOL"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7061 $as_echo "$ac_ct_DLLTOOL" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066  
7067 if test "x$ac_ct_DLLTOOL" = x; then
7068 DLLTOOL="false"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 DLLTOOL=$ac_ct_DLLTOOL
7077 fi
7078 else
7079 DLLTOOL="$ac_cv_prog_DLLTOOL"
7080 fi
7081  
7082 test -z "$DLLTOOL" && DLLTOOL=dlltool
7083  
7084  
7085  
7086  
7087  
7088  
7089  
7090  
7091  
7092  
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7094 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7095 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 lt_cv_sharedlib_from_linklib_cmd='unknown'
7099  
7100 case $host_os in
7101 cygwin* | mingw* | pw32* | cegcc*)
7102 # two different shell functions defined in ltmain.sh
7103 # decide which to use based on capabilities of $DLLTOOL
7104 case `$DLLTOOL --help 2>&1` in
7105 *--identify-strict*)
7106 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7107 ;;
7108 *)
7109 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7110 ;;
7111 esac
7112 ;;
7113 *)
7114 # fallback: assume linklib IS sharedlib
7115 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7116 ;;
7117 esac
7118  
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7121 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7122 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7123 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7124  
7125  
7126  
7127  
7128  
7129  
7130  
7131 if test -n "$ac_tool_prefix"; then
7132 for ac_prog in ar
7133 do
7134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_AR+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$AR"; then
7142 ac_cv_prog_AR="$AR" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158  
7159 fi
7160 fi
7161 AR=$ac_cv_prog_AR
7162 if test -n "$AR"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7164 $as_echo "$AR" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169  
7170  
7171 test -n "$AR" && break
7172 done
7173 fi
7174 if test -z "$AR"; then
7175 ac_ct_AR=$AR
7176 for ac_prog in ar
7177 do
7178 # Extract the first word of "$ac_prog", so it can be a program name with args.
7179 set dummy $ac_prog; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$ac_ct_AR"; then
7186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_ac_ct_AR="$ac_prog"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202  
7203 fi
7204 fi
7205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7206 if test -n "$ac_ct_AR"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7208 $as_echo "$ac_ct_AR" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213  
7214  
7215 test -n "$ac_ct_AR" && break
7216 done
7217  
7218 if test "x$ac_ct_AR" = x; then
7219 AR="false"
7220 else
7221 case $cross_compiling:$ac_tool_warned in
7222 yes:)
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7225 ac_tool_warned=yes ;;
7226 esac
7227 AR=$ac_ct_AR
7228 fi
7229 fi
7230  
7231 : ${AR=ar}
7232 : ${AR_FLAGS=cru}
7233  
7234  
7235  
7236  
7237  
7238  
7239  
7240  
7241  
7242  
7243  
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7245 $as_echo_n "checking for archiver @FILE support... " >&6; }
7246 if ${lt_cv_ar_at_file+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 lt_cv_ar_at_file=no
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252  
7253 int
7254 main ()
7255 {
7256  
7257 ;
7258 return 0;
7259 }
7260 _ACEOF
7261 if ac_fn_c_try_compile "$LINENO"; then :
7262 echo conftest.$ac_objext > conftest.lst
7263 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7265 (eval $lt_ar_try) 2>&5
7266 ac_status=$?
7267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7268 test $ac_status = 0; }
7269 if test "$ac_status" -eq 0; then
7270 # Ensure the archiver fails upon bogus file names.
7271 rm -f conftest.$ac_objext libconftest.a
7272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7273 (eval $lt_ar_try) 2>&5
7274 ac_status=$?
7275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; }
7277 if test "$ac_status" -ne 0; then
7278 lt_cv_ar_at_file=@
7279 fi
7280 fi
7281 rm -f conftest.* libconftest.a
7282  
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285  
7286 fi
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7288 $as_echo "$lt_cv_ar_at_file" >&6; }
7289  
7290 if test "x$lt_cv_ar_at_file" = xno; then
7291 archiver_list_spec=
7292 else
7293 archiver_list_spec=$lt_cv_ar_at_file
7294 fi
7295  
7296  
7297  
7298  
7299  
7300  
7301  
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}strip; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_STRIP+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 if test -n "$STRIP"; then
7311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327  
7328 fi
7329 fi
7330 STRIP=$ac_cv_prog_STRIP
7331 if test -n "$STRIP"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7333 $as_echo "$STRIP" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338  
7339  
7340 fi
7341 if test -z "$ac_cv_prog_STRIP"; then
7342 ac_ct_STRIP=$STRIP
7343 # Extract the first word of "strip", so it can be a program name with args.
7344 set dummy strip; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$ac_ct_STRIP"; then
7351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_ac_ct_STRIP="strip"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367  
7368 fi
7369 fi
7370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7371 if test -n "$ac_ct_STRIP"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7373 $as_echo "$ac_ct_STRIP" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378  
7379 if test "x$ac_ct_STRIP" = x; then
7380 STRIP=":"
7381 else
7382 case $cross_compiling:$ac_tool_warned in
7383 yes:)
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386 ac_tool_warned=yes ;;
7387 esac
7388 STRIP=$ac_ct_STRIP
7389 fi
7390 else
7391 STRIP="$ac_cv_prog_STRIP"
7392 fi
7393  
7394 test -z "$STRIP" && STRIP=:
7395  
7396  
7397  
7398  
7399  
7400  
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_RANLIB+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$RANLIB"; then
7410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426  
7427 fi
7428 fi
7429 RANLIB=$ac_cv_prog_RANLIB
7430 if test -n "$RANLIB"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7432 $as_echo "$RANLIB" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437  
7438  
7439 fi
7440 if test -z "$ac_cv_prog_RANLIB"; then
7441 ac_ct_RANLIB=$RANLIB
7442 # Extract the first word of "ranlib", so it can be a program name with args.
7443 set dummy ranlib; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_RANLIB"; then
7450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_ac_ct_RANLIB="ranlib"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466  
7467 fi
7468 fi
7469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7470 if test -n "$ac_ct_RANLIB"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7472 $as_echo "$ac_ct_RANLIB" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477  
7478 if test "x$ac_ct_RANLIB" = x; then
7479 RANLIB=":"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 RANLIB=$ac_ct_RANLIB
7488 fi
7489 else
7490 RANLIB="$ac_cv_prog_RANLIB"
7491 fi
7492  
7493 test -z "$RANLIB" && RANLIB=:
7494  
7495  
7496  
7497  
7498  
7499  
7500 # Determine commands to create old-style static archives.
7501 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7502 old_postinstall_cmds='chmod 644 $oldlib'
7503 old_postuninstall_cmds=
7504  
7505 if test -n "$RANLIB"; then
7506 case $host_os in
7507 openbsd*)
7508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7509 ;;
7510 *)
7511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7512 ;;
7513 esac
7514 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7515 fi
7516  
7517 case $host_os in
7518 darwin*)
7519 lock_old_archive_extraction=yes ;;
7520 *)
7521 lock_old_archive_extraction=no ;;
7522 esac
7523  
7524  
7525  
7526  
7527  
7528  
7529  
7530  
7531  
7532  
7533  
7534  
7535  
7536  
7537  
7538  
7539  
7540  
7541  
7542  
7543  
7544  
7545  
7546  
7547  
7548  
7549  
7550  
7551  
7552  
7553  
7554  
7555  
7556  
7557  
7558  
7559  
7560  
7561  
7562 # If no C compiler was specified, use CC.
7563 LTCC=${LTCC-"$CC"}
7564  
7565 # If no C compiler flags were specified, use CFLAGS.
7566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7567  
7568 # Allow CC to be a program name with arguments.
7569 compiler=$CC
7570  
7571  
7572 # Check for command to grab the raw symbol name followed by C symbol from nm.
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7574 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7575 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578  
7579 # These are sane defaults that work on at least a few old systems.
7580 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7581  
7582 # Character class describing NM global symbol codes.
7583 symcode='[BCDEGRST]'
7584  
7585 # Regexp to match symbols that can be accessed directly from C.
7586 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7587  
7588 # Define system-specific variables.
7589 case $host_os in
7590 aix*)
7591 symcode='[BCDT]'
7592 ;;
7593 cygwin* | mingw* | pw32* | cegcc*)
7594 symcode='[ABCDGISTW]'
7595 ;;
7596 hpux*)
7597 if test "$host_cpu" = ia64; then
7598 symcode='[ABCDEGRST]'
7599 fi
7600 ;;
7601 irix* | nonstopux*)
7602 symcode='[BCDEGRST]'
7603 ;;
7604 osf*)
7605 symcode='[BCDEGQRST]'
7606 ;;
7607 solaris*)
7608 symcode='[BDRT]'
7609 ;;
7610 sco3.2v5*)
7611 symcode='[DT]'
7612 ;;
7613 sysv4.2uw2*)
7614 symcode='[DT]'
7615 ;;
7616 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7617 symcode='[ABDT]'
7618 ;;
7619 sysv4)
7620 symcode='[DFNSTU]'
7621 ;;
7622 esac
7623  
7624 # If we're using GNU nm, then use its standard symbol codes.
7625 case `$NM -V 2>&1` in
7626 *GNU* | *'with BFD'*)
7627 symcode='[ABCDGIRSTW]' ;;
7628 esac
7629  
7630 # Transform an extracted symbol line into a proper C declaration.
7631 # Some systems (esp. on ia64) link data and code symbols differently,
7632 # so use this general approach.
7633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7634  
7635 # Transform an extracted symbol line into symbol name and symbol address
7636 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7637 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7638  
7639 # Handle CRLF in mingw tool chain
7640 opt_cr=
7641 case $build_os in
7642 mingw*)
7643 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7644 ;;
7645 esac
7646  
7647 # Try without a prefix underscore, then with it.
7648 for ac_symprfx in "" "_"; do
7649  
7650 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7651 symxfrm="\\1 $ac_symprfx\\2 \\2"
7652  
7653 # Write the raw and C identifiers.
7654 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7655 # Fake it for dumpbin and say T for any non-static function
7656 # and D for any global variable.
7657 # Also find C++ and __fastcall symbols from MSVC++,
7658 # which start with @ or ?.
7659 lt_cv_sys_global_symbol_pipe="$AWK '"\
7660 " {last_section=section; section=\$ 3};"\
7661 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7662 " \$ 0!~/External *\|/{next};"\
7663 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7664 " {if(hide[section]) next};"\
7665 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7666 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7667 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7668 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7669 " ' prfx=^$ac_symprfx"
7670 else
7671 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7672 fi
7673 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7674  
7675 # Check to see that the pipe works correctly.
7676 pipe_works=no
7677  
7678 rm -f conftest*
7679 cat > conftest.$ac_ext <<_LT_EOF
7680 #ifdef __cplusplus
7681 extern "C" {
7682 #endif
7683 char nm_test_var;
7684 void nm_test_func(void);
7685 void nm_test_func(void){}
7686 #ifdef __cplusplus
7687 }
7688 #endif
7689 int main(){nm_test_var='a';nm_test_func();return(0);}
7690 _LT_EOF
7691  
7692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7693 (eval $ac_compile) 2>&5
7694 ac_status=$?
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; }; then
7697 # Now try to grab the symbols.
7698 nlist=conftest.nm
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7700 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7701 ac_status=$?
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; } && test -s "$nlist"; then
7704 # Try sorting and uniquifying the output.
7705 if sort "$nlist" | uniq > "$nlist"T; then
7706 mv -f "$nlist"T "$nlist"
7707 else
7708 rm -f "$nlist"T
7709 fi
7710  
7711 # Make sure that we snagged all the symbols we need.
7712 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7713 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7714 cat <<_LT_EOF > conftest.$ac_ext
7715 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7716 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7717 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7718 relocations are performed -- see ld's documentation on pseudo-relocs. */
7719 # define LT_DLSYM_CONST
7720 #elif defined(__osf__)
7721 /* This system does not cope well with relocations in const data. */
7722 # define LT_DLSYM_CONST
7723 #else
7724 # define LT_DLSYM_CONST const
7725 #endif
7726  
7727 #ifdef __cplusplus
7728 extern "C" {
7729 #endif
7730  
7731 _LT_EOF
7732 # Now generate the symbol file.
7733 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7734  
7735 cat <<_LT_EOF >> conftest.$ac_ext
7736  
7737 /* The mapping between symbol names and symbols. */
7738 LT_DLSYM_CONST struct {
7739 const char *name;
7740 void *address;
7741 }
7742 lt__PROGRAM__LTX_preloaded_symbols[] =
7743 {
7744 { "@PROGRAM@", (void *) 0 },
7745 _LT_EOF
7746 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7747 cat <<\_LT_EOF >> conftest.$ac_ext
7748 {0, (void *) 0}
7749 };
7750  
7751 /* This works around a problem in FreeBSD linker */
7752 #ifdef FREEBSD_WORKAROUND
7753 static const void *lt_preloaded_setup() {
7754 return lt__PROGRAM__LTX_preloaded_symbols;
7755 }
7756 #endif
7757  
7758 #ifdef __cplusplus
7759 }
7760 #endif
7761 _LT_EOF
7762 # Now try linking the two files.
7763 mv conftest.$ac_objext conftstm.$ac_objext
7764 lt_globsym_save_LIBS=$LIBS
7765 lt_globsym_save_CFLAGS=$CFLAGS
7766 LIBS="conftstm.$ac_objext"
7767 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7769 (eval $ac_link) 2>&5
7770 ac_status=$?
7771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7773 pipe_works=yes
7774 fi
7775 LIBS=$lt_globsym_save_LIBS
7776 CFLAGS=$lt_globsym_save_CFLAGS
7777 else
7778 echo "cannot find nm_test_func in $nlist" >&5
7779 fi
7780 else
7781 echo "cannot find nm_test_var in $nlist" >&5
7782 fi
7783 else
7784 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7785 fi
7786 else
7787 echo "$progname: failed program was:" >&5
7788 cat conftest.$ac_ext >&5
7789 fi
7790 rm -rf conftest* conftst*
7791  
7792 # Do not use the global_symbol_pipe unless it works.
7793 if test "$pipe_works" = yes; then
7794 break
7795 else
7796 lt_cv_sys_global_symbol_pipe=
7797 fi
7798 done
7799  
7800 fi
7801  
7802 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7803 lt_cv_sys_global_symbol_to_cdecl=
7804 fi
7805 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7807 $as_echo "failed" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7810 $as_echo "ok" >&6; }
7811 fi
7812  
7813 # Response file support.
7814 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7815 nm_file_list_spec='@'
7816 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7817 nm_file_list_spec='@'
7818 fi
7819  
7820  
7821  
7822  
7823  
7824  
7825  
7826  
7827  
7828  
7829  
7830  
7831  
7832  
7833  
7834  
7835  
7836  
7837  
7838  
7839  
7840  
7841  
7842  
7843  
7844  
7845  
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7847 $as_echo_n "checking for sysroot... " >&6; }
7848  
7849 # Check whether --with-sysroot was given.
7850 if test "${with_sysroot+set}" = set; then :
7851 withval=$with_sysroot;
7852 else
7853 with_sysroot=no
7854 fi
7855  
7856  
7857 lt_sysroot=
7858 case ${with_sysroot} in #(
7859 yes)
7860 if test "$GCC" = yes; then
7861 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7862 fi
7863 ;; #(
7864 /*)
7865 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7866 ;; #(
7867 no|'')
7868 ;; #(
7869 *)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7871 $as_echo "${with_sysroot}" >&6; }
7872 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7873 ;;
7874 esac
7875  
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7877 $as_echo "${lt_sysroot:-no}" >&6; }
7878  
7879  
7880  
7881  
7882  
7883 # Check whether --enable-libtool-lock was given.
7884 if test "${enable_libtool_lock+set}" = set; then :
7885 enableval=$enable_libtool_lock;
7886 fi
7887  
7888 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7889  
7890 # Some flags need to be propagated to the compiler or linker for good
7891 # libtool support.
7892 case $host in
7893 ia64-*-hpux*)
7894 # Find out which ABI we are using.
7895 echo 'int i;' > conftest.$ac_ext
7896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7897 (eval $ac_compile) 2>&5
7898 ac_status=$?
7899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900 test $ac_status = 0; }; then
7901 case `/usr/bin/file conftest.$ac_objext` in
7902 *ELF-32*)
7903 HPUX_IA64_MODE="32"
7904 ;;
7905 *ELF-64*)
7906 HPUX_IA64_MODE="64"
7907 ;;
7908 esac
7909 fi
7910 rm -rf conftest*
7911 ;;
7912 *-*-irix6*)
7913 # Find out which ABI we are using.
7914 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7916 (eval $ac_compile) 2>&5
7917 ac_status=$?
7918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7919 test $ac_status = 0; }; then
7920 if test "$lt_cv_prog_gnu_ld" = yes; then
7921 case `/usr/bin/file conftest.$ac_objext` in
7922 *32-bit*)
7923 LD="${LD-ld} -melf32bsmip"
7924 ;;
7925 *N32*)
7926 LD="${LD-ld} -melf32bmipn32"
7927 ;;
7928 *64-bit*)
7929 LD="${LD-ld} -melf64bmip"
7930 ;;
7931 esac
7932 else
7933 case `/usr/bin/file conftest.$ac_objext` in
7934 *32-bit*)
7935 LD="${LD-ld} -32"
7936 ;;
7937 *N32*)
7938 LD="${LD-ld} -n32"
7939 ;;
7940 *64-bit*)
7941 LD="${LD-ld} -64"
7942 ;;
7943 esac
7944 fi
7945 fi
7946 rm -rf conftest*
7947 ;;
7948  
7949 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7950 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7951 # Find out which ABI we are using.
7952 echo 'int i;' > conftest.$ac_ext
7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7954 (eval $ac_compile) 2>&5
7955 ac_status=$?
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; }; then
7958 case `/usr/bin/file conftest.o` in
7959 *32-bit*)
7960 case $host in
7961 x86_64-*kfreebsd*-gnu)
7962 LD="${LD-ld} -m elf_i386_fbsd"
7963 ;;
7964 x86_64-*linux*)
7965 LD="${LD-ld} -m elf_i386"
7966 ;;
7967 ppc64-*linux*|powerpc64-*linux*)
7968 LD="${LD-ld} -m elf32ppclinux"
7969 ;;
7970 s390x-*linux*)
7971 LD="${LD-ld} -m elf_s390"
7972 ;;
7973 sparc64-*linux*)
7974 LD="${LD-ld} -m elf32_sparc"
7975 ;;
7976 esac
7977 ;;
7978 *64-bit*)
7979 case $host in
7980 x86_64-*kfreebsd*-gnu)
7981 LD="${LD-ld} -m elf_x86_64_fbsd"
7982 ;;
7983 x86_64-*linux*)
7984 LD="${LD-ld} -m elf_x86_64"
7985 ;;
7986 ppc*-*linux*|powerpc*-*linux*)
7987 LD="${LD-ld} -m elf64ppc"
7988 ;;
7989 s390*-*linux*|s390*-*tpf*)
7990 LD="${LD-ld} -m elf64_s390"
7991 ;;
7992 sparc*-*linux*)
7993 LD="${LD-ld} -m elf64_sparc"
7994 ;;
7995 esac
7996 ;;
7997 esac
7998 fi
7999 rm -rf conftest*
8000 ;;
8001  
8002 *-*-sco3.2v5*)
8003 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8004 SAVE_CFLAGS="$CFLAGS"
8005 CFLAGS="$CFLAGS -belf"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8007 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8008 if ${lt_cv_cc_needs_belf+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 ac_ext=c
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016  
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019  
8020 int
8021 main ()
8022 {
8023  
8024 ;
8025 return 0;
8026 }
8027 _ACEOF
8028 if ac_fn_c_try_link "$LINENO"; then :
8029 lt_cv_cc_needs_belf=yes
8030 else
8031 lt_cv_cc_needs_belf=no
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 ac_ext=c
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040  
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8043 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8046 CFLAGS="$SAVE_CFLAGS"
8047 fi
8048 ;;
8049 sparc*-*solaris*)
8050 # Find out which ABI we are using.
8051 echo 'int i;' > conftest.$ac_ext
8052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8053 (eval $ac_compile) 2>&5
8054 ac_status=$?
8055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8056 test $ac_status = 0; }; then
8057 case `/usr/bin/file conftest.o` in
8058 *64-bit*)
8059 case $lt_cv_prog_gnu_ld in
8060 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8061 *)
8062 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8063 LD="${LD-ld} -64"
8064 fi
8065 ;;
8066 esac
8067 ;;
8068 esac
8069 fi
8070 rm -rf conftest*
8071 ;;
8072 esac
8073  
8074 need_locks="$enable_libtool_lock"
8075  
8076 if test -n "$ac_tool_prefix"; then
8077 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8078 set dummy ${ac_tool_prefix}mt; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 if test -n "$MANIFEST_TOOL"; then
8085 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100 IFS=$as_save_IFS
8101  
8102 fi
8103 fi
8104 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8105 if test -n "$MANIFEST_TOOL"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8107 $as_echo "$MANIFEST_TOOL" >&6; }
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112  
8113  
8114 fi
8115 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8116 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8117 # Extract the first word of "mt", so it can be a program name with args.
8118 set dummy mt; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 if test -n "$ac_ct_MANIFEST_TOOL"; then
8125 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8134 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138 done
8139 done
8140 IFS=$as_save_IFS
8141  
8142 fi
8143 fi
8144 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8145 if test -n "$ac_ct_MANIFEST_TOOL"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8147 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8148 else
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8151 fi
8152  
8153 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8154 MANIFEST_TOOL=":"
8155 else
8156 case $cross_compiling:$ac_tool_warned in
8157 yes:)
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8160 ac_tool_warned=yes ;;
8161 esac
8162 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8163 fi
8164 else
8165 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8166 fi
8167  
8168 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8170 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8171 if ${lt_cv_path_mainfest_tool+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 lt_cv_path_mainfest_tool=no
8175 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8176 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8177 cat conftest.err >&5
8178 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8179 lt_cv_path_mainfest_tool=yes
8180 fi
8181 rm -f conftest*
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8184 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8185 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8186 MANIFEST_TOOL=:
8187 fi
8188  
8189  
8190  
8191  
8192  
8193  
8194 case $host_os in
8195 rhapsody* | darwin*)
8196 if test -n "$ac_tool_prefix"; then
8197 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8198 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test -n "$DSYMUTIL"; then
8205 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8217 fi
8218 done
8219 done
8220 IFS=$as_save_IFS
8221  
8222 fi
8223 fi
8224 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8225 if test -n "$DSYMUTIL"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8227 $as_echo "$DSYMUTIL" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232  
8233  
8234 fi
8235 if test -z "$ac_cv_prog_DSYMUTIL"; then
8236 ac_ct_DSYMUTIL=$DSYMUTIL
8237 # Extract the first word of "dsymutil", so it can be a program name with args.
8238 set dummy dsymutil; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 if test -n "$ac_ct_DSYMUTIL"; then
8245 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8257 fi
8258 done
8259 done
8260 IFS=$as_save_IFS
8261  
8262 fi
8263 fi
8264 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8265 if test -n "$ac_ct_DSYMUTIL"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8267 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 fi
8272  
8273 if test "x$ac_ct_DSYMUTIL" = x; then
8274 DSYMUTIL=":"
8275 else
8276 case $cross_compiling:$ac_tool_warned in
8277 yes:)
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8280 ac_tool_warned=yes ;;
8281 esac
8282 DSYMUTIL=$ac_ct_DSYMUTIL
8283 fi
8284 else
8285 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8286 fi
8287  
8288 if test -n "$ac_tool_prefix"; then
8289 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8290 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 $as_echo_n "checking for $ac_word... " >&6; }
8293 if ${ac_cv_prog_NMEDIT+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 if test -n "$NMEDIT"; then
8297 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8301 do
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8309 fi
8310 done
8311 done
8312 IFS=$as_save_IFS
8313  
8314 fi
8315 fi
8316 NMEDIT=$ac_cv_prog_NMEDIT
8317 if test -n "$NMEDIT"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8319 $as_echo "$NMEDIT" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324  
8325  
8326 fi
8327 if test -z "$ac_cv_prog_NMEDIT"; then
8328 ac_ct_NMEDIT=$NMEDIT
8329 # Extract the first word of "nmedit", so it can be a program name with args.
8330 set dummy nmedit; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 if test -n "$ac_ct_NMEDIT"; then
8337 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8346 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8349 fi
8350 done
8351 done
8352 IFS=$as_save_IFS
8353  
8354 fi
8355 fi
8356 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8357 if test -n "$ac_ct_NMEDIT"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8359 $as_echo "$ac_ct_NMEDIT" >&6; }
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8363 fi
8364  
8365 if test "x$ac_ct_NMEDIT" = x; then
8366 NMEDIT=":"
8367 else
8368 case $cross_compiling:$ac_tool_warned in
8369 yes:)
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8372 ac_tool_warned=yes ;;
8373 esac
8374 NMEDIT=$ac_ct_NMEDIT
8375 fi
8376 else
8377 NMEDIT="$ac_cv_prog_NMEDIT"
8378 fi
8379  
8380 if test -n "$ac_tool_prefix"; then
8381 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8382 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if ${ac_cv_prog_LIPO+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 if test -n "$LIPO"; then
8389 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8390 else
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8393 do
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402 done
8403 done
8404 IFS=$as_save_IFS
8405  
8406 fi
8407 fi
8408 LIPO=$ac_cv_prog_LIPO
8409 if test -n "$LIPO"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8411 $as_echo "$LIPO" >&6; }
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 fi
8416  
8417  
8418 fi
8419 if test -z "$ac_cv_prog_LIPO"; then
8420 ac_ct_LIPO=$LIPO
8421 # Extract the first word of "lipo", so it can be a program name with args.
8422 set dummy lipo; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 if test -n "$ac_ct_LIPO"; then
8429 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8430 else
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8433 do
8434 IFS=$as_save_IFS
8435 test -z "$as_dir" && as_dir=.
8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8438 ac_cv_prog_ac_ct_LIPO="lipo"
8439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 break 2
8441 fi
8442 done
8443 done
8444 IFS=$as_save_IFS
8445  
8446 fi
8447 fi
8448 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8449 if test -n "$ac_ct_LIPO"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8451 $as_echo "$ac_ct_LIPO" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8455 fi
8456  
8457 if test "x$ac_ct_LIPO" = x; then
8458 LIPO=":"
8459 else
8460 case $cross_compiling:$ac_tool_warned in
8461 yes:)
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8464 ac_tool_warned=yes ;;
8465 esac
8466 LIPO=$ac_ct_LIPO
8467 fi
8468 else
8469 LIPO="$ac_cv_prog_LIPO"
8470 fi
8471  
8472 if test -n "$ac_tool_prefix"; then
8473 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8474 set dummy ${ac_tool_prefix}otool; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_prog_OTOOL+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 if test -n "$OTOOL"; then
8481 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8482 else
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 for as_dir in $PATH
8485 do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8490 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494 done
8495 done
8496 IFS=$as_save_IFS
8497  
8498 fi
8499 fi
8500 OTOOL=$ac_cv_prog_OTOOL
8501 if test -n "$OTOOL"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8503 $as_echo "$OTOOL" >&6; }
8504 else
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8507 fi
8508  
8509  
8510 fi
8511 if test -z "$ac_cv_prog_OTOOL"; then
8512 ac_ct_OTOOL=$OTOOL
8513 # Extract the first word of "otool", so it can be a program name with args.
8514 set dummy otool; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 if test -n "$ac_ct_OTOOL"; then
8521 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8530 ac_cv_prog_ac_ct_OTOOL="otool"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8533 fi
8534 done
8535 done
8536 IFS=$as_save_IFS
8537  
8538 fi
8539 fi
8540 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8541 if test -n "$ac_ct_OTOOL"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8543 $as_echo "$ac_ct_OTOOL" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548  
8549 if test "x$ac_ct_OTOOL" = x; then
8550 OTOOL=":"
8551 else
8552 case $cross_compiling:$ac_tool_warned in
8553 yes:)
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8556 ac_tool_warned=yes ;;
8557 esac
8558 OTOOL=$ac_ct_OTOOL
8559 fi
8560 else
8561 OTOOL="$ac_cv_prog_OTOOL"
8562 fi
8563  
8564 if test -n "$ac_tool_prefix"; then
8565 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8566 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 $as_echo_n "checking for $ac_word... " >&6; }
8569 if ${ac_cv_prog_OTOOL64+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 if test -n "$OTOOL64"; then
8573 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8574 else
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8582 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586 done
8587 done
8588 IFS=$as_save_IFS
8589  
8590 fi
8591 fi
8592 OTOOL64=$ac_cv_prog_OTOOL64
8593 if test -n "$OTOOL64"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8595 $as_echo "$OTOOL64" >&6; }
8596 else
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 $as_echo "no" >&6; }
8599 fi
8600  
8601  
8602 fi
8603 if test -z "$ac_cv_prog_OTOOL64"; then
8604 ac_ct_OTOOL64=$OTOOL64
8605 # Extract the first word of "otool64", so it can be a program name with args.
8606 set dummy otool64; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 if test -n "$ac_ct_OTOOL64"; then
8613 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8614 else
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8622 ac_cv_prog_ac_ct_OTOOL64="otool64"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626 done
8627 done
8628 IFS=$as_save_IFS
8629  
8630 fi
8631 fi
8632 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8633 if test -n "$ac_ct_OTOOL64"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8635 $as_echo "$ac_ct_OTOOL64" >&6; }
8636 else
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8639 fi
8640  
8641 if test "x$ac_ct_OTOOL64" = x; then
8642 OTOOL64=":"
8643 else
8644 case $cross_compiling:$ac_tool_warned in
8645 yes:)
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8648 ac_tool_warned=yes ;;
8649 esac
8650 OTOOL64=$ac_ct_OTOOL64
8651 fi
8652 else
8653 OTOOL64="$ac_cv_prog_OTOOL64"
8654 fi
8655  
8656  
8657  
8658  
8659  
8660  
8661  
8662  
8663  
8664  
8665  
8666  
8667  
8668  
8669  
8670  
8671  
8672  
8673  
8674  
8675  
8676  
8677  
8678  
8679  
8680  
8681  
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8683 $as_echo_n "checking for -single_module linker flag... " >&6; }
8684 if ${lt_cv_apple_cc_single_mod+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 lt_cv_apple_cc_single_mod=no
8688 if test -z "${LT_MULTI_MODULE}"; then
8689 # By default we will add the -single_module flag. You can override
8690 # by either setting the environment variable LT_MULTI_MODULE
8691 # non-empty at configure time, or by adding -multi_module to the
8692 # link flags.
8693 rm -rf libconftest.dylib*
8694 echo "int foo(void){return 1;}" > conftest.c
8695 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8696 -dynamiclib -Wl,-single_module conftest.c" >&5
8697 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8698 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8699 _lt_result=$?
8700 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8701 lt_cv_apple_cc_single_mod=yes
8702 else
8703 cat conftest.err >&5
8704 fi
8705 rm -rf libconftest.dylib*
8706 rm -f conftest.*
8707 fi
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8710 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8712 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8713 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 lt_cv_ld_exported_symbols_list=no
8717 save_LDFLAGS=$LDFLAGS
8718 echo "_main" > conftest.sym
8719 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722  
8723 int
8724 main ()
8725 {
8726  
8727 ;
8728 return 0;
8729 }
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"; then :
8732 lt_cv_ld_exported_symbols_list=yes
8733 else
8734 lt_cv_ld_exported_symbols_list=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8738 LDFLAGS="$save_LDFLAGS"
8739  
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8742 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8744 $as_echo_n "checking for -force_load linker flag... " >&6; }
8745 if ${lt_cv_ld_force_load+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 lt_cv_ld_force_load=no
8749 cat > conftest.c << _LT_EOF
8750 int forced_loaded() { return 2;}
8751 _LT_EOF
8752 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8753 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8754 echo "$AR cru libconftest.a conftest.o" >&5
8755 $AR cru libconftest.a conftest.o 2>&5
8756 echo "$RANLIB libconftest.a" >&5
8757 $RANLIB libconftest.a 2>&5
8758 cat > conftest.c << _LT_EOF
8759 int main() { return 0;}
8760 _LT_EOF
8761 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8762 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8763 _lt_result=$?
8764 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8765 lt_cv_ld_force_load=yes
8766 else
8767 cat conftest.err >&5
8768 fi
8769 rm -f conftest.err libconftest.a conftest conftest.c
8770 rm -rf conftest.dSYM
8771  
8772 fi
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8774 $as_echo "$lt_cv_ld_force_load" >&6; }
8775 case $host_os in
8776 rhapsody* | darwin1.[012])
8777 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8778 darwin1.*)
8779 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8780 darwin*) # darwin 5.x on
8781 # if running on 10.5 or later, the deployment target defaults
8782 # to the OS version, if on x86, and 10.4, the deployment
8783 # target defaults to 10.4. Don't you love it?
8784 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8785 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8786 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8787 10.[012]*)
8788 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8789 10.*)
8790 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8791 esac
8792 ;;
8793 esac
8794 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8795 _lt_dar_single_mod='$single_module'
8796 fi
8797 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8798 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8799 else
8800 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8801 fi
8802 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8803 _lt_dsymutil='~$DSYMUTIL $lib || :'
8804 else
8805 _lt_dsymutil=
8806 fi
8807 ;;
8808 esac
8809  
8810 ac_ext=c
8811 ac_cpp='$CPP $CPPFLAGS'
8812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8816 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8817 # On Suns, sometimes $CPP names a directory.
8818 if test -n "$CPP" && test -d "$CPP"; then
8819 CPP=
8820 fi
8821 if test -z "$CPP"; then
8822 if ${ac_cv_prog_CPP+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 # Double quotes because CPP needs to be expanded
8826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8827 do
8828 ac_preproc_ok=false
8829 for ac_c_preproc_warn_flag in '' yes
8830 do
8831 # Use a header file that comes with gcc, so configuring glibc
8832 # with a fresh cross-compiler works.
8833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8834 # <limits.h> exists even on freestanding compilers.
8835 # On the NeXT, cc -E runs the code through the compiler's parser,
8836 # not just through cpp. "Syntax error" is here to catch this case.
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 #ifdef __STDC__
8840 # include <limits.h>
8841 #else
8842 # include <assert.h>
8843 #endif
8844 Syntax error
8845 _ACEOF
8846 if ac_fn_c_try_cpp "$LINENO"; then :
8847  
8848 else
8849 # Broken: fails on valid input.
8850 continue
8851 fi
8852 rm -f conftest.err conftest.i conftest.$ac_ext
8853  
8854 # OK, works on sane cases. Now check whether nonexistent headers
8855 # can be detected and how.
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <ac_nonexistent.h>
8859 _ACEOF
8860 if ac_fn_c_try_cpp "$LINENO"; then :
8861 # Broken: success on invalid input.
8862 continue
8863 else
8864 # Passes both tests.
8865 ac_preproc_ok=:
8866 break
8867 fi
8868 rm -f conftest.err conftest.i conftest.$ac_ext
8869  
8870 done
8871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8872 rm -f conftest.i conftest.err conftest.$ac_ext
8873 if $ac_preproc_ok; then :
8874 break
8875 fi
8876  
8877 done
8878 ac_cv_prog_CPP=$CPP
8879  
8880 fi
8881 CPP=$ac_cv_prog_CPP
8882 else
8883 ac_cv_prog_CPP=$CPP
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8886 $as_echo "$CPP" >&6; }
8887 ac_preproc_ok=false
8888 for ac_c_preproc_warn_flag in '' yes
8889 do
8890 # Use a header file that comes with gcc, so configuring glibc
8891 # with a fresh cross-compiler works.
8892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893 # <limits.h> exists even on freestanding compilers.
8894 # On the NeXT, cc -E runs the code through the compiler's parser,
8895 # not just through cpp. "Syntax error" is here to catch this case.
8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897 /* end confdefs.h. */
8898 #ifdef __STDC__
8899 # include <limits.h>
8900 #else
8901 # include <assert.h>
8902 #endif
8903 Syntax error
8904 _ACEOF
8905 if ac_fn_c_try_cpp "$LINENO"; then :
8906  
8907 else
8908 # Broken: fails on valid input.
8909 continue
8910 fi
8911 rm -f conftest.err conftest.i conftest.$ac_ext
8912  
8913 # OK, works on sane cases. Now check whether nonexistent headers
8914 # can be detected and how.
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 #include <ac_nonexistent.h>
8918 _ACEOF
8919 if ac_fn_c_try_cpp "$LINENO"; then :
8920 # Broken: success on invalid input.
8921 continue
8922 else
8923 # Passes both tests.
8924 ac_preproc_ok=:
8925 break
8926 fi
8927 rm -f conftest.err conftest.i conftest.$ac_ext
8928  
8929 done
8930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8931 rm -f conftest.i conftest.err conftest.$ac_ext
8932 if $ac_preproc_ok; then :
8933  
8934 else
8935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8937 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8938 See \`config.log' for more details" "$LINENO" 5; }
8939 fi
8940  
8941 ac_ext=c
8942 ac_cpp='$CPP $CPPFLAGS'
8943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946  
8947  
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8949 $as_echo_n "checking for ANSI C header files... " >&6; }
8950 if ${ac_cv_header_stdc+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 #include <stdlib.h>
8956 #include <stdarg.h>
8957 #include <string.h>
8958 #include <float.h>
8959  
8960 int
8961 main ()
8962 {
8963  
8964 ;
8965 return 0;
8966 }
8967 _ACEOF
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969 ac_cv_header_stdc=yes
8970 else
8971 ac_cv_header_stdc=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974  
8975 if test $ac_cv_header_stdc = yes; then
8976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8979 #include <string.h>
8980  
8981 _ACEOF
8982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8983 $EGREP "memchr" >/dev/null 2>&1; then :
8984  
8985 else
8986 ac_cv_header_stdc=no
8987 fi
8988 rm -f conftest*
8989  
8990 fi
8991  
8992 if test $ac_cv_header_stdc = yes; then
8993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 #include <stdlib.h>
8997  
8998 _ACEOF
8999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9000 $EGREP "free" >/dev/null 2>&1; then :
9001  
9002 else
9003 ac_cv_header_stdc=no
9004 fi
9005 rm -f conftest*
9006  
9007 fi
9008  
9009 if test $ac_cv_header_stdc = yes; then
9010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9011 if test "$cross_compiling" = yes; then :
9012 :
9013 else
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016 #include <ctype.h>
9017 #include <stdlib.h>
9018 #if ((' ' & 0x0FF) == 0x020)
9019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9021 #else
9022 # define ISLOWER(c) \
9023 (('a' <= (c) && (c) <= 'i') \
9024 || ('j' <= (c) && (c) <= 'r') \
9025 || ('s' <= (c) && (c) <= 'z'))
9026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9027 #endif
9028  
9029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9030 int
9031 main ()
9032 {
9033 int i;
9034 for (i = 0; i < 256; i++)
9035 if (XOR (islower (i), ISLOWER (i))
9036 || toupper (i) != TOUPPER (i))
9037 return 2;
9038 return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_run "$LINENO"; then :
9042  
9043 else
9044 ac_cv_header_stdc=no
9045 fi
9046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9047 conftest.$ac_objext conftest.beam conftest.$ac_ext
9048 fi
9049  
9050 fi
9051 fi
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9053 $as_echo "$ac_cv_header_stdc" >&6; }
9054 if test $ac_cv_header_stdc = yes; then
9055  
9056 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9057  
9058 fi
9059  
9060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9062 inttypes.h stdint.h unistd.h
9063 do :
9064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9066 "
9067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9068 cat >>confdefs.h <<_ACEOF
9069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9070 _ACEOF
9071  
9072 fi
9073  
9074 done
9075  
9076  
9077 for ac_header in dlfcn.h
9078 do :
9079 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9080 "
9081 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9082 cat >>confdefs.h <<_ACEOF
9083 #define HAVE_DLFCN_H 1
9084 _ACEOF
9085  
9086 fi
9087  
9088 done
9089  
9090  
9091  
9092  
9093 func_stripname_cnf ()
9094 {
9095 case ${2} in
9096 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9097 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9098 esac
9099 } # func_stripname_cnf
9100  
9101  
9102  
9103  
9104  
9105 # Set options
9106  
9107  
9108  
9109 enable_dlopen=no
9110  
9111  
9112 enable_win32_dll=no
9113  
9114  
9115 # Check whether --enable-shared was given.
9116 if test "${enable_shared+set}" = set; then :
9117 enableval=$enable_shared; p=${PACKAGE-default}
9118 case $enableval in
9119 yes) enable_shared=yes ;;
9120 no) enable_shared=no ;;
9121 *)
9122 enable_shared=no
9123 # Look at the argument we got. We use all the common list separators.
9124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9125 for pkg in $enableval; do
9126 IFS="$lt_save_ifs"
9127 if test "X$pkg" = "X$p"; then
9128 enable_shared=yes
9129 fi
9130 done
9131 IFS="$lt_save_ifs"
9132 ;;
9133 esac
9134 else
9135 enable_shared=yes
9136 fi
9137  
9138  
9139  
9140  
9141  
9142  
9143  
9144  
9145  
9146 # Check whether --enable-static was given.
9147 if test "${enable_static+set}" = set; then :
9148 enableval=$enable_static; p=${PACKAGE-default}
9149 case $enableval in
9150 yes) enable_static=yes ;;
9151 no) enable_static=no ;;
9152 *)
9153 enable_static=no
9154 # Look at the argument we got. We use all the common list separators.
9155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9156 for pkg in $enableval; do
9157 IFS="$lt_save_ifs"
9158 if test "X$pkg" = "X$p"; then
9159 enable_static=yes
9160 fi
9161 done
9162 IFS="$lt_save_ifs"
9163 ;;
9164 esac
9165 else
9166 enable_static=yes
9167 fi
9168  
9169  
9170  
9171  
9172  
9173  
9174  
9175  
9176  
9177  
9178 # Check whether --with-pic was given.
9179 if test "${with_pic+set}" = set; then :
9180 withval=$with_pic; pic_mode="$withval"
9181 else
9182 pic_mode=default
9183 fi
9184  
9185  
9186 test -z "$pic_mode" && pic_mode=default
9187  
9188  
9189  
9190  
9191  
9192  
9193  
9194 # Check whether --enable-fast-install was given.
9195 if test "${enable_fast_install+set}" = set; then :
9196 enableval=$enable_fast_install; p=${PACKAGE-default}
9197 case $enableval in
9198 yes) enable_fast_install=yes ;;
9199 no) enable_fast_install=no ;;
9200 *)
9201 enable_fast_install=no
9202 # Look at the argument we got. We use all the common list separators.
9203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9204 for pkg in $enableval; do
9205 IFS="$lt_save_ifs"
9206 if test "X$pkg" = "X$p"; then
9207 enable_fast_install=yes
9208 fi
9209 done
9210 IFS="$lt_save_ifs"
9211 ;;
9212 esac
9213 else
9214 enable_fast_install=yes
9215 fi
9216  
9217  
9218  
9219  
9220  
9221  
9222  
9223  
9224  
9225  
9226  
9227 # This can be used to rebuild libtool when needed
9228 LIBTOOL_DEPS="$ltmain"
9229  
9230 # Always use our own libtool.
9231 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9232  
9233  
9234  
9235  
9236  
9237  
9238  
9239  
9240  
9241  
9242  
9243  
9244  
9245  
9246  
9247  
9248  
9249  
9250  
9251  
9252  
9253  
9254  
9255  
9256  
9257  
9258 test -z "$LN_S" && LN_S="ln -s"
9259  
9260  
9261  
9262  
9263  
9264  
9265  
9266  
9267  
9268  
9269  
9270  
9271  
9272  
9273 if test -n "${ZSH_VERSION+set}" ; then
9274 setopt NO_GLOB_SUBST
9275 fi
9276  
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9278 $as_echo_n "checking for objdir... " >&6; }
9279 if ${lt_cv_objdir+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 rm -f .libs 2>/dev/null
9283 mkdir .libs 2>/dev/null
9284 if test -d .libs; then
9285 lt_cv_objdir=.libs
9286 else
9287 # MS-DOS does not allow filenames that begin with a dot.
9288 lt_cv_objdir=_libs
9289 fi
9290 rmdir .libs 2>/dev/null
9291 fi
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9293 $as_echo "$lt_cv_objdir" >&6; }
9294 objdir=$lt_cv_objdir
9295  
9296  
9297  
9298  
9299  
9300 cat >>confdefs.h <<_ACEOF
9301 #define LT_OBJDIR "$lt_cv_objdir/"
9302 _ACEOF
9303  
9304  
9305  
9306  
9307 case $host_os in
9308 aix3*)
9309 # AIX sometimes has problems with the GCC collect2 program. For some
9310 # reason, if we set the COLLECT_NAMES environment variable, the problems
9311 # vanish in a puff of smoke.
9312 if test "X${COLLECT_NAMES+set}" != Xset; then
9313 COLLECT_NAMES=
9314 export COLLECT_NAMES
9315 fi
9316 ;;
9317 esac
9318  
9319 # Global variables:
9320 ofile=libtool
9321 can_build_shared=yes
9322  
9323 # All known linkers require a `.a' archive for static linking (except MSVC,
9324 # which needs '.lib').
9325 libext=a
9326  
9327 with_gnu_ld="$lt_cv_prog_gnu_ld"
9328  
9329 old_CC="$CC"
9330 old_CFLAGS="$CFLAGS"
9331  
9332 # Set sane defaults for various variables
9333 test -z "$CC" && CC=cc
9334 test -z "$LTCC" && LTCC=$CC
9335 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9336 test -z "$LD" && LD=ld
9337 test -z "$ac_objext" && ac_objext=o
9338  
9339 for cc_temp in $compiler""; do
9340 case $cc_temp in
9341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9343 \-*) ;;
9344 *) break;;
9345 esac
9346 done
9347 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9348  
9349  
9350 # Only perform the check for file, if the check method requires it
9351 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9352 case $deplibs_check_method in
9353 file_magic*)
9354 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9356 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9357 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 case $MAGIC_CMD in
9361 [\\/*] | ?:[\\/]*)
9362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9363 ;;
9364 *)
9365 lt_save_MAGIC_CMD="$MAGIC_CMD"
9366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9368 for ac_dir in $ac_dummy; do
9369 IFS="$lt_save_ifs"
9370 test -z "$ac_dir" && ac_dir=.
9371 if test -f $ac_dir/${ac_tool_prefix}file; then
9372 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9373 if test -n "$file_magic_test_file"; then
9374 case $deplibs_check_method in
9375 "file_magic "*)
9376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9379 $EGREP "$file_magic_regex" > /dev/null; then
9380 :
9381 else
9382 cat <<_LT_EOF 1>&2
9383  
9384 *** Warning: the command libtool uses to detect shared libraries,
9385 *** $file_magic_cmd, produces output that libtool cannot recognize.
9386 *** The result is that libtool may fail to recognize shared libraries
9387 *** as such. This will affect the creation of libtool libraries that
9388 *** depend on shared libraries, but programs linked with such libtool
9389 *** libraries will work regardless of this problem. Nevertheless, you
9390 *** may want to report the problem to your system manager and/or to
9391 *** bug-libtool@gnu.org
9392  
9393 _LT_EOF
9394 fi ;;
9395 esac
9396 fi
9397 break
9398 fi
9399 done
9400 IFS="$lt_save_ifs"
9401 MAGIC_CMD="$lt_save_MAGIC_CMD"
9402 ;;
9403 esac
9404 fi
9405  
9406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9407 if test -n "$MAGIC_CMD"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9409 $as_echo "$MAGIC_CMD" >&6; }
9410 else
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 $as_echo "no" >&6; }
9413 fi
9414  
9415  
9416  
9417  
9418  
9419 if test -z "$lt_cv_path_MAGIC_CMD"; then
9420 if test -n "$ac_tool_prefix"; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9422 $as_echo_n "checking for file... " >&6; }
9423 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 case $MAGIC_CMD in
9427 [\\/*] | ?:[\\/]*)
9428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9429 ;;
9430 *)
9431 lt_save_MAGIC_CMD="$MAGIC_CMD"
9432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9434 for ac_dir in $ac_dummy; do
9435 IFS="$lt_save_ifs"
9436 test -z "$ac_dir" && ac_dir=.
9437 if test -f $ac_dir/file; then
9438 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9439 if test -n "$file_magic_test_file"; then
9440 case $deplibs_check_method in
9441 "file_magic "*)
9442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9445 $EGREP "$file_magic_regex" > /dev/null; then
9446 :
9447 else
9448 cat <<_LT_EOF 1>&2
9449  
9450 *** Warning: the command libtool uses to detect shared libraries,
9451 *** $file_magic_cmd, produces output that libtool cannot recognize.
9452 *** The result is that libtool may fail to recognize shared libraries
9453 *** as such. This will affect the creation of libtool libraries that
9454 *** depend on shared libraries, but programs linked with such libtool
9455 *** libraries will work regardless of this problem. Nevertheless, you
9456 *** may want to report the problem to your system manager and/or to
9457 *** bug-libtool@gnu.org
9458  
9459 _LT_EOF
9460 fi ;;
9461 esac
9462 fi
9463 break
9464 fi
9465 done
9466 IFS="$lt_save_ifs"
9467 MAGIC_CMD="$lt_save_MAGIC_CMD"
9468 ;;
9469 esac
9470 fi
9471  
9472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9473 if test -n "$MAGIC_CMD"; then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9475 $as_echo "$MAGIC_CMD" >&6; }
9476 else
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9479 fi
9480  
9481  
9482 else
9483 MAGIC_CMD=:
9484 fi
9485 fi
9486  
9487 fi
9488 ;;
9489 esac
9490  
9491 # Use C for the default configuration in the libtool script
9492  
9493 lt_save_CC="$CC"
9494 ac_ext=c
9495 ac_cpp='$CPP $CPPFLAGS'
9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9499  
9500  
9501 # Source file extension for C test sources.
9502 ac_ext=c
9503  
9504 # Object file extension for compiled C test sources.
9505 objext=o
9506 objext=$objext
9507  
9508 # Code to be used in simple compile tests
9509 lt_simple_compile_test_code="int some_variable = 0;"
9510  
9511 # Code to be used in simple link tests
9512 lt_simple_link_test_code='int main(){return(0);}'
9513  
9514  
9515  
9516  
9517  
9518  
9519  
9520 # If no C compiler was specified, use CC.
9521 LTCC=${LTCC-"$CC"}
9522  
9523 # If no C compiler flags were specified, use CFLAGS.
9524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9525  
9526 # Allow CC to be a program name with arguments.
9527 compiler=$CC
9528  
9529 # Save the default compiler, since it gets overwritten when the other
9530 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9531 compiler_DEFAULT=$CC
9532  
9533 # save warnings/boilerplate of simple test code
9534 ac_outfile=conftest.$ac_objext
9535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9537 _lt_compiler_boilerplate=`cat conftest.err`
9538 $RM conftest*
9539  
9540 ac_outfile=conftest.$ac_objext
9541 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9543 _lt_linker_boilerplate=`cat conftest.err`
9544 $RM -r conftest*
9545  
9546  
9547 ## CAVEAT EMPTOR:
9548 ## There is no encapsulation within the following macros, do not change
9549 ## the running order or otherwise move them around unless you know exactly
9550 ## what you are doing...
9551 if test -n "$compiler"; then
9552  
9553 lt_prog_compiler_no_builtin_flag=
9554  
9555 if test "$GCC" = yes; then
9556 case $cc_basename in
9557 nvcc*)
9558 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9559 *)
9560 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9561 esac
9562  
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9564 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9565 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 lt_cv_prog_compiler_rtti_exceptions=no
9569 ac_outfile=conftest.$ac_objext
9570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9571 lt_compiler_flag="-fno-rtti -fno-exceptions"
9572 # Insert the option either (1) after the last *FLAGS variable, or
9573 # (2) before a word containing "conftest.", or (3) at the end.
9574 # Note that $ac_compile itself does not contain backslashes and begins
9575 # with a dollar sign (not a hyphen), so the echo should work correctly.
9576 # The option is referenced via a variable to avoid confusing sed.
9577 lt_compile=`echo "$ac_compile" | $SED \
9578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9580 -e 's:$: $lt_compiler_flag:'`
9581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9582 (eval "$lt_compile" 2>conftest.err)
9583 ac_status=$?
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 if (exit $ac_status) && test -s "$ac_outfile"; then
9587 # The compiler can only warn and ignore the option if not recognized
9588 # So say no if there are warnings other than the usual output.
9589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9592 lt_cv_prog_compiler_rtti_exceptions=yes
9593 fi
9594 fi
9595 $RM conftest*
9596  
9597 fi
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9599 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9600  
9601 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9602 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9603 else
9604 :
9605 fi
9606  
9607 fi
9608  
9609  
9610  
9611  
9612  
9613  
9614 lt_prog_compiler_wl=
9615 lt_prog_compiler_pic=
9616 lt_prog_compiler_static=
9617  
9618  
9619 if test "$GCC" = yes; then
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_static='-static'
9622  
9623 case $host_os in
9624 aix*)
9625 # All AIX code is PIC.
9626 if test "$host_cpu" = ia64; then
9627 # AIX 5 now supports IA64 processor
9628 lt_prog_compiler_static='-Bstatic'
9629 fi
9630 ;;
9631  
9632 amigaos*)
9633 case $host_cpu in
9634 powerpc)
9635 # see comment about AmigaOS4 .so support
9636 lt_prog_compiler_pic='-fPIC'
9637 ;;
9638 m68k)
9639 # FIXME: we need at least 68020 code to build shared libraries, but
9640 # adding the `-m68020' flag to GCC prevents building anything better,
9641 # like `-m68040'.
9642 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9643 ;;
9644 esac
9645 ;;
9646  
9647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9648 # PIC is the default for these OSes.
9649 ;;
9650  
9651 mingw* | cygwin* | pw32* | os2* | cegcc*)
9652 # This hack is so that the source file can tell whether it is being
9653 # built for inclusion in a dll (and should export symbols for example).
9654 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9655 # (--disable-auto-import) libraries
9656 lt_prog_compiler_pic='-DDLL_EXPORT'
9657 ;;
9658  
9659 darwin* | rhapsody*)
9660 # PIC is the default on this platform
9661 # Common symbols not allowed in MH_DYLIB files
9662 lt_prog_compiler_pic='-fno-common'
9663 ;;
9664  
9665 haiku*)
9666 # PIC is the default for Haiku.
9667 # The "-static" flag exists, but is broken.
9668 lt_prog_compiler_static=
9669 ;;
9670  
9671 hpux*)
9672 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9673 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9674 # sets the default TLS model and affects inlining.
9675 case $host_cpu in
9676 hppa*64*)
9677 # +Z the default
9678 ;;
9679 *)
9680 lt_prog_compiler_pic='-fPIC'
9681 ;;
9682 esac
9683 ;;
9684  
9685 interix[3-9]*)
9686 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9687 # Instead, we relocate shared libraries at runtime.
9688 ;;
9689  
9690 msdosdjgpp*)
9691 # Just because we use GCC doesn't mean we suddenly get shared libraries
9692 # on systems that don't support them.
9693 lt_prog_compiler_can_build_shared=no
9694 enable_shared=no
9695 ;;
9696  
9697 *nto* | *qnx*)
9698 # QNX uses GNU C++, but need to define -shared option too, otherwise
9699 # it will coredump.
9700 lt_prog_compiler_pic='-fPIC -shared'
9701 ;;
9702  
9703 sysv4*MP*)
9704 if test -d /usr/nec; then
9705 lt_prog_compiler_pic=-Kconform_pic
9706 fi
9707 ;;
9708  
9709 *)
9710 lt_prog_compiler_pic='-fPIC'
9711 ;;
9712 esac
9713  
9714 case $cc_basename in
9715 nvcc*) # Cuda Compiler Driver 2.2
9716 lt_prog_compiler_wl='-Xlinker '
9717 lt_prog_compiler_pic='-Xcompiler -fPIC'
9718 ;;
9719 esac
9720 else
9721 # PORTME Check for flag to pass linker flags through the system compiler.
9722 case $host_os in
9723 aix*)
9724 lt_prog_compiler_wl='-Wl,'
9725 if test "$host_cpu" = ia64; then
9726 # AIX 5 now supports IA64 processor
9727 lt_prog_compiler_static='-Bstatic'
9728 else
9729 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9730 fi
9731 ;;
9732  
9733 mingw* | cygwin* | pw32* | os2* | cegcc*)
9734 # This hack is so that the source file can tell whether it is being
9735 # built for inclusion in a dll (and should export symbols for example).
9736 lt_prog_compiler_pic='-DDLL_EXPORT'
9737 ;;
9738  
9739 hpux9* | hpux10* | hpux11*)
9740 lt_prog_compiler_wl='-Wl,'
9741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9742 # not for PA HP-UX.
9743 case $host_cpu in
9744 hppa*64*|ia64*)
9745 # +Z the default
9746 ;;
9747 *)
9748 lt_prog_compiler_pic='+Z'
9749 ;;
9750 esac
9751 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9752 lt_prog_compiler_static='${wl}-a ${wl}archive'
9753 ;;
9754  
9755 irix5* | irix6* | nonstopux*)
9756 lt_prog_compiler_wl='-Wl,'
9757 # PIC (with -KPIC) is the default.
9758 lt_prog_compiler_static='-non_shared'
9759 ;;
9760  
9761 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9762 case $cc_basename in
9763 # old Intel for x86_64 which still supported -KPIC.
9764 ecc*)
9765 lt_prog_compiler_wl='-Wl,'
9766 lt_prog_compiler_pic='-KPIC'
9767 lt_prog_compiler_static='-static'
9768 ;;
9769 # icc used to be incompatible with GCC.
9770 # ICC 10 doesn't accept -KPIC any more.
9771 icc* | ifort*)
9772 lt_prog_compiler_wl='-Wl,'
9773 lt_prog_compiler_pic='-fPIC'
9774 lt_prog_compiler_static='-static'
9775 ;;
9776 # Lahey Fortran 8.1.
9777 lf95*)
9778 lt_prog_compiler_wl='-Wl,'
9779 lt_prog_compiler_pic='--shared'
9780 lt_prog_compiler_static='--static'
9781 ;;
9782 nagfor*)
9783 # NAG Fortran compiler
9784 lt_prog_compiler_wl='-Wl,-Wl,,'
9785 lt_prog_compiler_pic='-PIC'
9786 lt_prog_compiler_static='-Bstatic'
9787 ;;
9788 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9789 # Portland Group compilers (*not* the Pentium gcc compiler,
9790 # which looks to be a dead project)
9791 lt_prog_compiler_wl='-Wl,'
9792 lt_prog_compiler_pic='-fpic'
9793 lt_prog_compiler_static='-Bstatic'
9794 ;;
9795 ccc*)
9796 lt_prog_compiler_wl='-Wl,'
9797 # All Alpha code is PIC.
9798 lt_prog_compiler_static='-non_shared'
9799 ;;
9800 xl* | bgxl* | bgf* | mpixl*)
9801 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9802 lt_prog_compiler_wl='-Wl,'
9803 lt_prog_compiler_pic='-qpic'
9804 lt_prog_compiler_static='-qstaticlink'
9805 ;;
9806 *)
9807 case `$CC -V 2>&1 | sed 5q` in
9808 *Sun\ F* | *Sun*Fortran*)
9809 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9810 lt_prog_compiler_pic='-KPIC'
9811 lt_prog_compiler_static='-Bstatic'
9812 lt_prog_compiler_wl=''
9813 ;;
9814 *Sun\ C*)
9815 # Sun C 5.9
9816 lt_prog_compiler_pic='-KPIC'
9817 lt_prog_compiler_static='-Bstatic'
9818 lt_prog_compiler_wl='-Wl,'
9819 ;;
9820 esac
9821 ;;
9822 esac
9823 ;;
9824  
9825 newsos6)
9826 lt_prog_compiler_pic='-KPIC'
9827 lt_prog_compiler_static='-Bstatic'
9828 ;;
9829  
9830 *nto* | *qnx*)
9831 # QNX uses GNU C++, but need to define -shared option too, otherwise
9832 # it will coredump.
9833 lt_prog_compiler_pic='-fPIC -shared'
9834 ;;
9835  
9836 osf3* | osf4* | osf5*)
9837 lt_prog_compiler_wl='-Wl,'
9838 # All OSF/1 code is PIC.
9839 lt_prog_compiler_static='-non_shared'
9840 ;;
9841  
9842 rdos*)
9843 lt_prog_compiler_static='-non_shared'
9844 ;;
9845  
9846 solaris*)
9847 lt_prog_compiler_pic='-KPIC'
9848 lt_prog_compiler_static='-Bstatic'
9849 case $cc_basename in
9850 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9851 lt_prog_compiler_wl='-Qoption ld ';;
9852 *)
9853 lt_prog_compiler_wl='-Wl,';;
9854 esac
9855 ;;
9856  
9857 sunos4*)
9858 lt_prog_compiler_wl='-Qoption ld '
9859 lt_prog_compiler_pic='-PIC'
9860 lt_prog_compiler_static='-Bstatic'
9861 ;;
9862  
9863 sysv4 | sysv4.2uw2* | sysv4.3*)
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='-KPIC'
9866 lt_prog_compiler_static='-Bstatic'
9867 ;;
9868  
9869 sysv4*MP*)
9870 if test -d /usr/nec ;then
9871 lt_prog_compiler_pic='-Kconform_pic'
9872 lt_prog_compiler_static='-Bstatic'
9873 fi
9874 ;;
9875  
9876 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9877 lt_prog_compiler_wl='-Wl,'
9878 lt_prog_compiler_pic='-KPIC'
9879 lt_prog_compiler_static='-Bstatic'
9880 ;;
9881  
9882 unicos*)
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_can_build_shared=no
9885 ;;
9886  
9887 uts4*)
9888 lt_prog_compiler_pic='-pic'
9889 lt_prog_compiler_static='-Bstatic'
9890 ;;
9891  
9892 *)
9893 lt_prog_compiler_can_build_shared=no
9894 ;;
9895 esac
9896 fi
9897  
9898 case $host_os in
9899 # For platforms which do not support PIC, -DPIC is meaningless:
9900 *djgpp*)
9901 lt_prog_compiler_pic=
9902 ;;
9903 *)
9904 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9905 ;;
9906 esac
9907  
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9910 if ${lt_cv_prog_compiler_pic+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9916 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9917 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9918  
9919 #
9920 # Check to make sure the PIC flag actually works.
9921 #
9922 if test -n "$lt_prog_compiler_pic"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9924 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9925 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 lt_cv_prog_compiler_pic_works=no
9929 ac_outfile=conftest.$ac_objext
9930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9931 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9932 # Insert the option either (1) after the last *FLAGS variable, or
9933 # (2) before a word containing "conftest.", or (3) at the end.
9934 # Note that $ac_compile itself does not contain backslashes and begins
9935 # with a dollar sign (not a hyphen), so the echo should work correctly.
9936 # The option is referenced via a variable to avoid confusing sed.
9937 lt_compile=`echo "$ac_compile" | $SED \
9938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9940 -e 's:$: $lt_compiler_flag:'`
9941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9942 (eval "$lt_compile" 2>conftest.err)
9943 ac_status=$?
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 if (exit $ac_status) && test -s "$ac_outfile"; then
9947 # The compiler can only warn and ignore the option if not recognized
9948 # So say no if there are warnings other than the usual output.
9949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9952 lt_cv_prog_compiler_pic_works=yes
9953 fi
9954 fi
9955 $RM conftest*
9956  
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9959 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9960  
9961 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9962 case $lt_prog_compiler_pic in
9963 "" | " "*) ;;
9964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9965 esac
9966 else
9967 lt_prog_compiler_pic=
9968 lt_prog_compiler_can_build_shared=no
9969 fi
9970  
9971 fi
9972  
9973  
9974  
9975  
9976  
9977  
9978  
9979  
9980  
9981  
9982  
9983 #
9984 # Check to make sure the static flag actually works.
9985 #
9986 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9988 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9989 if ${lt_cv_prog_compiler_static_works+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 lt_cv_prog_compiler_static_works=no
9993 save_LDFLAGS="$LDFLAGS"
9994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9997 # The linker can only warn and ignore the option if not recognized
9998 # So say no if there are warnings
9999 if test -s conftest.err; then
10000 # Append any errors to the config.log.
10001 cat conftest.err 1>&5
10002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10004 if diff conftest.exp conftest.er2 >/dev/null; then
10005 lt_cv_prog_compiler_static_works=yes
10006 fi
10007 else
10008 lt_cv_prog_compiler_static_works=yes
10009 fi
10010 fi
10011 $RM -r conftest*
10012 LDFLAGS="$save_LDFLAGS"
10013  
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10016 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10017  
10018 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10019 :
10020 else
10021 lt_prog_compiler_static=
10022 fi
10023  
10024  
10025  
10026  
10027  
10028  
10029  
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10032 if ${lt_cv_prog_compiler_c_o+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 lt_cv_prog_compiler_c_o=no
10036 $RM -r conftest 2>/dev/null
10037 mkdir conftest
10038 cd conftest
10039 mkdir out
10040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10041  
10042 lt_compiler_flag="-o out/conftest2.$ac_objext"
10043 # Insert the option either (1) after the last *FLAGS variable, or
10044 # (2) before a word containing "conftest.", or (3) at the end.
10045 # Note that $ac_compile itself does not contain backslashes and begins
10046 # with a dollar sign (not a hyphen), so the echo should work correctly.
10047 lt_compile=`echo "$ac_compile" | $SED \
10048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10050 -e 's:$: $lt_compiler_flag:'`
10051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10052 (eval "$lt_compile" 2>out/conftest.err)
10053 ac_status=$?
10054 cat out/conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10057 then
10058 # The compiler can only warn and ignore the option if not recognized
10059 # So say no if there are warnings
10060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10063 lt_cv_prog_compiler_c_o=yes
10064 fi
10065 fi
10066 chmod u+w . 2>&5
10067 $RM conftest*
10068 # SGI C++ compiler will create directory out/ii_files/ for
10069 # template instantiation
10070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10071 $RM out/* && rmdir out
10072 cd ..
10073 $RM -r conftest
10074 $RM conftest*
10075  
10076 fi
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10078 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10079  
10080  
10081  
10082  
10083  
10084  
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10087 if ${lt_cv_prog_compiler_c_o+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 lt_cv_prog_compiler_c_o=no
10091 $RM -r conftest 2>/dev/null
10092 mkdir conftest
10093 cd conftest
10094 mkdir out
10095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10096  
10097 lt_compiler_flag="-o out/conftest2.$ac_objext"
10098 # Insert the option either (1) after the last *FLAGS variable, or
10099 # (2) before a word containing "conftest.", or (3) at the end.
10100 # Note that $ac_compile itself does not contain backslashes and begins
10101 # with a dollar sign (not a hyphen), so the echo should work correctly.
10102 lt_compile=`echo "$ac_compile" | $SED \
10103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10105 -e 's:$: $lt_compiler_flag:'`
10106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10107 (eval "$lt_compile" 2>out/conftest.err)
10108 ac_status=$?
10109 cat out/conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10112 then
10113 # The compiler can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10118 lt_cv_prog_compiler_c_o=yes
10119 fi
10120 fi
10121 chmod u+w . 2>&5
10122 $RM conftest*
10123 # SGI C++ compiler will create directory out/ii_files/ for
10124 # template instantiation
10125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10126 $RM out/* && rmdir out
10127 cd ..
10128 $RM -r conftest
10129 $RM conftest*
10130  
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10134  
10135  
10136  
10137  
10138 hard_links="nottested"
10139 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10140 # do not overwrite the value of need_locks provided by the user
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10142 $as_echo_n "checking if we can lock with hard links... " >&6; }
10143 hard_links=yes
10144 $RM conftest*
10145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10146 touch conftest.a
10147 ln conftest.a conftest.b 2>&5 || hard_links=no
10148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10150 $as_echo "$hard_links" >&6; }
10151 if test "$hard_links" = no; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10153 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10154 need_locks=warn
10155 fi
10156 else
10157 need_locks=no
10158 fi
10159  
10160  
10161  
10162  
10163  
10164  
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10167  
10168 runpath_var=
10169 allow_undefined_flag=
10170 always_export_symbols=no
10171 archive_cmds=
10172 archive_expsym_cmds=
10173 compiler_needs_object=no
10174 enable_shared_with_static_runtimes=no
10175 export_dynamic_flag_spec=
10176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10177 hardcode_automatic=no
10178 hardcode_direct=no
10179 hardcode_direct_absolute=no
10180 hardcode_libdir_flag_spec=
10181 hardcode_libdir_flag_spec_ld=
10182 hardcode_libdir_separator=
10183 hardcode_minus_L=no
10184 hardcode_shlibpath_var=unsupported
10185 inherit_rpath=no
10186 link_all_deplibs=unknown
10187 module_cmds=
10188 module_expsym_cmds=
10189 old_archive_from_new_cmds=
10190 old_archive_from_expsyms_cmds=
10191 thread_safe_flag_spec=
10192 whole_archive_flag_spec=
10193 # include_expsyms should be a list of space-separated symbols to be *always*
10194 # included in the symbol list
10195 include_expsyms=
10196 # exclude_expsyms can be an extended regexp of symbols to exclude
10197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10199 # as well as any symbol that contains `d'.
10200 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10202 # platforms (ab)use it in PIC code, but their linkers get confused if
10203 # the symbol is explicitly referenced. Since portable code cannot
10204 # rely on this symbol name, it's probably fine to never include it in
10205 # preloaded symbol tables.
10206 # Exclude shared library initialization/finalization symbols.
10207 extract_expsyms_cmds=
10208  
10209 case $host_os in
10210 cygwin* | mingw* | pw32* | cegcc*)
10211 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10212 # When not using gcc, we currently assume that we are using
10213 # Microsoft Visual C++.
10214 if test "$GCC" != yes; then
10215 with_gnu_ld=no
10216 fi
10217 ;;
10218 interix*)
10219 # we just hope/assume this is gcc and not c89 (= MSVC++)
10220 with_gnu_ld=yes
10221 ;;
10222 openbsd*)
10223 with_gnu_ld=no
10224 ;;
10225 linux* | k*bsd*-gnu | gnu*)
10226 link_all_deplibs=no
10227 ;;
10228 esac
10229  
10230 ld_shlibs=yes
10231  
10232 # On some targets, GNU ld is compatible enough with the native linker
10233 # that we're better off using the native interface for both.
10234 lt_use_gnu_ld_interface=no
10235 if test "$with_gnu_ld" = yes; then
10236 case $host_os in
10237 aix*)
10238 # The AIX port of GNU ld has always aspired to compatibility
10239 # with the native linker. However, as the warning in the GNU ld
10240 # block says, versions before 2.19.5* couldn't really create working
10241 # shared libraries, regardless of the interface used.
10242 case `$LD -v 2>&1` in
10243 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10244 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10245 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10246 *)
10247 lt_use_gnu_ld_interface=yes
10248 ;;
10249 esac
10250 ;;
10251 *)
10252 lt_use_gnu_ld_interface=yes
10253 ;;
10254 esac
10255 fi
10256  
10257 if test "$lt_use_gnu_ld_interface" = yes; then
10258 # If archive_cmds runs LD, not CC, wlarc should be empty
10259 wlarc='${wl}'
10260  
10261 # Set some defaults for GNU ld with shared library support. These
10262 # are reset later if shared libraries are not supported. Putting them
10263 # here allows them to be overridden if necessary.
10264 runpath_var=LD_RUN_PATH
10265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10266 export_dynamic_flag_spec='${wl}--export-dynamic'
10267 # ancient GNU ld didn't support --whole-archive et. al.
10268 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10269 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10270 else
10271 whole_archive_flag_spec=
10272 fi
10273 supports_anon_versioning=no
10274 case `$LD -v 2>&1` in
10275 *GNU\ gold*) supports_anon_versioning=yes ;;
10276 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10277 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10278 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10279 *\ 2.11.*) ;; # other 2.11 versions
10280 *) supports_anon_versioning=yes ;;
10281 esac
10282  
10283 # See if GNU ld supports shared libraries.
10284 case $host_os in
10285 aix[3-9]*)
10286 # On AIX/PPC, the GNU linker is very broken
10287 if test "$host_cpu" != ia64; then
10288 ld_shlibs=no
10289 cat <<_LT_EOF 1>&2
10290  
10291 *** Warning: the GNU linker, at least up to release 2.19, is reported
10292 *** to be unable to reliably create shared libraries on AIX.
10293 *** Therefore, libtool is disabling shared libraries support. If you
10294 *** really care for shared libraries, you may want to install binutils
10295 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10296 *** You will then need to restart the configuration process.
10297  
10298 _LT_EOF
10299 fi
10300 ;;
10301  
10302 amigaos*)
10303 case $host_cpu in
10304 powerpc)
10305 # see comment about AmigaOS4 .so support
10306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10307 archive_expsym_cmds=''
10308 ;;
10309 m68k)
10310 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)'
10311 hardcode_libdir_flag_spec='-L$libdir'
10312 hardcode_minus_L=yes
10313 ;;
10314 esac
10315 ;;
10316  
10317 beos*)
10318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10319 allow_undefined_flag=unsupported
10320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10321 # support --undefined. This deserves some investigation. FIXME
10322 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10323 else
10324 ld_shlibs=no
10325 fi
10326 ;;
10327  
10328 cygwin* | mingw* | pw32* | cegcc*)
10329 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10330 # as there is no search path for DLLs.
10331 hardcode_libdir_flag_spec='-L$libdir'
10332 export_dynamic_flag_spec='${wl}--export-all-symbols'
10333 allow_undefined_flag=unsupported
10334 always_export_symbols=no
10335 enable_shared_with_static_runtimes=yes
10336 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'
10337 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10338  
10339 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10341 # If the export-symbols file already is a .def file (1st line
10342 # is EXPORTS), use it as is; otherwise, prepend...
10343 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10344 cp $export_symbols $output_objdir/$soname.def;
10345 else
10346 echo EXPORTS > $output_objdir/$soname.def;
10347 cat $export_symbols >> $output_objdir/$soname.def;
10348 fi~
10349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10350 else
10351 ld_shlibs=no
10352 fi
10353 ;;
10354  
10355 haiku*)
10356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10357 link_all_deplibs=yes
10358 ;;
10359  
10360 interix[3-9]*)
10361 hardcode_direct=no
10362 hardcode_shlibpath_var=no
10363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10364 export_dynamic_flag_spec='${wl}-E'
10365 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10366 # Instead, shared libraries are loaded at an image base (0x10000000 by
10367 # default) and relocated if they conflict, which is a slow very memory
10368 # consuming and fragmenting process. To avoid this, we pick a random,
10369 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10370 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10371 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10372 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'
10373 ;;
10374  
10375 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10376 tmp_diet=no
10377 if test "$host_os" = linux-dietlibc; then
10378 case $cc_basename in
10379 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10380 esac
10381 fi
10382 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10383 && test "$tmp_diet" = no
10384 then
10385 tmp_addflag=' $pic_flag'
10386 tmp_sharedflag='-shared'
10387 case $cc_basename,$host_cpu in
10388 pgcc*) # Portland Group C compiler
10389 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'
10390 tmp_addflag=' $pic_flag'
10391 ;;
10392 pgf77* | pgf90* | pgf95* | pgfortran*)
10393 # Portland Group f77 and f90 compilers
10394 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'
10395 tmp_addflag=' $pic_flag -Mnomain' ;;
10396 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10397 tmp_addflag=' -i_dynamic' ;;
10398 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10399 tmp_addflag=' -i_dynamic -nofor_main' ;;
10400 ifc* | ifort*) # Intel Fortran compiler
10401 tmp_addflag=' -nofor_main' ;;
10402 lf95*) # Lahey Fortran 8.1
10403 whole_archive_flag_spec=
10404 tmp_sharedflag='--shared' ;;
10405 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10406 tmp_sharedflag='-qmkshrobj'
10407 tmp_addflag= ;;
10408 nvcc*) # Cuda Compiler Driver 2.2
10409 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'
10410 compiler_needs_object=yes
10411 ;;
10412 esac
10413 case `$CC -V 2>&1 | sed 5q` in
10414 *Sun\ C*) # Sun C 5.9
10415 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'
10416 compiler_needs_object=yes
10417 tmp_sharedflag='-G' ;;
10418 *Sun\ F*) # Sun Fortran 8.3
10419 tmp_sharedflag='-G' ;;
10420 esac
10421 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422  
10423 if test "x$supports_anon_versioning" = xyes; then
10424 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10426 echo "local: *; };" >> $output_objdir/$libname.ver~
10427 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10428 fi
10429  
10430 case $cc_basename in
10431 xlf* | bgf* | bgxlf* | mpixlf*)
10432 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10433 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10434 hardcode_libdir_flag_spec=
10435 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10436 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10437 if test "x$supports_anon_versioning" = xyes; then
10438 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10440 echo "local: *; };" >> $output_objdir/$libname.ver~
10441 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10442 fi
10443 ;;
10444 esac
10445 else
10446 ld_shlibs=no
10447 fi
10448 ;;
10449  
10450 netbsd* | netbsdelf*-gnu)
10451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10452 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10453 wlarc=
10454 else
10455 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10457 fi
10458 ;;
10459  
10460 solaris*)
10461 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10462 ld_shlibs=no
10463 cat <<_LT_EOF 1>&2
10464  
10465 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10466 *** create shared libraries on Solaris systems. Therefore, libtool
10467 *** is disabling shared libraries support. We urge you to upgrade GNU
10468 *** binutils to release 2.9.1 or newer. Another option is to modify
10469 *** your PATH or compiler configuration so that the native linker is
10470 *** used, and then restart.
10471  
10472 _LT_EOF
10473 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10474 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10475 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10476 else
10477 ld_shlibs=no
10478 fi
10479 ;;
10480  
10481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10482 case `$LD -v 2>&1` in
10483 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10484 ld_shlibs=no
10485 cat <<_LT_EOF 1>&2
10486  
10487 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10488 *** reliably create shared libraries on SCO systems. Therefore, libtool
10489 *** is disabling shared libraries support. We urge you to upgrade GNU
10490 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10491 *** your PATH or compiler configuration so that the native linker is
10492 *** used, and then restart.
10493  
10494 _LT_EOF
10495 ;;
10496 *)
10497 # For security reasons, it is highly recommended that you always
10498 # use absolute paths for naming shared libraries, and exclude the
10499 # DT_RUNPATH tag from executables and libraries. But doing so
10500 # requires that you compile everything twice, which is a pain.
10501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10505 else
10506 ld_shlibs=no
10507 fi
10508 ;;
10509 esac
10510 ;;
10511  
10512 sunos4*)
10513 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10514 wlarc=
10515 hardcode_direct=yes
10516 hardcode_shlibpath_var=no
10517 ;;
10518  
10519 *)
10520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10521 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10522 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10523 else
10524 ld_shlibs=no
10525 fi
10526 ;;
10527 esac
10528  
10529 if test "$ld_shlibs" = no; then
10530 runpath_var=
10531 hardcode_libdir_flag_spec=
10532 export_dynamic_flag_spec=
10533 whole_archive_flag_spec=
10534 fi
10535 else
10536 # PORTME fill in a description of your system's linker (not GNU ld)
10537 case $host_os in
10538 aix3*)
10539 allow_undefined_flag=unsupported
10540 always_export_symbols=yes
10541 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'
10542 # Note: this linker hardcodes the directories in LIBPATH if there
10543 # are no directories specified by -L.
10544 hardcode_minus_L=yes
10545 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10546 # Neither direct hardcoding nor static linking is supported with a
10547 # broken collect2.
10548 hardcode_direct=unsupported
10549 fi
10550 ;;
10551  
10552 aix[4-9]*)
10553 if test "$host_cpu" = ia64; then
10554 # On IA64, the linker does run time linking by default, so we don't
10555 # have to do anything special.
10556 aix_use_runtimelinking=no
10557 exp_sym_flag='-Bexport'
10558 no_entry_flag=""
10559 else
10560 # If we're using GNU nm, then we don't want the "-C" option.
10561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10562 # Also, AIX nm treats weak defined symbols like other global
10563 # defined symbols, whereas GNU nm marks them as "W".
10564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10565 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10566 else
10567 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10568 fi
10569 aix_use_runtimelinking=no
10570  
10571 # Test if we are trying to use run time linking or normal
10572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10573 # need to do runtime linking.
10574 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10575 for ld_flag in $LDFLAGS; do
10576 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10577 aix_use_runtimelinking=yes
10578 break
10579 fi
10580 done
10581 ;;
10582 esac
10583  
10584 exp_sym_flag='-bexport'
10585 no_entry_flag='-bnoentry'
10586 fi
10587  
10588 # When large executables or shared objects are built, AIX ld can
10589 # have problems creating the table of contents. If linking a library
10590 # or program results in "error TOC overflow" add -mminimal-toc to
10591 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10592 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10593  
10594 archive_cmds=''
10595 hardcode_direct=yes
10596 hardcode_direct_absolute=yes
10597 hardcode_libdir_separator=':'
10598 link_all_deplibs=yes
10599 file_list_spec='${wl}-f,'
10600  
10601 if test "$GCC" = yes; then
10602 case $host_os in aix4.[012]|aix4.[012].*)
10603 # We only want to do this on AIX 4.2 and lower, the check
10604 # below for broken collect2 doesn't work under 4.3+
10605 collect2name=`${CC} -print-prog-name=collect2`
10606 if test -f "$collect2name" &&
10607 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10608 then
10609 # We have reworked collect2
10610 :
10611 else
10612 # We have old collect2
10613 hardcode_direct=unsupported
10614 # It fails to find uninstalled libraries when the uninstalled
10615 # path is not listed in the libpath. Setting hardcode_minus_L
10616 # to unsupported forces relinking
10617 hardcode_minus_L=yes
10618 hardcode_libdir_flag_spec='-L$libdir'
10619 hardcode_libdir_separator=
10620 fi
10621 ;;
10622 esac
10623 shared_flag='-shared'
10624 if test "$aix_use_runtimelinking" = yes; then
10625 shared_flag="$shared_flag "'${wl}-G'
10626 fi
10627 link_all_deplibs=no
10628 else
10629 # not using gcc
10630 if test "$host_cpu" = ia64; then
10631 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10632 # chokes on -Wl,-G. The following line is correct:
10633 shared_flag='-G'
10634 else
10635 if test "$aix_use_runtimelinking" = yes; then
10636 shared_flag='${wl}-G'
10637 else
10638 shared_flag='${wl}-bM:SRE'
10639 fi
10640 fi
10641 fi
10642  
10643 export_dynamic_flag_spec='${wl}-bexpall'
10644 # It seems that -bexpall does not export symbols beginning with
10645 # underscore (_), so it is better to generate a list of symbols to export.
10646 always_export_symbols=yes
10647 if test "$aix_use_runtimelinking" = yes; then
10648 # Warning - without using the other runtime loading flags (-brtl),
10649 # -berok will link without error, but may produce a broken library.
10650 allow_undefined_flag='-berok'
10651 # Determine the default libpath from the value encoded in an
10652 # empty executable.
10653 if test "${lt_cv_aix_libpath+set}" = set; then
10654 aix_libpath=$lt_cv_aix_libpath
10655 else
10656 if ${lt_cv_aix_libpath_+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661  
10662 int
10663 main ()
10664 {
10665  
10666 ;
10667 return 0;
10668 }
10669 _ACEOF
10670 if ac_fn_c_try_link "$LINENO"; then :
10671  
10672 lt_aix_libpath_sed='
10673 /Import File Strings/,/^$/ {
10674 /^0/ {
10675 s/^0 *\([^ ]*\) *$/\1/
10676 p
10677 }
10678 }'
10679 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 # Check for a 64-bit object if we didn't find anything.
10681 if test -z "$lt_cv_aix_libpath_"; then
10682 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10683 fi
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 if test -z "$lt_cv_aix_libpath_"; then
10688 lt_cv_aix_libpath_="/usr/lib:/lib"
10689 fi
10690  
10691 fi
10692  
10693 aix_libpath=$lt_cv_aix_libpath_
10694 fi
10695  
10696 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10697 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10698 else
10699 if test "$host_cpu" = ia64; then
10700 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10701 allow_undefined_flag="-z nodefs"
10702 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"
10703 else
10704 # Determine the default libpath from the value encoded in an
10705 # empty executable.
10706 if test "${lt_cv_aix_libpath+set}" = set; then
10707 aix_libpath=$lt_cv_aix_libpath
10708 else
10709 if ${lt_cv_aix_libpath_+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714  
10715 int
10716 main ()
10717 {
10718  
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"; then :
10724  
10725 lt_aix_libpath_sed='
10726 /Import File Strings/,/^$/ {
10727 /^0/ {
10728 s/^0 *\([^ ]*\) *$/\1/
10729 p
10730 }
10731 }'
10732 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733 # Check for a 64-bit object if we didn't find anything.
10734 if test -z "$lt_cv_aix_libpath_"; then
10735 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10736 fi
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 if test -z "$lt_cv_aix_libpath_"; then
10741 lt_cv_aix_libpath_="/usr/lib:/lib"
10742 fi
10743  
10744 fi
10745  
10746 aix_libpath=$lt_cv_aix_libpath_
10747 fi
10748  
10749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10750 # Warning - without using the other run time loading flags,
10751 # -berok will link without error, but may produce a broken library.
10752 no_undefined_flag=' ${wl}-bernotok'
10753 allow_undefined_flag=' ${wl}-berok'
10754 if test "$with_gnu_ld" = yes; then
10755 # We only use this code for GNU lds that support --whole-archive.
10756 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10757 else
10758 # Exported symbols can be pulled into shared objects from archives
10759 whole_archive_flag_spec='$convenience'
10760 fi
10761 archive_cmds_need_lc=yes
10762 # This is similar to how AIX traditionally builds its shared libraries.
10763 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10764 fi
10765 fi
10766 ;;
10767  
10768 amigaos*)
10769 case $host_cpu in
10770 powerpc)
10771 # see comment about AmigaOS4 .so support
10772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10773 archive_expsym_cmds=''
10774 ;;
10775 m68k)
10776 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)'
10777 hardcode_libdir_flag_spec='-L$libdir'
10778 hardcode_minus_L=yes
10779 ;;
10780 esac
10781 ;;
10782  
10783 bsdi[45]*)
10784 export_dynamic_flag_spec=-rdynamic
10785 ;;
10786  
10787 cygwin* | mingw* | pw32* | cegcc*)
10788 # When not using gcc, we currently assume that we are using
10789 # Microsoft Visual C++.
10790 # hardcode_libdir_flag_spec is actually meaningless, as there is
10791 # no search path for DLLs.
10792 case $cc_basename in
10793 cl*)
10794 # Native MSVC
10795 hardcode_libdir_flag_spec=' '
10796 allow_undefined_flag=unsupported
10797 always_export_symbols=yes
10798 file_list_spec='@'
10799 # Tell ltmain to make .lib files, not .a files.
10800 libext=lib
10801 # Tell ltmain to make .dll files, not .so files.
10802 shrext_cmds=".dll"
10803 # FIXME: Setting linknames here is a bad hack.
10804 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10805 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10806 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10807 else
10808 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10809 fi~
10810 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10811 linknames='
10812 # The linker will not automatically build a static lib if we build a DLL.
10813 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10814 enable_shared_with_static_runtimes=yes
10815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10816 # Don't use ranlib
10817 old_postinstall_cmds='chmod 644 $oldlib'
10818 postlink_cmds='lt_outputfile="@OUTPUT@"~
10819 lt_tool_outputfile="@TOOL_OUTPUT@"~
10820 case $lt_outputfile in
10821 *.exe|*.EXE) ;;
10822 *)
10823 lt_outputfile="$lt_outputfile.exe"
10824 lt_tool_outputfile="$lt_tool_outputfile.exe"
10825 ;;
10826 esac~
10827 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10828 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10829 $RM "$lt_outputfile.manifest";
10830 fi'
10831 ;;
10832 *)
10833 # Assume MSVC wrapper
10834 hardcode_libdir_flag_spec=' '
10835 allow_undefined_flag=unsupported
10836 # Tell ltmain to make .lib files, not .a files.
10837 libext=lib
10838 # Tell ltmain to make .dll files, not .so files.
10839 shrext_cmds=".dll"
10840 # FIXME: Setting linknames here is a bad hack.
10841 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10842 # The linker will automatically build a .lib file if we build a DLL.
10843 old_archive_from_new_cmds='true'
10844 # FIXME: Should let the user specify the lib program.
10845 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10846 enable_shared_with_static_runtimes=yes
10847 ;;
10848 esac
10849 ;;
10850  
10851 darwin* | rhapsody*)
10852  
10853  
10854 archive_cmds_need_lc=no
10855 hardcode_direct=no
10856 hardcode_automatic=yes
10857 hardcode_shlibpath_var=unsupported
10858 if test "$lt_cv_ld_force_load" = "yes"; then
10859 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\"`'
10860 else
10861 whole_archive_flag_spec=''
10862 fi
10863 link_all_deplibs=yes
10864 allow_undefined_flag="$_lt_dar_allow_undefined"
10865 case $cc_basename in
10866 ifort*) _lt_dar_can_shared=yes ;;
10867 *) _lt_dar_can_shared=$GCC ;;
10868 esac
10869 if test "$_lt_dar_can_shared" = "yes"; then
10870 output_verbose_link_cmd=func_echo_all
10871 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10872 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10873 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}"
10874 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}"
10875  
10876 else
10877 ld_shlibs=no
10878 fi
10879  
10880 ;;
10881  
10882 dgux*)
10883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884 hardcode_libdir_flag_spec='-L$libdir'
10885 hardcode_shlibpath_var=no
10886 ;;
10887  
10888 freebsd1*)
10889 ld_shlibs=no
10890 ;;
10891  
10892 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10893 # support. Future versions do this automatically, but an explicit c++rt0.o
10894 # does not break anything, and helps significantly (at the cost of a little
10895 # extra space).
10896 freebsd2.2*)
10897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10898 hardcode_libdir_flag_spec='-R$libdir'
10899 hardcode_direct=yes
10900 hardcode_shlibpath_var=no
10901 ;;
10902  
10903 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10904 freebsd2*)
10905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_direct=yes
10907 hardcode_minus_L=yes
10908 hardcode_shlibpath_var=no
10909 ;;
10910  
10911 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10912 freebsd* | dragonfly*)
10913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10914 hardcode_libdir_flag_spec='-R$libdir'
10915 hardcode_direct=yes
10916 hardcode_shlibpath_var=no
10917 ;;
10918  
10919 hpux9*)
10920 if test "$GCC" = yes; then
10921 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10922 else
10923 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10924 fi
10925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10926 hardcode_libdir_separator=:
10927 hardcode_direct=yes
10928  
10929 # hardcode_minus_L: Not really in the search PATH,
10930 # but as the default location of the library.
10931 hardcode_minus_L=yes
10932 export_dynamic_flag_spec='${wl}-E'
10933 ;;
10934  
10935 hpux10*)
10936 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10937 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10938 else
10939 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10940 fi
10941 if test "$with_gnu_ld" = no; then
10942 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10943 hardcode_libdir_flag_spec_ld='+b $libdir'
10944 hardcode_libdir_separator=:
10945 hardcode_direct=yes
10946 hardcode_direct_absolute=yes
10947 export_dynamic_flag_spec='${wl}-E'
10948 # hardcode_minus_L: Not really in the search PATH,
10949 # but as the default location of the library.
10950 hardcode_minus_L=yes
10951 fi
10952 ;;
10953  
10954 hpux11*)
10955 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10956 case $host_cpu in
10957 hppa*64*)
10958 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 ;;
10960 ia64*)
10961 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10962 ;;
10963 *)
10964 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10965 ;;
10966 esac
10967 else
10968 case $host_cpu in
10969 hppa*64*)
10970 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 ;;
10972 ia64*)
10973 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10974 ;;
10975 *)
10976  
10977 # Older versions of the 11.00 compiler do not understand -b yet
10978 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10980 $as_echo_n "checking if $CC understands -b... " >&6; }
10981 if ${lt_cv_prog_compiler__b+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 lt_cv_prog_compiler__b=no
10985 save_LDFLAGS="$LDFLAGS"
10986 LDFLAGS="$LDFLAGS -b"
10987 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10989 # The linker can only warn and ignore the option if not recognized
10990 # So say no if there are warnings
10991 if test -s conftest.err; then
10992 # Append any errors to the config.log.
10993 cat conftest.err 1>&5
10994 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10996 if diff conftest.exp conftest.er2 >/dev/null; then
10997 lt_cv_prog_compiler__b=yes
10998 fi
10999 else
11000 lt_cv_prog_compiler__b=yes
11001 fi
11002 fi
11003 $RM -r conftest*
11004 LDFLAGS="$save_LDFLAGS"
11005  
11006 fi
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11008 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11009  
11010 if test x"$lt_cv_prog_compiler__b" = xyes; then
11011 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11012 else
11013 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11014 fi
11015  
11016 ;;
11017 esac
11018 fi
11019 if test "$with_gnu_ld" = no; then
11020 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11021 hardcode_libdir_separator=:
11022  
11023 case $host_cpu in
11024 hppa*64*|ia64*)
11025 hardcode_direct=no
11026 hardcode_shlibpath_var=no
11027 ;;
11028 *)
11029 hardcode_direct=yes
11030 hardcode_direct_absolute=yes
11031 export_dynamic_flag_spec='${wl}-E'
11032  
11033 # hardcode_minus_L: Not really in the search PATH,
11034 # but as the default location of the library.
11035 hardcode_minus_L=yes
11036 ;;
11037 esac
11038 fi
11039 ;;
11040  
11041 irix5* | irix6* | nonstopux*)
11042 if test "$GCC" = yes; then
11043 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'
11044 # Try to use the -exported_symbol ld option, if it does not
11045 # work, assume that -exports_file does not work either and
11046 # implicitly export all symbols.
11047 # This should be the same for all languages, so no per-tag cache variable.
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11049 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11050 if ${lt_cv_irix_exported_symbol+:} false; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053 save_LDFLAGS="$LDFLAGS"
11054 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11057 int foo (void) { return 0; }
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"; then :
11060 lt_cv_irix_exported_symbol=yes
11061 else
11062 lt_cv_irix_exported_symbol=no
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 LDFLAGS="$save_LDFLAGS"
11067 fi
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11069 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11070 if test "$lt_cv_irix_exported_symbol" = yes; then
11071 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'
11072 fi
11073 else
11074 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'
11075 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'
11076 fi
11077 archive_cmds_need_lc='no'
11078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11079 hardcode_libdir_separator=:
11080 inherit_rpath=yes
11081 link_all_deplibs=yes
11082 ;;
11083  
11084 netbsd* | netbsdelf*-gnu)
11085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11087 else
11088 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11089 fi
11090 hardcode_libdir_flag_spec='-R$libdir'
11091 hardcode_direct=yes
11092 hardcode_shlibpath_var=no
11093 ;;
11094  
11095 newsos6)
11096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11097 hardcode_direct=yes
11098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11099 hardcode_libdir_separator=:
11100 hardcode_shlibpath_var=no
11101 ;;
11102  
11103 *nto* | *qnx*)
11104 ;;
11105  
11106 openbsd*)
11107 if test -f /usr/libexec/ld.so; then
11108 hardcode_direct=yes
11109 hardcode_shlibpath_var=no
11110 hardcode_direct_absolute=yes
11111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11112 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11113 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11115 export_dynamic_flag_spec='${wl}-E'
11116 else
11117 case $host_os in
11118 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11120 hardcode_libdir_flag_spec='-R$libdir'
11121 ;;
11122 *)
11123 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11124 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11125 ;;
11126 esac
11127 fi
11128 else
11129 ld_shlibs=no
11130 fi
11131 ;;
11132  
11133 os2*)
11134 hardcode_libdir_flag_spec='-L$libdir'
11135 hardcode_minus_L=yes
11136 allow_undefined_flag=unsupported
11137 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11138 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11139 ;;
11140  
11141 osf3*)
11142 if test "$GCC" = yes; then
11143 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11144 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'
11145 else
11146 allow_undefined_flag=' -expect_unresolved \*'
11147 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'
11148 fi
11149 archive_cmds_need_lc='no'
11150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11151 hardcode_libdir_separator=:
11152 ;;
11153  
11154 osf4* | osf5*) # as osf3* with the addition of -msym flag
11155 if test "$GCC" = yes; then
11156 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11157 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'
11158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11159 else
11160 allow_undefined_flag=' -expect_unresolved \*'
11161 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'
11162 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~
11163 $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'
11164  
11165 # Both c and cxx compiler support -rpath directly
11166 hardcode_libdir_flag_spec='-rpath $libdir'
11167 fi
11168 archive_cmds_need_lc='no'
11169 hardcode_libdir_separator=:
11170 ;;
11171  
11172 solaris*)
11173 no_undefined_flag=' -z defs'
11174 if test "$GCC" = yes; then
11175 wlarc='${wl}'
11176 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11178 $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'
11179 else
11180 case `$CC -V 2>&1` in
11181 *"Compilers 5.0"*)
11182 wlarc=''
11183 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11185 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11186 ;;
11187 *)
11188 wlarc='${wl}'
11189 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11191 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11192 ;;
11193 esac
11194 fi
11195 hardcode_libdir_flag_spec='-R$libdir'
11196 hardcode_shlibpath_var=no
11197 case $host_os in
11198 solaris2.[0-5] | solaris2.[0-5].*) ;;
11199 *)
11200 # The compiler driver will combine and reorder linker options,
11201 # but understands `-z linker_flag'. GCC discards it without `$wl',
11202 # but is careful enough not to reorder.
11203 # Supported since Solaris 2.6 (maybe 2.5.1?)
11204 if test "$GCC" = yes; then
11205 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11206 else
11207 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11208 fi
11209 ;;
11210 esac
11211 link_all_deplibs=yes
11212 ;;
11213  
11214 sunos4*)
11215 if test "x$host_vendor" = xsequent; then
11216 # Use $CC to link under sequent, because it throws in some extra .o
11217 # files that make .init and .fini sections work.
11218 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11219 else
11220 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11221 fi
11222 hardcode_libdir_flag_spec='-L$libdir'
11223 hardcode_direct=yes
11224 hardcode_minus_L=yes
11225 hardcode_shlibpath_var=no
11226 ;;
11227  
11228 sysv4)
11229 case $host_vendor in
11230 sni)
11231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11232 hardcode_direct=yes # is this really true???
11233 ;;
11234 siemens)
11235 ## LD is ld it makes a PLAMLIB
11236 ## CC just makes a GrossModule.
11237 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11238 reload_cmds='$CC -r -o $output$reload_objs'
11239 hardcode_direct=no
11240 ;;
11241 motorola)
11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11243 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11244 ;;
11245 esac
11246 runpath_var='LD_RUN_PATH'
11247 hardcode_shlibpath_var=no
11248 ;;
11249  
11250 sysv4.3*)
11251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11252 hardcode_shlibpath_var=no
11253 export_dynamic_flag_spec='-Bexport'
11254 ;;
11255  
11256 sysv4*MP*)
11257 if test -d /usr/nec; then
11258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11259 hardcode_shlibpath_var=no
11260 runpath_var=LD_RUN_PATH
11261 hardcode_runpath_var=yes
11262 ld_shlibs=yes
11263 fi
11264 ;;
11265  
11266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11267 no_undefined_flag='${wl}-z,text'
11268 archive_cmds_need_lc=no
11269 hardcode_shlibpath_var=no
11270 runpath_var='LD_RUN_PATH'
11271  
11272 if test "$GCC" = yes; then
11273 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 else
11276 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11278 fi
11279 ;;
11280  
11281 sysv5* | sco3.2v5* | sco5v6*)
11282 # Note: We can NOT use -z defs as we might desire, because we do not
11283 # link with -lc, and that would cause any symbols used from libc to
11284 # always be unresolved, which means just about no library would
11285 # ever link correctly. If we're not using GNU ld we use -z text
11286 # though, which does catch some bad symbols but isn't as heavy-handed
11287 # as -z defs.
11288 no_undefined_flag='${wl}-z,text'
11289 allow_undefined_flag='${wl}-z,nodefs'
11290 archive_cmds_need_lc=no
11291 hardcode_shlibpath_var=no
11292 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11293 hardcode_libdir_separator=':'
11294 link_all_deplibs=yes
11295 export_dynamic_flag_spec='${wl}-Bexport'
11296 runpath_var='LD_RUN_PATH'
11297  
11298 if test "$GCC" = yes; then
11299 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11300 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11301 else
11302 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 fi
11305 ;;
11306  
11307 uts4*)
11308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309 hardcode_libdir_flag_spec='-L$libdir'
11310 hardcode_shlibpath_var=no
11311 ;;
11312  
11313 *)
11314 ld_shlibs=no
11315 ;;
11316 esac
11317  
11318 if test x$host_vendor = xsni; then
11319 case $host in
11320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11321 export_dynamic_flag_spec='${wl}-Blargedynsym'
11322 ;;
11323 esac
11324 fi
11325 fi
11326  
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11328 $as_echo "$ld_shlibs" >&6; }
11329 test "$ld_shlibs" = no && can_build_shared=no
11330  
11331 with_gnu_ld=$with_gnu_ld
11332  
11333  
11334  
11335  
11336  
11337  
11338  
11339  
11340  
11341  
11342  
11343  
11344  
11345  
11346  
11347 #
11348 # Do we need to explicitly link libc?
11349 #
11350 case "x$archive_cmds_need_lc" in
11351 x|xyes)
11352 # Assume -lc should be added
11353 archive_cmds_need_lc=yes
11354  
11355 if test "$enable_shared" = yes && test "$GCC" = yes; then
11356 case $archive_cmds in
11357 *'~'*)
11358 # FIXME: we may have to deal with multi-command sequences.
11359 ;;
11360 '$CC '*)
11361 # Test whether the compiler implicitly links with -lc since on some
11362 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11363 # to ld, don't add -lc before -lgcc.
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11365 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11366 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 $RM conftest*
11370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11371  
11372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11373 (eval $ac_compile) 2>&5
11374 ac_status=$?
11375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11376 test $ac_status = 0; } 2>conftest.err; then
11377 soname=conftest
11378 lib=conftest
11379 libobjs=conftest.$ac_objext
11380 deplibs=
11381 wl=$lt_prog_compiler_wl
11382 pic_flag=$lt_prog_compiler_pic
11383 compiler_flags=-v
11384 linker_flags=-v
11385 verstring=
11386 output_objdir=.
11387 libname=conftest
11388 lt_save_allow_undefined_flag=$allow_undefined_flag
11389 allow_undefined_flag=
11390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11391 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11392 ac_status=$?
11393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11394 test $ac_status = 0; }
11395 then
11396 lt_cv_archive_cmds_need_lc=no
11397 else
11398 lt_cv_archive_cmds_need_lc=yes
11399 fi
11400 allow_undefined_flag=$lt_save_allow_undefined_flag
11401 else
11402 cat conftest.err 1>&5
11403 fi
11404 $RM conftest*
11405  
11406 fi
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11408 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11409 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11410 ;;
11411 esac
11412 fi
11413 ;;
11414 esac
11415  
11416  
11417  
11418  
11419  
11420  
11421  
11422  
11423  
11424  
11425  
11426  
11427  
11428  
11429  
11430  
11431  
11432  
11433  
11434  
11435  
11436  
11437  
11438  
11439  
11440  
11441  
11442  
11443  
11444  
11445  
11446  
11447  
11448  
11449  
11450  
11451  
11452  
11453  
11454  
11455  
11456  
11457  
11458  
11459  
11460  
11461  
11462  
11463  
11464  
11465  
11466  
11467  
11468  
11469  
11470  
11471  
11472  
11473  
11474  
11475  
11476  
11477  
11478  
11479  
11480  
11481  
11482  
11483  
11484  
11485  
11486  
11487  
11488  
11489  
11490  
11491  
11492  
11493  
11494  
11495  
11496  
11497  
11498  
11499  
11500  
11501  
11502  
11503  
11504  
11505  
11506  
11507  
11508  
11509  
11510  
11511  
11512  
11513  
11514  
11515  
11516  
11517  
11518  
11519  
11520  
11521  
11522  
11523  
11524  
11525  
11526  
11527  
11528  
11529  
11530  
11531  
11532  
11533  
11534  
11535  
11536  
11537  
11538  
11539  
11540  
11541  
11542  
11543  
11544  
11545  
11546  
11547  
11548  
11549  
11550  
11551  
11552  
11553  
11554  
11555  
11556  
11557  
11558  
11559  
11560  
11561  
11562  
11563  
11564  
11565  
11566  
11567  
11568  
11569  
11570  
11571  
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11573 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11574  
11575 if test "$GCC" = yes; then
11576 case $host_os in
11577 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11578 *) lt_awk_arg="/^libraries:/" ;;
11579 esac
11580 case $host_os in
11581 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11582 *) lt_sed_strip_eq="s,=/,/,g" ;;
11583 esac
11584 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11585 case $lt_search_path_spec in
11586 *\;*)
11587 # if the path contains ";" then we assume it to be the separator
11588 # otherwise default to the standard path separator (i.e. ":") - it is
11589 # assumed that no part of a normal pathname contains ";" but that should
11590 # okay in the real world where ";" in dirpaths is itself problematic.
11591 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11592 ;;
11593 *)
11594 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11595 ;;
11596 esac
11597 # Ok, now we have the path, separated by spaces, we can step through it
11598 # and add multilib dir if necessary.
11599 lt_tmp_lt_search_path_spec=
11600 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11601 for lt_sys_path in $lt_search_path_spec; do
11602 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11604 else
11605 test -d "$lt_sys_path" && \
11606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11607 fi
11608 done
11609 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11610 BEGIN {RS=" "; FS="/|\n";} {
11611 lt_foo="";
11612 lt_count=0;
11613 for (lt_i = NF; lt_i > 0; lt_i--) {
11614 if ($lt_i != "" && $lt_i != ".") {
11615 if ($lt_i == "..") {
11616 lt_count++;
11617 } else {
11618 if (lt_count == 0) {
11619 lt_foo="/" $lt_i lt_foo;
11620 } else {
11621 lt_count--;
11622 }
11623 }
11624 }
11625 }
11626 if (lt_foo != "") { lt_freq[lt_foo]++; }
11627 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11628 }'`
11629 # AWK program above erroneously prepends '/' to C:/dos/paths
11630 # for these hosts.
11631 case $host_os in
11632 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11633 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11634 esac
11635 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11636 else
11637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11638 fi
11639 library_names_spec=
11640 libname_spec='lib$name'
11641 soname_spec=
11642 shrext_cmds=".so"
11643 postinstall_cmds=
11644 postuninstall_cmds=
11645 finish_cmds=
11646 finish_eval=
11647 shlibpath_var=
11648 shlibpath_overrides_runpath=unknown
11649 version_type=none
11650 dynamic_linker="$host_os ld.so"
11651 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11652 need_lib_prefix=unknown
11653 hardcode_into_libs=no
11654  
11655 # when you set need_version to no, make sure it does not cause -set_version
11656 # flags to be left without arguments
11657 need_version=unknown
11658  
11659 case $host_os in
11660 aix3*)
11661 version_type=linux
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11663 shlibpath_var=LIBPATH
11664  
11665 # AIX 3 has no versioning support, so we append a major version to the name.
11666 soname_spec='${libname}${release}${shared_ext}$major'
11667 ;;
11668  
11669 aix[4-9]*)
11670 version_type=linux
11671 need_lib_prefix=no
11672 need_version=no
11673 hardcode_into_libs=yes
11674 if test "$host_cpu" = ia64; then
11675 # AIX 5 supports IA64
11676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 else
11679 # With GCC up to 2.95.x, collect2 would create an import file
11680 # for dependence libraries. The import file would start with
11681 # the line `#! .'. This would cause the generated library to
11682 # depend on `.', always an invalid library. This was fixed in
11683 # development snapshots of GCC prior to 3.0.
11684 case $host_os in
11685 aix4 | aix4.[01] | aix4.[01].*)
11686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11687 echo ' yes '
11688 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11689 :
11690 else
11691 can_build_shared=no
11692 fi
11693 ;;
11694 esac
11695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11696 # soname into executable. Probably we can add versioning support to
11697 # collect2, so additional links can be useful in future.
11698 if test "$aix_use_runtimelinking" = yes; then
11699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11700 # instead of lib<name>.a to let people know that these are not
11701 # typical AIX shared libraries.
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703 else
11704 # We preserve .a as extension for shared libraries through AIX4.2
11705 # and later when we are not doing run time linking.
11706 library_names_spec='${libname}${release}.a $libname.a'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 fi
11709 shlibpath_var=LIBPATH
11710 fi
11711 ;;
11712  
11713 amigaos*)
11714 case $host_cpu in
11715 powerpc)
11716 # Since July 2007 AmigaOS4 officially supports .so libraries.
11717 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719 ;;
11720 m68k)
11721 library_names_spec='$libname.ixlibrary $libname.a'
11722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11723 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11724 ;;
11725 esac
11726 ;;
11727  
11728 beos*)
11729 library_names_spec='${libname}${shared_ext}'
11730 dynamic_linker="$host_os ld.so"
11731 shlibpath_var=LIBRARY_PATH
11732 ;;
11733  
11734 bsdi[45]*)
11735 version_type=linux
11736 need_version=no
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11742 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11743 # the default ld.so.conf also contains /usr/contrib/lib and
11744 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11745 # libtool to hard-code these into programs
11746 ;;
11747  
11748 cygwin* | mingw* | pw32* | cegcc*)
11749 version_type=windows
11750 shrext_cmds=".dll"
11751 need_version=no
11752 need_lib_prefix=no
11753  
11754 case $GCC,$cc_basename in
11755 yes,*)
11756 # gcc
11757 library_names_spec='$libname.dll.a'
11758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11759 postinstall_cmds='base_file=`basename \${file}`~
11760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11761 dldir=$destdir/`dirname \$dlpath`~
11762 test -d \$dldir || mkdir -p \$dldir~
11763 $install_prog $dir/$dlname \$dldir/$dlname~
11764 chmod a+x \$dldir/$dlname~
11765 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11766 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11767 fi'
11768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11769 dlpath=$dir/\$dldll~
11770 $RM \$dlpath'
11771 shlibpath_overrides_runpath=yes
11772  
11773 case $host_os in
11774 cygwin*)
11775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11777  
11778 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11779 ;;
11780 mingw* | cegcc*)
11781 # MinGW DLLs use traditional 'lib' prefix
11782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11783 ;;
11784 pw32*)
11785 # pw32 DLLs use 'pw' prefix rather than 'lib'
11786 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11787 ;;
11788 esac
11789 dynamic_linker='Win32 ld.exe'
11790 ;;
11791  
11792 *,cl*)
11793 # Native MSVC
11794 libname_spec='$name'
11795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11796 library_names_spec='${libname}.dll.lib'
11797  
11798 case $build_os in
11799 mingw*)
11800 sys_lib_search_path_spec=
11801 lt_save_ifs=$IFS
11802 IFS=';'
11803 for lt_path in $LIB
11804 do
11805 IFS=$lt_save_ifs
11806 # Let DOS variable expansion print the short 8.3 style file name.
11807 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11808 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11809 done
11810 IFS=$lt_save_ifs
11811 # Convert to MSYS style.
11812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11813 ;;
11814 cygwin*)
11815 # Convert to unix form, then to dos form, then back to unix form
11816 # but this time dos style (no spaces!) so that the unix form looks
11817 # like /cygdrive/c/PROGRA~1:/cygdr...
11818 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11819 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11820 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11821 ;;
11822 *)
11823 sys_lib_search_path_spec="$LIB"
11824 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11825 # It is most probably a Windows format PATH.
11826 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11827 else
11828 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11829 fi
11830 # FIXME: find the short name or the path components, as spaces are
11831 # common. (e.g. "Program Files" -> "PROGRA~1")
11832 ;;
11833 esac
11834  
11835 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11836 postinstall_cmds='base_file=`basename \${file}`~
11837 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11838 dldir=$destdir/`dirname \$dlpath`~
11839 test -d \$dldir || mkdir -p \$dldir~
11840 $install_prog $dir/$dlname \$dldir/$dlname'
11841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11842 dlpath=$dir/\$dldll~
11843 $RM \$dlpath'
11844 shlibpath_overrides_runpath=yes
11845 dynamic_linker='Win32 link.exe'
11846 ;;
11847  
11848 *)
11849 # Assume MSVC wrapper
11850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11851 dynamic_linker='Win32 ld.exe'
11852 ;;
11853 esac
11854 # FIXME: first we should search . and the directory the executable is in
11855 shlibpath_var=PATH
11856 ;;
11857  
11858 darwin* | rhapsody*)
11859 dynamic_linker="$host_os dyld"
11860 version_type=darwin
11861 need_lib_prefix=no
11862 need_version=no
11863 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11864 soname_spec='${libname}${release}${major}$shared_ext'
11865 shlibpath_overrides_runpath=yes
11866 shlibpath_var=DYLD_LIBRARY_PATH
11867 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11868  
11869 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11871 ;;
11872  
11873 dgux*)
11874 version_type=linux
11875 need_lib_prefix=no
11876 need_version=no
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 ;;
11881  
11882 freebsd1*)
11883 dynamic_linker=no
11884 ;;
11885  
11886 freebsd* | dragonfly*)
11887 # DragonFly does not have aout. When/if they implement a new
11888 # versioning mechanism, adjust this.
11889 if test -x /usr/bin/objformat; then
11890 objformat=`/usr/bin/objformat`
11891 else
11892 case $host_os in
11893 freebsd[123]*) objformat=aout ;;
11894 *) objformat=elf ;;
11895 esac
11896 fi
11897 version_type=freebsd-$objformat
11898 case $version_type in
11899 freebsd-elf*)
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11901 need_version=no
11902 need_lib_prefix=no
11903 ;;
11904 freebsd-*)
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11906 need_version=yes
11907 ;;
11908 esac
11909 shlibpath_var=LD_LIBRARY_PATH
11910 case $host_os in
11911 freebsd2*)
11912 shlibpath_overrides_runpath=yes
11913 ;;
11914 freebsd3.[01]* | freebsdelf3.[01]*)
11915 shlibpath_overrides_runpath=yes
11916 hardcode_into_libs=yes
11917 ;;
11918 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11919 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11920 shlibpath_overrides_runpath=no
11921 hardcode_into_libs=yes
11922 ;;
11923 *) # from 4.6 on, and DragonFly
11924 shlibpath_overrides_runpath=yes
11925 hardcode_into_libs=yes
11926 ;;
11927 esac
11928 ;;
11929  
11930 gnu*)
11931 version_type=linux
11932 need_lib_prefix=no
11933 need_version=no
11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11935 soname_spec='${libname}${release}${shared_ext}$major'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 shlibpath_overrides_runpath=no
11938 hardcode_into_libs=yes
11939 ;;
11940  
11941 haiku*)
11942 version_type=linux
11943 need_lib_prefix=no
11944 need_version=no
11945 dynamic_linker="$host_os runtime_loader"
11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11947 soname_spec='${libname}${release}${shared_ext}$major'
11948 shlibpath_var=LIBRARY_PATH
11949 shlibpath_overrides_runpath=yes
11950 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11951 hardcode_into_libs=yes
11952 ;;
11953  
11954 hpux9* | hpux10* | hpux11*)
11955 # Give a soname corresponding to the major version so that dld.sl refuses to
11956 # link against other versions.
11957 version_type=sunos
11958 need_lib_prefix=no
11959 need_version=no
11960 case $host_cpu in
11961 ia64*)
11962 shrext_cmds='.so'
11963 hardcode_into_libs=yes
11964 dynamic_linker="$host_os dld.so"
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11968 soname_spec='${libname}${release}${shared_ext}$major'
11969 if test "X$HPUX_IA64_MODE" = X32; then
11970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11971 else
11972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11973 fi
11974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11975 ;;
11976 hppa*64*)
11977 shrext_cmds='.sl'
11978 hardcode_into_libs=yes
11979 dynamic_linker="$host_os dld.sl"
11980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983 soname_spec='${libname}${release}${shared_ext}$major'
11984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11986 ;;
11987 *)
11988 shrext_cmds='.sl'
11989 dynamic_linker="$host_os dld.sl"
11990 shlibpath_var=SHLIB_PATH
11991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11993 soname_spec='${libname}${release}${shared_ext}$major'
11994 ;;
11995 esac
11996 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11997 postinstall_cmds='chmod 555 $lib'
11998 # or fails outright, so override atomically:
11999 install_override_mode=555
12000 ;;
12001  
12002 interix[3-9]*)
12003 version_type=linux
12004 need_lib_prefix=no
12005 need_version=no
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12009 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=no
12011 hardcode_into_libs=yes
12012 ;;
12013  
12014 irix5* | irix6* | nonstopux*)
12015 case $host_os in
12016 nonstopux*) version_type=nonstopux ;;
12017 *)
12018 if test "$lt_cv_prog_gnu_ld" = yes; then
12019 version_type=linux
12020 else
12021 version_type=irix
12022 fi ;;
12023 esac
12024 need_lib_prefix=no
12025 need_version=no
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12028 case $host_os in
12029 irix5* | nonstopux*)
12030 libsuff= shlibsuff=
12031 ;;
12032 *)
12033 case $LD in # libtool.m4 will add one of these switches to LD
12034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12035 libsuff= shlibsuff= libmagic=32-bit;;
12036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12037 libsuff=32 shlibsuff=N32 libmagic=N32;;
12038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12040 *) libsuff= shlibsuff= libmagic=never-match;;
12041 esac
12042 ;;
12043 esac
12044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12045 shlibpath_overrides_runpath=no
12046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12048 hardcode_into_libs=yes
12049 ;;
12050  
12051 # No shared lib support for Linux oldld, aout, or coff.
12052 linux*oldld* | linux*aout* | linux*coff*)
12053 dynamic_linker=no
12054 ;;
12055  
12056 # This must be Linux ELF.
12057 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12058 version_type=linux
12059 need_lib_prefix=no
12060 need_version=no
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12064 shlibpath_var=LD_LIBRARY_PATH
12065 shlibpath_overrides_runpath=no
12066  
12067 # Some binutils ld are patched to set DT_RUNPATH
12068 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 lt_cv_shlibpath_overrides_runpath=no
12072 save_LDFLAGS=$LDFLAGS
12073 save_libdir=$libdir
12074 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12075 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078  
12079 int
12080 main ()
12081 {
12082  
12083 ;
12084 return 0;
12085 }
12086 _ACEOF
12087 if ac_fn_c_try_link "$LINENO"; then :
12088 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12089 lt_cv_shlibpath_overrides_runpath=yes
12090 fi
12091 fi
12092 rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
12094 LDFLAGS=$save_LDFLAGS
12095 libdir=$save_libdir
12096  
12097 fi
12098  
12099 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12100  
12101 # This implies no fast_install, which is unacceptable.
12102 # Some rework will be needed to allow for fast_install
12103 # before this can be enabled.
12104 hardcode_into_libs=yes
12105  
12106 # Append ld.so.conf contents to the search path
12107 if test -f /etc/ld.so.conf; then
12108 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' ' '`
12109 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12110 fi
12111  
12112 # We used to test for /lib/ld.so.1 and disable shared libraries on
12113 # powerpc, because MkLinux only supported shared libraries with the
12114 # GNU dynamic linker. Since this was broken with cross compilers,
12115 # most powerpc-linux boxes support dynamic linking these days and
12116 # people can always --disable-shared, the test was removed, and we
12117 # assume the GNU/Linux dynamic linker is in use.
12118 dynamic_linker='GNU/Linux ld.so'
12119 ;;
12120  
12121 netbsdelf*-gnu)
12122 version_type=linux
12123 need_lib_prefix=no
12124 need_version=no
12125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12126 soname_spec='${libname}${release}${shared_ext}$major'
12127 shlibpath_var=LD_LIBRARY_PATH
12128 shlibpath_overrides_runpath=no
12129 hardcode_into_libs=yes
12130 dynamic_linker='NetBSD ld.elf_so'
12131 ;;
12132  
12133 netbsd*)
12134 version_type=sunos
12135 need_lib_prefix=no
12136 need_version=no
12137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12140 dynamic_linker='NetBSD (a.out) ld.so'
12141 else
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12143 soname_spec='${libname}${release}${shared_ext}$major'
12144 dynamic_linker='NetBSD ld.elf_so'
12145 fi
12146 shlibpath_var=LD_LIBRARY_PATH
12147 shlibpath_overrides_runpath=yes
12148 hardcode_into_libs=yes
12149 ;;
12150  
12151 newsos6)
12152 version_type=linux
12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=yes
12156 ;;
12157  
12158 *nto* | *qnx*)
12159 version_type=qnx
12160 need_lib_prefix=no
12161 need_version=no
12162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12163 soname_spec='${libname}${release}${shared_ext}$major'
12164 shlibpath_var=LD_LIBRARY_PATH
12165 shlibpath_overrides_runpath=no
12166 hardcode_into_libs=yes
12167 dynamic_linker='ldqnx.so'
12168 ;;
12169  
12170 openbsd*)
12171 version_type=sunos
12172 sys_lib_dlsearch_path_spec="/usr/lib"
12173 need_lib_prefix=no
12174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12175 case $host_os in
12176 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12177 *) need_version=no ;;
12178 esac
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12181 shlibpath_var=LD_LIBRARY_PATH
12182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12183 case $host_os in
12184 openbsd2.[89] | openbsd2.[89].*)
12185 shlibpath_overrides_runpath=no
12186 ;;
12187 *)
12188 shlibpath_overrides_runpath=yes
12189 ;;
12190 esac
12191 else
12192 shlibpath_overrides_runpath=yes
12193 fi
12194 ;;
12195  
12196 os2*)
12197 libname_spec='$name'
12198 shrext_cmds=".dll"
12199 need_lib_prefix=no
12200 library_names_spec='$libname${shared_ext} $libname.a'
12201 dynamic_linker='OS/2 ld.exe'
12202 shlibpath_var=LIBPATH
12203 ;;
12204  
12205 osf3* | osf4* | osf5*)
12206 version_type=osf
12207 need_lib_prefix=no
12208 need_version=no
12209 soname_spec='${libname}${release}${shared_ext}$major'
12210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12213 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12214 ;;
12215  
12216 rdos*)
12217 dynamic_linker=no
12218 ;;
12219  
12220 solaris*)
12221 version_type=linux
12222 need_lib_prefix=no
12223 need_version=no
12224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12225 soname_spec='${libname}${release}${shared_ext}$major'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=yes
12228 hardcode_into_libs=yes
12229 # ldd complains unless libraries are executable
12230 postinstall_cmds='chmod +x $lib'
12231 ;;
12232  
12233 sunos4*)
12234 version_type=sunos
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 if test "$with_gnu_ld" = yes; then
12240 need_lib_prefix=no
12241 fi
12242 need_version=yes
12243 ;;
12244  
12245 sysv4 | sysv4.3*)
12246 version_type=linux
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12248 soname_spec='${libname}${release}${shared_ext}$major'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 case $host_vendor in
12251 sni)
12252 shlibpath_overrides_runpath=no
12253 need_lib_prefix=no
12254 runpath_var=LD_RUN_PATH
12255 ;;
12256 siemens)
12257 need_lib_prefix=no
12258 ;;
12259 motorola)
12260 need_lib_prefix=no
12261 need_version=no
12262 shlibpath_overrides_runpath=no
12263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12264 ;;
12265 esac
12266 ;;
12267  
12268 sysv4*MP*)
12269 if test -d /usr/nec ;then
12270 version_type=linux
12271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12272 soname_spec='$libname${shared_ext}.$major'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 fi
12275 ;;
12276  
12277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12278 version_type=freebsd-elf
12279 need_lib_prefix=no
12280 need_version=no
12281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12282 soname_spec='${libname}${release}${shared_ext}$major'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=yes
12285 hardcode_into_libs=yes
12286 if test "$with_gnu_ld" = yes; then
12287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12288 else
12289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12290 case $host_os in
12291 sco3.2v5*)
12292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12293 ;;
12294 esac
12295 fi
12296 sys_lib_dlsearch_path_spec='/usr/lib'
12297 ;;
12298  
12299 tpf*)
12300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12301 version_type=linux
12302 need_lib_prefix=no
12303 need_version=no
12304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=no
12307 hardcode_into_libs=yes
12308 ;;
12309  
12310 uts4*)
12311 version_type=linux
12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12313 soname_spec='${libname}${release}${shared_ext}$major'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 ;;
12316  
12317 *)
12318 dynamic_linker=no
12319 ;;
12320 esac
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12322 $as_echo "$dynamic_linker" >&6; }
12323 test "$dynamic_linker" = no && can_build_shared=no
12324  
12325 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12326 if test "$GCC" = yes; then
12327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12328 fi
12329  
12330 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12331 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12332 fi
12333 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12334 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12335 fi
12336  
12337  
12338  
12339  
12340  
12341  
12342  
12343  
12344  
12345  
12346  
12347  
12348  
12349  
12350  
12351  
12352  
12353  
12354  
12355  
12356  
12357  
12358  
12359  
12360  
12361  
12362  
12363  
12364  
12365  
12366  
12367  
12368  
12369  
12370  
12371  
12372  
12373  
12374  
12375  
12376  
12377  
12378  
12379  
12380  
12381  
12382  
12383  
12384  
12385  
12386  
12387  
12388  
12389  
12390  
12391  
12392  
12393  
12394  
12395  
12396  
12397  
12398  
12399  
12400  
12401  
12402  
12403  
12404  
12405  
12406  
12407  
12408  
12409  
12410  
12411  
12412  
12413  
12414  
12415  
12416  
12417  
12418  
12419  
12420  
12421  
12422  
12423  
12424  
12425  
12426  
12427  
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12429 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12430 hardcode_action=
12431 if test -n "$hardcode_libdir_flag_spec" ||
12432 test -n "$runpath_var" ||
12433 test "X$hardcode_automatic" = "Xyes" ; then
12434  
12435 # We can hardcode non-existent directories.
12436 if test "$hardcode_direct" != no &&
12437 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12438 # have to relink, otherwise we might link with an installed library
12439 # when we should be linking with a yet-to-be-installed one
12440 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12441 test "$hardcode_minus_L" != no; then
12442 # Linking always hardcodes the temporary library directory.
12443 hardcode_action=relink
12444 else
12445 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12446 hardcode_action=immediate
12447 fi
12448 else
12449 # We cannot hardcode anything, or else we can only hardcode existing
12450 # directories.
12451 hardcode_action=unsupported
12452 fi
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12454 $as_echo "$hardcode_action" >&6; }
12455  
12456 if test "$hardcode_action" = relink ||
12457 test "$inherit_rpath" = yes; then
12458 # Fast installation is not supported
12459 enable_fast_install=no
12460 elif test "$shlibpath_overrides_runpath" = yes ||
12461 test "$enable_shared" = no; then
12462 # Fast installation is not necessary
12463 enable_fast_install=needless
12464 fi
12465  
12466  
12467  
12468  
12469  
12470  
12471 if test "x$enable_dlopen" != xyes; then
12472 enable_dlopen=unknown
12473 enable_dlopen_self=unknown
12474 enable_dlopen_self_static=unknown
12475 else
12476 lt_cv_dlopen=no
12477 lt_cv_dlopen_libs=
12478  
12479 case $host_os in
12480 beos*)
12481 lt_cv_dlopen="load_add_on"
12482 lt_cv_dlopen_libs=
12483 lt_cv_dlopen_self=yes
12484 ;;
12485  
12486 mingw* | pw32* | cegcc*)
12487 lt_cv_dlopen="LoadLibrary"
12488 lt_cv_dlopen_libs=
12489 ;;
12490  
12491 cygwin*)
12492 lt_cv_dlopen="dlopen"
12493 lt_cv_dlopen_libs=
12494 ;;
12495  
12496 darwin*)
12497 # if libdl is installed we need to link against it
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12500 if ${ac_cv_lib_dl_dlopen+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-ldl $LIBS"
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507  
12508 /* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12511 #ifdef __cplusplus
12512 extern "C"
12513 #endif
12514 char dlopen ();
12515 int
12516 main ()
12517 {
12518 return dlopen ();
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 if ac_fn_c_try_link "$LINENO"; then :
12524 ac_cv_lib_dl_dlopen=yes
12525 else
12526 ac_cv_lib_dl_dlopen=no
12527 fi
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 LIBS=$ac_check_lib_save_LIBS
12531 fi
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12533 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12534 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12536 else
12537  
12538 lt_cv_dlopen="dyld"
12539 lt_cv_dlopen_libs=
12540 lt_cv_dlopen_self=yes
12541  
12542 fi
12543  
12544 ;;
12545  
12546 *)
12547 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12548 if test "x$ac_cv_func_shl_load" = xyes; then :
12549 lt_cv_dlopen="shl_load"
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12552 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12553 if ${ac_cv_lib_dld_shl_load+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 ac_check_lib_save_LIBS=$LIBS
12557 LIBS="-ldld $LIBS"
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560  
12561 /* Override any GCC internal prototype to avoid an error.
12562 Use char because int might match the return type of a GCC
12563 builtin and then its argument prototype would still apply. */
12564 #ifdef __cplusplus
12565 extern "C"
12566 #endif
12567 char shl_load ();
12568 int
12569 main ()
12570 {
12571 return shl_load ();
12572 ;
12573 return 0;
12574 }
12575 _ACEOF
12576 if ac_fn_c_try_link "$LINENO"; then :
12577 ac_cv_lib_dld_shl_load=yes
12578 else
12579 ac_cv_lib_dld_shl_load=no
12580 fi
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12583 LIBS=$ac_check_lib_save_LIBS
12584 fi
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12586 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12587 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12588 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12589 else
12590 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12591 if test "x$ac_cv_func_dlopen" = xyes; then :
12592 lt_cv_dlopen="dlopen"
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12595 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12596 if ${ac_cv_lib_dl_dlopen+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-ldl $LIBS"
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603  
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char dlopen ();
12611 int
12612 main ()
12613 {
12614 return dlopen ();
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_c_try_link "$LINENO"; then :
12620 ac_cv_lib_dl_dlopen=yes
12621 else
12622 ac_cv_lib_dl_dlopen=no
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12629 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12630 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12634 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12635 if ${ac_cv_lib_svld_dlopen+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 ac_check_lib_save_LIBS=$LIBS
12639 LIBS="-lsvld $LIBS"
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642  
12643 /* Override any GCC internal prototype to avoid an error.
12644 Use char because int might match the return type of a GCC
12645 builtin and then its argument prototype would still apply. */
12646 #ifdef __cplusplus
12647 extern "C"
12648 #endif
12649 char dlopen ();
12650 int
12651 main ()
12652 {
12653 return dlopen ();
12654 ;
12655 return 0;
12656 }
12657 _ACEOF
12658 if ac_fn_c_try_link "$LINENO"; then :
12659 ac_cv_lib_svld_dlopen=yes
12660 else
12661 ac_cv_lib_svld_dlopen=no
12662 fi
12663 rm -f core conftest.err conftest.$ac_objext \
12664 conftest$ac_exeext conftest.$ac_ext
12665 LIBS=$ac_check_lib_save_LIBS
12666 fi
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12668 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12669 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12673 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12674 if ${ac_cv_lib_dld_dld_link+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-ldld $LIBS"
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681  
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char dld_link ();
12689 int
12690 main ()
12691 {
12692 return dld_link ();
12693 ;
12694 return 0;
12695 }
12696 _ACEOF
12697 if ac_fn_c_try_link "$LINENO"; then :
12698 ac_cv_lib_dld_dld_link=yes
12699 else
12700 ac_cv_lib_dld_dld_link=no
12701 fi
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704 LIBS=$ac_check_lib_save_LIBS
12705 fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12707 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12708 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12709 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12710 fi
12711  
12712  
12713 fi
12714  
12715  
12716 fi
12717  
12718  
12719 fi
12720  
12721  
12722 fi
12723  
12724  
12725 fi
12726  
12727 ;;
12728 esac
12729  
12730 if test "x$lt_cv_dlopen" != xno; then
12731 enable_dlopen=yes
12732 else
12733 enable_dlopen=no
12734 fi
12735  
12736 case $lt_cv_dlopen in
12737 dlopen)
12738 save_CPPFLAGS="$CPPFLAGS"
12739 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12740  
12741 save_LDFLAGS="$LDFLAGS"
12742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12743  
12744 save_LIBS="$LIBS"
12745 LIBS="$lt_cv_dlopen_libs $LIBS"
12746  
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12748 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12749 if ${lt_cv_dlopen_self+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 if test "$cross_compiling" = yes; then :
12753 lt_cv_dlopen_self=cross
12754 else
12755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12756 lt_status=$lt_dlunknown
12757 cat > conftest.$ac_ext <<_LT_EOF
12758 #line $LINENO "configure"
12759 #include "confdefs.h"
12760  
12761 #if HAVE_DLFCN_H
12762 #include <dlfcn.h>
12763 #endif
12764  
12765 #include <stdio.h>
12766  
12767 #ifdef RTLD_GLOBAL
12768 # define LT_DLGLOBAL RTLD_GLOBAL
12769 #else
12770 # ifdef DL_GLOBAL
12771 # define LT_DLGLOBAL DL_GLOBAL
12772 # else
12773 # define LT_DLGLOBAL 0
12774 # endif
12775 #endif
12776  
12777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12778 find out it does not work in some platform. */
12779 #ifndef LT_DLLAZY_OR_NOW
12780 # ifdef RTLD_LAZY
12781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12782 # else
12783 # ifdef DL_LAZY
12784 # define LT_DLLAZY_OR_NOW DL_LAZY
12785 # else
12786 # ifdef RTLD_NOW
12787 # define LT_DLLAZY_OR_NOW RTLD_NOW
12788 # else
12789 # ifdef DL_NOW
12790 # define LT_DLLAZY_OR_NOW DL_NOW
12791 # else
12792 # define LT_DLLAZY_OR_NOW 0
12793 # endif
12794 # endif
12795 # endif
12796 # endif
12797 #endif
12798  
12799 /* When -fvisbility=hidden is used, assume the code has been annotated
12800 correspondingly for the symbols needed. */
12801 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12802 int fnord () __attribute__((visibility("default")));
12803 #endif
12804  
12805 int fnord () { return 42; }
12806 int main ()
12807 {
12808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12809 int status = $lt_dlunknown;
12810  
12811 if (self)
12812 {
12813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12814 else
12815 {
12816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12817 else puts (dlerror ());
12818 }
12819 /* dlclose (self); */
12820 }
12821 else
12822 puts (dlerror ());
12823  
12824 return status;
12825 }
12826 _LT_EOF
12827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12828 (eval $ac_link) 2>&5
12829 ac_status=$?
12830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12832 (./conftest; exit; ) >&5 2>/dev/null
12833 lt_status=$?
12834 case x$lt_status in
12835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12838 esac
12839 else :
12840 # compilation failed
12841 lt_cv_dlopen_self=no
12842 fi
12843 fi
12844 rm -fr conftest*
12845  
12846  
12847 fi
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12849 $as_echo "$lt_cv_dlopen_self" >&6; }
12850  
12851 if test "x$lt_cv_dlopen_self" = xyes; then
12852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12854 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12855 if ${lt_cv_dlopen_self_static+:} false; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 if test "$cross_compiling" = yes; then :
12859 lt_cv_dlopen_self_static=cross
12860 else
12861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12862 lt_status=$lt_dlunknown
12863 cat > conftest.$ac_ext <<_LT_EOF
12864 #line $LINENO "configure"
12865 #include "confdefs.h"
12866  
12867 #if HAVE_DLFCN_H
12868 #include <dlfcn.h>
12869 #endif
12870  
12871 #include <stdio.h>
12872  
12873 #ifdef RTLD_GLOBAL
12874 # define LT_DLGLOBAL RTLD_GLOBAL
12875 #else
12876 # ifdef DL_GLOBAL
12877 # define LT_DLGLOBAL DL_GLOBAL
12878 # else
12879 # define LT_DLGLOBAL 0
12880 # endif
12881 #endif
12882  
12883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12884 find out it does not work in some platform. */
12885 #ifndef LT_DLLAZY_OR_NOW
12886 # ifdef RTLD_LAZY
12887 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12888 # else
12889 # ifdef DL_LAZY
12890 # define LT_DLLAZY_OR_NOW DL_LAZY
12891 # else
12892 # ifdef RTLD_NOW
12893 # define LT_DLLAZY_OR_NOW RTLD_NOW
12894 # else
12895 # ifdef DL_NOW
12896 # define LT_DLLAZY_OR_NOW DL_NOW
12897 # else
12898 # define LT_DLLAZY_OR_NOW 0
12899 # endif
12900 # endif
12901 # endif
12902 # endif
12903 #endif
12904  
12905 /* When -fvisbility=hidden is used, assume the code has been annotated
12906 correspondingly for the symbols needed. */
12907 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12908 int fnord () __attribute__((visibility("default")));
12909 #endif
12910  
12911 int fnord () { return 42; }
12912 int main ()
12913 {
12914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12915 int status = $lt_dlunknown;
12916  
12917 if (self)
12918 {
12919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12920 else
12921 {
12922 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12923 else puts (dlerror ());
12924 }
12925 /* dlclose (self); */
12926 }
12927 else
12928 puts (dlerror ());
12929  
12930 return status;
12931 }
12932 _LT_EOF
12933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12934 (eval $ac_link) 2>&5
12935 ac_status=$?
12936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12937 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12938 (./conftest; exit; ) >&5 2>/dev/null
12939 lt_status=$?
12940 case x$lt_status in
12941 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12942 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12943 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12944 esac
12945 else :
12946 # compilation failed
12947 lt_cv_dlopen_self_static=no
12948 fi
12949 fi
12950 rm -fr conftest*
12951  
12952  
12953 fi
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12955 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12956 fi
12957  
12958 CPPFLAGS="$save_CPPFLAGS"
12959 LDFLAGS="$save_LDFLAGS"
12960 LIBS="$save_LIBS"
12961 ;;
12962 esac
12963  
12964 case $lt_cv_dlopen_self in
12965 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12966 *) enable_dlopen_self=unknown ;;
12967 esac
12968  
12969 case $lt_cv_dlopen_self_static in
12970 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12971 *) enable_dlopen_self_static=unknown ;;
12972 esac
12973 fi
12974  
12975  
12976  
12977  
12978  
12979  
12980  
12981  
12982  
12983  
12984  
12985  
12986  
12987  
12988  
12989  
12990  
12991 striplib=
12992 old_striplib=
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12994 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12995 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12996 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12997 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12999 $as_echo "yes" >&6; }
13000 else
13001 # FIXME - insert some real tests, host_os isn't really good enough
13002 case $host_os in
13003 darwin*)
13004 if test -n "$STRIP" ; then
13005 striplib="$STRIP -x"
13006 old_striplib="$STRIP -S"
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 $as_echo "yes" >&6; }
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013 ;;
13014 *)
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13017 ;;
13018 esac
13019 fi
13020  
13021  
13022  
13023  
13024  
13025  
13026  
13027  
13028  
13029  
13030  
13031  
13032 # Report which library types will actually be built
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13034 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13036 $as_echo "$can_build_shared" >&6; }
13037  
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13039 $as_echo_n "checking whether to build shared libraries... " >&6; }
13040 test "$can_build_shared" = "no" && enable_shared=no
13041  
13042 # On AIX, shared libraries and static libraries use the same namespace, and
13043 # are all built from PIC.
13044 case $host_os in
13045 aix3*)
13046 test "$enable_shared" = yes && enable_static=no
13047 if test -n "$RANLIB"; then
13048 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13049 postinstall_cmds='$RANLIB $lib'
13050 fi
13051 ;;
13052  
13053 aix[4-9]*)
13054 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13055 test "$enable_shared" = yes && enable_static=no
13056 fi
13057 ;;
13058 esac
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13060 $as_echo "$enable_shared" >&6; }
13061  
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13063 $as_echo_n "checking whether to build static libraries... " >&6; }
13064 # Make sure either enable_shared or enable_static is yes.
13065 test "$enable_shared" = yes || enable_static=yes
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13067 $as_echo "$enable_static" >&6; }
13068  
13069  
13070  
13071  
13072 fi
13073 ac_ext=c
13074 ac_cpp='$CPP $CPPFLAGS'
13075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13078  
13079 CC="$lt_save_CC"
13080  
13081 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13082 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13083 (test "X$CXX" != "Xg++"))) ; then
13084 ac_ext=cpp
13085 ac_cpp='$CXXCPP $CPPFLAGS'
13086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13090 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13091 if test -z "$CXXCPP"; then
13092 if ${ac_cv_prog_CXXCPP+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 # Double quotes because CXXCPP needs to be expanded
13096 for CXXCPP in "$CXX -E" "/lib/cpp"
13097 do
13098 ac_preproc_ok=false
13099 for ac_cxx_preproc_warn_flag in '' yes
13100 do
13101 # Use a header file that comes with gcc, so configuring glibc
13102 # with a fresh cross-compiler works.
13103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13104 # <limits.h> exists even on freestanding compilers.
13105 # On the NeXT, cc -E runs the code through the compiler's parser,
13106 # not just through cpp. "Syntax error" is here to catch this case.
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109 #ifdef __STDC__
13110 # include <limits.h>
13111 #else
13112 # include <assert.h>
13113 #endif
13114 Syntax error
13115 _ACEOF
13116 if ac_fn_cxx_try_cpp "$LINENO"; then :
13117  
13118 else
13119 # Broken: fails on valid input.
13120 continue
13121 fi
13122 rm -f conftest.err conftest.i conftest.$ac_ext
13123  
13124 # OK, works on sane cases. Now check whether nonexistent headers
13125 # can be detected and how.
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 #include <ac_nonexistent.h>
13129 _ACEOF
13130 if ac_fn_cxx_try_cpp "$LINENO"; then :
13131 # Broken: success on invalid input.
13132 continue
13133 else
13134 # Passes both tests.
13135 ac_preproc_ok=:
13136 break
13137 fi
13138 rm -f conftest.err conftest.i conftest.$ac_ext
13139  
13140 done
13141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13142 rm -f conftest.i conftest.err conftest.$ac_ext
13143 if $ac_preproc_ok; then :
13144 break
13145 fi
13146  
13147 done
13148 ac_cv_prog_CXXCPP=$CXXCPP
13149  
13150 fi
13151 CXXCPP=$ac_cv_prog_CXXCPP
13152 else
13153 ac_cv_prog_CXXCPP=$CXXCPP
13154 fi
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13156 $as_echo "$CXXCPP" >&6; }
13157 ac_preproc_ok=false
13158 for ac_cxx_preproc_warn_flag in '' yes
13159 do
13160 # Use a header file that comes with gcc, so configuring glibc
13161 # with a fresh cross-compiler works.
13162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13163 # <limits.h> exists even on freestanding compilers.
13164 # On the NeXT, cc -E runs the code through the compiler's parser,
13165 # not just through cpp. "Syntax error" is here to catch this case.
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168 #ifdef __STDC__
13169 # include <limits.h>
13170 #else
13171 # include <assert.h>
13172 #endif
13173 Syntax error
13174 _ACEOF
13175 if ac_fn_cxx_try_cpp "$LINENO"; then :
13176  
13177 else
13178 # Broken: fails on valid input.
13179 continue
13180 fi
13181 rm -f conftest.err conftest.i conftest.$ac_ext
13182  
13183 # OK, works on sane cases. Now check whether nonexistent headers
13184 # can be detected and how.
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 #include <ac_nonexistent.h>
13188 _ACEOF
13189 if ac_fn_cxx_try_cpp "$LINENO"; then :
13190 # Broken: success on invalid input.
13191 continue
13192 else
13193 # Passes both tests.
13194 ac_preproc_ok=:
13195 break
13196 fi
13197 rm -f conftest.err conftest.i conftest.$ac_ext
13198  
13199 done
13200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13201 rm -f conftest.i conftest.err conftest.$ac_ext
13202 if $ac_preproc_ok; then :
13203  
13204 else
13205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13207 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13208 See \`config.log' for more details" "$LINENO" 5; }
13209 fi
13210  
13211 ac_ext=c
13212 ac_cpp='$CPP $CPPFLAGS'
13213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13216  
13217 else
13218 _lt_caught_CXX_error=yes
13219 fi
13220  
13221 ac_ext=cpp
13222 ac_cpp='$CXXCPP $CPPFLAGS'
13223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13226  
13227 archive_cmds_need_lc_CXX=no
13228 allow_undefined_flag_CXX=
13229 always_export_symbols_CXX=no
13230 archive_expsym_cmds_CXX=
13231 compiler_needs_object_CXX=no
13232 export_dynamic_flag_spec_CXX=
13233 hardcode_direct_CXX=no
13234 hardcode_direct_absolute_CXX=no
13235 hardcode_libdir_flag_spec_CXX=
13236 hardcode_libdir_flag_spec_ld_CXX=
13237 hardcode_libdir_separator_CXX=
13238 hardcode_minus_L_CXX=no
13239 hardcode_shlibpath_var_CXX=unsupported
13240 hardcode_automatic_CXX=no
13241 inherit_rpath_CXX=no
13242 module_cmds_CXX=
13243 module_expsym_cmds_CXX=
13244 link_all_deplibs_CXX=unknown
13245 old_archive_cmds_CXX=$old_archive_cmds
13246 reload_flag_CXX=$reload_flag
13247 reload_cmds_CXX=$reload_cmds
13248 no_undefined_flag_CXX=
13249 whole_archive_flag_spec_CXX=
13250 enable_shared_with_static_runtimes_CXX=no
13251  
13252 # Source file extension for C++ test sources.
13253 ac_ext=cpp
13254  
13255 # Object file extension for compiled C++ test sources.
13256 objext=o
13257 objext_CXX=$objext
13258  
13259 # No sense in running all these tests if we already determined that
13260 # the CXX compiler isn't working. Some variables (like enable_shared)
13261 # are currently assumed to apply to all compilers on this platform,
13262 # and will be corrupted by setting them based on a non-working compiler.
13263 if test "$_lt_caught_CXX_error" != yes; then
13264 # Code to be used in simple compile tests
13265 lt_simple_compile_test_code="int some_variable = 0;"
13266  
13267 # Code to be used in simple link tests
13268 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13269  
13270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13271  
13272  
13273  
13274  
13275  
13276  
13277 # If no C compiler was specified, use CC.
13278 LTCC=${LTCC-"$CC"}
13279  
13280 # If no C compiler flags were specified, use CFLAGS.
13281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13282  
13283 # Allow CC to be a program name with arguments.
13284 compiler=$CC
13285  
13286  
13287 # save warnings/boilerplate of simple test code
13288 ac_outfile=conftest.$ac_objext
13289 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13291 _lt_compiler_boilerplate=`cat conftest.err`
13292 $RM conftest*
13293  
13294 ac_outfile=conftest.$ac_objext
13295 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13297 _lt_linker_boilerplate=`cat conftest.err`
13298 $RM -r conftest*
13299  
13300  
13301 # Allow CC to be a program name with arguments.
13302 lt_save_CC=$CC
13303 lt_save_CFLAGS=$CFLAGS
13304 lt_save_LD=$LD
13305 lt_save_GCC=$GCC
13306 GCC=$GXX
13307 lt_save_with_gnu_ld=$with_gnu_ld
13308 lt_save_path_LD=$lt_cv_path_LD
13309 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13310 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13311 else
13312 $as_unset lt_cv_prog_gnu_ld
13313 fi
13314 if test -n "${lt_cv_path_LDCXX+set}"; then
13315 lt_cv_path_LD=$lt_cv_path_LDCXX
13316 else
13317 $as_unset lt_cv_path_LD
13318 fi
13319 test -z "${LDCXX+set}" || LD=$LDCXX
13320 CC=${CXX-"c++"}
13321 CFLAGS=$CXXFLAGS
13322 compiler=$CC
13323 compiler_CXX=$CC
13324 for cc_temp in $compiler""; do
13325 case $cc_temp in
13326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13328 \-*) ;;
13329 *) break;;
13330 esac
13331 done
13332 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13333  
13334  
13335 if test -n "$compiler"; then
13336 # We don't want -fno-exception when compiling C++ code, so set the
13337 # no_builtin_flag separately
13338 if test "$GXX" = yes; then
13339 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13340 else
13341 lt_prog_compiler_no_builtin_flag_CXX=
13342 fi
13343  
13344 if test "$GXX" = yes; then
13345 # Set up default GNU C++ configuration
13346  
13347  
13348  
13349 # Check whether --with-gnu-ld was given.
13350 if test "${with_gnu_ld+set}" = set; then :
13351 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13352 else
13353 with_gnu_ld=no
13354 fi
13355  
13356 ac_prog=ld
13357 if test "$GCC" = yes; then
13358 # Check if gcc -print-prog-name=ld gives a path.
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13360 $as_echo_n "checking for ld used by $CC... " >&6; }
13361 case $host in
13362 *-*-mingw*)
13363 # gcc leaves a trailing carriage return which upsets mingw
13364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13365 *)
13366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13367 esac
13368 case $ac_prog in
13369 # Accept absolute paths.
13370 [\\/]* | ?:[\\/]*)
13371 re_direlt='/[^/][^/]*/\.\./'
13372 # Canonicalize the pathname of ld
13373 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13374 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13375 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13376 done
13377 test -z "$LD" && LD="$ac_prog"
13378 ;;
13379 "")
13380 # If it fails, then pretend we aren't using GCC.
13381 ac_prog=ld
13382 ;;
13383 *)
13384 # If it is relative, then search for the first ld in PATH.
13385 with_gnu_ld=unknown
13386 ;;
13387 esac
13388 elif test "$with_gnu_ld" = yes; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13390 $as_echo_n "checking for GNU ld... " >&6; }
13391 else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13393 $as_echo_n "checking for non-GNU ld... " >&6; }
13394 fi
13395 if ${lt_cv_path_LD+:} false; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 if test -z "$LD"; then
13399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13400 for ac_dir in $PATH; do
13401 IFS="$lt_save_ifs"
13402 test -z "$ac_dir" && ac_dir=.
13403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13404 lt_cv_path_LD="$ac_dir/$ac_prog"
13405 # Check to see if the program is GNU ld. I'd rather use --version,
13406 # but apparently some variants of GNU ld only accept -v.
13407 # Break only if it was the GNU/non-GNU ld that we prefer.
13408 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13409 *GNU* | *'with BFD'*)
13410 test "$with_gnu_ld" != no && break
13411 ;;
13412 *)
13413 test "$with_gnu_ld" != yes && break
13414 ;;
13415 esac
13416 fi
13417 done
13418 IFS="$lt_save_ifs"
13419 else
13420 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13421 fi
13422 fi
13423  
13424 LD="$lt_cv_path_LD"
13425 if test -n "$LD"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13427 $as_echo "$LD" >&6; }
13428 else
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13435 if ${lt_cv_prog_gnu_ld+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13439 case `$LD -v 2>&1 </dev/null` in
13440 *GNU* | *'with BFD'*)
13441 lt_cv_prog_gnu_ld=yes
13442 ;;
13443 *)
13444 lt_cv_prog_gnu_ld=no
13445 ;;
13446 esac
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13450 with_gnu_ld=$lt_cv_prog_gnu_ld
13451  
13452  
13453  
13454  
13455  
13456  
13457  
13458 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13459 # archiving commands below assume that GNU ld is being used.
13460 if test "$with_gnu_ld" = yes; then
13461 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13462 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'
13463  
13464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13466  
13467 # If archive_cmds runs LD, not CC, wlarc should be empty
13468 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13469 # investigate it a little bit more. (MM)
13470 wlarc='${wl}'
13471  
13472 # ancient GNU ld didn't support --whole-archive et. al.
13473 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13474 $GREP 'no-whole-archive' > /dev/null; then
13475 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13476 else
13477 whole_archive_flag_spec_CXX=
13478 fi
13479 else
13480 with_gnu_ld=no
13481 wlarc=
13482  
13483 # A generic and very simple default shared library creation
13484 # command for GNU C++ for the case where it uses the native
13485 # linker, instead of GNU ld. If possible, this setting should
13486 # overridden to take advantage of the native linker features on
13487 # the platform it is being used on.
13488 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13489 fi
13490  
13491 # Commands to make compiler produce verbose output that lists
13492 # what "hidden" libraries, object files and flags are used when
13493 # linking a shared library.
13494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13495  
13496 else
13497 GXX=no
13498 with_gnu_ld=no
13499 wlarc=
13500 fi
13501  
13502 # PORTME: fill in a description of your system's C++ link characteristics
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13504 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13505 ld_shlibs_CXX=yes
13506 case $host_os in
13507 aix3*)
13508 # FIXME: insert proper C++ library support
13509 ld_shlibs_CXX=no
13510 ;;
13511 aix[4-9]*)
13512 if test "$host_cpu" = ia64; then
13513 # On IA64, the linker does run time linking by default, so we don't
13514 # have to do anything special.
13515 aix_use_runtimelinking=no
13516 exp_sym_flag='-Bexport'
13517 no_entry_flag=""
13518 else
13519 aix_use_runtimelinking=no
13520  
13521 # Test if we are trying to use run time linking or normal
13522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13523 # need to do runtime linking.
13524 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13525 for ld_flag in $LDFLAGS; do
13526 case $ld_flag in
13527 *-brtl*)
13528 aix_use_runtimelinking=yes
13529 break
13530 ;;
13531 esac
13532 done
13533 ;;
13534 esac
13535  
13536 exp_sym_flag='-bexport'
13537 no_entry_flag='-bnoentry'
13538 fi
13539  
13540 # When large executables or shared objects are built, AIX ld can
13541 # have problems creating the table of contents. If linking a library
13542 # or program results in "error TOC overflow" add -mminimal-toc to
13543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13545  
13546 archive_cmds_CXX=''
13547 hardcode_direct_CXX=yes
13548 hardcode_direct_absolute_CXX=yes
13549 hardcode_libdir_separator_CXX=':'
13550 link_all_deplibs_CXX=yes
13551 file_list_spec_CXX='${wl}-f,'
13552  
13553 if test "$GXX" = yes; then
13554 case $host_os in aix4.[012]|aix4.[012].*)
13555 # We only want to do this on AIX 4.2 and lower, the check
13556 # below for broken collect2 doesn't work under 4.3+
13557 collect2name=`${CC} -print-prog-name=collect2`
13558 if test -f "$collect2name" &&
13559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13560 then
13561 # We have reworked collect2
13562 :
13563 else
13564 # We have old collect2
13565 hardcode_direct_CXX=unsupported
13566 # It fails to find uninstalled libraries when the uninstalled
13567 # path is not listed in the libpath. Setting hardcode_minus_L
13568 # to unsupported forces relinking
13569 hardcode_minus_L_CXX=yes
13570 hardcode_libdir_flag_spec_CXX='-L$libdir'
13571 hardcode_libdir_separator_CXX=
13572 fi
13573 esac
13574 shared_flag='-shared'
13575 if test "$aix_use_runtimelinking" = yes; then
13576 shared_flag="$shared_flag "'${wl}-G'
13577 fi
13578 else
13579 # not using gcc
13580 if test "$host_cpu" = ia64; then
13581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13582 # chokes on -Wl,-G. The following line is correct:
13583 shared_flag='-G'
13584 else
13585 if test "$aix_use_runtimelinking" = yes; then
13586 shared_flag='${wl}-G'
13587 else
13588 shared_flag='${wl}-bM:SRE'
13589 fi
13590 fi
13591 fi
13592  
13593 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13594 # It seems that -bexpall does not export symbols beginning with
13595 # underscore (_), so it is better to generate a list of symbols to
13596 # export.
13597 always_export_symbols_CXX=yes
13598 if test "$aix_use_runtimelinking" = yes; then
13599 # Warning - without using the other runtime loading flags (-brtl),
13600 # -berok will link without error, but may produce a broken library.
13601 allow_undefined_flag_CXX='-berok'
13602 # Determine the default libpath from the value encoded in an empty
13603 # executable.
13604 if test "${lt_cv_aix_libpath+set}" = set; then
13605 aix_libpath=$lt_cv_aix_libpath
13606 else
13607 if ${lt_cv_aix_libpath__CXX+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612  
13613 int
13614 main ()
13615 {
13616  
13617 ;
13618 return 0;
13619 }
13620 _ACEOF
13621 if ac_fn_cxx_try_link "$LINENO"; then :
13622  
13623 lt_aix_libpath_sed='
13624 /Import File Strings/,/^$/ {
13625 /^0/ {
13626 s/^0 *\([^ ]*\) *$/\1/
13627 p
13628 }
13629 }'
13630 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13631 # Check for a 64-bit object if we didn't find anything.
13632 if test -z "$lt_cv_aix_libpath__CXX"; then
13633 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13634 fi
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 if test -z "$lt_cv_aix_libpath__CXX"; then
13639 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13640 fi
13641  
13642 fi
13643  
13644 aix_libpath=$lt_cv_aix_libpath__CXX
13645 fi
13646  
13647 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13648  
13649 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13650 else
13651 if test "$host_cpu" = ia64; then
13652 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13653 allow_undefined_flag_CXX="-z nodefs"
13654 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"
13655 else
13656 # Determine the default libpath from the value encoded in an
13657 # empty executable.
13658 if test "${lt_cv_aix_libpath+set}" = set; then
13659 aix_libpath=$lt_cv_aix_libpath
13660 else
13661 if ${lt_cv_aix_libpath__CXX+:} false; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666  
13667 int
13668 main ()
13669 {
13670  
13671 ;
13672 return 0;
13673 }
13674 _ACEOF
13675 if ac_fn_cxx_try_link "$LINENO"; then :
13676  
13677 lt_aix_libpath_sed='
13678 /Import File Strings/,/^$/ {
13679 /^0/ {
13680 s/^0 *\([^ ]*\) *$/\1/
13681 p
13682 }
13683 }'
13684 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13685 # Check for a 64-bit object if we didn't find anything.
13686 if test -z "$lt_cv_aix_libpath__CXX"; then
13687 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13688 fi
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext \
13691 conftest$ac_exeext conftest.$ac_ext
13692 if test -z "$lt_cv_aix_libpath__CXX"; then
13693 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13694 fi
13695  
13696 fi
13697  
13698 aix_libpath=$lt_cv_aix_libpath__CXX
13699 fi
13700  
13701 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13702 # Warning - without using the other run time loading flags,
13703 # -berok will link without error, but may produce a broken library.
13704 no_undefined_flag_CXX=' ${wl}-bernotok'
13705 allow_undefined_flag_CXX=' ${wl}-berok'
13706 if test "$with_gnu_ld" = yes; then
13707 # We only use this code for GNU lds that support --whole-archive.
13708 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13709 else
13710 # Exported symbols can be pulled into shared objects from archives
13711 whole_archive_flag_spec_CXX='$convenience'
13712 fi
13713 archive_cmds_need_lc_CXX=yes
13714 # This is similar to how AIX traditionally builds its shared
13715 # libraries.
13716 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13717 fi
13718 fi
13719 ;;
13720  
13721 beos*)
13722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13723 allow_undefined_flag_CXX=unsupported
13724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13725 # support --undefined. This deserves some investigation. FIXME
13726 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13727 else
13728 ld_shlibs_CXX=no
13729 fi
13730 ;;
13731  
13732 chorus*)
13733 case $cc_basename in
13734 *)
13735 # FIXME: insert proper C++ library support
13736 ld_shlibs_CXX=no
13737 ;;
13738 esac
13739 ;;
13740  
13741 cygwin* | mingw* | pw32* | cegcc*)
13742 case $GXX,$cc_basename in
13743 ,cl* | no,cl*)
13744 # Native MSVC
13745 # hardcode_libdir_flag_spec is actually meaningless, as there is
13746 # no search path for DLLs.
13747 hardcode_libdir_flag_spec_CXX=' '
13748 allow_undefined_flag_CXX=unsupported
13749 always_export_symbols_CXX=yes
13750 file_list_spec_CXX='@'
13751 # Tell ltmain to make .lib files, not .a files.
13752 libext=lib
13753 # Tell ltmain to make .dll files, not .so files.
13754 shrext_cmds=".dll"
13755 # FIXME: Setting linknames here is a bad hack.
13756 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13757 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13758 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13759 else
13760 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13761 fi~
13762 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13763 linknames='
13764 # The linker will not automatically build a static lib if we build a DLL.
13765 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13766 enable_shared_with_static_runtimes_CXX=yes
13767 # Don't use ranlib
13768 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13769 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13770 lt_tool_outputfile="@TOOL_OUTPUT@"~
13771 case $lt_outputfile in
13772 *.exe|*.EXE) ;;
13773 *)
13774 lt_outputfile="$lt_outputfile.exe"
13775 lt_tool_outputfile="$lt_tool_outputfile.exe"
13776 ;;
13777 esac~
13778 func_to_tool_file "$lt_outputfile"~
13779 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13780 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13781 $RM "$lt_outputfile.manifest";
13782 fi'
13783 ;;
13784 *)
13785 # g++
13786 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13787 # as there is no search path for DLLs.
13788 hardcode_libdir_flag_spec_CXX='-L$libdir'
13789 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13790 allow_undefined_flag_CXX=unsupported
13791 always_export_symbols_CXX=no
13792 enable_shared_with_static_runtimes_CXX=yes
13793  
13794 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13795 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'
13796 # If the export-symbols file already is a .def file (1st line
13797 # is EXPORTS), use it as is; otherwise, prepend...
13798 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13799 cp $export_symbols $output_objdir/$soname.def;
13800 else
13801 echo EXPORTS > $output_objdir/$soname.def;
13802 cat $export_symbols >> $output_objdir/$soname.def;
13803 fi~
13804 $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'
13805 else
13806 ld_shlibs_CXX=no
13807 fi
13808 ;;
13809 esac
13810 ;;
13811 darwin* | rhapsody*)
13812  
13813  
13814 archive_cmds_need_lc_CXX=no
13815 hardcode_direct_CXX=no
13816 hardcode_automatic_CXX=yes
13817 hardcode_shlibpath_var_CXX=unsupported
13818 if test "$lt_cv_ld_force_load" = "yes"; then
13819 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\"`'
13820 else
13821 whole_archive_flag_spec_CXX=''
13822 fi
13823 link_all_deplibs_CXX=yes
13824 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13825 case $cc_basename in
13826 ifort*) _lt_dar_can_shared=yes ;;
13827 *) _lt_dar_can_shared=$GCC ;;
13828 esac
13829 if test "$_lt_dar_can_shared" = "yes"; then
13830 output_verbose_link_cmd=func_echo_all
13831 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}"
13832 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13833 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}"
13834 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}"
13835 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13836 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}"
13837 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}"
13838 fi
13839  
13840 else
13841 ld_shlibs_CXX=no
13842 fi
13843  
13844 ;;
13845  
13846 dgux*)
13847 case $cc_basename in
13848 ec++*)
13849 # FIXME: insert proper C++ library support
13850 ld_shlibs_CXX=no
13851 ;;
13852 ghcx*)
13853 # Green Hills C++ Compiler
13854 # FIXME: insert proper C++ library support
13855 ld_shlibs_CXX=no
13856 ;;
13857 *)
13858 # FIXME: insert proper C++ library support
13859 ld_shlibs_CXX=no
13860 ;;
13861 esac
13862 ;;
13863  
13864 freebsd[12]*)
13865 # C++ shared libraries reported to be fairly broken before
13866 # switch to ELF
13867 ld_shlibs_CXX=no
13868 ;;
13869  
13870 freebsd-elf*)
13871 archive_cmds_need_lc_CXX=no
13872 ;;
13873  
13874 freebsd* | dragonfly*)
13875 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13876 # conventions
13877 ld_shlibs_CXX=yes
13878 ;;
13879  
13880 gnu*)
13881 ;;
13882  
13883 haiku*)
13884 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13885 link_all_deplibs_CXX=yes
13886 ;;
13887  
13888 hpux9*)
13889 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13890 hardcode_libdir_separator_CXX=:
13891 export_dynamic_flag_spec_CXX='${wl}-E'
13892 hardcode_direct_CXX=yes
13893 hardcode_minus_L_CXX=yes # Not in the search PATH,
13894 # but as the default
13895 # location of the library.
13896  
13897 case $cc_basename in
13898 CC*)
13899 # FIXME: insert proper C++ library support
13900 ld_shlibs_CXX=no
13901 ;;
13902 aCC*)
13903 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13904 # Commands to make compiler produce verbose output that lists
13905 # what "hidden" libraries, object files and flags are used when
13906 # linking a shared library.
13907 #
13908 # There doesn't appear to be a way to prevent this compiler from
13909 # explicitly linking system object files so we need to strip them
13910 # from the output so that they don't get included in the library
13911 # dependencies.
13912 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"'
13913 ;;
13914 *)
13915 if test "$GXX" = yes; then
13916 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13917 else
13918 # FIXME: insert proper C++ library support
13919 ld_shlibs_CXX=no
13920 fi
13921 ;;
13922 esac
13923 ;;
13924  
13925 hpux10*|hpux11*)
13926 if test $with_gnu_ld = no; then
13927 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13928 hardcode_libdir_separator_CXX=:
13929  
13930 case $host_cpu in
13931 hppa*64*|ia64*)
13932 ;;
13933 *)
13934 export_dynamic_flag_spec_CXX='${wl}-E'
13935 ;;
13936 esac
13937 fi
13938 case $host_cpu in
13939 hppa*64*|ia64*)
13940 hardcode_direct_CXX=no
13941 hardcode_shlibpath_var_CXX=no
13942 ;;
13943 *)
13944 hardcode_direct_CXX=yes
13945 hardcode_direct_absolute_CXX=yes
13946 hardcode_minus_L_CXX=yes # Not in the search PATH,
13947 # but as the default
13948 # location of the library.
13949 ;;
13950 esac
13951  
13952 case $cc_basename in
13953 CC*)
13954 # FIXME: insert proper C++ library support
13955 ld_shlibs_CXX=no
13956 ;;
13957 aCC*)
13958 case $host_cpu in
13959 hppa*64*)
13960 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13961 ;;
13962 ia64*)
13963 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13964 ;;
13965 *)
13966 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13967 ;;
13968 esac
13969 # Commands to make compiler produce verbose output that lists
13970 # what "hidden" libraries, object files and flags are used when
13971 # linking a shared library.
13972 #
13973 # There doesn't appear to be a way to prevent this compiler from
13974 # explicitly linking system object files so we need to strip them
13975 # from the output so that they don't get included in the library
13976 # dependencies.
13977 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"'
13978 ;;
13979 *)
13980 if test "$GXX" = yes; then
13981 if test $with_gnu_ld = no; then
13982 case $host_cpu in
13983 hppa*64*)
13984 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13985 ;;
13986 ia64*)
13987 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13988 ;;
13989 *)
13990 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'
13991 ;;
13992 esac
13993 fi
13994 else
13995 # FIXME: insert proper C++ library support
13996 ld_shlibs_CXX=no
13997 fi
13998 ;;
13999 esac
14000 ;;
14001  
14002 interix[3-9]*)
14003 hardcode_direct_CXX=no
14004 hardcode_shlibpath_var_CXX=no
14005 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14006 export_dynamic_flag_spec_CXX='${wl}-E'
14007 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14008 # Instead, shared libraries are loaded at an image base (0x10000000 by
14009 # default) and relocated if they conflict, which is a slow very memory
14010 # consuming and fragmenting process. To avoid this, we pick a random,
14011 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14012 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14013 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'
14014 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'
14015 ;;
14016 irix5* | irix6*)
14017 case $cc_basename in
14018 CC*)
14019 # SGI C++
14020 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'
14021  
14022 # Archives containing C++ object files must be created using
14023 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14024 # necessary to make sure instantiated templates are included
14025 # in the archive.
14026 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14027 ;;
14028 *)
14029 if test "$GXX" = yes; then
14030 if test "$with_gnu_ld" = no; then
14031 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'
14032 else
14033 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'
14034 fi
14035 fi
14036 link_all_deplibs_CXX=yes
14037 ;;
14038 esac
14039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14040 hardcode_libdir_separator_CXX=:
14041 inherit_rpath_CXX=yes
14042 ;;
14043  
14044 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14045 case $cc_basename in
14046 KCC*)
14047 # Kuck and Associates, Inc. (KAI) C++ Compiler
14048  
14049 # KCC will only create a shared library if the output file
14050 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14051 # to its proper name (with version) after linking.
14052 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'
14053 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'
14054 # Commands to make compiler produce verbose output that lists
14055 # what "hidden" libraries, object files and flags are used when
14056 # linking a shared library.
14057 #
14058 # There doesn't appear to be a way to prevent this compiler from
14059 # explicitly linking system object files so we need to strip them
14060 # from the output so that they don't get included in the library
14061 # dependencies.
14062 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"'
14063  
14064 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14065 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14066  
14067 # Archives containing C++ object files must be created using
14068 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14069 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14070 ;;
14071 icpc* | ecpc* )
14072 # Intel C++
14073 with_gnu_ld=yes
14074 # version 8.0 and above of icpc choke on multiply defined symbols
14075 # if we add $predep_objects and $postdep_objects, however 7.1 and
14076 # earlier do not add the objects themselves.
14077 case `$CC -V 2>&1` in
14078 *"Version 7."*)
14079 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14080 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'
14081 ;;
14082 *) # Version 8.0 or newer
14083 tmp_idyn=
14084 case $host_cpu in
14085 ia64*) tmp_idyn=' -i_dynamic';;
14086 esac
14087 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14088 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'
14089 ;;
14090 esac
14091 archive_cmds_need_lc_CXX=no
14092 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14094 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14095 ;;
14096 pgCC* | pgcpp*)
14097 # Portland Group C++ compiler
14098 case `$CC -V` in
14099 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14100 prelink_cmds_CXX='tpldir=Template.dir~
14101 rm -rf $tpldir~
14102 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14103 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14104 old_archive_cmds_CXX='tpldir=Template.dir~
14105 rm -rf $tpldir~
14106 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14107 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14108 $RANLIB $oldlib'
14109 archive_cmds_CXX='tpldir=Template.dir~
14110 rm -rf $tpldir~
14111 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14112 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14113 archive_expsym_cmds_CXX='tpldir=Template.dir~
14114 rm -rf $tpldir~
14115 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14116 $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'
14117 ;;
14118 *) # Version 6 and above use weak symbols
14119 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14120 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'
14121 ;;
14122 esac
14123  
14124 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14126 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'
14127 ;;
14128 cxx*)
14129 # Compaq C++
14130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14131 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'
14132  
14133 runpath_var=LD_RUN_PATH
14134 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14135 hardcode_libdir_separator_CXX=:
14136  
14137 # Commands to make compiler produce verbose output that lists
14138 # what "hidden" libraries, object files and flags are used when
14139 # linking a shared library.
14140 #
14141 # There doesn't appear to be a way to prevent this compiler from
14142 # explicitly linking system object files so we need to strip them
14143 # from the output so that they don't get included in the library
14144 # dependencies.
14145 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'
14146 ;;
14147 xl* | mpixl* | bgxl*)
14148 # IBM XL 8.0 on PPC, with GNU ld
14149 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14151 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14152 if test "x$supports_anon_versioning" = xyes; then
14153 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14155 echo "local: *; };" >> $output_objdir/$libname.ver~
14156 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14157 fi
14158 ;;
14159 *)
14160 case `$CC -V 2>&1 | sed 5q` in
14161 *Sun\ C*)
14162 # Sun C++ 5.9
14163 no_undefined_flag_CXX=' -zdefs'
14164 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14165 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'
14166 hardcode_libdir_flag_spec_CXX='-R$libdir'
14167 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'
14168 compiler_needs_object_CXX=yes
14169  
14170 # Not sure whether something based on
14171 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14172 # would be better.
14173 output_verbose_link_cmd='func_echo_all'
14174  
14175 # Archives containing C++ object files must be created using
14176 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14177 # necessary to make sure instantiated templates are included
14178 # in the archive.
14179 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14180 ;;
14181 esac
14182 ;;
14183 esac
14184 ;;
14185  
14186 lynxos*)
14187 # FIXME: insert proper C++ library support
14188 ld_shlibs_CXX=no
14189 ;;
14190  
14191 m88k*)
14192 # FIXME: insert proper C++ library support
14193 ld_shlibs_CXX=no
14194 ;;
14195  
14196 mvs*)
14197 case $cc_basename in
14198 cxx*)
14199 # FIXME: insert proper C++ library support
14200 ld_shlibs_CXX=no
14201 ;;
14202 *)
14203 # FIXME: insert proper C++ library support
14204 ld_shlibs_CXX=no
14205 ;;
14206 esac
14207 ;;
14208  
14209 netbsd*)
14210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14211 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14212 wlarc=
14213 hardcode_libdir_flag_spec_CXX='-R$libdir'
14214 hardcode_direct_CXX=yes
14215 hardcode_shlibpath_var_CXX=no
14216 fi
14217 # Workaround some broken pre-1.5 toolchains
14218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14219 ;;
14220  
14221 *nto* | *qnx*)
14222 ld_shlibs_CXX=yes
14223 ;;
14224  
14225 openbsd2*)
14226 # C++ shared libraries are fairly broken
14227 ld_shlibs_CXX=no
14228 ;;
14229  
14230 openbsd*)
14231 if test -f /usr/libexec/ld.so; then
14232 hardcode_direct_CXX=yes
14233 hardcode_shlibpath_var_CXX=no
14234 hardcode_direct_absolute_CXX=yes
14235 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14237 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14238 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14239 export_dynamic_flag_spec_CXX='${wl}-E'
14240 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14241 fi
14242 output_verbose_link_cmd=func_echo_all
14243 else
14244 ld_shlibs_CXX=no
14245 fi
14246 ;;
14247  
14248 osf3* | osf4* | osf5*)
14249 case $cc_basename in
14250 KCC*)
14251 # Kuck and Associates, Inc. (KAI) C++ Compiler
14252  
14253 # KCC will only create a shared library if the output file
14254 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14255 # to its proper name (with version) after linking.
14256 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'
14257  
14258 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14259 hardcode_libdir_separator_CXX=:
14260  
14261 # Archives containing C++ object files must be created using
14262 # the KAI C++ compiler.
14263 case $host in
14264 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14265 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14266 esac
14267 ;;
14268 RCC*)
14269 # Rational C++ 2.4.1
14270 # FIXME: insert proper C++ library support
14271 ld_shlibs_CXX=no
14272 ;;
14273 cxx*)
14274 case $host in
14275 osf3*)
14276 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14277 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'
14278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14279 ;;
14280 *)
14281 allow_undefined_flag_CXX=' -expect_unresolved \*'
14282 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'
14283 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14284 echo "-hidden">> $lib.exp~
14285 $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~
14286 $RM $lib.exp'
14287 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14288 ;;
14289 esac
14290  
14291 hardcode_libdir_separator_CXX=:
14292  
14293 # Commands to make compiler produce verbose output that lists
14294 # what "hidden" libraries, object files and flags are used when
14295 # linking a shared library.
14296 #
14297 # There doesn't appear to be a way to prevent this compiler from
14298 # explicitly linking system object files so we need to strip them
14299 # from the output so that they don't get included in the library
14300 # dependencies.
14301 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"'
14302 ;;
14303 *)
14304 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14305 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14306 case $host in
14307 osf3*)
14308 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'
14309 ;;
14310 *)
14311 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'
14312 ;;
14313 esac
14314  
14315 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14316 hardcode_libdir_separator_CXX=:
14317  
14318 # Commands to make compiler produce verbose output that lists
14319 # what "hidden" libraries, object files and flags are used when
14320 # linking a shared library.
14321 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14322  
14323 else
14324 # FIXME: insert proper C++ library support
14325 ld_shlibs_CXX=no
14326 fi
14327 ;;
14328 esac
14329 ;;
14330  
14331 psos*)
14332 # FIXME: insert proper C++ library support
14333 ld_shlibs_CXX=no
14334 ;;
14335  
14336 sunos4*)
14337 case $cc_basename in
14338 CC*)
14339 # Sun C++ 4.x
14340 # FIXME: insert proper C++ library support
14341 ld_shlibs_CXX=no
14342 ;;
14343 lcc*)
14344 # Lucid
14345 # FIXME: insert proper C++ library support
14346 ld_shlibs_CXX=no
14347 ;;
14348 *)
14349 # FIXME: insert proper C++ library support
14350 ld_shlibs_CXX=no
14351 ;;
14352 esac
14353 ;;
14354  
14355 solaris*)
14356 case $cc_basename in
14357 CC* | sunCC*)
14358 # Sun C++ 4.2, 5.x and Centerline C++
14359 archive_cmds_need_lc_CXX=yes
14360 no_undefined_flag_CXX=' -zdefs'
14361 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14362 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14363 $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'
14364  
14365 hardcode_libdir_flag_spec_CXX='-R$libdir'
14366 hardcode_shlibpath_var_CXX=no
14367 case $host_os in
14368 solaris2.[0-5] | solaris2.[0-5].*) ;;
14369 *)
14370 # The compiler driver will combine and reorder linker options,
14371 # but understands `-z linker_flag'.
14372 # Supported since Solaris 2.6 (maybe 2.5.1?)
14373 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14374 ;;
14375 esac
14376 link_all_deplibs_CXX=yes
14377  
14378 output_verbose_link_cmd='func_echo_all'
14379  
14380 # Archives containing C++ object files must be created using
14381 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14382 # necessary to make sure instantiated templates are included
14383 # in the archive.
14384 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14385 ;;
14386 gcx*)
14387 # Green Hills C++ Compiler
14388 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14389  
14390 # The C++ compiler must be used to create the archive.
14391 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14392 ;;
14393 *)
14394 # GNU C++ compiler with Solaris linker
14395 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14396 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14397 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14398 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14399 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14400 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14401  
14402 # Commands to make compiler produce verbose output that lists
14403 # what "hidden" libraries, object files and flags are used when
14404 # linking a shared library.
14405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14406 else
14407 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14408 # platform.
14409 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14410 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14411 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14412  
14413 # Commands to make compiler produce verbose output that lists
14414 # what "hidden" libraries, object files and flags are used when
14415 # linking a shared library.
14416 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14417 fi
14418  
14419 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14420 case $host_os in
14421 solaris2.[0-5] | solaris2.[0-5].*) ;;
14422 *)
14423 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14424 ;;
14425 esac
14426 fi
14427 ;;
14428 esac
14429 ;;
14430  
14431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14432 no_undefined_flag_CXX='${wl}-z,text'
14433 archive_cmds_need_lc_CXX=no
14434 hardcode_shlibpath_var_CXX=no
14435 runpath_var='LD_RUN_PATH'
14436  
14437 case $cc_basename in
14438 CC*)
14439 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14440 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14441 ;;
14442 *)
14443 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14444 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14445 ;;
14446 esac
14447 ;;
14448  
14449 sysv5* | sco3.2v5* | sco5v6*)
14450 # Note: We can NOT use -z defs as we might desire, because we do not
14451 # link with -lc, and that would cause any symbols used from libc to
14452 # always be unresolved, which means just about no library would
14453 # ever link correctly. If we're not using GNU ld we use -z text
14454 # though, which does catch some bad symbols but isn't as heavy-handed
14455 # as -z defs.
14456 no_undefined_flag_CXX='${wl}-z,text'
14457 allow_undefined_flag_CXX='${wl}-z,nodefs'
14458 archive_cmds_need_lc_CXX=no
14459 hardcode_shlibpath_var_CXX=no
14460 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14461 hardcode_libdir_separator_CXX=':'
14462 link_all_deplibs_CXX=yes
14463 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14464 runpath_var='LD_RUN_PATH'
14465  
14466 case $cc_basename in
14467 CC*)
14468 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14469 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14470 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14471 '"$old_archive_cmds_CXX"
14472 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14473 '"$reload_cmds_CXX"
14474 ;;
14475 *)
14476 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14477 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14478 ;;
14479 esac
14480 ;;
14481  
14482 tandem*)
14483 case $cc_basename in
14484 NCC*)
14485 # NonStop-UX NCC 3.20
14486 # FIXME: insert proper C++ library support
14487 ld_shlibs_CXX=no
14488 ;;
14489 *)
14490 # FIXME: insert proper C++ library support
14491 ld_shlibs_CXX=no
14492 ;;
14493 esac
14494 ;;
14495  
14496 vxworks*)
14497 # FIXME: insert proper C++ library support
14498 ld_shlibs_CXX=no
14499 ;;
14500  
14501 *)
14502 # FIXME: insert proper C++ library support
14503 ld_shlibs_CXX=no
14504 ;;
14505 esac
14506  
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14508 $as_echo "$ld_shlibs_CXX" >&6; }
14509 test "$ld_shlibs_CXX" = no && can_build_shared=no
14510  
14511 GCC_CXX="$GXX"
14512 LD_CXX="$LD"
14513  
14514 ## CAVEAT EMPTOR:
14515 ## There is no encapsulation within the following macros, do not change
14516 ## the running order or otherwise move them around unless you know exactly
14517 ## what you are doing...
14518 # Dependencies to place before and after the object being linked:
14519 predep_objects_CXX=
14520 postdep_objects_CXX=
14521 predeps_CXX=
14522 postdeps_CXX=
14523 compiler_lib_search_path_CXX=
14524  
14525 cat > conftest.$ac_ext <<_LT_EOF
14526 class Foo
14527 {
14528 public:
14529 Foo (void) { a = 0; }
14530 private:
14531 int a;
14532 };
14533 _LT_EOF
14534  
14535  
14536 _lt_libdeps_save_CFLAGS=$CFLAGS
14537 case "$CC $CFLAGS " in #(
14538 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14539 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14540 esac
14541  
14542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14543 (eval $ac_compile) 2>&5
14544 ac_status=$?
14545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14546 test $ac_status = 0; }; then
14547 # Parse the compiler output and extract the necessary
14548 # objects, libraries and library flags.
14549  
14550 # Sentinel used to keep track of whether or not we are before
14551 # the conftest object file.
14552 pre_test_object_deps_done=no
14553  
14554 for p in `eval "$output_verbose_link_cmd"`; do
14555 case ${prev}${p} in
14556  
14557 -L* | -R* | -l*)
14558 # Some compilers place space between "-{L,R}" and the path.
14559 # Remove the space.
14560 if test $p = "-L" ||
14561 test $p = "-R"; then
14562 prev=$p
14563 continue
14564 fi
14565  
14566 # Expand the sysroot to ease extracting the directories later.
14567 if test -z "$prev"; then
14568 case $p in
14569 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14570 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14571 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14572 esac
14573 fi
14574 case $p in
14575 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14576 esac
14577 if test "$pre_test_object_deps_done" = no; then
14578 case ${prev} in
14579 -L | -R)
14580 # Internal compiler library paths should come after those
14581 # provided the user. The postdeps already come after the
14582 # user supplied libs so there is no need to process them.
14583 if test -z "$compiler_lib_search_path_CXX"; then
14584 compiler_lib_search_path_CXX="${prev}${p}"
14585 else
14586 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14587 fi
14588 ;;
14589 # The "-l" case would never come before the object being
14590 # linked, so don't bother handling this case.
14591 esac
14592 else
14593 if test -z "$postdeps_CXX"; then
14594 postdeps_CXX="${prev}${p}"
14595 else
14596 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14597 fi
14598 fi
14599 prev=
14600 ;;
14601  
14602 *.lto.$objext) ;; # Ignore GCC LTO objects
14603 *.$objext)
14604 # This assumes that the test object file only shows up
14605 # once in the compiler output.
14606 if test "$p" = "conftest.$objext"; then
14607 pre_test_object_deps_done=yes
14608 continue
14609 fi
14610  
14611 if test "$pre_test_object_deps_done" = no; then
14612 if test -z "$predep_objects_CXX"; then
14613 predep_objects_CXX="$p"
14614 else
14615 predep_objects_CXX="$predep_objects_CXX $p"
14616 fi
14617 else
14618 if test -z "$postdep_objects_CXX"; then
14619 postdep_objects_CXX="$p"
14620 else
14621 postdep_objects_CXX="$postdep_objects_CXX $p"
14622 fi
14623 fi
14624 ;;
14625  
14626 *) ;; # Ignore the rest.
14627  
14628 esac
14629 done
14630  
14631 # Clean up.
14632 rm -f a.out a.exe
14633 else
14634 echo "libtool.m4: error: problem compiling CXX test program"
14635 fi
14636  
14637 $RM -f confest.$objext
14638 CFLAGS=$_lt_libdeps_save_CFLAGS
14639  
14640 # PORTME: override above test on systems where it is broken
14641 case $host_os in
14642 interix[3-9]*)
14643 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14644 # hack all around it, let's just trust "g++" to DTRT.
14645 predep_objects_CXX=
14646 postdep_objects_CXX=
14647 postdeps_CXX=
14648 ;;
14649  
14650 linux*)
14651 case `$CC -V 2>&1 | sed 5q` in
14652 *Sun\ C*)
14653 # Sun C++ 5.9
14654  
14655 # The more standards-conforming stlport4 library is
14656 # incompatible with the Cstd library. Avoid specifying
14657 # it if it's in CXXFLAGS. Ignore libCrun as
14658 # -library=stlport4 depends on it.
14659 case " $CXX $CXXFLAGS " in
14660 *" -library=stlport4 "*)
14661 solaris_use_stlport4=yes
14662 ;;
14663 esac
14664  
14665 if test "$solaris_use_stlport4" != yes; then
14666 postdeps_CXX='-library=Cstd -library=Crun'
14667 fi
14668 ;;
14669 esac
14670 ;;
14671  
14672 solaris*)
14673 case $cc_basename in
14674 CC* | sunCC*)
14675 # The more standards-conforming stlport4 library is
14676 # incompatible with the Cstd library. Avoid specifying
14677 # it if it's in CXXFLAGS. Ignore libCrun as
14678 # -library=stlport4 depends on it.
14679 case " $CXX $CXXFLAGS " in
14680 *" -library=stlport4 "*)
14681 solaris_use_stlport4=yes
14682 ;;
14683 esac
14684  
14685 # Adding this requires a known-good setup of shared libraries for
14686 # Sun compiler versions before 5.6, else PIC objects from an old
14687 # archive will be linked into the output, leading to subtle bugs.
14688 if test "$solaris_use_stlport4" != yes; then
14689 postdeps_CXX='-library=Cstd -library=Crun'
14690 fi
14691 ;;
14692 esac
14693 ;;
14694 esac
14695  
14696  
14697 case " $postdeps_CXX " in
14698 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14699 esac
14700 compiler_lib_search_dirs_CXX=
14701 if test -n "${compiler_lib_search_path_CXX}"; then
14702 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14703 fi
14704  
14705  
14706  
14707  
14708  
14709  
14710  
14711  
14712  
14713  
14714  
14715  
14716  
14717  
14718  
14719  
14720  
14721  
14722  
14723  
14724  
14725  
14726  
14727  
14728  
14729  
14730  
14731  
14732  
14733  
14734  
14735 lt_prog_compiler_wl_CXX=
14736 lt_prog_compiler_pic_CXX=
14737 lt_prog_compiler_static_CXX=
14738  
14739  
14740 # C++ specific cases for pic, static, wl, etc.
14741 if test "$GXX" = yes; then
14742 lt_prog_compiler_wl_CXX='-Wl,'
14743 lt_prog_compiler_static_CXX='-static'
14744  
14745 case $host_os in
14746 aix*)
14747 # All AIX code is PIC.
14748 if test "$host_cpu" = ia64; then
14749 # AIX 5 now supports IA64 processor
14750 lt_prog_compiler_static_CXX='-Bstatic'
14751 fi
14752 ;;
14753  
14754 amigaos*)
14755 case $host_cpu in
14756 powerpc)
14757 # see comment about AmigaOS4 .so support
14758 lt_prog_compiler_pic_CXX='-fPIC'
14759 ;;
14760 m68k)
14761 # FIXME: we need at least 68020 code to build shared libraries, but
14762 # adding the `-m68020' flag to GCC prevents building anything better,
14763 # like `-m68040'.
14764 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14765 ;;
14766 esac
14767 ;;
14768  
14769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14770 # PIC is the default for these OSes.
14771 ;;
14772 mingw* | cygwin* | os2* | pw32* | cegcc*)
14773 # This hack is so that the source file can tell whether it is being
14774 # built for inclusion in a dll (and should export symbols for example).
14775 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14776 # (--disable-auto-import) libraries
14777 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14778 ;;
14779 darwin* | rhapsody*)
14780 # PIC is the default on this platform
14781 # Common symbols not allowed in MH_DYLIB files
14782 lt_prog_compiler_pic_CXX='-fno-common'
14783 ;;
14784 *djgpp*)
14785 # DJGPP does not support shared libraries at all
14786 lt_prog_compiler_pic_CXX=
14787 ;;
14788 haiku*)
14789 # PIC is the default for Haiku.
14790 # The "-static" flag exists, but is broken.
14791 lt_prog_compiler_static_CXX=
14792 ;;
14793 interix[3-9]*)
14794 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14795 # Instead, we relocate shared libraries at runtime.
14796 ;;
14797 sysv4*MP*)
14798 if test -d /usr/nec; then
14799 lt_prog_compiler_pic_CXX=-Kconform_pic
14800 fi
14801 ;;
14802 hpux*)
14803 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14804 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14805 # sets the default TLS model and affects inlining.
14806 case $host_cpu in
14807 hppa*64*)
14808 ;;
14809 *)
14810 lt_prog_compiler_pic_CXX='-fPIC'
14811 ;;
14812 esac
14813 ;;
14814 *qnx* | *nto*)
14815 # QNX uses GNU C++, but need to define -shared option too, otherwise
14816 # it will coredump.
14817 lt_prog_compiler_pic_CXX='-fPIC -shared'
14818 ;;
14819 *)
14820 lt_prog_compiler_pic_CXX='-fPIC'
14821 ;;
14822 esac
14823 else
14824 case $host_os in
14825 aix[4-9]*)
14826 # All AIX code is PIC.
14827 if test "$host_cpu" = ia64; then
14828 # AIX 5 now supports IA64 processor
14829 lt_prog_compiler_static_CXX='-Bstatic'
14830 else
14831 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14832 fi
14833 ;;
14834 chorus*)
14835 case $cc_basename in
14836 cxch68*)
14837 # Green Hills C++ Compiler
14838 # _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"
14839 ;;
14840 esac
14841 ;;
14842 mingw* | cygwin* | os2* | pw32* | cegcc*)
14843 # This hack is so that the source file can tell whether it is being
14844 # built for inclusion in a dll (and should export symbols for example).
14845 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14846 ;;
14847 dgux*)
14848 case $cc_basename in
14849 ec++*)
14850 lt_prog_compiler_pic_CXX='-KPIC'
14851 ;;
14852 ghcx*)
14853 # Green Hills C++ Compiler
14854 lt_prog_compiler_pic_CXX='-pic'
14855 ;;
14856 *)
14857 ;;
14858 esac
14859 ;;
14860 freebsd* | dragonfly*)
14861 # FreeBSD uses GNU C++
14862 ;;
14863 hpux9* | hpux10* | hpux11*)
14864 case $cc_basename in
14865 CC*)
14866 lt_prog_compiler_wl_CXX='-Wl,'
14867 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14868 if test "$host_cpu" != ia64; then
14869 lt_prog_compiler_pic_CXX='+Z'
14870 fi
14871 ;;
14872 aCC*)
14873 lt_prog_compiler_wl_CXX='-Wl,'
14874 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14875 case $host_cpu in
14876 hppa*64*|ia64*)
14877 # +Z the default
14878 ;;
14879 *)
14880 lt_prog_compiler_pic_CXX='+Z'
14881 ;;
14882 esac
14883 ;;
14884 *)
14885 ;;
14886 esac
14887 ;;
14888 interix*)
14889 # This is c89, which is MS Visual C++ (no shared libs)
14890 # Anyone wants to do a port?
14891 ;;
14892 irix5* | irix6* | nonstopux*)
14893 case $cc_basename in
14894 CC*)
14895 lt_prog_compiler_wl_CXX='-Wl,'
14896 lt_prog_compiler_static_CXX='-non_shared'
14897 # CC pic flag -KPIC is the default.
14898 ;;
14899 *)
14900 ;;
14901 esac
14902 ;;
14903 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14904 case $cc_basename in
14905 KCC*)
14906 # KAI C++ Compiler
14907 lt_prog_compiler_wl_CXX='--backend -Wl,'
14908 lt_prog_compiler_pic_CXX='-fPIC'
14909 ;;
14910 ecpc* )
14911 # old Intel C++ for x86_64 which still supported -KPIC.
14912 lt_prog_compiler_wl_CXX='-Wl,'
14913 lt_prog_compiler_pic_CXX='-KPIC'
14914 lt_prog_compiler_static_CXX='-static'
14915 ;;
14916 icpc* )
14917 # Intel C++, used to be incompatible with GCC.
14918 # ICC 10 doesn't accept -KPIC any more.
14919 lt_prog_compiler_wl_CXX='-Wl,'
14920 lt_prog_compiler_pic_CXX='-fPIC'
14921 lt_prog_compiler_static_CXX='-static'
14922 ;;
14923 pgCC* | pgcpp*)
14924 # Portland Group C++ compiler
14925 lt_prog_compiler_wl_CXX='-Wl,'
14926 lt_prog_compiler_pic_CXX='-fpic'
14927 lt_prog_compiler_static_CXX='-Bstatic'
14928 ;;
14929 cxx*)
14930 # Compaq C++
14931 # Make sure the PIC flag is empty. It appears that all Alpha
14932 # Linux and Compaq Tru64 Unix objects are PIC.
14933 lt_prog_compiler_pic_CXX=
14934 lt_prog_compiler_static_CXX='-non_shared'
14935 ;;
14936 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14937 # IBM XL 8.0, 9.0 on PPC and BlueGene
14938 lt_prog_compiler_wl_CXX='-Wl,'
14939 lt_prog_compiler_pic_CXX='-qpic'
14940 lt_prog_compiler_static_CXX='-qstaticlink'
14941 ;;
14942 *)
14943 case `$CC -V 2>&1 | sed 5q` in
14944 *Sun\ C*)
14945 # Sun C++ 5.9
14946 lt_prog_compiler_pic_CXX='-KPIC'
14947 lt_prog_compiler_static_CXX='-Bstatic'
14948 lt_prog_compiler_wl_CXX='-Qoption ld '
14949 ;;
14950 esac
14951 ;;
14952 esac
14953 ;;
14954 lynxos*)
14955 ;;
14956 m88k*)
14957 ;;
14958 mvs*)
14959 case $cc_basename in
14960 cxx*)
14961 lt_prog_compiler_pic_CXX='-W c,exportall'
14962 ;;
14963 *)
14964 ;;
14965 esac
14966 ;;
14967 netbsd* | netbsdelf*-gnu)
14968 ;;
14969 *qnx* | *nto*)
14970 # QNX uses GNU C++, but need to define -shared option too, otherwise
14971 # it will coredump.
14972 lt_prog_compiler_pic_CXX='-fPIC -shared'
14973 ;;
14974 osf3* | osf4* | osf5*)
14975 case $cc_basename in
14976 KCC*)
14977 lt_prog_compiler_wl_CXX='--backend -Wl,'
14978 ;;
14979 RCC*)
14980 # Rational C++ 2.4.1
14981 lt_prog_compiler_pic_CXX='-pic'
14982 ;;
14983 cxx*)
14984 # Digital/Compaq C++
14985 lt_prog_compiler_wl_CXX='-Wl,'
14986 # Make sure the PIC flag is empty. It appears that all Alpha
14987 # Linux and Compaq Tru64 Unix objects are PIC.
14988 lt_prog_compiler_pic_CXX=
14989 lt_prog_compiler_static_CXX='-non_shared'
14990 ;;
14991 *)
14992 ;;
14993 esac
14994 ;;
14995 psos*)
14996 ;;
14997 solaris*)
14998 case $cc_basename in
14999 CC* | sunCC*)
15000 # Sun C++ 4.2, 5.x and Centerline C++
15001 lt_prog_compiler_pic_CXX='-KPIC'
15002 lt_prog_compiler_static_CXX='-Bstatic'
15003 lt_prog_compiler_wl_CXX='-Qoption ld '
15004 ;;
15005 gcx*)
15006 # Green Hills C++ Compiler
15007 lt_prog_compiler_pic_CXX='-PIC'
15008 ;;
15009 *)
15010 ;;
15011 esac
15012 ;;
15013 sunos4*)
15014 case $cc_basename in
15015 CC*)
15016 # Sun C++ 4.x
15017 lt_prog_compiler_pic_CXX='-pic'
15018 lt_prog_compiler_static_CXX='-Bstatic'
15019 ;;
15020 lcc*)
15021 # Lucid
15022 lt_prog_compiler_pic_CXX='-pic'
15023 ;;
15024 *)
15025 ;;
15026 esac
15027 ;;
15028 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15029 case $cc_basename in
15030 CC*)
15031 lt_prog_compiler_wl_CXX='-Wl,'
15032 lt_prog_compiler_pic_CXX='-KPIC'
15033 lt_prog_compiler_static_CXX='-Bstatic'
15034 ;;
15035 esac
15036 ;;
15037 tandem*)
15038 case $cc_basename in
15039 NCC*)
15040 # NonStop-UX NCC 3.20
15041 lt_prog_compiler_pic_CXX='-KPIC'
15042 ;;
15043 *)
15044 ;;
15045 esac
15046 ;;
15047 vxworks*)
15048 ;;
15049 *)
15050 lt_prog_compiler_can_build_shared_CXX=no
15051 ;;
15052 esac
15053 fi
15054  
15055 case $host_os in
15056 # For platforms which do not support PIC, -DPIC is meaningless:
15057 *djgpp*)
15058 lt_prog_compiler_pic_CXX=
15059 ;;
15060 *)
15061 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15062 ;;
15063 esac
15064  
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15066 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15067 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15068 $as_echo_n "(cached) " >&6
15069 else
15070 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15073 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15074 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15075  
15076 #
15077 # Check to make sure the PIC flag actually works.
15078 #
15079 if test -n "$lt_prog_compiler_pic_CXX"; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15081 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15082 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 lt_cv_prog_compiler_pic_works_CXX=no
15086 ac_outfile=conftest.$ac_objext
15087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15088 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15089 # Insert the option either (1) after the last *FLAGS variable, or
15090 # (2) before a word containing "conftest.", or (3) at the end.
15091 # Note that $ac_compile itself does not contain backslashes and begins
15092 # with a dollar sign (not a hyphen), so the echo should work correctly.
15093 # The option is referenced via a variable to avoid confusing sed.
15094 lt_compile=`echo "$ac_compile" | $SED \
15095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097 -e 's:$: $lt_compiler_flag:'`
15098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15099 (eval "$lt_compile" 2>conftest.err)
15100 ac_status=$?
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 if (exit $ac_status) && test -s "$ac_outfile"; then
15104 # The compiler can only warn and ignore the option if not recognized
15105 # So say no if there are warnings other than the usual output.
15106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15109 lt_cv_prog_compiler_pic_works_CXX=yes
15110 fi
15111 fi
15112 $RM conftest*
15113  
15114 fi
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15116 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15117  
15118 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15119 case $lt_prog_compiler_pic_CXX in
15120 "" | " "*) ;;
15121 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15122 esac
15123 else
15124 lt_prog_compiler_pic_CXX=
15125 lt_prog_compiler_can_build_shared_CXX=no
15126 fi
15127  
15128 fi
15129  
15130  
15131  
15132  
15133  
15134 #
15135 # Check to make sure the static flag actually works.
15136 #
15137 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15139 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15140 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143 lt_cv_prog_compiler_static_works_CXX=no
15144 save_LDFLAGS="$LDFLAGS"
15145 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15146 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15147 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15148 # The linker can only warn and ignore the option if not recognized
15149 # So say no if there are warnings
15150 if test -s conftest.err; then
15151 # Append any errors to the config.log.
15152 cat conftest.err 1>&5
15153 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15155 if diff conftest.exp conftest.er2 >/dev/null; then
15156 lt_cv_prog_compiler_static_works_CXX=yes
15157 fi
15158 else
15159 lt_cv_prog_compiler_static_works_CXX=yes
15160 fi
15161 fi
15162 $RM -r conftest*
15163 LDFLAGS="$save_LDFLAGS"
15164  
15165 fi
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15167 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15168  
15169 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15170 :
15171 else
15172 lt_prog_compiler_static_CXX=
15173 fi
15174  
15175  
15176  
15177  
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15179 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15180 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15181 $as_echo_n "(cached) " >&6
15182 else
15183 lt_cv_prog_compiler_c_o_CXX=no
15184 $RM -r conftest 2>/dev/null
15185 mkdir conftest
15186 cd conftest
15187 mkdir out
15188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15189  
15190 lt_compiler_flag="-o out/conftest2.$ac_objext"
15191 # Insert the option either (1) after the last *FLAGS variable, or
15192 # (2) before a word containing "conftest.", or (3) at the end.
15193 # Note that $ac_compile itself does not contain backslashes and begins
15194 # with a dollar sign (not a hyphen), so the echo should work correctly.
15195 lt_compile=`echo "$ac_compile" | $SED \
15196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15198 -e 's:$: $lt_compiler_flag:'`
15199 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15200 (eval "$lt_compile" 2>out/conftest.err)
15201 ac_status=$?
15202 cat out/conftest.err >&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15205 then
15206 # The compiler can only warn and ignore the option if not recognized
15207 # So say no if there are warnings
15208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15209 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15210 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15211 lt_cv_prog_compiler_c_o_CXX=yes
15212 fi
15213 fi
15214 chmod u+w . 2>&5
15215 $RM conftest*
15216 # SGI C++ compiler will create directory out/ii_files/ for
15217 # template instantiation
15218 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15219 $RM out/* && rmdir out
15220 cd ..
15221 $RM -r conftest
15222 $RM conftest*
15223  
15224 fi
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15226 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15227  
15228  
15229  
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15232 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 lt_cv_prog_compiler_c_o_CXX=no
15236 $RM -r conftest 2>/dev/null
15237 mkdir conftest
15238 cd conftest
15239 mkdir out
15240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15241  
15242 lt_compiler_flag="-o out/conftest2.$ac_objext"
15243 # Insert the option either (1) after the last *FLAGS variable, or
15244 # (2) before a word containing "conftest.", or (3) at the end.
15245 # Note that $ac_compile itself does not contain backslashes and begins
15246 # with a dollar sign (not a hyphen), so the echo should work correctly.
15247 lt_compile=`echo "$ac_compile" | $SED \
15248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15250 -e 's:$: $lt_compiler_flag:'`
15251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15252 (eval "$lt_compile" 2>out/conftest.err)
15253 ac_status=$?
15254 cat out/conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15257 then
15258 # The compiler can only warn and ignore the option if not recognized
15259 # So say no if there are warnings
15260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15263 lt_cv_prog_compiler_c_o_CXX=yes
15264 fi
15265 fi
15266 chmod u+w . 2>&5
15267 $RM conftest*
15268 # SGI C++ compiler will create directory out/ii_files/ for
15269 # template instantiation
15270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15271 $RM out/* && rmdir out
15272 cd ..
15273 $RM -r conftest
15274 $RM conftest*
15275  
15276 fi
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15278 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15279  
15280  
15281  
15282  
15283 hard_links="nottested"
15284 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15285 # do not overwrite the value of need_locks provided by the user
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15287 $as_echo_n "checking if we can lock with hard links... " >&6; }
15288 hard_links=yes
15289 $RM conftest*
15290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15291 touch conftest.a
15292 ln conftest.a conftest.b 2>&5 || hard_links=no
15293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15295 $as_echo "$hard_links" >&6; }
15296 if test "$hard_links" = no; then
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15298 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15299 need_locks=warn
15300 fi
15301 else
15302 need_locks=no
15303 fi
15304  
15305  
15306  
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15308 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15309  
15310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15311 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15312 case $host_os in
15313 aix[4-9]*)
15314 # If we're using GNU nm, then we don't want the "-C" option.
15315 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15316 # Also, AIX nm treats weak defined symbols like other global defined
15317 # symbols, whereas GNU nm marks them as "W".
15318 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15319 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15320 else
15321 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15322 fi
15323 ;;
15324 pw32*)
15325 export_symbols_cmds_CXX="$ltdll_cmds"
15326 ;;
15327 cygwin* | mingw* | cegcc*)
15328 case $cc_basename in
15329 cl*) ;;
15330 *)
15331 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'
15332 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15333 ;;
15334 esac
15335 ;;
15336 linux* | k*bsd*-gnu | gnu*)
15337 link_all_deplibs_CXX=no
15338 ;;
15339 *)
15340 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15341 ;;
15342 esac
15343  
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15345 $as_echo "$ld_shlibs_CXX" >&6; }
15346 test "$ld_shlibs_CXX" = no && can_build_shared=no
15347  
15348 with_gnu_ld_CXX=$with_gnu_ld
15349  
15350  
15351  
15352  
15353  
15354  
15355 #
15356 # Do we need to explicitly link libc?
15357 #
15358 case "x$archive_cmds_need_lc_CXX" in
15359 x|xyes)
15360 # Assume -lc should be added
15361 archive_cmds_need_lc_CXX=yes
15362  
15363 if test "$enable_shared" = yes && test "$GCC" = yes; then
15364 case $archive_cmds_CXX in
15365 *'~'*)
15366 # FIXME: we may have to deal with multi-command sequences.
15367 ;;
15368 '$CC '*)
15369 # Test whether the compiler implicitly links with -lc since on some
15370 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15371 # to ld, don't add -lc before -lgcc.
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15373 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15374 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 $RM conftest*
15378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15379  
15380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15381 (eval $ac_compile) 2>&5
15382 ac_status=$?
15383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15384 test $ac_status = 0; } 2>conftest.err; then
15385 soname=conftest
15386 lib=conftest
15387 libobjs=conftest.$ac_objext
15388 deplibs=
15389 wl=$lt_prog_compiler_wl_CXX
15390 pic_flag=$lt_prog_compiler_pic_CXX
15391 compiler_flags=-v
15392 linker_flags=-v
15393 verstring=
15394 output_objdir=.
15395 libname=conftest
15396 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15397 allow_undefined_flag_CXX=
15398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15399 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15400 ac_status=$?
15401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402 test $ac_status = 0; }
15403 then
15404 lt_cv_archive_cmds_need_lc_CXX=no
15405 else
15406 lt_cv_archive_cmds_need_lc_CXX=yes
15407 fi
15408 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15409 else
15410 cat conftest.err 1>&5
15411 fi
15412 $RM conftest*
15413  
15414 fi
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15416 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15417 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15418 ;;
15419 esac
15420 fi
15421 ;;
15422 esac
15423  
15424  
15425  
15426  
15427  
15428  
15429  
15430  
15431  
15432  
15433  
15434  
15435  
15436  
15437  
15438  
15439  
15440  
15441  
15442  
15443  
15444  
15445  
15446  
15447  
15448  
15449  
15450  
15451  
15452  
15453  
15454  
15455  
15456  
15457  
15458  
15459  
15460  
15461  
15462  
15463  
15464  
15465  
15466  
15467  
15468  
15469  
15470  
15471  
15472  
15473  
15474  
15475  
15476  
15477  
15478  
15479  
15480  
15481  
15482  
15483  
15484  
15485  
15486  
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15488 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15489  
15490 library_names_spec=
15491 libname_spec='lib$name'
15492 soname_spec=
15493 shrext_cmds=".so"
15494 postinstall_cmds=
15495 postuninstall_cmds=
15496 finish_cmds=
15497 finish_eval=
15498 shlibpath_var=
15499 shlibpath_overrides_runpath=unknown
15500 version_type=none
15501 dynamic_linker="$host_os ld.so"
15502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15503 need_lib_prefix=unknown
15504 hardcode_into_libs=no
15505  
15506 # when you set need_version to no, make sure it does not cause -set_version
15507 # flags to be left without arguments
15508 need_version=unknown
15509  
15510 case $host_os in
15511 aix3*)
15512 version_type=linux
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15514 shlibpath_var=LIBPATH
15515  
15516 # AIX 3 has no versioning support, so we append a major version to the name.
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 ;;
15519  
15520 aix[4-9]*)
15521 version_type=linux
15522 need_lib_prefix=no
15523 need_version=no
15524 hardcode_into_libs=yes
15525 if test "$host_cpu" = ia64; then
15526 # AIX 5 supports IA64
15527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 else
15530 # With GCC up to 2.95.x, collect2 would create an import file
15531 # for dependence libraries. The import file would start with
15532 # the line `#! .'. This would cause the generated library to
15533 # depend on `.', always an invalid library. This was fixed in
15534 # development snapshots of GCC prior to 3.0.
15535 case $host_os in
15536 aix4 | aix4.[01] | aix4.[01].*)
15537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15538 echo ' yes '
15539 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15540 :
15541 else
15542 can_build_shared=no
15543 fi
15544 ;;
15545 esac
15546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15547 # soname into executable. Probably we can add versioning support to
15548 # collect2, so additional links can be useful in future.
15549 if test "$aix_use_runtimelinking" = yes; then
15550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15551 # instead of lib<name>.a to let people know that these are not
15552 # typical AIX shared libraries.
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 else
15555 # We preserve .a as extension for shared libraries through AIX4.2
15556 # and later when we are not doing run time linking.
15557 library_names_spec='${libname}${release}.a $libname.a'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 fi
15560 shlibpath_var=LIBPATH
15561 fi
15562 ;;
15563  
15564 amigaos*)
15565 case $host_cpu in
15566 powerpc)
15567 # Since July 2007 AmigaOS4 officially supports .so libraries.
15568 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 ;;
15571 m68k)
15572 library_names_spec='$libname.ixlibrary $libname.a'
15573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15574 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
15575 ;;
15576 esac
15577 ;;
15578  
15579 beos*)
15580 library_names_spec='${libname}${shared_ext}'
15581 dynamic_linker="$host_os ld.so"
15582 shlibpath_var=LIBRARY_PATH
15583 ;;
15584  
15585 bsdi[45]*)
15586 version_type=linux
15587 need_version=no
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15594 # the default ld.so.conf also contains /usr/contrib/lib and
15595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15596 # libtool to hard-code these into programs
15597 ;;
15598  
15599 cygwin* | mingw* | pw32* | cegcc*)
15600 version_type=windows
15601 shrext_cmds=".dll"
15602 need_version=no
15603 need_lib_prefix=no
15604  
15605 case $GCC,$cc_basename in
15606 yes,*)
15607 # gcc
15608 library_names_spec='$libname.dll.a'
15609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15610 postinstall_cmds='base_file=`basename \${file}`~
15611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15612 dldir=$destdir/`dirname \$dlpath`~
15613 test -d \$dldir || mkdir -p \$dldir~
15614 $install_prog $dir/$dlname \$dldir/$dlname~
15615 chmod a+x \$dldir/$dlname~
15616 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15617 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15618 fi'
15619 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15620 dlpath=$dir/\$dldll~
15621 $RM \$dlpath'
15622 shlibpath_overrides_runpath=yes
15623  
15624 case $host_os in
15625 cygwin*)
15626 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15627 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15628  
15629 ;;
15630 mingw* | cegcc*)
15631 # MinGW DLLs use traditional 'lib' prefix
15632 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15633 ;;
15634 pw32*)
15635 # pw32 DLLs use 'pw' prefix rather than 'lib'
15636 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15637 ;;
15638 esac
15639 dynamic_linker='Win32 ld.exe'
15640 ;;
15641  
15642 *,cl*)
15643 # Native MSVC
15644 libname_spec='$name'
15645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15646 library_names_spec='${libname}.dll.lib'
15647  
15648 case $build_os in
15649 mingw*)
15650 sys_lib_search_path_spec=
15651 lt_save_ifs=$IFS
15652 IFS=';'
15653 for lt_path in $LIB
15654 do
15655 IFS=$lt_save_ifs
15656 # Let DOS variable expansion print the short 8.3 style file name.
15657 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15658 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15659 done
15660 IFS=$lt_save_ifs
15661 # Convert to MSYS style.
15662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15663 ;;
15664 cygwin*)
15665 # Convert to unix form, then to dos form, then back to unix form
15666 # but this time dos style (no spaces!) so that the unix form looks
15667 # like /cygdrive/c/PROGRA~1:/cygdr...
15668 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15669 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15670 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15671 ;;
15672 *)
15673 sys_lib_search_path_spec="$LIB"
15674 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15675 # It is most probably a Windows format PATH.
15676 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15677 else
15678 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15679 fi
15680 # FIXME: find the short name or the path components, as spaces are
15681 # common. (e.g. "Program Files" -> "PROGRA~1")
15682 ;;
15683 esac
15684  
15685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15686 postinstall_cmds='base_file=`basename \${file}`~
15687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15688 dldir=$destdir/`dirname \$dlpath`~
15689 test -d \$dldir || mkdir -p \$dldir~
15690 $install_prog $dir/$dlname \$dldir/$dlname'
15691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15692 dlpath=$dir/\$dldll~
15693 $RM \$dlpath'
15694 shlibpath_overrides_runpath=yes
15695 dynamic_linker='Win32 link.exe'
15696 ;;
15697  
15698 *)
15699 # Assume MSVC wrapper
15700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15701 dynamic_linker='Win32 ld.exe'
15702 ;;
15703 esac
15704 # FIXME: first we should search . and the directory the executable is in
15705 shlibpath_var=PATH
15706 ;;
15707  
15708 darwin* | rhapsody*)
15709 dynamic_linker="$host_os dyld"
15710 version_type=darwin
15711 need_lib_prefix=no
15712 need_version=no
15713 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15714 soname_spec='${libname}${release}${major}$shared_ext'
15715 shlibpath_overrides_runpath=yes
15716 shlibpath_var=DYLD_LIBRARY_PATH
15717 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15718  
15719 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15720 ;;
15721  
15722 dgux*)
15723 version_type=linux
15724 need_lib_prefix=no
15725 need_version=no
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 ;;
15730  
15731 freebsd1*)
15732 dynamic_linker=no
15733 ;;
15734  
15735 freebsd* | dragonfly*)
15736 # DragonFly does not have aout. When/if they implement a new
15737 # versioning mechanism, adjust this.
15738 if test -x /usr/bin/objformat; then
15739 objformat=`/usr/bin/objformat`
15740 else
15741 case $host_os in
15742 freebsd[123]*) objformat=aout ;;
15743 *) objformat=elf ;;
15744 esac
15745 fi
15746 version_type=freebsd-$objformat
15747 case $version_type in
15748 freebsd-elf*)
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15750 need_version=no
15751 need_lib_prefix=no
15752 ;;
15753 freebsd-*)
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15755 need_version=yes
15756 ;;
15757 esac
15758 shlibpath_var=LD_LIBRARY_PATH
15759 case $host_os in
15760 freebsd2*)
15761 shlibpath_overrides_runpath=yes
15762 ;;
15763 freebsd3.[01]* | freebsdelf3.[01]*)
15764 shlibpath_overrides_runpath=yes
15765 hardcode_into_libs=yes
15766 ;;
15767 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15768 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15769 shlibpath_overrides_runpath=no
15770 hardcode_into_libs=yes
15771 ;;
15772 *) # from 4.6 on, and DragonFly
15773 shlibpath_overrides_runpath=yes
15774 hardcode_into_libs=yes
15775 ;;
15776 esac
15777 ;;
15778  
15779 gnu*)
15780 version_type=linux
15781 need_lib_prefix=no
15782 need_version=no
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 shlibpath_var=LD_LIBRARY_PATH
15786 shlibpath_overrides_runpath=no
15787 hardcode_into_libs=yes
15788 ;;
15789  
15790 haiku*)
15791 version_type=linux
15792 need_lib_prefix=no
15793 need_version=no
15794 dynamic_linker="$host_os runtime_loader"
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15796 soname_spec='${libname}${release}${shared_ext}$major'
15797 shlibpath_var=LIBRARY_PATH
15798 shlibpath_overrides_runpath=yes
15799 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15800 hardcode_into_libs=yes
15801 ;;
15802  
15803 hpux9* | hpux10* | hpux11*)
15804 # Give a soname corresponding to the major version so that dld.sl refuses to
15805 # link against other versions.
15806 version_type=sunos
15807 need_lib_prefix=no
15808 need_version=no
15809 case $host_cpu in
15810 ia64*)
15811 shrext_cmds='.so'
15812 hardcode_into_libs=yes
15813 dynamic_linker="$host_os dld.so"
15814 shlibpath_var=LD_LIBRARY_PATH
15815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 if test "X$HPUX_IA64_MODE" = X32; then
15819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15820 else
15821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15822 fi
15823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15824 ;;
15825 hppa*64*)
15826 shrext_cmds='.sl'
15827 hardcode_into_libs=yes
15828 dynamic_linker="$host_os dld.sl"
15829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832 soname_spec='${libname}${release}${shared_ext}$major'
15833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15835 ;;
15836 *)
15837 shrext_cmds='.sl'
15838 dynamic_linker="$host_os dld.sl"
15839 shlibpath_var=SHLIB_PATH
15840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 ;;
15844 esac
15845 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15846 postinstall_cmds='chmod 555 $lib'
15847 # or fails outright, so override atomically:
15848 install_override_mode=555
15849 ;;
15850  
15851 interix[3-9]*)
15852 version_type=linux
15853 need_lib_prefix=no
15854 need_version=no
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15858 shlibpath_var=LD_LIBRARY_PATH
15859 shlibpath_overrides_runpath=no
15860 hardcode_into_libs=yes
15861 ;;
15862  
15863 irix5* | irix6* | nonstopux*)
15864 case $host_os in
15865 nonstopux*) version_type=nonstopux ;;
15866 *)
15867 if test "$lt_cv_prog_gnu_ld" = yes; then
15868 version_type=linux
15869 else
15870 version_type=irix
15871 fi ;;
15872 esac
15873 need_lib_prefix=no
15874 need_version=no
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15877 case $host_os in
15878 irix5* | nonstopux*)
15879 libsuff= shlibsuff=
15880 ;;
15881 *)
15882 case $LD in # libtool.m4 will add one of these switches to LD
15883 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15884 libsuff= shlibsuff= libmagic=32-bit;;
15885 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15886 libsuff=32 shlibsuff=N32 libmagic=N32;;
15887 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15888 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15889 *) libsuff= shlibsuff= libmagic=never-match;;
15890 esac
15891 ;;
15892 esac
15893 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15894 shlibpath_overrides_runpath=no
15895 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15896 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15897 hardcode_into_libs=yes
15898 ;;
15899  
15900 # No shared lib support for Linux oldld, aout, or coff.
15901 linux*oldld* | linux*aout* | linux*coff*)
15902 dynamic_linker=no
15903 ;;
15904  
15905 # This must be Linux ELF.
15906 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15907 version_type=linux
15908 need_lib_prefix=no
15909 need_version=no
15910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15911 soname_spec='${libname}${release}${shared_ext}$major'
15912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15913 shlibpath_var=LD_LIBRARY_PATH
15914 shlibpath_overrides_runpath=no
15915  
15916 # Some binutils ld are patched to set DT_RUNPATH
15917 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15918 $as_echo_n "(cached) " >&6
15919 else
15920 lt_cv_shlibpath_overrides_runpath=no
15921 save_LDFLAGS=$LDFLAGS
15922 save_libdir=$libdir
15923 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15924 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927  
15928 int
15929 main ()
15930 {
15931  
15932 ;
15933 return 0;
15934 }
15935 _ACEOF
15936 if ac_fn_cxx_try_link "$LINENO"; then :
15937 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15938 lt_cv_shlibpath_overrides_runpath=yes
15939 fi
15940 fi
15941 rm -f core conftest.err conftest.$ac_objext \
15942 conftest$ac_exeext conftest.$ac_ext
15943 LDFLAGS=$save_LDFLAGS
15944 libdir=$save_libdir
15945  
15946 fi
15947  
15948 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15949  
15950 # This implies no fast_install, which is unacceptable.
15951 # Some rework will be needed to allow for fast_install
15952 # before this can be enabled.
15953 hardcode_into_libs=yes
15954  
15955 # Append ld.so.conf contents to the search path
15956 if test -f /etc/ld.so.conf; then
15957 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' ' '`
15958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15959 fi
15960  
15961 # We used to test for /lib/ld.so.1 and disable shared libraries on
15962 # powerpc, because MkLinux only supported shared libraries with the
15963 # GNU dynamic linker. Since this was broken with cross compilers,
15964 # most powerpc-linux boxes support dynamic linking these days and
15965 # people can always --disable-shared, the test was removed, and we
15966 # assume the GNU/Linux dynamic linker is in use.
15967 dynamic_linker='GNU/Linux ld.so'
15968 ;;
15969  
15970 netbsdelf*-gnu)
15971 version_type=linux
15972 need_lib_prefix=no
15973 need_version=no
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=no
15978 hardcode_into_libs=yes
15979 dynamic_linker='NetBSD ld.elf_so'
15980 ;;
15981  
15982 netbsd*)
15983 version_type=sunos
15984 need_lib_prefix=no
15985 need_version=no
15986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15989 dynamic_linker='NetBSD (a.out) ld.so'
15990 else
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 dynamic_linker='NetBSD ld.elf_so'
15994 fi
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=yes
15997 hardcode_into_libs=yes
15998 ;;
15999  
16000 newsos6)
16001 version_type=linux
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 shlibpath_overrides_runpath=yes
16005 ;;
16006  
16007 *nto* | *qnx*)
16008 version_type=qnx
16009 need_lib_prefix=no
16010 need_version=no
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 shlibpath_overrides_runpath=no
16015 hardcode_into_libs=yes
16016 dynamic_linker='ldqnx.so'
16017 ;;
16018  
16019 openbsd*)
16020 version_type=sunos
16021 sys_lib_dlsearch_path_spec="/usr/lib"
16022 need_lib_prefix=no
16023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16024 case $host_os in
16025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16026 *) need_version=no ;;
16027 esac
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16032 case $host_os in
16033 openbsd2.[89] | openbsd2.[89].*)
16034 shlibpath_overrides_runpath=no
16035 ;;
16036 *)
16037 shlibpath_overrides_runpath=yes
16038 ;;
16039 esac
16040 else
16041 shlibpath_overrides_runpath=yes
16042 fi
16043 ;;
16044  
16045 os2*)
16046 libname_spec='$name'
16047 shrext_cmds=".dll"
16048 need_lib_prefix=no
16049 library_names_spec='$libname${shared_ext} $libname.a'
16050 dynamic_linker='OS/2 ld.exe'
16051 shlibpath_var=LIBPATH
16052 ;;
16053  
16054 osf3* | osf4* | osf5*)
16055 version_type=osf
16056 need_lib_prefix=no
16057 need_version=no
16058 soname_spec='${libname}${release}${shared_ext}$major'
16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16063 ;;
16064  
16065 rdos*)
16066 dynamic_linker=no
16067 ;;
16068  
16069 solaris*)
16070 version_type=linux
16071 need_lib_prefix=no
16072 need_version=no
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 shlibpath_var=LD_LIBRARY_PATH
16076 shlibpath_overrides_runpath=yes
16077 hardcode_into_libs=yes
16078 # ldd complains unless libraries are executable
16079 postinstall_cmds='chmod +x $lib'
16080 ;;
16081  
16082 sunos4*)
16083 version_type=sunos
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16088 if test "$with_gnu_ld" = yes; then
16089 need_lib_prefix=no
16090 fi
16091 need_version=yes
16092 ;;
16093  
16094 sysv4 | sysv4.3*)
16095 version_type=linux
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 shlibpath_var=LD_LIBRARY_PATH
16099 case $host_vendor in
16100 sni)
16101 shlibpath_overrides_runpath=no
16102 need_lib_prefix=no
16103 runpath_var=LD_RUN_PATH
16104 ;;
16105 siemens)
16106 need_lib_prefix=no
16107 ;;
16108 motorola)
16109 need_lib_prefix=no
16110 need_version=no
16111 shlibpath_overrides_runpath=no
16112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16113 ;;
16114 esac
16115 ;;
16116  
16117 sysv4*MP*)
16118 if test -d /usr/nec ;then
16119 version_type=linux
16120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16121 soname_spec='$libname${shared_ext}.$major'
16122 shlibpath_var=LD_LIBRARY_PATH
16123 fi
16124 ;;
16125  
16126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16127 version_type=freebsd-elf
16128 need_lib_prefix=no
16129 need_version=no
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 shlibpath_overrides_runpath=yes
16134 hardcode_into_libs=yes
16135 if test "$with_gnu_ld" = yes; then
16136 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16137 else
16138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16139 case $host_os in
16140 sco3.2v5*)
16141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16142 ;;
16143 esac
16144 fi
16145 sys_lib_dlsearch_path_spec='/usr/lib'
16146 ;;
16147  
16148 tpf*)
16149 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16150 version_type=linux
16151 need_lib_prefix=no
16152 need_version=no
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 shlibpath_overrides_runpath=no
16156 hardcode_into_libs=yes
16157 ;;
16158  
16159 uts4*)
16160 version_type=linux
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 shlibpath_var=LD_LIBRARY_PATH
16164 ;;
16165  
16166 *)
16167 dynamic_linker=no
16168 ;;
16169 esac
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16171 $as_echo "$dynamic_linker" >&6; }
16172 test "$dynamic_linker" = no && can_build_shared=no
16173  
16174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16175 if test "$GCC" = yes; then
16176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16177 fi
16178  
16179 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16180 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16181 fi
16182 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16183 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16184 fi
16185  
16186  
16187  
16188  
16189  
16190  
16191  
16192  
16193  
16194  
16195  
16196  
16197  
16198  
16199  
16200  
16201  
16202  
16203  
16204  
16205  
16206  
16207  
16208  
16209  
16210  
16211  
16212  
16213  
16214  
16215  
16216  
16217  
16218  
16219  
16220  
16221  
16222  
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16224 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16225 hardcode_action_CXX=
16226 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16227 test -n "$runpath_var_CXX" ||
16228 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16229  
16230 # We can hardcode non-existent directories.
16231 if test "$hardcode_direct_CXX" != no &&
16232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16233 # have to relink, otherwise we might link with an installed library
16234 # when we should be linking with a yet-to-be-installed one
16235 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16236 test "$hardcode_minus_L_CXX" != no; then
16237 # Linking always hardcodes the temporary library directory.
16238 hardcode_action_CXX=relink
16239 else
16240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16241 hardcode_action_CXX=immediate
16242 fi
16243 else
16244 # We cannot hardcode anything, or else we can only hardcode existing
16245 # directories.
16246 hardcode_action_CXX=unsupported
16247 fi
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16249 $as_echo "$hardcode_action_CXX" >&6; }
16250  
16251 if test "$hardcode_action_CXX" = relink ||
16252 test "$inherit_rpath_CXX" = yes; then
16253 # Fast installation is not supported
16254 enable_fast_install=no
16255 elif test "$shlibpath_overrides_runpath" = yes ||
16256 test "$enable_shared" = no; then
16257 # Fast installation is not necessary
16258 enable_fast_install=needless
16259 fi
16260  
16261  
16262  
16263  
16264  
16265  
16266  
16267 fi # test -n "$compiler"
16268  
16269 CC=$lt_save_CC
16270 CFLAGS=$lt_save_CFLAGS
16271 LDCXX=$LD
16272 LD=$lt_save_LD
16273 GCC=$lt_save_GCC
16274 with_gnu_ld=$lt_save_with_gnu_ld
16275 lt_cv_path_LDCXX=$lt_cv_path_LD
16276 lt_cv_path_LD=$lt_save_path_LD
16277 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16278 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16279 fi # test "$_lt_caught_CXX_error" != yes
16280  
16281 ac_ext=c
16282 ac_cpp='$CPP $CPPFLAGS'
16283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16286  
16287  
16288  
16289  
16290  
16291  
16292  
16293  
16294  
16295  
16296  
16297  
16298  
16299 ac_config_commands="$ac_config_commands libtool"
16300  
16301  
16302  
16303  
16304 # Only expand once:
16305  
16306  
16307  
16308 # Extract the first word of "perl", so it can be a program name with args.
16309 set dummy perl; ac_word=$2
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16311 $as_echo_n "checking for $ac_word... " >&6; }
16312 if ${ac_cv_prog_PERL+:} false; then :
16313 $as_echo_n "(cached) " >&6
16314 else
16315 if test -n "$PERL"; then
16316 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16317 else
16318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16319 for as_dir in $PATH
16320 do
16321 IFS=$as_save_IFS
16322 test -z "$as_dir" && as_dir=.
16323 for ac_exec_ext in '' $ac_executable_extensions; do
16324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16325 ac_cv_prog_PERL="perl"
16326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16327 break 2
16328 fi
16329 done
16330 done
16331 IFS=$as_save_IFS
16332  
16333 fi
16334 fi
16335 PERL=$ac_cv_prog_PERL
16336 if test -n "$PERL"; then
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16338 $as_echo "$PERL" >&6; }
16339 else
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341 $as_echo "no" >&6; }
16342 fi
16343  
16344  
16345 # Extract the first word of "pdflatex", so it can be a program name with args.
16346 set dummy pdflatex; ac_word=$2
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16348 $as_echo_n "checking for $ac_word... " >&6; }
16349 if ${ac_cv_prog_PDFLATEX+:} false; then :
16350 $as_echo_n "(cached) " >&6
16351 else
16352 if test -n "$PDFLATEX"; then
16353 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
16354 else
16355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16356 for as_dir in $PATH
16357 do
16358 IFS=$as_save_IFS
16359 test -z "$as_dir" && as_dir=.
16360 for ac_exec_ext in '' $ac_executable_extensions; do
16361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16362 ac_cv_prog_PDFLATEX="pdflatex"
16363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16364 break 2
16365 fi
16366 done
16367 done
16368 IFS=$as_save_IFS
16369  
16370 fi
16371 fi
16372 PDFLATEX=$ac_cv_prog_PDFLATEX
16373 if test -n "$PDFLATEX"; then
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
16375 $as_echo "$PDFLATEX" >&6; }
16376 else
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16378 $as_echo "no" >&6; }
16379 fi
16380  
16381  
16382 # Extract the first word of "pod2html", so it can be a program name with args.
16383 set dummy pod2html; ac_word=$2
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16385 $as_echo_n "checking for $ac_word... " >&6; }
16386 if ${ac_cv_prog_POD2HTML+:} false; then :
16387 $as_echo_n "(cached) " >&6
16388 else
16389 if test -n "$POD2HTML"; then
16390 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
16391 else
16392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16393 for as_dir in $PATH
16394 do
16395 IFS=$as_save_IFS
16396 test -z "$as_dir" && as_dir=.
16397 for ac_exec_ext in '' $ac_executable_extensions; do
16398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16399 ac_cv_prog_POD2HTML="pod2html"
16400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16401 break 2
16402 fi
16403 done
16404 done
16405 IFS=$as_save_IFS
16406  
16407 fi
16408 fi
16409 POD2HTML=$ac_cv_prog_POD2HTML
16410 if test -n "$POD2HTML"; then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
16412 $as_echo "$POD2HTML" >&6; }
16413 else
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16415 $as_echo "no" >&6; }
16416 fi
16417  
16418  
16419  
16420 if test -n "$PERL" -a -n "$PDFLATEX" -a -n "$POD2HTML"; then
16421 GENERATE_DOC_TRUE=
16422 GENERATE_DOC_FALSE='#'
16423 else
16424 GENERATE_DOC_TRUE='#'
16425 GENERATE_DOC_FALSE=
16426 fi
16427  
16428  
16429 # ------ AX CREATE STDINT H -------------------------------------
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
16431 $as_echo_n "checking for stdint types... " >&6; }
16432 ac_stdint_h=`echo include/isl/stdint.h`
16433 # try to shortcircuit - if the default include path of the compiler
16434 # can find a "stdint.h" header then we assume that all compilers can.
16435 if ${ac_cv_header_stdint_t+:} false; then :
16436 $as_echo_n "(cached) " >&6
16437 else
16438  
16439 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
16440 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
16441 old_CFLAGS="$CFLAGS" ; CFLAGS=""
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16444 #include <stdint.h>
16445 int
16446 main ()
16447 {
16448 int_least32_t v = 0;
16449 ;
16450 return 0;
16451 }
16452 _ACEOF
16453 if ac_fn_c_try_compile "$LINENO"; then :
16454 ac_cv_stdint_result="(assuming C99 compatible system)"
16455 ac_cv_header_stdint_t="stdint.h";
16456 else
16457 ac_cv_header_stdint_t=""
16458 fi
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
16461 CFLAGS="-std=c99"
16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16464 #include <stdint.h>
16465 int
16466 main ()
16467 {
16468 int_least32_t v = 0;
16469 ;
16470 return 0;
16471 }
16472 _ACEOF
16473 if ac_fn_c_try_compile "$LINENO"; then :
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
16475 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
16476 fi
16477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16478 fi
16479 CXXFLAGS="$old_CXXFLAGS"
16480 CPPFLAGS="$old_CPPFLAGS"
16481 CFLAGS="$old_CFLAGS"
16482 fi
16483  
16484  
16485 v="... $ac_cv_header_stdint_h"
16486 if test "$ac_stdint_h" = "stdint.h" ; then
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
16488 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
16489 elif test "$ac_stdint_h" = "inttypes.h" ; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
16491 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
16492 elif test "_$ac_cv_header_stdint_t" = "_" ; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
16494 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
16495 else
16496 ac_cv_header_stdint="$ac_cv_header_stdint_t"
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
16498 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
16499 fi
16500  
16501 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
16502  
16503  
16504 inttype_headers=`echo | sed -e 's/,/ /g'`
16505  
16506 ac_cv_stdint_result="(no helpful system typedefs seen)"
16507  
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
16509 $as_echo_n "checking for stdint uintptr_t... " >&6; }
16510 if ${ac_cv_header_stdint_x+:} false; then :
16511 $as_echo_n "(cached) " >&6
16512 else
16513  
16514 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16516 $as_echo "(..)" >&6; }
16517 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
16518 do
16519 unset ac_cv_type_uintptr_t
16520 unset ac_cv_type_uint64_t
16521 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
16522 "
16523 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16524 ac_cv_header_stdint_x=$i
16525 else
16526 continue
16527 fi
16528  
16529 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
16530 "
16531 if test "x$ac_cv_type_uint64_t" = xyes; then :
16532 and64="/uint64_t"
16533 else
16534 and64=""
16535 fi
16536  
16537 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
16538 break
16539 done
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
16541 $as_echo_n "checking for stdint uintptr_t... " >&6; }
16542  
16543 fi
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
16545 $as_echo "$ac_cv_header_stdint_x" >&6; }
16546  
16547  
16548 if test "_$ac_cv_header_stdint_x" = "_" ; then
16549  
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
16551 $as_echo_n "checking for stdint uint32_t... " >&6; }
16552 if ${ac_cv_header_stdint_o+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555  
16556 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16558 $as_echo "(..)" >&6; }
16559 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
16560 do
16561 unset ac_cv_type_uint32_t
16562 unset ac_cv_type_uint64_t
16563 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
16564 "
16565 if test "x$ac_cv_type_uint32_t" = xyes; then :
16566 ac_cv_header_stdint_o=$i
16567 else
16568 continue
16569 fi
16570  
16571 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
16572 "
16573 if test "x$ac_cv_type_uint64_t" = xyes; then :
16574 and64="/uint64_t"
16575 else
16576 and64=""
16577 fi
16578  
16579 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
16580 break
16581 break;
16582 done
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
16584 $as_echo_n "checking for stdint uint32_t... " >&6; }
16585  
16586 fi
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
16588 $as_echo "$ac_cv_header_stdint_o" >&6; }
16589  
16590 fi
16591  
16592 if test "_$ac_cv_header_stdint_x" = "_" ; then
16593 if test "_$ac_cv_header_stdint_o" = "_" ; then
16594  
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
16596 $as_echo_n "checking for stdint u_int32_t... " >&6; }
16597 if ${ac_cv_header_stdint_u+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600  
16601 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16603 $as_echo "(..)" >&6; }
16604 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
16605 unset ac_cv_type_u_int32_t
16606 unset ac_cv_type_u_int64_t
16607 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
16608 "
16609 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16610 ac_cv_header_stdint_u=$i
16611 else
16612 continue
16613 fi
16614  
16615 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
16616 "
16617 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16618 and64="/u_int64_t"
16619 else
16620 and64=""
16621 fi
16622  
16623 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
16624 break
16625 break;
16626 done
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
16628 $as_echo_n "checking for stdint u_int32_t... " >&6; }
16629  
16630 fi
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
16632 $as_echo "$ac_cv_header_stdint_u" >&6; }
16633  
16634 fi fi
16635  
16636 if test "_$ac_cv_header_stdint_x" = "_" ; then
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
16638 $as_echo_n "checking for stdint datatype model... " >&6; }
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
16640 $as_echo "(..)" >&6; }
16641  
16642 # The cast to long int works around a bug in the HP C Compiler
16643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16645 # This bug is HP SR number 8606223364.
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16647 $as_echo_n "checking size of char... " >&6; }
16648 if ${ac_cv_sizeof_char+:} false; then :
16649 $as_echo_n "(cached) " >&6
16650 else
16651 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16652  
16653 else
16654 if test "$ac_cv_type_char" = yes; then
16655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16657 as_fn_error 77 "cannot compute sizeof (char)
16658 See \`config.log' for more details" "$LINENO" 5; }
16659 else
16660 ac_cv_sizeof_char=0
16661 fi
16662 fi
16663  
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16666 $as_echo "$ac_cv_sizeof_char" >&6; }
16667  
16668  
16669  
16670 cat >>confdefs.h <<_ACEOF
16671 #define SIZEOF_CHAR $ac_cv_sizeof_char
16672 _ACEOF
16673  
16674  
16675 # The cast to long int works around a bug in the HP C Compiler
16676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16678 # This bug is HP SR number 8606223364.
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16680 $as_echo_n "checking size of short... " >&6; }
16681 if ${ac_cv_sizeof_short+:} false; then :
16682 $as_echo_n "(cached) " >&6
16683 else
16684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16685  
16686 else
16687 if test "$ac_cv_type_short" = yes; then
16688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16690 as_fn_error 77 "cannot compute sizeof (short)
16691 See \`config.log' for more details" "$LINENO" 5; }
16692 else
16693 ac_cv_sizeof_short=0
16694 fi
16695 fi
16696  
16697 fi
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16699 $as_echo "$ac_cv_sizeof_short" >&6; }
16700  
16701  
16702  
16703 cat >>confdefs.h <<_ACEOF
16704 #define SIZEOF_SHORT $ac_cv_sizeof_short
16705 _ACEOF
16706  
16707  
16708 # The cast to long int works around a bug in the HP C Compiler
16709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16711 # This bug is HP SR number 8606223364.
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16713 $as_echo_n "checking size of int... " >&6; }
16714 if ${ac_cv_sizeof_int+:} false; then :
16715 $as_echo_n "(cached) " >&6
16716 else
16717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16718  
16719 else
16720 if test "$ac_cv_type_int" = yes; then
16721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16723 as_fn_error 77 "cannot compute sizeof (int)
16724 See \`config.log' for more details" "$LINENO" 5; }
16725 else
16726 ac_cv_sizeof_int=0
16727 fi
16728 fi
16729  
16730 fi
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16732 $as_echo "$ac_cv_sizeof_int" >&6; }
16733  
16734  
16735  
16736 cat >>confdefs.h <<_ACEOF
16737 #define SIZEOF_INT $ac_cv_sizeof_int
16738 _ACEOF
16739  
16740  
16741 # The cast to long int works around a bug in the HP C Compiler
16742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16744 # This bug is HP SR number 8606223364.
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16746 $as_echo_n "checking size of long... " >&6; }
16747 if ${ac_cv_sizeof_long+:} false; then :
16748 $as_echo_n "(cached) " >&6
16749 else
16750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16751  
16752 else
16753 if test "$ac_cv_type_long" = yes; then
16754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16756 as_fn_error 77 "cannot compute sizeof (long)
16757 See \`config.log' for more details" "$LINENO" 5; }
16758 else
16759 ac_cv_sizeof_long=0
16760 fi
16761 fi
16762  
16763 fi
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16765 $as_echo "$ac_cv_sizeof_long" >&6; }
16766  
16767  
16768  
16769 cat >>confdefs.h <<_ACEOF
16770 #define SIZEOF_LONG $ac_cv_sizeof_long
16771 _ACEOF
16772  
16773  
16774 # The cast to long int works around a bug in the HP C Compiler
16775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16777 # This bug is HP SR number 8606223364.
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16779 $as_echo_n "checking size of void*... " >&6; }
16780 if ${ac_cv_sizeof_voidp+:} false; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
16784  
16785 else
16786 if test "$ac_cv_type_voidp" = yes; then
16787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16789 as_fn_error 77 "cannot compute sizeof (void*)
16790 See \`config.log' for more details" "$LINENO" 5; }
16791 else
16792 ac_cv_sizeof_voidp=0
16793 fi
16794 fi
16795  
16796 fi
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16798 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16799  
16800  
16801  
16802 cat >>confdefs.h <<_ACEOF
16803 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16804 _ACEOF
16805  
16806  
16807 ac_cv_char_data_model=""
16808 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
16809 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
16810 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
16811 ac_cv_long_data_model=""
16812 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
16813 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
16814 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
16816 $as_echo_n "checking data model... " >&6; }
16817 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16818 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
16819 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
16820 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
16821 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16822 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
16823 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16824 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
16825 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16826 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
16827 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16828 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16829 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16830 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16831 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16832 222/*|333/*|444/*|666/*|888/*) :
16833 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
16834 *) ac_cv_data_model="none" ; n="very unusual model" ;;
16835 esac
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16837 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16838  
16839 fi
16840  
16841 if test "_$ac_cv_header_stdint_x" != "_" ; then
16842 ac_cv_header_stdint="$ac_cv_header_stdint_x"
16843 elif test "_$ac_cv_header_stdint_o" != "_" ; then
16844 ac_cv_header_stdint="$ac_cv_header_stdint_o"
16845 elif test "_$ac_cv_header_stdint_u" != "_" ; then
16846 ac_cv_header_stdint="$ac_cv_header_stdint_u"
16847 else
16848 ac_cv_header_stdint="stddef.h"
16849 fi
16850  
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16852 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16854 $as_echo "($ac_cv_header_stdint)" >&6; }
16855 unset ac_cv_type_int_least32_t
16856 unset ac_cv_type_int_fast32_t
16857 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16858 "
16859 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16860  
16861 fi
16862  
16863 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16864 "
16865 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16866  
16867 fi
16868  
16869 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16870 "
16871 if test "x$ac_cv_type_intmax_t" = xyes; then :
16872  
16873 fi
16874  
16875  
16876 fi # shortcircut to system "stdint.h"
16877 # ------------------ PREPARE VARIABLES ------------------------------
16878 if test "$GCC" = "yes" ; then
16879 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16880 else
16881 ac_cv_stdint_message="using $CC"
16882 fi
16883  
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16885 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16886  
16887 # ----------------- DONE inttypes.h checks START header -------------
16888 ac_config_commands="$ac_config_commands $ac_stdint_h"
16889  
16890  
16891  
16892  
16893  
16894  
16895 # Check whether --with-gmp was given.
16896 if test "${with_gmp+set}" = set; then :
16897 withval=$with_gmp;
16898 fi
16899  
16900 case "system" in
16901 system|build)
16902  
16903 # Check whether --with-gmp_prefix was given.
16904 if test "${with_gmp_prefix+set}" = set; then :
16905 withval=$with_gmp_prefix;
16906 fi
16907  
16908  
16909 # Check whether --with-gmp_exec_prefix was given.
16910 if test "${with_gmp_exec_prefix+set}" = set; then :
16911 withval=$with_gmp_exec_prefix;
16912 fi
16913  
16914 esac
16915  
16916 # Check whether --with-gmp_builddir was given.
16917 if test "${with_gmp_builddir+set}" = set; then :
16918 withval=$with_gmp_builddir;
16919 fi
16920  
16921 if test "x$with_gmp_prefix" != "x" -a "x$with_gmp_exec_prefix" = "x"; then
16922 with_gmp_exec_prefix=$with_gmp_prefix
16923 fi
16924 if test "x$with_gmp_prefix" != "x" -o "x$with_gmp_exec_prefix" != "x"; then
16925 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xsystem"; then
16926 as_fn_error $? "Setting $with_gmp_prefix implies use of system gmp" "$LINENO" 5
16927 fi
16928 with_gmp="system"
16929 fi
16930 if test "x$with_gmp_builddir" != "x"; then
16931 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xbuild"; then
16932 as_fn_error $? "Setting $with_gmp_builddir implies use of build gmp" "$LINENO" 5
16933 fi
16934 with_gmp="build"
16935 gmp_srcdir=`echo @abs_srcdir@ | $with_gmp_builddir/config.status --file=-`
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: gmp sources in $gmp_srcdir" >&5
16937 $as_echo "$as_me: gmp sources in $gmp_srcdir" >&6;}
16938 fi
16939 if test "x$with_gmp_exec_prefix" != "x"; then
16940 export PKG_CONFIG_PATH="$with_gmp_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}"
16941 fi
16942 case "$with_gmp" in
16943 system|build)
16944 ;;
16945 *)
16946 case "system" in
16947 bundled)
16948 if test -d $srcdir/.git -a \
16949 -d $srcdir/gmp -a \
16950 ! -d $srcdir/gmp/.git; then
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule gmp not initialized" >&5
16952 $as_echo "$as_me: WARNING: git repo detected, but submodule gmp not initialized" >&2;}
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5
16954 $as_echo "$as_me: WARNING: You may want to run" >&2;}
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5
16956 $as_echo "$as_me: WARNING: git submodule init" >&2;}
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5
16958 $as_echo "$as_me: WARNING: git submodule update" >&2;}
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5
16960 $as_echo "$as_me: WARNING: sh autogen.sh" >&2;}
16961 fi
16962 if test -f $srcdir/gmp/configure; then
16963 with_gmp="bundled"
16964 else
16965 with_gmp="no"
16966 fi
16967 ;;
16968 *)
16969 with_gmp="system"
16970 ;;
16971 esac
16972 ;;
16973 esac
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which gmp to use" >&5
16975 $as_echo_n "checking which gmp to use... " >&6; }
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gmp" >&5
16977 $as_echo "$with_gmp" >&6; }
16978  
16979  
16980  
16981  
16982  
16983  
16984 case "$with_gmp" in
16985 system)
16986 if test "x$with_gmp_prefix" != "x"; then
16987 isl_configure_args="$isl_configure_args --with-gmp=$with_gmp_prefix"
16988 GMP_CPPFLAGS="-I$with_gmp_prefix/include"
16989 GMP_LDFLAGS="-L$with_gmp_prefix/lib"
16990 fi
16991 GMP_LIBS=-lgmp
16992 ;;
16993 build)
16994 GMP_CPPFLAGS="-I$gmp_srcdir -I$with_gmp_builddir"
16995 GMP_LIBS="$with_gmp_builddir/libgmp.la"
16996 ;;
16997 esac
16998 SAVE_CPPFLAGS="$CPPFLAGS"
16999 CPPFLAGS="$GMP_CPPFLAGS $CPPFLAGS"
17000 need_get_memory_functions=false
17001 ac_fn_c_check_decl "$LINENO" "mp_get_memory_functions" "ac_cv_have_decl_mp_get_memory_functions" "#include <gmp.h>
17002 "
17003 if test "x$ac_cv_have_decl_mp_get_memory_functions" = xyes; then :
17004 ac_have_decl=1
17005 else
17006 ac_have_decl=0
17007 fi
17008  
17009 cat >>confdefs.h <<_ACEOF
17010 #define HAVE_DECL_MP_GET_MEMORY_FUNCTIONS $ac_have_decl
17011 _ACEOF
17012 if test $ac_have_decl = 1; then :
17013  
17014 else
17015  
17016 need_get_memory_functions=true
17017  
17018 fi
17019  
17020 CPPFLAGS="$SAVE_CPPFLAGS"
17021 if test x$need_get_memory_functions = xtrue; then
17022 NEED_GET_MEMORY_FUNCTIONS_TRUE=
17023 NEED_GET_MEMORY_FUNCTIONS_FALSE='#'
17024 else
17025 NEED_GET_MEMORY_FUNCTIONS_TRUE='#'
17026 NEED_GET_MEMORY_FUNCTIONS_FALSE=
17027 fi
17028  
17029  
17030  
17031  
17032  
17033 # Check whether --with-piplib was given.
17034 if test "${with_piplib+set}" = set; then :
17035 withval=$with_piplib;
17036 fi
17037  
17038 case "system" in
17039 no|system|build)
17040  
17041 # Check whether --with-piplib_prefix was given.
17042 if test "${with_piplib_prefix+set}" = set; then :
17043 withval=$with_piplib_prefix;
17044 fi
17045  
17046  
17047 # Check whether --with-piplib_exec_prefix was given.
17048 if test "${with_piplib_exec_prefix+set}" = set; then :
17049 withval=$with_piplib_exec_prefix;
17050 fi
17051  
17052 esac
17053  
17054 # Check whether --with-piplib_builddir was given.
17055 if test "${with_piplib_builddir+set}" = set; then :
17056 withval=$with_piplib_builddir;
17057 fi
17058  
17059 if test "x$with_piplib_prefix" != "x" -a "x$with_piplib_exec_prefix" = "x"; then
17060 with_piplib_exec_prefix=$with_piplib_prefix
17061 fi
17062 if test "x$with_piplib_prefix" != "x" -o "x$with_piplib_exec_prefix" != "x"; then
17063 if test "x$with_piplib" != "x" -a "x$with_piplib" != "xyes" -a "x$with_piplib" != "xsystem"; then
17064 as_fn_error $? "Setting $with_piplib_prefix implies use of system piplib" "$LINENO" 5
17065 fi
17066 with_piplib="system"
17067 fi
17068 if test "x$with_piplib_builddir" != "x"; then
17069 if test "x$with_piplib" != "x" -a "x$with_piplib" != "xyes" -a "x$with_piplib" != "xbuild"; then
17070 as_fn_error $? "Setting $with_piplib_builddir implies use of build piplib" "$LINENO" 5
17071 fi
17072 with_piplib="build"
17073 piplib_srcdir=`echo @abs_srcdir@ | $with_piplib_builddir/config.status --file=-`
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: piplib sources in $piplib_srcdir" >&5
17075 $as_echo "$as_me: piplib sources in $piplib_srcdir" >&6;}
17076 fi
17077 if test "x$with_piplib_exec_prefix" != "x"; then
17078 export PKG_CONFIG_PATH="$with_piplib_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}"
17079 fi
17080 case "$with_piplib" in
17081 no|system|build)
17082 ;;
17083 *)
17084 case "no" in
17085 bundled)
17086 if test -d $srcdir/.git -a \
17087 -d $srcdir/piplib -a \
17088 ! -d $srcdir/piplib/.git; then
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule piplib not initialized" >&5
17090 $as_echo "$as_me: WARNING: git repo detected, but submodule piplib not initialized" >&2;}
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5
17092 $as_echo "$as_me: WARNING: You may want to run" >&2;}
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5
17094 $as_echo "$as_me: WARNING: git submodule init" >&2;}
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5
17096 $as_echo "$as_me: WARNING: git submodule update" >&2;}
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5
17098 $as_echo "$as_me: WARNING: sh autogen.sh" >&2;}
17099 fi
17100 if test -f $srcdir/piplib/configure; then
17101 with_piplib="bundled"
17102 else
17103 with_piplib="no"
17104 fi
17105 ;;
17106 *)
17107 with_piplib="no"
17108 ;;
17109 esac
17110 ;;
17111 esac
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which piplib to use" >&5
17113 $as_echo_n "checking which piplib to use... " >&6; }
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_piplib" >&5
17115 $as_echo "$with_piplib" >&6; }
17116  
17117  
17118  
17119 have_piplib=false
17120  
17121  
17122  
17123 case "$with_piplib" in
17124 build)
17125 PIPLIB_CPPFLAGS="-I$piplib_srcdir/include"
17126 PIPLIB_LIBS="$with_piplib_builddir/libpiplibMP.la"
17127 ;;
17128 system)
17129 PIPLIB_LIBS="-lpiplibMP"
17130 if test "x$with_piplib_prefix" != "x"; then
17131 PIPLIB_CPPFLAGS="-I$with_piplib_prefix/include"
17132 PIPLIB_LDFLAGS="-L$with_piplib_prefix/lib"
17133 fi
17134 SAVE_CPPFLAGS="$CPPFLAGS"
17135 SAVE_LDFLAGS="$LDFLAGS"
17136 CPPFLAGS="$PIPLIB_CPPFLAGS $CPPFLAGS"
17137 LDFLAGS="$PIPLIB_LDFLAGS $LDFLAGS"
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pip_solve in -lpiplibMP" >&5
17139 $as_echo_n "checking for pip_solve in -lpiplibMP... " >&6; }
17140 if ${ac_cv_lib_piplibMP_pip_solve+:} false; then :
17141 $as_echo_n "(cached) " >&6
17142 else
17143 ac_check_lib_save_LIBS=$LIBS
17144 LIBS="-lpiplibMP $LIBS"
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147  
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17151 #ifdef __cplusplus
17152 extern "C"
17153 #endif
17154 char pip_solve ();
17155 int
17156 main ()
17157 {
17158 return pip_solve ();
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 ac_cv_lib_piplibMP_pip_solve=yes
17165 else
17166 ac_cv_lib_piplibMP_pip_solve=no
17167 fi
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17170 LIBS=$ac_check_lib_save_LIBS
17171 fi
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_piplibMP_pip_solve" >&5
17173 $as_echo "$ac_cv_lib_piplibMP_pip_solve" >&6; }
17174 if test "x$ac_cv_lib_piplibMP_pip_solve" = xyes; then :
17175  
17176 ac_fn_c_check_member "$LINENO" "PipOptions" "Urs_parms" "ac_cv_member_PipOptions_Urs_parms" "#include <piplib/piplibMP.h>
17177 "
17178 if test "x$ac_cv_member_PipOptions_Urs_parms" = xyes; then :
17179  
17180 else
17181  
17182 as_fn_error $? "Piplib too old; please install version 1.3.6 or newer" "$LINENO" 5
17183  
17184 fi
17185  
17186  
17187 else
17188  
17189 as_fn_error $? "Piplib not found" "$LINENO" 5
17190  
17191 fi
17192  
17193 CPPFLAGS="$SAVE_CPPFLAGS"
17194 LDFLAGS="$SAVE_LDFLAGS"
17195 ;;
17196 no)
17197 ;;
17198 *)
17199 as_fn_error $? "unsupported" "$LINENO" 5
17200 ;;
17201 esac
17202 if test "$with_piplib" != "no"; then
17203  
17204 $as_echo "#define ISL_PIPLIB /**/" >>confdefs.h
17205  
17206 have_piplib=true
17207 fi
17208 if test x$have_piplib = xtrue; then
17209 HAVE_PIPLIB_TRUE=
17210 HAVE_PIPLIB_FALSE='#'
17211 else
17212 HAVE_PIPLIB_TRUE='#'
17213 HAVE_PIPLIB_FALSE=
17214 fi
17215  
17216  
17217  
17218  
17219  
17220  
17221  
17222  
17223 # Check whether --with-clang was given.
17224 if test "${with_clang+set}" = set; then :
17225 withval=$with_clang;
17226 fi
17227  
17228 case "system" in
17229 system|no)
17230  
17231 # Check whether --with-clang_prefix was given.
17232 if test "${with_clang_prefix+set}" = set; then :
17233 withval=$with_clang_prefix;
17234 fi
17235  
17236  
17237 # Check whether --with-clang_exec_prefix was given.
17238 if test "${with_clang_exec_prefix+set}" = set; then :
17239 withval=$with_clang_exec_prefix;
17240 fi
17241  
17242 esac
17243  
17244 if test "x$with_clang_prefix" != "x" -a "x$with_clang_exec_prefix" = "x"; then
17245 with_clang_exec_prefix=$with_clang_prefix
17246 fi
17247 if test "x$with_clang_prefix" != "x" -o "x$with_clang_exec_prefix" != "x"; then
17248 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xsystem"; then
17249 as_fn_error $? "Setting $with_clang_prefix implies use of system clang" "$LINENO" 5
17250 fi
17251 with_clang="system"
17252 fi
17253 if test "x$with_clang_builddir" != "x"; then
17254 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xbuild"; then
17255 as_fn_error $? "Setting $with_clang_builddir implies use of build clang" "$LINENO" 5
17256 fi
17257 with_clang="build"
17258 clang_srcdir=`echo @abs_srcdir@ | $with_clang_builddir/config.status --file=-`
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: clang sources in $clang_srcdir" >&5
17260 $as_echo "$as_me: clang sources in $clang_srcdir" >&6;}
17261 fi
17262 if test "x$with_clang_exec_prefix" != "x"; then
17263 export PKG_CONFIG_PATH="$with_clang_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}"
17264 fi
17265 case "$with_clang" in
17266 system|no)
17267 ;;
17268 *)
17269 case "no" in
17270 bundled)
17271 if test -d $srcdir/.git -a \
17272 -d $srcdir/clang -a \
17273 ! -d $srcdir/clang/.git; then
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule clang not initialized" >&5
17275 $as_echo "$as_me: WARNING: git repo detected, but submodule clang not initialized" >&2;}
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5
17277 $as_echo "$as_me: WARNING: You may want to run" >&2;}
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5
17279 $as_echo "$as_me: WARNING: git submodule init" >&2;}
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5
17281 $as_echo "$as_me: WARNING: git submodule update" >&2;}
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5
17283 $as_echo "$as_me: WARNING: sh autogen.sh" >&2;}
17284 fi
17285 if test -f $srcdir/clang/configure; then
17286 with_clang="bundled"
17287 else
17288 with_clang="no"
17289 fi
17290 ;;
17291 *)
17292 with_clang="no"
17293 ;;
17294 esac
17295 ;;
17296 esac
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which clang to use" >&5
17298 $as_echo_n "checking which clang to use... " >&6; }
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_clang" >&5
17300 $as_echo "$with_clang" >&6; }
17301  
17302  
17303 case "$with_clang" in
17304 system)
17305 llvm_config="llvm-config"
17306 # Extract the first word of ""$llvm_config"", so it can be a program name with args.
17307 set dummy "$llvm_config"; ac_word=$2
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17309 $as_echo_n "checking for $ac_word... " >&6; }
17310 if ${ac_cv_prog_llvm_config_found+:} false; then :
17311 $as_echo_n "(cached) " >&6
17312 else
17313 if test -n "$llvm_config_found"; then
17314 ac_cv_prog_llvm_config_found="$llvm_config_found" # Let the user override the test.
17315 else
17316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17317 for as_dir in $PATH
17318 do
17319 IFS=$as_save_IFS
17320 test -z "$as_dir" && as_dir=.
17321 for ac_exec_ext in '' $ac_executable_extensions; do
17322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17323 ac_cv_prog_llvm_config_found="yes"
17324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17325 break 2
17326 fi
17327 done
17328 done
17329 IFS=$as_save_IFS
17330  
17331 fi
17332 fi
17333 llvm_config_found=$ac_cv_prog_llvm_config_found
17334 if test -n "$llvm_config_found"; then
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_config_found" >&5
17336 $as_echo "$llvm_config_found" >&6; }
17337 else
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340 fi
17341  
17342  
17343 if test "x$with_clang_prefix" != "x"; then
17344 llvm_config="$with_clang_prefix/bin/llvm-config"
17345 if test -x "$llvm_config"; then
17346 llvm_config_found=yes
17347 fi
17348 fi
17349 if test "$llvm_config_found" != yes; then
17350 as_fn_error $? "llvm-config not found" "$LINENO" 5
17351 fi
17352 CLANG_CXXFLAGS=`$llvm_config --cxxflags`
17353 CLANG_LDFLAGS=`$llvm_config --ldflags`
17354 CLANG_LIBS=`$llvm_config --libs analysis`
17355 CLANG_PREFIX=`$llvm_config --prefix`
17356  
17357 cat >>confdefs.h <<_ACEOF
17358 #define CLANG_PREFIX "$CLANG_PREFIX"
17359 _ACEOF
17360  
17361  
17362 SAVE_CPPFLAGS="$CPPFLAGS"
17363 CPPFLAGS="$CLANG_CXXFLAGS $CPPFLAGS"
17364 ac_ext=cpp
17365 ac_cpp='$CXXCPP $CPPFLAGS'
17366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17369  
17370  
17371 ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/SourceLocation.h" "ac_cv_header_clang_Basic_SourceLocation_h" "$ac_includes_default"
17372 if test "x$ac_cv_header_clang_Basic_SourceLocation_h" = xyes; then :
17373  
17374 else
17375 as_fn_error $? "clang header file not found" "$LINENO" 5
17376 fi
17377  
17378  
17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380 /* end confdefs.h. */
17381 #include <llvm/Support/Host.h>
17382  
17383 _ACEOF
17384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17385 $EGREP "getDefaultTargetTriple" >/dev/null 2>&1; then :
17386  
17387 else
17388  
17389 $as_echo "#define getDefaultTargetTriple getHostTriple" >>confdefs.h
17390  
17391 fi
17392 rm -f conftest*
17393  
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17396 #include <clang/Basic/SourceLocation.h>
17397  
17398 _ACEOF
17399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17400 $EGREP "getExpansionLineNumber" >/dev/null 2>&1; then :
17401  
17402 else
17403  
17404 $as_echo "#define getExpansionLineNumber getInstantiationLineNumber" >>confdefs.h
17405  
17406 fi
17407 rm -f conftest*
17408  
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411 #include <clang/Basic/Diagnostic.h>
17412  
17413 _ACEOF
17414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17415 $EGREP "DiagnosticsEngine" >/dev/null 2>&1; then :
17416  
17417 else
17418  
17419 $as_echo "#define DiagnosticsEngine Diagnostic" >>confdefs.h
17420  
17421 fi
17422 rm -f conftest*
17423  
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17426 #include <clang/Driver/Driver.h>
17427  
17428 _ACEOF
17429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17430 $EGREP "ArrayRef" >/dev/null 2>&1; then :
17431  
17432 $as_echo "#define USE_ARRAYREF /**/" >>confdefs.h
17433  
17434 fi
17435 rm -f conftest*
17436  
17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17439 #include <clang/Driver/Driver.h>
17440  
17441 _ACEOF
17442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17443 $EGREP "CXXIsProduction" >/dev/null 2>&1; then :
17444  
17445 $as_echo "#define HAVE_CXXISPRODUCTION /**/" >>confdefs.h
17446  
17447 fi
17448 rm -f conftest*
17449  
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 #include <clang/AST/ASTConsumer.h>
17453  
17454 _ACEOF
17455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17456 $EGREP "void HandleTopLevelDecl\(" >/dev/null 2>&1; then :
17457  
17458 $as_echo "#define HandleTopLevelDeclReturn void" >>confdefs.h
17459  
17460  
17461 $as_echo "#define HandleTopLevelDeclContinue /**/" >>confdefs.h
17462  
17463 else
17464  
17465 $as_echo "#define HandleTopLevelDeclReturn bool" >>confdefs.h
17466  
17467  
17468 $as_echo "#define HandleTopLevelDeclContinue true" >>confdefs.h
17469  
17470 fi
17471 rm -f conftest*
17472  
17473 ac_ext=c
17474 ac_cpp='$CPP $CPPFLAGS'
17475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17478  
17479 CPPFLAGS="$SAVE_CPPFLAGS"
17480  
17481 SAVE_LDFLAGS="$LDFLAGS"
17482 LDFLAGS="$CLANG_LDFLAGS $LDFLAGS"
17483  
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lclangEdit" >&5
17485 $as_echo_n "checking for main in -lclangEdit... " >&6; }
17486 if ${ac_cv_lib_clangEdit_main+:} false; then :
17487 $as_echo_n "(cached) " >&6
17488 else
17489 ac_check_lib_save_LIBS=$LIBS
17490 LIBS="-lclangEdit $LIBS"
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493  
17494  
17495 int
17496 main ()
17497 {
17498 return main ();
17499 ;
17500 return 0;
17501 }
17502 _ACEOF
17503 if ac_fn_c_try_link "$LINENO"; then :
17504 ac_cv_lib_clangEdit_main=yes
17505 else
17506 ac_cv_lib_clangEdit_main=no
17507 fi
17508 rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_lib_save_LIBS
17511 fi
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangEdit_main" >&5
17513 $as_echo "$ac_cv_lib_clangEdit_main" >&6; }
17514 if test "x$ac_cv_lib_clangEdit_main" = xyes; then :
17515 LIB_CLANG_EDIT=-lclangEdit
17516 fi
17517  
17518 LDFLAGS="$SAVE_LDFLAGS"
17519 ;;
17520 esac
17521 if test $with_clang = system; then
17522 HAVE_CLANG_TRUE=
17523 HAVE_CLANG_FALSE='#'
17524 else
17525 HAVE_CLANG_TRUE='#'
17526 HAVE_CLANG_FALSE=
17527 fi
17528  
17529  
17530  
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
17532 $as_echo_n "checking for C compiler vendor... " >&6; }
17533 if ${ax_cv_c_compiler_vendor+:} false; then :
17534 $as_echo_n "(cached) " >&6
17535 else
17536 ax_cv_c_compiler_vendor=unknown
17537 # note: don't check for gcc first since some other compilers define __GNUC__
17538 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
17539 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h. */
17542  
17543 int
17544 main ()
17545 {
17546  
17547 #if !($vencpp)
17548 thisisanerror;
17549 #endif
17550  
17551 ;
17552 return 0;
17553 }
17554 _ACEOF
17555 if ac_fn_c_try_compile "$LINENO"; then :
17556 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
17557 fi
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 done
17560  
17561 fi
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
17563 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
17564  
17565  
17566 WARNING_FLAGS=""
17567  
17568 if test "${ax_cv_c_compiler_vendor}" = "clang"; then
17569 WARNING_FLAGS="-Wall"
17570 fi
17571  
17572  
17573  
17574  
17575 PACKAGE_CFLAGS="$GMP_CPPFLAGS"
17576 PACKAGE_LDFLAGS="$GMP_LDFLAGS"
17577 PACKAGE_LIBS="-lisl -lgmp"
17578  
17579 # we need the expanded forms...
17580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17582  
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
17584 $as_echo_n "checking our pkgconfig libname... " >&6; }
17585 test ".$ax_create_pkgconfig_libname" != "." || \
17586 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
17587 test ".$ax_create_pkgconfig_libname" != "." || \
17588 ax_create_pkgconfig_libname="$PACKAGE"
17589 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
17590 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
17592 $as_echo "$ax_create_pkgconfig_libname" >&6; }
17593  
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
17595 $as_echo_n "checking our pkgconfig version... " >&6; }
17596 test ".$ax_create_pkgconfig_version" != "." || \
17597 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
17598 test ".$ax_create_pkgconfig_version" != "." || \
17599 ax_create_pkgconfig_version="$VERSION"
17600 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
17601 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
17603 $as_echo "$ax_create_pkgconfig_version" >&6; }
17604  
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
17606 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
17607 test ".$pkgconfig_libdir" = "." && \
17608 pkgconfig_libdir='${libdir}/pkgconfig'
17609 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
17610 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
17611 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
17613 $as_echo "$pkgconfig_libdir" >&6; }
17614 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
17616 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
17617  
17618  
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
17620 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
17621 test ".$pkgconfig_libfile" != "." || \
17622 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
17623 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
17624 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
17626 $as_echo "$pkgconfig_libfile" >&6; }
17627 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
17629 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
17630  
17631  
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
17633 $as_echo_n "checking our package / suffix... " >&6; }
17634 ax_create_pkgconfig_suffix="$program_suffix"
17635 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
17637 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
17638  
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
17640 $as_echo_n "checking our pkgconfig description... " >&6; }
17641 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
17642 test ".$ax_create_pkgconfig_description" != "." || \
17643 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
17644 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
17645 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
17647 $as_echo "$ax_create_pkgconfig_description" >&6; }
17648  
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
17650 $as_echo_n "checking our pkgconfig requires... " >&6; }
17651 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
17652 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
17653 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
17655 $as_echo "$ax_create_pkgconfig_requires" >&6; }
17656  
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
17658 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
17659 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
17660 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
17661 ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS"
17662 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
17663 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
17665 $as_echo "$ax_create_pkgconfig_libs" >&6; }
17666  
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
17668 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
17669 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
17670 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
17671 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
17673 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
17674  
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
17676 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
17677 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
17678 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
17679 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
17681 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
17682  
17683 test ".$ax_create_pkgconfig_generate" != "." || \
17684 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
17685 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
17686 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
17687 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
17689 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
17690  
17691 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
17692 ax_create_pkgconfig_src_libdir=`pwd`
17693 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
17694 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
17696 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
17697 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
17698 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
17699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17700 s//\1/
17701 q
17702 }
17703 /^X\(\/\/\)[^/].*/{
17704 s//\1/
17705 q
17706 }
17707 /^X\(\/\/\)$/{
17708 s//\1/
17709 q
17710 }
17711 /^X\(\/\).*/{
17712 s//\1/
17713 q
17714 }
17715 s/.*/./; q'`
17716 test ! -d $ax_create_pkgconfig_src_libdir/src || \
17717 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
17718 case ".$objdir" in
17719 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
17721 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
17722 fi
17723  
17724 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
17725 ax_create_pkgconfig_src_headers=`pwd`
17726 v="$ac_top_srcdir" ;
17727 test ".$v" != "." || v="$ax_spec_dir"
17728 test ".$v" != "." || v="$srcdir"
17729 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
17730 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
17731 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17732 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
17733 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
17734 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
17735 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
17736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17737 s//\1/
17738 q
17739 }
17740 /^X\(\/\/\)[^/].*/{
17741 s//\1/
17742 q
17743 }
17744 /^X\(\/\/\)$/{
17745 s//\1/
17746 q
17747 }
17748 /^X\(\/\).*/{
17749 s//\1/
17750 q
17751 }
17752 s/.*/./; q'`
17753 test ! -d $ax_create_pkgconfig_src_headers/include || \
17754 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
17756 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
17757 fi
17758  
17759  
17760 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
17761  
17762  
17763  
17764  
17765  
17766  
17767 if test -f $srcdir/.git/HEAD; then
17768 GIT_HEAD="$srcdir/.git/index"
17769 GIT_REPO="$srcdir/.git"
17770 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe`
17771 elif test -f $srcdir/GIT_HEAD_ID; then
17772 GIT_HEAD_ID=`cat $srcdir/GIT_HEAD_ID`
17773 else
17774 mysrcdir=`(cd $srcdir; pwd)`
17775 head=`basename $mysrcdir | sed -e 's/.*-//'`
17776 head2=`echo $head | sed -e 's/^0-9a-f//'`
17777 head3=`echo $head2 | sed -e 's/........................................//'`
17778 if test "x$head3" = "x" -a "x$head" = "x$head2"; then
17779 GIT_HEAD_ID="$head"
17780 else
17781 GIT_HEAD_ID="UNKNOWN"
17782 fi
17783 fi
17784 if test -z "$GIT_REPO" ; then
17785 GIT_HEAD_VERSION="$GIT_HEAD_ID"
17786 else
17787 GIT_HEAD_VERSION="\`GIT_DIR=$GIT_REPO git describe\`"
17788 fi
17789  
17790 echo '#define GIT_HEAD_ID "'$GIT_HEAD_ID'"' > gitversion.h
17791  
17792  
17793 ac_config_headers="$ac_config_headers isl_config.h"
17794  
17795 ac_config_headers="$ac_config_headers include/isl/config.h"
17796  
17797 ac_config_files="$ac_config_files Makefile"
17798  
17799 ac_config_files="$ac_config_files doc/Makefile"
17800  
17801 if test $with_clang = system; then
17802 ac_config_files="$ac_config_files interface/Makefile"
17803  
17804 fi
17805 ac_config_files="$ac_config_files bound_test.sh"
17806  
17807 ac_config_files="$ac_config_files pip_test.sh"
17808  
17809  
17810 cat >confcache <<\_ACEOF
17811 # This file is a shell script that caches the results of configure
17812 # tests run on this system so they can be shared between configure
17813 # scripts and configure runs, see configure's option --config-cache.
17814 # It is not useful on other systems. If it contains results you don't
17815 # want to keep, you may remove or edit it.
17816 #
17817 # config.status only pays attention to the cache file if you give it
17818 # the --recheck option to rerun configure.
17819 #
17820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17822 # following values.
17823  
17824 _ACEOF
17825  
17826 # The following way of writing the cache mishandles newlines in values,
17827 # but we know of no workaround that is simple, portable, and efficient.
17828 # So, we kill variables containing newlines.
17829 # Ultrix sh set writes to stderr and can't be redirected directly,
17830 # and sets the high bit in the cache file unless we assign to the vars.
17831 (
17832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17833 eval ac_val=\$$ac_var
17834 case $ac_val in #(
17835 *${as_nl}*)
17836 case $ac_var in #(
17837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17838 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17839 esac
17840 case $ac_var in #(
17841 _ | IFS | as_nl) ;; #(
17842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17843 *) { eval $ac_var=; unset $ac_var;} ;;
17844 esac ;;
17845 esac
17846 done
17847  
17848 (set) 2>&1 |
17849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17850 *${as_nl}ac_space=\ *)
17851 # `set' does not quote correctly, so add quotes: double-quote
17852 # substitution turns \\\\ into \\, and sed turns \\ into \.
17853 sed -n \
17854 "s/'/'\\\\''/g;
17855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17856 ;; #(
17857 *)
17858 # `set' quotes correctly as required by POSIX, so do not add quotes.
17859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17860 ;;
17861 esac |
17862 sort
17863 ) |
17864 sed '
17865 /^ac_cv_env_/b end
17866 t clear
17867 :clear
17868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17869 t end
17870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17871 :end' >>confcache
17872 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17873 if test -w "$cache_file"; then
17874 if test "x$cache_file" != "x/dev/null"; then
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17876 $as_echo "$as_me: updating cache $cache_file" >&6;}
17877 if test ! -f "$cache_file" || test -h "$cache_file"; then
17878 cat confcache >"$cache_file"
17879 else
17880 case $cache_file in #(
17881 */* | ?:*)
17882 mv -f confcache "$cache_file"$$ &&
17883 mv -f "$cache_file"$$ "$cache_file" ;; #(
17884 *)
17885 mv -f confcache "$cache_file" ;;
17886 esac
17887 fi
17888 fi
17889 else
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17891 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17892 fi
17893 fi
17894 rm -f confcache
17895  
17896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17897 # Let make expand exec_prefix.
17898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17899  
17900 DEFS=-DHAVE_CONFIG_H
17901  
17902 ac_libobjs=
17903 ac_ltlibobjs=
17904 U=
17905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17906 # 1. Remove the extension, and $U if already installed.
17907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17908 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17910 # will be set to the directory where LIBOBJS objects are built.
17911 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17912 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17913 done
17914 LIBOBJS=$ac_libobjs
17915  
17916 LTLIBOBJS=$ac_ltlibobjs
17917  
17918  
17919 if test -n "$EXEEXT"; then
17920 am__EXEEXT_TRUE=
17921 am__EXEEXT_FALSE='#'
17922 else
17923 am__EXEEXT_TRUE='#'
17924 am__EXEEXT_FALSE=
17925 fi
17926  
17927 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17928 as_fn_error $? "conditional \"AMDEP\" was never defined.
17929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17930 fi
17931 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17932 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17934 fi
17935 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17936 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17938 fi
17939 if test -z "${GENERATE_DOC_TRUE}" && test -z "${GENERATE_DOC_FALSE}"; then
17940 as_fn_error $? "conditional \"GENERATE_DOC\" was never defined.
17941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17942 fi
17943 if test -z "${NEED_GET_MEMORY_FUNCTIONS_TRUE}" && test -z "${NEED_GET_MEMORY_FUNCTIONS_FALSE}"; then
17944 as_fn_error $? "conditional \"NEED_GET_MEMORY_FUNCTIONS\" was never defined.
17945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17946 fi
17947 if test -z "${HAVE_PIPLIB_TRUE}" && test -z "${HAVE_PIPLIB_FALSE}"; then
17948 as_fn_error $? "conditional \"HAVE_PIPLIB\" was never defined.
17949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17950 fi
17951 if test -z "${HAVE_CLANG_TRUE}" && test -z "${HAVE_CLANG_FALSE}"; then
17952 as_fn_error $? "conditional \"HAVE_CLANG\" was never defined.
17953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17954 fi
17955  
17956 : "${CONFIG_STATUS=./config.status}"
17957 ac_write_fail=0
17958 ac_clean_files_save=$ac_clean_files
17959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17961 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17962 as_write_fail=0
17963 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17964 #! $SHELL
17965 # Generated by $as_me.
17966 # Run this file to recreate the current configuration.
17967 # Compiler output produced by configure, useful for debugging
17968 # configure, is in config.log if it exists.
17969  
17970 debug=false
17971 ac_cs_recheck=false
17972 ac_cs_silent=false
17973  
17974 SHELL=\${CONFIG_SHELL-$SHELL}
17975 export SHELL
17976 _ASEOF
17977 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17978 ## -------------------- ##
17979 ## M4sh Initialization. ##
17980 ## -------------------- ##
17981  
17982 # Be more Bourne compatible
17983 DUALCASE=1; export DUALCASE # for MKS sh
17984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17985 emulate sh
17986 NULLCMD=:
17987 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17988 # is contrary to our usage. Disable this feature.
17989 alias -g '${1+"$@"}'='"$@"'
17990 setopt NO_GLOB_SUBST
17991 else
17992 case `(set -o) 2>/dev/null` in #(
17993 *posix*) :
17994 set -o posix ;; #(
17995 *) :
17996 ;;
17997 esac
17998 fi
17999  
18000  
18001 as_nl='
18002 '
18003 export as_nl
18004 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18005 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18006 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18007 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18008 # Prefer a ksh shell builtin over an external printf program on Solaris,
18009 # but without wasting forks for bash or zsh.
18010 if test -z "$BASH_VERSION$ZSH_VERSION" \
18011 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18012 as_echo='print -r --'
18013 as_echo_n='print -rn --'
18014 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18015 as_echo='printf %s\n'
18016 as_echo_n='printf %s'
18017 else
18018 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18019 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18020 as_echo_n='/usr/ucb/echo -n'
18021 else
18022 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18023 as_echo_n_body='eval
18024 arg=$1;
18025 case $arg in #(
18026 *"$as_nl"*)
18027 expr "X$arg" : "X\\(.*\\)$as_nl";
18028 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18029 esac;
18030 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18031 '
18032 export as_echo_n_body
18033 as_echo_n='sh -c $as_echo_n_body as_echo'
18034 fi
18035 export as_echo_body
18036 as_echo='sh -c $as_echo_body as_echo'
18037 fi
18038  
18039 # The user is always right.
18040 if test "${PATH_SEPARATOR+set}" != set; then
18041 PATH_SEPARATOR=:
18042 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18043 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18044 PATH_SEPARATOR=';'
18045 }
18046 fi
18047  
18048  
18049 # IFS
18050 # We need space, tab and new line, in precisely that order. Quoting is
18051 # there to prevent editors from complaining about space-tab.
18052 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18053 # splitting by setting IFS to empty value.)
18054 IFS=" "" $as_nl"
18055  
18056 # Find who we are. Look in the path if we contain no directory separator.
18057 as_myself=
18058 case $0 in #((
18059 *[\\/]* ) as_myself=$0 ;;
18060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18061 for as_dir in $PATH
18062 do
18063 IFS=$as_save_IFS
18064 test -z "$as_dir" && as_dir=.
18065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18066 done
18067 IFS=$as_save_IFS
18068  
18069 ;;
18070 esac
18071 # We did not find ourselves, most probably we were run as `sh COMMAND'
18072 # in which case we are not to be found in the path.
18073 if test "x$as_myself" = x; then
18074 as_myself=$0
18075 fi
18076 if test ! -f "$as_myself"; then
18077 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18078 exit 1
18079 fi
18080  
18081 # Unset variables that we do not need and which cause bugs (e.g. in
18082 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18083 # suppresses any "Segmentation fault" message there. '((' could
18084 # trigger a bug in pdksh 5.2.14.
18085 for as_var in BASH_ENV ENV MAIL MAILPATH
18086 do eval test x\${$as_var+set} = xset \
18087 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18088 done
18089 PS1='$ '
18090 PS2='> '
18091 PS4='+ '
18092  
18093 # NLS nuisances.
18094 LC_ALL=C
18095 export LC_ALL
18096 LANGUAGE=C
18097 export LANGUAGE
18098  
18099 # CDPATH.
18100 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18101  
18102  
18103 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18104 # ----------------------------------------
18105 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18106 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18107 # script with STATUS, using 1 if that was 0.
18108 as_fn_error ()
18109 {
18110 as_status=$1; test $as_status -eq 0 && as_status=1
18111 if test "$4"; then
18112 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18113 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18114 fi
18115 $as_echo "$as_me: error: $2" >&2
18116 as_fn_exit $as_status
18117 } # as_fn_error
18118  
18119  
18120 # as_fn_set_status STATUS
18121 # -----------------------
18122 # Set $? to STATUS, without forking.
18123 as_fn_set_status ()
18124 {
18125 return $1
18126 } # as_fn_set_status
18127  
18128 # as_fn_exit STATUS
18129 # -----------------
18130 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18131 as_fn_exit ()
18132 {
18133 set +e
18134 as_fn_set_status $1
18135 exit $1
18136 } # as_fn_exit
18137  
18138 # as_fn_unset VAR
18139 # ---------------
18140 # Portably unset VAR.
18141 as_fn_unset ()
18142 {
18143 { eval $1=; unset $1;}
18144 }
18145 as_unset=as_fn_unset
18146 # as_fn_append VAR VALUE
18147 # ----------------------
18148 # Append the text in VALUE to the end of the definition contained in VAR. Take
18149 # advantage of any shell optimizations that allow amortized linear growth over
18150 # repeated appends, instead of the typical quadratic growth present in naive
18151 # implementations.
18152 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18153 eval 'as_fn_append ()
18154 {
18155 eval $1+=\$2
18156 }'
18157 else
18158 as_fn_append ()
18159 {
18160 eval $1=\$$1\$2
18161 }
18162 fi # as_fn_append
18163  
18164 # as_fn_arith ARG...
18165 # ------------------
18166 # Perform arithmetic evaluation on the ARGs, and store the result in the
18167 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18168 # must be portable across $(()) and expr.
18169 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18170 eval 'as_fn_arith ()
18171 {
18172 as_val=$(( $* ))
18173 }'
18174 else
18175 as_fn_arith ()
18176 {
18177 as_val=`expr "$@" || test $? -eq 1`
18178 }
18179 fi # as_fn_arith
18180  
18181  
18182 if expr a : '\(a\)' >/dev/null 2>&1 &&
18183 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18184 as_expr=expr
18185 else
18186 as_expr=false
18187 fi
18188  
18189 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18190 as_basename=basename
18191 else
18192 as_basename=false
18193 fi
18194  
18195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18196 as_dirname=dirname
18197 else
18198 as_dirname=false
18199 fi
18200  
18201 as_me=`$as_basename -- "$0" ||
18202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18203 X"$0" : 'X\(//\)$' \| \
18204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18205 $as_echo X/"$0" |
18206 sed '/^.*\/\([^/][^/]*\)\/*$/{
18207 s//\1/
18208 q
18209 }
18210 /^X\/\(\/\/\)$/{
18211 s//\1/
18212 q
18213 }
18214 /^X\/\(\/\).*/{
18215 s//\1/
18216 q
18217 }
18218 s/.*/./; q'`
18219  
18220 # Avoid depending upon Character Ranges.
18221 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18222 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18223 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18224 as_cr_digits='0123456789'
18225 as_cr_alnum=$as_cr_Letters$as_cr_digits
18226  
18227 ECHO_C= ECHO_N= ECHO_T=
18228 case `echo -n x` in #(((((
18229 -n*)
18230 case `echo 'xy\c'` in
18231 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18232 xy) ECHO_C='\c';;
18233 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18234 ECHO_T=' ';;
18235 esac;;
18236 *)
18237 ECHO_N='-n';;
18238 esac
18239  
18240 rm -f conf$$ conf$$.exe conf$$.file
18241 if test -d conf$$.dir; then
18242 rm -f conf$$.dir/conf$$.file
18243 else
18244 rm -f conf$$.dir
18245 mkdir conf$$.dir 2>/dev/null
18246 fi
18247 if (echo >conf$$.file) 2>/dev/null; then
18248 if ln -s conf$$.file conf$$ 2>/dev/null; then
18249 as_ln_s='ln -s'
18250 # ... but there are two gotchas:
18251 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18252 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18253 # In both cases, we have to default to `cp -p'.
18254 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18255 as_ln_s='cp -p'
18256 elif ln conf$$.file conf$$ 2>/dev/null; then
18257 as_ln_s=ln
18258 else
18259 as_ln_s='cp -p'
18260 fi
18261 else
18262 as_ln_s='cp -p'
18263 fi
18264 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18265 rmdir conf$$.dir 2>/dev/null
18266  
18267  
18268 # as_fn_mkdir_p
18269 # -------------
18270 # Create "$as_dir" as a directory, including parents if necessary.
18271 as_fn_mkdir_p ()
18272 {
18273  
18274 case $as_dir in #(
18275 -*) as_dir=./$as_dir;;
18276 esac
18277 test -d "$as_dir" || eval $as_mkdir_p || {
18278 as_dirs=
18279 while :; do
18280 case $as_dir in #(
18281 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18282 *) as_qdir=$as_dir;;
18283 esac
18284 as_dirs="'$as_qdir' $as_dirs"
18285 as_dir=`$as_dirname -- "$as_dir" ||
18286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18287 X"$as_dir" : 'X\(//\)[^/]' \| \
18288 X"$as_dir" : 'X\(//\)$' \| \
18289 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18290 $as_echo X"$as_dir" |
18291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18292 s//\1/
18293 q
18294 }
18295 /^X\(\/\/\)[^/].*/{
18296 s//\1/
18297 q
18298 }
18299 /^X\(\/\/\)$/{
18300 s//\1/
18301 q
18302 }
18303 /^X\(\/\).*/{
18304 s//\1/
18305 q
18306 }
18307 s/.*/./; q'`
18308 test -d "$as_dir" && break
18309 done
18310 test -z "$as_dirs" || eval "mkdir $as_dirs"
18311 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18312  
18313  
18314 } # as_fn_mkdir_p
18315 if mkdir -p . 2>/dev/null; then
18316 as_mkdir_p='mkdir -p "$as_dir"'
18317 else
18318 test -d ./-p && rmdir ./-p
18319 as_mkdir_p=false
18320 fi
18321  
18322 if test -x / >/dev/null 2>&1; then
18323 as_test_x='test -x'
18324 else
18325 if ls -dL / >/dev/null 2>&1; then
18326 as_ls_L_option=L
18327 else
18328 as_ls_L_option=
18329 fi
18330 as_test_x='
18331 eval sh -c '\''
18332 if test -d "$1"; then
18333 test -d "$1/.";
18334 else
18335 case $1 in #(
18336 -*)set "./$1";;
18337 esac;
18338 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18339 ???[sx]*):;;*)false;;esac;fi
18340 '\'' sh
18341 '
18342 fi
18343 as_executable_p=$as_test_x
18344  
18345 # Sed expression to map a string onto a valid CPP name.
18346 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18347  
18348 # Sed expression to map a string onto a valid variable name.
18349 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18350  
18351  
18352 exec 6>&1
18353 ## ----------------------------------- ##
18354 ## Main body of $CONFIG_STATUS script. ##
18355 ## ----------------------------------- ##
18356 _ASEOF
18357 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18358  
18359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18360 # Save the log message, to keep $0 and so on meaningful, and to
18361 # report actual input values of CONFIG_FILES etc. instead of their
18362 # values after options handling.
18363 ac_log="
18364 This file was extended by isl $as_me 0.10, which was
18365 generated by GNU Autoconf 2.68. Invocation command line was
18366  
18367 CONFIG_FILES = $CONFIG_FILES
18368 CONFIG_HEADERS = $CONFIG_HEADERS
18369 CONFIG_LINKS = $CONFIG_LINKS
18370 CONFIG_COMMANDS = $CONFIG_COMMANDS
18371 $ $0 $@
18372  
18373 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18374 "
18375  
18376 _ACEOF
18377  
18378 case $ac_config_files in *"
18379 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18380 esac
18381  
18382 case $ac_config_headers in *"
18383 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18384 esac
18385  
18386  
18387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18388 # Files that config.status was made for.
18389 config_files="$ac_config_files"
18390 config_headers="$ac_config_headers"
18391 config_commands="$ac_config_commands"
18392  
18393 _ACEOF
18394  
18395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18396 ac_cs_usage="\
18397 \`$as_me' instantiates files and other configuration actions
18398 from templates according to the current configuration. Unless the files
18399 and actions are specified as TAGs, all are instantiated by default.
18400  
18401 Usage: $0 [OPTION]... [TAG]...
18402  
18403 -h, --help print this help, then exit
18404 -V, --version print version number and configuration settings, then exit
18405 --config print configuration, then exit
18406 -q, --quiet, --silent
18407 do not print progress messages
18408 -d, --debug don't remove temporary files
18409 --recheck update $as_me by reconfiguring in the same conditions
18410 --file=FILE[:TEMPLATE]
18411 instantiate the configuration file FILE
18412 --header=FILE[:TEMPLATE]
18413 instantiate the configuration header FILE
18414  
18415 Configuration files:
18416 $config_files
18417  
18418 Configuration headers:
18419 $config_headers
18420  
18421 Configuration commands:
18422 $config_commands
18423  
18424 Report bugs to <isl-development@googlegroups.com>."
18425  
18426 _ACEOF
18427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18428 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18429 ac_cs_version="\\
18430 isl config.status 0.10
18431 configured by $0, generated by GNU Autoconf 2.68,
18432 with options \\"\$ac_cs_config\\"
18433  
18434 Copyright (C) 2010 Free Software Foundation, Inc.
18435 This config.status script is free software; the Free Software Foundation
18436 gives unlimited permission to copy, distribute and modify it."
18437  
18438 ac_pwd='$ac_pwd'
18439 srcdir='$srcdir'
18440 INSTALL='$INSTALL'
18441 MKDIR_P='$MKDIR_P'
18442 AWK='$AWK'
18443 test -n "\$AWK" || AWK=awk
18444 _ACEOF
18445  
18446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18447 # The default lists apply if the user does not specify any file.
18448 ac_need_defaults=:
18449 while test $# != 0
18450 do
18451 case $1 in
18452 --*=?*)
18453 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18454 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18455 ac_shift=:
18456 ;;
18457 --*=)
18458 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18459 ac_optarg=
18460 ac_shift=:
18461 ;;
18462 *)
18463 ac_option=$1
18464 ac_optarg=$2
18465 ac_shift=shift
18466 ;;
18467 esac
18468  
18469 case $ac_option in
18470 # Handling of the options.
18471 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18472 ac_cs_recheck=: ;;
18473 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18474 $as_echo "$ac_cs_version"; exit ;;
18475 --config | --confi | --conf | --con | --co | --c )
18476 $as_echo "$ac_cs_config"; exit ;;
18477 --debug | --debu | --deb | --de | --d | -d )
18478 debug=: ;;
18479 --file | --fil | --fi | --f )
18480 $ac_shift
18481 case $ac_optarg in
18482 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18483 '') as_fn_error $? "missing file argument" ;;
18484 esac
18485 as_fn_append CONFIG_FILES " '$ac_optarg'"
18486 ac_need_defaults=false;;
18487 --header | --heade | --head | --hea )
18488 $ac_shift
18489 case $ac_optarg in
18490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18491 esac
18492 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18493 ac_need_defaults=false;;
18494 --he | --h)
18495 # Conflict between --help and --header
18496 as_fn_error $? "ambiguous option: \`$1'
18497 Try \`$0 --help' for more information.";;
18498 --help | --hel | -h )
18499 $as_echo "$ac_cs_usage"; exit ;;
18500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18501 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18502 ac_cs_silent=: ;;
18503  
18504 # This is an error.
18505 -*) as_fn_error $? "unrecognized option: \`$1'
18506 Try \`$0 --help' for more information." ;;
18507  
18508 *) as_fn_append ac_config_targets " $1"
18509 ac_need_defaults=false ;;
18510  
18511 esac
18512 shift
18513 done
18514  
18515 ac_configure_extra_args=
18516  
18517 if $ac_cs_silent; then
18518 exec 6>/dev/null
18519 ac_configure_extra_args="$ac_configure_extra_args --silent"
18520 fi
18521  
18522 _ACEOF
18523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18524 if \$ac_cs_recheck; then
18525 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18526 shift
18527 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18528 CONFIG_SHELL='$SHELL'
18529 export CONFIG_SHELL
18530 exec "\$@"
18531 fi
18532  
18533 _ACEOF
18534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18535 exec 5>>config.log
18536 {
18537 echo
18538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18539 ## Running $as_me. ##
18540 _ASBOX
18541 $as_echo "$ac_log"
18542 } >&5
18543  
18544 _ACEOF
18545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18546 #
18547 # INIT-COMMANDS
18548 #
18549 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18550  
18551  
18552 # The HP-UX ksh and POSIX shell print the target directory to stdout
18553 # if CDPATH is set.
18554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18555  
18556 sed_quote_subst='$sed_quote_subst'
18557 double_quote_subst='$double_quote_subst'
18558 delay_variable_subst='$delay_variable_subst'
18559 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18560 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18561 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18562 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18563 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18564 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18565 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18566 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18567 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18568 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18569 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18570 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18571 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18572 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18573 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18574 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18575 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18576 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18577 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18578 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18579 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18580 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18581 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18582 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18583 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18584 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18585 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18586 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18587 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18588 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18589 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18590 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18591 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18592 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18593 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18594 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18595 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18596 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18597 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18598 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18599 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18600 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18601 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18602 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18603 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18604 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18605 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18606 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18607 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18608 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18609 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18610 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18611 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18612 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18613 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18614 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"`'
18615 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18616 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18617 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18618 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18619 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18620 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18621 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18622 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18623 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18624 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18625 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18626 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18627 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18628 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18629 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18630 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18631 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18632 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18633 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18634 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18635 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18636 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18637 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18638 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18639 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18640 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18641 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18642 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18643 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18644 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18645 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18646 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18647 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18648 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18649 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18650 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18651 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18652 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18653 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18654 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18655 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18656 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18657 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18658 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18659 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18660 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18661 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18662 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18663 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18664 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18665 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18666 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18667 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18668 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18669 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18670 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18671 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18672 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18673 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18674 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18675 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18676 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18677 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18678 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18679 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18680 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18681 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18682 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18683 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18684 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18685 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18686 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18687 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18688 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18689 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18690 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18691 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18692 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18693 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18694 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18695 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18696 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18697 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18698 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18699 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18700 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18701 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18702 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18703 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18704 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18705 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18706 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18707 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18708 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18709 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18710 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18711 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18712 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18713 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18714 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18715 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18716 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18717 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18718 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18719 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18720 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18721 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18722 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18723 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18724 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18725 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18726 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18727 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18728 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18729 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18730 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18731 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18732 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18733 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18734 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18735 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18736 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18737 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18738 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18739 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18740 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18741 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18742 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18743 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18744  
18745 LTCC='$LTCC'
18746 LTCFLAGS='$LTCFLAGS'
18747 compiler='$compiler_DEFAULT'
18748  
18749 # A function that is used when there is no print builtin or printf.
18750 func_fallback_echo ()
18751 {
18752 eval 'cat <<_LTECHO_EOF
18753 \$1
18754 _LTECHO_EOF'
18755 }
18756  
18757 # Quote evaled strings.
18758 for var in SHELL \
18759 ECHO \
18760 SED \
18761 GREP \
18762 EGREP \
18763 FGREP \
18764 LD \
18765 NM \
18766 LN_S \
18767 lt_SP2NL \
18768 lt_NL2SP \
18769 reload_flag \
18770 OBJDUMP \
18771 deplibs_check_method \
18772 file_magic_cmd \
18773 file_magic_glob \
18774 want_nocaseglob \
18775 DLLTOOL \
18776 sharedlib_from_linklib_cmd \
18777 AR \
18778 AR_FLAGS \
18779 archiver_list_spec \
18780 STRIP \
18781 RANLIB \
18782 CC \
18783 CFLAGS \
18784 compiler \
18785 lt_cv_sys_global_symbol_pipe \
18786 lt_cv_sys_global_symbol_to_cdecl \
18787 lt_cv_sys_global_symbol_to_c_name_address \
18788 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18789 nm_file_list_spec \
18790 lt_prog_compiler_no_builtin_flag \
18791 lt_prog_compiler_pic \
18792 lt_prog_compiler_wl \
18793 lt_prog_compiler_static \
18794 lt_cv_prog_compiler_c_o \
18795 need_locks \
18796 MANIFEST_TOOL \
18797 DSYMUTIL \
18798 NMEDIT \
18799 LIPO \
18800 OTOOL \
18801 OTOOL64 \
18802 shrext_cmds \
18803 export_dynamic_flag_spec \
18804 whole_archive_flag_spec \
18805 compiler_needs_object \
18806 with_gnu_ld \
18807 allow_undefined_flag \
18808 no_undefined_flag \
18809 hardcode_libdir_flag_spec \
18810 hardcode_libdir_flag_spec_ld \
18811 hardcode_libdir_separator \
18812 exclude_expsyms \
18813 include_expsyms \
18814 file_list_spec \
18815 variables_saved_for_relink \
18816 libname_spec \
18817 library_names_spec \
18818 soname_spec \
18819 install_override_mode \
18820 finish_eval \
18821 old_striplib \
18822 striplib \
18823 compiler_lib_search_dirs \
18824 predep_objects \
18825 postdep_objects \
18826 predeps \
18827 postdeps \
18828 compiler_lib_search_path \
18829 LD_CXX \
18830 reload_flag_CXX \
18831 compiler_CXX \
18832 lt_prog_compiler_no_builtin_flag_CXX \
18833 lt_prog_compiler_pic_CXX \
18834 lt_prog_compiler_wl_CXX \
18835 lt_prog_compiler_static_CXX \
18836 lt_cv_prog_compiler_c_o_CXX \
18837 export_dynamic_flag_spec_CXX \
18838 whole_archive_flag_spec_CXX \
18839 compiler_needs_object_CXX \
18840 with_gnu_ld_CXX \
18841 allow_undefined_flag_CXX \
18842 no_undefined_flag_CXX \
18843 hardcode_libdir_flag_spec_CXX \
18844 hardcode_libdir_flag_spec_ld_CXX \
18845 hardcode_libdir_separator_CXX \
18846 exclude_expsyms_CXX \
18847 include_expsyms_CXX \
18848 file_list_spec_CXX \
18849 compiler_lib_search_dirs_CXX \
18850 predep_objects_CXX \
18851 postdep_objects_CXX \
18852 predeps_CXX \
18853 postdeps_CXX \
18854 compiler_lib_search_path_CXX; do
18855 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18856 *[\\\\\\\`\\"\\\$]*)
18857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18858 ;;
18859 *)
18860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18861 ;;
18862 esac
18863 done
18864  
18865 # Double-quote double-evaled strings.
18866 for var in reload_cmds \
18867 old_postinstall_cmds \
18868 old_postuninstall_cmds \
18869 old_archive_cmds \
18870 extract_expsyms_cmds \
18871 old_archive_from_new_cmds \
18872 old_archive_from_expsyms_cmds \
18873 archive_cmds \
18874 archive_expsym_cmds \
18875 module_cmds \
18876 module_expsym_cmds \
18877 export_symbols_cmds \
18878 prelink_cmds \
18879 postlink_cmds \
18880 postinstall_cmds \
18881 postuninstall_cmds \
18882 finish_cmds \
18883 sys_lib_search_path_spec \
18884 sys_lib_dlsearch_path_spec \
18885 reload_cmds_CXX \
18886 old_archive_cmds_CXX \
18887 old_archive_from_new_cmds_CXX \
18888 old_archive_from_expsyms_cmds_CXX \
18889 archive_cmds_CXX \
18890 archive_expsym_cmds_CXX \
18891 module_cmds_CXX \
18892 module_expsym_cmds_CXX \
18893 export_symbols_cmds_CXX \
18894 prelink_cmds_CXX \
18895 postlink_cmds_CXX; do
18896 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18897 *[\\\\\\\`\\"\\\$]*)
18898 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18899 ;;
18900 *)
18901 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18902 ;;
18903 esac
18904 done
18905  
18906 ac_aux_dir='$ac_aux_dir'
18907 xsi_shell='$xsi_shell'
18908 lt_shell_append='$lt_shell_append'
18909  
18910 # See if we are running on zsh, and set the options which allow our
18911 # commands through without removal of \ escapes INIT.
18912 if test -n "\${ZSH_VERSION+set}" ; then
18913 setopt NO_GLOB_SUBST
18914 fi
18915  
18916  
18917 PACKAGE='$PACKAGE'
18918 VERSION='$VERSION'
18919 TIMESTAMP='$TIMESTAMP'
18920 RM='$RM'
18921 ofile='$ofile'
18922  
18923  
18924  
18925  
18926  
18927 # variables for create stdint.h replacement
18928 PACKAGE="$PACKAGE"
18929 VERSION="$VERSION"
18930 ac_stdint_h="$ac_stdint_h"
18931 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
18932 ac_cv_stdint_message="$ac_cv_stdint_message"
18933 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
18934 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
18935 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
18936 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
18937 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18938 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18939 ac_cv_char_data_model="$ac_cv_char_data_model"
18940 ac_cv_long_data_model="$ac_cv_long_data_model"
18941 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18942 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18943 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
18944  
18945  
18946 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
18947 pkgconfig_prefix='$prefix'
18948 pkgconfig_execprefix='$exec_prefix'
18949 pkgconfig_bindir='$bindir'
18950 pkgconfig_libdir='$libdir'
18951 pkgconfig_includedir='$includedir'
18952 pkgconfig_datarootdir='$datarootdir'
18953 pkgconfig_datadir='$datadir'
18954 pkgconfig_sysconfdir='$sysconfdir'
18955 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
18956 pkgconfig_package='$PACKAGE_NAME'
18957 pkgconfig_libname='$ax_create_pkgconfig_libname'
18958 pkgconfig_description='$ax_create_pkgconfig_description'
18959 pkgconfig_version='$ax_create_pkgconfig_version'
18960 pkgconfig_requires='$ax_create_pkgconfig_requires'
18961 pkgconfig_libs='$ax_create_pkgconfig_libs'
18962 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
18963 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
18964 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
18965 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
18966  
18967  
18968 _ACEOF
18969  
18970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18971  
18972 # Handling of arguments.
18973 for ac_config_target in $ac_config_targets
18974 do
18975 case $ac_config_target in
18976 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18977 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18978 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
18979 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
18980 "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;;
18981 "include/isl/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/isl/config.h" ;;
18982 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18983 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18984 "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
18985 "bound_test.sh") CONFIG_FILES="$CONFIG_FILES bound_test.sh" ;;
18986 "pip_test.sh") CONFIG_FILES="$CONFIG_FILES pip_test.sh" ;;
18987  
18988 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18989 esac
18990 done
18991  
18992  
18993 # If the user did not use the arguments to specify the items to instantiate,
18994 # then the envvar interface is used. Set only those that are not.
18995 # We use the long form for the default assignment because of an extremely
18996 # bizarre bug on SunOS 4.1.3.
18997 if $ac_need_defaults; then
18998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19000 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19001 fi
19002  
19003 # Have a temporary directory for convenience. Make it in the build tree
19004 # simply because there is no reason against having it here, and in addition,
19005 # creating and moving files from /tmp can sometimes cause problems.
19006 # Hook for its removal unless debugging.
19007 # Note that there is a small window in which the directory will not be cleaned:
19008 # after its creation but before its name has been assigned to `$tmp'.
19009 $debug ||
19010 {
19011 tmp= ac_tmp=
19012 trap 'exit_status=$?
19013 : "${ac_tmp:=$tmp}"
19014 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19015 ' 0
19016 trap 'as_fn_exit 1' 1 2 13 15
19017 }
19018 # Create a (secure) tmp directory for tmp files.
19019  
19020 {
19021 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19022 test -d "$tmp"
19023 } ||
19024 {
19025 tmp=./conf$$-$RANDOM
19026 (umask 077 && mkdir "$tmp")
19027 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19028 ac_tmp=$tmp
19029  
19030 # Set up the scripts for CONFIG_FILES section.
19031 # No need to generate them if there are no CONFIG_FILES.
19032 # This happens for instance with `./config.status config.h'.
19033 if test -n "$CONFIG_FILES"; then
19034  
19035  
19036 ac_cr=`echo X | tr X '\015'`
19037 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19038 # But we know of no other shell where ac_cr would be empty at this
19039 # point, so we can use a bashism as a fallback.
19040 if test "x$ac_cr" = x; then
19041 eval ac_cr=\$\'\\r\'
19042 fi
19043 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19044 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19045 ac_cs_awk_cr='\\r'
19046 else
19047 ac_cs_awk_cr=$ac_cr
19048 fi
19049  
19050 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19051 _ACEOF
19052  
19053  
19054 {
19055 echo "cat >conf$$subs.awk <<_ACEOF" &&
19056 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19057 echo "_ACEOF"
19058 } >conf$$subs.sh ||
19059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19060 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19061 ac_delim='%!_!# '
19062 for ac_last_try in false false false false false :; do
19063 . ./conf$$subs.sh ||
19064 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19065  
19066 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19067 if test $ac_delim_n = $ac_delim_num; then
19068 break
19069 elif $ac_last_try; then
19070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19071 else
19072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19073 fi
19074 done
19075 rm -f conf$$subs.sh
19076  
19077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19078 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19079 _ACEOF
19080 sed -n '
19081 h
19082 s/^/S["/; s/!.*/"]=/
19083 p
19084 g
19085 s/^[^!]*!//
19086 :repl
19087 t repl
19088 s/'"$ac_delim"'$//
19089 t delim
19090 :nl
19091 h
19092 s/\(.\{148\}\)..*/\1/
19093 t more1
19094 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19095 p
19096 n
19097 b repl
19098 :more1
19099 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19100 p
19101 g
19102 s/.\{148\}//
19103 t nl
19104 :delim
19105 h
19106 s/\(.\{148\}\)..*/\1/
19107 t more2
19108 s/["\\]/\\&/g; s/^/"/; s/$/"/
19109 p
19110 b
19111 :more2
19112 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19113 p
19114 g
19115 s/.\{148\}//
19116 t delim
19117 ' <conf$$subs.awk | sed '
19118 /^[^""]/{
19119 N
19120 s/\n//
19121 }
19122 ' >>$CONFIG_STATUS || ac_write_fail=1
19123 rm -f conf$$subs.awk
19124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19125 _ACAWK
19126 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19127 for (key in S) S_is_set[key] = 1
19128 FS = ""
19129  
19130 }
19131 {
19132 line = $ 0
19133 nfields = split(line, field, "@")
19134 substed = 0
19135 len = length(field[1])
19136 for (i = 2; i < nfields; i++) {
19137 key = field[i]
19138 keylen = length(key)
19139 if (S_is_set[key]) {
19140 value = S[key]
19141 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19142 len += length(value) + length(field[++i])
19143 substed = 1
19144 } else
19145 len += 1 + keylen
19146 }
19147  
19148 print line
19149 }
19150  
19151 _ACAWK
19152 _ACEOF
19153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19154 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19155 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19156 else
19157 cat
19158 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19159 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19160 _ACEOF
19161  
19162 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19163 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19164 # trailing colons and then remove the whole line if VPATH becomes empty
19165 # (actually we leave an empty line to preserve line numbers).
19166 if test "x$srcdir" = x.; then
19167 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19168 h
19169 s///
19170 s/^/:/
19171 s/[ ]*$/:/
19172 s/:\$(srcdir):/:/g
19173 s/:\${srcdir}:/:/g
19174 s/:@srcdir@:/:/g
19175 s/^:*//
19176 s/:*$//
19177 x
19178 s/\(=[ ]*\).*/\1/
19179 G
19180 s/\n//
19181 s/^[^=]*=[ ]*$//
19182 }'
19183 fi
19184  
19185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19186 fi # test -n "$CONFIG_FILES"
19187  
19188 # Set up the scripts for CONFIG_HEADERS section.
19189 # No need to generate them if there are no CONFIG_HEADERS.
19190 # This happens for instance with `./config.status Makefile'.
19191 if test -n "$CONFIG_HEADERS"; then
19192 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19193 BEGIN {
19194 _ACEOF
19195  
19196 # Transform confdefs.h into an awk script `defines.awk', embedded as
19197 # here-document in config.status, that substitutes the proper values into
19198 # config.h.in to produce config.h.
19199  
19200 # Create a delimiter string that does not exist in confdefs.h, to ease
19201 # handling of long lines.
19202 ac_delim='%!_!# '
19203 for ac_last_try in false false :; do
19204 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19205 if test -z "$ac_tt"; then
19206 break
19207 elif $ac_last_try; then
19208 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19209 else
19210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19211 fi
19212 done
19213  
19214 # For the awk script, D is an array of macro values keyed by name,
19215 # likewise P contains macro parameters if any. Preserve backslash
19216 # newline sequences.
19217  
19218 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19219 sed -n '
19220 s/.\{148\}/&'"$ac_delim"'/g
19221 t rset
19222 :rset
19223 s/^[ ]*#[ ]*define[ ][ ]*/ /
19224 t def
19225 d
19226 :def
19227 s/\\$//
19228 t bsnl
19229 s/["\\]/\\&/g
19230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19231 D["\1"]=" \3"/p
19232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19233 d
19234 :bsnl
19235 s/["\\]/\\&/g
19236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19237 D["\1"]=" \3\\\\\\n"\\/p
19238 t cont
19239 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19240 t cont
19241 d
19242 :cont
19243 n
19244 s/.\{148\}/&'"$ac_delim"'/g
19245 t clear
19246 :clear
19247 s/\\$//
19248 t bsnlc
19249 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19250 d
19251 :bsnlc
19252 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19253 b cont
19254 ' <confdefs.h | sed '
19255 s/'"$ac_delim"'/"\\\
19256 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19257  
19258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19259 for (key in D) D_is_set[key] = 1
19260 FS = ""
19261 }
19262 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19263 line = \$ 0
19264 split(line, arg, " ")
19265 if (arg[1] == "#") {
19266 defundef = arg[2]
19267 mac1 = arg[3]
19268 } else {
19269 defundef = substr(arg[1], 2)
19270 mac1 = arg[2]
19271 }
19272 split(mac1, mac2, "(") #)
19273 macro = mac2[1]
19274 prefix = substr(line, 1, index(line, defundef) - 1)
19275 if (D_is_set[macro]) {
19276 # Preserve the white space surrounding the "#".
19277 print prefix "define", macro P[macro] D[macro]
19278 next
19279 } else {
19280 # Replace #undef with comments. This is necessary, for example,
19281 # in the case of _POSIX_SOURCE, which is predefined and required
19282 # on some systems where configure will not decide to define it.
19283 if (defundef == "undef") {
19284 print "/*", prefix defundef, macro, "*/"
19285 next
19286 }
19287 }
19288 }
19289 { print }
19290 _ACAWK
19291 _ACEOF
19292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19293 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19294 fi # test -n "$CONFIG_HEADERS"
19295  
19296  
19297 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19298 shift
19299 for ac_tag
19300 do
19301 case $ac_tag in
19302 :[FHLC]) ac_mode=$ac_tag; continue;;
19303 esac
19304 case $ac_mode$ac_tag in
19305 :[FHL]*:*);;
19306 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19307 :[FH]-) ac_tag=-:-;;
19308 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19309 esac
19310 ac_save_IFS=$IFS
19311 IFS=:
19312 set x $ac_tag
19313 IFS=$ac_save_IFS
19314 shift
19315 ac_file=$1
19316 shift
19317  
19318 case $ac_mode in
19319 :L) ac_source=$1;;
19320 :[FH])
19321 ac_file_inputs=
19322 for ac_f
19323 do
19324 case $ac_f in
19325 -) ac_f="$ac_tmp/stdin";;
19326 *) # Look for the file first in the build tree, then in the source tree
19327 # (if the path is not absolute). The absolute path cannot be DOS-style,
19328 # because $ac_f cannot contain `:'.
19329 test -f "$ac_f" ||
19330 case $ac_f in
19331 [\\/$]*) false;;
19332 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19333 esac ||
19334 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19335 esac
19336 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19337 as_fn_append ac_file_inputs " '$ac_f'"
19338 done
19339  
19340 # Let's still pretend it is `configure' which instantiates (i.e., don't
19341 # use $as_me), people would be surprised to read:
19342 # /* config.h. Generated by config.status. */
19343 configure_input='Generated from '`
19344 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19345 `' by configure.'
19346 if test x"$ac_file" != x-; then
19347 configure_input="$ac_file. $configure_input"
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19349 $as_echo "$as_me: creating $ac_file" >&6;}
19350 fi
19351 # Neutralize special characters interpreted by sed in replacement strings.
19352 case $configure_input in #(
19353 *\&* | *\|* | *\\* )
19354 ac_sed_conf_input=`$as_echo "$configure_input" |
19355 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19356 *) ac_sed_conf_input=$configure_input;;
19357 esac
19358  
19359 case $ac_tag in
19360 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19362 esac
19363 ;;
19364 esac
19365  
19366 ac_dir=`$as_dirname -- "$ac_file" ||
19367 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19368 X"$ac_file" : 'X\(//\)[^/]' \| \
19369 X"$ac_file" : 'X\(//\)$' \| \
19370 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19371 $as_echo X"$ac_file" |
19372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19373 s//\1/
19374 q
19375 }
19376 /^X\(\/\/\)[^/].*/{
19377 s//\1/
19378 q
19379 }
19380 /^X\(\/\/\)$/{
19381 s//\1/
19382 q
19383 }
19384 /^X\(\/\).*/{
19385 s//\1/
19386 q
19387 }
19388 s/.*/./; q'`
19389 as_dir="$ac_dir"; as_fn_mkdir_p
19390 ac_builddir=.
19391  
19392 case "$ac_dir" in
19393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19394 *)
19395 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19396 # A ".." for each directory in $ac_dir_suffix.
19397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19398 case $ac_top_builddir_sub in
19399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19401 esac ;;
19402 esac
19403 ac_abs_top_builddir=$ac_pwd
19404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19405 # for backward compatibility:
19406 ac_top_builddir=$ac_top_build_prefix
19407  
19408 case $srcdir in
19409 .) # We are building in place.
19410 ac_srcdir=.
19411 ac_top_srcdir=$ac_top_builddir_sub
19412 ac_abs_top_srcdir=$ac_pwd ;;
19413 [\\/]* | ?:[\\/]* ) # Absolute name.
19414 ac_srcdir=$srcdir$ac_dir_suffix;
19415 ac_top_srcdir=$srcdir
19416 ac_abs_top_srcdir=$srcdir ;;
19417 *) # Relative name.
19418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19419 ac_top_srcdir=$ac_top_build_prefix$srcdir
19420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19421 esac
19422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19423  
19424  
19425 case $ac_mode in
19426 :F)
19427 #
19428 # CONFIG_FILE
19429 #
19430  
19431 case $INSTALL in
19432 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19433 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19434 esac
19435 ac_MKDIR_P=$MKDIR_P
19436 case $MKDIR_P in
19437 [\\/$]* | ?:[\\/]* ) ;;
19438 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19439 esac
19440 _ACEOF
19441  
19442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19443 # If the template does not know about datarootdir, expand it.
19444 # FIXME: This hack should be removed a few years after 2.60.
19445 ac_datarootdir_hack=; ac_datarootdir_seen=
19446 ac_sed_dataroot='
19447 /datarootdir/ {
19448 p
19449 q
19450 }
19451 /@datadir@/p
19452 /@docdir@/p
19453 /@infodir@/p
19454 /@localedir@/p
19455 /@mandir@/p'
19456 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19457 *datarootdir*) ac_datarootdir_seen=yes;;
19458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19460 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19461 _ACEOF
19462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19463 ac_datarootdir_hack='
19464 s&@datadir@&$datadir&g
19465 s&@docdir@&$docdir&g
19466 s&@infodir@&$infodir&g
19467 s&@localedir@&$localedir&g
19468 s&@mandir@&$mandir&g
19469 s&\\\${datarootdir}&$datarootdir&g' ;;
19470 esac
19471 _ACEOF
19472  
19473 # Neutralize VPATH when `$srcdir' = `.'.
19474 # Shell code in configure.ac might set extrasub.
19475 # FIXME: do we really want to maintain this feature?
19476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19477 ac_sed_extra="$ac_vpsub
19478 $extrasub
19479 _ACEOF
19480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19481 :t
19482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19483 s|@configure_input@|$ac_sed_conf_input|;t t
19484 s&@top_builddir@&$ac_top_builddir_sub&;t t
19485 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19486 s&@srcdir@&$ac_srcdir&;t t
19487 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19488 s&@top_srcdir@&$ac_top_srcdir&;t t
19489 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19490 s&@builddir@&$ac_builddir&;t t
19491 s&@abs_builddir@&$ac_abs_builddir&;t t
19492 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19493 s&@INSTALL@&$ac_INSTALL&;t t
19494 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19495 $ac_datarootdir_hack
19496 "
19497 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19498 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19499  
19500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19501 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19503 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19505 which seems to be undefined. Please make sure it is defined" >&5
19506 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19507 which seems to be undefined. Please make sure it is defined" >&2;}
19508  
19509 rm -f "$ac_tmp/stdin"
19510 case $ac_file in
19511 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19512 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19513 esac \
19514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19515 ;;
19516 :H)
19517 #
19518 # CONFIG_HEADER
19519 #
19520 if test x"$ac_file" != x-; then
19521 {
19522 $as_echo "/* $configure_input */" \
19523 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19524 } >"$ac_tmp/config.h" \
19525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19526 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19528 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19529 else
19530 rm -f "$ac_file"
19531 mv "$ac_tmp/config.h" "$ac_file" \
19532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19533 fi
19534 else
19535 $as_echo "/* $configure_input */" \
19536 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19537 || as_fn_error $? "could not create -" "$LINENO" 5
19538 fi
19539 # Compute "$ac_file"'s index in $config_headers.
19540 _am_arg="$ac_file"
19541 _am_stamp_count=1
19542 for _am_header in $config_headers :; do
19543 case $_am_header in
19544 $_am_arg | $_am_arg:* )
19545 break ;;
19546 * )
19547 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19548 esac
19549 done
19550 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19551 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19552 X"$_am_arg" : 'X\(//\)[^/]' \| \
19553 X"$_am_arg" : 'X\(//\)$' \| \
19554 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19555 $as_echo X"$_am_arg" |
19556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19557 s//\1/
19558 q
19559 }
19560 /^X\(\/\/\)[^/].*/{
19561 s//\1/
19562 q
19563 }
19564 /^X\(\/\/\)$/{
19565 s//\1/
19566 q
19567 }
19568 /^X\(\/\).*/{
19569 s//\1/
19570 q
19571 }
19572 s/.*/./; q'`/stamp-h$_am_stamp_count
19573 ;;
19574  
19575 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19576 $as_echo "$as_me: executing $ac_file commands" >&6;}
19577 ;;
19578 esac
19579  
19580  
19581 case $ac_file$ac_mode in
19582 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19583 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19584 # are listed without --file. Let's play safe and only enable the eval
19585 # if we detect the quoting.
19586 case $CONFIG_FILES in
19587 *\'*) eval set x "$CONFIG_FILES" ;;
19588 *) set x $CONFIG_FILES ;;
19589 esac
19590 shift
19591 for mf
19592 do
19593 # Strip MF so we end up with the name of the file.
19594 mf=`echo "$mf" | sed -e 's/:.*$//'`
19595 # Check whether this is an Automake generated Makefile or not.
19596 # We used to match only the files named `Makefile.in', but
19597 # some people rename them; so instead we look at the file content.
19598 # Grep'ing the first line is not enough: some people post-process
19599 # each Makefile.in and add a new line on top of each file to say so.
19600 # Grep'ing the whole file is not good either: AIX grep has a line
19601 # limit of 2048, but all sed's we know have understand at least 4000.
19602 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19603 dirpart=`$as_dirname -- "$mf" ||
19604 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19605 X"$mf" : 'X\(//\)[^/]' \| \
19606 X"$mf" : 'X\(//\)$' \| \
19607 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19608 $as_echo X"$mf" |
19609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19610 s//\1/
19611 q
19612 }
19613 /^X\(\/\/\)[^/].*/{
19614 s//\1/
19615 q
19616 }
19617 /^X\(\/\/\)$/{
19618 s//\1/
19619 q
19620 }
19621 /^X\(\/\).*/{
19622 s//\1/
19623 q
19624 }
19625 s/.*/./; q'`
19626 else
19627 continue
19628 fi
19629 # Extract the definition of DEPDIR, am__include, and am__quote
19630 # from the Makefile without running `make'.
19631 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19632 test -z "$DEPDIR" && continue
19633 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19634 test -z "am__include" && continue
19635 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19636 # When using ansi2knr, U may be empty or an underscore; expand it
19637 U=`sed -n 's/^U = //p' < "$mf"`
19638 # Find all dependency output files, they are included files with
19639 # $(DEPDIR) in their names. We invoke sed twice because it is the
19640 # simplest approach to changing $(DEPDIR) to its actual value in the
19641 # expansion.
19642 for file in `sed -n "
19643 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19644 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19645 # Make sure the directory exists.
19646 test -f "$dirpart/$file" && continue
19647 fdir=`$as_dirname -- "$file" ||
19648 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19649 X"$file" : 'X\(//\)[^/]' \| \
19650 X"$file" : 'X\(//\)$' \| \
19651 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19652 $as_echo X"$file" |
19653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19654 s//\1/
19655 q
19656 }
19657 /^X\(\/\/\)[^/].*/{
19658 s//\1/
19659 q
19660 }
19661 /^X\(\/\/\)$/{
19662 s//\1/
19663 q
19664 }
19665 /^X\(\/\).*/{
19666 s//\1/
19667 q
19668 }
19669 s/.*/./; q'`
19670 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19671 # echo "creating $dirpart/$file"
19672 echo '# dummy' > "$dirpart/$file"
19673 done
19674 done
19675 }
19676 ;;
19677 "libtool":C)
19678  
19679 # See if we are running on zsh, and set the options which allow our
19680 # commands through without removal of \ escapes.
19681 if test -n "${ZSH_VERSION+set}" ; then
19682 setopt NO_GLOB_SUBST
19683 fi
19684  
19685 cfgfile="${ofile}T"
19686 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19687 $RM "$cfgfile"
19688  
19689 cat <<_LT_EOF >> "$cfgfile"
19690 #! $SHELL
19691  
19692 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19693 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19694 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19695 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19696 #
19697 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19698 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19699 # Inc.
19700 # Written by Gordon Matzigkeit, 1996
19701 #
19702 # This file is part of GNU Libtool.
19703 #
19704 # GNU Libtool is free software; you can redistribute it and/or
19705 # modify it under the terms of the GNU General Public License as
19706 # published by the Free Software Foundation; either version 2 of
19707 # the License, or (at your option) any later version.
19708 #
19709 # As a special exception to the GNU General Public License,
19710 # if you distribute this file as part of a program or library that
19711 # is built using GNU Libtool, you may include this file under the
19712 # same distribution terms that you use for the rest of that program.
19713 #
19714 # GNU Libtool is distributed in the hope that it will be useful,
19715 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19716 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19717 # GNU General Public License for more details.
19718 #
19719 # You should have received a copy of the GNU General Public License
19720 # along with GNU Libtool; see the file COPYING. If not, a copy
19721 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19722 # obtained by writing to the Free Software Foundation, Inc.,
19723 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19724  
19725  
19726 # The names of the tagged configurations supported by this script.
19727 available_tags="CXX "
19728  
19729 # ### BEGIN LIBTOOL CONFIG
19730  
19731 # Which release of libtool.m4 was used?
19732 macro_version=$macro_version
19733 macro_revision=$macro_revision
19734  
19735 # Whether or not to build shared libraries.
19736 build_libtool_libs=$enable_shared
19737  
19738 # Whether or not to build static libraries.
19739 build_old_libs=$enable_static
19740  
19741 # What type of objects to build.
19742 pic_mode=$pic_mode
19743  
19744 # Whether or not to optimize for fast installation.
19745 fast_install=$enable_fast_install
19746  
19747 # Shell to use when invoking shell scripts.
19748 SHELL=$lt_SHELL
19749  
19750 # An echo program that protects backslashes.
19751 ECHO=$lt_ECHO
19752  
19753 # The host system.
19754 host_alias=$host_alias
19755 host=$host
19756 host_os=$host_os
19757  
19758 # The build system.
19759 build_alias=$build_alias
19760 build=$build
19761 build_os=$build_os
19762  
19763 # A sed program that does not truncate output.
19764 SED=$lt_SED
19765  
19766 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19767 Xsed="\$SED -e 1s/^X//"
19768  
19769 # A grep program that handles long lines.
19770 GREP=$lt_GREP
19771  
19772 # An ERE matcher.
19773 EGREP=$lt_EGREP
19774  
19775 # A literal string matcher.
19776 FGREP=$lt_FGREP
19777  
19778 # A BSD- or MS-compatible name lister.
19779 NM=$lt_NM
19780  
19781 # Whether we need soft or hard links.
19782 LN_S=$lt_LN_S
19783  
19784 # What is the maximum length of a command?
19785 max_cmd_len=$max_cmd_len
19786  
19787 # Object file suffix (normally "o").
19788 objext=$ac_objext
19789  
19790 # Executable file suffix (normally "").
19791 exeext=$exeext
19792  
19793 # whether the shell understands "unset".
19794 lt_unset=$lt_unset
19795  
19796 # turn spaces into newlines.
19797 SP2NL=$lt_lt_SP2NL
19798  
19799 # turn newlines into spaces.
19800 NL2SP=$lt_lt_NL2SP
19801  
19802 # convert \$build file names to \$host format.
19803 to_host_file_cmd=$lt_cv_to_host_file_cmd
19804  
19805 # convert \$build files to toolchain format.
19806 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19807  
19808 # An object symbol dumper.
19809 OBJDUMP=$lt_OBJDUMP
19810  
19811 # Method to check whether dependent libraries are shared objects.
19812 deplibs_check_method=$lt_deplibs_check_method
19813  
19814 # Command to use when deplibs_check_method = "file_magic".
19815 file_magic_cmd=$lt_file_magic_cmd
19816  
19817 # How to find potential files when deplibs_check_method = "file_magic".
19818 file_magic_glob=$lt_file_magic_glob
19819  
19820 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19821 want_nocaseglob=$lt_want_nocaseglob
19822  
19823 # DLL creation program.
19824 DLLTOOL=$lt_DLLTOOL
19825  
19826 # Command to associate shared and link libraries.
19827 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19828  
19829 # The archiver.
19830 AR=$lt_AR
19831  
19832 # Flags to create an archive.
19833 AR_FLAGS=$lt_AR_FLAGS
19834  
19835 # How to feed a file listing to the archiver.
19836 archiver_list_spec=$lt_archiver_list_spec
19837  
19838 # A symbol stripping program.
19839 STRIP=$lt_STRIP
19840  
19841 # Commands used to install an old-style archive.
19842 RANLIB=$lt_RANLIB
19843 old_postinstall_cmds=$lt_old_postinstall_cmds
19844 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19845  
19846 # Whether to use a lock for old archive extraction.
19847 lock_old_archive_extraction=$lock_old_archive_extraction
19848  
19849 # A C compiler.
19850 LTCC=$lt_CC
19851  
19852 # LTCC compiler flags.
19853 LTCFLAGS=$lt_CFLAGS
19854  
19855 # Take the output of nm and produce a listing of raw symbols and C names.
19856 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19857  
19858 # Transform the output of nm in a proper C declaration.
19859 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19860  
19861 # Transform the output of nm in a C name address pair.
19862 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19863  
19864 # Transform the output of nm in a C name address pair when lib prefix is needed.
19865 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19866  
19867 # Specify filename containing input files for \$NM.
19868 nm_file_list_spec=$lt_nm_file_list_spec
19869  
19870 # The root where to search for dependent libraries,and in which our libraries should be installed.
19871 lt_sysroot=$lt_sysroot
19872  
19873 # The name of the directory that contains temporary libtool files.
19874 objdir=$objdir
19875  
19876 # Used to examine libraries when file_magic_cmd begins with "file".
19877 MAGIC_CMD=$MAGIC_CMD
19878  
19879 # Must we lock files when doing compilation?
19880 need_locks=$lt_need_locks
19881  
19882 # Manifest tool.
19883 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19884  
19885 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19886 DSYMUTIL=$lt_DSYMUTIL
19887  
19888 # Tool to change global to local symbols on Mac OS X.
19889 NMEDIT=$lt_NMEDIT
19890  
19891 # Tool to manipulate fat objects and archives on Mac OS X.
19892 LIPO=$lt_LIPO
19893  
19894 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19895 OTOOL=$lt_OTOOL
19896  
19897 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19898 OTOOL64=$lt_OTOOL64
19899  
19900 # Old archive suffix (normally "a").
19901 libext=$libext
19902  
19903 # Shared library suffix (normally ".so").
19904 shrext_cmds=$lt_shrext_cmds
19905  
19906 # The commands to extract the exported symbol list from a shared archive.
19907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19908  
19909 # Variables whose values should be saved in libtool wrapper scripts and
19910 # restored at link time.
19911 variables_saved_for_relink=$lt_variables_saved_for_relink
19912  
19913 # Do we need the "lib" prefix for modules?
19914 need_lib_prefix=$need_lib_prefix
19915  
19916 # Do we need a version for libraries?
19917 need_version=$need_version
19918  
19919 # Library versioning type.
19920 version_type=$version_type
19921  
19922 # Shared library runtime path variable.
19923 runpath_var=$runpath_var
19924  
19925 # Shared library path variable.
19926 shlibpath_var=$shlibpath_var
19927  
19928 # Is shlibpath searched before the hard-coded library search path?
19929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19930  
19931 # Format of library name prefix.
19932 libname_spec=$lt_libname_spec
19933  
19934 # List of archive names. First name is the real one, the rest are links.
19935 # The last name is the one that the linker finds with -lNAME
19936 library_names_spec=$lt_library_names_spec
19937  
19938 # The coded name of the library, if different from the real name.
19939 soname_spec=$lt_soname_spec
19940  
19941 # Permission mode override for installation of shared libraries.
19942 install_override_mode=$lt_install_override_mode
19943  
19944 # Command to use after installation of a shared archive.
19945 postinstall_cmds=$lt_postinstall_cmds
19946  
19947 # Command to use after uninstallation of a shared archive.
19948 postuninstall_cmds=$lt_postuninstall_cmds
19949  
19950 # Commands used to finish a libtool library installation in a directory.
19951 finish_cmds=$lt_finish_cmds
19952  
19953 # As "finish_cmds", except a single script fragment to be evaled but
19954 # not shown.
19955 finish_eval=$lt_finish_eval
19956  
19957 # Whether we should hardcode library paths into libraries.
19958 hardcode_into_libs=$hardcode_into_libs
19959  
19960 # Compile-time system search path for libraries.
19961 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19962  
19963 # Run-time system search path for libraries.
19964 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19965  
19966 # Whether dlopen is supported.
19967 dlopen_support=$enable_dlopen
19968  
19969 # Whether dlopen of programs is supported.
19970 dlopen_self=$enable_dlopen_self
19971  
19972 # Whether dlopen of statically linked programs is supported.
19973 dlopen_self_static=$enable_dlopen_self_static
19974  
19975 # Commands to strip libraries.
19976 old_striplib=$lt_old_striplib
19977 striplib=$lt_striplib
19978  
19979  
19980 # The linker used to build libraries.
19981 LD=$lt_LD
19982  
19983 # How to create reloadable object files.
19984 reload_flag=$lt_reload_flag
19985 reload_cmds=$lt_reload_cmds
19986  
19987 # Commands used to build an old-style archive.
19988 old_archive_cmds=$lt_old_archive_cmds
19989  
19990 # A language specific compiler.
19991 CC=$lt_compiler
19992  
19993 # Is the compiler the GNU compiler?
19994 with_gcc=$GCC
19995  
19996 # Compiler flag to turn off builtin functions.
19997 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19998  
19999 # Additional compiler flags for building library objects.
20000 pic_flag=$lt_lt_prog_compiler_pic
20001  
20002 # How to pass a linker flag through the compiler.
20003 wl=$lt_lt_prog_compiler_wl
20004  
20005 # Compiler flag to prevent dynamic linking.
20006 link_static_flag=$lt_lt_prog_compiler_static
20007  
20008 # Does compiler simultaneously support -c and -o options?
20009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20010  
20011 # Whether or not to add -lc for building shared libraries.
20012 build_libtool_need_lc=$archive_cmds_need_lc
20013  
20014 # Whether or not to disallow shared libs when runtime libs are static.
20015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20016  
20017 # Compiler flag to allow reflexive dlopens.
20018 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20019  
20020 # Compiler flag to generate shared objects directly from archives.
20021 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20022  
20023 # Whether the compiler copes with passing no objects directly.
20024 compiler_needs_object=$lt_compiler_needs_object
20025  
20026 # Create an old-style archive from a shared archive.
20027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20028  
20029 # Create a temporary old-style archive to link instead of a shared archive.
20030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20031  
20032 # Commands used to build a shared archive.
20033 archive_cmds=$lt_archive_cmds
20034 archive_expsym_cmds=$lt_archive_expsym_cmds
20035  
20036 # Commands used to build a loadable module if different from building
20037 # a shared archive.
20038 module_cmds=$lt_module_cmds
20039 module_expsym_cmds=$lt_module_expsym_cmds
20040  
20041 # Whether we are building with GNU ld or not.
20042 with_gnu_ld=$lt_with_gnu_ld
20043  
20044 # Flag that allows shared libraries with undefined symbols to be built.
20045 allow_undefined_flag=$lt_allow_undefined_flag
20046  
20047 # Flag that enforces no undefined symbols.
20048 no_undefined_flag=$lt_no_undefined_flag
20049  
20050 # Flag to hardcode \$libdir into a binary during linking.
20051 # This must work even if \$libdir does not exist
20052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20053  
20054 # If ld is used when linking, flag to hardcode \$libdir into a binary
20055 # during linking. This must work even if \$libdir does not exist.
20056 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20057  
20058 # Whether we need a single "-rpath" flag with a separated argument.
20059 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20060  
20061 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20062 # DIR into the resulting binary.
20063 hardcode_direct=$hardcode_direct
20064  
20065 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20066 # DIR into the resulting binary and the resulting library dependency is
20067 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20068 # library is relocated.
20069 hardcode_direct_absolute=$hardcode_direct_absolute
20070  
20071 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20072 # into the resulting binary.
20073 hardcode_minus_L=$hardcode_minus_L
20074  
20075 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20076 # into the resulting binary.
20077 hardcode_shlibpath_var=$hardcode_shlibpath_var
20078  
20079 # Set to "yes" if building a shared library automatically hardcodes DIR
20080 # into the library and all subsequent libraries and executables linked
20081 # against it.
20082 hardcode_automatic=$hardcode_automatic
20083  
20084 # Set to yes if linker adds runtime paths of dependent libraries
20085 # to runtime path list.
20086 inherit_rpath=$inherit_rpath
20087  
20088 # Whether libtool must link a program against all its dependency libraries.
20089 link_all_deplibs=$link_all_deplibs
20090  
20091 # Set to "yes" if exported symbols are required.
20092 always_export_symbols=$always_export_symbols
20093  
20094 # The commands to list exported symbols.
20095 export_symbols_cmds=$lt_export_symbols_cmds
20096  
20097 # Symbols that should not be listed in the preloaded symbols.
20098 exclude_expsyms=$lt_exclude_expsyms
20099  
20100 # Symbols that must always be exported.
20101 include_expsyms=$lt_include_expsyms
20102  
20103 # Commands necessary for linking programs (against libraries) with templates.
20104 prelink_cmds=$lt_prelink_cmds
20105  
20106 # Commands necessary for finishing linking programs.
20107 postlink_cmds=$lt_postlink_cmds
20108  
20109 # Specify filename containing input files.
20110 file_list_spec=$lt_file_list_spec
20111  
20112 # How to hardcode a shared library path into an executable.
20113 hardcode_action=$hardcode_action
20114  
20115 # The directories searched by this compiler when creating a shared library.
20116 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20117  
20118 # Dependencies to place before and after the objects being linked to
20119 # create a shared library.
20120 predep_objects=$lt_predep_objects
20121 postdep_objects=$lt_postdep_objects
20122 predeps=$lt_predeps
20123 postdeps=$lt_postdeps
20124  
20125 # The library search path used internally by the compiler when linking
20126 # a shared library.
20127 compiler_lib_search_path=$lt_compiler_lib_search_path
20128  
20129 # ### END LIBTOOL CONFIG
20130  
20131 _LT_EOF
20132  
20133 case $host_os in
20134 aix3*)
20135 cat <<\_LT_EOF >> "$cfgfile"
20136 # AIX sometimes has problems with the GCC collect2 program. For some
20137 # reason, if we set the COLLECT_NAMES environment variable, the problems
20138 # vanish in a puff of smoke.
20139 if test "X${COLLECT_NAMES+set}" != Xset; then
20140 COLLECT_NAMES=
20141 export COLLECT_NAMES
20142 fi
20143 _LT_EOF
20144 ;;
20145 esac
20146  
20147  
20148 ltmain="$ac_aux_dir/ltmain.sh"
20149  
20150  
20151 # We use sed instead of cat because bash on DJGPP gets confused if
20152 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20153 # text mode, it properly converts lines to CR/LF. This bash problem
20154 # is reportedly fixed, but why not run on old versions too?
20155 sed '$q' "$ltmain" >> "$cfgfile" \
20156 || (rm -f "$cfgfile"; exit 1)
20157  
20158 if test x"$xsi_shell" = xyes; then
20159 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20160 func_dirname ()\
20161 {\
20162 \ case ${1} in\
20163 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20164 \ * ) func_dirname_result="${3}" ;;\
20165 \ esac\
20166 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20167 && mv -f "$cfgfile.tmp" "$cfgfile" \
20168 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20169 test 0 -eq $? || _lt_function_replace_fail=:
20170  
20171  
20172 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20173 func_basename ()\
20174 {\
20175 \ func_basename_result="${1##*/}"\
20176 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20177 && mv -f "$cfgfile.tmp" "$cfgfile" \
20178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20179 test 0 -eq $? || _lt_function_replace_fail=:
20180  
20181  
20182 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20183 func_dirname_and_basename ()\
20184 {\
20185 \ case ${1} in\
20186 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20187 \ * ) func_dirname_result="${3}" ;;\
20188 \ esac\
20189 \ func_basename_result="${1##*/}"\
20190 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20191 && mv -f "$cfgfile.tmp" "$cfgfile" \
20192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20193 test 0 -eq $? || _lt_function_replace_fail=:
20194  
20195  
20196 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20197 func_stripname ()\
20198 {\
20199 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20200 \ # positional parameters, so assign one to ordinary parameter first.\
20201 \ func_stripname_result=${3}\
20202 \ func_stripname_result=${func_stripname_result#"${1}"}\
20203 \ func_stripname_result=${func_stripname_result%"${2}"}\
20204 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20205 && mv -f "$cfgfile.tmp" "$cfgfile" \
20206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20207 test 0 -eq $? || _lt_function_replace_fail=:
20208  
20209  
20210 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20211 func_split_long_opt ()\
20212 {\
20213 \ func_split_long_opt_name=${1%%=*}\
20214 \ func_split_long_opt_arg=${1#*=}\
20215 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20216 && mv -f "$cfgfile.tmp" "$cfgfile" \
20217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20218 test 0 -eq $? || _lt_function_replace_fail=:
20219  
20220  
20221 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20222 func_split_short_opt ()\
20223 {\
20224 \ func_split_short_opt_arg=${1#??}\
20225 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20226 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20227 && mv -f "$cfgfile.tmp" "$cfgfile" \
20228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20229 test 0 -eq $? || _lt_function_replace_fail=:
20230  
20231  
20232 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20233 func_lo2o ()\
20234 {\
20235 \ case ${1} in\
20236 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20237 \ *) func_lo2o_result=${1} ;;\
20238 \ esac\
20239 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20240 && mv -f "$cfgfile.tmp" "$cfgfile" \
20241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20242 test 0 -eq $? || _lt_function_replace_fail=:
20243  
20244  
20245 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20246 func_xform ()\
20247 {\
20248 func_xform_result=${1%.*}.lo\
20249 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20250 && mv -f "$cfgfile.tmp" "$cfgfile" \
20251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20252 test 0 -eq $? || _lt_function_replace_fail=:
20253  
20254  
20255 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20256 func_arith ()\
20257 {\
20258 func_arith_result=$(( $* ))\
20259 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20260 && mv -f "$cfgfile.tmp" "$cfgfile" \
20261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20262 test 0 -eq $? || _lt_function_replace_fail=:
20263  
20264  
20265 sed -e '/^func_len ()$/,/^} # func_len /c\
20266 func_len ()\
20267 {\
20268 func_len_result=${#1}\
20269 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20270 && mv -f "$cfgfile.tmp" "$cfgfile" \
20271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20272 test 0 -eq $? || _lt_function_replace_fail=:
20273  
20274 fi
20275  
20276 if test x"$lt_shell_append" = xyes; then
20277 sed -e '/^func_append ()$/,/^} # func_append /c\
20278 func_append ()\
20279 {\
20280 eval "${1}+=\\${2}"\
20281 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20282 && mv -f "$cfgfile.tmp" "$cfgfile" \
20283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20284 test 0 -eq $? || _lt_function_replace_fail=:
20285  
20286  
20287 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20288 func_append_quoted ()\
20289 {\
20290 \ func_quote_for_eval "${2}"\
20291 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20292 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20293 && mv -f "$cfgfile.tmp" "$cfgfile" \
20294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20295 test 0 -eq $? || _lt_function_replace_fail=:
20296  
20297  
20298 # Save a `func_append' function call where possible by direct use of '+='
20299 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20300 && mv -f "$cfgfile.tmp" "$cfgfile" \
20301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20302 test 0 -eq $? || _lt_function_replace_fail=:
20303 else
20304 # Save a `func_append' function call even when '+=' is not available
20305 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20306 && mv -f "$cfgfile.tmp" "$cfgfile" \
20307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20308 test 0 -eq $? || _lt_function_replace_fail=:
20309 fi
20310  
20311 if test x"$_lt_function_replace_fail" = x":"; then
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20313 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20314 fi
20315  
20316  
20317 mv -f "$cfgfile" "$ofile" ||
20318 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20319 chmod +x "$ofile"
20320  
20321  
20322 cat <<_LT_EOF >> "$ofile"
20323  
20324 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20325  
20326 # The linker used to build libraries.
20327 LD=$lt_LD_CXX
20328  
20329 # How to create reloadable object files.
20330 reload_flag=$lt_reload_flag_CXX
20331 reload_cmds=$lt_reload_cmds_CXX
20332  
20333 # Commands used to build an old-style archive.
20334 old_archive_cmds=$lt_old_archive_cmds_CXX
20335  
20336 # A language specific compiler.
20337 CC=$lt_compiler_CXX
20338  
20339 # Is the compiler the GNU compiler?
20340 with_gcc=$GCC_CXX
20341  
20342 # Compiler flag to turn off builtin functions.
20343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20344  
20345 # Additional compiler flags for building library objects.
20346 pic_flag=$lt_lt_prog_compiler_pic_CXX
20347  
20348 # How to pass a linker flag through the compiler.
20349 wl=$lt_lt_prog_compiler_wl_CXX
20350  
20351 # Compiler flag to prevent dynamic linking.
20352 link_static_flag=$lt_lt_prog_compiler_static_CXX
20353  
20354 # Does compiler simultaneously support -c and -o options?
20355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20356  
20357 # Whether or not to add -lc for building shared libraries.
20358 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20359  
20360 # Whether or not to disallow shared libs when runtime libs are static.
20361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20362  
20363 # Compiler flag to allow reflexive dlopens.
20364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20365  
20366 # Compiler flag to generate shared objects directly from archives.
20367 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20368  
20369 # Whether the compiler copes with passing no objects directly.
20370 compiler_needs_object=$lt_compiler_needs_object_CXX
20371  
20372 # Create an old-style archive from a shared archive.
20373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20374  
20375 # Create a temporary old-style archive to link instead of a shared archive.
20376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20377  
20378 # Commands used to build a shared archive.
20379 archive_cmds=$lt_archive_cmds_CXX
20380 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20381  
20382 # Commands used to build a loadable module if different from building
20383 # a shared archive.
20384 module_cmds=$lt_module_cmds_CXX
20385 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20386  
20387 # Whether we are building with GNU ld or not.
20388 with_gnu_ld=$lt_with_gnu_ld_CXX
20389  
20390 # Flag that allows shared libraries with undefined symbols to be built.
20391 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20392  
20393 # Flag that enforces no undefined symbols.
20394 no_undefined_flag=$lt_no_undefined_flag_CXX
20395  
20396 # Flag to hardcode \$libdir into a binary during linking.
20397 # This must work even if \$libdir does not exist
20398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20399  
20400 # If ld is used when linking, flag to hardcode \$libdir into a binary
20401 # during linking. This must work even if \$libdir does not exist.
20402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20403  
20404 # Whether we need a single "-rpath" flag with a separated argument.
20405 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20406  
20407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20408 # DIR into the resulting binary.
20409 hardcode_direct=$hardcode_direct_CXX
20410  
20411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20412 # DIR into the resulting binary and the resulting library dependency is
20413 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20414 # library is relocated.
20415 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20416  
20417 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20418 # into the resulting binary.
20419 hardcode_minus_L=$hardcode_minus_L_CXX
20420  
20421 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20422 # into the resulting binary.
20423 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20424  
20425 # Set to "yes" if building a shared library automatically hardcodes DIR
20426 # into the library and all subsequent libraries and executables linked
20427 # against it.
20428 hardcode_automatic=$hardcode_automatic_CXX
20429  
20430 # Set to yes if linker adds runtime paths of dependent libraries
20431 # to runtime path list.
20432 inherit_rpath=$inherit_rpath_CXX
20433  
20434 # Whether libtool must link a program against all its dependency libraries.
20435 link_all_deplibs=$link_all_deplibs_CXX
20436  
20437 # Set to "yes" if exported symbols are required.
20438 always_export_symbols=$always_export_symbols_CXX
20439  
20440 # The commands to list exported symbols.
20441 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20442  
20443 # Symbols that should not be listed in the preloaded symbols.
20444 exclude_expsyms=$lt_exclude_expsyms_CXX
20445  
20446 # Symbols that must always be exported.
20447 include_expsyms=$lt_include_expsyms_CXX
20448  
20449 # Commands necessary for linking programs (against libraries) with templates.
20450 prelink_cmds=$lt_prelink_cmds_CXX
20451  
20452 # Commands necessary for finishing linking programs.
20453 postlink_cmds=$lt_postlink_cmds_CXX
20454  
20455 # Specify filename containing input files.
20456 file_list_spec=$lt_file_list_spec_CXX
20457  
20458 # How to hardcode a shared library path into an executable.
20459 hardcode_action=$hardcode_action_CXX
20460  
20461 # The directories searched by this compiler when creating a shared library.
20462 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20463  
20464 # Dependencies to place before and after the objects being linked to
20465 # create a shared library.
20466 predep_objects=$lt_predep_objects_CXX
20467 postdep_objects=$lt_postdep_objects_CXX
20468 predeps=$lt_predeps_CXX
20469 postdeps=$lt_postdeps_CXX
20470  
20471 # The library search path used internally by the compiler when linking
20472 # a shared library.
20473 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20474  
20475 # ### END LIBTOOL TAG CONFIG: CXX
20476 _LT_EOF
20477  
20478 ;;
20479 "$ac_stdint_h":C)
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
20481 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20482 ac_stdint=$tmp/_stdint.h
20483  
20484 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20485 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20486 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20487 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20488 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20489 if test "_$ac_cv_header_stdint_t" != "_" ; then
20490 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20491 echo "#include <stdint.h>" >>$ac_stdint
20492 echo "#endif" >>$ac_stdint
20493 echo "#endif" >>$ac_stdint
20494 else
20495  
20496 cat >>$ac_stdint <<STDINT_EOF
20497  
20498 /* ................... shortcircuit part ........................... */
20499  
20500 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20501 #include <stdint.h>
20502 #else
20503 #include <stddef.h>
20504  
20505 /* .................... configured part ............................ */
20506  
20507 STDINT_EOF
20508  
20509 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20510 if test "_$ac_cv_header_stdint_x" != "_" ; then
20511 ac_header="$ac_cv_header_stdint_x"
20512 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20513 else
20514 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20515 fi
20516  
20517 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20518 if test "_$ac_cv_header_stdint_o" != "_" ; then
20519 ac_header="$ac_cv_header_stdint_o"
20520 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20521 else
20522 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20523 fi
20524  
20525 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20526 if test "_$ac_cv_header_stdint_u" != "_" ; then
20527 ac_header="$ac_cv_header_stdint_u"
20528 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20529 else
20530 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20531 fi
20532  
20533 echo "" >>$ac_stdint
20534  
20535 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20536 echo "#include <$ac_header>" >>$ac_stdint
20537 echo "" >>$ac_stdint
20538 fi fi
20539  
20540 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20541 if test "$ac_cv_type_uint64_t" = "yes" ; then
20542 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
20543 else
20544 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20545 fi
20546 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20547 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
20548 else
20549 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20550 fi
20551 echo "" >>$ac_stdint
20552  
20553 echo "/* which type model has been detected */" >>$ac_stdint
20554 if test "_$ac_cv_char_data_model" != "_" ; then
20555 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20556 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20557 else
20558 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20559 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20560 fi
20561 echo "" >>$ac_stdint
20562  
20563 echo "/* whether int_least types were detected */" >>$ac_stdint
20564 if test "$ac_cv_type_int_least32_t" = "yes"; then
20565 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
20566 else
20567 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20568 fi
20569 echo "/* whether int_fast types were detected */" >>$ac_stdint
20570 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20571 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20572 else
20573 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20574 fi
20575 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20576 if test "$ac_cv_type_intmax_t" = "yes"; then
20577 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20578 else
20579 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20580 fi
20581 echo "" >>$ac_stdint
20582  
20583 cat >>$ac_stdint <<STDINT_EOF
20584 /* .................... detections part ............................ */
20585  
20586 /* whether we need to define bitspecific types from compiler base types */
20587 #ifndef _STDINT_HEADER_INTPTR
20588 #ifndef _STDINT_HEADER_UINT32
20589 #ifndef _STDINT_HEADER_U_INT32
20590 #define _STDINT_NEED_INT_MODEL_T
20591 #else
20592 #define _STDINT_HAVE_U_INT_TYPES
20593 #endif
20594 #endif
20595 #endif
20596  
20597 #ifdef _STDINT_HAVE_U_INT_TYPES
20598 #undef _STDINT_NEED_INT_MODEL_T
20599 #endif
20600  
20601 #ifdef _STDINT_CHAR_MODEL
20602 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20603 #ifndef _STDINT_BYTE_MODEL
20604 #define _STDINT_BYTE_MODEL 12
20605 #endif
20606 #endif
20607 #endif
20608  
20609 #ifndef _STDINT_HAVE_INT_LEAST32_T
20610 #define _STDINT_NEED_INT_LEAST_T
20611 #endif
20612  
20613 #ifndef _STDINT_HAVE_INT_FAST32_T
20614 #define _STDINT_NEED_INT_FAST_T
20615 #endif
20616  
20617 #ifndef _STDINT_HEADER_INTPTR
20618 #define _STDINT_NEED_INTPTR_T
20619 #ifndef _STDINT_HAVE_INTMAX_T
20620 #define _STDINT_NEED_INTMAX_T
20621 #endif
20622 #endif
20623  
20624  
20625 /* .................... definition part ............................ */
20626  
20627 /* some system headers have good uint64_t */
20628 #ifndef _HAVE_UINT64_T
20629 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
20630 #define _HAVE_UINT64_T
20631 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
20632 #define _HAVE_UINT64_T
20633 typedef u_int64_t uint64_t;
20634 #endif
20635 #endif
20636  
20637 #ifndef _HAVE_UINT64_T
20638 /* .. here are some common heuristics using compiler runtime specifics */
20639 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
20640 #define _HAVE_UINT64_T
20641 #define _HAVE_LONGLONG_UINT64_T
20642 typedef long long int64_t;
20643 typedef unsigned long long uint64_t;
20644  
20645 #elif !defined __STRICT_ANSI__
20646 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20647 #define _HAVE_UINT64_T
20648 typedef __int64 int64_t;
20649 typedef unsigned __int64 uint64_t;
20650  
20651 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
20652 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
20653 #if !defined _NO_LONGLONG
20654 #define _HAVE_UINT64_T
20655 #define _HAVE_LONGLONG_UINT64_T
20656 typedef long long int64_t;
20657 typedef unsigned long long uint64_t;
20658 #endif
20659  
20660 #elif defined __alpha || (defined __mips && defined _ABIN32)
20661 #if !defined _NO_LONGLONG
20662 typedef long int64_t;
20663 typedef unsigned long uint64_t;
20664 #endif
20665 /* compiler/cpu type to define int64_t */
20666 #endif
20667 #endif
20668 #endif
20669  
20670 #if defined _STDINT_HAVE_U_INT_TYPES
20671 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
20672 typedef u_int8_t uint8_t;
20673 typedef u_int16_t uint16_t;
20674 typedef u_int32_t uint32_t;
20675  
20676 /* glibc compatibility */
20677 #ifndef __int8_t_defined
20678 #define __int8_t_defined
20679 #endif
20680 #endif
20681  
20682 #ifdef _STDINT_NEED_INT_MODEL_T
20683 /* we must guess all the basic types. Apart from byte-adressable system, */
20684 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
20685 /* (btw, those nibble-addressable systems are way off, or so we assume) */
20686  
20687  
20688 #if defined _STDINT_BYTE_MODEL
20689 #if _STDINT_LONG_MODEL+0 == 242
20690 /* 2:4:2 = IP16 = a normal 16-bit system */
20691 typedef unsigned char uint8_t;
20692 typedef unsigned short uint16_t;
20693 typedef unsigned long uint32_t;
20694 #ifndef __int8_t_defined
20695 #define __int8_t_defined
20696 typedef char int8_t;
20697 typedef short int16_t;
20698 typedef long int32_t;
20699 #endif
20700 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
20701 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
20702 /* 4:4:4 = ILP32 = a normal 32-bit system */
20703 typedef unsigned char uint8_t;
20704 typedef unsigned short uint16_t;
20705 typedef unsigned int uint32_t;
20706 #ifndef __int8_t_defined
20707 #define __int8_t_defined
20708 typedef char int8_t;
20709 typedef short int16_t;
20710 typedef int int32_t;
20711 #endif
20712 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
20713 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
20714 /* 4:8:8 = LP64 = a normal 64-bit system */
20715 typedef unsigned char uint8_t;
20716 typedef unsigned short uint16_t;
20717 typedef unsigned int uint32_t;
20718 #ifndef __int8_t_defined
20719 #define __int8_t_defined
20720 typedef char int8_t;
20721 typedef short int16_t;
20722 typedef int int32_t;
20723 #endif
20724 /* this system has a "long" of 64bit */
20725 #ifndef _HAVE_UINT64_T
20726 #define _HAVE_UINT64_T
20727 typedef unsigned long uint64_t;
20728 typedef long int64_t;
20729 #endif
20730 #elif _STDINT_LONG_MODEL+0 == 448
20731 /* LLP64 a 64-bit system derived from a 32-bit system */
20732 typedef unsigned char uint8_t;
20733 typedef unsigned short uint16_t;
20734 typedef unsigned int uint32_t;
20735 #ifndef __int8_t_defined
20736 #define __int8_t_defined
20737 typedef char int8_t;
20738 typedef short int16_t;
20739 typedef int int32_t;
20740 #endif
20741 /* assuming the system has a "long long" */
20742 #ifndef _HAVE_UINT64_T
20743 #define _HAVE_UINT64_T
20744 #define _HAVE_LONGLONG_UINT64_T
20745 typedef unsigned long long uint64_t;
20746 typedef long long int64_t;
20747 #endif
20748 #else
20749 #define _STDINT_NO_INT32_T
20750 #endif
20751 #else
20752 #define _STDINT_NO_INT8_T
20753 #define _STDINT_NO_INT32_T
20754 #endif
20755 #endif
20756  
20757 /*
20758 * quote from SunOS-5.8 sys/inttypes.h:
20759 * Use at your own risk. As of February 1996, the committee is squarely
20760 * behind the fixed sized types; the "least" and "fast" types are still being
20761 * discussed. The probability that the "fast" types may be removed before
20762 * the standard is finalized is high enough that they are not currently
20763 * implemented.
20764 */
20765  
20766 #if defined _STDINT_NEED_INT_LEAST_T
20767 typedef int8_t int_least8_t;
20768 typedef int16_t int_least16_t;
20769 typedef int32_t int_least32_t;
20770 #ifdef _HAVE_UINT64_T
20771 typedef int64_t int_least64_t;
20772 #endif
20773  
20774 typedef uint8_t uint_least8_t;
20775 typedef uint16_t uint_least16_t;
20776 typedef uint32_t uint_least32_t;
20777 #ifdef _HAVE_UINT64_T
20778 typedef uint64_t uint_least64_t;
20779 #endif
20780 /* least types */
20781 #endif
20782  
20783 #if defined _STDINT_NEED_INT_FAST_T
20784 typedef int8_t int_fast8_t;
20785 typedef int int_fast16_t;
20786 typedef int32_t int_fast32_t;
20787 #ifdef _HAVE_UINT64_T
20788 typedef int64_t int_fast64_t;
20789 #endif
20790  
20791 typedef uint8_t uint_fast8_t;
20792 typedef unsigned uint_fast16_t;
20793 typedef uint32_t uint_fast32_t;
20794 #ifdef _HAVE_UINT64_T
20795 typedef uint64_t uint_fast64_t;
20796 #endif
20797 /* fast types */
20798 #endif
20799  
20800 #ifdef _STDINT_NEED_INTMAX_T
20801 #ifdef _HAVE_UINT64_T
20802 typedef int64_t intmax_t;
20803 typedef uint64_t uintmax_t;
20804 #else
20805 typedef long intmax_t;
20806 typedef unsigned long uintmax_t;
20807 #endif
20808 #endif
20809  
20810 #ifdef _STDINT_NEED_INTPTR_T
20811 #ifndef __intptr_t_defined
20812 #define __intptr_t_defined
20813 /* we encourage using "long" to store pointer values, never use "int" ! */
20814 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
20815 typedef unsigned int uintptr_t;
20816 typedef int intptr_t;
20817 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
20818 typedef unsigned long uintptr_t;
20819 typedef long intptr_t;
20820 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
20821 typedef uint64_t uintptr_t;
20822 typedef int64_t intptr_t;
20823 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
20824 typedef unsigned long uintptr_t;
20825 typedef long intptr_t;
20826 #endif
20827 #endif
20828 #endif
20829  
20830 /* The ISO C99 standard specifies that in C++ implementations these
20831 should only be defined if explicitly requested. */
20832 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
20833 #ifndef UINT32_C
20834  
20835 /* Signed. */
20836 # define INT8_C(c) c
20837 # define INT16_C(c) c
20838 # define INT32_C(c) c
20839 # ifdef _HAVE_LONGLONG_UINT64_T
20840 # define INT64_C(c) c ## L
20841 # else
20842 # define INT64_C(c) c ## LL
20843 # endif
20844  
20845 /* Unsigned. */
20846 # define UINT8_C(c) c ## U
20847 # define UINT16_C(c) c ## U
20848 # define UINT32_C(c) c ## U
20849 # ifdef _HAVE_LONGLONG_UINT64_T
20850 # define UINT64_C(c) c ## UL
20851 # else
20852 # define UINT64_C(c) c ## ULL
20853 # endif
20854  
20855 /* Maximal type. */
20856 # ifdef _HAVE_LONGLONG_UINT64_T
20857 # define INTMAX_C(c) c ## L
20858 # define UINTMAX_C(c) c ## UL
20859 # else
20860 # define INTMAX_C(c) c ## LL
20861 # define UINTMAX_C(c) c ## ULL
20862 # endif
20863  
20864 /* literalnumbers */
20865 #endif
20866 #endif
20867  
20868 /* These limits are merily those of a two complement byte-oriented system */
20869  
20870 /* Minimum of signed integral types. */
20871 # define INT8_MIN (-128)
20872 # define INT16_MIN (-32767-1)
20873 # define INT32_MIN (-2147483647-1)
20874 #ifndef INT64_MIN
20875 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
20876 #endif
20877 /* Maximum of signed integral types. */
20878 # define INT8_MAX (127)
20879 # define INT16_MAX (32767)
20880 # define INT32_MAX (2147483647)
20881 #ifndef INT64_MAX
20882 # define INT64_MAX (__INT64_C(9223372036854775807))
20883 #endif
20884  
20885 /* Maximum of unsigned integral types. */
20886 #ifndef UINT8_MAX
20887 # define UINT8_MAX (255)
20888 #endif
20889 #ifndef UINT16_MAX
20890 # define UINT16_MAX (65535)
20891 #endif
20892 # define UINT32_MAX (4294967295U)
20893 #ifndef UINT64_MAX
20894 # define UINT64_MAX (__UINT64_C(18446744073709551615))
20895 #endif
20896  
20897 /* Minimum of signed integral types having a minimum size. */
20898 # define INT_LEAST8_MIN INT8_MIN
20899 # define INT_LEAST16_MIN INT16_MIN
20900 # define INT_LEAST32_MIN INT32_MIN
20901 # define INT_LEAST64_MIN INT64_MIN
20902 /* Maximum of signed integral types having a minimum size. */
20903 # define INT_LEAST8_MAX INT8_MAX
20904 # define INT_LEAST16_MAX INT16_MAX
20905 # define INT_LEAST32_MAX INT32_MAX
20906 # define INT_LEAST64_MAX INT64_MAX
20907  
20908 /* Maximum of unsigned integral types having a minimum size. */
20909 # define UINT_LEAST8_MAX UINT8_MAX
20910 # define UINT_LEAST16_MAX UINT16_MAX
20911 # define UINT_LEAST32_MAX UINT32_MAX
20912 # define UINT_LEAST64_MAX UINT64_MAX
20913  
20914 /* shortcircuit*/
20915 #endif
20916 /* once */
20917 #endif
20918 #endif
20919 STDINT_EOF
20920 fi
20921 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
20923 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
20924 else
20925 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
20926 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20927 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
20928 X"$ac_stdint_h" : 'X\(//\)$' \| \
20929 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
20930 $as_echo X"$ac_stdint_h" |
20931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20932 s//\1/
20933 q
20934 }
20935 /^X\(\/\/\)[^/].*/{
20936 s//\1/
20937 q
20938 }
20939 /^X\(\/\/\)$/{
20940 s//\1/
20941 q
20942 }
20943 /^X\(\/\).*/{
20944 s//\1/
20945 q
20946 }
20947 s/.*/./; q'`
20948 as_dir="$ac_dir"; as_fn_mkdir_p
20949 rm -f $ac_stdint_h
20950 mv $ac_stdint $ac_stdint_h
20951 fi
20952 ;;
20953 "$ax_create_pkgconfig_generate":C)
20954 pkgconfig_generate="$ax_create_pkgconfig_generate"
20955 if test ! -f "$pkgconfig_generate.in"
20956 then generate="true"
20957 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
20958 then generate="true"
20959 else generate="false";
20960 fi
20961 if $generate ; then
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
20963 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
20964 cat > $pkgconfig_generate.in <<AXEOF
20965 # generated by configure / remove this line to disable regeneration
20966 prefix=@prefix@
20967 exec_prefix=@exec_prefix@
20968 bindir=@bindir@
20969 libdir=@libdir@
20970 datarootdir=@datarootdir@
20971 datadir=@datadir@
20972 sysconfdir=@sysconfdir@
20973 includedir=@includedir@
20974 package=@PACKAGE@
20975 suffix=@suffix@
20976  
20977 Name: @PACKAGE_NAME@
20978 Description: @PACKAGE_DESCRIPTION@
20979 Version: @PACKAGE_VERSION@
20980 Requires: @PACKAGE_REQUIRES@
20981 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
20982 Cflags: -I\${includedir} @CPPFLAGS@
20983 AXEOF
20984 fi # DONE generate $pkgconfig_generate.in
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
20986 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
20987 cat >conftest.sed <<AXEOF
20988 s|@prefix@|${pkgconfig_prefix}|
20989 s|@exec_prefix@|${pkgconfig_execprefix}|
20990 s|@bindir@|${pkgconfig_bindir}|
20991 s|@libdir@|${pkgconfig_libdir}|
20992 s|@datarootdir@|${pkgconfig_datarootdir}|
20993 s|@datadir@|${pkgconfig_datadir}|
20994 s|@sysconfdir@|${pkgconfig_sysconfdir}|
20995 s|@includedir@|${pkgconfig_includedir}|
20996 s|@suffix@|${pkgconfig_suffix}|
20997 s|@PACKAGE@|${pkgconfig_package}|
20998 s|@PACKAGE_NAME@|${pkgconfig_libname}|
20999 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21000 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21001 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21002 s|@LIBS@|${pkgconfig_libs}|
21003 s|@LDFLAGS@|${pkgconfig_ldflags}|
21004 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21005 AXEOF
21006 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate
21007 if test ! -s $pkgconfig_generate ; then
21008 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
21009 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
21010 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21012 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21013 cat >conftest.sed <<AXEOF
21014 s|@prefix@|${pkgconfig_prefix}|
21015 s|@exec_prefix@|${pkgconfig_execprefix}|
21016 s|@bindir@|${pkgconfig_bindir}|
21017 s|@libdir@|${pkgconfig_src_libdir}|
21018 s|@datarootdir@|${pkgconfig_datarootdir}|
21019 s|@datadir@|${pkgconfig_datadir}|
21020 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21021 s|@includedir@|${pkgconfig_src_headers}|
21022 s|@suffix@|${pkgconfig_suffix}|
21023 s|@PACKAGE@|${pkgconfig_package}|
21024 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21025 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21026 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21027 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21028 s|@LIBS@|${pkgconfig_libs}|
21029 s|@LDFLAGS@|${pkgconfig_ldflags}|
21030 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21031 AXEOF
21032 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
21033 if test ! -s $pkgconfig_uninstalled ; then
21034 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21035 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21036 pkgconfig_requires_add=`echo ${pkgconfig_requires}`
21037 if test ".$pkgconfig_requires_add" != "." ; then
21038 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
21039 else pkgconfig_requires_add=":" ; fi
21040 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21042 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21043 cat >conftest.sed <<AXEOF
21044 s|@prefix@|\"${pkgconfig_prefix}\"|
21045 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
21046 s|@bindir@|\"${pkgconfig_bindir}\"|
21047 s|@libdir@|\"${pkgconfig_src_libdir}\"|
21048 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
21049 s|@datadir@|\"${pkgconfig_datadir}\"|
21050 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
21051 s|@includedir@|\"${pkgconfig_src_headers}\"|
21052 s|@suffix@|\"${pkgconfig_suffix}\"|
21053 s|@PACKAGE@|\"${pkgconfig_package}\"|
21054 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
21055 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
21056 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
21057 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
21058 s|@LIBS@|\"${pkgconfig_libs}\"|
21059 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
21060 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
21061 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
21062 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
21063 s>Version: *>\\;\\; --modversion|--version) echo >
21064 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
21065 s>Libs: *>\\;\\; --libs) echo >
21066 s>Cflags: *>\\;\\; --cflags) echo >
21067 /--libs)/a\\
21068 $pkgconfig_requires_add
21069 /--cflags)/a\\
21070 $pkgconfig_requires_add\\
21071 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
21072 ;; --uninstalled) exit 0 \\
21073 ;; *) ;; esac done
21074 AXEOF
21075 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
21076 if test ! -s $pkgconfig_uninstalled ; then
21077 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21078 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21079 ;;
21080 "bound_test.sh":F) chmod +x bound_test.sh ;;
21081 "pip_test.sh":F) chmod +x pip_test.sh ;;
21082  
21083 esac
21084 done # for ac_tag
21085  
21086  
21087 as_fn_exit 0
21088 _ACEOF
21089 ac_clean_files=$ac_clean_files_save
21090  
21091 test $ac_write_fail = 0 ||
21092 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21093  
21094  
21095 ac_configure_args="$ac_configure_args $isl_configure_args"
21096  
21097  
21098 # configure is writing to config.log, and then calls config.status.
21099 # config.status does its own redirection, appending to config.log.
21100 # Unfortunately, on DOS this fails, as config.log is still kept open
21101 # by configure, so config.status won't be able to write to it; its
21102 # output is simply discarded. So we exec the FD to /dev/null,
21103 # effectively closing config.log, so it can be properly (re)opened and
21104 # appended to by config.status. When coming back to configure, we
21105 # need to make the FD available again.
21106 if test "$no_create" != yes; then
21107 ac_cs_success=:
21108 ac_config_status_args=
21109 test "$silent" = yes &&
21110 ac_config_status_args="$ac_config_status_args --quiet"
21111 exec 5>/dev/null
21112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21113 exec 5>>config.log
21114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21115 # would make configure fail if this is the last instruction.
21116 $ac_cs_success || as_fn_exit 1
21117 fi
21118 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21120 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21121 fi
21122