OSDN Git Service

PR ada/60703
[pf3gnuchains/gcc-fork.git] / libitm / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     PATH=/empty FPATH=/empty; export PATH FPATH
178     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU TM Runtime Library'
558 PACKAGE_TARNAME='libitm'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU TM Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libitm/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 #  include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 #  include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 ARCH_FUTEX_FALSE
605 ARCH_FUTEX_TRUE
606 ARCH_X86_AVX_FALSE
607 ARCH_X86_AVX_TRUE
608 ARCH_X86_FALSE
609 ARCH_X86_TRUE
610 ARCH_ARM_FALSE
611 ARCH_ARM_TRUE
612 link_itm
613 XLDFLAGS
614 XCFLAGS
615 config_path
616 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
617 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
618 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
619 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
620 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
621 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
622 OPT_LDFLAGS
623 SECTION_LDFLAGS
624 HAVE_HWCAP_FALSE
625 HAVE_HWCAP_TRUE
626 HWCAP_LDFLAGS
627 libtool_VERSION
628 MAINT
629 MAINTAINER_MODE_FALSE
630 MAINTAINER_MODE_TRUE
631 enable_static
632 enable_shared
633 CXXCPP
634 CPP
635 OTOOL64
636 OTOOL
637 LIPO
638 NMEDIT
639 DSYMUTIL
640 OBJDUMP
641 LN_S
642 ac_ct_DUMPBIN
643 DUMPBIN
644 LD
645 FGREP
646 EGREP
647 GREP
648 SED
649 LIBTOOL
650 BUILD_INFO_FALSE
651 BUILD_INFO_TRUE
652 PERL
653 RANLIB
654 NM
655 AR
656 am__fastdepCCAS_FALSE
657 am__fastdepCCAS_TRUE
658 CCASDEPMODE
659 CCASFLAGS
660 CCAS
661 am__fastdepCXX_FALSE
662 am__fastdepCXX_TRUE
663 CXXDEPMODE
664 ac_ct_CXX
665 CXXFLAGS
666 CXX
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 toolexeclibdir
684 toolexecdir
685 multi_basedir
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 GENINSRC_FALSE
722 GENINSRC_TRUE
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_version_specific_runtime_libs
765 enable_generated_files_in_srcdir
766 enable_multilib
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_gnu_ld
773 enable_libtool_lock
774 enable_maintainer_mode
775 enable_linux_futex
776 enable_tls
777 enable_symvers
778 '
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CPP
783 CPPFLAGS
784 CXXCPP'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839   # If the previous option needs an argument, assign it.
840   if test -n "$ac_prev"; then
841     eval $ac_prev=\$ac_option
842     ac_prev=
843     continue
844   fi
845
846   case $ac_option in
847   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848   *)    ac_optarg=yes ;;
849   esac
850
851   # Accept the important Cygnus configure options, so we can diagnose typos.
852
853   case $ac_dashdash$ac_option in
854   --)
855     ac_dashdash=yes ;;
856
857   -bindir | --bindir | --bindi | --bind | --bin | --bi)
858     ac_prev=bindir ;;
859   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860     bindir=$ac_optarg ;;
861
862   -build | --build | --buil | --bui | --bu)
863     ac_prev=build_alias ;;
864   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865     build_alias=$ac_optarg ;;
866
867   -cache-file | --cache-file | --cache-fil | --cache-fi \
868   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869     ac_prev=cache_file ;;
870   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872     cache_file=$ac_optarg ;;
873
874   --config-cache | -C)
875     cache_file=config.cache ;;
876
877   -datadir | --datadir | --datadi | --datad)
878     ac_prev=datadir ;;
879   -datadir=* | --datadir=* | --datadi=* | --datad=*)
880     datadir=$ac_optarg ;;
881
882   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883   | --dataroo | --dataro | --datar)
884     ac_prev=datarootdir ;;
885   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887     datarootdir=$ac_optarg ;;
888
889   -disable-* | --disable-*)
890     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891     # Reject names that are not valid shell variable names.
892     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893       as_fn_error "invalid feature name: $ac_useropt"
894     ac_useropt_orig=$ac_useropt
895     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896     case $ac_user_opts in
897       *"
898 "enable_$ac_useropt"
899 "*) ;;
900       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901          ac_unrecognized_sep=', ';;
902     esac
903     eval enable_$ac_useropt=no ;;
904
905   -docdir | --docdir | --docdi | --doc | --do)
906     ac_prev=docdir ;;
907   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908     docdir=$ac_optarg ;;
909
910   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911     ac_prev=dvidir ;;
912   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913     dvidir=$ac_optarg ;;
914
915   -enable-* | --enable-*)
916     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917     # Reject names that are not valid shell variable names.
918     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919       as_fn_error "invalid feature name: $ac_useropt"
920     ac_useropt_orig=$ac_useropt
921     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922     case $ac_user_opts in
923       *"
924 "enable_$ac_useropt"
925 "*) ;;
926       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927          ac_unrecognized_sep=', ';;
928     esac
929     eval enable_$ac_useropt=\$ac_optarg ;;
930
931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933   | --exec | --exe | --ex)
934     ac_prev=exec_prefix ;;
935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937   | --exec=* | --exe=* | --ex=*)
938     exec_prefix=$ac_optarg ;;
939
940   -gas | --gas | --ga | --g)
941     # Obsolete; use --with-gas.
942     with_gas=yes ;;
943
944   -help | --help | --hel | --he | -h)
945     ac_init_help=long ;;
946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947     ac_init_help=recursive ;;
948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949     ac_init_help=short ;;
950
951   -host | --host | --hos | --ho)
952     ac_prev=host_alias ;;
953   -host=* | --host=* | --hos=* | --ho=*)
954     host_alias=$ac_optarg ;;
955
956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957     ac_prev=htmldir ;;
958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959   | --ht=*)
960     htmldir=$ac_optarg ;;
961
962   -includedir | --includedir | --includedi | --included | --include \
963   | --includ | --inclu | --incl | --inc)
964     ac_prev=includedir ;;
965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966   | --includ=* | --inclu=* | --incl=* | --inc=*)
967     includedir=$ac_optarg ;;
968
969   -infodir | --infodir | --infodi | --infod | --info | --inf)
970     ac_prev=infodir ;;
971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972     infodir=$ac_optarg ;;
973
974   -libdir | --libdir | --libdi | --libd)
975     ac_prev=libdir ;;
976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
977     libdir=$ac_optarg ;;
978
979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980   | --libexe | --libex | --libe)
981     ac_prev=libexecdir ;;
982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983   | --libexe=* | --libex=* | --libe=*)
984     libexecdir=$ac_optarg ;;
985
986   -localedir | --localedir | --localedi | --localed | --locale)
987     ac_prev=localedir ;;
988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989     localedir=$ac_optarg ;;
990
991   -localstatedir | --localstatedir | --localstatedi | --localstated \
992   | --localstate | --localstat | --localsta | --localst | --locals)
993     ac_prev=localstatedir ;;
994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996     localstatedir=$ac_optarg ;;
997
998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999     ac_prev=mandir ;;
1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001     mandir=$ac_optarg ;;
1002
1003   -nfp | --nfp | --nf)
1004     # Obsolete; use --without-fp.
1005     with_fp=no ;;
1006
1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008   | --no-cr | --no-c | -n)
1009     no_create=yes ;;
1010
1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013     no_recursion=yes ;;
1014
1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017   | --oldin | --oldi | --old | --ol | --o)
1018     ac_prev=oldincludedir ;;
1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022     oldincludedir=$ac_optarg ;;
1023
1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025     ac_prev=prefix ;;
1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027     prefix=$ac_optarg ;;
1028
1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030   | --program-pre | --program-pr | --program-p)
1031     ac_prev=program_prefix ;;
1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034     program_prefix=$ac_optarg ;;
1035
1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037   | --program-suf | --program-su | --program-s)
1038     ac_prev=program_suffix ;;
1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041     program_suffix=$ac_optarg ;;
1042
1043   -program-transform-name | --program-transform-name \
1044   | --program-transform-nam | --program-transform-na \
1045   | --program-transform-n | --program-transform- \
1046   | --program-transform | --program-transfor \
1047   | --program-transfo | --program-transf \
1048   | --program-trans | --program-tran \
1049   | --progr-tra | --program-tr | --program-t)
1050     ac_prev=program_transform_name ;;
1051   -program-transform-name=* | --program-transform-name=* \
1052   | --program-transform-nam=* | --program-transform-na=* \
1053   | --program-transform-n=* | --program-transform-=* \
1054   | --program-transform=* | --program-transfor=* \
1055   | --program-transfo=* | --program-transf=* \
1056   | --program-trans=* | --program-tran=* \
1057   | --progr-tra=* | --program-tr=* | --program-t=*)
1058     program_transform_name=$ac_optarg ;;
1059
1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061     ac_prev=pdfdir ;;
1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063     pdfdir=$ac_optarg ;;
1064
1065   -psdir | --psdir | --psdi | --psd | --ps)
1066     ac_prev=psdir ;;
1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068     psdir=$ac_optarg ;;
1069
1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071   | -silent | --silent | --silen | --sile | --sil)
1072     silent=yes ;;
1073
1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075     ac_prev=sbindir ;;
1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077   | --sbi=* | --sb=*)
1078     sbindir=$ac_optarg ;;
1079
1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082   | --sharedst | --shareds | --shared | --share | --shar \
1083   | --sha | --sh)
1084     ac_prev=sharedstatedir ;;
1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088   | --sha=* | --sh=*)
1089     sharedstatedir=$ac_optarg ;;
1090
1091   -site | --site | --sit)
1092     ac_prev=site ;;
1093   -site=* | --site=* | --sit=*)
1094     site=$ac_optarg ;;
1095
1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097     ac_prev=srcdir ;;
1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099     srcdir=$ac_optarg ;;
1100
1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102   | --syscon | --sysco | --sysc | --sys | --sy)
1103     ac_prev=sysconfdir ;;
1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106     sysconfdir=$ac_optarg ;;
1107
1108   -target | --target | --targe | --targ | --tar | --ta | --t)
1109     ac_prev=target_alias ;;
1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111     target_alias=$ac_optarg ;;
1112
1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114     verbose=yes ;;
1115
1116   -version | --version | --versio | --versi | --vers | -V)
1117     ac_init_version=: ;;
1118
1119   -with-* | --with-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error "invalid package name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval with_$ac_useropt=\$ac_optarg ;;
1134
1135   -without-* | --without-*)
1136     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139       as_fn_error "invalid package name: $ac_useropt"
1140     ac_useropt_orig=$ac_useropt
1141     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142     case $ac_user_opts in
1143       *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147          ac_unrecognized_sep=', ';;
1148     esac
1149     eval with_$ac_useropt=no ;;
1150
1151   --x)
1152     # Obsolete; use --with-x.
1153     with_x=yes ;;
1154
1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156   | --x-incl | --x-inc | --x-in | --x-i)
1157     ac_prev=x_includes ;;
1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160     x_includes=$ac_optarg ;;
1161
1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164     ac_prev=x_libraries ;;
1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167     x_libraries=$ac_optarg ;;
1168
1169   -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1171     ;;
1172
1173   *=*)
1174     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175     # Reject names that are not valid shell variable names.
1176     case $ac_envvar in #(
1177       '' | [0-9]* | *[!_$as_cr_alnum]* )
1178       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179     esac
1180     eval $ac_envvar=\$ac_optarg
1181     export $ac_envvar ;;
1182
1183   *)
1184     # FIXME: should be removed in autoconf 3.0.
1185     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189     ;;
1190
1191   esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196   as_fn_error "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200   case $enable_option_checking in
1201     no) ;;
1202     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204   esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209                 datadir sysconfdir sharedstatedir localstatedir includedir \
1210                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211                 libdir localedir mandir
1212 do
1213   eval ac_val=\$$ac_var
1214   # Remove trailing slashes.
1215   case $ac_val in
1216     */ )
1217       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218       eval $ac_var=\$ac_val;;
1219   esac
1220   # Be sure to have absolute directory names.
1221   case $ac_val in
1222     [\\/$]* | ?:[\\/]* )  continue;;
1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224   esac
1225   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used." >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   as_fn_error "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262   ac_srcdir_defaulted=yes
1263   # Try the directory containing this script, then the parent directory.
1264   ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266          X"$as_myself" : 'X\(//\)[^/]' \| \
1267          X"$as_myself" : 'X\(//\)$' \| \
1268          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)[^/].*/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\).*/{
1283             s//\1/
1284             q
1285           }
1286           s/.*/./; q'`
1287   srcdir=$ac_confdir
1288   if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290   fi
1291 else
1292   ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301         pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304   srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_env_${ac_var}_value=\$${ac_var}
1315   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323   # Omit some internal or obsolete options to make the list less imposing.
1324   # This message is too long to be a string in the A/UX 3.1 sh.
1325   cat <<_ACEOF
1326 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336   -h, --help              display this help and exit
1337       --help=short        display options specific to this package
1338       --help=recursive    display the short help of all the included packages
1339   -V, --version           display version information and exit
1340   -q, --quiet, --silent   do not print \`checking...' messages
1341       --cache-file=FILE   cache test results in FILE [disabled]
1342   -C, --config-cache      alias for \`--cache-file=config.cache'
1343   -n, --no-create         do not create output files
1344       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347   --prefix=PREFIX         install architecture-independent files in PREFIX
1348                           [$ac_default_prefix]
1349   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                           [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360   --bindir=DIR            user executables [EPREFIX/bin]
1361   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362   --libexecdir=DIR        program executables [EPREFIX/libexec]
1363   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366   --libdir=DIR            object code libraries [EPREFIX/lib]
1367   --includedir=DIR        C header files [PREFIX/include]
1368   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371   --infodir=DIR           info documentation [DATAROOTDIR/info]
1372   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373   --mandir=DIR            man documentation [DATAROOTDIR/man]
1374   --docdir=DIR            documentation root [DATAROOTDIR/doc/libitm]
1375   --htmldir=DIR           html documentation [DOCDIR]
1376   --dvidir=DIR            dvi documentation [DOCDIR]
1377   --pdfdir=DIR            pdf documentation [DOCDIR]
1378   --psdir=DIR             ps documentation [DOCDIR]
1379 _ACEOF
1380
1381   cat <<\_ACEOF
1382
1383 Program names:
1384   --program-prefix=PREFIX            prepend PREFIX to installed program names
1385   --program-suffix=SUFFIX            append SUFFIX to installed program names
1386   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
1388 System types:
1389   --build=BUILD     configure for building on BUILD [guessed]
1390   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391   --target=TARGET   configure for building compilers for TARGET [HOST]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396   case $ac_init_help in
1397      short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1398    esac
1399   cat <<\_ACEOF
1400
1401 Optional Features:
1402   --disable-option-checking  ignore unrecognized --enable/--with options
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-version-specific-runtime-libs
1406                           Specify that runtime libraries should be installed
1407                           in a compiler-specific directory [default=no]
1408   --enable-generated-files-in-srcdir
1409                           put copies of generated files in source dir intended
1410                           for creating source tarballs for users without
1411                           texinfo bison or flex. [default=no]
1412   --enable-multilib       build many library versions (default)
1413   --disable-dependency-tracking  speeds up one-time build
1414   --enable-dependency-tracking   do not reject slow dependency extractors
1415   --enable-shared[=PKGS]  build shared libraries [default=yes]
1416   --enable-static[=PKGS]  build static libraries [default=yes]
1417   --enable-fast-install[=PKGS]
1418                           optimize for fast installation [default=yes]
1419   --disable-libtool-lock  avoid locking (might break parallel builds)
1420   --enable-maintainer-mode  enable make rules and dependencies not useful
1421                           (and sometimes confusing) to the casual installer
1422   --enable-linux-futex    use the Linux futex system call [default=default]
1423   --enable-tls            Use thread-local storage [default=yes]
1424   --enable-symvers=STYLE  enables symbol versioning of the shared library
1425                           [default=yes]
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-pic              try to use only PIC/non-PIC objects [default=use
1431                           both]
1432   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433
1434 Some influential environment variables:
1435   CC          C compiler command
1436   CFLAGS      C compiler flags
1437   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438               nonstandard directory <lib dir>
1439   LIBS        libraries to pass to the linker, e.g. -l<library>
1440   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441               you have headers in a nonstandard directory <include dir>
1442   CXX         C++ compiler command
1443   CXXFLAGS    C++ compiler flags
1444   CCAS        assembler compiler command (defaults to CC)
1445   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1446   CPP         C preprocessor
1447   CXXCPP      C++ preprocessor
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to the package provider.
1453 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1454 General help using GNU software: <http://www.gnu.org/gethelp/>.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460   # If there are subdirs, report their specific --help.
1461   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462     test -d "$ac_dir" ||
1463       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464       continue
1465     ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471   # A ".." for each directory in $ac_dir_suffix.
1472   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473   case $ac_top_builddir_sub in
1474   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476   esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484   .)  # We are building in place.
1485     ac_srcdir=.
1486     ac_top_srcdir=$ac_top_builddir_sub
1487     ac_abs_top_srcdir=$ac_pwd ;;
1488   [\\/]* | ?:[\\/]* )  # Absolute name.
1489     ac_srcdir=$srcdir$ac_dir_suffix;
1490     ac_top_srcdir=$srcdir
1491     ac_abs_top_srcdir=$srcdir ;;
1492   *) # Relative name.
1493     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494     ac_top_srcdir=$ac_top_build_prefix$srcdir
1495     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499     cd "$ac_dir" || { ac_status=$?; continue; }
1500     # Check for guested configure.
1501     if test -f "$ac_srcdir/configure.gnu"; then
1502       echo &&
1503       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504     elif test -f "$ac_srcdir/configure"; then
1505       echo &&
1506       $SHELL "$ac_srcdir/configure" --help=recursive
1507     else
1508       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509     fi || ac_status=$?
1510     cd "$ac_pwd" || { ac_status=$?; break; }
1511   done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516   cat <<\_ACEOF
1517 GNU TM Runtime Library configure 1.0
1518 generated by GNU Autoconf 2.64
1519
1520 Copyright (C) 2009 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524   exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537   rm -f conftest.$ac_objext
1538   if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541   *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545   (eval "$ac_compile") 2>conftest.err
1546   ac_status=$?
1547   if test -s conftest.err; then
1548     grep -v '^ *+' conftest.err >conftest.er1
1549     cat conftest.er1 >&5
1550     mv -f conftest.er1 conftest.err
1551   fi
1552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553   test $ac_status = 0; } && {
1554          test -z "$ac_c_werror_flag" ||
1555          test ! -s conftest.err
1556        } && test -s conftest.$ac_objext; then :
1557   ac_retval=0
1558 else
1559   $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562         ac_retval=1
1563 fi
1564   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565   return $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_cxx_try_compile LINENO
1570 # ----------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_cxx_try_compile ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   rm -f conftest.$ac_objext
1576   if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579   *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583   (eval "$ac_compile") 2>conftest.err
1584   ac_status=$?
1585   if test -s conftest.err; then
1586     grep -v '^ *+' conftest.err >conftest.er1
1587     cat conftest.er1 >&5
1588     mv -f conftest.er1 conftest.err
1589   fi
1590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591   test $ac_status = 0; } && {
1592          test -z "$ac_cxx_werror_flag" ||
1593          test ! -s conftest.err
1594        } && test -s conftest.$ac_objext; then :
1595   ac_retval=0
1596 else
1597   $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600         ac_retval=1
1601 fi
1602   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603   return $ac_retval
1604
1605 } # ac_fn_cxx_try_compile
1606
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   rm -f conftest.$ac_objext conftest$ac_exeext
1614   if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617   *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621   (eval "$ac_link") 2>conftest.err
1622   ac_status=$?
1623   if test -s conftest.err; then
1624     grep -v '^ *+' conftest.err >conftest.er1
1625     cat conftest.er1 >&5
1626     mv -f conftest.er1 conftest.err
1627   fi
1628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629   test $ac_status = 0; } && {
1630          test -z "$ac_c_werror_flag" ||
1631          test ! -s conftest.err
1632        } && test -s conftest$ac_exeext && {
1633          test "$cross_compiling" = yes ||
1634          $as_test_x conftest$ac_exeext
1635        }; then :
1636   ac_retval=0
1637 else
1638   $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641         ac_retval=1
1642 fi
1643   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645   # interfere with the next link command; also delete a directory that is
1646   # left behind by Apple's compiler.  We do this before executing the actions.
1647   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649   return $ac_retval
1650
1651 } # ac_fn_c_try_link
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663   $as_echo_n "(cached) " >&6
1664 else
1665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h.  */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671   eval "$3=yes"
1672 else
1673   eval "$3=no"
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 fi
1677 eval ac_res=\$$3
1678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698   ac_status=$?
1699   if test -s conftest.err; then
1700     grep -v '^ *+' conftest.err >conftest.er1
1701     cat conftest.er1 >&5
1702     mv -f conftest.er1 conftest.err
1703   fi
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } >/dev/null && {
1706          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707          test ! -s conftest.err
1708        }; then :
1709   ac_retval=0
1710 else
1711   $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714     ac_retval=1
1715 fi
1716   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717   return $ac_retval
1718
1719 } # ac_fn_c_try_cpp
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_link") 2>&5
1736   ac_status=$?
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739   { { case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_try") 2>&5
1746   ac_status=$?
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; }; }; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: program exited with status $ac_status" >&5
1752        $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755        ac_retval=$ac_status
1756 fi
1757   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759   return $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772   $as_echo_n "(cached) " >&6
1773 else
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1778 #define $2 innocuous_$2
1779
1780 /* System header to define __stub macros and hopefully few prototypes,
1781     which can conflict with char $2 (); below.
1782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783     <limits.h> exists even on freestanding compilers.  */
1784
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1790
1791 #undef $2
1792
1793 /* Override any GCC internal prototype to avoid an error.
1794    Use char because int might match the return type of a GCC
1795    builtin and then its argument prototype would still apply.  */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801     to always fail with ENOSYS.  Some functions are actually named
1802     something starting with __ and the normal name is an alias.  */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1806
1807 int
1808 main ()
1809 {
1810 return $2 ();
1811   ;
1812   return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816   eval "$3=yes"
1817 else
1818   eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext \
1821     conftest$ac_exeext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828 } # ac_fn_c_check_func
1829
1830 # ac_fn_cxx_try_cpp LINENO
1831 # ------------------------
1832 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_cxx_try_cpp ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   if { { ac_try="$ac_cpp conftest.$ac_ext"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844   ac_status=$?
1845   if test -s conftest.err; then
1846     grep -v '^ *+' conftest.err >conftest.er1
1847     cat conftest.er1 >&5
1848     mv -f conftest.er1 conftest.err
1849   fi
1850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851   test $ac_status = 0; } >/dev/null && {
1852          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1853          test ! -s conftest.err
1854        }; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860     ac_retval=1
1861 fi
1862   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863   return $ac_retval
1864
1865 } # ac_fn_cxx_try_cpp
1866
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   rm -f conftest.$ac_objext conftest$ac_exeext
1874   if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_link") 2>conftest.err
1882   ac_status=$?
1883   if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887   fi
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && {
1890          test -z "$ac_cxx_werror_flag" ||
1891          test ! -s conftest.err
1892        } && test -s conftest$ac_exeext && {
1893          test "$cross_compiling" = yes ||
1894          $as_test_x conftest$ac_exeext
1895        }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901         ac_retval=1
1902 fi
1903   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905   # interfere with the next link command; also delete a directory that is
1906   # left behind by Apple's compiler.  We do this before executing the actions.
1907   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909   return $ac_retval
1910
1911 } # ac_fn_cxx_try_link
1912
1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916 # the include files in INCLUDES and setting the cache variable VAR
1917 # accordingly.
1918 ac_fn_c_check_header_mongrel ()
1919 {
1920   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925   $as_echo_n "(cached) " >&6
1926 fi
1927 eval ac_res=\$$3
1928                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 else
1931   # Is the header compilable?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933 $as_echo_n "checking $2 usability... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h.  */
1936 $4
1937 #include <$2>
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940   ac_header_compiler=yes
1941 else
1942   ac_header_compiler=no
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946 $as_echo "$ac_header_compiler" >&6; }
1947
1948 # Is the header present?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950 $as_echo_n "checking $2 presence... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 #include <$2>
1954 _ACEOF
1955 if ac_fn_c_try_cpp "$LINENO"; then :
1956   ac_header_preproc=yes
1957 else
1958   ac_header_preproc=no
1959 fi
1960 rm -f conftest.err conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962 $as_echo "$ac_header_preproc" >&6; }
1963
1964 # So?  What about this header?
1965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966   yes:no: )
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971     ;;
1972   no:yes:* )
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1976 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1977     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1980 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983     ;;
1984 esac
1985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988   $as_echo_n "(cached) " >&6
1989 else
1990   eval "$3=\$ac_header_compiler"
1991 fi
1992 eval ac_res=\$$3
1993                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 fi
1996   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997
1998 } # ac_fn_c_check_header_mongrel
1999
2000 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2001 # -------------------------------------------
2002 # Tests whether TYPE exists after having included INCLUDES, setting cache
2003 # variable VAR accordingly.
2004 ac_fn_c_check_type ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010   $as_echo_n "(cached) " >&6
2011 else
2012   eval "$3=no"
2013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $4
2016 int
2017 main ()
2018 {
2019 if (sizeof ($2))
2020          return 0;
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $4
2029 int
2030 main ()
2031 {
2032 if (sizeof (($2)))
2033             return 0;
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039
2040 else
2041   eval "$3=yes"
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 eval ac_res=\$$3
2048                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052 } # ac_fn_c_check_type
2053
2054 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055 # --------------------------------------------
2056 # Tries to find the compile-time value of EXPR in a program that includes
2057 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2058 # computed
2059 ac_fn_c_compute_int ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   if test "$cross_compiling" = yes; then
2063     # Depending upon the size, compute the lo and hi bounds.
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h.  */
2066 $4
2067 int
2068 main ()
2069 {
2070 static int test_array [1 - 2 * !(($2) >= 0)];
2071 test_array [0] = 0
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078   ac_lo=0 ac_mid=0
2079   while :; do
2080     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h.  */
2082 $4
2083 int
2084 main ()
2085 {
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   ac_hi=$ac_mid; break
2095 else
2096   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097                         if test $ac_lo -le $ac_mid; then
2098                           ac_lo= ac_hi=
2099                           break
2100                         fi
2101                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104   done
2105 else
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 $4
2109 int
2110 main ()
2111 {
2112 static int test_array [1 - 2 * !(($2) < 0)];
2113 test_array [0] = 0
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120   ac_hi=-1 ac_mid=-1
2121   while :; do
2122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h.  */
2124 $4
2125 int
2126 main ()
2127 {
2128 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 test_array [0] = 0
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136   ac_lo=$ac_mid; break
2137 else
2138   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139                         if test $ac_mid -le $ac_hi; then
2140                           ac_lo= ac_hi=
2141                           break
2142                         fi
2143                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146   done
2147 else
2148   ac_lo= ac_hi=
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h.  */
2158 $4
2159 int
2160 main ()
2161 {
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 test_array [0] = 0
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170   ac_hi=$ac_mid
2171 else
2172   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2173 fi
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 case $ac_lo in #((
2177 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2178 '') ac_retval=1 ;;
2179 esac
2180   else
2181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $4
2184 static long int longval () { return $2; }
2185 static unsigned long int ulongval () { return $2; }
2186 #include <stdio.h>
2187 #include <stdlib.h>
2188 int
2189 main ()
2190 {
2191
2192   FILE *f = fopen ("conftest.val", "w");
2193   if (! f)
2194     return 1;
2195   if (($2) < 0)
2196     {
2197       long int i = longval ();
2198       if (i != ($2))
2199         return 1;
2200       fprintf (f, "%ld", i);
2201     }
2202   else
2203     {
2204       unsigned long int i = ulongval ();
2205       if (i != ($2))
2206         return 1;
2207       fprintf (f, "%lu", i);
2208     }
2209   /* Do not output a trailing newline, as this causes \r\n confusion
2210      on some platforms.  */
2211   return ferror (f) || fclose (f) != 0;
2212
2213   ;
2214   return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_run "$LINENO"; then :
2218   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2219 else
2220   ac_retval=1
2221 fi
2222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2223   conftest.$ac_objext conftest.beam conftest.$ac_ext
2224 rm -f conftest.val
2225
2226   fi
2227   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228   return $ac_retval
2229
2230 } # ac_fn_c_compute_int
2231
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR
2233 # ------------------------------------
2234 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2235 ac_fn_c_check_decl ()
2236 {
2237   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238   as_decl_name=`echo $2|sed 's/ *(.*//'`
2239   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2241 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243   $as_echo_n "(cached) " >&6
2244 else
2245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $4
2248 int
2249 main ()
2250 {
2251 #ifndef $as_decl_name
2252 #ifdef __cplusplus
2253   (void) $as_decl_use;
2254 #else
2255   (void) $as_decl_name;
2256 #endif
2257 #endif
2258
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264   eval "$3=yes"
2265 else
2266   eval "$3=no"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 eval ac_res=\$$3
2271                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275 } # ac_fn_c_check_decl
2276 cat >config.log <<_ACEOF
2277 This file contains any messages produced by compilers while
2278 running configure, to aid debugging if configure makes a mistake.
2279
2280 It was created by GNU TM Runtime Library $as_me 1.0, which was
2281 generated by GNU Autoconf 2.64.  Invocation command line was
2282
2283   $ $0 $@
2284
2285 _ACEOF
2286 exec 5>>config.log
2287 {
2288 cat <<_ASUNAME
2289 ## --------- ##
2290 ## Platform. ##
2291 ## --------- ##
2292
2293 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310 _ASUNAME
2311
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317     $as_echo "PATH: $as_dir"
2318   done
2319 IFS=$as_save_IFS
2320
2321 } >&5
2322
2323 cat >&5 <<_ACEOF
2324
2325
2326 ## ----------- ##
2327 ## Core tests. ##
2328 ## ----------- ##
2329
2330 _ACEOF
2331
2332
2333 # Keep a trace of the command line.
2334 # Strip out --no-create and --no-recursion so they do not pile up.
2335 # Strip out --silent because we don't want to record it for future runs.
2336 # Also quote any args containing shell meta-characters.
2337 # Make two passes to allow for proper duplicate-argument suppression.
2338 ac_configure_args=
2339 ac_configure_args0=
2340 ac_configure_args1=
2341 ac_must_keep_next=false
2342 for ac_pass in 1 2
2343 do
2344   for ac_arg
2345   do
2346     case $ac_arg in
2347     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349     | -silent | --silent | --silen | --sile | --sil)
2350       continue ;;
2351     *\'*)
2352       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353     esac
2354     case $ac_pass in
2355     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356     2)
2357       as_fn_append ac_configure_args1 " '$ac_arg'"
2358       if test $ac_must_keep_next = true; then
2359         ac_must_keep_next=false # Got value, back to normal.
2360       else
2361         case $ac_arg in
2362           *=* | --config-cache | -C | -disable-* | --disable-* \
2363           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365           | -with-* | --with-* | -without-* | --without-* | --x)
2366             case "$ac_configure_args0 " in
2367               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368             esac
2369             ;;
2370           -* ) ac_must_keep_next=true ;;
2371         esac
2372       fi
2373       as_fn_append ac_configure_args " '$ac_arg'"
2374       ;;
2375     esac
2376   done
2377 done
2378 { ac_configure_args0=; unset ac_configure_args0;}
2379 { ac_configure_args1=; unset ac_configure_args1;}
2380
2381 # When interrupted or exit'd, cleanup temporary files, and complete
2382 # config.log.  We remove comments because anyway the quotes in there
2383 # would cause problems or look ugly.
2384 # WARNING: Use '\'' to represent an apostrophe within the trap.
2385 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386 trap 'exit_status=$?
2387   # Save into config.log some information that might help in debugging.
2388   {
2389     echo
2390
2391     cat <<\_ASBOX
2392 ## ---------------- ##
2393 ## Cache variables. ##
2394 ## ---------------- ##
2395 _ASBOX
2396     echo
2397     # The following way of writing the cache mishandles newlines in values,
2398 (
2399   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400     eval ac_val=\$$ac_var
2401     case $ac_val in #(
2402     *${as_nl}*)
2403       case $ac_var in #(
2404       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406       esac
2407       case $ac_var in #(
2408       _ | IFS | as_nl) ;; #(
2409       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410       *) { eval $ac_var=; unset $ac_var;} ;;
2411       esac ;;
2412     esac
2413   done
2414   (set) 2>&1 |
2415     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416     *${as_nl}ac_space=\ *)
2417       sed -n \
2418         "s/'\''/'\''\\\\'\'''\''/g;
2419           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420       ;; #(
2421     *)
2422       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423       ;;
2424     esac |
2425     sort
2426 )
2427     echo
2428
2429     cat <<\_ASBOX
2430 ## ----------------- ##
2431 ## Output variables. ##
2432 ## ----------------- ##
2433 _ASBOX
2434     echo
2435     for ac_var in $ac_subst_vars
2436     do
2437       eval ac_val=\$$ac_var
2438       case $ac_val in
2439       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440       esac
2441       $as_echo "$ac_var='\''$ac_val'\''"
2442     done | sort
2443     echo
2444
2445     if test -n "$ac_subst_files"; then
2446       cat <<\_ASBOX
2447 ## ------------------- ##
2448 ## File substitutions. ##
2449 ## ------------------- ##
2450 _ASBOX
2451       echo
2452       for ac_var in $ac_subst_files
2453       do
2454         eval ac_val=\$$ac_var
2455         case $ac_val in
2456         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457         esac
2458         $as_echo "$ac_var='\''$ac_val'\''"
2459       done | sort
2460       echo
2461     fi
2462
2463     if test -s confdefs.h; then
2464       cat <<\_ASBOX
2465 ## ----------- ##
2466 ## confdefs.h. ##
2467 ## ----------- ##
2468 _ASBOX
2469       echo
2470       cat confdefs.h
2471       echo
2472     fi
2473     test "$ac_signal" != 0 &&
2474       $as_echo "$as_me: caught signal $ac_signal"
2475     $as_echo "$as_me: exit $exit_status"
2476   } >&5
2477   rm -f core *.core core.conftest.* &&
2478     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479     exit $exit_status
2480 ' 0
2481 for ac_signal in 1 2 13 15; do
2482   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483 done
2484 ac_signal=0
2485
2486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2487 rm -f -r conftest* confdefs.h
2488
2489 $as_echo "/* confdefs.h */" > confdefs.h
2490
2491 # Predefined preprocessor variables.
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_NAME "$PACKAGE_NAME"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_STRING "$PACKAGE_STRING"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_URL "$PACKAGE_URL"
2515 _ACEOF
2516
2517
2518 # Let the site file select an alternate cache file if it wants to.
2519 # Prefer an explicitly selected file to automatically selected ones.
2520 ac_site_file1=NONE
2521 ac_site_file2=NONE
2522 if test -n "$CONFIG_SITE"; then
2523   ac_site_file1=$CONFIG_SITE
2524 elif test "x$prefix" != xNONE; then
2525   ac_site_file1=$prefix/share/config.site
2526   ac_site_file2=$prefix/etc/config.site
2527 else
2528   ac_site_file1=$ac_default_prefix/share/config.site
2529   ac_site_file2=$ac_default_prefix/etc/config.site
2530 fi
2531 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532 do
2533   test "x$ac_site_file" = xNONE && continue
2534   if test -r "$ac_site_file"; then
2535     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537     sed 's/^/| /' "$ac_site_file" >&5
2538     . "$ac_site_file"
2539   fi
2540 done
2541
2542 if test -r "$cache_file"; then
2543   # Some versions of bash will fail to source /dev/null (special
2544   # files actually), so we avoid doing that.
2545   if test -f "$cache_file"; then
2546     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547 $as_echo "$as_me: loading cache $cache_file" >&6;}
2548     case $cache_file in
2549       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550       *)                      . "./$cache_file";;
2551     esac
2552   fi
2553 else
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555 $as_echo "$as_me: creating cache $cache_file" >&6;}
2556   >$cache_file
2557 fi
2558
2559 # Check that the precious variables saved in the cache have kept the same
2560 # value.
2561 ac_cache_corrupted=false
2562 for ac_var in $ac_precious_vars; do
2563   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564   eval ac_new_set=\$ac_env_${ac_var}_set
2565   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566   eval ac_new_val=\$ac_env_${ac_var}_value
2567   case $ac_old_set,$ac_new_set in
2568     set,)
2569       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571       ac_cache_corrupted=: ;;
2572     ,set)
2573       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575       ac_cache_corrupted=: ;;
2576     ,);;
2577     *)
2578       if test "x$ac_old_val" != "x$ac_new_val"; then
2579         # differences in whitespace do not lead to failure.
2580         ac_old_val_w=`echo x $ac_old_val`
2581         ac_new_val_w=`echo x $ac_new_val`
2582         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585           ac_cache_corrupted=:
2586         else
2587           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589           eval $ac_var=\$ac_old_val
2590         fi
2591         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2592 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2593         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2594 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2595       fi;;
2596   esac
2597   # Pass precious variables to config.status.
2598   if test "$ac_new_set" = set; then
2599     case $ac_new_val in
2600     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601     *) ac_arg=$ac_var=$ac_new_val ;;
2602     esac
2603     case " $ac_configure_args " in
2604       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2605       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606     esac
2607   fi
2608 done
2609 if $ac_cache_corrupted; then
2610   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2615 fi
2616 ## -------------------- ##
2617 ## Main body of script. ##
2618 ## -------------------- ##
2619
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628
2629
2630 ac_config_headers="$ac_config_headers config.h"
2631
2632
2633 # -------
2634 # Options
2635 # -------
2636
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2638 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2639  # Check whether --enable-version-specific-runtime-libs was given.
2640 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2641   enableval=$enable_version_specific_runtime_libs;
2642       case "$enableval" in
2643        yes|no) ;;
2644        *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2645                           esac
2646
2647 else
2648   enable_version_specific_runtime_libs=no
2649 fi
2650
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2653 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2654
2655 # We would like our source tree to be readonly. However when releases or
2656 # pre-releases are generated, the flex/bison generated files as well as the
2657 # various formats of manuals need to be included along with the rest of the
2658 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
2659 # just that.
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2661 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2662  # Check whether --enable-generated-files-in-srcdir was given.
2663 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2664   enableval=$enable_generated_files_in_srcdir;
2665       case "$enableval" in
2666        yes|no) ;;
2667        *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2668                           esac
2669
2670 else
2671   enable_generated_files_in_srcdir=no
2672 fi
2673
2674
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2676 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2677  if test "$enable_generated_files_in_srcdir" = yes; then
2678   GENINSRC_TRUE=
2679   GENINSRC_FALSE='#'
2680 else
2681   GENINSRC_TRUE='#'
2682   GENINSRC_FALSE=
2683 fi
2684
2685
2686
2687 # -------
2688 # -------
2689
2690 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2691 #
2692 # You will slowly go insane if you do not grok the following fact:  when
2693 # building this library, the top-level /target/ becomes the library's /host/.
2694 #
2695 # configure then causes --target to default to --host, exactly like any
2696 # other package using autoconf.  Therefore, 'target' and 'host' will
2697 # always be the same.  This makes sense both for native and cross compilers
2698 # just think about it for a little while.  :-)
2699 #
2700 # Also, if this library is being configured as part of a cross compiler, the
2701 # top-level configure script will pass the "real" host as $with_cross_host.
2702 #
2703 # Do not delete or change the following two lines.  For why, see
2704 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2705 ac_aux_dir=
2706 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2707   for ac_t in install-sh install.sh shtool; do
2708     if test -f "$ac_dir/$ac_t"; then
2709       ac_aux_dir=$ac_dir
2710       ac_install_sh="$ac_aux_dir/$ac_t -c"
2711       break 2
2712     fi
2713   done
2714 done
2715 if test -z "$ac_aux_dir"; then
2716   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2717 fi
2718
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2725 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2726
2727
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if test "${ac_cv_build+set}" = set; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   ac_build_alias=$build_alias
2738 test "x$ac_build_alias" = x &&
2739   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x &&
2741   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744
2745 fi
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2749 *-*-*) ;;
2750 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2751 esac
2752 build=$ac_cv_build
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_build
2755 shift
2756 build_cpu=$1
2757 build_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 build_os=$*
2762 IFS=$ac_save_IFS
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if test "${ac_cv_host+set}" = set; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test "x$host_alias" = x; then
2772   ac_cv_host=$ac_cv_build
2773 else
2774   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776 fi
2777
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2781 case $ac_cv_host in
2782 *-*-*) ;;
2783 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2784 esac
2785 host=$ac_cv_host
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_host
2788 shift
2789 host_cpu=$1
2790 host_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 host_os=$*
2795 IFS=$ac_save_IFS
2796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800 $as_echo_n "checking target system type... " >&6; }
2801 if test "${ac_cv_target+set}" = set; then :
2802   $as_echo_n "(cached) " >&6
2803 else
2804   if test "x$target_alias" = x; then
2805   ac_cv_target=$ac_cv_host
2806 else
2807   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2809 fi
2810
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813 $as_echo "$ac_cv_target" >&6; }
2814 case $ac_cv_target in
2815 *-*-*) ;;
2816 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2817 esac
2818 target=$ac_cv_target
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_target
2821 shift
2822 target_cpu=$1
2823 target_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 target_os=$*
2828 IFS=$ac_save_IFS
2829 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2830
2831
2832 # The aliases save the names the user supplied, while $host etc.
2833 # will get canonicalized.
2834 test -n "$target_alias" &&
2835   test "$program_prefix$program_suffix$program_transform_name" = \
2836     NONENONEs,x,x, &&
2837   program_prefix=${target_alias}-
2838
2839 target_alias=${target_alias-$host_alias}
2840
2841 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2842 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2843 #  1.9.0:  minimum required version
2844 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845 #              of other PACKAGE_* variables will, however, and there's nothing
2846 #              we can do about that; they come from AC_INIT).
2847 #  no-dist:  we don't want 'dist' and related rules.
2848 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2849 #            file in the top srcdir, etc, etc), so stop complaining.
2850 #  -Wall:  turns on all automake warnings...
2851 #  -Wno-portability:  ...except this one, since GNU make is required.
2852 #  -Wno-override: ... and this one, since we do want this in testsuite.
2853 am__api_version='1.11'
2854
2855 # Find a good install program.  We prefer a C program (faster),
2856 # so one script is as good as another.  But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if test "${ac_cv_path_install+set}" = set; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880     # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882   ./ | .// | /[cC]/* | \
2883   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2885   /usr/ucb/* ) ;;
2886   *)
2887     # OSF1 and SCO ODT 3.0 have their own names for install.
2888     # Don't use installbsd from OSF since it installs stuff as root
2889     # by default.
2890     for ac_prog in ginstall scoinst install; do
2891       for ac_exec_ext in '' $ac_executable_extensions; do
2892         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2893           if test $ac_prog = install &&
2894             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895             # AIX install.  It has an incompatible calling convention.
2896             :
2897           elif test $ac_prog = install &&
2898             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899             # program-specific install script used by HP pwplus--don't use.
2900             :
2901           else
2902             rm -rf conftest.one conftest.two conftest.dir
2903             echo one > conftest.one
2904             echo two > conftest.two
2905             mkdir conftest.dir
2906             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907               test -s conftest.one && test -s conftest.two &&
2908               test -s conftest.dir/conftest.one &&
2909               test -s conftest.dir/conftest.two
2910             then
2911               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912               break 3
2913             fi
2914           fi
2915         fi
2916       done
2917     done
2918     ;;
2919 esac
2920
2921   done
2922 IFS=$as_save_IFS
2923
2924 rm -rf conftest.one conftest.two conftest.dir
2925
2926 fi
2927   if test "${ac_cv_path_install+set}" = set; then
2928     INSTALL=$ac_cv_path_install
2929   else
2930     # As a last resort, use the slow shell script.  Don't cache a
2931     # value for INSTALL within a source directory, because that will
2932     # break other packages using the cache if that directory is
2933     # removed, or if the value is a relative name.
2934     INSTALL=$ac_install_sh
2935   fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2939
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2943
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2945
2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2950 # Just in case
2951 sleep 1
2952 echo timestamp > conftest.file
2953 # Reject unsafe characters in $srcdir or the absolute working directory
2954 # name.  Accept space and tab only in the latter.
2955 am_lf='
2956 '
2957 case `pwd` in
2958   *[\\\"\#\$\&\'\`$am_lf]*)
2959     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2960 esac
2961 case $srcdir in
2962   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2963     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2964 esac
2965
2966 # Do `set' in a subshell so we don't clobber the current shell's
2967 # arguments.  Must try -L first in case configure is actually a
2968 # symlink; some systems play weird games with the mod time of symlinks
2969 # (eg FreeBSD returns the mod time of the symlink's containing
2970 # directory).
2971 if (
2972    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973    if test "$*" = "X"; then
2974       # -L didn't work.
2975       set X `ls -t "$srcdir/configure" conftest.file`
2976    fi
2977    rm -f conftest.file
2978    if test "$*" != "X $srcdir/configure conftest.file" \
2979       && test "$*" != "X conftest.file $srcdir/configure"; then
2980
2981       # If neither matched, then we have a broken ls.  This can happen
2982       # if, for instance, CONFIG_SHELL is bash and it inherits a
2983       # broken ls alias from the environment.  This has actually
2984       # happened.  Such a system could not be considered "sane".
2985       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2987    fi
2988
2989    test "$2" = conftest.file
2990    )
2991 then
2992    # Ok.
2993    :
2994 else
2995    as_fn_error "newly created file is older than distributed files!
2996 Check your system clock" "$LINENO" 5
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2999 $as_echo "yes" >&6; }
3000 test "$program_prefix" != NONE &&
3001   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3002 # Use a double $ so make ignores it.
3003 test "$program_suffix" != NONE &&
3004   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3005 # Double any \ or $.
3006 # By default was `s,x,x', remove it if useless.
3007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3009
3010 # expand $ac_aux_dir to an absolute path
3011 am_aux_dir=`cd $ac_aux_dir && pwd`
3012
3013 if test x"${MISSING+set}" != xset; then
3014   case $am_aux_dir in
3015   *\ * | *\     *)
3016     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3017   *)
3018     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3019   esac
3020 fi
3021 # Use eval to expand $SHELL
3022 if eval "$MISSING --run true"; then
3023   am_missing_run="$MISSING --run "
3024 else
3025   am_missing_run=
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3028 fi
3029
3030 if test x"${install_sh}" != xset; then
3031   case $am_aux_dir in
3032   *\ * | *\     *)
3033     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3034   *)
3035     install_sh="\${SHELL} $am_aux_dir/install-sh"
3036   esac
3037 fi
3038
3039 # Installed binaries are usually stripped using `strip' when the user
3040 # run `make install-strip'.  However `strip' might not be the right
3041 # tool to use in cross-compilation environments, therefore Automake
3042 # will honor the `STRIP' environment variable to overrule this program.
3043 if test "$cross_compiling" != no; then
3044   if test -n "$ac_tool_prefix"; then
3045   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_STRIP+set}" = set; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   if test -n "$STRIP"; then
3053   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060     for ac_exec_ext in '' $ac_executable_extensions; do
3061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067   done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075 $as_echo "$STRIP" >&6; }
3076 else
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$ac_cv_prog_STRIP"; then
3084   ac_ct_STRIP=$STRIP
3085   # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$ac_ct_STRIP"; then
3093   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100     for ac_exec_ext in '' $ac_executable_extensions; do
3101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102     ac_cv_prog_ac_ct_STRIP="strip"
3103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107   done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113 if test -n "$ac_ct_STRIP"; then
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3115 $as_echo "$ac_ct_STRIP" >&6; }
3116 else
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121   if test "x$ac_ct_STRIP" = x; then
3122     STRIP=":"
3123   else
3124     case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130     STRIP=$ac_ct_STRIP
3131   fi
3132 else
3133   STRIP="$ac_cv_prog_STRIP"
3134 fi
3135
3136 fi
3137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3138
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3140 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3141 if test -z "$MKDIR_P"; then
3142   if test "${ac_cv_path_mkdir+set}" = set; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150     for ac_prog in mkdir gmkdir; do
3151          for ac_exec_ext in '' $ac_executable_extensions; do
3152            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3153            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3154              'mkdir (GNU coreutils) '* | \
3155              'mkdir (coreutils) '* | \
3156              'mkdir (fileutils) '4.1*)
3157                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3158                break 3;;
3159            esac
3160          done
3161        done
3162   done
3163 IFS=$as_save_IFS
3164
3165 fi
3166
3167   if test "${ac_cv_path_mkdir+set}" = set; then
3168     MKDIR_P="$ac_cv_path_mkdir -p"
3169   else
3170     # As a last resort, use the slow shell script.  Don't cache a
3171     # value for MKDIR_P within a source directory, because that will
3172     # break other packages using the cache if that directory is
3173     # removed, or if the value is a relative name.
3174     test -d ./--version && rmdir ./--version
3175     MKDIR_P="$ac_install_sh -d"
3176   fi
3177 fi
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3179 $as_echo "$MKDIR_P" >&6; }
3180
3181 mkdir_p="$MKDIR_P"
3182 case $mkdir_p in
3183   [\\/$]* | ?:[\\/]*) ;;
3184   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3185 esac
3186
3187 for ac_prog in gawk mawk nawk awk
3188 do
3189   # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_AWK+set}" = set; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$AWK"; then
3197   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_AWK="$ac_prog"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 AWK=$ac_cv_prog_AWK
3217 if test -n "$AWK"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3219 $as_echo "$AWK" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226   test -n "$AWK" && break
3227 done
3228
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3230 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3231 set x ${MAKE-make}
3232 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3233 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   cat >conftest.make <<\_ACEOF
3237 SHELL = /bin/sh
3238 all:
3239         @echo '@@@%%%=$(MAKE)=@@@%%%'
3240 _ACEOF
3241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3242 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3243   *@@@%%%=?*=@@@%%%*)
3244     eval ac_cv_prog_make_${ac_make}_set=yes;;
3245   *)
3246     eval ac_cv_prog_make_${ac_make}_set=no;;
3247 esac
3248 rm -f conftest.make
3249 fi
3250 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253   SET_MAKE=
3254 else
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257   SET_MAKE="MAKE=${MAKE-make}"
3258 fi
3259
3260 rm -rf .tst 2>/dev/null
3261 mkdir .tst 2>/dev/null
3262 if test -d .tst; then
3263   am__leading_dot=.
3264 else
3265   am__leading_dot=_
3266 fi
3267 rmdir .tst 2>/dev/null
3268
3269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3270   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3271   # is not polluted with repeated "-I."
3272   am__isrc=' -I$(srcdir)'
3273   # test to see if srcdir already configured
3274   if test -f $srcdir/config.status; then
3275     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3276   fi
3277 fi
3278
3279 # test whether we have cygpath
3280 if test -z "$CYGPATH_W"; then
3281   if (cygpath --version) >/dev/null 2>/dev/null; then
3282     CYGPATH_W='cygpath -w'
3283   else
3284     CYGPATH_W=echo
3285   fi
3286 fi
3287
3288
3289 # Define the identity of the package.
3290  PACKAGE='libitm'
3291  VERSION='1.0'
3292
3293
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE "$PACKAGE"
3296 _ACEOF
3297
3298
3299 cat >>confdefs.h <<_ACEOF
3300 #define VERSION "$VERSION"
3301 _ACEOF
3302
3303 # Some tools Automake needs.
3304
3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3306
3307
3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3309
3310
3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3312
3313
3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3315
3316
3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3318
3319 # We need awk for the "check" target.  The system "awk" is bad on
3320 # some platforms.
3321 # Always define AMTAR for backward compatibility.
3322
3323 AMTAR=${AMTAR-"${am_missing_run}tar"}
3324
3325 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3326
3327
3328
3329
3330
3331 # Default to --enable-multilib
3332 # Check whether --enable-multilib was given.
3333 if test "${enable_multilib+set}" = set; then :
3334   enableval=$enable_multilib; case "$enableval" in
3335   yes) multilib=yes ;;
3336   no)  multilib=no ;;
3337   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3338  esac
3339 else
3340   multilib=yes
3341 fi
3342
3343
3344 # We may get other options which we leave undocumented:
3345 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3346 # See config-ml.in if you want the gory details.
3347
3348 if test "$srcdir" = "."; then
3349   if test "$with_target_subdir" != "."; then
3350     multi_basedir="$srcdir/$with_multisrctop../.."
3351   else
3352     multi_basedir="$srcdir/$with_multisrctop.."
3353   fi
3354 else
3355   multi_basedir="$srcdir/.."
3356 fi
3357
3358
3359 # Even if the default multilib is not a cross compilation,
3360 # it may be that some of the other multilibs are.
3361 if test $cross_compiling = no && test $multilib = yes \
3362    && test "x${with_multisubdir}" != x ; then
3363    cross_compiling=maybe
3364 fi
3365
3366 ac_config_commands="$ac_config_commands default-1"
3367
3368
3369 # Calculate toolexeclibdir
3370 # Also toolexecdir, though it's only used in toolexeclibdir
3371 case ${enable_version_specific_runtime_libs} in
3372   yes)
3373     # Need the gcc compiler version to know where to install libraries
3374     # and header files if --enable-version-specific-runtime-libs option
3375     # is selected.
3376     toolexecdir='$(libdir)/gcc/$(target_alias)'
3377     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3378     ;;
3379   no)
3380     if test -n "$with_cross_host" &&
3381        test x"$with_cross_host" != x"no"; then
3382       # Install a library built with a cross compiler in tooldir, not libdir.
3383       toolexecdir='$(exec_prefix)/$(target_alias)'
3384       toolexeclibdir='$(toolexecdir)/lib'
3385     else
3386       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3387       toolexeclibdir='$(libdir)'
3388     fi
3389     multi_os_directory=`$CC -print-multi-os-directory`
3390     case $multi_os_directory in
3391       .) ;; # Avoid trailing /.
3392       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3393     esac
3394     ;;
3395 esac
3396
3397
3398
3399 # Check the compiler.
3400 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3401 # We must force CC to /not/ be precious variables; otherwise
3402 # the wrong, non-multilib-adjusted value will be used in multilibs.
3403 # As a side effect, we have to subst CFLAGS ourselves.
3404
3405
3406
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then :
3418   $as_echo_n "(cached) " >&6
3419 else
3420   if test -n "$CC"; then
3421   ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428     for ac_exec_ext in '' $ac_executable_extensions; do
3429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435   done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450 fi
3451 if test -z "$ac_cv_prog_CC"; then
3452   ac_ct_CC=$CC
3453   # Extract the first word of "gcc", so it can be a program name with args.
3454 set dummy gcc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3458   $as_echo_n "(cached) " >&6
3459 else
3460   if test -n "$ac_ct_CC"; then
3461   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466   IFS=$as_save_IFS
3467   test -z "$as_dir" && as_dir=.
3468     for ac_exec_ext in '' $ac_executable_extensions; do
3469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470     ac_cv_prog_ac_ct_CC="gcc"
3471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472     break 2
3473   fi
3474 done
3475   done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483 $as_echo "$ac_ct_CC" >&6; }
3484 else
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489   if test "x$ac_ct_CC" = x; then
3490     CC=""
3491   else
3492     case $cross_compiling:$ac_tool_warned in
3493 yes:)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3497 esac
3498     CC=$ac_ct_CC
3499   fi
3500 else
3501   CC="$ac_cv_prog_CC"
3502 fi
3503
3504 if test -z "$CC"; then
3505           if test -n "$ac_tool_prefix"; then
3506     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}cc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511   $as_echo_n "(cached) " >&6
3512 else
3513   if test -n "$CC"; then
3514   ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521     for ac_exec_ext in '' $ac_executable_extensions; do
3522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523     ac_cv_prog_CC="${ac_tool_prefix}cc"
3524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528   done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 CC=$ac_cv_prog_CC
3534 if test -n "$CC"; then
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3537 else
3538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543   fi
3544 fi
3545 if test -z "$CC"; then
3546   # Extract the first word of "cc", so it can be a program name with args.
3547 set dummy cc; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553   if test -n "$CC"; then
3554   ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556   ac_prog_rejected=no
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562     for ac_exec_ext in '' $ac_executable_extensions; do
3563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3565        ac_prog_rejected=yes
3566        continue
3567      fi
3568     ac_cv_prog_CC="cc"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 if test $ac_prog_rejected = yes; then
3577   # We found a bogon in the path, so make sure we never use it.
3578   set dummy $ac_cv_prog_CC
3579   shift
3580   if test $# != 0; then
3581     # We chose a different compiler from the bogus one.
3582     # However, it has the same basename, so the bogon will be chosen
3583     # first if we set CC to just the basename; use the full file name.
3584     shift
3585     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3586   fi
3587 fi
3588 fi
3589 fi
3590 CC=$ac_cv_prog_CC
3591 if test -n "$CC"; then
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593 $as_echo "$CC" >&6; }
3594 else
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600 fi
3601 if test -z "$CC"; then
3602   if test -n "$ac_tool_prefix"; then
3603   for ac_prog in cl.exe
3604   do
3605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   if test -n "$CC"; then
3613   ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620     for ac_exec_ext in '' $ac_executable_extensions; do
3621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624     break 2
3625   fi
3626 done
3627   done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 fi
3640
3641
3642     test -n "$CC" && break
3643   done
3644 fi
3645 if test -z "$CC"; then
3646   ac_ct_CC=$CC
3647   for ac_prog in cl.exe
3648 do
3649   # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy $ac_prog; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3654   $as_echo_n "(cached) " >&6
3655 else
3656   if test -n "$ac_ct_CC"; then
3657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664     for ac_exec_ext in '' $ac_executable_extensions; do
3665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666     ac_cv_prog_ac_ct_CC="$ac_prog"
3667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668     break 2
3669   fi
3670 done
3671   done
3672 IFS=$as_save_IFS
3673
3674 fi
3675 fi
3676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677 if test -n "$ac_ct_CC"; then
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679 $as_echo "$ac_ct_CC" >&6; }
3680 else
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3683 fi
3684
3685
3686   test -n "$ac_ct_CC" && break
3687 done
3688
3689   if test "x$ac_ct_CC" = x; then
3690     CC=""
3691   else
3692     case $cross_compiling:$ac_tool_warned in
3693 yes:)
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned=yes ;;
3697 esac
3698     CC=$ac_ct_CC
3699   fi
3700 fi
3701
3702 fi
3703
3704
3705 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error "no acceptable C compiler found in \$PATH
3708 See \`config.log' for more details." "$LINENO" 5; }
3709
3710 # Provide some information about the compiler.
3711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3712 set X $ac_compile
3713 ac_compiler=$2
3714 for ac_option in --version -v -V -qversion; do
3715   { { ac_try="$ac_compiler $ac_option >&5"
3716 case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3723   ac_status=$?
3724   if test -s conftest.err; then
3725     sed '10a\
3726 ... rest of stderr output deleted ...
3727          10q' conftest.err >conftest.er1
3728     cat conftest.er1 >&5
3729     rm -f conftest.er1 conftest.err
3730   fi
3731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732   test $ac_status = 0; }
3733 done
3734
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h.  */
3737
3738 int
3739 main ()
3740 {
3741
3742   ;
3743   return 0;
3744 }
3745 _ACEOF
3746 ac_clean_files_save=$ac_clean_files
3747 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3748 # Try to create an executable without -o first, disregard a.out.
3749 # It will help us diagnose broken compilers, and finding out an intuition
3750 # of exeext.
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3752 $as_echo_n "checking for C compiler default output file name... " >&6; }
3753 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3754
3755 # The possible output files:
3756 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3757
3758 ac_rmfiles=
3759 for ac_file in $ac_files
3760 do
3761   case $ac_file in
3762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3763     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3764   esac
3765 done
3766 rm -f $ac_rmfiles
3767
3768 if { { ac_try="$ac_link_default"
3769 case "(($ac_try" in
3770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771   *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 $as_echo "$ac_try_echo"; } >&5
3775   (eval "$ac_link_default") 2>&5
3776   ac_status=$?
3777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778   test $ac_status = 0; }; then :
3779   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3780 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3781 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3782 # so that the user can short-circuit this test for compilers unknown to
3783 # Autoconf.
3784 for ac_file in $ac_files ''
3785 do
3786   test -f "$ac_file" || continue
3787   case $ac_file in
3788     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3789         ;;
3790     [ab].out )
3791         # We found the default executable, but exeext='' is most
3792         # certainly right.
3793         break;;
3794     *.* )
3795         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3796         then :; else
3797            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798         fi
3799         # We set ac_cv_exeext here because the later test for it is not
3800         # safe: cross compilers may not add the suffix if given an `-o'
3801         # argument, so we may need to know it at that point already.
3802         # Even if this section looks crufty: it has the advantage of
3803         # actually working.
3804         break;;
3805     * )
3806         break;;
3807   esac
3808 done
3809 test "$ac_cv_exeext" = no && ac_cv_exeext=
3810
3811 else
3812   ac_file=''
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3815 $as_echo "$ac_file" >&6; }
3816 if test -z "$ac_file"; then :
3817   $as_echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 { as_fn_set_status 77
3823 as_fn_error "C compiler cannot create executables
3824 See \`config.log' for more details." "$LINENO" 5; }; }
3825 fi
3826 ac_exeext=$ac_cv_exeext
3827
3828 # Check that the compiler produces executables we can run.  If not, either
3829 # the compiler is broken, or we cross compile.
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3831 $as_echo_n "checking whether the C compiler works... " >&6; }
3832 # If not cross compiling, check that we can run a simple program.
3833 if test "$cross_compiling" != yes; then
3834   if { ac_try='./$ac_file'
3835   { { case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841   (eval "$ac_try") 2>&5
3842   ac_status=$?
3843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844   test $ac_status = 0; }; }; then
3845     cross_compiling=no
3846   else
3847     if test "$cross_compiling" = maybe; then
3848         cross_compiling=yes
3849     else
3850         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852 as_fn_error "cannot run C compiled programs.
3853 If you meant to cross compile, use \`--host'.
3854 See \`config.log' for more details." "$LINENO" 5; }
3855     fi
3856   fi
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3859 $as_echo "yes" >&6; }
3860
3861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3862 ac_clean_files=$ac_clean_files_save
3863 # Check that the compiler produces executables we can run.  If not, either
3864 # the compiler is broken, or we cross compile.
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3866 $as_echo_n "checking whether we are cross compiling... " >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3868 $as_echo "$cross_compiling" >&6; }
3869
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3871 $as_echo_n "checking for suffix of executables... " >&6; }
3872 if { { ac_try="$ac_link"
3873 case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879   (eval "$ac_link") 2>&5
3880   ac_status=$?
3881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882   test $ac_status = 0; }; then :
3883   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3884 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3885 # work properly (i.e., refer to `conftest.exe'), while it won't with
3886 # `rm'.
3887 for ac_file in conftest.exe conftest conftest.*; do
3888   test -f "$ac_file" || continue
3889   case $ac_file in
3890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892           break;;
3893     * ) break;;
3894   esac
3895 done
3896 else
3897   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error "cannot compute suffix of executables: cannot compile and link
3900 See \`config.log' for more details." "$LINENO" 5; }
3901 fi
3902 rm -f conftest$ac_cv_exeext
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3904 $as_echo "$ac_cv_exeext" >&6; }
3905
3906 rm -f conftest.$ac_ext
3907 EXEEXT=$ac_cv_exeext
3908 ac_exeext=$EXEEXT
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3910 $as_echo_n "checking for suffix of object files... " >&6; }
3911 if test "${ac_cv_objext+set}" = set; then :
3912   $as_echo_n "(cached) " >&6
3913 else
3914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h.  */
3916
3917 int
3918 main ()
3919 {
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.o conftest.obj
3926 if { { ac_try="$ac_compile"
3927 case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 $as_echo "$ac_try_echo"; } >&5
3933   (eval "$ac_compile") 2>&5
3934   ac_status=$?
3935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936   test $ac_status = 0; }; then :
3937   for ac_file in conftest.o conftest.obj conftest.*; do
3938   test -f "$ac_file" || continue;
3939   case $ac_file in
3940     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3941     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3942        break;;
3943   esac
3944 done
3945 else
3946   $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error "cannot compute suffix of object files: cannot compile
3952 See \`config.log' for more details." "$LINENO" 5; }
3953 fi
3954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3957 $as_echo "$ac_cv_objext" >&6; }
3958 OBJEXT=$ac_cv_objext
3959 ac_objext=$OBJEXT
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3962 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h.  */
3967
3968 int
3969 main ()
3970 {
3971 #ifndef __GNUC__
3972        choke me
3973 #endif
3974
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980   ac_compiler_gnu=yes
3981 else
3982   ac_compiler_gnu=no
3983 fi
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3986
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3989 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3990 if test $ac_compiler_gnu = yes; then
3991   GCC=yes
3992 else
3993   GCC=
3994 fi
3995 ac_test_CFLAGS=${CFLAGS+set}
3996 ac_save_CFLAGS=$CFLAGS
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3998 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3999 if test "${ac_cv_prog_cc_g+set}" = set; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   ac_save_c_werror_flag=$ac_c_werror_flag
4003    ac_c_werror_flag=yes
4004    ac_cv_prog_cc_g=no
4005    CFLAGS="-g"
4006    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h.  */
4008
4009 int
4010 main ()
4011 {
4012
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018   ac_cv_prog_cc_g=yes
4019 else
4020   CFLAGS=""
4021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023
4024 int
4025 main ()
4026 {
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033
4034 else
4035   ac_c_werror_flag=$ac_save_c_werror_flag
4036          CFLAGS="-g"
4037          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039
4040 int
4041 main ()
4042 {
4043
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049   ac_cv_prog_cc_g=yes
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056    ac_c_werror_flag=$ac_save_c_werror_flag
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4059 $as_echo "$ac_cv_prog_cc_g" >&6; }
4060 if test "$ac_test_CFLAGS" = set; then
4061   CFLAGS=$ac_save_CFLAGS
4062 elif test $ac_cv_prog_cc_g = yes; then
4063   if test "$GCC" = yes; then
4064     CFLAGS="-g -O2"
4065   else
4066     CFLAGS="-g"
4067   fi
4068 else
4069   if test "$GCC" = yes; then
4070     CFLAGS="-O2"
4071   else
4072     CFLAGS=
4073   fi
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4077 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4078   $as_echo_n "(cached) " >&6
4079 else
4080   ac_cv_prog_cc_c89=no
4081 ac_save_CC=$CC
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084 #include <stdarg.h>
4085 #include <stdio.h>
4086 #include <sys/types.h>
4087 #include <sys/stat.h>
4088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4089 struct buf { int x; };
4090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4091 static char *e (p, i)
4092      char **p;
4093      int i;
4094 {
4095   return p[i];
4096 }
4097 static char *f (char * (*g) (char **, int), char **p, ...)
4098 {
4099   char *s;
4100   va_list v;
4101   va_start (v,p);
4102   s = g (p, va_arg (v,int));
4103   va_end (v);
4104   return s;
4105 }
4106
4107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4108    function prototypes and stuff, but not '\xHH' hex character constants.
4109    These don't provoke an error unfortunately, instead are silently treated
4110    as 'x'.  The following induces an error, until -std is added to get
4111    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4112    array size at least.  It's necessary to write '\x00'==0 to get something
4113    that's true only with -std.  */
4114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4115
4116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4117    inside strings and character constants.  */
4118 #define FOO(x) 'x'
4119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4120
4121 int test (int i, double x);
4122 struct s1 {int (*f) (int a);};
4123 struct s2 {int (*f) (double a);};
4124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4125 int argc;
4126 char **argv;
4127 int
4128 main ()
4129 {
4130 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4131   ;
4132   return 0;
4133 }
4134 _ACEOF
4135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4136         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4137 do
4138   CC="$ac_save_CC $ac_arg"
4139   if ac_fn_c_try_compile "$LINENO"; then :
4140   ac_cv_prog_cc_c89=$ac_arg
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext
4143   test "x$ac_cv_prog_cc_c89" != "xno" && break
4144 done
4145 rm -f conftest.$ac_ext
4146 CC=$ac_save_CC
4147
4148 fi
4149 # AC_CACHE_VAL
4150 case "x$ac_cv_prog_cc_c89" in
4151   x)
4152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4153 $as_echo "none needed" >&6; } ;;
4154   xno)
4155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4156 $as_echo "unsupported" >&6; } ;;
4157   *)
4158     CC="$CC $ac_cv_prog_cc_c89"
4159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4161 esac
4162 if test "x$ac_cv_prog_cc_c89" != xno; then :
4163
4164 fi
4165
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 DEPDIR="${am__leading_dot}deps"
4172
4173 ac_config_commands="$ac_config_commands depfiles"
4174
4175
4176 am_make=${MAKE-make}
4177 cat > confinc << 'END'
4178 am__doit:
4179         @echo this is the am__doit target
4180 .PHONY: am__doit
4181 END
4182 # If we don't find an include directive, just comment out the code.
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4184 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4185 am__include="#"
4186 am__quote=
4187 _am_result=none
4188 # First try GNU make style include.
4189 echo "include confinc" > confmf
4190 # Ignore all kinds of additional output from `make'.
4191 case `$am_make -s -f confmf 2> /dev/null` in #(
4192 *the\ am__doit\ target*)
4193   am__include=include
4194   am__quote=
4195   _am_result=GNU
4196   ;;
4197 esac
4198 # Now try BSD make style include.
4199 if test "$am__include" = "#"; then
4200    echo '.include "confinc"' > confmf
4201    case `$am_make -s -f confmf 2> /dev/null` in #(
4202    *the\ am__doit\ target*)
4203      am__include=.include
4204      am__quote="\""
4205      _am_result=BSD
4206      ;;
4207    esac
4208 fi
4209
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4212 $as_echo "$_am_result" >&6; }
4213 rm -f confinc confmf
4214
4215 # Check whether --enable-dependency-tracking was given.
4216 if test "${enable_dependency_tracking+set}" = set; then :
4217   enableval=$enable_dependency_tracking;
4218 fi
4219
4220 if test "x$enable_dependency_tracking" != xno; then
4221   am_depcomp="$ac_aux_dir/depcomp"
4222   AMDEPBACKSLASH='\'
4223 fi
4224  if test "x$enable_dependency_tracking" != xno; then
4225   AMDEP_TRUE=
4226   AMDEP_FALSE='#'
4227 else
4228   AMDEP_TRUE='#'
4229   AMDEP_FALSE=
4230 fi
4231
4232
4233
4234 depcc="$CC"   am_compiler_list=
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4237 $as_echo_n "checking dependency style of $depcc... " >&6; }
4238 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4239   $as_echo_n "(cached) " >&6
4240 else
4241   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4242   # We make a subdir and do the tests there.  Otherwise we can end up
4243   # making bogus files that we don't know about and never remove.  For
4244   # instance it was reported that on HP-UX the gcc test will end up
4245   # making a dummy file named `D' -- because `-MD' means `put the output
4246   # in D'.
4247   mkdir conftest.dir
4248   # Copy depcomp to subdir because otherwise we won't find it if we're
4249   # using a relative directory.
4250   cp "$am_depcomp" conftest.dir
4251   cd conftest.dir
4252   # We will build objects and dependencies in a subdirectory because
4253   # it helps to detect inapplicable dependency modes.  For instance
4254   # both Tru64's cc and ICC support -MD to output dependencies as a
4255   # side effect of compilation, but ICC will put the dependencies in
4256   # the current directory while Tru64 will put them in the object
4257   # directory.
4258   mkdir sub
4259
4260   am_cv_CC_dependencies_compiler_type=none
4261   if test "$am_compiler_list" = ""; then
4262      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4263   fi
4264   am__universal=false
4265   case " $depcc " in #(
4266      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4267      esac
4268
4269   for depmode in $am_compiler_list; do
4270     # Setup a source with many dependencies, because some compilers
4271     # like to wrap large dependency lists on column 80 (with \), and
4272     # we should not choose a depcomp mode which is confused by this.
4273     #
4274     # We need to recreate these files for each test, as the compiler may
4275     # overwrite some of them when testing with obscure command lines.
4276     # This happens at least with the AIX C compiler.
4277     : > sub/conftest.c
4278     for i in 1 2 3 4 5 6; do
4279       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4281       # Solaris 8's {/usr,}/bin/sh.
4282       touch sub/conftst$i.h
4283     done
4284     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285
4286     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4287     # mode.  It turns out that the SunPro C++ compiler does not properly
4288     # handle `-M -o', and we need to detect this.  Also, some Intel
4289     # versions had trouble with output in subdirs
4290     am__obj=sub/conftest.${OBJEXT-o}
4291     am__minus_obj="-o $am__obj"
4292     case $depmode in
4293     gcc)
4294       # This depmode causes a compiler race in universal mode.
4295       test "$am__universal" = false || continue
4296       ;;
4297     nosideeffect)
4298       # after this tag, mechanisms are not by side-effect, so they'll
4299       # only be used when explicitly requested
4300       if test "x$enable_dependency_tracking" = xyes; then
4301         continue
4302       else
4303         break
4304       fi
4305       ;;
4306     msvisualcpp | msvcmsys)
4307       # This compiler won't grok `-c -o', but also, the minuso test has
4308       # not run yet.  These depmodes are late enough in the game, and
4309       # so weak that their functioning should not be impacted.
4310       am__obj=conftest.${OBJEXT-o}
4311       am__minus_obj=
4312       ;;
4313     none) break ;;
4314     esac
4315     if depmode=$depmode \
4316        source=sub/conftest.c object=$am__obj \
4317        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319          >/dev/null 2>conftest.err &&
4320        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324       # icc doesn't choke on unknown options, it will just issue warnings
4325       # or remarks (even with -Werror).  So we grep stderr for any message
4326       # that says an option was ignored or not supported.
4327       # When given -MP, icc 7.0 and 7.1 complain thusly:
4328       #   icc: Command line warning: ignoring option '-M'; no argument required
4329       # The diagnosis changed in icc 8.0:
4330       #   icc: Command line remark: option '-MP' not supported
4331       if (grep 'ignoring option' conftest.err ||
4332           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333         am_cv_CC_dependencies_compiler_type=$depmode
4334         break
4335       fi
4336     fi
4337   done
4338
4339   cd ..
4340   rm -rf conftest.dir
4341 else
4342   am_cv_CC_dependencies_compiler_type=none
4343 fi
4344
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4349
4350  if
4351   test "x$enable_dependency_tracking" != xno \
4352   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4353   am__fastdepCC_TRUE=
4354   am__fastdepCC_FALSE='#'
4355 else
4356   am__fastdepCC_TRUE='#'
4357   am__fastdepCC_FALSE=
4358 fi
4359
4360
4361 ac_ext=cpp
4362 ac_cpp='$CXXCPP $CPPFLAGS'
4363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4366 if test -z "$CXX"; then
4367   if test -n "$CCC"; then
4368     CXX=$CCC
4369   else
4370     if test -n "$ac_tool_prefix"; then
4371   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4372   do
4373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if test "${ac_cv_prog_CXX+set}" = set; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380   if test -n "$CXX"; then
4381   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388     for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395   done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 CXX=$ac_cv_prog_CXX
4401 if test -n "$CXX"; then
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4403 $as_echo "$CXX" >&6; }
4404 else
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409
4410     test -n "$CXX" && break
4411   done
4412 fi
4413 if test -z "$CXX"; then
4414   ac_ct_CXX=$CXX
4415   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4416 do
4417   # Extract the first word of "$ac_prog", so it can be a program name with args.
4418 set dummy $ac_prog; ac_word=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4422   $as_echo_n "(cached) " >&6
4423 else
4424   if test -n "$ac_ct_CXX"; then
4425   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430   IFS=$as_save_IFS
4431   test -z "$as_dir" && as_dir=.
4432     for ac_exec_ext in '' $ac_executable_extensions; do
4433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434     ac_cv_prog_ac_ct_CXX="$ac_prog"
4435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436     break 2
4437   fi
4438 done
4439   done
4440 IFS=$as_save_IFS
4441
4442 fi
4443 fi
4444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4445 if test -n "$ac_ct_CXX"; then
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4447 $as_echo "$ac_ct_CXX" >&6; }
4448 else
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4451 fi
4452
4453
4454   test -n "$ac_ct_CXX" && break
4455 done
4456
4457   if test "x$ac_ct_CXX" = x; then
4458     CXX="g++"
4459   else
4460     case $cross_compiling:$ac_tool_warned in
4461 yes:)
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4464 ac_tool_warned=yes ;;
4465 esac
4466     CXX=$ac_ct_CXX
4467   fi
4468 fi
4469
4470   fi
4471 fi
4472 # Provide some information about the compiler.
4473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4474 set X $ac_compile
4475 ac_compiler=$2
4476 for ac_option in --version -v -V -qversion; do
4477   { { ac_try="$ac_compiler $ac_option >&5"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4485   ac_status=$?
4486   if test -s conftest.err; then
4487     sed '10a\
4488 ... rest of stderr output deleted ...
4489          10q' conftest.err >conftest.er1
4490     cat conftest.er1 >&5
4491     rm -f conftest.er1 conftest.err
4492   fi
4493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494   test $ac_status = 0; }
4495 done
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4498 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4499 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h.  */
4504
4505 int
4506 main ()
4507 {
4508 #ifndef __GNUC__
4509        choke me
4510 #endif
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517   ac_compiler_gnu=yes
4518 else
4519   ac_compiler_gnu=no
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4523
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4526 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4527 if test $ac_compiler_gnu = yes; then
4528   GXX=yes
4529 else
4530   GXX=
4531 fi
4532 ac_test_CXXFLAGS=${CXXFLAGS+set}
4533 ac_save_CXXFLAGS=$CXXFLAGS
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4535 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4536 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4537   $as_echo_n "(cached) " >&6
4538 else
4539   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4540    ac_cxx_werror_flag=yes
4541    ac_cv_prog_cxx_g=no
4542    CXXFLAGS="-g"
4543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h.  */
4545
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555   ac_cv_prog_cxx_g=yes
4556 else
4557   CXXFLAGS=""
4558       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h.  */
4560
4561 int
4562 main ()
4563 {
4564
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4570
4571 else
4572   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4573          CXXFLAGS="-g"
4574          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576
4577 int
4578 main ()
4579 {
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4586   ac_cv_prog_cxx_g=yes
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4596 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4597 if test "$ac_test_CXXFLAGS" = set; then
4598   CXXFLAGS=$ac_save_CXXFLAGS
4599 elif test $ac_cv_prog_cxx_g = yes; then
4600   if test "$GXX" = yes; then
4601     CXXFLAGS="-g -O2"
4602   else
4603     CXXFLAGS="-g"
4604   fi
4605 else
4606   if test "$GXX" = yes; then
4607     CXXFLAGS="-O2"
4608   else
4609     CXXFLAGS=
4610   fi
4611 fi
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617
4618 depcc="$CXX"  am_compiler_list=
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4621 $as_echo_n "checking dependency style of $depcc... " >&6; }
4622 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4626   # We make a subdir and do the tests there.  Otherwise we can end up
4627   # making bogus files that we don't know about and never remove.  For
4628   # instance it was reported that on HP-UX the gcc test will end up
4629   # making a dummy file named `D' -- because `-MD' means `put the output
4630   # in D'.
4631   mkdir conftest.dir
4632   # Copy depcomp to subdir because otherwise we won't find it if we're
4633   # using a relative directory.
4634   cp "$am_depcomp" conftest.dir
4635   cd conftest.dir
4636   # We will build objects and dependencies in a subdirectory because
4637   # it helps to detect inapplicable dependency modes.  For instance
4638   # both Tru64's cc and ICC support -MD to output dependencies as a
4639   # side effect of compilation, but ICC will put the dependencies in
4640   # the current directory while Tru64 will put them in the object
4641   # directory.
4642   mkdir sub
4643
4644   am_cv_CXX_dependencies_compiler_type=none
4645   if test "$am_compiler_list" = ""; then
4646      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4647   fi
4648   am__universal=false
4649   case " $depcc " in #(
4650      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4651      esac
4652
4653   for depmode in $am_compiler_list; do
4654     # Setup a source with many dependencies, because some compilers
4655     # like to wrap large dependency lists on column 80 (with \), and
4656     # we should not choose a depcomp mode which is confused by this.
4657     #
4658     # We need to recreate these files for each test, as the compiler may
4659     # overwrite some of them when testing with obscure command lines.
4660     # This happens at least with the AIX C compiler.
4661     : > sub/conftest.c
4662     for i in 1 2 3 4 5 6; do
4663       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4664       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4665       # Solaris 8's {/usr,}/bin/sh.
4666       touch sub/conftst$i.h
4667     done
4668     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4669
4670     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4671     # mode.  It turns out that the SunPro C++ compiler does not properly
4672     # handle `-M -o', and we need to detect this.  Also, some Intel
4673     # versions had trouble with output in subdirs
4674     am__obj=sub/conftest.${OBJEXT-o}
4675     am__minus_obj="-o $am__obj"
4676     case $depmode in
4677     gcc)
4678       # This depmode causes a compiler race in universal mode.
4679       test "$am__universal" = false || continue
4680       ;;
4681     nosideeffect)
4682       # after this tag, mechanisms are not by side-effect, so they'll
4683       # only be used when explicitly requested
4684       if test "x$enable_dependency_tracking" = xyes; then
4685         continue
4686       else
4687         break
4688       fi
4689       ;;
4690     msvisualcpp | msvcmsys)
4691       # This compiler won't grok `-c -o', but also, the minuso test has
4692       # not run yet.  These depmodes are late enough in the game, and
4693       # so weak that their functioning should not be impacted.
4694       am__obj=conftest.${OBJEXT-o}
4695       am__minus_obj=
4696       ;;
4697     none) break ;;
4698     esac
4699     if depmode=$depmode \
4700        source=sub/conftest.c object=$am__obj \
4701        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4702        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4703          >/dev/null 2>conftest.err &&
4704        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4705        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4706        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4707        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4708       # icc doesn't choke on unknown options, it will just issue warnings
4709       # or remarks (even with -Werror).  So we grep stderr for any message
4710       # that says an option was ignored or not supported.
4711       # When given -MP, icc 7.0 and 7.1 complain thusly:
4712       #   icc: Command line warning: ignoring option '-M'; no argument required
4713       # The diagnosis changed in icc 8.0:
4714       #   icc: Command line remark: option '-MP' not supported
4715       if (grep 'ignoring option' conftest.err ||
4716           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4717         am_cv_CXX_dependencies_compiler_type=$depmode
4718         break
4719       fi
4720     fi
4721   done
4722
4723   cd ..
4724   rm -rf conftest.dir
4725 else
4726   am_cv_CXX_dependencies_compiler_type=none
4727 fi
4728
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4731 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4732 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4733
4734  if
4735   test "x$enable_dependency_tracking" != xno \
4736   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4737   am__fastdepCXX_TRUE=
4738   am__fastdepCXX_FALSE='#'
4739 else
4740   am__fastdepCXX_TRUE='#'
4741   am__fastdepCXX_FALSE=
4742 fi
4743
4744
4745 # By default we simply use the C compiler to build assembly code.
4746
4747 test "${CCAS+set}" = set || CCAS=$CC
4748 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4749
4750
4751
4752 depcc="$CCAS"   am_compiler_list=
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4755 $as_echo_n "checking dependency style of $depcc... " >&6; }
4756 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4757   $as_echo_n "(cached) " >&6
4758 else
4759   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4760   # We make a subdir and do the tests there.  Otherwise we can end up
4761   # making bogus files that we don't know about and never remove.  For
4762   # instance it was reported that on HP-UX the gcc test will end up
4763   # making a dummy file named `D' -- because `-MD' means `put the output
4764   # in D'.
4765   mkdir conftest.dir
4766   # Copy depcomp to subdir because otherwise we won't find it if we're
4767   # using a relative directory.
4768   cp "$am_depcomp" conftest.dir
4769   cd conftest.dir
4770   # We will build objects and dependencies in a subdirectory because
4771   # it helps to detect inapplicable dependency modes.  For instance
4772   # both Tru64's cc and ICC support -MD to output dependencies as a
4773   # side effect of compilation, but ICC will put the dependencies in
4774   # the current directory while Tru64 will put them in the object
4775   # directory.
4776   mkdir sub
4777
4778   am_cv_CCAS_dependencies_compiler_type=none
4779   if test "$am_compiler_list" = ""; then
4780      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4781   fi
4782   am__universal=false
4783
4784
4785   for depmode in $am_compiler_list; do
4786     # Setup a source with many dependencies, because some compilers
4787     # like to wrap large dependency lists on column 80 (with \), and
4788     # we should not choose a depcomp mode which is confused by this.
4789     #
4790     # We need to recreate these files for each test, as the compiler may
4791     # overwrite some of them when testing with obscure command lines.
4792     # This happens at least with the AIX C compiler.
4793     : > sub/conftest.c
4794     for i in 1 2 3 4 5 6; do
4795       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4796       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4797       # Solaris 8's {/usr,}/bin/sh.
4798       touch sub/conftst$i.h
4799     done
4800     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4801
4802     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4803     # mode.  It turns out that the SunPro C++ compiler does not properly
4804     # handle `-M -o', and we need to detect this.  Also, some Intel
4805     # versions had trouble with output in subdirs
4806     am__obj=sub/conftest.${OBJEXT-o}
4807     am__minus_obj="-o $am__obj"
4808     case $depmode in
4809     gcc)
4810       # This depmode causes a compiler race in universal mode.
4811       test "$am__universal" = false || continue
4812       ;;
4813     nosideeffect)
4814       # after this tag, mechanisms are not by side-effect, so they'll
4815       # only be used when explicitly requested
4816       if test "x$enable_dependency_tracking" = xyes; then
4817         continue
4818       else
4819         break
4820       fi
4821       ;;
4822     msvisualcpp | msvcmsys)
4823       # This compiler won't grok `-c -o', but also, the minuso test has
4824       # not run yet.  These depmodes are late enough in the game, and
4825       # so weak that their functioning should not be impacted.
4826       am__obj=conftest.${OBJEXT-o}
4827       am__minus_obj=
4828       ;;
4829     none) break ;;
4830     esac
4831     if depmode=$depmode \
4832        source=sub/conftest.c object=$am__obj \
4833        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4834        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4835          >/dev/null 2>conftest.err &&
4836        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4837        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4838        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4839        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4840       # icc doesn't choke on unknown options, it will just issue warnings
4841       # or remarks (even with -Werror).  So we grep stderr for any message
4842       # that says an option was ignored or not supported.
4843       # When given -MP, icc 7.0 and 7.1 complain thusly:
4844       #   icc: Command line warning: ignoring option '-M'; no argument required
4845       # The diagnosis changed in icc 8.0:
4846       #   icc: Command line remark: option '-MP' not supported
4847       if (grep 'ignoring option' conftest.err ||
4848           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4849         am_cv_CCAS_dependencies_compiler_type=$depmode
4850         break
4851       fi
4852     fi
4853   done
4854
4855   cd ..
4856   rm -rf conftest.dir
4857 else
4858   am_cv_CCAS_dependencies_compiler_type=none
4859 fi
4860
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4863 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4864 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4865
4866  if
4867   test "x$enable_dependency_tracking" != xno \
4868   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4869   am__fastdepCCAS_TRUE=
4870   am__fastdepCCAS_FALSE='#'
4871 else
4872   am__fastdepCCAS_TRUE='#'
4873   am__fastdepCCAS_FALSE=
4874 fi
4875
4876
4877
4878
4879
4880
4881 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4882 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4883 # in both places for now and restore CFLAGS at the end of config.
4884 save_CFLAGS="$CFLAGS"
4885
4886 # Find other programs we need.
4887 if test -n "$ac_tool_prefix"; then
4888   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}ar; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_AR+set}" = set; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -n "$AR"; then
4896   ac_cv_prog_AR="$AR" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905     ac_cv_prog_AR="${ac_tool_prefix}ar"
4906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910   done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 AR=$ac_cv_prog_AR
4916 if test -n "$AR"; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4918 $as_echo "$AR" >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 fi
4926 if test -z "$ac_cv_prog_AR"; then
4927   ac_ct_AR=$AR
4928   # Extract the first word of "ar", so it can be a program name with args.
4929 set dummy ar; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   if test -n "$ac_ct_AR"; then
4936   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943     for ac_exec_ext in '' $ac_executable_extensions; do
4944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945     ac_cv_prog_ac_ct_AR="ar"
4946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950   done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4956 if test -n "$ac_ct_AR"; then
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4958 $as_echo "$ac_ct_AR" >&6; }
4959 else
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964   if test "x$ac_ct_AR" = x; then
4965     AR=""
4966   else
4967     case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973     AR=$ac_ct_AR
4974   fi
4975 else
4976   AR="$ac_cv_prog_AR"
4977 fi
4978
4979 if test -n "$ac_tool_prefix"; then
4980   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}nm; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if test "${ac_cv_prog_NM+set}" = set; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   if test -n "$NM"; then
4988   ac_cv_prog_NM="$NM" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995     for ac_exec_ext in '' $ac_executable_extensions; do
4996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997     ac_cv_prog_NM="${ac_tool_prefix}nm"
4998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002   done
5003 IFS=$as_save_IFS
5004
5005 fi
5006 fi
5007 NM=$ac_cv_prog_NM
5008 if test -n "$NM"; then
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5010 $as_echo "$NM" >&6; }
5011 else
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5014 fi
5015
5016
5017 fi
5018 if test -z "$ac_cv_prog_NM"; then
5019   ac_ct_NM=$NM
5020   # Extract the first word of "nm", so it can be a program name with args.
5021 set dummy nm; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   if test -n "$ac_ct_NM"; then
5028   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035     for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     ac_cv_prog_ac_ct_NM="nm"
5038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042   done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5048 if test -n "$ac_ct_NM"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5050 $as_echo "$ac_ct_NM" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056   if test "x$ac_ct_NM" = x; then
5057     NM=""
5058   else
5059     case $cross_compiling:$ac_tool_warned in
5060 yes:)
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5063 ac_tool_warned=yes ;;
5064 esac
5065     NM=$ac_ct_NM
5066   fi
5067 else
5068   NM="$ac_cv_prog_NM"
5069 fi
5070
5071 if test -n "$ac_tool_prefix"; then
5072   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if test -n "$RANLIB"; then
5080   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 RANLIB=$ac_cv_prog_RANLIB
5100 if test -n "$RANLIB"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5102 $as_echo "$RANLIB" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108
5109 fi
5110 if test -z "$ac_cv_prog_RANLIB"; then
5111   ac_ct_RANLIB=$RANLIB
5112   # Extract the first word of "ranlib", so it can be a program name with args.
5113 set dummy ranlib; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$ac_ct_RANLIB"; then
5120   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129     ac_cv_prog_ac_ct_RANLIB="ranlib"
5130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134   done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5140 if test -n "$ac_ct_RANLIB"; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5142 $as_echo "$ac_ct_RANLIB" >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148   if test "x$ac_ct_RANLIB" = x; then
5149     RANLIB="ranlib-not-found-in-path-error"
5150   else
5151     case $cross_compiling:$ac_tool_warned in
5152 yes:)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5155 ac_tool_warned=yes ;;
5156 esac
5157     RANLIB=$ac_ct_RANLIB
5158   fi
5159 else
5160   RANLIB="$ac_cv_prog_RANLIB"
5161 fi
5162
5163 # Extract the first word of "perl", so it can be a program name with args.
5164 set dummy perl; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if test "${ac_cv_path_PERL+set}" = set; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   case $PERL in
5171   [\\/]* | ?:[\\/]*)
5172   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5173   ;;
5174   *)
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180     for ac_exec_ext in '' $ac_executable_extensions; do
5181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187   done
5188 IFS=$as_save_IFS
5189
5190   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5191   ;;
5192 esac
5193 fi
5194 PERL=$ac_cv_path_PERL
5195 if test -n "$PERL"; then
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5197 $as_echo "$PERL" >&6; }
5198 else
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5206 set x ${MAKE-make}
5207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5209   $as_echo_n "(cached) " >&6
5210 else
5211   cat >conftest.make <<\_ACEOF
5212 SHELL = /bin/sh
5213 all:
5214         @echo '@@@%%%=$(MAKE)=@@@%%%'
5215 _ACEOF
5216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5218   *@@@%%%=?*=@@@%%%*)
5219     eval ac_cv_prog_make_${ac_make}_set=yes;;
5220   *)
5221     eval ac_cv_prog_make_${ac_make}_set=no;;
5222 esac
5223 rm -f conftest.make
5224 fi
5225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227 $as_echo "yes" >&6; }
5228   SET_MAKE=
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232   SET_MAKE="MAKE=${MAKE-make}"
5233 fi
5234
5235
5236
5237 # See if makeinfo has been installed and is modern enough
5238 # that we can use it.
5239
5240   # Extract the first word of "makeinfo", so it can be a program name with args.
5241 set dummy makeinfo; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5245   $as_echo_n "(cached) " >&6
5246 else
5247   if test -n "$MAKEINFO"; then
5248   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255     for ac_exec_ext in '' $ac_executable_extensions; do
5256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257     ac_cv_prog_MAKEINFO="makeinfo"
5258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262   done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 MAKEINFO=$ac_cv_prog_MAKEINFO
5268 if test -n "$MAKEINFO"; then
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5270 $as_echo "$MAKEINFO" >&6; }
5271 else
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276
5277   if test -n "$MAKEINFO"; then
5278     # Found it, now check the version.
5279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5280 $as_echo_n "checking for modern makeinfo... " >&6; }
5281 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5285                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5286
5287                     case $ac_prog_version in
5288                       '')  gcc_cv_prog_makeinfo_modern=no;;
5289                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
5290                       *)   gcc_cv_prog_makeinfo_modern=no;;
5291                     esac
5292
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5295 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5296   else
5297     gcc_cv_prog_makeinfo_modern=no
5298   fi
5299   if test $gcc_cv_prog_makeinfo_modern = no; then
5300     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5301   fi
5302
5303  if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5304   BUILD_INFO_TRUE=
5305   BUILD_INFO_FALSE='#'
5306 else
5307   BUILD_INFO_TRUE='#'
5308   BUILD_INFO_FALSE=
5309 fi
5310
5311
5312
5313 # Configure libtool
5314 case `pwd` in
5315   *\ * | *\     *)
5316     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5318 esac
5319
5320
5321
5322 macro_version='2.2.7a'
5323 macro_revision='1.3134'
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 ltmain="$ac_aux_dir/ltmain.sh"
5338
5339 # Backslashify metacharacters that are still active within
5340 # double-quoted strings.
5341 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5342
5343 # Same as above, but do not quote variable references.
5344 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5345
5346 # Sed substitution to delay expansion of an escaped shell variable in a
5347 # double_quote_subst'ed string.
5348 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5349
5350 # Sed substitution to delay expansion of an escaped single quote.
5351 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5352
5353 # Sed substitution to avoid accidental globbing in evaled expressions
5354 no_glob_subst='s/\*/\\\*/g'
5355
5356 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5357 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5361 $as_echo_n "checking how to print strings... " >&6; }
5362 # Test print first, because it will be a builtin if present.
5363 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5364    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5365   ECHO='print -r --'
5366 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5367   ECHO='printf %s\n'
5368 else
5369   # Use this function as a fallback that always works.
5370   func_fallback_echo ()
5371   {
5372     eval 'cat <<_LTECHO_EOF
5373 $1
5374 _LTECHO_EOF'
5375   }
5376   ECHO='func_fallback_echo'
5377 fi
5378
5379 # func_echo_all arg...
5380 # Invoke $ECHO with all args, space-separated.
5381 func_echo_all ()
5382 {
5383     $ECHO ""
5384 }
5385
5386 case "$ECHO" in
5387   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5388 $as_echo "printf" >&6; } ;;
5389   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5390 $as_echo "print -r" >&6; } ;;
5391   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5392 $as_echo "cat" >&6; } ;;
5393 esac
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5409 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5410 if test "${ac_cv_path_SED+set}" = set; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5414      for ac_i in 1 2 3 4 5 6 7; do
5415        ac_script="$ac_script$as_nl$ac_script"
5416      done
5417      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5418      { ac_script=; unset ac_script;}
5419      if test -z "$SED"; then
5420   ac_path_SED_found=false
5421   # Loop through the user's path and test for each of PROGNAME-LIST
5422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425   IFS=$as_save_IFS
5426   test -z "$as_dir" && as_dir=.
5427     for ac_prog in sed gsed; do
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5430       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5431 # Check for GNU ac_path_SED and select it if it is found.
5432   # Check for GNU $ac_path_SED
5433 case `"$ac_path_SED" --version 2>&1` in
5434 *GNU*)
5435   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5436 *)
5437   ac_count=0
5438   $as_echo_n 0123456789 >"conftest.in"
5439   while :
5440   do
5441     cat "conftest.in" "conftest.in" >"conftest.tmp"
5442     mv "conftest.tmp" "conftest.in"
5443     cp "conftest.in" "conftest.nl"
5444     $as_echo '' >> "conftest.nl"
5445     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5446     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5447     as_fn_arith $ac_count + 1 && ac_count=$as_val
5448     if test $ac_count -gt ${ac_path_SED_max-0}; then
5449       # Best one so far, save it but keep looking for a better one
5450       ac_cv_path_SED="$ac_path_SED"
5451       ac_path_SED_max=$ac_count
5452     fi
5453     # 10*(2^10) chars as input seems more than enough
5454     test $ac_count -gt 10 && break
5455   done
5456   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5457 esac
5458
5459       $ac_path_SED_found && break 3
5460     done
5461   done
5462   done
5463 IFS=$as_save_IFS
5464   if test -z "$ac_cv_path_SED"; then
5465     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5466   fi
5467 else
5468   ac_cv_path_SED=$SED
5469 fi
5470
5471 fi
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5473 $as_echo "$ac_cv_path_SED" >&6; }
5474  SED="$ac_cv_path_SED"
5475   rm -f conftest.sed
5476
5477 test -z "$SED" && SED=sed
5478 Xsed="$SED -e 1s/^X//"
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5491 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5492 if test "${ac_cv_path_GREP+set}" = set; then :
5493   $as_echo_n "(cached) " >&6
5494 else
5495   if test -z "$GREP"; then
5496   ac_path_GREP_found=false
5497   # Loop through the user's path and test for each of PROGNAME-LIST
5498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503     for ac_prog in grep ggrep; do
5504     for ac_exec_ext in '' $ac_executable_extensions; do
5505       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5506       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5507 # Check for GNU ac_path_GREP and select it if it is found.
5508   # Check for GNU $ac_path_GREP
5509 case `"$ac_path_GREP" --version 2>&1` in
5510 *GNU*)
5511   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5512 *)
5513   ac_count=0
5514   $as_echo_n 0123456789 >"conftest.in"
5515   while :
5516   do
5517     cat "conftest.in" "conftest.in" >"conftest.tmp"
5518     mv "conftest.tmp" "conftest.in"
5519     cp "conftest.in" "conftest.nl"
5520     $as_echo 'GREP' >> "conftest.nl"
5521     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523     as_fn_arith $ac_count + 1 && ac_count=$as_val
5524     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5525       # Best one so far, save it but keep looking for a better one
5526       ac_cv_path_GREP="$ac_path_GREP"
5527       ac_path_GREP_max=$ac_count
5528     fi
5529     # 10*(2^10) chars as input seems more than enough
5530     test $ac_count -gt 10 && break
5531   done
5532   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533 esac
5534
5535       $ac_path_GREP_found && break 3
5536     done
5537   done
5538   done
5539 IFS=$as_save_IFS
5540   if test -z "$ac_cv_path_GREP"; then
5541     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5542   fi
5543 else
5544   ac_cv_path_GREP=$GREP
5545 fi
5546
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5549 $as_echo "$ac_cv_path_GREP" >&6; }
5550  GREP="$ac_cv_path_GREP"
5551
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5554 $as_echo_n "checking for egrep... " >&6; }
5555 if test "${ac_cv_path_EGREP+set}" = set; then :
5556   $as_echo_n "(cached) " >&6
5557 else
5558   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5559    then ac_cv_path_EGREP="$GREP -E"
5560    else
5561      if test -z "$EGREP"; then
5562   ac_path_EGREP_found=false
5563   # Loop through the user's path and test for each of PROGNAME-LIST
5564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5566 do
5567   IFS=$as_save_IFS
5568   test -z "$as_dir" && as_dir=.
5569     for ac_prog in egrep; do
5570     for ac_exec_ext in '' $ac_executable_extensions; do
5571       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5572       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5573 # Check for GNU ac_path_EGREP and select it if it is found.
5574   # Check for GNU $ac_path_EGREP
5575 case `"$ac_path_EGREP" --version 2>&1` in
5576 *GNU*)
5577   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5578 *)
5579   ac_count=0
5580   $as_echo_n 0123456789 >"conftest.in"
5581   while :
5582   do
5583     cat "conftest.in" "conftest.in" >"conftest.tmp"
5584     mv "conftest.tmp" "conftest.in"
5585     cp "conftest.in" "conftest.nl"
5586     $as_echo 'EGREP' >> "conftest.nl"
5587     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5589     as_fn_arith $ac_count + 1 && ac_count=$as_val
5590     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5591       # Best one so far, save it but keep looking for a better one
5592       ac_cv_path_EGREP="$ac_path_EGREP"
5593       ac_path_EGREP_max=$ac_count
5594     fi
5595     # 10*(2^10) chars as input seems more than enough
5596     test $ac_count -gt 10 && break
5597   done
5598   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599 esac
5600
5601       $ac_path_EGREP_found && break 3
5602     done
5603   done
5604   done
5605 IFS=$as_save_IFS
5606   if test -z "$ac_cv_path_EGREP"; then
5607     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5608   fi
5609 else
5610   ac_cv_path_EGREP=$EGREP
5611 fi
5612
5613    fi
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5616 $as_echo "$ac_cv_path_EGREP" >&6; }
5617  EGREP="$ac_cv_path_EGREP"
5618
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5621 $as_echo_n "checking for fgrep... " >&6; }
5622 if test "${ac_cv_path_FGREP+set}" = set; then :
5623   $as_echo_n "(cached) " >&6
5624 else
5625   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5626    then ac_cv_path_FGREP="$GREP -F"
5627    else
5628      if test -z "$FGREP"; then
5629   ac_path_FGREP_found=false
5630   # Loop through the user's path and test for each of PROGNAME-LIST
5631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_prog in fgrep; do
5637     for ac_exec_ext in '' $ac_executable_extensions; do
5638       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5639       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5640 # Check for GNU ac_path_FGREP and select it if it is found.
5641   # Check for GNU $ac_path_FGREP
5642 case `"$ac_path_FGREP" --version 2>&1` in
5643 *GNU*)
5644   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5645 *)
5646   ac_count=0
5647   $as_echo_n 0123456789 >"conftest.in"
5648   while :
5649   do
5650     cat "conftest.in" "conftest.in" >"conftest.tmp"
5651     mv "conftest.tmp" "conftest.in"
5652     cp "conftest.in" "conftest.nl"
5653     $as_echo 'FGREP' >> "conftest.nl"
5654     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5656     as_fn_arith $ac_count + 1 && ac_count=$as_val
5657     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5658       # Best one so far, save it but keep looking for a better one
5659       ac_cv_path_FGREP="$ac_path_FGREP"
5660       ac_path_FGREP_max=$ac_count
5661     fi
5662     # 10*(2^10) chars as input seems more than enough
5663     test $ac_count -gt 10 && break
5664   done
5665   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5666 esac
5667
5668       $ac_path_FGREP_found && break 3
5669     done
5670   done
5671   done
5672 IFS=$as_save_IFS
5673   if test -z "$ac_cv_path_FGREP"; then
5674     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5675   fi
5676 else
5677   ac_cv_path_FGREP=$FGREP
5678 fi
5679
5680    fi
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5683 $as_echo "$ac_cv_path_FGREP" >&6; }
5684  FGREP="$ac_cv_path_FGREP"
5685
5686
5687 test -z "$GREP" && GREP=grep
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 # Check whether --with-gnu-ld was given.
5708 if test "${with_gnu_ld+set}" = set; then :
5709   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5710 else
5711   with_gnu_ld=no
5712 fi
5713
5714 ac_prog=ld
5715 if test "$GCC" = yes; then
5716   # Check if gcc -print-prog-name=ld gives a path.
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5718 $as_echo_n "checking for ld used by $CC... " >&6; }
5719   case $host in
5720   *-*-mingw*)
5721     # gcc leaves a trailing carriage return which upsets mingw
5722     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5723   *)
5724     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5725   esac
5726   case $ac_prog in
5727     # Accept absolute paths.
5728     [\\/]* | ?:[\\/]*)
5729       re_direlt='/[^/][^/]*/\.\./'
5730       # Canonicalize the pathname of ld
5731       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5732       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5733         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5734       done
5735       test -z "$LD" && LD="$ac_prog"
5736       ;;
5737   "")
5738     # If it fails, then pretend we aren't using GCC.
5739     ac_prog=ld
5740     ;;
5741   *)
5742     # If it is relative, then search for the first ld in PATH.
5743     with_gnu_ld=unknown
5744     ;;
5745   esac
5746 elif test "$with_gnu_ld" = yes; then
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5748 $as_echo_n "checking for GNU ld... " >&6; }
5749 else
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5751 $as_echo_n "checking for non-GNU ld... " >&6; }
5752 fi
5753 if test "${lt_cv_path_LD+set}" = set; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   if test -z "$LD"; then
5757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758   for ac_dir in $PATH; do
5759     IFS="$lt_save_ifs"
5760     test -z "$ac_dir" && ac_dir=.
5761     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5762       lt_cv_path_LD="$ac_dir/$ac_prog"
5763       # Check to see if the program is GNU ld.  I'd rather use --version,
5764       # but apparently some variants of GNU ld only accept -v.
5765       # Break only if it was the GNU/non-GNU ld that we prefer.
5766       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5767       *GNU* | *'with BFD'*)
5768         test "$with_gnu_ld" != no && break
5769         ;;
5770       *)
5771         test "$with_gnu_ld" != yes && break
5772         ;;
5773       esac
5774     fi
5775   done
5776   IFS="$lt_save_ifs"
5777 else
5778   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5779 fi
5780 fi
5781
5782 LD="$lt_cv_path_LD"
5783 if test -n "$LD"; then
5784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5785 $as_echo "$LD" >&6; }
5786 else
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5793 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5797 case `$LD -v 2>&1 </dev/null` in
5798 *GNU* | *'with BFD'*)
5799   lt_cv_prog_gnu_ld=yes
5800   ;;
5801 *)
5802   lt_cv_prog_gnu_ld=no
5803   ;;
5804 esac
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5808 with_gnu_ld=$lt_cv_prog_gnu_ld
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5819 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5820 if test "${lt_cv_path_NM+set}" = set; then :
5821   $as_echo_n "(cached) " >&6
5822 else
5823   if test -n "$NM"; then
5824   # Let the user override the test.
5825   lt_cv_path_NM="$NM"
5826 else
5827   lt_nm_to_check="${ac_tool_prefix}nm"
5828   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5829     lt_nm_to_check="$lt_nm_to_check nm"
5830   fi
5831   for lt_tmp_nm in $lt_nm_to_check; do
5832     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5833     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5834       IFS="$lt_save_ifs"
5835       test -z "$ac_dir" && ac_dir=.
5836       tmp_nm="$ac_dir/$lt_tmp_nm"
5837       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5838         # Check to see if the nm accepts a BSD-compat flag.
5839         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5840         #   nm: unknown option "B" ignored
5841         # Tru64's nm complains that /dev/null is an invalid object file
5842         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5843         */dev/null* | *'Invalid file or object type'*)
5844           lt_cv_path_NM="$tmp_nm -B"
5845           break
5846           ;;
5847         *)
5848           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5849           */dev/null*)
5850             lt_cv_path_NM="$tmp_nm -p"
5851             break
5852             ;;
5853           *)
5854             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5855             continue # so that we can try to find one that supports BSD flags
5856             ;;
5857           esac
5858           ;;
5859         esac
5860       fi
5861     done
5862     IFS="$lt_save_ifs"
5863   done
5864   : ${lt_cv_path_NM=no}
5865 fi
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5868 $as_echo "$lt_cv_path_NM" >&6; }
5869 if test "$lt_cv_path_NM" != "no"; then
5870   NM="$lt_cv_path_NM"
5871 else
5872   # Didn't find any BSD compatible name lister, look for dumpbin.
5873   if test -n "$DUMPBIN"; then :
5874     # Let the user override the test.
5875   else
5876     if test -n "$ac_tool_prefix"; then
5877   for ac_prog in dumpbin "link -dump"
5878   do
5879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if test -n "$DUMPBIN"; then
5887   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894     for ac_exec_ext in '' $ac_executable_extensions; do
5895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901   done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 DUMPBIN=$ac_cv_prog_DUMPBIN
5907 if test -n "$DUMPBIN"; then
5908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5909 $as_echo "$DUMPBIN" >&6; }
5910 else
5911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5913 fi
5914
5915
5916     test -n "$DUMPBIN" && break
5917   done
5918 fi
5919 if test -z "$DUMPBIN"; then
5920   ac_ct_DUMPBIN=$DUMPBIN
5921   for ac_prog in dumpbin "link -dump"
5922 do
5923   # Extract the first word of "$ac_prog", so it can be a program name with args.
5924 set dummy $ac_prog; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   if test -n "$ac_ct_DUMPBIN"; then
5931   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938     for ac_exec_ext in '' $ac_executable_extensions; do
5939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945   done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5951 if test -n "$ac_ct_DUMPBIN"; then
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5953 $as_echo "$ac_ct_DUMPBIN" >&6; }
5954 else
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959
5960   test -n "$ac_ct_DUMPBIN" && break
5961 done
5962
5963   if test "x$ac_ct_DUMPBIN" = x; then
5964     DUMPBIN=":"
5965   else
5966     case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972     DUMPBIN=$ac_ct_DUMPBIN
5973   fi
5974 fi
5975
5976     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5977     *COFF*)
5978       DUMPBIN="$DUMPBIN -symbols"
5979       ;;
5980     *)
5981       DUMPBIN=:
5982       ;;
5983     esac
5984   fi
5985
5986   if test "$DUMPBIN" != ":"; then
5987     NM="$DUMPBIN"
5988   fi
5989 fi
5990 test -z "$NM" && NM=nm
5991
5992
5993
5994
5995
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5998 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5999 if test "${lt_cv_nm_interface+set}" = set; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   lt_cv_nm_interface="BSD nm"
6003   echo "int some_variable = 0;" > conftest.$ac_ext
6004   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6005   (eval "$ac_compile" 2>conftest.err)
6006   cat conftest.err >&5
6007   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6008   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6009   cat conftest.err >&5
6010   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6011   cat conftest.out >&5
6012   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6013     lt_cv_nm_interface="MS dumpbin"
6014   fi
6015   rm -f conftest*
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6018 $as_echo "$lt_cv_nm_interface" >&6; }
6019
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6021 $as_echo_n "checking whether ln -s works... " >&6; }
6022 LN_S=$as_ln_s
6023 if test "$LN_S" = "ln -s"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6025 $as_echo "yes" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6028 $as_echo "no, using $LN_S" >&6; }
6029 fi
6030
6031 # find the maximum length of command line arguments
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6033 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6034 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037     i=0
6038   teststring="ABCD"
6039
6040   case $build_os in
6041   msdosdjgpp*)
6042     # On DJGPP, this test can blow up pretty badly due to problems in libc
6043     # (any single argument exceeding 2000 bytes causes a buffer overrun
6044     # during glob expansion).  Even if it were fixed, the result of this
6045     # check would be larger than it should be.
6046     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6047     ;;
6048
6049   gnu*)
6050     # Under GNU Hurd, this test is not required because there is
6051     # no limit to the length of command line arguments.
6052     # Libtool will interpret -1 as no limit whatsoever
6053     lt_cv_sys_max_cmd_len=-1;
6054     ;;
6055
6056   cygwin* | mingw* | cegcc*)
6057     # On Win9x/ME, this test blows up -- it succeeds, but takes
6058     # about 5 minutes as the teststring grows exponentially.
6059     # Worse, since 9x/ME are not pre-emptively multitasking,
6060     # you end up with a "frozen" computer, even though with patience
6061     # the test eventually succeeds (with a max line length of 256k).
6062     # Instead, let's just punt: use the minimum linelength reported by
6063     # all of the supported platforms: 8192 (on NT/2K/XP).
6064     lt_cv_sys_max_cmd_len=8192;
6065     ;;
6066
6067   mint*)
6068     # On MiNT this can take a long time and run out of memory.
6069     lt_cv_sys_max_cmd_len=8192;
6070     ;;
6071
6072   amigaos*)
6073     # On AmigaOS with pdksh, this test takes hours, literally.
6074     # So we just punt and use a minimum line length of 8192.
6075     lt_cv_sys_max_cmd_len=8192;
6076     ;;
6077
6078   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6079     # This has been around since 386BSD, at least.  Likely further.
6080     if test -x /sbin/sysctl; then
6081       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6082     elif test -x /usr/sbin/sysctl; then
6083       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6084     else
6085       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6086     fi
6087     # And add a safety zone
6088     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6089     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6090     ;;
6091
6092   interix*)
6093     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6094     lt_cv_sys_max_cmd_len=196608
6095     ;;
6096
6097   osf*)
6098     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6099     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6100     # nice to cause kernel panics so lets avoid the loop below.
6101     # First set a reasonable default.
6102     lt_cv_sys_max_cmd_len=16384
6103     #
6104     if test -x /sbin/sysconfig; then
6105       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6106         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6107       esac
6108     fi
6109     ;;
6110   sco3.2v5*)
6111     lt_cv_sys_max_cmd_len=102400
6112     ;;
6113   sysv5* | sco5v6* | sysv4.2uw2*)
6114     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6115     if test -n "$kargmax"; then
6116       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6117     else
6118       lt_cv_sys_max_cmd_len=32768
6119     fi
6120     ;;
6121   *)
6122     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6123     if test -n "$lt_cv_sys_max_cmd_len"; then
6124       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6125       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6126     else
6127       # Make teststring a little bigger before we do anything with it.
6128       # a 1K string should be a reasonable start.
6129       for i in 1 2 3 4 5 6 7 8 ; do
6130         teststring=$teststring$teststring
6131       done
6132       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6133       # If test is not a shell built-in, we'll probably end up computing a
6134       # maximum length that is only half of the actual maximum length, but
6135       # we can't tell.
6136       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6137                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6138               test $i != 17 # 1/2 MB should be enough
6139       do
6140         i=`expr $i + 1`
6141         teststring=$teststring$teststring
6142       done
6143       # Only check the string length outside the loop.
6144       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6145       teststring=
6146       # Add a significant safety factor because C++ compilers can tack on
6147       # massive amounts of additional arguments before passing them to the
6148       # linker.  It appears as though 1/2 is a usable value.
6149       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6150     fi
6151     ;;
6152   esac
6153
6154 fi
6155
6156 if test -n $lt_cv_sys_max_cmd_len ; then
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6158 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6159 else
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6161 $as_echo "none" >&6; }
6162 fi
6163 max_cmd_len=$lt_cv_sys_max_cmd_len
6164
6165
6166
6167
6168
6169
6170 : ${CP="cp -f"}
6171 : ${MV="mv -f"}
6172 : ${RM="rm -f"}
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6175 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6176 # Try some XSI features
6177 xsi_shell=no
6178 ( _lt_dummy="a/b/c"
6179   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6180       = c,a/b,, \
6181     && eval 'test $(( 1 + 1 )) -eq 2 \
6182     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6183   && xsi_shell=yes
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6185 $as_echo "$xsi_shell" >&6; }
6186
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6189 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6190 lt_shell_append=no
6191 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6192     >/dev/null 2>&1 \
6193   && lt_shell_append=yes
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6195 $as_echo "$lt_shell_append" >&6; }
6196
6197
6198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6199   lt_unset=unset
6200 else
6201   lt_unset=false
6202 fi
6203
6204
6205
6206
6207
6208 # test EBCDIC or ASCII
6209 case `echo X|tr X '\101'` in
6210  A) # ASCII based system
6211     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6212   lt_SP2NL='tr \040 \012'
6213   lt_NL2SP='tr \015\012 \040\040'
6214   ;;
6215  *) # EBCDIC based system
6216   lt_SP2NL='tr \100 \n'
6217   lt_NL2SP='tr \r\n \100\100'
6218   ;;
6219 esac
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6230 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6231 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234   lt_cv_ld_reload_flag='-r'
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6237 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6238 reload_flag=$lt_cv_ld_reload_flag
6239 case $reload_flag in
6240 "" | " "*) ;;
6241 *) reload_flag=" $reload_flag" ;;
6242 esac
6243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244 case $host_os in
6245   darwin*)
6246     if test "$GCC" = yes; then
6247       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6248     else
6249       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6250     fi
6251     ;;
6252 esac
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 if test -n "$ac_tool_prefix"; then
6263   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6264 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   if test -n "$OBJDUMP"; then
6271   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285   done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 OBJDUMP=$ac_cv_prog_OBJDUMP
6291 if test -n "$OBJDUMP"; then
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6293 $as_echo "$OBJDUMP" >&6; }
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299
6300 fi
6301 if test -z "$ac_cv_prog_OBJDUMP"; then
6302   ac_ct_OBJDUMP=$OBJDUMP
6303   # Extract the first word of "objdump", so it can be a program name with args.
6304 set dummy objdump; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6308   $as_echo_n "(cached) " >&6
6309 else
6310   if test -n "$ac_ct_OBJDUMP"; then
6311   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318     for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325   done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6331 if test -n "$ac_ct_OBJDUMP"; then
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6333 $as_echo "$ac_ct_OBJDUMP" >&6; }
6334 else
6335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6337 fi
6338
6339   if test "x$ac_ct_OBJDUMP" = x; then
6340     OBJDUMP="false"
6341   else
6342     case $cross_compiling:$ac_tool_warned in
6343 yes:)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346 ac_tool_warned=yes ;;
6347 esac
6348     OBJDUMP=$ac_ct_OBJDUMP
6349   fi
6350 else
6351   OBJDUMP="$ac_cv_prog_OBJDUMP"
6352 fi
6353
6354 test -z "$OBJDUMP" && OBJDUMP=objdump
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6365 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6366 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   lt_cv_file_magic_cmd='$MAGIC_CMD'
6370 lt_cv_file_magic_test_file=
6371 lt_cv_deplibs_check_method='unknown'
6372 # Need to set the preceding variable on all platforms that support
6373 # interlibrary dependencies.
6374 # 'none' -- dependencies not supported.
6375 # `unknown' -- same as none, but documents that we really don't know.
6376 # 'pass_all' -- all dependencies passed with no checks.
6377 # 'test_compile' -- check by making test program.
6378 # 'file_magic [[regex]]' -- check by looking for files in library path
6379 # which responds to the $file_magic_cmd with a given extended regex.
6380 # If you have `file' or equivalent on your system and you're not sure
6381 # whether `pass_all' will *always* work, you probably want this one.
6382
6383 case $host_os in
6384 aix[4-9]*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 beos*)
6389   lt_cv_deplibs_check_method=pass_all
6390   ;;
6391
6392 bsdi[45]*)
6393   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6394   lt_cv_file_magic_cmd='/usr/bin/file -L'
6395   lt_cv_file_magic_test_file=/shlib/libc.so
6396   ;;
6397
6398 cygwin*)
6399   # func_win32_libid is a shell function defined in ltmain.sh
6400   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6401   lt_cv_file_magic_cmd='func_win32_libid'
6402   ;;
6403
6404 mingw* | pw32*)
6405   # Base MSYS/MinGW do not provide the 'file' command needed by
6406   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6407   # unless we find 'file', for example because we are cross-compiling.
6408   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6409   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6410     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6411     lt_cv_file_magic_cmd='func_win32_libid'
6412   else
6413     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6414     lt_cv_file_magic_cmd='$OBJDUMP -f'
6415   fi
6416   ;;
6417
6418 cegcc*)
6419   # use the weaker test based on 'objdump'. See mingw*.
6420   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6421   lt_cv_file_magic_cmd='$OBJDUMP -f'
6422   ;;
6423
6424 darwin* | rhapsody*)
6425   lt_cv_deplibs_check_method=pass_all
6426   ;;
6427
6428 freebsd* | dragonfly*)
6429   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6430     case $host_cpu in
6431     i*86 )
6432       # Not sure whether the presence of OpenBSD here was a mistake.
6433       # Let's accept both of them until this is cleared up.
6434       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6435       lt_cv_file_magic_cmd=/usr/bin/file
6436       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6437       ;;
6438     esac
6439   else
6440     lt_cv_deplibs_check_method=pass_all
6441   fi
6442   ;;
6443
6444 gnu*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 haiku*)
6449   lt_cv_deplibs_check_method=pass_all
6450   ;;
6451
6452 hpux10.20* | hpux11*)
6453   lt_cv_file_magic_cmd=/usr/bin/file
6454   case $host_cpu in
6455   ia64*)
6456     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6457     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6458     ;;
6459   hppa*64*)
6460     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]'
6461     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6462     ;;
6463   *)
6464     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6465     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6466     ;;
6467   esac
6468   ;;
6469
6470 interix[3-9]*)
6471   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6472   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6473   ;;
6474
6475 irix5* | irix6* | nonstopux*)
6476   case $LD in
6477   *-32|*"-32 ") libmagic=32-bit;;
6478   *-n32|*"-n32 ") libmagic=N32;;
6479   *-64|*"-64 ") libmagic=64-bit;;
6480   *) libmagic=never-match;;
6481   esac
6482   lt_cv_deplibs_check_method=pass_all
6483   ;;
6484
6485 # This must be Linux ELF.
6486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6487   lt_cv_deplibs_check_method=pass_all
6488   ;;
6489
6490 netbsd*)
6491   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493   else
6494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6495   fi
6496   ;;
6497
6498 newos6*)
6499   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6500   lt_cv_file_magic_cmd=/usr/bin/file
6501   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6502   ;;
6503
6504 *nto* | *qnx*)
6505   lt_cv_deplibs_check_method=pass_all
6506   ;;
6507
6508 openbsd*)
6509   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6510     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6511   else
6512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513   fi
6514   ;;
6515
6516 osf3* | osf4* | osf5*)
6517   lt_cv_deplibs_check_method=pass_all
6518   ;;
6519
6520 rdos*)
6521   lt_cv_deplibs_check_method=pass_all
6522   ;;
6523
6524 solaris*)
6525   lt_cv_deplibs_check_method=pass_all
6526   ;;
6527
6528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6529   lt_cv_deplibs_check_method=pass_all
6530   ;;
6531
6532 sysv4 | sysv4.3*)
6533   case $host_vendor in
6534   motorola)
6535     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]'
6536     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6537     ;;
6538   ncr)
6539     lt_cv_deplibs_check_method=pass_all
6540     ;;
6541   sequent)
6542     lt_cv_file_magic_cmd='/bin/file'
6543     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6544     ;;
6545   sni)
6546     lt_cv_file_magic_cmd='/bin/file'
6547     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6548     lt_cv_file_magic_test_file=/lib/libc.so
6549     ;;
6550   siemens)
6551     lt_cv_deplibs_check_method=pass_all
6552     ;;
6553   pc)
6554     lt_cv_deplibs_check_method=pass_all
6555     ;;
6556   esac
6557   ;;
6558
6559 tpf*)
6560   lt_cv_deplibs_check_method=pass_all
6561   ;;
6562 esac
6563
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6566 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6567 file_magic_cmd=$lt_cv_file_magic_cmd
6568 deplibs_check_method=$lt_cv_deplibs_check_method
6569 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582 if test -n "$ac_tool_prefix"; then
6583   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}ar; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if test "${ac_cv_prog_AR+set}" = set; then :
6588   $as_echo_n "(cached) " >&6
6589 else
6590   if test -n "$AR"; then
6591   ac_cv_prog_AR="$AR" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598     for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_prog_AR="${ac_tool_prefix}ar"
6601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605   done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 AR=$ac_cv_prog_AR
6611 if test -n "$AR"; then
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6613 $as_echo "$AR" >&6; }
6614 else
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6617 fi
6618
6619
6620 fi
6621 if test -z "$ac_cv_prog_AR"; then
6622   ac_ct_AR=$AR
6623   # Extract the first word of "ar", so it can be a program name with args.
6624 set dummy ar; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   if test -n "$ac_ct_AR"; then
6631   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638     for ac_exec_ext in '' $ac_executable_extensions; do
6639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640     ac_cv_prog_ac_ct_AR="ar"
6641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645   done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6651 if test -n "$ac_ct_AR"; then
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6653 $as_echo "$ac_ct_AR" >&6; }
6654 else
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6657 fi
6658
6659   if test "x$ac_ct_AR" = x; then
6660     AR="false"
6661   else
6662     case $cross_compiling:$ac_tool_warned in
6663 yes:)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666 ac_tool_warned=yes ;;
6667 esac
6668     AR=$ac_ct_AR
6669   fi
6670 else
6671   AR="$ac_cv_prog_AR"
6672 fi
6673
6674 test -z "$AR" && AR=ar
6675 test -z "$AR_FLAGS" && AR_FLAGS=cru
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687 if test -n "$ac_tool_prefix"; then
6688   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}strip; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_prog_STRIP+set}" = set; then :
6693   $as_echo_n "(cached) " >&6
6694 else
6695   if test -n "$STRIP"; then
6696   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703     for ac_exec_ext in '' $ac_executable_extensions; do
6704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710   done
6711 IFS=$as_save_IFS
6712
6713 fi
6714 fi
6715 STRIP=$ac_cv_prog_STRIP
6716 if test -n "$STRIP"; then
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6718 $as_echo "$STRIP" >&6; }
6719 else
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6722 fi
6723
6724
6725 fi
6726 if test -z "$ac_cv_prog_STRIP"; then
6727   ac_ct_STRIP=$STRIP
6728   # Extract the first word of "strip", so it can be a program name with args.
6729 set dummy strip; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   if test -n "$ac_ct_STRIP"; then
6736   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743     for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_prog_ac_ct_STRIP="strip"
6746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750   done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6756 if test -n "$ac_ct_STRIP"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6758 $as_echo "$ac_ct_STRIP" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764   if test "x$ac_ct_STRIP" = x; then
6765     STRIP=":"
6766   else
6767     case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773     STRIP=$ac_ct_STRIP
6774   fi
6775 else
6776   STRIP="$ac_cv_prog_STRIP"
6777 fi
6778
6779 test -z "$STRIP" && STRIP=:
6780
6781
6782
6783
6784
6785
6786 if test -n "$ac_tool_prefix"; then
6787   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6792   $as_echo_n "(cached) " >&6
6793 else
6794   if test -n "$RANLIB"; then
6795   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802     for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809   done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 RANLIB=$ac_cv_prog_RANLIB
6815 if test -n "$RANLIB"; then
6816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6817 $as_echo "$RANLIB" >&6; }
6818 else
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_RANLIB"; then
6826   ac_ct_RANLIB=$RANLIB
6827   # Extract the first word of "ranlib", so it can be a program name with args.
6828 set dummy ranlib; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   if test -n "$ac_ct_RANLIB"; then
6835   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842     for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_prog_ac_ct_RANLIB="ranlib"
6845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849   done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855 if test -n "$ac_ct_RANLIB"; then
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6857 $as_echo "$ac_ct_RANLIB" >&6; }
6858 else
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863   if test "x$ac_ct_RANLIB" = x; then
6864     RANLIB=":"
6865   else
6866     case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872     RANLIB=$ac_ct_RANLIB
6873   fi
6874 else
6875   RANLIB="$ac_cv_prog_RANLIB"
6876 fi
6877
6878 test -z "$RANLIB" && RANLIB=:
6879
6880
6881
6882
6883
6884
6885 # Determine commands to create old-style static archives.
6886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6887 old_postinstall_cmds='chmod 644 $oldlib'
6888 old_postuninstall_cmds=
6889
6890 if test -n "$RANLIB"; then
6891   case $host_os in
6892   openbsd*)
6893     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6894     ;;
6895   *)
6896     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6897     ;;
6898   esac
6899   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6900 fi
6901
6902 case $host_os in
6903   darwin*)
6904     lock_old_archive_extraction=yes ;;
6905   *)
6906     lock_old_archive_extraction=no ;;
6907 esac
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947 # If no C compiler was specified, use CC.
6948 LTCC=${LTCC-"$CC"}
6949
6950 # If no C compiler flags were specified, use CFLAGS.
6951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6952
6953 # Allow CC to be a program name with arguments.
6954 compiler=$CC
6955
6956
6957 # Check for command to grab the raw symbol name followed by C symbol from nm.
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6959 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6960 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6961   $as_echo_n "(cached) " >&6
6962 else
6963
6964 # These are sane defaults that work on at least a few old systems.
6965 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6966
6967 # Character class describing NM global symbol codes.
6968 symcode='[BCDEGRST]'
6969
6970 # Regexp to match symbols that can be accessed directly from C.
6971 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6972
6973 # Define system-specific variables.
6974 case $host_os in
6975 aix*)
6976   symcode='[BCDT]'
6977   ;;
6978 cygwin* | mingw* | pw32* | cegcc*)
6979   symcode='[ABCDGISTW]'
6980   ;;
6981 hpux*)
6982   if test "$host_cpu" = ia64; then
6983     symcode='[ABCDEGRST]'
6984   fi
6985   ;;
6986 irix* | nonstopux*)
6987   symcode='[BCDEGRST]'
6988   ;;
6989 osf*)
6990   symcode='[BCDEGQRST]'
6991   ;;
6992 solaris*)
6993   symcode='[BDRT]'
6994   ;;
6995 sco3.2v5*)
6996   symcode='[DT]'
6997   ;;
6998 sysv4.2uw2*)
6999   symcode='[DT]'
7000   ;;
7001 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7002   symcode='[ABDT]'
7003   ;;
7004 sysv4)
7005   symcode='[DFNSTU]'
7006   ;;
7007 esac
7008
7009 # If we're using GNU nm, then use its standard symbol codes.
7010 case `$NM -V 2>&1` in
7011 *GNU* | *'with BFD'*)
7012   symcode='[ABCDGIRSTW]' ;;
7013 esac
7014
7015 # Transform an extracted symbol line into a proper C declaration.
7016 # Some systems (esp. on ia64) link data and code symbols differently,
7017 # so use this general approach.
7018 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7019
7020 # Transform an extracted symbol line into symbol name and symbol address
7021 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7022 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'"
7023
7024 # Handle CRLF in mingw tool chain
7025 opt_cr=
7026 case $build_os in
7027 mingw*)
7028   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7029   ;;
7030 esac
7031
7032 # Try without a prefix underscore, then with it.
7033 for ac_symprfx in "" "_"; do
7034
7035   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7036   symxfrm="\\1 $ac_symprfx\\2 \\2"
7037
7038   # Write the raw and C identifiers.
7039   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7040     # Fake it for dumpbin and say T for any non-static function
7041     # and D for any global variable.
7042     # Also find C++ and __fastcall symbols from MSVC++,
7043     # which start with @ or ?.
7044     lt_cv_sys_global_symbol_pipe="$AWK '"\
7045 "     {last_section=section; section=\$ 3};"\
7046 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7047 "     \$ 0!~/External *\|/{next};"\
7048 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7049 "     {if(hide[section]) next};"\
7050 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7051 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7052 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7053 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7054 "     ' prfx=^$ac_symprfx"
7055   else
7056     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7057   fi
7058
7059   # Check to see that the pipe works correctly.
7060   pipe_works=no
7061
7062   rm -f conftest*
7063   cat > conftest.$ac_ext <<_LT_EOF
7064 #ifdef __cplusplus
7065 extern "C" {
7066 #endif
7067 char nm_test_var;
7068 void nm_test_func(void);
7069 void nm_test_func(void){}
7070 #ifdef __cplusplus
7071 }
7072 #endif
7073 int main(){nm_test_var='a';nm_test_func();return(0);}
7074 _LT_EOF
7075
7076   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7077   (eval $ac_compile) 2>&5
7078   ac_status=$?
7079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080   test $ac_status = 0; }; then
7081     # Now try to grab the symbols.
7082     nlist=conftest.nm
7083     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7084   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7085   ac_status=$?
7086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087   test $ac_status = 0; } && test -s "$nlist"; then
7088       # Try sorting and uniquifying the output.
7089       if sort "$nlist" | uniq > "$nlist"T; then
7090         mv -f "$nlist"T "$nlist"
7091       else
7092         rm -f "$nlist"T
7093       fi
7094
7095       # Make sure that we snagged all the symbols we need.
7096       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7097         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7098           cat <<_LT_EOF > conftest.$ac_ext
7099 #ifdef __cplusplus
7100 extern "C" {
7101 #endif
7102
7103 _LT_EOF
7104           # Now generate the symbol file.
7105           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7106
7107           cat <<_LT_EOF >> conftest.$ac_ext
7108
7109 /* The mapping between symbol names and symbols.  */
7110 const struct {
7111   const char *name;
7112   void       *address;
7113 }
7114 lt__PROGRAM__LTX_preloaded_symbols[] =
7115 {
7116   { "@PROGRAM@", (void *) 0 },
7117 _LT_EOF
7118           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7119           cat <<\_LT_EOF >> conftest.$ac_ext
7120   {0, (void *) 0}
7121 };
7122
7123 /* This works around a problem in FreeBSD linker */
7124 #ifdef FREEBSD_WORKAROUND
7125 static const void *lt_preloaded_setup() {
7126   return lt__PROGRAM__LTX_preloaded_symbols;
7127 }
7128 #endif
7129
7130 #ifdef __cplusplus
7131 }
7132 #endif
7133 _LT_EOF
7134           # Now try linking the two files.
7135           mv conftest.$ac_objext conftstm.$ac_objext
7136           lt_save_LIBS="$LIBS"
7137           lt_save_CFLAGS="$CFLAGS"
7138           LIBS="conftstm.$ac_objext"
7139           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7140           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7141   (eval $ac_link) 2>&5
7142   ac_status=$?
7143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7145             pipe_works=yes
7146           fi
7147           LIBS="$lt_save_LIBS"
7148           CFLAGS="$lt_save_CFLAGS"
7149         else
7150           echo "cannot find nm_test_func in $nlist" >&5
7151         fi
7152       else
7153         echo "cannot find nm_test_var in $nlist" >&5
7154       fi
7155     else
7156       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7157     fi
7158   else
7159     echo "$progname: failed program was:" >&5
7160     cat conftest.$ac_ext >&5
7161   fi
7162   rm -rf conftest* conftst*
7163
7164   # Do not use the global_symbol_pipe unless it works.
7165   if test "$pipe_works" = yes; then
7166     break
7167   else
7168     lt_cv_sys_global_symbol_pipe=
7169   fi
7170 done
7171
7172 fi
7173
7174 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7175   lt_cv_sys_global_symbol_to_cdecl=
7176 fi
7177 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7179 $as_echo "failed" >&6; }
7180 else
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7182 $as_echo "ok" >&6; }
7183 fi
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207 # Check whether --enable-libtool-lock was given.
7208 if test "${enable_libtool_lock+set}" = set; then :
7209   enableval=$enable_libtool_lock;
7210 fi
7211
7212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7213
7214 # Some flags need to be propagated to the compiler or linker for good
7215 # libtool support.
7216 case $host in
7217 ia64-*-hpux*)
7218   # Find out which ABI we are using.
7219   echo 'int i;' > conftest.$ac_ext
7220   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7221   (eval $ac_compile) 2>&5
7222   ac_status=$?
7223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224   test $ac_status = 0; }; then
7225     case `/usr/bin/file conftest.$ac_objext` in
7226       *ELF-32*)
7227         HPUX_IA64_MODE="32"
7228         ;;
7229       *ELF-64*)
7230         HPUX_IA64_MODE="64"
7231         ;;
7232     esac
7233   fi
7234   rm -rf conftest*
7235   ;;
7236 *-*-irix6*)
7237   # Find out which ABI we are using.
7238   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7239   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240   (eval $ac_compile) 2>&5
7241   ac_status=$?
7242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243   test $ac_status = 0; }; then
7244     if test "$lt_cv_prog_gnu_ld" = yes; then
7245       case `/usr/bin/file conftest.$ac_objext` in
7246         *32-bit*)
7247           LD="${LD-ld} -melf32bsmip"
7248           ;;
7249         *N32*)
7250           LD="${LD-ld} -melf32bmipn32"
7251           ;;
7252         *64-bit*)
7253           LD="${LD-ld} -melf64bmip"
7254         ;;
7255       esac
7256     else
7257       case `/usr/bin/file conftest.$ac_objext` in
7258         *32-bit*)
7259           LD="${LD-ld} -32"
7260           ;;
7261         *N32*)
7262           LD="${LD-ld} -n32"
7263           ;;
7264         *64-bit*)
7265           LD="${LD-ld} -64"
7266           ;;
7267       esac
7268     fi
7269   fi
7270   rm -rf conftest*
7271   ;;
7272
7273 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7274 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7275   # Find out which ABI we are using.
7276   echo 'int i;' > conftest.$ac_ext
7277   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278   (eval $ac_compile) 2>&5
7279   ac_status=$?
7280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281   test $ac_status = 0; }; then
7282     case `/usr/bin/file conftest.o` in
7283       *32-bit*)
7284         case $host in
7285           x86_64-*kfreebsd*-gnu)
7286             LD="${LD-ld} -m elf_i386_fbsd"
7287             ;;
7288           x86_64-*linux*)
7289             LD="${LD-ld} -m elf_i386"
7290             ;;
7291           ppc64-*linux*|powerpc64-*linux*)
7292             LD="${LD-ld} -m elf32ppclinux"
7293             ;;
7294           s390x-*linux*)
7295             LD="${LD-ld} -m elf_s390"
7296             ;;
7297           sparc64-*linux*)
7298             LD="${LD-ld} -m elf32_sparc"
7299             ;;
7300         esac
7301         ;;
7302       *64-bit*)
7303         case $host in
7304           x86_64-*kfreebsd*-gnu)
7305             LD="${LD-ld} -m elf_x86_64_fbsd"
7306             ;;
7307           x86_64-*linux*)
7308             LD="${LD-ld} -m elf_x86_64"
7309             ;;
7310           ppc*-*linux*|powerpc*-*linux*)
7311             LD="${LD-ld} -m elf64ppc"
7312             ;;
7313           s390*-*linux*|s390*-*tpf*)
7314             LD="${LD-ld} -m elf64_s390"
7315             ;;
7316           sparc*-*linux*)
7317             LD="${LD-ld} -m elf64_sparc"
7318             ;;
7319         esac
7320         ;;
7321     esac
7322   fi
7323   rm -rf conftest*
7324   ;;
7325
7326 *-*-sco3.2v5*)
7327   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7328   SAVE_CFLAGS="$CFLAGS"
7329   CFLAGS="$CFLAGS -belf"
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7331 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7332 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   ac_ext=c
7336 ac_cpp='$CPP $CPPFLAGS'
7337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340
7341      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h.  */
7343
7344 int
7345 main ()
7346 {
7347
7348   ;
7349   return 0;
7350 }
7351 _ACEOF
7352 if ac_fn_c_try_link "$LINENO"; then :
7353   lt_cv_cc_needs_belf=yes
7354 else
7355   lt_cv_cc_needs_belf=no
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext \
7358     conftest$ac_exeext conftest.$ac_ext
7359      ac_ext=c
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7367 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7368   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7369     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7370     CFLAGS="$SAVE_CFLAGS"
7371   fi
7372   ;;
7373 sparc*-*solaris*)
7374   # Find out which ABI we are using.
7375   echo 'int i;' > conftest.$ac_ext
7376   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377   (eval $ac_compile) 2>&5
7378   ac_status=$?
7379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380   test $ac_status = 0; }; then
7381     case `/usr/bin/file conftest.o` in
7382     *64-bit*)
7383       case $lt_cv_prog_gnu_ld in
7384       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7385       *)
7386         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7387           LD="${LD-ld} -64"
7388         fi
7389         ;;
7390       esac
7391       ;;
7392     esac
7393   fi
7394   rm -rf conftest*
7395   ;;
7396 esac
7397
7398 need_locks="$enable_libtool_lock"
7399
7400
7401   case $host_os in
7402     rhapsody* | darwin*)
7403     if test -n "$ac_tool_prefix"; then
7404   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7409   $as_echo_n "(cached) " >&6
7410 else
7411   if test -n "$DSYMUTIL"; then
7412   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419     for ac_exec_ext in '' $ac_executable_extensions; do
7420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426   done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7432 if test -n "$DSYMUTIL"; then
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7434 $as_echo "$DSYMUTIL" >&6; }
7435 else
7436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440
7441 fi
7442 if test -z "$ac_cv_prog_DSYMUTIL"; then
7443   ac_ct_DSYMUTIL=$DSYMUTIL
7444   # Extract the first word of "dsymutil", so it can be a program name with args.
7445 set dummy dsymutil; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7449   $as_echo_n "(cached) " >&6
7450 else
7451   if test -n "$ac_ct_DSYMUTIL"; then
7452   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459     for ac_exec_ext in '' $ac_executable_extensions; do
7460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466   done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7472 if test -n "$ac_ct_DSYMUTIL"; then
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7474 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7475 else
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480   if test "x$ac_ct_DSYMUTIL" = x; then
7481     DSYMUTIL=":"
7482   else
7483     case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned=yes ;;
7488 esac
7489     DSYMUTIL=$ac_ct_DSYMUTIL
7490   fi
7491 else
7492   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7493 fi
7494
7495     if test -n "$ac_tool_prefix"; then
7496   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7497 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   if test -n "$NMEDIT"; then
7504   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511     for ac_exec_ext in '' $ac_executable_extensions; do
7512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518   done
7519 IFS=$as_save_IFS
7520
7521 fi
7522 fi
7523 NMEDIT=$ac_cv_prog_NMEDIT
7524 if test -n "$NMEDIT"; then
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7526 $as_echo "$NMEDIT" >&6; }
7527 else
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 fi
7531
7532
7533 fi
7534 if test -z "$ac_cv_prog_NMEDIT"; then
7535   ac_ct_NMEDIT=$NMEDIT
7536   # Extract the first word of "nmedit", so it can be a program name with args.
7537 set dummy nmedit; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543   if test -n "$ac_ct_NMEDIT"; then
7544   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551     for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558   done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7564 if test -n "$ac_ct_NMEDIT"; then
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7566 $as_echo "$ac_ct_NMEDIT" >&6; }
7567 else
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571
7572   if test "x$ac_ct_NMEDIT" = x; then
7573     NMEDIT=":"
7574   else
7575     case $cross_compiling:$ac_tool_warned in
7576 yes:)
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579 ac_tool_warned=yes ;;
7580 esac
7581     NMEDIT=$ac_ct_NMEDIT
7582   fi
7583 else
7584   NMEDIT="$ac_cv_prog_NMEDIT"
7585 fi
7586
7587     if test -n "$ac_tool_prefix"; then
7588   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7589 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if test "${ac_cv_prog_LIPO+set}" = set; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   if test -n "$LIPO"; then
7596   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 LIPO=$ac_cv_prog_LIPO
7616 if test -n "$LIPO"; then
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7618 $as_echo "$LIPO" >&6; }
7619 else
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624
7625 fi
7626 if test -z "$ac_cv_prog_LIPO"; then
7627   ac_ct_LIPO=$LIPO
7628   # Extract the first word of "lipo", so it can be a program name with args.
7629 set dummy lipo; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   if test -n "$ac_ct_LIPO"; then
7636   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643     for ac_exec_ext in '' $ac_executable_extensions; do
7644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645     ac_cv_prog_ac_ct_LIPO="lipo"
7646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650   done
7651 IFS=$as_save_IFS
7652
7653 fi
7654 fi
7655 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7656 if test -n "$ac_ct_LIPO"; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7658 $as_echo "$ac_ct_LIPO" >&6; }
7659 else
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663
7664   if test "x$ac_ct_LIPO" = x; then
7665     LIPO=":"
7666   else
7667     case $cross_compiling:$ac_tool_warned in
7668 yes:)
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671 ac_tool_warned=yes ;;
7672 esac
7673     LIPO=$ac_ct_LIPO
7674   fi
7675 else
7676   LIPO="$ac_cv_prog_LIPO"
7677 fi
7678
7679     if test -n "$ac_tool_prefix"; then
7680   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7681 set dummy ${ac_tool_prefix}otool; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7685   $as_echo_n "(cached) " >&6
7686 else
7687   if test -n "$OTOOL"; then
7688   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695     for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702   done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 OTOOL=$ac_cv_prog_OTOOL
7708 if test -n "$OTOOL"; then
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7710 $as_echo "$OTOOL" >&6; }
7711 else
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715
7716
7717 fi
7718 if test -z "$ac_cv_prog_OTOOL"; then
7719   ac_ct_OTOOL=$OTOOL
7720   # Extract the first word of "otool", so it can be a program name with args.
7721 set dummy otool; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   if test -n "$ac_ct_OTOOL"; then
7728   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735     for ac_exec_ext in '' $ac_executable_extensions; do
7736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737     ac_cv_prog_ac_ct_OTOOL="otool"
7738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742   done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7748 if test -n "$ac_ct_OTOOL"; then
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7750 $as_echo "$ac_ct_OTOOL" >&6; }
7751 else
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756   if test "x$ac_ct_OTOOL" = x; then
7757     OTOOL=":"
7758   else
7759     case $cross_compiling:$ac_tool_warned in
7760 yes:)
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7763 ac_tool_warned=yes ;;
7764 esac
7765     OTOOL=$ac_ct_OTOOL
7766   fi
7767 else
7768   OTOOL="$ac_cv_prog_OTOOL"
7769 fi
7770
7771     if test -n "$ac_tool_prefix"; then
7772   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7773 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   if test -n "$OTOOL64"; then
7780   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 OTOOL64=$ac_cv_prog_OTOOL64
7800 if test -n "$OTOOL64"; then
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7802 $as_echo "$OTOOL64" >&6; }
7803 else
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809 fi
7810 if test -z "$ac_cv_prog_OTOOL64"; then
7811   ac_ct_OTOOL64=$OTOOL64
7812   # Extract the first word of "otool64", so it can be a program name with args.
7813 set dummy otool64; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$ac_ct_OTOOL64"; then
7820   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827     for ac_exec_ext in '' $ac_executable_extensions; do
7828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829     ac_cv_prog_ac_ct_OTOOL64="otool64"
7830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834   done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7840 if test -n "$ac_ct_OTOOL64"; then
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7842 $as_echo "$ac_ct_OTOOL64" >&6; }
7843 else
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848   if test "x$ac_ct_OTOOL64" = x; then
7849     OTOOL64=":"
7850   else
7851     case $cross_compiling:$ac_tool_warned in
7852 yes:)
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7855 ac_tool_warned=yes ;;
7856 esac
7857     OTOOL64=$ac_ct_OTOOL64
7858   fi
7859 else
7860   OTOOL64="$ac_cv_prog_OTOOL64"
7861 fi
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7890 $as_echo_n "checking for -single_module linker flag... " >&6; }
7891 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   lt_cv_apple_cc_single_mod=no
7895       if test -z "${LT_MULTI_MODULE}"; then
7896         # By default we will add the -single_module flag. You can override
7897         # by either setting the environment variable LT_MULTI_MODULE
7898         # non-empty at configure time, or by adding -multi_module to the
7899         # link flags.
7900         rm -rf libconftest.dylib*
7901         echo "int foo(void){return 1;}" > conftest.c
7902         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7903 -dynamiclib -Wl,-single_module conftest.c" >&5
7904         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7905           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7906         _lt_result=$?
7907         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7908           lt_cv_apple_cc_single_mod=yes
7909         else
7910           cat conftest.err >&5
7911         fi
7912         rm -rf libconftest.dylib*
7913         rm -f conftest.*
7914       fi
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7917 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7919 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7920 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   lt_cv_ld_exported_symbols_list=no
7924       save_LDFLAGS=$LDFLAGS
7925       echo "_main" > conftest.sym
7926       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7927       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h.  */
7929
7930 int
7931 main ()
7932 {
7933
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_link "$LINENO"; then :
7939   lt_cv_ld_exported_symbols_list=yes
7940 else
7941   lt_cv_ld_exported_symbols_list=no
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext \
7944     conftest$ac_exeext conftest.$ac_ext
7945         LDFLAGS="$save_LDFLAGS"
7946
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7949 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7951 $as_echo_n "checking for -force_load linker flag... " >&6; }
7952 if test "${lt_cv_ld_force_load+set}" = set; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   lt_cv_ld_force_load=no
7956       cat > conftest.c << _LT_EOF
7957 int forced_loaded() { return 2;}
7958 _LT_EOF
7959       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7960       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7961       echo "$AR cru libconftest.a conftest.o" >&5
7962       $AR cru libconftest.a conftest.o 2>&5
7963       cat > conftest.c << _LT_EOF
7964 int main() { return 0;}
7965 _LT_EOF
7966       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7967       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7968       _lt_result=$?
7969       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7970         lt_cv_ld_force_load=yes
7971       else
7972         cat conftest.err >&5
7973       fi
7974         rm -f conftest.err libconftest.a conftest conftest.c
7975         rm -rf conftest.dSYM
7976
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7979 $as_echo "$lt_cv_ld_force_load" >&6; }
7980     case $host_os in
7981     rhapsody* | darwin1.[012])
7982       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7983     darwin1.*)
7984       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7985     darwin*) # darwin 5.x on
7986       # if running on 10.5 or later, the deployment target defaults
7987       # to the OS version, if on x86, and 10.4, the deployment
7988       # target defaults to 10.4. Don't you love it?
7989       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7990         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7991           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7992         10.[012]*)
7993           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7994         10.*)
7995           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7996       esac
7997     ;;
7998   esac
7999     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8000       _lt_dar_single_mod='$single_module'
8001     fi
8002     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8003       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8004     else
8005       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8006     fi
8007     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8008       _lt_dsymutil='~$DSYMUTIL $lib || :'
8009     else
8010       _lt_dsymutil=
8011     fi
8012     ;;
8013   esac
8014
8015 ac_ext=c
8016 ac_cpp='$CPP $CPPFLAGS'
8017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8021 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8022 # On Suns, sometimes $CPP names a directory.
8023 if test -n "$CPP" && test -d "$CPP"; then
8024   CPP=
8025 fi
8026 if test -z "$CPP"; then
8027   if test "${ac_cv_prog_CPP+set}" = set; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030       # Double quotes because CPP needs to be expanded
8031     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8032     do
8033       ac_preproc_ok=false
8034 for ac_c_preproc_warn_flag in '' yes
8035 do
8036   # Use a header file that comes with gcc, so configuring glibc
8037   # with a fresh cross-compiler works.
8038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039   # <limits.h> exists even on freestanding compilers.
8040   # On the NeXT, cc -E runs the code through the compiler's parser,
8041   # not just through cpp. "Syntax error" is here to catch this case.
8042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h.  */
8044 #ifdef __STDC__
8045 # include <limits.h>
8046 #else
8047 # include <assert.h>
8048 #endif
8049                      Syntax error
8050 _ACEOF
8051 if ac_fn_c_try_cpp "$LINENO"; then :
8052
8053 else
8054   # Broken: fails on valid input.
8055 continue
8056 fi
8057 rm -f conftest.err conftest.$ac_ext
8058
8059   # OK, works on sane cases.  Now check whether nonexistent headers
8060   # can be detected and how.
8061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h.  */
8063 #include <ac_nonexistent.h>
8064 _ACEOF
8065 if ac_fn_c_try_cpp "$LINENO"; then :
8066   # Broken: success on invalid input.
8067 continue
8068 else
8069   # Passes both tests.
8070 ac_preproc_ok=:
8071 break
8072 fi
8073 rm -f conftest.err conftest.$ac_ext
8074
8075 done
8076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8077 rm -f conftest.err conftest.$ac_ext
8078 if $ac_preproc_ok; then :
8079   break
8080 fi
8081
8082     done
8083     ac_cv_prog_CPP=$CPP
8084
8085 fi
8086   CPP=$ac_cv_prog_CPP
8087 else
8088   ac_cv_prog_CPP=$CPP
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8091 $as_echo "$CPP" >&6; }
8092 ac_preproc_ok=false
8093 for ac_c_preproc_warn_flag in '' yes
8094 do
8095   # Use a header file that comes with gcc, so configuring glibc
8096   # with a fresh cross-compiler works.
8097   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098   # <limits.h> exists even on freestanding compilers.
8099   # On the NeXT, cc -E runs the code through the compiler's parser,
8100   # not just through cpp. "Syntax error" is here to catch this case.
8101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h.  */
8103 #ifdef __STDC__
8104 # include <limits.h>
8105 #else
8106 # include <assert.h>
8107 #endif
8108                      Syntax error
8109 _ACEOF
8110 if ac_fn_c_try_cpp "$LINENO"; then :
8111
8112 else
8113   # Broken: fails on valid input.
8114 continue
8115 fi
8116 rm -f conftest.err conftest.$ac_ext
8117
8118   # OK, works on sane cases.  Now check whether nonexistent headers
8119   # can be detected and how.
8120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h.  */
8122 #include <ac_nonexistent.h>
8123 _ACEOF
8124 if ac_fn_c_try_cpp "$LINENO"; then :
8125   # Broken: success on invalid input.
8126 continue
8127 else
8128   # Passes both tests.
8129 ac_preproc_ok=:
8130 break
8131 fi
8132 rm -f conftest.err conftest.$ac_ext
8133
8134 done
8135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8136 rm -f conftest.err conftest.$ac_ext
8137 if $ac_preproc_ok; then :
8138
8139 else
8140   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8142 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8143 See \`config.log' for more details." "$LINENO" 5; }
8144 fi
8145
8146 ac_ext=c
8147 ac_cpp='$CPP $CPPFLAGS'
8148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8151
8152
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8154 $as_echo_n "checking for ANSI C header files... " >&6; }
8155 if test "${ac_cv_header_stdc+set}" = set; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h.  */
8160 #include <stdlib.h>
8161 #include <stdarg.h>
8162 #include <string.h>
8163 #include <float.h>
8164
8165 int
8166 main ()
8167 {
8168
8169   ;
8170   return 0;
8171 }
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"; then :
8174   ac_cv_header_stdc=yes
8175 else
8176   ac_cv_header_stdc=no
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179
8180 if test $ac_cv_header_stdc = yes; then
8181   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h.  */
8184 #include <string.h>
8185
8186 _ACEOF
8187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8188   $EGREP "memchr" >/dev/null 2>&1; then :
8189
8190 else
8191   ac_cv_header_stdc=no
8192 fi
8193 rm -f conftest*
8194
8195 fi
8196
8197 if test $ac_cv_header_stdc = yes; then
8198   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h.  */
8201 #include <stdlib.h>
8202
8203 _ACEOF
8204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8205   $EGREP "free" >/dev/null 2>&1; then :
8206
8207 else
8208   ac_cv_header_stdc=no
8209 fi
8210 rm -f conftest*
8211
8212 fi
8213
8214 if test $ac_cv_header_stdc = yes; then
8215   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8216   if test "$cross_compiling" = yes; then :
8217   :
8218 else
8219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h.  */
8221 #include <ctype.h>
8222 #include <stdlib.h>
8223 #if ((' ' & 0x0FF) == 0x020)
8224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8226 #else
8227 # define ISLOWER(c) \
8228                    (('a' <= (c) && (c) <= 'i') \
8229                      || ('j' <= (c) && (c) <= 'r') \
8230                      || ('s' <= (c) && (c) <= 'z'))
8231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8232 #endif
8233
8234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8235 int
8236 main ()
8237 {
8238   int i;
8239   for (i = 0; i < 256; i++)
8240     if (XOR (islower (i), ISLOWER (i))
8241         || toupper (i) != TOUPPER (i))
8242       return 2;
8243   return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_run "$LINENO"; then :
8247
8248 else
8249   ac_cv_header_stdc=no
8250 fi
8251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8252   conftest.$ac_objext conftest.beam conftest.$ac_ext
8253 fi
8254
8255 fi
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8258 $as_echo "$ac_cv_header_stdc" >&6; }
8259 if test $ac_cv_header_stdc = yes; then
8260
8261 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8262
8263 fi
8264
8265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8266 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8267                   inttypes.h stdint.h unistd.h
8268 do :
8269   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8270 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8271 "
8272 eval as_val=\$$as_ac_Header
8273    if test "x$as_val" = x""yes; then :
8274   cat >>confdefs.h <<_ACEOF
8275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8276 _ACEOF
8277
8278 fi
8279
8280 done
8281
8282
8283 for ac_header in dlfcn.h
8284 do :
8285   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8286 "
8287 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8288   cat >>confdefs.h <<_ACEOF
8289 #define HAVE_DLFCN_H 1
8290 _ACEOF
8291
8292 fi
8293
8294 done
8295
8296
8297
8298
8299
8300
8301 # Set options
8302
8303
8304
8305         enable_dlopen=no
8306
8307
8308   enable_win32_dll=no
8309
8310
8311             # Check whether --enable-shared was given.
8312 if test "${enable_shared+set}" = set; then :
8313   enableval=$enable_shared; p=${PACKAGE-default}
8314     case $enableval in
8315     yes) enable_shared=yes ;;
8316     no) enable_shared=no ;;
8317     *)
8318       enable_shared=no
8319       # Look at the argument we got.  We use all the common list separators.
8320       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8321       for pkg in $enableval; do
8322         IFS="$lt_save_ifs"
8323         if test "X$pkg" = "X$p"; then
8324           enable_shared=yes
8325         fi
8326       done
8327       IFS="$lt_save_ifs"
8328       ;;
8329     esac
8330 else
8331   enable_shared=yes
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342   # Check whether --enable-static was given.
8343 if test "${enable_static+set}" = set; then :
8344   enableval=$enable_static; p=${PACKAGE-default}
8345     case $enableval in
8346     yes) enable_static=yes ;;
8347     no) enable_static=no ;;
8348     *)
8349      enable_static=no
8350       # Look at the argument we got.  We use all the common list separators.
8351       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8352       for pkg in $enableval; do
8353         IFS="$lt_save_ifs"
8354         if test "X$pkg" = "X$p"; then
8355           enable_static=yes
8356         fi
8357       done
8358       IFS="$lt_save_ifs"
8359       ;;
8360     esac
8361 else
8362   enable_static=yes
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 # Check whether --with-pic was given.
8375 if test "${with_pic+set}" = set; then :
8376   withval=$with_pic; pic_mode="$withval"
8377 else
8378   pic_mode=default
8379 fi
8380
8381
8382 test -z "$pic_mode" && pic_mode=default
8383
8384
8385
8386
8387
8388
8389
8390   # Check whether --enable-fast-install was given.
8391 if test "${enable_fast_install+set}" = set; then :
8392   enableval=$enable_fast_install; p=${PACKAGE-default}
8393     case $enableval in
8394     yes) enable_fast_install=yes ;;
8395     no) enable_fast_install=no ;;
8396     *)
8397       enable_fast_install=no
8398       # Look at the argument we got.  We use all the common list separators.
8399       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8400       for pkg in $enableval; do
8401         IFS="$lt_save_ifs"
8402         if test "X$pkg" = "X$p"; then
8403           enable_fast_install=yes
8404         fi
8405       done
8406       IFS="$lt_save_ifs"
8407       ;;
8408     esac
8409 else
8410   enable_fast_install=yes
8411 fi
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423 # This can be used to rebuild libtool when needed
8424 LIBTOOL_DEPS="$ltmain"
8425
8426 # Always use our own libtool.
8427 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454 test -z "$LN_S" && LN_S="ln -s"
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469 if test -n "${ZSH_VERSION+set}" ; then
8470    setopt NO_GLOB_SUBST
8471 fi
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8474 $as_echo_n "checking for objdir... " >&6; }
8475 if test "${lt_cv_objdir+set}" = set; then :
8476   $as_echo_n "(cached) " >&6
8477 else
8478   rm -f .libs 2>/dev/null
8479 mkdir .libs 2>/dev/null
8480 if test -d .libs; then
8481   lt_cv_objdir=.libs
8482 else
8483   # MS-DOS does not allow filenames that begin with a dot.
8484   lt_cv_objdir=_libs
8485 fi
8486 rmdir .libs 2>/dev/null
8487 fi
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8489 $as_echo "$lt_cv_objdir" >&6; }
8490 objdir=$lt_cv_objdir
8491
8492
8493
8494
8495
8496 cat >>confdefs.h <<_ACEOF
8497 #define LT_OBJDIR "$lt_cv_objdir/"
8498 _ACEOF
8499
8500
8501
8502
8503 case $host_os in
8504 aix3*)
8505   # AIX sometimes has problems with the GCC collect2 program.  For some
8506   # reason, if we set the COLLECT_NAMES environment variable, the problems
8507   # vanish in a puff of smoke.
8508   if test "X${COLLECT_NAMES+set}" != Xset; then
8509     COLLECT_NAMES=
8510     export COLLECT_NAMES
8511   fi
8512   ;;
8513 esac
8514
8515 # Global variables:
8516 ofile=libtool
8517 can_build_shared=yes
8518
8519 # All known linkers require a `.a' archive for static linking (except MSVC,
8520 # which needs '.lib').
8521 libext=a
8522
8523 with_gnu_ld="$lt_cv_prog_gnu_ld"
8524
8525 old_CC="$CC"
8526 old_CFLAGS="$CFLAGS"
8527
8528 # Set sane defaults for various variables
8529 test -z "$CC" && CC=cc
8530 test -z "$LTCC" && LTCC=$CC
8531 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8532 test -z "$LD" && LD=ld
8533 test -z "$ac_objext" && ac_objext=o
8534
8535 for cc_temp in $compiler""; do
8536   case $cc_temp in
8537     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8538     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8539     \-*) ;;
8540     *) break;;
8541   esac
8542 done
8543 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8544
8545
8546 # Only perform the check for file, if the check method requires it
8547 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8548 case $deplibs_check_method in
8549 file_magic*)
8550   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8552 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8553 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   case $MAGIC_CMD in
8557 [\\/*] |  ?:[\\/]*)
8558   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8559   ;;
8560 *)
8561   lt_save_MAGIC_CMD="$MAGIC_CMD"
8562   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8563   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8564   for ac_dir in $ac_dummy; do
8565     IFS="$lt_save_ifs"
8566     test -z "$ac_dir" && ac_dir=.
8567     if test -f $ac_dir/${ac_tool_prefix}file; then
8568       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8569       if test -n "$file_magic_test_file"; then
8570         case $deplibs_check_method in
8571         "file_magic "*)
8572           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8573           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8574           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8575             $EGREP "$file_magic_regex" > /dev/null; then
8576             :
8577           else
8578             cat <<_LT_EOF 1>&2
8579
8580 *** Warning: the command libtool uses to detect shared libraries,
8581 *** $file_magic_cmd, produces output that libtool cannot recognize.
8582 *** The result is that libtool may fail to recognize shared libraries
8583 *** as such.  This will affect the creation of libtool libraries that
8584 *** depend on shared libraries, but programs linked with such libtool
8585 *** libraries will work regardless of this problem.  Nevertheless, you
8586 *** may want to report the problem to your system manager and/or to
8587 *** bug-libtool@gnu.org
8588
8589 _LT_EOF
8590           fi ;;
8591         esac
8592       fi
8593       break
8594     fi
8595   done
8596   IFS="$lt_save_ifs"
8597   MAGIC_CMD="$lt_save_MAGIC_CMD"
8598   ;;
8599 esac
8600 fi
8601
8602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8603 if test -n "$MAGIC_CMD"; then
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8605 $as_echo "$MAGIC_CMD" >&6; }
8606 else
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610
8611
8612
8613
8614
8615 if test -z "$lt_cv_path_MAGIC_CMD"; then
8616   if test -n "$ac_tool_prefix"; then
8617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8618 $as_echo_n "checking for file... " >&6; }
8619 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   case $MAGIC_CMD in
8623 [\\/*] |  ?:[\\/]*)
8624   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8625   ;;
8626 *)
8627   lt_save_MAGIC_CMD="$MAGIC_CMD"
8628   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8629   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8630   for ac_dir in $ac_dummy; do
8631     IFS="$lt_save_ifs"
8632     test -z "$ac_dir" && ac_dir=.
8633     if test -f $ac_dir/file; then
8634       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8635       if test -n "$file_magic_test_file"; then
8636         case $deplibs_check_method in
8637         "file_magic "*)
8638           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8639           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8640           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8641             $EGREP "$file_magic_regex" > /dev/null; then
8642             :
8643           else
8644             cat <<_LT_EOF 1>&2
8645
8646 *** Warning: the command libtool uses to detect shared libraries,
8647 *** $file_magic_cmd, produces output that libtool cannot recognize.
8648 *** The result is that libtool may fail to recognize shared libraries
8649 *** as such.  This will affect the creation of libtool libraries that
8650 *** depend on shared libraries, but programs linked with such libtool
8651 *** libraries will work regardless of this problem.  Nevertheless, you
8652 *** may want to report the problem to your system manager and/or to
8653 *** bug-libtool@gnu.org
8654
8655 _LT_EOF
8656           fi ;;
8657         esac
8658       fi
8659       break
8660     fi
8661   done
8662   IFS="$lt_save_ifs"
8663   MAGIC_CMD="$lt_save_MAGIC_CMD"
8664   ;;
8665 esac
8666 fi
8667
8668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8669 if test -n "$MAGIC_CMD"; then
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8671 $as_echo "$MAGIC_CMD" >&6; }
8672 else
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674 $as_echo "no" >&6; }
8675 fi
8676
8677
8678   else
8679     MAGIC_CMD=:
8680   fi
8681 fi
8682
8683   fi
8684   ;;
8685 esac
8686
8687 # Use C for the default configuration in the libtool script
8688
8689 lt_save_CC="$CC"
8690 ac_ext=c
8691 ac_cpp='$CPP $CPPFLAGS'
8692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8695
8696
8697 # Source file extension for C test sources.
8698 ac_ext=c
8699
8700 # Object file extension for compiled C test sources.
8701 objext=o
8702 objext=$objext
8703
8704 # Code to be used in simple compile tests
8705 lt_simple_compile_test_code="int some_variable = 0;"
8706
8707 # Code to be used in simple link tests
8708 lt_simple_link_test_code='int main(){return(0);}'
8709
8710
8711
8712
8713
8714
8715
8716 # If no C compiler was specified, use CC.
8717 LTCC=${LTCC-"$CC"}
8718
8719 # If no C compiler flags were specified, use CFLAGS.
8720 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8721
8722 # Allow CC to be a program name with arguments.
8723 compiler=$CC
8724
8725 # Save the default compiler, since it gets overwritten when the other
8726 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8727 compiler_DEFAULT=$CC
8728
8729 # save warnings/boilerplate of simple test code
8730 ac_outfile=conftest.$ac_objext
8731 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8732 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8733 _lt_compiler_boilerplate=`cat conftest.err`
8734 $RM conftest*
8735
8736 ac_outfile=conftest.$ac_objext
8737 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8738 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8739 _lt_linker_boilerplate=`cat conftest.err`
8740 $RM -r conftest*
8741
8742
8743 ## CAVEAT EMPTOR:
8744 ## There is no encapsulation within the following macros, do not change
8745 ## the running order or otherwise move them around unless you know exactly
8746 ## what you are doing...
8747 if test -n "$compiler"; then
8748
8749 lt_prog_compiler_no_builtin_flag=
8750
8751 if test "$GCC" = yes; then
8752   case $cc_basename in
8753   nvcc*)
8754     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8755   *)
8756     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8757   esac
8758
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8760 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8761 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8762   $as_echo_n "(cached) " >&6
8763 else
8764   lt_cv_prog_compiler_rtti_exceptions=no
8765    ac_outfile=conftest.$ac_objext
8766    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8767    lt_compiler_flag="-fno-rtti -fno-exceptions"
8768    # Insert the option either (1) after the last *FLAGS variable, or
8769    # (2) before a word containing "conftest.", or (3) at the end.
8770    # Note that $ac_compile itself does not contain backslashes and begins
8771    # with a dollar sign (not a hyphen), so the echo should work correctly.
8772    # The option is referenced via a variable to avoid confusing sed.
8773    lt_compile=`echo "$ac_compile" | $SED \
8774    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8775    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8776    -e 's:$: $lt_compiler_flag:'`
8777    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8778    (eval "$lt_compile" 2>conftest.err)
8779    ac_status=$?
8780    cat conftest.err >&5
8781    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782    if (exit $ac_status) && test -s "$ac_outfile"; then
8783      # The compiler can only warn and ignore the option if not recognized
8784      # So say no if there are warnings other than the usual output.
8785      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8786      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8787      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8788        lt_cv_prog_compiler_rtti_exceptions=yes
8789      fi
8790    fi
8791    $RM conftest*
8792
8793 fi
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8795 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8796
8797 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8798     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8799 else
8800     :
8801 fi
8802
8803 fi
8804
8805
8806
8807
8808
8809
8810   lt_prog_compiler_wl=
8811 lt_prog_compiler_pic=
8812 lt_prog_compiler_static=
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8815 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8816
8817   if test "$GCC" = yes; then
8818     lt_prog_compiler_wl='-Wl,'
8819     lt_prog_compiler_static='-static'
8820
8821     case $host_os in
8822       aix*)
8823       # All AIX code is PIC.
8824       if test "$host_cpu" = ia64; then
8825         # AIX 5 now supports IA64 processor
8826         lt_prog_compiler_static='-Bstatic'
8827       fi
8828       ;;
8829
8830     amigaos*)
8831       case $host_cpu in
8832       powerpc)
8833             # see comment about AmigaOS4 .so support
8834             lt_prog_compiler_pic='-fPIC'
8835         ;;
8836       m68k)
8837             # FIXME: we need at least 68020 code to build shared libraries, but
8838             # adding the `-m68020' flag to GCC prevents building anything better,
8839             # like `-m68040'.
8840             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8841         ;;
8842       esac
8843       ;;
8844
8845     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8846       # PIC is the default for these OSes.
8847       ;;
8848
8849     mingw* | cygwin* | pw32* | os2* | cegcc*)
8850       # This hack is so that the source file can tell whether it is being
8851       # built for inclusion in a dll (and should export symbols for example).
8852       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8853       # (--disable-auto-import) libraries
8854       lt_prog_compiler_pic='-DDLL_EXPORT'
8855       ;;
8856
8857     darwin* | rhapsody*)
8858       # PIC is the default on this platform
8859       # Common symbols not allowed in MH_DYLIB files
8860       lt_prog_compiler_pic='-fno-common'
8861       ;;
8862
8863     haiku*)
8864       # PIC is the default for Haiku.
8865       # The "-static" flag exists, but is broken.
8866       lt_prog_compiler_static=
8867       ;;
8868
8869     hpux*)
8870       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8871       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8872       # sets the default TLS model and affects inlining.
8873       case $host_cpu in
8874       hppa*64*)
8875         # +Z the default
8876         ;;
8877       *)
8878         lt_prog_compiler_pic='-fPIC'
8879         ;;
8880       esac
8881       ;;
8882
8883     interix[3-9]*)
8884       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8885       # Instead, we relocate shared libraries at runtime.
8886       ;;
8887
8888     msdosdjgpp*)
8889       # Just because we use GCC doesn't mean we suddenly get shared libraries
8890       # on systems that don't support them.
8891       lt_prog_compiler_can_build_shared=no
8892       enable_shared=no
8893       ;;
8894
8895     *nto* | *qnx*)
8896       # QNX uses GNU C++, but need to define -shared option too, otherwise
8897       # it will coredump.
8898       lt_prog_compiler_pic='-fPIC -shared'
8899       ;;
8900
8901     sysv4*MP*)
8902       if test -d /usr/nec; then
8903         lt_prog_compiler_pic=-Kconform_pic
8904       fi
8905       ;;
8906
8907     *)
8908       lt_prog_compiler_pic='-fPIC'
8909       ;;
8910     esac
8911
8912     case $cc_basename in
8913     nvcc*) # Cuda Compiler Driver 2.2
8914       lt_prog_compiler_wl='-Xlinker '
8915       lt_prog_compiler_pic='-Xcompiler -fPIC'
8916       ;;
8917     esac
8918   else
8919     # PORTME Check for flag to pass linker flags through the system compiler.
8920     case $host_os in
8921     aix*)
8922       lt_prog_compiler_wl='-Wl,'
8923       if test "$host_cpu" = ia64; then
8924         # AIX 5 now supports IA64 processor
8925         lt_prog_compiler_static='-Bstatic'
8926       else
8927         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8928       fi
8929       ;;
8930
8931     mingw* | cygwin* | pw32* | os2* | cegcc*)
8932       # This hack is so that the source file can tell whether it is being
8933       # built for inclusion in a dll (and should export symbols for example).
8934       lt_prog_compiler_pic='-DDLL_EXPORT'
8935       ;;
8936
8937     hpux9* | hpux10* | hpux11*)
8938       lt_prog_compiler_wl='-Wl,'
8939       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8940       # not for PA HP-UX.
8941       case $host_cpu in
8942       hppa*64*|ia64*)
8943         # +Z the default
8944         ;;
8945       *)
8946         lt_prog_compiler_pic='+Z'
8947         ;;
8948       esac
8949       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8950       lt_prog_compiler_static='${wl}-a ${wl}archive'
8951       ;;
8952
8953     irix5* | irix6* | nonstopux*)
8954       lt_prog_compiler_wl='-Wl,'
8955       # PIC (with -KPIC) is the default.
8956       lt_prog_compiler_static='-non_shared'
8957       ;;
8958
8959     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8960       case $cc_basename in
8961       # old Intel for x86_64 which still supported -KPIC.
8962       ecc*)
8963         lt_prog_compiler_wl='-Wl,'
8964         lt_prog_compiler_pic='-KPIC'
8965         lt_prog_compiler_static='-static'
8966         ;;
8967       # icc used to be incompatible with GCC.
8968       # ICC 10 doesn't accept -KPIC any more.
8969       icc* | ifort*)
8970         lt_prog_compiler_wl='-Wl,'
8971         lt_prog_compiler_pic='-fPIC'
8972         lt_prog_compiler_static='-static'
8973         ;;
8974       # Lahey Fortran 8.1.
8975       lf95*)
8976         lt_prog_compiler_wl='-Wl,'
8977         lt_prog_compiler_pic='--shared'
8978         lt_prog_compiler_static='--static'
8979         ;;
8980       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8981         # Portland Group compilers (*not* the Pentium gcc compiler,
8982         # which looks to be a dead project)
8983         lt_prog_compiler_wl='-Wl,'
8984         lt_prog_compiler_pic='-fpic'
8985         lt_prog_compiler_static='-Bstatic'
8986         ;;
8987       ccc*)
8988         lt_prog_compiler_wl='-Wl,'
8989         # All Alpha code is PIC.
8990         lt_prog_compiler_static='-non_shared'
8991         ;;
8992       xl* | bgxl* | bgf* | mpixl*)
8993         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8994         lt_prog_compiler_wl='-Wl,'
8995         lt_prog_compiler_pic='-qpic'
8996         lt_prog_compiler_static='-qstaticlink'
8997         ;;
8998       *)
8999         case `$CC -V 2>&1 | sed 5q` in
9000         *Sun\ F* | *Sun*Fortran*)
9001           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9002           lt_prog_compiler_pic='-KPIC'
9003           lt_prog_compiler_static='-Bstatic'
9004           lt_prog_compiler_wl=''
9005           ;;
9006         *Sun\ C*)
9007           # Sun C 5.9
9008           lt_prog_compiler_pic='-KPIC'
9009           lt_prog_compiler_static='-Bstatic'
9010           lt_prog_compiler_wl='-Wl,'
9011           ;;
9012         esac
9013         ;;
9014       esac
9015       ;;
9016
9017     newsos6)
9018       lt_prog_compiler_pic='-KPIC'
9019       lt_prog_compiler_static='-Bstatic'
9020       ;;
9021
9022     *nto* | *qnx*)
9023       # QNX uses GNU C++, but need to define -shared option too, otherwise
9024       # it will coredump.
9025       lt_prog_compiler_pic='-fPIC -shared'
9026       ;;
9027
9028     osf3* | osf4* | osf5*)
9029       lt_prog_compiler_wl='-Wl,'
9030       # All OSF/1 code is PIC.
9031       lt_prog_compiler_static='-non_shared'
9032       ;;
9033
9034     rdos*)
9035       lt_prog_compiler_static='-non_shared'
9036       ;;
9037
9038     solaris*)
9039       lt_prog_compiler_pic='-KPIC'
9040       lt_prog_compiler_static='-Bstatic'
9041       case $cc_basename in
9042       f77* | f90* | f95*)
9043         lt_prog_compiler_wl='-Qoption ld ';;
9044       *)
9045         lt_prog_compiler_wl='-Wl,';;
9046       esac
9047       ;;
9048
9049     sunos4*)
9050       lt_prog_compiler_wl='-Qoption ld '
9051       lt_prog_compiler_pic='-PIC'
9052       lt_prog_compiler_static='-Bstatic'
9053       ;;
9054
9055     sysv4 | sysv4.2uw2* | sysv4.3*)
9056       lt_prog_compiler_wl='-Wl,'
9057       lt_prog_compiler_pic='-KPIC'
9058       lt_prog_compiler_static='-Bstatic'
9059       ;;
9060
9061     sysv4*MP*)
9062       if test -d /usr/nec ;then
9063         lt_prog_compiler_pic='-Kconform_pic'
9064         lt_prog_compiler_static='-Bstatic'
9065       fi
9066       ;;
9067
9068     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9069       lt_prog_compiler_wl='-Wl,'
9070       lt_prog_compiler_pic='-KPIC'
9071       lt_prog_compiler_static='-Bstatic'
9072       ;;
9073
9074     unicos*)
9075       lt_prog_compiler_wl='-Wl,'
9076       lt_prog_compiler_can_build_shared=no
9077       ;;
9078
9079     uts4*)
9080       lt_prog_compiler_pic='-pic'
9081       lt_prog_compiler_static='-Bstatic'
9082       ;;
9083
9084     *)
9085       lt_prog_compiler_can_build_shared=no
9086       ;;
9087     esac
9088   fi
9089
9090 case $host_os in
9091   # For platforms which do not support PIC, -DPIC is meaningless:
9092   *djgpp*)
9093     lt_prog_compiler_pic=
9094     ;;
9095   *)
9096     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9097     ;;
9098 esac
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9100 $as_echo "$lt_prog_compiler_pic" >&6; }
9101
9102
9103
9104
9105
9106
9107 #
9108 # Check to make sure the PIC flag actually works.
9109 #
9110 if test -n "$lt_prog_compiler_pic"; then
9111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9112 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9113 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9114   $as_echo_n "(cached) " >&6
9115 else
9116   lt_cv_prog_compiler_pic_works=no
9117    ac_outfile=conftest.$ac_objext
9118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9119    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9120    # Insert the option either (1) after the last *FLAGS variable, or
9121    # (2) before a word containing "conftest.", or (3) at the end.
9122    # Note that $ac_compile itself does not contain backslashes and begins
9123    # with a dollar sign (not a hyphen), so the echo should work correctly.
9124    # The option is referenced via a variable to avoid confusing sed.
9125    lt_compile=`echo "$ac_compile" | $SED \
9126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9128    -e 's:$: $lt_compiler_flag:'`
9129    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9130    (eval "$lt_compile" 2>conftest.err)
9131    ac_status=$?
9132    cat conftest.err >&5
9133    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134    if (exit $ac_status) && test -s "$ac_outfile"; then
9135      # The compiler can only warn and ignore the option if not recognized
9136      # So say no if there are warnings other than the usual output.
9137      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9138      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9139      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9140        lt_cv_prog_compiler_pic_works=yes
9141      fi
9142    fi
9143    $RM conftest*
9144
9145 fi
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9147 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9148
9149 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9150     case $lt_prog_compiler_pic in
9151      "" | " "*) ;;
9152      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9153      esac
9154 else
9155     lt_prog_compiler_pic=
9156      lt_prog_compiler_can_build_shared=no
9157 fi
9158
9159 fi
9160
9161
9162
9163
9164
9165
9166 #
9167 # Check to make sure the static flag actually works.
9168 #
9169 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9171 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9172 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9173   $as_echo_n "(cached) " >&6
9174 else
9175   lt_cv_prog_compiler_static_works=no
9176    save_LDFLAGS="$LDFLAGS"
9177    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9178    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9179    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9180      # The linker can only warn and ignore the option if not recognized
9181      # So say no if there are warnings
9182      if test -s conftest.err; then
9183        # Append any errors to the config.log.
9184        cat conftest.err 1>&5
9185        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9186        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9187        if diff conftest.exp conftest.er2 >/dev/null; then
9188          lt_cv_prog_compiler_static_works=yes
9189        fi
9190      else
9191        lt_cv_prog_compiler_static_works=yes
9192      fi
9193    fi
9194    $RM -r conftest*
9195    LDFLAGS="$save_LDFLAGS"
9196
9197 fi
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9199 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9200
9201 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9202     :
9203 else
9204     lt_prog_compiler_static=
9205 fi
9206
9207
9208
9209
9210
9211
9212
9213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9214 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9215 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9216   $as_echo_n "(cached) " >&6
9217 else
9218   lt_cv_prog_compiler_c_o=no
9219    $RM -r conftest 2>/dev/null
9220    mkdir conftest
9221    cd conftest
9222    mkdir out
9223    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224
9225    lt_compiler_flag="-o out/conftest2.$ac_objext"
9226    # Insert the option either (1) after the last *FLAGS variable, or
9227    # (2) before a word containing "conftest.", or (3) at the end.
9228    # Note that $ac_compile itself does not contain backslashes and begins
9229    # with a dollar sign (not a hyphen), so the echo should work correctly.
9230    lt_compile=`echo "$ac_compile" | $SED \
9231    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233    -e 's:$: $lt_compiler_flag:'`
9234    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235    (eval "$lt_compile" 2>out/conftest.err)
9236    ac_status=$?
9237    cat out/conftest.err >&5
9238    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9240    then
9241      # The compiler can only warn and ignore the option if not recognized
9242      # So say no if there are warnings
9243      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9244      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9245      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9246        lt_cv_prog_compiler_c_o=yes
9247      fi
9248    fi
9249    chmod u+w . 2>&5
9250    $RM conftest*
9251    # SGI C++ compiler will create directory out/ii_files/ for
9252    # template instantiation
9253    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9254    $RM out/* && rmdir out
9255    cd ..
9256    $RM -r conftest
9257    $RM conftest*
9258
9259 fi
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9261 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9262
9263
9264
9265
9266
9267
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9269 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9270 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9271   $as_echo_n "(cached) " >&6
9272 else
9273   lt_cv_prog_compiler_c_o=no
9274    $RM -r conftest 2>/dev/null
9275    mkdir conftest
9276    cd conftest
9277    mkdir out
9278    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9279
9280    lt_compiler_flag="-o out/conftest2.$ac_objext"
9281    # Insert the option either (1) after the last *FLAGS variable, or
9282    # (2) before a word containing "conftest.", or (3) at the end.
9283    # Note that $ac_compile itself does not contain backslashes and begins
9284    # with a dollar sign (not a hyphen), so the echo should work correctly.
9285    lt_compile=`echo "$ac_compile" | $SED \
9286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9288    -e 's:$: $lt_compiler_flag:'`
9289    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9290    (eval "$lt_compile" 2>out/conftest.err)
9291    ac_status=$?
9292    cat out/conftest.err >&5
9293    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9295    then
9296      # The compiler can only warn and ignore the option if not recognized
9297      # So say no if there are warnings
9298      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9299      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9300      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9301        lt_cv_prog_compiler_c_o=yes
9302      fi
9303    fi
9304    chmod u+w . 2>&5
9305    $RM conftest*
9306    # SGI C++ compiler will create directory out/ii_files/ for
9307    # template instantiation
9308    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9309    $RM out/* && rmdir out
9310    cd ..
9311    $RM -r conftest
9312    $RM conftest*
9313
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9316 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9317
9318
9319
9320
9321 hard_links="nottested"
9322 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9323   # do not overwrite the value of need_locks provided by the user
9324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9325 $as_echo_n "checking if we can lock with hard links... " >&6; }
9326   hard_links=yes
9327   $RM conftest*
9328   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9329   touch conftest.a
9330   ln conftest.a conftest.b 2>&5 || hard_links=no
9331   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9333 $as_echo "$hard_links" >&6; }
9334   if test "$hard_links" = no; then
9335     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9336 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9337     need_locks=warn
9338   fi
9339 else
9340   need_locks=no
9341 fi
9342
9343
9344
9345
9346
9347
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9349 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9350
9351   runpath_var=
9352   allow_undefined_flag=
9353   always_export_symbols=no
9354   archive_cmds=
9355   archive_expsym_cmds=
9356   compiler_needs_object=no
9357   enable_shared_with_static_runtimes=no
9358   export_dynamic_flag_spec=
9359   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9360   hardcode_automatic=no
9361   hardcode_direct=no
9362   hardcode_direct_absolute=no
9363   hardcode_libdir_flag_spec=
9364   hardcode_libdir_flag_spec_ld=
9365   hardcode_libdir_separator=
9366   hardcode_minus_L=no
9367   hardcode_shlibpath_var=unsupported
9368   inherit_rpath=no
9369   link_all_deplibs=unknown
9370   module_cmds=
9371   module_expsym_cmds=
9372   old_archive_from_new_cmds=
9373   old_archive_from_expsyms_cmds=
9374   thread_safe_flag_spec=
9375   whole_archive_flag_spec=
9376   # include_expsyms should be a list of space-separated symbols to be *always*
9377   # included in the symbol list
9378   include_expsyms=
9379   # exclude_expsyms can be an extended regexp of symbols to exclude
9380   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9381   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9382   # as well as any symbol that contains `d'.
9383   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9384   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9385   # platforms (ab)use it in PIC code, but their linkers get confused if
9386   # the symbol is explicitly referenced.  Since portable code cannot
9387   # rely on this symbol name, it's probably fine to never include it in
9388   # preloaded symbol tables.
9389   # Exclude shared library initialization/finalization symbols.
9390   extract_expsyms_cmds=
9391
9392   case $host_os in
9393   cygwin* | mingw* | pw32* | cegcc*)
9394     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9395     # When not using gcc, we currently assume that we are using
9396     # Microsoft Visual C++.
9397     if test "$GCC" != yes; then
9398       with_gnu_ld=no
9399     fi
9400     ;;
9401   interix*)
9402     # we just hope/assume this is gcc and not c89 (= MSVC++)
9403     with_gnu_ld=yes
9404     ;;
9405   openbsd*)
9406     with_gnu_ld=no
9407     ;;
9408   esac
9409
9410   ld_shlibs=yes
9411
9412   # On some targets, GNU ld is compatible enough with the native linker
9413   # that we're better off using the native interface for both.
9414   lt_use_gnu_ld_interface=no
9415   if test "$with_gnu_ld" = yes; then
9416     case $host_os in
9417       aix*)
9418         # The AIX port of GNU ld has always aspired to compatibility
9419         # with the native linker.  However, as the warning in the GNU ld
9420         # block says, versions before 2.19.5* couldn't really create working
9421         # shared libraries, regardless of the interface used.
9422         case `$LD -v 2>&1` in
9423           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9424           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9425           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9426           *)
9427             lt_use_gnu_ld_interface=yes
9428             ;;
9429         esac
9430         ;;
9431       *)
9432         lt_use_gnu_ld_interface=yes
9433         ;;
9434     esac
9435   fi
9436
9437   if test "$lt_use_gnu_ld_interface" = yes; then
9438     # If archive_cmds runs LD, not CC, wlarc should be empty
9439     wlarc='${wl}'
9440
9441     # Set some defaults for GNU ld with shared library support. These
9442     # are reset later if shared libraries are not supported. Putting them
9443     # here allows them to be overridden if necessary.
9444     runpath_var=LD_RUN_PATH
9445     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446     export_dynamic_flag_spec='${wl}--export-dynamic'
9447     # ancient GNU ld didn't support --whole-archive et. al.
9448     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9449       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9450     else
9451       whole_archive_flag_spec=
9452     fi
9453     supports_anon_versioning=no
9454     case `$LD -v 2>&1` in
9455       *GNU\ gold*) supports_anon_versioning=yes ;;
9456       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9457       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9458       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9459       *\ 2.11.*) ;; # other 2.11 versions
9460       *) supports_anon_versioning=yes ;;
9461     esac
9462
9463     # See if GNU ld supports shared libraries.
9464     case $host_os in
9465     aix[3-9]*)
9466       # On AIX/PPC, the GNU linker is very broken
9467       if test "$host_cpu" != ia64; then
9468         ld_shlibs=no
9469         cat <<_LT_EOF 1>&2
9470
9471 *** Warning: the GNU linker, at least up to release 2.19, is reported
9472 *** to be unable to reliably create shared libraries on AIX.
9473 *** Therefore, libtool is disabling shared libraries support.  If you
9474 *** really care for shared libraries, you may want to install binutils
9475 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9476 *** You will then need to restart the configuration process.
9477
9478 _LT_EOF
9479       fi
9480       ;;
9481
9482     amigaos*)
9483       case $host_cpu in
9484       powerpc)
9485             # see comment about AmigaOS4 .so support
9486             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487             archive_expsym_cmds=''
9488         ;;
9489       m68k)
9490             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)'
9491             hardcode_libdir_flag_spec='-L$libdir'
9492             hardcode_minus_L=yes
9493         ;;
9494       esac
9495       ;;
9496
9497     beos*)
9498       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9499         allow_undefined_flag=unsupported
9500         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9501         # support --undefined.  This deserves some investigation.  FIXME
9502         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503       else
9504         ld_shlibs=no
9505       fi
9506       ;;
9507
9508     cygwin* | mingw* | pw32* | cegcc*)
9509       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9510       # as there is no search path for DLLs.
9511       hardcode_libdir_flag_spec='-L$libdir'
9512       export_dynamic_flag_spec='${wl}--export-all-symbols'
9513       allow_undefined_flag=unsupported
9514       always_export_symbols=no
9515       enable_shared_with_static_runtimes=yes
9516       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9517
9518       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9519         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9520         # If the export-symbols file already is a .def file (1st line
9521         # is EXPORTS), use it as is; otherwise, prepend...
9522         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9523           cp $export_symbols $output_objdir/$soname.def;
9524         else
9525           echo EXPORTS > $output_objdir/$soname.def;
9526           cat $export_symbols >> $output_objdir/$soname.def;
9527         fi~
9528         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9529       else
9530         ld_shlibs=no
9531       fi
9532       ;;
9533
9534     haiku*)
9535       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9536       link_all_deplibs=yes
9537       ;;
9538
9539     interix[3-9]*)
9540       hardcode_direct=no
9541       hardcode_shlibpath_var=no
9542       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9543       export_dynamic_flag_spec='${wl}-E'
9544       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9545       # Instead, shared libraries are loaded at an image base (0x10000000 by
9546       # default) and relocated if they conflict, which is a slow very memory
9547       # consuming and fragmenting process.  To avoid this, we pick a random,
9548       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9549       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9550       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9551       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'
9552       ;;
9553
9554     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9555       tmp_diet=no
9556       if test "$host_os" = linux-dietlibc; then
9557         case $cc_basename in
9558           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9559         esac
9560       fi
9561       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9562          && test "$tmp_diet" = no
9563       then
9564         tmp_addflag=
9565         tmp_sharedflag='-shared'
9566         case $cc_basename,$host_cpu in
9567         pgcc*)                          # Portland Group C compiler
9568           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'
9569           tmp_addflag=' $pic_flag'
9570           ;;
9571         pgf77* | pgf90* | pgf95* | pgfortran*)
9572                                         # Portland Group f77 and f90 compilers
9573           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'
9574           tmp_addflag=' $pic_flag -Mnomain' ;;
9575         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9576           tmp_addflag=' -i_dynamic' ;;
9577         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9578           tmp_addflag=' -i_dynamic -nofor_main' ;;
9579         ifc* | ifort*)                  # Intel Fortran compiler
9580           tmp_addflag=' -nofor_main' ;;
9581         lf95*)                          # Lahey Fortran 8.1
9582           whole_archive_flag_spec=
9583           tmp_sharedflag='--shared' ;;
9584         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9585           tmp_sharedflag='-qmkshrobj'
9586           tmp_addflag= ;;
9587         nvcc*)  # Cuda Compiler Driver 2.2
9588           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'
9589           compiler_needs_object=yes
9590           ;;
9591         esac
9592         case `$CC -V 2>&1 | sed 5q` in
9593         *Sun\ C*)                       # Sun C 5.9
9594           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'
9595           compiler_needs_object=yes
9596           tmp_sharedflag='-G' ;;
9597         *Sun\ F*)                       # Sun Fortran 8.3
9598           tmp_sharedflag='-G' ;;
9599         esac
9600         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9601
9602         if test "x$supports_anon_versioning" = xyes; then
9603           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9604             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9605             echo "local: *; };" >> $output_objdir/$libname.ver~
9606             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9607         fi
9608
9609         case $cc_basename in
9610         xlf* | bgf* | bgxlf* | mpixlf*)
9611           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9612           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9613           hardcode_libdir_flag_spec=
9614           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9615           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9616           if test "x$supports_anon_versioning" = xyes; then
9617             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9618               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9619               echo "local: *; };" >> $output_objdir/$libname.ver~
9620               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9621           fi
9622           ;;
9623         esac
9624       else
9625         ld_shlibs=no
9626       fi
9627       ;;
9628
9629     netbsd*)
9630       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9631         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9632         wlarc=
9633       else
9634         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9636       fi
9637       ;;
9638
9639     solaris*)
9640       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9641         ld_shlibs=no
9642         cat <<_LT_EOF 1>&2
9643
9644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9645 *** create shared libraries on Solaris systems.  Therefore, libtool
9646 *** is disabling shared libraries support.  We urge you to upgrade GNU
9647 *** binutils to release 2.9.1 or newer.  Another option is to modify
9648 *** your PATH or compiler configuration so that the native linker is
9649 *** used, and then restart.
9650
9651 _LT_EOF
9652       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9653         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9655       else
9656         ld_shlibs=no
9657       fi
9658       ;;
9659
9660     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9661       case `$LD -v 2>&1` in
9662         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9663         ld_shlibs=no
9664         cat <<_LT_EOF 1>&2
9665
9666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9667 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9668 *** is disabling shared libraries support.  We urge you to upgrade GNU
9669 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9670 *** your PATH or compiler configuration so that the native linker is
9671 *** used, and then restart.
9672
9673 _LT_EOF
9674         ;;
9675         *)
9676           # For security reasons, it is highly recommended that you always
9677           # use absolute paths for naming shared libraries, and exclude the
9678           # DT_RUNPATH tag from executables and libraries.  But doing so
9679           # requires that you compile everything twice, which is a pain.
9680           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9681             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9684           else
9685             ld_shlibs=no
9686           fi
9687         ;;
9688       esac
9689       ;;
9690
9691     sunos4*)
9692       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9693       wlarc=
9694       hardcode_direct=yes
9695       hardcode_shlibpath_var=no
9696       ;;
9697
9698     *)
9699       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9700         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9702       else
9703         ld_shlibs=no
9704       fi
9705       ;;
9706     esac
9707
9708     if test "$ld_shlibs" = no; then
9709       runpath_var=
9710       hardcode_libdir_flag_spec=
9711       export_dynamic_flag_spec=
9712       whole_archive_flag_spec=
9713     fi
9714   else
9715     # PORTME fill in a description of your system's linker (not GNU ld)
9716     case $host_os in
9717     aix3*)
9718       allow_undefined_flag=unsupported
9719       always_export_symbols=yes
9720       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'
9721       # Note: this linker hardcodes the directories in LIBPATH if there
9722       # are no directories specified by -L.
9723       hardcode_minus_L=yes
9724       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9725         # Neither direct hardcoding nor static linking is supported with a
9726         # broken collect2.
9727         hardcode_direct=unsupported
9728       fi
9729       ;;
9730
9731     aix[4-9]*)
9732       if test "$host_cpu" = ia64; then
9733         # On IA64, the linker does run time linking by default, so we don't
9734         # have to do anything special.
9735         aix_use_runtimelinking=no
9736         exp_sym_flag='-Bexport'
9737         no_entry_flag=""
9738       else
9739         # If we're using GNU nm, then we don't want the "-C" option.
9740         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9741         # Also, AIX nm treats weak defined symbols like other global
9742         # defined symbols, whereas GNU nm marks them as "W".
9743         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9744           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'
9745         else
9746           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'
9747         fi
9748         aix_use_runtimelinking=no
9749
9750         # Test if we are trying to use run time linking or normal
9751         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9752         # need to do runtime linking.
9753         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9754           for ld_flag in $LDFLAGS; do
9755           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9756             aix_use_runtimelinking=yes
9757             break
9758           fi
9759           done
9760           ;;
9761         esac
9762
9763         exp_sym_flag='-bexport'
9764         no_entry_flag='-bnoentry'
9765       fi
9766
9767       # When large executables or shared objects are built, AIX ld can
9768       # have problems creating the table of contents.  If linking a library
9769       # or program results in "error TOC overflow" add -mminimal-toc to
9770       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9771       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9772
9773       archive_cmds=''
9774       hardcode_direct=yes
9775       hardcode_direct_absolute=yes
9776       hardcode_libdir_separator=':'
9777       link_all_deplibs=yes
9778       file_list_spec='${wl}-f,'
9779
9780       if test "$GCC" = yes; then
9781         case $host_os in aix4.[012]|aix4.[012].*)
9782         # We only want to do this on AIX 4.2 and lower, the check
9783         # below for broken collect2 doesn't work under 4.3+
9784           collect2name=`${CC} -print-prog-name=collect2`
9785           if test -f "$collect2name" &&
9786            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9787           then
9788           # We have reworked collect2
9789           :
9790           else
9791           # We have old collect2
9792           hardcode_direct=unsupported
9793           # It fails to find uninstalled libraries when the uninstalled
9794           # path is not listed in the libpath.  Setting hardcode_minus_L
9795           # to unsupported forces relinking
9796           hardcode_minus_L=yes
9797           hardcode_libdir_flag_spec='-L$libdir'
9798           hardcode_libdir_separator=
9799           fi
9800           ;;
9801         esac
9802         shared_flag='-shared'
9803         if test "$aix_use_runtimelinking" = yes; then
9804           shared_flag="$shared_flag "'${wl}-G'
9805         fi
9806       else
9807         # not using gcc
9808         if test "$host_cpu" = ia64; then
9809         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9810         # chokes on -Wl,-G. The following line is correct:
9811           shared_flag='-G'
9812         else
9813           if test "$aix_use_runtimelinking" = yes; then
9814             shared_flag='${wl}-G'
9815           else
9816             shared_flag='${wl}-bM:SRE'
9817           fi
9818         fi
9819       fi
9820
9821       export_dynamic_flag_spec='${wl}-bexpall'
9822       # It seems that -bexpall does not export symbols beginning with
9823       # underscore (_), so it is better to generate a list of symbols to export.
9824       always_export_symbols=yes
9825       if test "$aix_use_runtimelinking" = yes; then
9826         # Warning - without using the other runtime loading flags (-brtl),
9827         # -berok will link without error, but may produce a broken library.
9828         allow_undefined_flag='-berok'
9829         # Determine the default libpath from the value encoded in an
9830         # empty executable.
9831         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h.  */
9833
9834 int
9835 main ()
9836 {
9837
9838   ;
9839   return 0;
9840 }
9841 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then :
9843
9844 lt_aix_libpath_sed='
9845     /Import File Strings/,/^$/ {
9846         /^0/ {
9847             s/^0  *\(.*\)$/\1/
9848             p
9849         }
9850     }'
9851 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 # Check for a 64-bit object if we didn't find anything.
9853 if test -z "$aix_libpath"; then
9854   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 fi
9856 fi
9857 rm -f core conftest.err conftest.$ac_objext \
9858     conftest$ac_exeext conftest.$ac_ext
9859 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9860
9861         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9862         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"
9863       else
9864         if test "$host_cpu" = ia64; then
9865           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9866           allow_undefined_flag="-z nodefs"
9867           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"
9868         else
9869          # Determine the default libpath from the value encoded in an
9870          # empty executable.
9871          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h.  */
9873
9874 int
9875 main ()
9876 {
9877
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 if ac_fn_c_try_link "$LINENO"; then :
9883
9884 lt_aix_libpath_sed='
9885     /Import File Strings/,/^$/ {
9886         /^0/ {
9887             s/^0  *\(.*\)$/\1/
9888             p
9889         }
9890     }'
9891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9892 # Check for a 64-bit object if we didn't find anything.
9893 if test -z "$aix_libpath"; then
9894   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9895 fi
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext \
9898     conftest$ac_exeext conftest.$ac_ext
9899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9900
9901          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9902           # Warning - without using the other run time loading flags,
9903           # -berok will link without error, but may produce a broken library.
9904           no_undefined_flag=' ${wl}-bernotok'
9905           allow_undefined_flag=' ${wl}-berok'
9906           if test "$with_gnu_ld" = yes; then
9907             # We only use this code for GNU lds that support --whole-archive.
9908             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9909           else
9910             # Exported symbols can be pulled into shared objects from archives
9911             whole_archive_flag_spec='$convenience'
9912           fi
9913           archive_cmds_need_lc=yes
9914           # This is similar to how AIX traditionally builds its shared libraries.
9915           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'
9916         fi
9917       fi
9918       ;;
9919
9920     amigaos*)
9921       case $host_cpu in
9922       powerpc)
9923             # see comment about AmigaOS4 .so support
9924             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925             archive_expsym_cmds=''
9926         ;;
9927       m68k)
9928             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)'
9929             hardcode_libdir_flag_spec='-L$libdir'
9930             hardcode_minus_L=yes
9931         ;;
9932       esac
9933       ;;
9934
9935     bsdi[45]*)
9936       export_dynamic_flag_spec=-rdynamic
9937       ;;
9938
9939     cygwin* | mingw* | pw32* | cegcc*)
9940       # When not using gcc, we currently assume that we are using
9941       # Microsoft Visual C++.
9942       # hardcode_libdir_flag_spec is actually meaningless, as there is
9943       # no search path for DLLs.
9944       hardcode_libdir_flag_spec=' '
9945       allow_undefined_flag=unsupported
9946       # Tell ltmain to make .lib files, not .a files.
9947       libext=lib
9948       # Tell ltmain to make .dll files, not .so files.
9949       shrext_cmds=".dll"
9950       # FIXME: Setting linknames here is a bad hack.
9951       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9952       # The linker will automatically build a .lib file if we build a DLL.
9953       old_archive_from_new_cmds='true'
9954       # FIXME: Should let the user specify the lib program.
9955       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9956       fix_srcfile_path='`cygpath -w "$srcfile"`'
9957       enable_shared_with_static_runtimes=yes
9958       ;;
9959
9960     darwin* | rhapsody*)
9961
9962
9963   archive_cmds_need_lc=no
9964   hardcode_direct=no
9965   hardcode_automatic=yes
9966   hardcode_shlibpath_var=unsupported
9967   if test "$lt_cv_ld_force_load" = "yes"; then
9968     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\"`'
9969   else
9970     whole_archive_flag_spec=''
9971   fi
9972   link_all_deplibs=yes
9973   allow_undefined_flag="$_lt_dar_allow_undefined"
9974   case $cc_basename in
9975      ifort*) _lt_dar_can_shared=yes ;;
9976      *) _lt_dar_can_shared=$GCC ;;
9977   esac
9978   if test "$_lt_dar_can_shared" = "yes"; then
9979     output_verbose_link_cmd=func_echo_all
9980     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9981     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9982     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}"
9983     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}"
9984
9985   else
9986   ld_shlibs=no
9987   fi
9988
9989       ;;
9990
9991     dgux*)
9992       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993       hardcode_libdir_flag_spec='-L$libdir'
9994       hardcode_shlibpath_var=no
9995       ;;
9996
9997     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9998     # support.  Future versions do this automatically, but an explicit c++rt0.o
9999     # does not break anything, and helps significantly (at the cost of a little
10000     # extra space).
10001     freebsd2.2*)
10002       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10003       hardcode_libdir_flag_spec='-R$libdir'
10004       hardcode_direct=yes
10005       hardcode_shlibpath_var=no
10006       ;;
10007
10008     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10009     freebsd2.*)
10010       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10011       hardcode_direct=yes
10012       hardcode_minus_L=yes
10013       hardcode_shlibpath_var=no
10014       ;;
10015
10016     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10017     freebsd* | dragonfly*)
10018       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10019       hardcode_libdir_flag_spec='-R$libdir'
10020       hardcode_direct=yes
10021       hardcode_shlibpath_var=no
10022       ;;
10023
10024     hpux9*)
10025       if test "$GCC" = yes; then
10026         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10027       else
10028         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'
10029       fi
10030       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10031       hardcode_libdir_separator=:
10032       hardcode_direct=yes
10033
10034       # hardcode_minus_L: Not really in the search PATH,
10035       # but as the default location of the library.
10036       hardcode_minus_L=yes
10037       export_dynamic_flag_spec='${wl}-E'
10038       ;;
10039
10040     hpux10*)
10041       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10042         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10043       else
10044         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10045       fi
10046       if test "$with_gnu_ld" = no; then
10047         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10048         hardcode_libdir_flag_spec_ld='+b $libdir'
10049         hardcode_libdir_separator=:
10050         hardcode_direct=yes
10051         hardcode_direct_absolute=yes
10052         export_dynamic_flag_spec='${wl}-E'
10053         # hardcode_minus_L: Not really in the search PATH,
10054         # but as the default location of the library.
10055         hardcode_minus_L=yes
10056       fi
10057       ;;
10058
10059     hpux11*)
10060       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10061         case $host_cpu in
10062         hppa*64*)
10063           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10064           ;;
10065         ia64*)
10066           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10067           ;;
10068         *)
10069           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10070           ;;
10071         esac
10072       else
10073         case $host_cpu in
10074         hppa*64*)
10075           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10076           ;;
10077         ia64*)
10078           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10079           ;;
10080         *)
10081
10082           # Older versions of the 11.00 compiler do not understand -b yet
10083           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10084           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10085 $as_echo_n "checking if $CC understands -b... " >&6; }
10086 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10087   $as_echo_n "(cached) " >&6
10088 else
10089   lt_cv_prog_compiler__b=no
10090    save_LDFLAGS="$LDFLAGS"
10091    LDFLAGS="$LDFLAGS -b"
10092    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10093    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10094      # The linker can only warn and ignore the option if not recognized
10095      # So say no if there are warnings
10096      if test -s conftest.err; then
10097        # Append any errors to the config.log.
10098        cat conftest.err 1>&5
10099        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10100        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10101        if diff conftest.exp conftest.er2 >/dev/null; then
10102          lt_cv_prog_compiler__b=yes
10103        fi
10104      else
10105        lt_cv_prog_compiler__b=yes
10106      fi
10107    fi
10108    $RM -r conftest*
10109    LDFLAGS="$save_LDFLAGS"
10110
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10113 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10114
10115 if test x"$lt_cv_prog_compiler__b" = xyes; then
10116     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10117 else
10118     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10119 fi
10120
10121           ;;
10122         esac
10123       fi
10124       if test "$with_gnu_ld" = no; then
10125         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10126         hardcode_libdir_separator=:
10127
10128         case $host_cpu in
10129         hppa*64*|ia64*)
10130           hardcode_direct=no
10131           hardcode_shlibpath_var=no
10132           ;;
10133         *)
10134           hardcode_direct=yes
10135           hardcode_direct_absolute=yes
10136           export_dynamic_flag_spec='${wl}-E'
10137
10138           # hardcode_minus_L: Not really in the search PATH,
10139           # but as the default location of the library.
10140           hardcode_minus_L=yes
10141           ;;
10142         esac
10143       fi
10144       ;;
10145
10146     irix5* | irix6* | nonstopux*)
10147       if test "$GCC" = yes; then
10148         archive_cmds='$CC -shared $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'
10149         # Try to use the -exported_symbol ld option, if it does not
10150         # work, assume that -exports_file does not work either and
10151         # implicitly export all symbols.
10152         save_LDFLAGS="$LDFLAGS"
10153         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10154         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h.  */
10156 int foo(void) {}
10157 _ACEOF
10158 if ac_fn_c_try_link "$LINENO"; then :
10159   archive_expsym_cmds='$CC -shared $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'
10160
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext \
10163     conftest$ac_exeext conftest.$ac_ext
10164         LDFLAGS="$save_LDFLAGS"
10165       else
10166         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'
10167         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'
10168       fi
10169       archive_cmds_need_lc='no'
10170       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10171       hardcode_libdir_separator=:
10172       inherit_rpath=yes
10173       link_all_deplibs=yes
10174       ;;
10175
10176     netbsd*)
10177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10179       else
10180         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10181       fi
10182       hardcode_libdir_flag_spec='-R$libdir'
10183       hardcode_direct=yes
10184       hardcode_shlibpath_var=no
10185       ;;
10186
10187     newsos6)
10188       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189       hardcode_direct=yes
10190       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10191       hardcode_libdir_separator=:
10192       hardcode_shlibpath_var=no
10193       ;;
10194
10195     *nto* | *qnx*)
10196       ;;
10197
10198     openbsd*)
10199       if test -f /usr/libexec/ld.so; then
10200         hardcode_direct=yes
10201         hardcode_shlibpath_var=no
10202         hardcode_direct_absolute=yes
10203         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10204           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10205           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10206           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10207           export_dynamic_flag_spec='${wl}-E'
10208         else
10209           case $host_os in
10210            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10211              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10212              hardcode_libdir_flag_spec='-R$libdir'
10213              ;;
10214            *)
10215              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10216              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10217              ;;
10218           esac
10219         fi
10220       else
10221         ld_shlibs=no
10222       fi
10223       ;;
10224
10225     os2*)
10226       hardcode_libdir_flag_spec='-L$libdir'
10227       hardcode_minus_L=yes
10228       allow_undefined_flag=unsupported
10229       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'
10230       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10231       ;;
10232
10233     osf3*)
10234       if test "$GCC" = yes; then
10235         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10236         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'
10237       else
10238         allow_undefined_flag=' -expect_unresolved \*'
10239         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'
10240       fi
10241       archive_cmds_need_lc='no'
10242       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10243       hardcode_libdir_separator=:
10244       ;;
10245
10246     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10247       if test "$GCC" = yes; then
10248         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10249         archive_cmds='$CC -shared${allow_undefined_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'
10250         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10251       else
10252         allow_undefined_flag=' -expect_unresolved \*'
10253         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'
10254         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~
10255         $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'
10256
10257         # Both c and cxx compiler support -rpath directly
10258         hardcode_libdir_flag_spec='-rpath $libdir'
10259       fi
10260       archive_cmds_need_lc='no'
10261       hardcode_libdir_separator=:
10262       ;;
10263
10264     solaris*)
10265       no_undefined_flag=' -z defs'
10266       if test "$GCC" = yes; then
10267         wlarc='${wl}'
10268         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10269         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10270           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10271       else
10272         case `$CC -V 2>&1` in
10273         *"Compilers 5.0"*)
10274           wlarc=''
10275           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10277           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10278           ;;
10279         *)
10280           wlarc='${wl}'
10281           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10282           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10283           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10284           ;;
10285         esac
10286       fi
10287       hardcode_libdir_flag_spec='-R$libdir'
10288       hardcode_shlibpath_var=no
10289       case $host_os in
10290       solaris2.[0-5] | solaris2.[0-5].*) ;;
10291       *)
10292         # The compiler driver will combine and reorder linker options,
10293         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10294         # but is careful enough not to reorder.
10295         # Supported since Solaris 2.6 (maybe 2.5.1?)
10296         if test "$GCC" = yes; then
10297           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10298         else
10299           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10300         fi
10301         ;;
10302       esac
10303       link_all_deplibs=yes
10304       ;;
10305
10306     sunos4*)
10307       if test "x$host_vendor" = xsequent; then
10308         # Use $CC to link under sequent, because it throws in some extra .o
10309         # files that make .init and .fini sections work.
10310         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10311       else
10312         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10313       fi
10314       hardcode_libdir_flag_spec='-L$libdir'
10315       hardcode_direct=yes
10316       hardcode_minus_L=yes
10317       hardcode_shlibpath_var=no
10318       ;;
10319
10320     sysv4)
10321       case $host_vendor in
10322         sni)
10323           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324           hardcode_direct=yes # is this really true???
10325         ;;
10326         siemens)
10327           ## LD is ld it makes a PLAMLIB
10328           ## CC just makes a GrossModule.
10329           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10330           reload_cmds='$CC -r -o $output$reload_objs'
10331           hardcode_direct=no
10332         ;;
10333         motorola)
10334           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10336         ;;
10337       esac
10338       runpath_var='LD_RUN_PATH'
10339       hardcode_shlibpath_var=no
10340       ;;
10341
10342     sysv4.3*)
10343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344       hardcode_shlibpath_var=no
10345       export_dynamic_flag_spec='-Bexport'
10346       ;;
10347
10348     sysv4*MP*)
10349       if test -d /usr/nec; then
10350         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351         hardcode_shlibpath_var=no
10352         runpath_var=LD_RUN_PATH
10353         hardcode_runpath_var=yes
10354         ld_shlibs=yes
10355       fi
10356       ;;
10357
10358     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10359       no_undefined_flag='${wl}-z,text'
10360       archive_cmds_need_lc=no
10361       hardcode_shlibpath_var=no
10362       runpath_var='LD_RUN_PATH'
10363
10364       if test "$GCC" = yes; then
10365         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10367       else
10368         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10370       fi
10371       ;;
10372
10373     sysv5* | sco3.2v5* | sco5v6*)
10374       # Note: We can NOT use -z defs as we might desire, because we do not
10375       # link with -lc, and that would cause any symbols used from libc to
10376       # always be unresolved, which means just about no library would
10377       # ever link correctly.  If we're not using GNU ld we use -z text
10378       # though, which does catch some bad symbols but isn't as heavy-handed
10379       # as -z defs.
10380       no_undefined_flag='${wl}-z,text'
10381       allow_undefined_flag='${wl}-z,nodefs'
10382       archive_cmds_need_lc=no
10383       hardcode_shlibpath_var=no
10384       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10385       hardcode_libdir_separator=':'
10386       link_all_deplibs=yes
10387       export_dynamic_flag_spec='${wl}-Bexport'
10388       runpath_var='LD_RUN_PATH'
10389
10390       if test "$GCC" = yes; then
10391         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393       else
10394         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396       fi
10397       ;;
10398
10399     uts4*)
10400       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401       hardcode_libdir_flag_spec='-L$libdir'
10402       hardcode_shlibpath_var=no
10403       ;;
10404
10405     *)
10406       ld_shlibs=no
10407       ;;
10408     esac
10409
10410     if test x$host_vendor = xsni; then
10411       case $host in
10412       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10413         export_dynamic_flag_spec='${wl}-Blargedynsym'
10414         ;;
10415       esac
10416     fi
10417   fi
10418
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10420 $as_echo "$ld_shlibs" >&6; }
10421 test "$ld_shlibs" = no && can_build_shared=no
10422
10423 with_gnu_ld=$with_gnu_ld
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439 #
10440 # Do we need to explicitly link libc?
10441 #
10442 case "x$archive_cmds_need_lc" in
10443 x|xyes)
10444   # Assume -lc should be added
10445   archive_cmds_need_lc=yes
10446
10447   if test "$enable_shared" = yes && test "$GCC" = yes; then
10448     case $archive_cmds in
10449     *'~'*)
10450       # FIXME: we may have to deal with multi-command sequences.
10451       ;;
10452     '$CC '*)
10453       # Test whether the compiler implicitly links with -lc since on some
10454       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10455       # to ld, don't add -lc before -lgcc.
10456       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10457 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10458 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10459   $as_echo_n "(cached) " >&6
10460 else
10461   $RM conftest*
10462         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10463
10464         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10465   (eval $ac_compile) 2>&5
10466   ac_status=$?
10467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10468   test $ac_status = 0; } 2>conftest.err; then
10469           soname=conftest
10470           lib=conftest
10471           libobjs=conftest.$ac_objext
10472           deplibs=
10473           wl=$lt_prog_compiler_wl
10474           pic_flag=$lt_prog_compiler_pic
10475           compiler_flags=-v
10476           linker_flags=-v
10477           verstring=
10478           output_objdir=.
10479           libname=conftest
10480           lt_save_allow_undefined_flag=$allow_undefined_flag
10481           allow_undefined_flag=
10482           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10483   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10484   ac_status=$?
10485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10486   test $ac_status = 0; }
10487           then
10488             lt_cv_archive_cmds_need_lc=no
10489           else
10490             lt_cv_archive_cmds_need_lc=yes
10491           fi
10492           allow_undefined_flag=$lt_save_allow_undefined_flag
10493         else
10494           cat conftest.err 1>&5
10495         fi
10496         $RM conftest*
10497
10498 fi
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10500 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10501       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10502       ;;
10503     esac
10504   fi
10505   ;;
10506 esac
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10665 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10666
10667 if test "$GCC" = yes; then
10668   case $host_os in
10669     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10670     *) lt_awk_arg="/^libraries:/" ;;
10671   esac
10672   case $host_os in
10673     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10674     *) lt_sed_strip_eq="s,=/,/,g" ;;
10675   esac
10676   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10677   case $lt_search_path_spec in
10678   *\;*)
10679     # if the path contains ";" then we assume it to be the separator
10680     # otherwise default to the standard path separator (i.e. ":") - it is
10681     # assumed that no part of a normal pathname contains ";" but that should
10682     # okay in the real world where ";" in dirpaths is itself problematic.
10683     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10684     ;;
10685   *)
10686     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10687     ;;
10688   esac
10689   # Ok, now we have the path, separated by spaces, we can step through it
10690   # and add multilib dir if necessary.
10691   lt_tmp_lt_search_path_spec=
10692   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10693   for lt_sys_path in $lt_search_path_spec; do
10694     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10695       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10696     else
10697       test -d "$lt_sys_path" && \
10698         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10699     fi
10700   done
10701   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10702 BEGIN {RS=" "; FS="/|\n";} {
10703   lt_foo="";
10704   lt_count=0;
10705   for (lt_i = NF; lt_i > 0; lt_i--) {
10706     if ($lt_i != "" && $lt_i != ".") {
10707       if ($lt_i == "..") {
10708         lt_count++;
10709       } else {
10710         if (lt_count == 0) {
10711           lt_foo="/" $lt_i lt_foo;
10712         } else {
10713           lt_count--;
10714         }
10715       }
10716     }
10717   }
10718   if (lt_foo != "") { lt_freq[lt_foo]++; }
10719   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10720 }'`
10721   # AWK program above erroneously prepends '/' to C:/dos/paths
10722   # for these hosts.
10723   case $host_os in
10724     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10725       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10726   esac
10727   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10728 else
10729   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10730 fi
10731 library_names_spec=
10732 libname_spec='lib$name'
10733 soname_spec=
10734 shrext_cmds=".so"
10735 postinstall_cmds=
10736 postuninstall_cmds=
10737 finish_cmds=
10738 finish_eval=
10739 shlibpath_var=
10740 shlibpath_overrides_runpath=unknown
10741 version_type=none
10742 dynamic_linker="$host_os ld.so"
10743 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10744 need_lib_prefix=unknown
10745 hardcode_into_libs=no
10746
10747 # when you set need_version to no, make sure it does not cause -set_version
10748 # flags to be left without arguments
10749 need_version=unknown
10750
10751 case $host_os in
10752 aix3*)
10753   version_type=linux
10754   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10755   shlibpath_var=LIBPATH
10756
10757   # AIX 3 has no versioning support, so we append a major version to the name.
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   ;;
10760
10761 aix[4-9]*)
10762   version_type=linux
10763   need_lib_prefix=no
10764   need_version=no
10765   hardcode_into_libs=yes
10766   if test "$host_cpu" = ia64; then
10767     # AIX 5 supports IA64
10768     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10769     shlibpath_var=LD_LIBRARY_PATH
10770   else
10771     # With GCC up to 2.95.x, collect2 would create an import file
10772     # for dependence libraries.  The import file would start with
10773     # the line `#! .'.  This would cause the generated library to
10774     # depend on `.', always an invalid library.  This was fixed in
10775     # development snapshots of GCC prior to 3.0.
10776     case $host_os in
10777       aix4 | aix4.[01] | aix4.[01].*)
10778       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10779            echo ' yes '
10780            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10781         :
10782       else
10783         can_build_shared=no
10784       fi
10785       ;;
10786     esac
10787     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10788     # soname into executable. Probably we can add versioning support to
10789     # collect2, so additional links can be useful in future.
10790     if test "$aix_use_runtimelinking" = yes; then
10791       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10792       # instead of lib<name>.a to let people know that these are not
10793       # typical AIX shared libraries.
10794       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795     else
10796       # We preserve .a as extension for shared libraries through AIX4.2
10797       # and later when we are not doing run time linking.
10798       library_names_spec='${libname}${release}.a $libname.a'
10799       soname_spec='${libname}${release}${shared_ext}$major'
10800     fi
10801     shlibpath_var=LIBPATH
10802   fi
10803   ;;
10804
10805 amigaos*)
10806   case $host_cpu in
10807   powerpc)
10808     # Since July 2007 AmigaOS4 officially supports .so libraries.
10809     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811     ;;
10812   m68k)
10813     library_names_spec='$libname.ixlibrary $libname.a'
10814     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10815     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'
10816     ;;
10817   esac
10818   ;;
10819
10820 beos*)
10821   library_names_spec='${libname}${shared_ext}'
10822   dynamic_linker="$host_os ld.so"
10823   shlibpath_var=LIBRARY_PATH
10824   ;;
10825
10826 bsdi[45]*)
10827   version_type=linux
10828   need_version=no
10829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830   soname_spec='${libname}${release}${shared_ext}$major'
10831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10832   shlibpath_var=LD_LIBRARY_PATH
10833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10835   # the default ld.so.conf also contains /usr/contrib/lib and
10836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10837   # libtool to hard-code these into programs
10838   ;;
10839
10840 cygwin* | mingw* | pw32* | cegcc*)
10841   version_type=windows
10842   shrext_cmds=".dll"
10843   need_version=no
10844   need_lib_prefix=no
10845
10846   case $GCC,$host_os in
10847   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10848     library_names_spec='$libname.dll.a'
10849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10850     postinstall_cmds='base_file=`basename \${file}`~
10851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10852       dldir=$destdir/`dirname \$dlpath`~
10853       test -d \$dldir || mkdir -p \$dldir~
10854       $install_prog $dir/$dlname \$dldir/$dlname~
10855       chmod a+x \$dldir/$dlname~
10856       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10857         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10858       fi'
10859     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10860       dlpath=$dir/\$dldll~
10861        $RM \$dlpath'
10862     shlibpath_overrides_runpath=yes
10863
10864     case $host_os in
10865     cygwin*)
10866       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10867       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10868
10869       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10870       ;;
10871     mingw* | cegcc*)
10872       # MinGW DLLs use traditional 'lib' prefix
10873       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10874       ;;
10875     pw32*)
10876       # pw32 DLLs use 'pw' prefix rather than 'lib'
10877       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10878       ;;
10879     esac
10880     ;;
10881
10882   *)
10883     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10884     ;;
10885   esac
10886   dynamic_linker='Win32 ld.exe'
10887   # FIXME: first we should search . and the directory the executable is in
10888   shlibpath_var=PATH
10889   ;;
10890
10891 darwin* | rhapsody*)
10892   dynamic_linker="$host_os dyld"
10893   version_type=darwin
10894   need_lib_prefix=no
10895   need_version=no
10896   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10897   soname_spec='${libname}${release}${major}$shared_ext'
10898   shlibpath_overrides_runpath=yes
10899   shlibpath_var=DYLD_LIBRARY_PATH
10900   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10901
10902   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10903   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10904   ;;
10905
10906 dgux*)
10907   version_type=linux
10908   need_lib_prefix=no
10909   need_version=no
10910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10911   soname_spec='${libname}${release}${shared_ext}$major'
10912   shlibpath_var=LD_LIBRARY_PATH
10913   ;;
10914
10915 freebsd* | dragonfly*)
10916   # DragonFly does not have aout.  When/if they implement a new
10917   # versioning mechanism, adjust this.
10918   if test -x /usr/bin/objformat; then
10919     objformat=`/usr/bin/objformat`
10920   else
10921     case $host_os in
10922     freebsd[23].*) objformat=aout ;;
10923     *) objformat=elf ;;
10924     esac
10925   fi
10926   version_type=freebsd-$objformat
10927   case $version_type in
10928     freebsd-elf*)
10929       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10930       need_version=no
10931       need_lib_prefix=no
10932       ;;
10933     freebsd-*)
10934       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10935       need_version=yes
10936       ;;
10937   esac
10938   shlibpath_var=LD_LIBRARY_PATH
10939   case $host_os in
10940   freebsd2.*)
10941     shlibpath_overrides_runpath=yes
10942     ;;
10943   freebsd3.[01]* | freebsdelf3.[01]*)
10944     shlibpath_overrides_runpath=yes
10945     hardcode_into_libs=yes
10946     ;;
10947   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10948   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10949     shlibpath_overrides_runpath=no
10950     hardcode_into_libs=yes
10951     ;;
10952   *) # from 4.6 on, and DragonFly
10953     shlibpath_overrides_runpath=yes
10954     hardcode_into_libs=yes
10955     ;;
10956   esac
10957   ;;
10958
10959 gnu*)
10960   version_type=linux
10961   need_lib_prefix=no
10962   need_version=no
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10964   soname_spec='${libname}${release}${shared_ext}$major'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   hardcode_into_libs=yes
10967   ;;
10968
10969 haiku*)
10970   version_type=linux
10971   need_lib_prefix=no
10972   need_version=no
10973   dynamic_linker="$host_os runtime_loader"
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10975   soname_spec='${libname}${release}${shared_ext}$major'
10976   shlibpath_var=LIBRARY_PATH
10977   shlibpath_overrides_runpath=yes
10978   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10979   hardcode_into_libs=yes
10980   ;;
10981
10982 hpux9* | hpux10* | hpux11*)
10983   # Give a soname corresponding to the major version so that dld.sl refuses to
10984   # link against other versions.
10985   version_type=sunos
10986   need_lib_prefix=no
10987   need_version=no
10988   case $host_cpu in
10989   ia64*)
10990     shrext_cmds='.so'
10991     hardcode_into_libs=yes
10992     dynamic_linker="$host_os dld.so"
10993     shlibpath_var=LD_LIBRARY_PATH
10994     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996     soname_spec='${libname}${release}${shared_ext}$major'
10997     if test "X$HPUX_IA64_MODE" = X32; then
10998       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10999     else
11000       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11001     fi
11002     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11003     ;;
11004   hppa*64*)
11005     shrext_cmds='.sl'
11006     hardcode_into_libs=yes
11007     dynamic_linker="$host_os dld.sl"
11008     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11009     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011     soname_spec='${libname}${release}${shared_ext}$major'
11012     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11013     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11014     ;;
11015   *)
11016     shrext_cmds='.sl'
11017     dynamic_linker="$host_os dld.sl"
11018     shlibpath_var=SHLIB_PATH
11019     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021     soname_spec='${libname}${release}${shared_ext}$major'
11022     ;;
11023   esac
11024   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11025   postinstall_cmds='chmod 555 $lib'
11026   # or fails outright, so override atomically:
11027   install_override_mode=555
11028   ;;
11029
11030 interix[3-9]*)
11031   version_type=linux
11032   need_lib_prefix=no
11033   need_version=no
11034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11035   soname_spec='${libname}${release}${shared_ext}$major'
11036   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11037   shlibpath_var=LD_LIBRARY_PATH
11038   shlibpath_overrides_runpath=no
11039   hardcode_into_libs=yes
11040   ;;
11041
11042 irix5* | irix6* | nonstopux*)
11043   case $host_os in
11044     nonstopux*) version_type=nonstopux ;;
11045     *)
11046         if test "$lt_cv_prog_gnu_ld" = yes; then
11047                 version_type=linux
11048         else
11049                 version_type=irix
11050         fi ;;
11051   esac
11052   need_lib_prefix=no
11053   need_version=no
11054   soname_spec='${libname}${release}${shared_ext}$major'
11055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11056   case $host_os in
11057   irix5* | nonstopux*)
11058     libsuff= shlibsuff=
11059     ;;
11060   *)
11061     case $LD in # libtool.m4 will add one of these switches to LD
11062     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11063       libsuff= shlibsuff= libmagic=32-bit;;
11064     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11065       libsuff=32 shlibsuff=N32 libmagic=N32;;
11066     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11067       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11068     *) libsuff= shlibsuff= libmagic=never-match;;
11069     esac
11070     ;;
11071   esac
11072   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11073   shlibpath_overrides_runpath=no
11074   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11075   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11076   hardcode_into_libs=yes
11077   ;;
11078
11079 # No shared lib support for Linux oldld, aout, or coff.
11080 linux*oldld* | linux*aout* | linux*coff*)
11081   dynamic_linker=no
11082   ;;
11083
11084 # This must be Linux ELF.
11085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11086   version_type=linux
11087   need_lib_prefix=no
11088   need_version=no
11089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090   soname_spec='${libname}${release}${shared_ext}$major'
11091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   shlibpath_overrides_runpath=no
11094
11095   # Some binutils ld are patched to set DT_RUNPATH
11096   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11097   $as_echo_n "(cached) " >&6
11098 else
11099   lt_cv_shlibpath_overrides_runpath=no
11100     save_LDFLAGS=$LDFLAGS
11101     save_libdir=$libdir
11102     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11103          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h.  */
11106
11107 int
11108 main ()
11109 {
11110
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 if ac_fn_c_try_link "$LINENO"; then :
11116   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11117   lt_cv_shlibpath_overrides_runpath=yes
11118 fi
11119 fi
11120 rm -f core conftest.err conftest.$ac_objext \
11121     conftest$ac_exeext conftest.$ac_ext
11122     LDFLAGS=$save_LDFLAGS
11123     libdir=$save_libdir
11124
11125 fi
11126
11127   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11128
11129   # This implies no fast_install, which is unacceptable.
11130   # Some rework will be needed to allow for fast_install
11131   # before this can be enabled.
11132   hardcode_into_libs=yes
11133
11134   # Append ld.so.conf contents to the search path
11135   if test -f /etc/ld.so.conf; then
11136     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' ' '`
11137     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11138   fi
11139
11140   # We used to test for /lib/ld.so.1 and disable shared libraries on
11141   # powerpc, because MkLinux only supported shared libraries with the
11142   # GNU dynamic linker.  Since this was broken with cross compilers,
11143   # most powerpc-linux boxes support dynamic linking these days and
11144   # people can always --disable-shared, the test was removed, and we
11145   # assume the GNU/Linux dynamic linker is in use.
11146   dynamic_linker='GNU/Linux ld.so'
11147   ;;
11148
11149 netbsd*)
11150   version_type=sunos
11151   need_lib_prefix=no
11152   need_version=no
11153   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11155     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11156     dynamic_linker='NetBSD (a.out) ld.so'
11157   else
11158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11159     soname_spec='${libname}${release}${shared_ext}$major'
11160     dynamic_linker='NetBSD ld.elf_so'
11161   fi
11162   shlibpath_var=LD_LIBRARY_PATH
11163   shlibpath_overrides_runpath=yes
11164   hardcode_into_libs=yes
11165   ;;
11166
11167 newsos6)
11168   version_type=linux
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   shlibpath_overrides_runpath=yes
11172   ;;
11173
11174 *nto* | *qnx*)
11175   version_type=qnx
11176   need_lib_prefix=no
11177   need_version=no
11178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179   soname_spec='${libname}${release}${shared_ext}$major'
11180   shlibpath_var=LD_LIBRARY_PATH
11181   shlibpath_overrides_runpath=no
11182   hardcode_into_libs=yes
11183   dynamic_linker='ldqnx.so'
11184   ;;
11185
11186 openbsd*)
11187   version_type=sunos
11188   sys_lib_dlsearch_path_spec="/usr/lib"
11189   need_lib_prefix=no
11190   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11191   case $host_os in
11192     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11193     *)                          need_version=no  ;;
11194   esac
11195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11196   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11197   shlibpath_var=LD_LIBRARY_PATH
11198   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11199     case $host_os in
11200       openbsd2.[89] | openbsd2.[89].*)
11201         shlibpath_overrides_runpath=no
11202         ;;
11203       *)
11204         shlibpath_overrides_runpath=yes
11205         ;;
11206       esac
11207   else
11208     shlibpath_overrides_runpath=yes
11209   fi
11210   ;;
11211
11212 os2*)
11213   libname_spec='$name'
11214   shrext_cmds=".dll"
11215   need_lib_prefix=no
11216   library_names_spec='$libname${shared_ext} $libname.a'
11217   dynamic_linker='OS/2 ld.exe'
11218   shlibpath_var=LIBPATH
11219   ;;
11220
11221 osf3* | osf4* | osf5*)
11222   version_type=osf
11223   need_lib_prefix=no
11224   need_version=no
11225   soname_spec='${libname}${release}${shared_ext}$major'
11226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227   shlibpath_var=LD_LIBRARY_PATH
11228   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11229   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11230   ;;
11231
11232 rdos*)
11233   dynamic_linker=no
11234   ;;
11235
11236 solaris*)
11237   version_type=linux
11238   need_lib_prefix=no
11239   need_version=no
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   shlibpath_overrides_runpath=yes
11244   hardcode_into_libs=yes
11245   # ldd complains unless libraries are executable
11246   postinstall_cmds='chmod +x $lib'
11247   ;;
11248
11249 sunos4*)
11250   version_type=sunos
11251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11252   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11253   shlibpath_var=LD_LIBRARY_PATH
11254   shlibpath_overrides_runpath=yes
11255   if test "$with_gnu_ld" = yes; then
11256     need_lib_prefix=no
11257   fi
11258   need_version=yes
11259   ;;
11260
11261 sysv4 | sysv4.3*)
11262   version_type=linux
11263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264   soname_spec='${libname}${release}${shared_ext}$major'
11265   shlibpath_var=LD_LIBRARY_PATH
11266   case $host_vendor in
11267     sni)
11268       shlibpath_overrides_runpath=no
11269       need_lib_prefix=no
11270       runpath_var=LD_RUN_PATH
11271       ;;
11272     siemens)
11273       need_lib_prefix=no
11274       ;;
11275     motorola)
11276       need_lib_prefix=no
11277       need_version=no
11278       shlibpath_overrides_runpath=no
11279       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11280       ;;
11281   esac
11282   ;;
11283
11284 sysv4*MP*)
11285   if test -d /usr/nec ;then
11286     version_type=linux
11287     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11288     soname_spec='$libname${shared_ext}.$major'
11289     shlibpath_var=LD_LIBRARY_PATH
11290   fi
11291   ;;
11292
11293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11294   version_type=freebsd-elf
11295   need_lib_prefix=no
11296   need_version=no
11297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298   soname_spec='${libname}${release}${shared_ext}$major'
11299   shlibpath_var=LD_LIBRARY_PATH
11300   shlibpath_overrides_runpath=yes
11301   hardcode_into_libs=yes
11302   if test "$with_gnu_ld" = yes; then
11303     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11304   else
11305     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11306     case $host_os in
11307       sco3.2v5*)
11308         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11309         ;;
11310     esac
11311   fi
11312   sys_lib_dlsearch_path_spec='/usr/lib'
11313   ;;
11314
11315 tpf*)
11316   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11317   version_type=linux
11318   need_lib_prefix=no
11319   need_version=no
11320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321   shlibpath_var=LD_LIBRARY_PATH
11322   shlibpath_overrides_runpath=no
11323   hardcode_into_libs=yes
11324   ;;
11325
11326 uts4*)
11327   version_type=linux
11328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329   soname_spec='${libname}${release}${shared_ext}$major'
11330   shlibpath_var=LD_LIBRARY_PATH
11331   ;;
11332
11333 *)
11334   dynamic_linker=no
11335   ;;
11336 esac
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11338 $as_echo "$dynamic_linker" >&6; }
11339 test "$dynamic_linker" = no && can_build_shared=no
11340
11341 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11342 if test "$GCC" = yes; then
11343   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11344 fi
11345
11346 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11347   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11348 fi
11349 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11350   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11351 fi
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11445 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11446 hardcode_action=
11447 if test -n "$hardcode_libdir_flag_spec" ||
11448    test -n "$runpath_var" ||
11449    test "X$hardcode_automatic" = "Xyes" ; then
11450
11451   # We can hardcode non-existent directories.
11452   if test "$hardcode_direct" != no &&
11453      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11454      # have to relink, otherwise we might link with an installed library
11455      # when we should be linking with a yet-to-be-installed one
11456      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11457      test "$hardcode_minus_L" != no; then
11458     # Linking always hardcodes the temporary library directory.
11459     hardcode_action=relink
11460   else
11461     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11462     hardcode_action=immediate
11463   fi
11464 else
11465   # We cannot hardcode anything, or else we can only hardcode existing
11466   # directories.
11467   hardcode_action=unsupported
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11470 $as_echo "$hardcode_action" >&6; }
11471
11472 if test "$hardcode_action" = relink ||
11473    test "$inherit_rpath" = yes; then
11474   # Fast installation is not supported
11475   enable_fast_install=no
11476 elif test "$shlibpath_overrides_runpath" = yes ||
11477      test "$enable_shared" = no; then
11478   # Fast installation is not necessary
11479   enable_fast_install=needless
11480 fi
11481
11482
11483
11484
11485
11486
11487   if test "x$enable_dlopen" != xyes; then
11488   enable_dlopen=unknown
11489   enable_dlopen_self=unknown
11490   enable_dlopen_self_static=unknown
11491 else
11492   lt_cv_dlopen=no
11493   lt_cv_dlopen_libs=
11494
11495   case $host_os in
11496   beos*)
11497     lt_cv_dlopen="load_add_on"
11498     lt_cv_dlopen_libs=
11499     lt_cv_dlopen_self=yes
11500     ;;
11501
11502   mingw* | pw32* | cegcc*)
11503     lt_cv_dlopen="LoadLibrary"
11504     lt_cv_dlopen_libs=
11505     ;;
11506
11507   cygwin*)
11508     lt_cv_dlopen="dlopen"
11509     lt_cv_dlopen_libs=
11510     ;;
11511
11512   darwin*)
11513   # if libdl is installed we need to link against it
11514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11515 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11516 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-ldl  $LIBS"
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h.  */
11523
11524 /* Override any GCC internal prototype to avoid an error.
11525    Use char because int might match the return type of a GCC
11526    builtin and then its argument prototype would still apply.  */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char dlopen ();
11531 int
11532 main ()
11533 {
11534 return dlopen ();
11535   ;
11536   return 0;
11537 }
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540   ac_cv_lib_dl_dlopen=yes
11541 else
11542   ac_cv_lib_dl_dlopen=no
11543 fi
11544 rm -f core conftest.err conftest.$ac_objext \
11545     conftest$ac_exeext conftest.$ac_ext
11546 LIBS=$ac_check_lib_save_LIBS
11547 fi
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11549 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11550 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11551   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11552 else
11553
11554     lt_cv_dlopen="dyld"
11555     lt_cv_dlopen_libs=
11556     lt_cv_dlopen_self=yes
11557
11558 fi
11559
11560     ;;
11561
11562   *)
11563     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11564 if test "x$ac_cv_func_shl_load" = x""yes; then :
11565   lt_cv_dlopen="shl_load"
11566 else
11567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11568 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11570   $as_echo_n "(cached) " >&6
11571 else
11572   ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-ldld  $LIBS"
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h.  */
11576
11577 /* Override any GCC internal prototype to avoid an error.
11578    Use char because int might match the return type of a GCC
11579    builtin and then its argument prototype would still apply.  */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char shl_load ();
11584 int
11585 main ()
11586 {
11587 return shl_load ();
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11593   ac_cv_lib_dld_shl_load=yes
11594 else
11595   ac_cv_lib_dld_shl_load=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext \
11598     conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11602 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11603 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11604   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11605 else
11606   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11607 if test "x$ac_cv_func_dlopen" = x""yes; then :
11608   lt_cv_dlopen="dlopen"
11609 else
11610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11612 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11613   $as_echo_n "(cached) " >&6
11614 else
11615   ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-ldl  $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h.  */
11619
11620 /* Override any GCC internal prototype to avoid an error.
11621    Use char because int might match the return type of a GCC
11622    builtin and then its argument prototype would still apply.  */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char dlopen ();
11627 int
11628 main ()
11629 {
11630 return dlopen ();
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636   ac_cv_lib_dl_dlopen=yes
11637 else
11638   ac_cv_lib_dl_dlopen=no
11639 fi
11640 rm -f core conftest.err conftest.$ac_objext \
11641     conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11643 fi
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11647   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648 else
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11650 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11651 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11652   $as_echo_n "(cached) " >&6
11653 else
11654   ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lsvld  $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h.  */
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660    Use char because int might match the return type of a GCC
11661    builtin and then its argument prototype would still apply.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char dlopen ();
11666 int
11667 main ()
11668 {
11669 return dlopen ();
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then :
11675   ac_cv_lib_svld_dlopen=yes
11676 else
11677   ac_cv_lib_svld_dlopen=no
11678 fi
11679 rm -f core conftest.err conftest.$ac_objext \
11680     conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11684 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11685 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11686   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11687 else
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11689 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11690 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11691   $as_echo_n "(cached) " >&6
11692 else
11693   ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-ldld  $LIBS"
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h.  */
11697
11698 /* Override any GCC internal prototype to avoid an error.
11699    Use char because int might match the return type of a GCC
11700    builtin and then its argument prototype would still apply.  */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 char dld_link ();
11705 int
11706 main ()
11707 {
11708 return dld_link ();
11709   ;
11710   return 0;
11711 }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714   ac_cv_lib_dld_dld_link=yes
11715 else
11716   ac_cv_lib_dld_dld_link=no
11717 fi
11718 rm -f core conftest.err conftest.$ac_objext \
11719     conftest$ac_exeext conftest.$ac_ext
11720 LIBS=$ac_check_lib_save_LIBS
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11723 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11724 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11725   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11726 fi
11727
11728
11729 fi
11730
11731
11732 fi
11733
11734
11735 fi
11736
11737
11738 fi
11739
11740
11741 fi
11742
11743     ;;
11744   esac
11745
11746   if test "x$lt_cv_dlopen" != xno; then
11747     enable_dlopen=yes
11748   else
11749     enable_dlopen=no
11750   fi
11751
11752   case $lt_cv_dlopen in
11753   dlopen)
11754     save_CPPFLAGS="$CPPFLAGS"
11755     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11756
11757     save_LDFLAGS="$LDFLAGS"
11758     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11759
11760     save_LIBS="$LIBS"
11761     LIBS="$lt_cv_dlopen_libs $LIBS"
11762
11763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11764 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11765 if test "${lt_cv_dlopen_self+set}" = set; then :
11766   $as_echo_n "(cached) " >&6
11767 else
11768           if test "$cross_compiling" = yes; then :
11769   lt_cv_dlopen_self=cross
11770 else
11771   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11772   lt_status=$lt_dlunknown
11773   cat > conftest.$ac_ext <<_LT_EOF
11774 #line 11774 "configure"
11775 #include "confdefs.h"
11776
11777 #if HAVE_DLFCN_H
11778 #include <dlfcn.h>
11779 #endif
11780
11781 #include <stdio.h>
11782
11783 #ifdef RTLD_GLOBAL
11784 #  define LT_DLGLOBAL           RTLD_GLOBAL
11785 #else
11786 #  ifdef DL_GLOBAL
11787 #    define LT_DLGLOBAL         DL_GLOBAL
11788 #  else
11789 #    define LT_DLGLOBAL         0
11790 #  endif
11791 #endif
11792
11793 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11794    find out it does not work in some platform. */
11795 #ifndef LT_DLLAZY_OR_NOW
11796 #  ifdef RTLD_LAZY
11797 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11798 #  else
11799 #    ifdef DL_LAZY
11800 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11801 #    else
11802 #      ifdef RTLD_NOW
11803 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11804 #      else
11805 #        ifdef DL_NOW
11806 #          define LT_DLLAZY_OR_NOW      DL_NOW
11807 #        else
11808 #          define LT_DLLAZY_OR_NOW      0
11809 #        endif
11810 #      endif
11811 #    endif
11812 #  endif
11813 #endif
11814
11815 /* When -fvisbility=hidden is used, assume the code has been annotated
11816    correspondingly for the symbols needed.  */
11817 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11818 void fnord () __attribute__((visibility("default")));
11819 #endif
11820
11821 void fnord () { int i=42; }
11822 int main ()
11823 {
11824   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11825   int status = $lt_dlunknown;
11826
11827   if (self)
11828     {
11829       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11830       else
11831         {
11832           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11833           else puts (dlerror ());
11834         }
11835       /* dlclose (self); */
11836     }
11837   else
11838     puts (dlerror ());
11839
11840   return status;
11841 }
11842 _LT_EOF
11843   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11844   (eval $ac_link) 2>&5
11845   ac_status=$?
11846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11848     (./conftest; exit; ) >&5 2>/dev/null
11849     lt_status=$?
11850     case x$lt_status in
11851       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11852       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11853       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11854     esac
11855   else :
11856     # compilation failed
11857     lt_cv_dlopen_self=no
11858   fi
11859 fi
11860 rm -fr conftest*
11861
11862
11863 fi
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11865 $as_echo "$lt_cv_dlopen_self" >&6; }
11866
11867     if test "x$lt_cv_dlopen_self" = xyes; then
11868       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11869       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11870 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11871 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11872   $as_echo_n "(cached) " >&6
11873 else
11874           if test "$cross_compiling" = yes; then :
11875   lt_cv_dlopen_self_static=cross
11876 else
11877   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11878   lt_status=$lt_dlunknown
11879   cat > conftest.$ac_ext <<_LT_EOF
11880 #line 11880 "configure"
11881 #include "confdefs.h"
11882
11883 #if HAVE_DLFCN_H
11884 #include <dlfcn.h>
11885 #endif
11886
11887 #include <stdio.h>
11888
11889 #ifdef RTLD_GLOBAL
11890 #  define LT_DLGLOBAL           RTLD_GLOBAL
11891 #else
11892 #  ifdef DL_GLOBAL
11893 #    define LT_DLGLOBAL         DL_GLOBAL
11894 #  else
11895 #    define LT_DLGLOBAL         0
11896 #  endif
11897 #endif
11898
11899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11900    find out it does not work in some platform. */
11901 #ifndef LT_DLLAZY_OR_NOW
11902 #  ifdef RTLD_LAZY
11903 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11904 #  else
11905 #    ifdef DL_LAZY
11906 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11907 #    else
11908 #      ifdef RTLD_NOW
11909 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11910 #      else
11911 #        ifdef DL_NOW
11912 #          define LT_DLLAZY_OR_NOW      DL_NOW
11913 #        else
11914 #          define LT_DLLAZY_OR_NOW      0
11915 #        endif
11916 #      endif
11917 #    endif
11918 #  endif
11919 #endif
11920
11921 /* When -fvisbility=hidden is used, assume the code has been annotated
11922    correspondingly for the symbols needed.  */
11923 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11924 void fnord () __attribute__((visibility("default")));
11925 #endif
11926
11927 void fnord () { int i=42; }
11928 int main ()
11929 {
11930   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11931   int status = $lt_dlunknown;
11932
11933   if (self)
11934     {
11935       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11936       else
11937         {
11938           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11939           else puts (dlerror ());
11940         }
11941       /* dlclose (self); */
11942     }
11943   else
11944     puts (dlerror ());
11945
11946   return status;
11947 }
11948 _LT_EOF
11949   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11950   (eval $ac_link) 2>&5
11951   ac_status=$?
11952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11953   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11954     (./conftest; exit; ) >&5 2>/dev/null
11955     lt_status=$?
11956     case x$lt_status in
11957       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11958       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11959       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11960     esac
11961   else :
11962     # compilation failed
11963     lt_cv_dlopen_self_static=no
11964   fi
11965 fi
11966 rm -fr conftest*
11967
11968
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11971 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11972     fi
11973
11974     CPPFLAGS="$save_CPPFLAGS"
11975     LDFLAGS="$save_LDFLAGS"
11976     LIBS="$save_LIBS"
11977     ;;
11978   esac
11979
11980   case $lt_cv_dlopen_self in
11981   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11982   *) enable_dlopen_self=unknown ;;
11983   esac
11984
11985   case $lt_cv_dlopen_self_static in
11986   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11987   *) enable_dlopen_self_static=unknown ;;
11988   esac
11989 fi
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007 striplib=
12008 old_striplib=
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12010 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12011 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12012   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12013   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12015 $as_echo "yes" >&6; }
12016 else
12017 # FIXME - insert some real tests, host_os isn't really good enough
12018   case $host_os in
12019   darwin*)
12020     if test -n "$STRIP" ; then
12021       striplib="$STRIP -x"
12022       old_striplib="$STRIP -S"
12023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024 $as_echo "yes" >&6; }
12025     else
12026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028     fi
12029     ;;
12030   *)
12031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12033     ;;
12034   esac
12035 fi
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048   # Report which library types will actually be built
12049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12050 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12052 $as_echo "$can_build_shared" >&6; }
12053
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12055 $as_echo_n "checking whether to build shared libraries... " >&6; }
12056   test "$can_build_shared" = "no" && enable_shared=no
12057
12058   # On AIX, shared libraries and static libraries use the same namespace, and
12059   # are all built from PIC.
12060   case $host_os in
12061   aix3*)
12062     test "$enable_shared" = yes && enable_static=no
12063     if test -n "$RANLIB"; then
12064       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12065       postinstall_cmds='$RANLIB $lib'
12066     fi
12067     ;;
12068
12069   aix[4-9]*)
12070     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12071       test "$enable_shared" = yes && enable_static=no
12072     fi
12073     ;;
12074   esac
12075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12076 $as_echo "$enable_shared" >&6; }
12077
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12079 $as_echo_n "checking whether to build static libraries... " >&6; }
12080   # Make sure either enable_shared or enable_static is yes.
12081   test "$enable_shared" = yes || enable_static=yes
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12083 $as_echo "$enable_static" >&6; }
12084
12085
12086
12087
12088 fi
12089 ac_ext=c
12090 ac_cpp='$CPP $CPPFLAGS'
12091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12094
12095 CC="$lt_save_CC"
12096
12097       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12098     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12099     (test "X$CXX" != "Xg++"))) ; then
12100   ac_ext=cpp
12101 ac_cpp='$CXXCPP $CPPFLAGS'
12102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12106 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12107 if test -z "$CXXCPP"; then
12108   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111       # Double quotes because CXXCPP needs to be expanded
12112     for CXXCPP in "$CXX -E" "/lib/cpp"
12113     do
12114       ac_preproc_ok=false
12115 for ac_cxx_preproc_warn_flag in '' yes
12116 do
12117   # Use a header file that comes with gcc, so configuring glibc
12118   # with a fresh cross-compiler works.
12119   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120   # <limits.h> exists even on freestanding compilers.
12121   # On the NeXT, cc -E runs the code through the compiler's parser,
12122   # not just through cpp. "Syntax error" is here to catch this case.
12123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125 #ifdef __STDC__
12126 # include <limits.h>
12127 #else
12128 # include <assert.h>
12129 #endif
12130                      Syntax error
12131 _ACEOF
12132 if ac_fn_cxx_try_cpp "$LINENO"; then :
12133
12134 else
12135   # Broken: fails on valid input.
12136 continue
12137 fi
12138 rm -f conftest.err conftest.$ac_ext
12139
12140   # OK, works on sane cases.  Now check whether nonexistent headers
12141   # can be detected and how.
12142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h.  */
12144 #include <ac_nonexistent.h>
12145 _ACEOF
12146 if ac_fn_cxx_try_cpp "$LINENO"; then :
12147   # Broken: success on invalid input.
12148 continue
12149 else
12150   # Passes both tests.
12151 ac_preproc_ok=:
12152 break
12153 fi
12154 rm -f conftest.err conftest.$ac_ext
12155
12156 done
12157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12158 rm -f conftest.err conftest.$ac_ext
12159 if $ac_preproc_ok; then :
12160   break
12161 fi
12162
12163     done
12164     ac_cv_prog_CXXCPP=$CXXCPP
12165
12166 fi
12167   CXXCPP=$ac_cv_prog_CXXCPP
12168 else
12169   ac_cv_prog_CXXCPP=$CXXCPP
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12172 $as_echo "$CXXCPP" >&6; }
12173 ac_preproc_ok=false
12174 for ac_cxx_preproc_warn_flag in '' yes
12175 do
12176   # Use a header file that comes with gcc, so configuring glibc
12177   # with a fresh cross-compiler works.
12178   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12179   # <limits.h> exists even on freestanding compilers.
12180   # On the NeXT, cc -E runs the code through the compiler's parser,
12181   # not just through cpp. "Syntax error" is here to catch this case.
12182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h.  */
12184 #ifdef __STDC__
12185 # include <limits.h>
12186 #else
12187 # include <assert.h>
12188 #endif
12189                      Syntax error
12190 _ACEOF
12191 if ac_fn_cxx_try_cpp "$LINENO"; then :
12192
12193 else
12194   # Broken: fails on valid input.
12195 continue
12196 fi
12197 rm -f conftest.err conftest.$ac_ext
12198
12199   # OK, works on sane cases.  Now check whether nonexistent headers
12200   # can be detected and how.
12201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h.  */
12203 #include <ac_nonexistent.h>
12204 _ACEOF
12205 if ac_fn_cxx_try_cpp "$LINENO"; then :
12206   # Broken: success on invalid input.
12207 continue
12208 else
12209   # Passes both tests.
12210 ac_preproc_ok=:
12211 break
12212 fi
12213 rm -f conftest.err conftest.$ac_ext
12214
12215 done
12216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12217 rm -f conftest.err conftest.$ac_ext
12218 if $ac_preproc_ok; then :
12219
12220 else
12221   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12223 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12224 See \`config.log' for more details." "$LINENO" 5; }
12225 fi
12226
12227 ac_ext=c
12228 ac_cpp='$CPP $CPPFLAGS'
12229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12232
12233 else
12234   _lt_caught_CXX_error=yes
12235 fi
12236
12237 ac_ext=cpp
12238 ac_cpp='$CXXCPP $CPPFLAGS'
12239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12242
12243 archive_cmds_need_lc_CXX=no
12244 allow_undefined_flag_CXX=
12245 always_export_symbols_CXX=no
12246 archive_expsym_cmds_CXX=
12247 compiler_needs_object_CXX=no
12248 export_dynamic_flag_spec_CXX=
12249 hardcode_direct_CXX=no
12250 hardcode_direct_absolute_CXX=no
12251 hardcode_libdir_flag_spec_CXX=
12252 hardcode_libdir_flag_spec_ld_CXX=
12253 hardcode_libdir_separator_CXX=
12254 hardcode_minus_L_CXX=no
12255 hardcode_shlibpath_var_CXX=unsupported
12256 hardcode_automatic_CXX=no
12257 inherit_rpath_CXX=no
12258 module_cmds_CXX=
12259 module_expsym_cmds_CXX=
12260 link_all_deplibs_CXX=unknown
12261 old_archive_cmds_CXX=$old_archive_cmds
12262 reload_flag_CXX=$reload_flag
12263 reload_cmds_CXX=$reload_cmds
12264 no_undefined_flag_CXX=
12265 whole_archive_flag_spec_CXX=
12266 enable_shared_with_static_runtimes_CXX=no
12267
12268 # Source file extension for C++ test sources.
12269 ac_ext=cpp
12270
12271 # Object file extension for compiled C++ test sources.
12272 objext=o
12273 objext_CXX=$objext
12274
12275 # No sense in running all these tests if we already determined that
12276 # the CXX compiler isn't working.  Some variables (like enable_shared)
12277 # are currently assumed to apply to all compilers on this platform,
12278 # and will be corrupted by setting them based on a non-working compiler.
12279 if test "$_lt_caught_CXX_error" != yes; then
12280   # Code to be used in simple compile tests
12281   lt_simple_compile_test_code="int some_variable = 0;"
12282
12283   # Code to be used in simple link tests
12284   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12285
12286   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12287
12288
12289
12290
12291
12292
12293 # If no C compiler was specified, use CC.
12294 LTCC=${LTCC-"$CC"}
12295
12296 # If no C compiler flags were specified, use CFLAGS.
12297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12298
12299 # Allow CC to be a program name with arguments.
12300 compiler=$CC
12301
12302
12303   # save warnings/boilerplate of simple test code
12304   ac_outfile=conftest.$ac_objext
12305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12307 _lt_compiler_boilerplate=`cat conftest.err`
12308 $RM conftest*
12309
12310   ac_outfile=conftest.$ac_objext
12311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12313 _lt_linker_boilerplate=`cat conftest.err`
12314 $RM -r conftest*
12315
12316
12317   # Allow CC to be a program name with arguments.
12318   lt_save_CC=$CC
12319   lt_save_LD=$LD
12320   lt_save_GCC=$GCC
12321   GCC=$GXX
12322   lt_save_with_gnu_ld=$with_gnu_ld
12323   lt_save_path_LD=$lt_cv_path_LD
12324   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12325     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12326   else
12327     $as_unset lt_cv_prog_gnu_ld
12328   fi
12329   if test -n "${lt_cv_path_LDCXX+set}"; then
12330     lt_cv_path_LD=$lt_cv_path_LDCXX
12331   else
12332     $as_unset lt_cv_path_LD
12333   fi
12334   test -z "${LDCXX+set}" || LD=$LDCXX
12335   CC=${CXX-"c++"}
12336   compiler=$CC
12337   compiler_CXX=$CC
12338   for cc_temp in $compiler""; do
12339   case $cc_temp in
12340     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12341     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12342     \-*) ;;
12343     *) break;;
12344   esac
12345 done
12346 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12347
12348
12349   if test -n "$compiler"; then
12350     # We don't want -fno-exception when compiling C++ code, so set the
12351     # no_builtin_flag separately
12352     if test "$GXX" = yes; then
12353       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12354     else
12355       lt_prog_compiler_no_builtin_flag_CXX=
12356     fi
12357
12358     if test "$GXX" = yes; then
12359       # Set up default GNU C++ configuration
12360
12361
12362
12363 # Check whether --with-gnu-ld was given.
12364 if test "${with_gnu_ld+set}" = set; then :
12365   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12366 else
12367   with_gnu_ld=no
12368 fi
12369
12370 ac_prog=ld
12371 if test "$GCC" = yes; then
12372   # Check if gcc -print-prog-name=ld gives a path.
12373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12374 $as_echo_n "checking for ld used by $CC... " >&6; }
12375   case $host in
12376   *-*-mingw*)
12377     # gcc leaves a trailing carriage return which upsets mingw
12378     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12379   *)
12380     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12381   esac
12382   case $ac_prog in
12383     # Accept absolute paths.
12384     [\\/]* | ?:[\\/]*)
12385       re_direlt='/[^/][^/]*/\.\./'
12386       # Canonicalize the pathname of ld
12387       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12388       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12389         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12390       done
12391       test -z "$LD" && LD="$ac_prog"
12392       ;;
12393   "")
12394     # If it fails, then pretend we aren't using GCC.
12395     ac_prog=ld
12396     ;;
12397   *)
12398     # If it is relative, then search for the first ld in PATH.
12399     with_gnu_ld=unknown
12400     ;;
12401   esac
12402 elif test "$with_gnu_ld" = yes; then
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12404 $as_echo_n "checking for GNU ld... " >&6; }
12405 else
12406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12407 $as_echo_n "checking for non-GNU ld... " >&6; }
12408 fi
12409 if test "${lt_cv_path_LD+set}" = set; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   if test -z "$LD"; then
12413   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12414   for ac_dir in $PATH; do
12415     IFS="$lt_save_ifs"
12416     test -z "$ac_dir" && ac_dir=.
12417     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12418       lt_cv_path_LD="$ac_dir/$ac_prog"
12419       # Check to see if the program is GNU ld.  I'd rather use --version,
12420       # but apparently some variants of GNU ld only accept -v.
12421       # Break only if it was the GNU/non-GNU ld that we prefer.
12422       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12423       *GNU* | *'with BFD'*)
12424         test "$with_gnu_ld" != no && break
12425         ;;
12426       *)
12427         test "$with_gnu_ld" != yes && break
12428         ;;
12429       esac
12430     fi
12431   done
12432   IFS="$lt_save_ifs"
12433 else
12434   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12435 fi
12436 fi
12437
12438 LD="$lt_cv_path_LD"
12439 if test -n "$LD"; then
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12441 $as_echo "$LD" >&6; }
12442 else
12443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12445 fi
12446 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12448 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12449 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12453 case `$LD -v 2>&1 </dev/null` in
12454 *GNU* | *'with BFD'*)
12455   lt_cv_prog_gnu_ld=yes
12456   ;;
12457 *)
12458   lt_cv_prog_gnu_ld=no
12459   ;;
12460 esac
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12463 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12464 with_gnu_ld=$lt_cv_prog_gnu_ld
12465
12466
12467
12468
12469
12470
12471
12472       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12473       # archiving commands below assume that GNU ld is being used.
12474       if test "$with_gnu_ld" = yes; then
12475         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12476         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12477
12478         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12479         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12480
12481         # If archive_cmds runs LD, not CC, wlarc should be empty
12482         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12483         #     investigate it a little bit more. (MM)
12484         wlarc='${wl}'
12485
12486         # ancient GNU ld didn't support --whole-archive et. al.
12487         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12488           $GREP 'no-whole-archive' > /dev/null; then
12489           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12490         else
12491           whole_archive_flag_spec_CXX=
12492         fi
12493       else
12494         with_gnu_ld=no
12495         wlarc=
12496
12497         # A generic and very simple default shared library creation
12498         # command for GNU C++ for the case where it uses the native
12499         # linker, instead of GNU ld.  If possible, this setting should
12500         # overridden to take advantage of the native linker features on
12501         # the platform it is being used on.
12502         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12503       fi
12504
12505       # Commands to make compiler produce verbose output that lists
12506       # what "hidden" libraries, object files and flags are used when
12507       # linking a shared library.
12508       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12509
12510     else
12511       GXX=no
12512       with_gnu_ld=no
12513       wlarc=
12514     fi
12515
12516     # PORTME: fill in a description of your system's C++ link characteristics
12517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12518 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12519     ld_shlibs_CXX=yes
12520     case $host_os in
12521       aix3*)
12522         # FIXME: insert proper C++ library support
12523         ld_shlibs_CXX=no
12524         ;;
12525       aix[4-9]*)
12526         if test "$host_cpu" = ia64; then
12527           # On IA64, the linker does run time linking by default, so we don't
12528           # have to do anything special.
12529           aix_use_runtimelinking=no
12530           exp_sym_flag='-Bexport'
12531           no_entry_flag=""
12532         else
12533           aix_use_runtimelinking=no
12534
12535           # Test if we are trying to use run time linking or normal
12536           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12537           # need to do runtime linking.
12538           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12539             for ld_flag in $LDFLAGS; do
12540               case $ld_flag in
12541               *-brtl*)
12542                 aix_use_runtimelinking=yes
12543                 break
12544                 ;;
12545               esac
12546             done
12547             ;;
12548           esac
12549
12550           exp_sym_flag='-bexport'
12551           no_entry_flag='-bnoentry'
12552         fi
12553
12554         # When large executables or shared objects are built, AIX ld can
12555         # have problems creating the table of contents.  If linking a library
12556         # or program results in "error TOC overflow" add -mminimal-toc to
12557         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12558         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12559
12560         archive_cmds_CXX=''
12561         hardcode_direct_CXX=yes
12562         hardcode_direct_absolute_CXX=yes
12563         hardcode_libdir_separator_CXX=':'
12564         link_all_deplibs_CXX=yes
12565         file_list_spec_CXX='${wl}-f,'
12566
12567         if test "$GXX" = yes; then
12568           case $host_os in aix4.[012]|aix4.[012].*)
12569           # We only want to do this on AIX 4.2 and lower, the check
12570           # below for broken collect2 doesn't work under 4.3+
12571           collect2name=`${CC} -print-prog-name=collect2`
12572           if test -f "$collect2name" &&
12573              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12574           then
12575             # We have reworked collect2
12576             :
12577           else
12578             # We have old collect2
12579             hardcode_direct_CXX=unsupported
12580             # It fails to find uninstalled libraries when the uninstalled
12581             # path is not listed in the libpath.  Setting hardcode_minus_L
12582             # to unsupported forces relinking
12583             hardcode_minus_L_CXX=yes
12584             hardcode_libdir_flag_spec_CXX='-L$libdir'
12585             hardcode_libdir_separator_CXX=
12586           fi
12587           esac
12588           shared_flag='-shared'
12589           if test "$aix_use_runtimelinking" = yes; then
12590             shared_flag="$shared_flag "'${wl}-G'
12591           fi
12592         else
12593           # not using gcc
12594           if test "$host_cpu" = ia64; then
12595           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12596           # chokes on -Wl,-G. The following line is correct:
12597           shared_flag='-G'
12598           else
12599             if test "$aix_use_runtimelinking" = yes; then
12600               shared_flag='${wl}-G'
12601             else
12602               shared_flag='${wl}-bM:SRE'
12603             fi
12604           fi
12605         fi
12606
12607         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12608         # It seems that -bexpall does not export symbols beginning with
12609         # underscore (_), so it is better to generate a list of symbols to
12610         # export.
12611         always_export_symbols_CXX=yes
12612         if test "$aix_use_runtimelinking" = yes; then
12613           # Warning - without using the other runtime loading flags (-brtl),
12614           # -berok will link without error, but may produce a broken library.
12615           allow_undefined_flag_CXX='-berok'
12616           # Determine the default libpath from the value encoded in an empty
12617           # executable.
12618           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h.  */
12620
12621 int
12622 main ()
12623 {
12624
12625   ;
12626   return 0;
12627 }
12628 _ACEOF
12629 if ac_fn_cxx_try_link "$LINENO"; then :
12630
12631 lt_aix_libpath_sed='
12632     /Import File Strings/,/^$/ {
12633         /^0/ {
12634             s/^0  *\(.*\)$/\1/
12635             p
12636         }
12637     }'
12638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639 # Check for a 64-bit object if we didn't find anything.
12640 if test -z "$aix_libpath"; then
12641   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642 fi
12643 fi
12644 rm -f core conftest.err conftest.$ac_objext \
12645     conftest$ac_exeext conftest.$ac_ext
12646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12647
12648           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12649
12650           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"
12651         else
12652           if test "$host_cpu" = ia64; then
12653             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12654             allow_undefined_flag_CXX="-z nodefs"
12655             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"
12656           else
12657             # Determine the default libpath from the value encoded in an
12658             # empty executable.
12659             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h.  */
12661
12662 int
12663 main ()
12664 {
12665
12666   ;
12667   return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_cxx_try_link "$LINENO"; then :
12671
12672 lt_aix_libpath_sed='
12673     /Import File Strings/,/^$/ {
12674         /^0/ {
12675             s/^0  *\(.*\)$/\1/
12676             p
12677         }
12678     }'
12679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12680 # Check for a 64-bit object if we didn't find anything.
12681 if test -z "$aix_libpath"; then
12682   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12683 fi
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext \
12686     conftest$ac_exeext conftest.$ac_ext
12687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12688
12689             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12690             # Warning - without using the other run time loading flags,
12691             # -berok will link without error, but may produce a broken library.
12692             no_undefined_flag_CXX=' ${wl}-bernotok'
12693             allow_undefined_flag_CXX=' ${wl}-berok'
12694             if test "$with_gnu_ld" = yes; then
12695               # We only use this code for GNU lds that support --whole-archive.
12696               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12697             else
12698               # Exported symbols can be pulled into shared objects from archives
12699               whole_archive_flag_spec_CXX='$convenience'
12700             fi
12701             archive_cmds_need_lc_CXX=yes
12702             # This is similar to how AIX traditionally builds its shared
12703             # libraries.
12704             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'
12705           fi
12706         fi
12707         ;;
12708
12709       beos*)
12710         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12711           allow_undefined_flag_CXX=unsupported
12712           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12713           # support --undefined.  This deserves some investigation.  FIXME
12714           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12715         else
12716           ld_shlibs_CXX=no
12717         fi
12718         ;;
12719
12720       chorus*)
12721         case $cc_basename in
12722           *)
12723           # FIXME: insert proper C++ library support
12724           ld_shlibs_CXX=no
12725           ;;
12726         esac
12727         ;;
12728
12729       cygwin* | mingw* | pw32* | cegcc*)
12730         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12731         # as there is no search path for DLLs.
12732         hardcode_libdir_flag_spec_CXX='-L$libdir'
12733         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12734         allow_undefined_flag_CXX=unsupported
12735         always_export_symbols_CXX=no
12736         enable_shared_with_static_runtimes_CXX=yes
12737
12738         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12739           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'
12740           # If the export-symbols file already is a .def file (1st line
12741           # is EXPORTS), use it as is; otherwise, prepend...
12742           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12743             cp $export_symbols $output_objdir/$soname.def;
12744           else
12745             echo EXPORTS > $output_objdir/$soname.def;
12746             cat $export_symbols >> $output_objdir/$soname.def;
12747           fi~
12748           $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'
12749         else
12750           ld_shlibs_CXX=no
12751         fi
12752         ;;
12753       darwin* | rhapsody*)
12754
12755
12756   archive_cmds_need_lc_CXX=no
12757   hardcode_direct_CXX=no
12758   hardcode_automatic_CXX=yes
12759   hardcode_shlibpath_var_CXX=unsupported
12760   if test "$lt_cv_ld_force_load" = "yes"; then
12761     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\"`'
12762   else
12763     whole_archive_flag_spec_CXX=''
12764   fi
12765   link_all_deplibs_CXX=yes
12766   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12767   case $cc_basename in
12768      ifort*) _lt_dar_can_shared=yes ;;
12769      *) _lt_dar_can_shared=$GCC ;;
12770   esac
12771   if test "$_lt_dar_can_shared" = "yes"; then
12772     output_verbose_link_cmd=func_echo_all
12773     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}"
12774     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12775     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}"
12776     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}"
12777        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12778       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}"
12779       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}"
12780     fi
12781
12782   else
12783   ld_shlibs_CXX=no
12784   fi
12785
12786         ;;
12787
12788       dgux*)
12789         case $cc_basename in
12790           ec++*)
12791             # FIXME: insert proper C++ library support
12792             ld_shlibs_CXX=no
12793             ;;
12794           ghcx*)
12795             # Green Hills C++ Compiler
12796             # FIXME: insert proper C++ library support
12797             ld_shlibs_CXX=no
12798             ;;
12799           *)
12800             # FIXME: insert proper C++ library support
12801             ld_shlibs_CXX=no
12802             ;;
12803         esac
12804         ;;
12805
12806       freebsd2.*)
12807         # C++ shared libraries reported to be fairly broken before
12808         # switch to ELF
12809         ld_shlibs_CXX=no
12810         ;;
12811
12812       freebsd-elf*)
12813         archive_cmds_need_lc_CXX=no
12814         ;;
12815
12816       freebsd* | dragonfly*)
12817         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12818         # conventions
12819         ld_shlibs_CXX=yes
12820         ;;
12821
12822       gnu*)
12823         ;;
12824
12825       haiku*)
12826         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12827         link_all_deplibs_CXX=yes
12828         ;;
12829
12830       hpux9*)
12831         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12832         hardcode_libdir_separator_CXX=:
12833         export_dynamic_flag_spec_CXX='${wl}-E'
12834         hardcode_direct_CXX=yes
12835         hardcode_minus_L_CXX=yes # Not in the search PATH,
12836                                              # but as the default
12837                                              # location of the library.
12838
12839         case $cc_basename in
12840           CC*)
12841             # FIXME: insert proper C++ library support
12842             ld_shlibs_CXX=no
12843             ;;
12844           aCC*)
12845             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'
12846             # Commands to make compiler produce verbose output that lists
12847             # what "hidden" libraries, object files and flags are used when
12848             # linking a shared library.
12849             #
12850             # There doesn't appear to be a way to prevent this compiler from
12851             # explicitly linking system object files so we need to strip them
12852             # from the output so that they don't get included in the library
12853             # dependencies.
12854             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"'
12855             ;;
12856           *)
12857             if test "$GXX" = yes; then
12858               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12859             else
12860               # FIXME: insert proper C++ library support
12861               ld_shlibs_CXX=no
12862             fi
12863             ;;
12864         esac
12865         ;;
12866
12867       hpux10*|hpux11*)
12868         if test $with_gnu_ld = no; then
12869           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12870           hardcode_libdir_separator_CXX=:
12871
12872           case $host_cpu in
12873             hppa*64*|ia64*)
12874               ;;
12875             *)
12876               export_dynamic_flag_spec_CXX='${wl}-E'
12877               ;;
12878           esac
12879         fi
12880         case $host_cpu in
12881           hppa*64*|ia64*)
12882             hardcode_direct_CXX=no
12883             hardcode_shlibpath_var_CXX=no
12884             ;;
12885           *)
12886             hardcode_direct_CXX=yes
12887             hardcode_direct_absolute_CXX=yes
12888             hardcode_minus_L_CXX=yes # Not in the search PATH,
12889                                                  # but as the default
12890                                                  # location of the library.
12891             ;;
12892         esac
12893
12894         case $cc_basename in
12895           CC*)
12896             # FIXME: insert proper C++ library support
12897             ld_shlibs_CXX=no
12898             ;;
12899           aCC*)
12900             case $host_cpu in
12901               hppa*64*)
12902                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903                 ;;
12904               ia64*)
12905                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12906                 ;;
12907               *)
12908                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12909                 ;;
12910             esac
12911             # Commands to make compiler produce verbose output that lists
12912             # what "hidden" libraries, object files and flags are used when
12913             # linking a shared library.
12914             #
12915             # There doesn't appear to be a way to prevent this compiler from
12916             # explicitly linking system object files so we need to strip them
12917             # from the output so that they don't get included in the library
12918             # dependencies.
12919             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"'
12920             ;;
12921           *)
12922             if test "$GXX" = yes; then
12923               if test $with_gnu_ld = no; then
12924                 case $host_cpu in
12925                   hppa*64*)
12926                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12927                     ;;
12928                   ia64*)
12929                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12930                     ;;
12931                   *)
12932                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12933                     ;;
12934                 esac
12935               fi
12936             else
12937               # FIXME: insert proper C++ library support
12938               ld_shlibs_CXX=no
12939             fi
12940             ;;
12941         esac
12942         ;;
12943
12944       interix[3-9]*)
12945         hardcode_direct_CXX=no
12946         hardcode_shlibpath_var_CXX=no
12947         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12948         export_dynamic_flag_spec_CXX='${wl}-E'
12949         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12950         # Instead, shared libraries are loaded at an image base (0x10000000 by
12951         # default) and relocated if they conflict, which is a slow very memory
12952         # consuming and fragmenting process.  To avoid this, we pick a random,
12953         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12954         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12955         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'
12956         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'
12957         ;;
12958       irix5* | irix6*)
12959         case $cc_basename in
12960           CC*)
12961             # SGI C++
12962             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'
12963
12964             # Archives containing C++ object files must be created using
12965             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12966             # necessary to make sure instantiated templates are included
12967             # in the archive.
12968             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12969             ;;
12970           *)
12971             if test "$GXX" = yes; then
12972               if test "$with_gnu_ld" = no; then
12973                 archive_cmds_CXX='$CC -shared -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'
12974               else
12975                 archive_cmds_CXX='$CC -shared -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'
12976               fi
12977             fi
12978             link_all_deplibs_CXX=yes
12979             ;;
12980         esac
12981         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12982         hardcode_libdir_separator_CXX=:
12983         inherit_rpath_CXX=yes
12984         ;;
12985
12986       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12987         case $cc_basename in
12988           KCC*)
12989             # Kuck and Associates, Inc. (KAI) C++ Compiler
12990
12991             # KCC will only create a shared library if the output file
12992             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12993             # to its proper name (with version) after linking.
12994             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'
12995             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'
12996             # Commands to make compiler produce verbose output that lists
12997             # what "hidden" libraries, object files and flags are used when
12998             # linking a shared library.
12999             #
13000             # There doesn't appear to be a way to prevent this compiler from
13001             # explicitly linking system object files so we need to strip them
13002             # from the output so that they don't get included in the library
13003             # dependencies.
13004             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"'
13005
13006             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13007             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13008
13009             # Archives containing C++ object files must be created using
13010             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13011             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13012             ;;
13013           icpc* | ecpc* )
13014             # Intel C++
13015             with_gnu_ld=yes
13016             # version 8.0 and above of icpc choke on multiply defined symbols
13017             # if we add $predep_objects and $postdep_objects, however 7.1 and
13018             # earlier do not add the objects themselves.
13019             case `$CC -V 2>&1` in
13020               *"Version 7."*)
13021                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022                 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'
13023                 ;;
13024               *)  # Version 8.0 or newer
13025                 tmp_idyn=
13026                 case $host_cpu in
13027                   ia64*) tmp_idyn=' -i_dynamic';;
13028                 esac
13029                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13030                 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'
13031                 ;;
13032             esac
13033             archive_cmds_need_lc_CXX=no
13034             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13035             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13036             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13037             ;;
13038           pgCC* | pgcpp*)
13039             # Portland Group C++ compiler
13040             case `$CC -V` in
13041             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13042               prelink_cmds_CXX='tpldir=Template.dir~
13043                 rm -rf $tpldir~
13044                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13045                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13046               old_archive_cmds_CXX='tpldir=Template.dir~
13047                 rm -rf $tpldir~
13048                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13049                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13050                 $RANLIB $oldlib'
13051               archive_cmds_CXX='tpldir=Template.dir~
13052                 rm -rf $tpldir~
13053                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13054                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13055               archive_expsym_cmds_CXX='tpldir=Template.dir~
13056                 rm -rf $tpldir~
13057                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13058                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13059               ;;
13060             *) # Version 6 and above use weak symbols
13061               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13062               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'
13063               ;;
13064             esac
13065
13066             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13067             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13068             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'
13069             ;;
13070           cxx*)
13071             # Compaq C++
13072             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13073             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'
13074
13075             runpath_var=LD_RUN_PATH
13076             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13077             hardcode_libdir_separator_CXX=:
13078
13079             # Commands to make compiler produce verbose output that lists
13080             # what "hidden" libraries, object files and flags are used when
13081             # linking a shared library.
13082             #
13083             # There doesn't appear to be a way to prevent this compiler from
13084             # explicitly linking system object files so we need to strip them
13085             # from the output so that they don't get included in the library
13086             # dependencies.
13087             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'
13088             ;;
13089           xl* | mpixl* | bgxl*)
13090             # IBM XL 8.0 on PPC, with GNU ld
13091             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13092             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13093             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13094             if test "x$supports_anon_versioning" = xyes; then
13095               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13096                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13097                 echo "local: *; };" >> $output_objdir/$libname.ver~
13098                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13099             fi
13100             ;;
13101           *)
13102             case `$CC -V 2>&1 | sed 5q` in
13103             *Sun\ C*)
13104               # Sun C++ 5.9
13105               no_undefined_flag_CXX=' -zdefs'
13106               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13107               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'
13108               hardcode_libdir_flag_spec_CXX='-R$libdir'
13109               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'
13110               compiler_needs_object_CXX=yes
13111
13112               # Not sure whether something based on
13113               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13114               # would be better.
13115               output_verbose_link_cmd='func_echo_all'
13116
13117               # Archives containing C++ object files must be created using
13118               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13119               # necessary to make sure instantiated templates are included
13120               # in the archive.
13121               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13122               ;;
13123             esac
13124             ;;
13125         esac
13126         ;;
13127
13128       lynxos*)
13129         # FIXME: insert proper C++ library support
13130         ld_shlibs_CXX=no
13131         ;;
13132
13133       m88k*)
13134         # FIXME: insert proper C++ library support
13135         ld_shlibs_CXX=no
13136         ;;
13137
13138       mvs*)
13139         case $cc_basename in
13140           cxx*)
13141             # FIXME: insert proper C++ library support
13142             ld_shlibs_CXX=no
13143             ;;
13144           *)
13145             # FIXME: insert proper C++ library support
13146             ld_shlibs_CXX=no
13147             ;;
13148         esac
13149         ;;
13150
13151       netbsd*)
13152         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13153           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13154           wlarc=
13155           hardcode_libdir_flag_spec_CXX='-R$libdir'
13156           hardcode_direct_CXX=yes
13157           hardcode_shlibpath_var_CXX=no
13158         fi
13159         # Workaround some broken pre-1.5 toolchains
13160         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13161         ;;
13162
13163       *nto* | *qnx*)
13164         ld_shlibs_CXX=yes
13165         ;;
13166
13167       openbsd2*)
13168         # C++ shared libraries are fairly broken
13169         ld_shlibs_CXX=no
13170         ;;
13171
13172       openbsd*)
13173         if test -f /usr/libexec/ld.so; then
13174           hardcode_direct_CXX=yes
13175           hardcode_shlibpath_var_CXX=no
13176           hardcode_direct_absolute_CXX=yes
13177           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13178           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13179           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13180             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13181             export_dynamic_flag_spec_CXX='${wl}-E'
13182             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13183           fi
13184           output_verbose_link_cmd=func_echo_all
13185         else
13186           ld_shlibs_CXX=no
13187         fi
13188         ;;
13189
13190       osf3* | osf4* | osf5*)
13191         case $cc_basename in
13192           KCC*)
13193             # Kuck and Associates, Inc. (KAI) C++ Compiler
13194
13195             # KCC will only create a shared library if the output file
13196             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13197             # to its proper name (with version) after linking.
13198             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'
13199
13200             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13201             hardcode_libdir_separator_CXX=:
13202
13203             # Archives containing C++ object files must be created using
13204             # the KAI C++ compiler.
13205             case $host in
13206               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13207               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13208             esac
13209             ;;
13210           RCC*)
13211             # Rational C++ 2.4.1
13212             # FIXME: insert proper C++ library support
13213             ld_shlibs_CXX=no
13214             ;;
13215           cxx*)
13216             case $host in
13217               osf3*)
13218                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13219                 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'
13220                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13221                 ;;
13222               *)
13223                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13224                 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'
13225                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13226                   echo "-hidden">> $lib.exp~
13227                   $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~
13228                   $RM $lib.exp'
13229                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13230                 ;;
13231             esac
13232
13233             hardcode_libdir_separator_CXX=:
13234
13235             # Commands to make compiler produce verbose output that lists
13236             # what "hidden" libraries, object files and flags are used when
13237             # linking a shared library.
13238             #
13239             # There doesn't appear to be a way to prevent this compiler from
13240             # explicitly linking system object files so we need to strip them
13241             # from the output so that they don't get included in the library
13242             # dependencies.
13243             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"'
13244             ;;
13245           *)
13246             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13247               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13248               case $host in
13249                 osf3*)
13250                   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'
13251                   ;;
13252                 *)
13253                   archive_cmds_CXX='$CC -shared -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'
13254                   ;;
13255               esac
13256
13257               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13258               hardcode_libdir_separator_CXX=:
13259
13260               # Commands to make compiler produce verbose output that lists
13261               # what "hidden" libraries, object files and flags are used when
13262               # linking a shared library.
13263               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13264
13265             else
13266               # FIXME: insert proper C++ library support
13267               ld_shlibs_CXX=no
13268             fi
13269             ;;
13270         esac
13271         ;;
13272
13273       psos*)
13274         # FIXME: insert proper C++ library support
13275         ld_shlibs_CXX=no
13276         ;;
13277
13278       sunos4*)
13279         case $cc_basename in
13280           CC*)
13281             # Sun C++ 4.x
13282             # FIXME: insert proper C++ library support
13283             ld_shlibs_CXX=no
13284             ;;
13285           lcc*)
13286             # Lucid
13287             # FIXME: insert proper C++ library support
13288             ld_shlibs_CXX=no
13289             ;;
13290           *)
13291             # FIXME: insert proper C++ library support
13292             ld_shlibs_CXX=no
13293             ;;
13294         esac
13295         ;;
13296
13297       solaris*)
13298         case $cc_basename in
13299           CC*)
13300             # Sun C++ 4.2, 5.x and Centerline C++
13301             archive_cmds_need_lc_CXX=yes
13302             no_undefined_flag_CXX=' -zdefs'
13303             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13304             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13305               $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'
13306
13307             hardcode_libdir_flag_spec_CXX='-R$libdir'
13308             hardcode_shlibpath_var_CXX=no
13309             case $host_os in
13310               solaris2.[0-5] | solaris2.[0-5].*) ;;
13311               *)
13312                 # The compiler driver will combine and reorder linker options,
13313                 # but understands `-z linker_flag'.
13314                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13315                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13316                 ;;
13317             esac
13318             link_all_deplibs_CXX=yes
13319
13320             output_verbose_link_cmd='func_echo_all'
13321
13322             # Archives containing C++ object files must be created using
13323             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13324             # necessary to make sure instantiated templates are included
13325             # in the archive.
13326             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13327             ;;
13328           gcx*)
13329             # Green Hills C++ Compiler
13330             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13331
13332             # The C++ compiler must be used to create the archive.
13333             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13334             ;;
13335           *)
13336             # GNU C++ compiler with Solaris linker
13337             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13338               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13339               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13340                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13341                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13342                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13343
13344                 # Commands to make compiler produce verbose output that lists
13345                 # what "hidden" libraries, object files and flags are used when
13346                 # linking a shared library.
13347                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13348               else
13349                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13350                 # platform.
13351                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13352                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13353                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13354
13355                 # Commands to make compiler produce verbose output that lists
13356                 # what "hidden" libraries, object files and flags are used when
13357                 # linking a shared library.
13358                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13359               fi
13360
13361               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13362               case $host_os in
13363                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13364                 *)
13365                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13366                   ;;
13367               esac
13368             fi
13369             ;;
13370         esac
13371         ;;
13372
13373     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13374       no_undefined_flag_CXX='${wl}-z,text'
13375       archive_cmds_need_lc_CXX=no
13376       hardcode_shlibpath_var_CXX=no
13377       runpath_var='LD_RUN_PATH'
13378
13379       case $cc_basename in
13380         CC*)
13381           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13382           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13383           ;;
13384         *)
13385           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387           ;;
13388       esac
13389       ;;
13390
13391       sysv5* | sco3.2v5* | sco5v6*)
13392         # Note: We can NOT use -z defs as we might desire, because we do not
13393         # link with -lc, and that would cause any symbols used from libc to
13394         # always be unresolved, which means just about no library would
13395         # ever link correctly.  If we're not using GNU ld we use -z text
13396         # though, which does catch some bad symbols but isn't as heavy-handed
13397         # as -z defs.
13398         no_undefined_flag_CXX='${wl}-z,text'
13399         allow_undefined_flag_CXX='${wl}-z,nodefs'
13400         archive_cmds_need_lc_CXX=no
13401         hardcode_shlibpath_var_CXX=no
13402         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13403         hardcode_libdir_separator_CXX=':'
13404         link_all_deplibs_CXX=yes
13405         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13406         runpath_var='LD_RUN_PATH'
13407
13408         case $cc_basename in
13409           CC*)
13410             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13411             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13412             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13413               '"$old_archive_cmds_CXX"
13414             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13415               '"$reload_cmds_CXX"
13416             ;;
13417           *)
13418             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13419             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13420             ;;
13421         esac
13422       ;;
13423
13424       tandem*)
13425         case $cc_basename in
13426           NCC*)
13427             # NonStop-UX NCC 3.20
13428             # FIXME: insert proper C++ library support
13429             ld_shlibs_CXX=no
13430             ;;
13431           *)
13432             # FIXME: insert proper C++ library support
13433             ld_shlibs_CXX=no
13434             ;;
13435         esac
13436         ;;
13437
13438       vxworks*)
13439         # FIXME: insert proper C++ library support
13440         ld_shlibs_CXX=no
13441         ;;
13442
13443       *)
13444         # FIXME: insert proper C++ library support
13445         ld_shlibs_CXX=no
13446         ;;
13447     esac
13448
13449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13450 $as_echo "$ld_shlibs_CXX" >&6; }
13451     test "$ld_shlibs_CXX" = no && can_build_shared=no
13452
13453     GCC_CXX="$GXX"
13454     LD_CXX="$LD"
13455
13456     ## CAVEAT EMPTOR:
13457     ## There is no encapsulation within the following macros, do not change
13458     ## the running order or otherwise move them around unless you know exactly
13459     ## what you are doing...
13460     # Dependencies to place before and after the object being linked:
13461 predep_objects_CXX=
13462 postdep_objects_CXX=
13463 predeps_CXX=
13464 postdeps_CXX=
13465 compiler_lib_search_path_CXX=
13466
13467 cat > conftest.$ac_ext <<_LT_EOF
13468 class Foo
13469 {
13470 public:
13471   Foo (void) { a = 0; }
13472 private:
13473   int a;
13474 };
13475 _LT_EOF
13476
13477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13478   (eval $ac_compile) 2>&5
13479   ac_status=$?
13480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13481   test $ac_status = 0; }; then
13482   # Parse the compiler output and extract the necessary
13483   # objects, libraries and library flags.
13484
13485   # Sentinel used to keep track of whether or not we are before
13486   # the conftest object file.
13487   pre_test_object_deps_done=no
13488
13489   for p in `eval "$output_verbose_link_cmd"`; do
13490     case $p in
13491
13492     -L* | -R* | -l*)
13493        # Some compilers place space between "-{L,R}" and the path.
13494        # Remove the space.
13495        if test $p = "-L" ||
13496           test $p = "-R"; then
13497          prev=$p
13498          continue
13499        else
13500          prev=
13501        fi
13502
13503        if test "$pre_test_object_deps_done" = no; then
13504          case $p in
13505          -L* | -R*)
13506            # Internal compiler library paths should come after those
13507            # provided the user.  The postdeps already come after the
13508            # user supplied libs so there is no need to process them.
13509            if test -z "$compiler_lib_search_path_CXX"; then
13510              compiler_lib_search_path_CXX="${prev}${p}"
13511            else
13512              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13513            fi
13514            ;;
13515          # The "-l" case would never come before the object being
13516          # linked, so don't bother handling this case.
13517          esac
13518        else
13519          if test -z "$postdeps_CXX"; then
13520            postdeps_CXX="${prev}${p}"
13521          else
13522            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13523          fi
13524        fi
13525        ;;
13526
13527     *.$objext)
13528        # This assumes that the test object file only shows up
13529        # once in the compiler output.
13530        if test "$p" = "conftest.$objext"; then
13531          pre_test_object_deps_done=yes
13532          continue
13533        fi
13534
13535        if test "$pre_test_object_deps_done" = no; then
13536          if test -z "$predep_objects_CXX"; then
13537            predep_objects_CXX="$p"
13538          else
13539            predep_objects_CXX="$predep_objects_CXX $p"
13540          fi
13541        else
13542          if test -z "$postdep_objects_CXX"; then
13543            postdep_objects_CXX="$p"
13544          else
13545            postdep_objects_CXX="$postdep_objects_CXX $p"
13546          fi
13547        fi
13548        ;;
13549
13550     *) ;; # Ignore the rest.
13551
13552     esac
13553   done
13554
13555   # Clean up.
13556   rm -f a.out a.exe
13557 else
13558   echo "libtool.m4: error: problem compiling CXX test program"
13559 fi
13560
13561 $RM -f confest.$objext
13562
13563 # PORTME: override above test on systems where it is broken
13564 case $host_os in
13565 interix[3-9]*)
13566   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13567   # hack all around it, let's just trust "g++" to DTRT.
13568   predep_objects_CXX=
13569   postdep_objects_CXX=
13570   postdeps_CXX=
13571   ;;
13572
13573 linux*)
13574   case `$CC -V 2>&1 | sed 5q` in
13575   *Sun\ C*)
13576     # Sun C++ 5.9
13577
13578     # The more standards-conforming stlport4 library is
13579     # incompatible with the Cstd library. Avoid specifying
13580     # it if it's in CXXFLAGS. Ignore libCrun as
13581     # -library=stlport4 depends on it.
13582     case " $CXX $CXXFLAGS " in
13583     *" -library=stlport4 "*)
13584       solaris_use_stlport4=yes
13585       ;;
13586     esac
13587
13588     if test "$solaris_use_stlport4" != yes; then
13589       postdeps_CXX='-library=Cstd -library=Crun'
13590     fi
13591     ;;
13592   esac
13593   ;;
13594
13595 solaris*)
13596   case $cc_basename in
13597   CC*)
13598     # The more standards-conforming stlport4 library is
13599     # incompatible with the Cstd library. Avoid specifying
13600     # it if it's in CXXFLAGS. Ignore libCrun as
13601     # -library=stlport4 depends on it.
13602     case " $CXX $CXXFLAGS " in
13603     *" -library=stlport4 "*)
13604       solaris_use_stlport4=yes
13605       ;;
13606     esac
13607
13608     # Adding this requires a known-good setup of shared libraries for
13609     # Sun compiler versions before 5.6, else PIC objects from an old
13610     # archive will be linked into the output, leading to subtle bugs.
13611     if test "$solaris_use_stlport4" != yes; then
13612       postdeps_CXX='-library=Cstd -library=Crun'
13613     fi
13614     ;;
13615   esac
13616   ;;
13617 esac
13618
13619
13620 case " $postdeps_CXX " in
13621 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13622 esac
13623  compiler_lib_search_dirs_CXX=
13624 if test -n "${compiler_lib_search_path_CXX}"; then
13625  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13626 fi
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658     lt_prog_compiler_wl_CXX=
13659 lt_prog_compiler_pic_CXX=
13660 lt_prog_compiler_static_CXX=
13661
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13663 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13664
13665   # C++ specific cases for pic, static, wl, etc.
13666   if test "$GXX" = yes; then
13667     lt_prog_compiler_wl_CXX='-Wl,'
13668     lt_prog_compiler_static_CXX='-static'
13669
13670     case $host_os in
13671     aix*)
13672       # All AIX code is PIC.
13673       if test "$host_cpu" = ia64; then
13674         # AIX 5 now supports IA64 processor
13675         lt_prog_compiler_static_CXX='-Bstatic'
13676       fi
13677       ;;
13678
13679     amigaos*)
13680       case $host_cpu in
13681       powerpc)
13682             # see comment about AmigaOS4 .so support
13683             lt_prog_compiler_pic_CXX='-fPIC'
13684         ;;
13685       m68k)
13686             # FIXME: we need at least 68020 code to build shared libraries, but
13687             # adding the `-m68020' flag to GCC prevents building anything better,
13688             # like `-m68040'.
13689             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13690         ;;
13691       esac
13692       ;;
13693
13694     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13695       # PIC is the default for these OSes.
13696       ;;
13697     mingw* | cygwin* | os2* | pw32* | cegcc*)
13698       # This hack is so that the source file can tell whether it is being
13699       # built for inclusion in a dll (and should export symbols for example).
13700       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13701       # (--disable-auto-import) libraries
13702       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13703       ;;
13704     darwin* | rhapsody*)
13705       # PIC is the default on this platform
13706       # Common symbols not allowed in MH_DYLIB files
13707       lt_prog_compiler_pic_CXX='-fno-common'
13708       ;;
13709     *djgpp*)
13710       # DJGPP does not support shared libraries at all
13711       lt_prog_compiler_pic_CXX=
13712       ;;
13713     haiku*)
13714       # PIC is the default for Haiku.
13715       # The "-static" flag exists, but is broken.
13716       lt_prog_compiler_static_CXX=
13717       ;;
13718     interix[3-9]*)
13719       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13720       # Instead, we relocate shared libraries at runtime.
13721       ;;
13722     sysv4*MP*)
13723       if test -d /usr/nec; then
13724         lt_prog_compiler_pic_CXX=-Kconform_pic
13725       fi
13726       ;;
13727     hpux*)
13728       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13729       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13730       # sets the default TLS model and affects inlining.
13731       case $host_cpu in
13732       hppa*64*)
13733         ;;
13734       *)
13735         lt_prog_compiler_pic_CXX='-fPIC'
13736         ;;
13737       esac
13738       ;;
13739     *qnx* | *nto*)
13740       # QNX uses GNU C++, but need to define -shared option too, otherwise
13741       # it will coredump.
13742       lt_prog_compiler_pic_CXX='-fPIC -shared'
13743       ;;
13744     *)
13745       lt_prog_compiler_pic_CXX='-fPIC'
13746       ;;
13747     esac
13748   else
13749     case $host_os in
13750       aix[4-9]*)
13751         # All AIX code is PIC.
13752         if test "$host_cpu" = ia64; then
13753           # AIX 5 now supports IA64 processor
13754           lt_prog_compiler_static_CXX='-Bstatic'
13755         else
13756           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13757         fi
13758         ;;
13759       chorus*)
13760         case $cc_basename in
13761         cxch68*)
13762           # Green Hills C++ Compiler
13763           # _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"
13764           ;;
13765         esac
13766         ;;
13767       dgux*)
13768         case $cc_basename in
13769           ec++*)
13770             lt_prog_compiler_pic_CXX='-KPIC'
13771             ;;
13772           ghcx*)
13773             # Green Hills C++ Compiler
13774             lt_prog_compiler_pic_CXX='-pic'
13775             ;;
13776           *)
13777             ;;
13778         esac
13779         ;;
13780       freebsd* | dragonfly*)
13781         # FreeBSD uses GNU C++
13782         ;;
13783       hpux9* | hpux10* | hpux11*)
13784         case $cc_basename in
13785           CC*)
13786             lt_prog_compiler_wl_CXX='-Wl,'
13787             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13788             if test "$host_cpu" != ia64; then
13789               lt_prog_compiler_pic_CXX='+Z'
13790             fi
13791             ;;
13792           aCC*)
13793             lt_prog_compiler_wl_CXX='-Wl,'
13794             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13795             case $host_cpu in
13796             hppa*64*|ia64*)
13797               # +Z the default
13798               ;;
13799             *)
13800               lt_prog_compiler_pic_CXX='+Z'
13801               ;;
13802             esac
13803             ;;
13804           *)
13805             ;;
13806         esac
13807         ;;
13808       interix*)
13809         # This is c89, which is MS Visual C++ (no shared libs)
13810         # Anyone wants to do a port?
13811         ;;
13812       irix5* | irix6* | nonstopux*)
13813         case $cc_basename in
13814           CC*)
13815             lt_prog_compiler_wl_CXX='-Wl,'
13816             lt_prog_compiler_static_CXX='-non_shared'
13817             # CC pic flag -KPIC is the default.
13818             ;;
13819           *)
13820             ;;
13821         esac
13822         ;;
13823       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13824         case $cc_basename in
13825           KCC*)
13826             # KAI C++ Compiler
13827             lt_prog_compiler_wl_CXX='--backend -Wl,'
13828             lt_prog_compiler_pic_CXX='-fPIC'
13829             ;;
13830           ecpc* )
13831             # old Intel C++ for x86_64 which still supported -KPIC.
13832             lt_prog_compiler_wl_CXX='-Wl,'
13833             lt_prog_compiler_pic_CXX='-KPIC'
13834             lt_prog_compiler_static_CXX='-static'
13835             ;;
13836           icpc* )
13837             # Intel C++, used to be incompatible with GCC.
13838             # ICC 10 doesn't accept -KPIC any more.
13839             lt_prog_compiler_wl_CXX='-Wl,'
13840             lt_prog_compiler_pic_CXX='-fPIC'
13841             lt_prog_compiler_static_CXX='-static'
13842             ;;
13843           pgCC* | pgcpp*)
13844             # Portland Group C++ compiler
13845             lt_prog_compiler_wl_CXX='-Wl,'
13846             lt_prog_compiler_pic_CXX='-fpic'
13847             lt_prog_compiler_static_CXX='-Bstatic'
13848             ;;
13849           cxx*)
13850             # Compaq C++
13851             # Make sure the PIC flag is empty.  It appears that all Alpha
13852             # Linux and Compaq Tru64 Unix objects are PIC.
13853             lt_prog_compiler_pic_CXX=
13854             lt_prog_compiler_static_CXX='-non_shared'
13855             ;;
13856           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13857             # IBM XL 8.0, 9.0 on PPC and BlueGene
13858             lt_prog_compiler_wl_CXX='-Wl,'
13859             lt_prog_compiler_pic_CXX='-qpic'
13860             lt_prog_compiler_static_CXX='-qstaticlink'
13861             ;;
13862           *)
13863             case `$CC -V 2>&1 | sed 5q` in
13864             *Sun\ C*)
13865               # Sun C++ 5.9
13866               lt_prog_compiler_pic_CXX='-KPIC'
13867               lt_prog_compiler_static_CXX='-Bstatic'
13868               lt_prog_compiler_wl_CXX='-Qoption ld '
13869               ;;
13870             esac
13871             ;;
13872         esac
13873         ;;
13874       lynxos*)
13875         ;;
13876       m88k*)
13877         ;;
13878       mvs*)
13879         case $cc_basename in
13880           cxx*)
13881             lt_prog_compiler_pic_CXX='-W c,exportall'
13882             ;;
13883           *)
13884             ;;
13885         esac
13886         ;;
13887       netbsd*)
13888         ;;
13889       *qnx* | *nto*)
13890         # QNX uses GNU C++, but need to define -shared option too, otherwise
13891         # it will coredump.
13892         lt_prog_compiler_pic_CXX='-fPIC -shared'
13893         ;;
13894       osf3* | osf4* | osf5*)
13895         case $cc_basename in
13896           KCC*)
13897             lt_prog_compiler_wl_CXX='--backend -Wl,'
13898             ;;
13899           RCC*)
13900             # Rational C++ 2.4.1
13901             lt_prog_compiler_pic_CXX='-pic'
13902             ;;
13903           cxx*)
13904             # Digital/Compaq C++
13905             lt_prog_compiler_wl_CXX='-Wl,'
13906             # Make sure the PIC flag is empty.  It appears that all Alpha
13907             # Linux and Compaq Tru64 Unix objects are PIC.
13908             lt_prog_compiler_pic_CXX=
13909             lt_prog_compiler_static_CXX='-non_shared'
13910             ;;
13911           *)
13912             ;;
13913         esac
13914         ;;
13915       psos*)
13916         ;;
13917       solaris*)
13918         case $cc_basename in
13919           CC*)
13920             # Sun C++ 4.2, 5.x and Centerline C++
13921             lt_prog_compiler_pic_CXX='-KPIC'
13922             lt_prog_compiler_static_CXX='-Bstatic'
13923             lt_prog_compiler_wl_CXX='-Qoption ld '
13924             ;;
13925           gcx*)
13926             # Green Hills C++ Compiler
13927             lt_prog_compiler_pic_CXX='-PIC'
13928             ;;
13929           *)
13930             ;;
13931         esac
13932         ;;
13933       sunos4*)
13934         case $cc_basename in
13935           CC*)
13936             # Sun C++ 4.x
13937             lt_prog_compiler_pic_CXX='-pic'
13938             lt_prog_compiler_static_CXX='-Bstatic'
13939             ;;
13940           lcc*)
13941             # Lucid
13942             lt_prog_compiler_pic_CXX='-pic'
13943             ;;
13944           *)
13945             ;;
13946         esac
13947         ;;
13948       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13949         case $cc_basename in
13950           CC*)
13951             lt_prog_compiler_wl_CXX='-Wl,'
13952             lt_prog_compiler_pic_CXX='-KPIC'
13953             lt_prog_compiler_static_CXX='-Bstatic'
13954             ;;
13955         esac
13956         ;;
13957       tandem*)
13958         case $cc_basename in
13959           NCC*)
13960             # NonStop-UX NCC 3.20
13961             lt_prog_compiler_pic_CXX='-KPIC'
13962             ;;
13963           *)
13964             ;;
13965         esac
13966         ;;
13967       vxworks*)
13968         ;;
13969       *)
13970         lt_prog_compiler_can_build_shared_CXX=no
13971         ;;
13972     esac
13973   fi
13974
13975 case $host_os in
13976   # For platforms which do not support PIC, -DPIC is meaningless:
13977   *djgpp*)
13978     lt_prog_compiler_pic_CXX=
13979     ;;
13980   *)
13981     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13982     ;;
13983 esac
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13985 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13986
13987
13988
13989 #
13990 # Check to make sure the PIC flag actually works.
13991 #
13992 if test -n "$lt_prog_compiler_pic_CXX"; then
13993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13994 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13995 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13996   $as_echo_n "(cached) " >&6
13997 else
13998   lt_cv_prog_compiler_pic_works_CXX=no
13999    ac_outfile=conftest.$ac_objext
14000    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14001    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14002    # Insert the option either (1) after the last *FLAGS variable, or
14003    # (2) before a word containing "conftest.", or (3) at the end.
14004    # Note that $ac_compile itself does not contain backslashes and begins
14005    # with a dollar sign (not a hyphen), so the echo should work correctly.
14006    # The option is referenced via a variable to avoid confusing sed.
14007    lt_compile=`echo "$ac_compile" | $SED \
14008    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14009    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14010    -e 's:$: $lt_compiler_flag:'`
14011    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14012    (eval "$lt_compile" 2>conftest.err)
14013    ac_status=$?
14014    cat conftest.err >&5
14015    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016    if (exit $ac_status) && test -s "$ac_outfile"; then
14017      # The compiler can only warn and ignore the option if not recognized
14018      # So say no if there are warnings other than the usual output.
14019      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14020      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14021      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14022        lt_cv_prog_compiler_pic_works_CXX=yes
14023      fi
14024    fi
14025    $RM conftest*
14026
14027 fi
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14029 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14030
14031 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14032     case $lt_prog_compiler_pic_CXX in
14033      "" | " "*) ;;
14034      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14035      esac
14036 else
14037     lt_prog_compiler_pic_CXX=
14038      lt_prog_compiler_can_build_shared_CXX=no
14039 fi
14040
14041 fi
14042
14043
14044
14045 #
14046 # Check to make sure the static flag actually works.
14047 #
14048 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14050 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14051 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14052   $as_echo_n "(cached) " >&6
14053 else
14054   lt_cv_prog_compiler_static_works_CXX=no
14055    save_LDFLAGS="$LDFLAGS"
14056    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14057    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14058    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14059      # The linker can only warn and ignore the option if not recognized
14060      # So say no if there are warnings
14061      if test -s conftest.err; then
14062        # Append any errors to the config.log.
14063        cat conftest.err 1>&5
14064        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14065        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14066        if diff conftest.exp conftest.er2 >/dev/null; then
14067          lt_cv_prog_compiler_static_works_CXX=yes
14068        fi
14069      else
14070        lt_cv_prog_compiler_static_works_CXX=yes
14071      fi
14072    fi
14073    $RM -r conftest*
14074    LDFLAGS="$save_LDFLAGS"
14075
14076 fi
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14078 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14079
14080 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14081     :
14082 else
14083     lt_prog_compiler_static_CXX=
14084 fi
14085
14086
14087
14088
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14090 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14091 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14092   $as_echo_n "(cached) " >&6
14093 else
14094   lt_cv_prog_compiler_c_o_CXX=no
14095    $RM -r conftest 2>/dev/null
14096    mkdir conftest
14097    cd conftest
14098    mkdir out
14099    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14100
14101    lt_compiler_flag="-o out/conftest2.$ac_objext"
14102    # Insert the option either (1) after the last *FLAGS variable, or
14103    # (2) before a word containing "conftest.", or (3) at the end.
14104    # Note that $ac_compile itself does not contain backslashes and begins
14105    # with a dollar sign (not a hyphen), so the echo should work correctly.
14106    lt_compile=`echo "$ac_compile" | $SED \
14107    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14109    -e 's:$: $lt_compiler_flag:'`
14110    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14111    (eval "$lt_compile" 2>out/conftest.err)
14112    ac_status=$?
14113    cat out/conftest.err >&5
14114    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14116    then
14117      # The compiler can only warn and ignore the option if not recognized
14118      # So say no if there are warnings
14119      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14120      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14121      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14122        lt_cv_prog_compiler_c_o_CXX=yes
14123      fi
14124    fi
14125    chmod u+w . 2>&5
14126    $RM conftest*
14127    # SGI C++ compiler will create directory out/ii_files/ for
14128    # template instantiation
14129    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14130    $RM out/* && rmdir out
14131    cd ..
14132    $RM -r conftest
14133    $RM conftest*
14134
14135 fi
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14137 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14138
14139
14140
14141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14143 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14144   $as_echo_n "(cached) " >&6
14145 else
14146   lt_cv_prog_compiler_c_o_CXX=no
14147    $RM -r conftest 2>/dev/null
14148    mkdir conftest
14149    cd conftest
14150    mkdir out
14151    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14152
14153    lt_compiler_flag="-o out/conftest2.$ac_objext"
14154    # Insert the option either (1) after the last *FLAGS variable, or
14155    # (2) before a word containing "conftest.", or (3) at the end.
14156    # Note that $ac_compile itself does not contain backslashes and begins
14157    # with a dollar sign (not a hyphen), so the echo should work correctly.
14158    lt_compile=`echo "$ac_compile" | $SED \
14159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14161    -e 's:$: $lt_compiler_flag:'`
14162    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14163    (eval "$lt_compile" 2>out/conftest.err)
14164    ac_status=$?
14165    cat out/conftest.err >&5
14166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14168    then
14169      # The compiler can only warn and ignore the option if not recognized
14170      # So say no if there are warnings
14171      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14172      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14173      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14174        lt_cv_prog_compiler_c_o_CXX=yes
14175      fi
14176    fi
14177    chmod u+w . 2>&5
14178    $RM conftest*
14179    # SGI C++ compiler will create directory out/ii_files/ for
14180    # template instantiation
14181    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14182    $RM out/* && rmdir out
14183    cd ..
14184    $RM -r conftest
14185    $RM conftest*
14186
14187 fi
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14189 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14190
14191
14192
14193
14194 hard_links="nottested"
14195 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14196   # do not overwrite the value of need_locks provided by the user
14197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14198 $as_echo_n "checking if we can lock with hard links... " >&6; }
14199   hard_links=yes
14200   $RM conftest*
14201   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14202   touch conftest.a
14203   ln conftest.a conftest.b 2>&5 || hard_links=no
14204   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14206 $as_echo "$hard_links" >&6; }
14207   if test "$hard_links" = no; then
14208     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14209 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14210     need_locks=warn
14211   fi
14212 else
14213   need_locks=no
14214 fi
14215
14216
14217
14218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14219 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14220
14221   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14222   case $host_os in
14223   aix[4-9]*)
14224     # If we're using GNU nm, then we don't want the "-C" option.
14225     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14226     # Also, AIX nm treats weak defined symbols like other global defined
14227     # symbols, whereas GNU nm marks them as "W".
14228     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14229       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'
14230     else
14231       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'
14232     fi
14233     ;;
14234   pw32*)
14235     export_symbols_cmds_CXX="$ltdll_cmds"
14236   ;;
14237   cygwin* | mingw* | cegcc*)
14238     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14239   ;;
14240   *)
14241     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14242   ;;
14243   esac
14244   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14247 $as_echo "$ld_shlibs_CXX" >&6; }
14248 test "$ld_shlibs_CXX" = no && can_build_shared=no
14249
14250 with_gnu_ld_CXX=$with_gnu_ld
14251
14252
14253
14254
14255
14256
14257 #
14258 # Do we need to explicitly link libc?
14259 #
14260 case "x$archive_cmds_need_lc_CXX" in
14261 x|xyes)
14262   # Assume -lc should be added
14263   archive_cmds_need_lc_CXX=yes
14264
14265   if test "$enable_shared" = yes && test "$GCC" = yes; then
14266     case $archive_cmds_CXX in
14267     *'~'*)
14268       # FIXME: we may have to deal with multi-command sequences.
14269       ;;
14270     '$CC '*)
14271       # Test whether the compiler implicitly links with -lc since on some
14272       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14273       # to ld, don't add -lc before -lgcc.
14274       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14275 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14276 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14277   $as_echo_n "(cached) " >&6
14278 else
14279   $RM conftest*
14280         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14281
14282         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14283   (eval $ac_compile) 2>&5
14284   ac_status=$?
14285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286   test $ac_status = 0; } 2>conftest.err; then
14287           soname=conftest
14288           lib=conftest
14289           libobjs=conftest.$ac_objext
14290           deplibs=
14291           wl=$lt_prog_compiler_wl_CXX
14292           pic_flag=$lt_prog_compiler_pic_CXX
14293           compiler_flags=-v
14294           linker_flags=-v
14295           verstring=
14296           output_objdir=.
14297           libname=conftest
14298           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14299           allow_undefined_flag_CXX=
14300           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14301   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14302   ac_status=$?
14303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14304   test $ac_status = 0; }
14305           then
14306             lt_cv_archive_cmds_need_lc_CXX=no
14307           else
14308             lt_cv_archive_cmds_need_lc_CXX=yes
14309           fi
14310           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14311         else
14312           cat conftest.err 1>&5
14313         fi
14314         $RM conftest*
14315
14316 fi
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14318 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14319       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14320       ;;
14321     esac
14322   fi
14323   ;;
14324 esac
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14391
14392 library_names_spec=
14393 libname_spec='lib$name'
14394 soname_spec=
14395 shrext_cmds=".so"
14396 postinstall_cmds=
14397 postuninstall_cmds=
14398 finish_cmds=
14399 finish_eval=
14400 shlibpath_var=
14401 shlibpath_overrides_runpath=unknown
14402 version_type=none
14403 dynamic_linker="$host_os ld.so"
14404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14405 need_lib_prefix=unknown
14406 hardcode_into_libs=no
14407
14408 # when you set need_version to no, make sure it does not cause -set_version
14409 # flags to be left without arguments
14410 need_version=unknown
14411
14412 case $host_os in
14413 aix3*)
14414   version_type=linux
14415   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14416   shlibpath_var=LIBPATH
14417
14418   # AIX 3 has no versioning support, so we append a major version to the name.
14419   soname_spec='${libname}${release}${shared_ext}$major'
14420   ;;
14421
14422 aix[4-9]*)
14423   version_type=linux
14424   need_lib_prefix=no
14425   need_version=no
14426   hardcode_into_libs=yes
14427   if test "$host_cpu" = ia64; then
14428     # AIX 5 supports IA64
14429     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14430     shlibpath_var=LD_LIBRARY_PATH
14431   else
14432     # With GCC up to 2.95.x, collect2 would create an import file
14433     # for dependence libraries.  The import file would start with
14434     # the line `#! .'.  This would cause the generated library to
14435     # depend on `.', always an invalid library.  This was fixed in
14436     # development snapshots of GCC prior to 3.0.
14437     case $host_os in
14438       aix4 | aix4.[01] | aix4.[01].*)
14439       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14440            echo ' yes '
14441            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14442         :
14443       else
14444         can_build_shared=no
14445       fi
14446       ;;
14447     esac
14448     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14449     # soname into executable. Probably we can add versioning support to
14450     # collect2, so additional links can be useful in future.
14451     if test "$aix_use_runtimelinking" = yes; then
14452       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14453       # instead of lib<name>.a to let people know that these are not
14454       # typical AIX shared libraries.
14455       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456     else
14457       # We preserve .a as extension for shared libraries through AIX4.2
14458       # and later when we are not doing run time linking.
14459       library_names_spec='${libname}${release}.a $libname.a'
14460       soname_spec='${libname}${release}${shared_ext}$major'
14461     fi
14462     shlibpath_var=LIBPATH
14463   fi
14464   ;;
14465
14466 amigaos*)
14467   case $host_cpu in
14468   powerpc)
14469     # Since July 2007 AmigaOS4 officially supports .so libraries.
14470     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472     ;;
14473   m68k)
14474     library_names_spec='$libname.ixlibrary $libname.a'
14475     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14476     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'
14477     ;;
14478   esac
14479   ;;
14480
14481 beos*)
14482   library_names_spec='${libname}${shared_ext}'
14483   dynamic_linker="$host_os ld.so"
14484   shlibpath_var=LIBRARY_PATH
14485   ;;
14486
14487 bsdi[45]*)
14488   version_type=linux
14489   need_version=no
14490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491   soname_spec='${libname}${release}${shared_ext}$major'
14492   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14493   shlibpath_var=LD_LIBRARY_PATH
14494   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14495   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14496   # the default ld.so.conf also contains /usr/contrib/lib and
14497   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14498   # libtool to hard-code these into programs
14499   ;;
14500
14501 cygwin* | mingw* | pw32* | cegcc*)
14502   version_type=windows
14503   shrext_cmds=".dll"
14504   need_version=no
14505   need_lib_prefix=no
14506
14507   case $GCC,$host_os in
14508   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14509     library_names_spec='$libname.dll.a'
14510     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14511     postinstall_cmds='base_file=`basename \${file}`~
14512       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14513       dldir=$destdir/`dirname \$dlpath`~
14514       test -d \$dldir || mkdir -p \$dldir~
14515       $install_prog $dir/$dlname \$dldir/$dlname~
14516       chmod a+x \$dldir/$dlname~
14517       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14518         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14519       fi'
14520     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14521       dlpath=$dir/\$dldll~
14522        $RM \$dlpath'
14523     shlibpath_overrides_runpath=yes
14524
14525     case $host_os in
14526     cygwin*)
14527       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14528       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14529
14530       ;;
14531     mingw* | cegcc*)
14532       # MinGW DLLs use traditional 'lib' prefix
14533       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14534       ;;
14535     pw32*)
14536       # pw32 DLLs use 'pw' prefix rather than 'lib'
14537       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14538       ;;
14539     esac
14540     ;;
14541
14542   *)
14543     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14544     ;;
14545   esac
14546   dynamic_linker='Win32 ld.exe'
14547   # FIXME: first we should search . and the directory the executable is in
14548   shlibpath_var=PATH
14549   ;;
14550
14551 darwin* | rhapsody*)
14552   dynamic_linker="$host_os dyld"
14553   version_type=darwin
14554   need_lib_prefix=no
14555   need_version=no
14556   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14557   soname_spec='${libname}${release}${major}$shared_ext'
14558   shlibpath_overrides_runpath=yes
14559   shlibpath_var=DYLD_LIBRARY_PATH
14560   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14561
14562   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14563   ;;
14564
14565 dgux*)
14566   version_type=linux
14567   need_lib_prefix=no
14568   need_version=no
14569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14570   soname_spec='${libname}${release}${shared_ext}$major'
14571   shlibpath_var=LD_LIBRARY_PATH
14572   ;;
14573
14574 freebsd* | dragonfly*)
14575   # DragonFly does not have aout.  When/if they implement a new
14576   # versioning mechanism, adjust this.
14577   if test -x /usr/bin/objformat; then
14578     objformat=`/usr/bin/objformat`
14579   else
14580     case $host_os in
14581     freebsd[23].*) objformat=aout ;;
14582     *) objformat=elf ;;
14583     esac
14584   fi
14585   version_type=freebsd-$objformat
14586   case $version_type in
14587     freebsd-elf*)
14588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14589       need_version=no
14590       need_lib_prefix=no
14591       ;;
14592     freebsd-*)
14593       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14594       need_version=yes
14595       ;;
14596   esac
14597   shlibpath_var=LD_LIBRARY_PATH
14598   case $host_os in
14599   freebsd2.*)
14600     shlibpath_overrides_runpath=yes
14601     ;;
14602   freebsd3.[01]* | freebsdelf3.[01]*)
14603     shlibpath_overrides_runpath=yes
14604     hardcode_into_libs=yes
14605     ;;
14606   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14607   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14608     shlibpath_overrides_runpath=no
14609     hardcode_into_libs=yes
14610     ;;
14611   *) # from 4.6 on, and DragonFly
14612     shlibpath_overrides_runpath=yes
14613     hardcode_into_libs=yes
14614     ;;
14615   esac
14616   ;;
14617
14618 gnu*)
14619   version_type=linux
14620   need_lib_prefix=no
14621   need_version=no
14622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14623   soname_spec='${libname}${release}${shared_ext}$major'
14624   shlibpath_var=LD_LIBRARY_PATH
14625   hardcode_into_libs=yes
14626   ;;
14627
14628 haiku*)
14629   version_type=linux
14630   need_lib_prefix=no
14631   need_version=no
14632   dynamic_linker="$host_os runtime_loader"
14633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14634   soname_spec='${libname}${release}${shared_ext}$major'
14635   shlibpath_var=LIBRARY_PATH
14636   shlibpath_overrides_runpath=yes
14637   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14638   hardcode_into_libs=yes
14639   ;;
14640
14641 hpux9* | hpux10* | hpux11*)
14642   # Give a soname corresponding to the major version so that dld.sl refuses to
14643   # link against other versions.
14644   version_type=sunos
14645   need_lib_prefix=no
14646   need_version=no
14647   case $host_cpu in
14648   ia64*)
14649     shrext_cmds='.so'
14650     hardcode_into_libs=yes
14651     dynamic_linker="$host_os dld.so"
14652     shlibpath_var=LD_LIBRARY_PATH
14653     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14655     soname_spec='${libname}${release}${shared_ext}$major'
14656     if test "X$HPUX_IA64_MODE" = X32; then
14657       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14658     else
14659       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14660     fi
14661     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14662     ;;
14663   hppa*64*)
14664     shrext_cmds='.sl'
14665     hardcode_into_libs=yes
14666     dynamic_linker="$host_os dld.sl"
14667     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14668     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670     soname_spec='${libname}${release}${shared_ext}$major'
14671     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14672     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14673     ;;
14674   *)
14675     shrext_cmds='.sl'
14676     dynamic_linker="$host_os dld.sl"
14677     shlibpath_var=SHLIB_PATH
14678     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680     soname_spec='${libname}${release}${shared_ext}$major'
14681     ;;
14682   esac
14683   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14684   postinstall_cmds='chmod 555 $lib'
14685   # or fails outright, so override atomically:
14686   install_override_mode=555
14687   ;;
14688
14689 interix[3-9]*)
14690   version_type=linux
14691   need_lib_prefix=no
14692   need_version=no
14693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14694   soname_spec='${libname}${release}${shared_ext}$major'
14695   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14696   shlibpath_var=LD_LIBRARY_PATH
14697   shlibpath_overrides_runpath=no
14698   hardcode_into_libs=yes
14699   ;;
14700
14701 irix5* | irix6* | nonstopux*)
14702   case $host_os in
14703     nonstopux*) version_type=nonstopux ;;
14704     *)
14705         if test "$lt_cv_prog_gnu_ld" = yes; then
14706                 version_type=linux
14707         else
14708                 version_type=irix
14709         fi ;;
14710   esac
14711   need_lib_prefix=no
14712   need_version=no
14713   soname_spec='${libname}${release}${shared_ext}$major'
14714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14715   case $host_os in
14716   irix5* | nonstopux*)
14717     libsuff= shlibsuff=
14718     ;;
14719   *)
14720     case $LD in # libtool.m4 will add one of these switches to LD
14721     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14722       libsuff= shlibsuff= libmagic=32-bit;;
14723     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14724       libsuff=32 shlibsuff=N32 libmagic=N32;;
14725     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14726       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14727     *) libsuff= shlibsuff= libmagic=never-match;;
14728     esac
14729     ;;
14730   esac
14731   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14732   shlibpath_overrides_runpath=no
14733   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14734   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14735   hardcode_into_libs=yes
14736   ;;
14737
14738 # No shared lib support for Linux oldld, aout, or coff.
14739 linux*oldld* | linux*aout* | linux*coff*)
14740   dynamic_linker=no
14741   ;;
14742
14743 # This must be Linux ELF.
14744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14745   version_type=linux
14746   need_lib_prefix=no
14747   need_version=no
14748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749   soname_spec='${libname}${release}${shared_ext}$major'
14750   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   shlibpath_overrides_runpath=no
14753
14754   # Some binutils ld are patched to set DT_RUNPATH
14755   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14756   $as_echo_n "(cached) " >&6
14757 else
14758   lt_cv_shlibpath_overrides_runpath=no
14759     save_LDFLAGS=$LDFLAGS
14760     save_libdir=$libdir
14761     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14762          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h.  */
14765
14766 int
14767 main ()
14768 {
14769
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 if ac_fn_cxx_try_link "$LINENO"; then :
14775   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14776   lt_cv_shlibpath_overrides_runpath=yes
14777 fi
14778 fi
14779 rm -f core conftest.err conftest.$ac_objext \
14780     conftest$ac_exeext conftest.$ac_ext
14781     LDFLAGS=$save_LDFLAGS
14782     libdir=$save_libdir
14783
14784 fi
14785
14786   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14787
14788   # This implies no fast_install, which is unacceptable.
14789   # Some rework will be needed to allow for fast_install
14790   # before this can be enabled.
14791   hardcode_into_libs=yes
14792
14793   # Append ld.so.conf contents to the search path
14794   if test -f /etc/ld.so.conf; then
14795     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' ' '`
14796     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14797   fi
14798
14799   # We used to test for /lib/ld.so.1 and disable shared libraries on
14800   # powerpc, because MkLinux only supported shared libraries with the
14801   # GNU dynamic linker.  Since this was broken with cross compilers,
14802   # most powerpc-linux boxes support dynamic linking these days and
14803   # people can always --disable-shared, the test was removed, and we
14804   # assume the GNU/Linux dynamic linker is in use.
14805   dynamic_linker='GNU/Linux ld.so'
14806   ;;
14807
14808 netbsd*)
14809   version_type=sunos
14810   need_lib_prefix=no
14811   need_version=no
14812   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14814     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14815     dynamic_linker='NetBSD (a.out) ld.so'
14816   else
14817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14818     soname_spec='${libname}${release}${shared_ext}$major'
14819     dynamic_linker='NetBSD ld.elf_so'
14820   fi
14821   shlibpath_var=LD_LIBRARY_PATH
14822   shlibpath_overrides_runpath=yes
14823   hardcode_into_libs=yes
14824   ;;
14825
14826 newsos6)
14827   version_type=linux
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829   shlibpath_var=LD_LIBRARY_PATH
14830   shlibpath_overrides_runpath=yes
14831   ;;
14832
14833 *nto* | *qnx*)
14834   version_type=qnx
14835   need_lib_prefix=no
14836   need_version=no
14837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838   soname_spec='${libname}${release}${shared_ext}$major'
14839   shlibpath_var=LD_LIBRARY_PATH
14840   shlibpath_overrides_runpath=no
14841   hardcode_into_libs=yes
14842   dynamic_linker='ldqnx.so'
14843   ;;
14844
14845 openbsd*)
14846   version_type=sunos
14847   sys_lib_dlsearch_path_spec="/usr/lib"
14848   need_lib_prefix=no
14849   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14850   case $host_os in
14851     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14852     *)                          need_version=no  ;;
14853   esac
14854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14856   shlibpath_var=LD_LIBRARY_PATH
14857   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14858     case $host_os in
14859       openbsd2.[89] | openbsd2.[89].*)
14860         shlibpath_overrides_runpath=no
14861         ;;
14862       *)
14863         shlibpath_overrides_runpath=yes
14864         ;;
14865       esac
14866   else
14867     shlibpath_overrides_runpath=yes
14868   fi
14869   ;;
14870
14871 os2*)
14872   libname_spec='$name'
14873   shrext_cmds=".dll"
14874   need_lib_prefix=no
14875   library_names_spec='$libname${shared_ext} $libname.a'
14876   dynamic_linker='OS/2 ld.exe'
14877   shlibpath_var=LIBPATH
14878   ;;
14879
14880 osf3* | osf4* | osf5*)
14881   version_type=osf
14882   need_lib_prefix=no
14883   need_version=no
14884   soname_spec='${libname}${release}${shared_ext}$major'
14885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886   shlibpath_var=LD_LIBRARY_PATH
14887   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14888   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14889   ;;
14890
14891 rdos*)
14892   dynamic_linker=no
14893   ;;
14894
14895 solaris*)
14896   version_type=linux
14897   need_lib_prefix=no
14898   need_version=no
14899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900   soname_spec='${libname}${release}${shared_ext}$major'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   shlibpath_overrides_runpath=yes
14903   hardcode_into_libs=yes
14904   # ldd complains unless libraries are executable
14905   postinstall_cmds='chmod +x $lib'
14906   ;;
14907
14908 sunos4*)
14909   version_type=sunos
14910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14911   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14912   shlibpath_var=LD_LIBRARY_PATH
14913   shlibpath_overrides_runpath=yes
14914   if test "$with_gnu_ld" = yes; then
14915     need_lib_prefix=no
14916   fi
14917   need_version=yes
14918   ;;
14919
14920 sysv4 | sysv4.3*)
14921   version_type=linux
14922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923   soname_spec='${libname}${release}${shared_ext}$major'
14924   shlibpath_var=LD_LIBRARY_PATH
14925   case $host_vendor in
14926     sni)
14927       shlibpath_overrides_runpath=no
14928       need_lib_prefix=no
14929       runpath_var=LD_RUN_PATH
14930       ;;
14931     siemens)
14932       need_lib_prefix=no
14933       ;;
14934     motorola)
14935       need_lib_prefix=no
14936       need_version=no
14937       shlibpath_overrides_runpath=no
14938       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14939       ;;
14940   esac
14941   ;;
14942
14943 sysv4*MP*)
14944   if test -d /usr/nec ;then
14945     version_type=linux
14946     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14947     soname_spec='$libname${shared_ext}.$major'
14948     shlibpath_var=LD_LIBRARY_PATH
14949   fi
14950   ;;
14951
14952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14953   version_type=freebsd-elf
14954   need_lib_prefix=no
14955   need_version=no
14956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14957   soname_spec='${libname}${release}${shared_ext}$major'
14958   shlibpath_var=LD_LIBRARY_PATH
14959   shlibpath_overrides_runpath=yes
14960   hardcode_into_libs=yes
14961   if test "$with_gnu_ld" = yes; then
14962     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14963   else
14964     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14965     case $host_os in
14966       sco3.2v5*)
14967         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14968         ;;
14969     esac
14970   fi
14971   sys_lib_dlsearch_path_spec='/usr/lib'
14972   ;;
14973
14974 tpf*)
14975   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14976   version_type=linux
14977   need_lib_prefix=no
14978   need_version=no
14979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980   shlibpath_var=LD_LIBRARY_PATH
14981   shlibpath_overrides_runpath=no
14982   hardcode_into_libs=yes
14983   ;;
14984
14985 uts4*)
14986   version_type=linux
14987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988   soname_spec='${libname}${release}${shared_ext}$major'
14989   shlibpath_var=LD_LIBRARY_PATH
14990   ;;
14991
14992 *)
14993   dynamic_linker=no
14994   ;;
14995 esac
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14997 $as_echo "$dynamic_linker" >&6; }
14998 test "$dynamic_linker" = no && can_build_shared=no
14999
15000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15001 if test "$GCC" = yes; then
15002   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15003 fi
15004
15005 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15006   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15007 fi
15008 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15009   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15010 fi
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15050 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15051 hardcode_action_CXX=
15052 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15053    test -n "$runpath_var_CXX" ||
15054    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15055
15056   # We can hardcode non-existent directories.
15057   if test "$hardcode_direct_CXX" != no &&
15058      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15059      # have to relink, otherwise we might link with an installed library
15060      # when we should be linking with a yet-to-be-installed one
15061      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15062      test "$hardcode_minus_L_CXX" != no; then
15063     # Linking always hardcodes the temporary library directory.
15064     hardcode_action_CXX=relink
15065   else
15066     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15067     hardcode_action_CXX=immediate
15068   fi
15069 else
15070   # We cannot hardcode anything, or else we can only hardcode existing
15071   # directories.
15072   hardcode_action_CXX=unsupported
15073 fi
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15075 $as_echo "$hardcode_action_CXX" >&6; }
15076
15077 if test "$hardcode_action_CXX" = relink ||
15078    test "$inherit_rpath_CXX" = yes; then
15079   # Fast installation is not supported
15080   enable_fast_install=no
15081 elif test "$shlibpath_overrides_runpath" = yes ||
15082      test "$enable_shared" = no; then
15083   # Fast installation is not necessary
15084   enable_fast_install=needless
15085 fi
15086
15087
15088
15089
15090
15091
15092
15093   fi # test -n "$compiler"
15094
15095   CC=$lt_save_CC
15096   LDCXX=$LD
15097   LD=$lt_save_LD
15098   GCC=$lt_save_GCC
15099   with_gnu_ld=$lt_save_with_gnu_ld
15100   lt_cv_path_LDCXX=$lt_cv_path_LD
15101   lt_cv_path_LD=$lt_save_path_LD
15102   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15103   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15104 fi # test "$_lt_caught_CXX_error" != yes
15105
15106 ac_ext=c
15107 ac_cpp='$CPP $CPPFLAGS'
15108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124         ac_config_commands="$ac_config_commands libtool"
15125
15126
15127
15128
15129 # Only expand once:
15130
15131
15132
15133
15134
15135
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15137 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15138     # Check whether --enable-maintainer-mode was given.
15139 if test "${enable_maintainer_mode+set}" = set; then :
15140   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15141 else
15142   USE_MAINTAINER_MODE=no
15143 fi
15144
15145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15146 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15147    if test $USE_MAINTAINER_MODE = yes; then
15148   MAINTAINER_MODE_TRUE=
15149   MAINTAINER_MODE_FALSE='#'
15150 else
15151   MAINTAINER_MODE_TRUE='#'
15152   MAINTAINER_MODE_FALSE=
15153 fi
15154
15155   MAINT=$MAINTAINER_MODE_TRUE
15156
15157
15158
15159 # For libtool versioning info, format is CURRENT:REVISION:AGE
15160 libtool_VERSION=1:0:0
15161
15162
15163 # Check header files.
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15165 $as_echo_n "checking for ANSI C header files... " >&6; }
15166 if test "${ac_cv_header_stdc+set}" = set; then :
15167   $as_echo_n "(cached) " >&6
15168 else
15169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h.  */
15171 #include <stdlib.h>
15172 #include <stdarg.h>
15173 #include <string.h>
15174 #include <float.h>
15175
15176 int
15177 main ()
15178 {
15179
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_c_try_compile "$LINENO"; then :
15185   ac_cv_header_stdc=yes
15186 else
15187   ac_cv_header_stdc=no
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190
15191 if test $ac_cv_header_stdc = yes; then
15192   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h.  */
15195 #include <string.h>
15196
15197 _ACEOF
15198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199   $EGREP "memchr" >/dev/null 2>&1; then :
15200
15201 else
15202   ac_cv_header_stdc=no
15203 fi
15204 rm -f conftest*
15205
15206 fi
15207
15208 if test $ac_cv_header_stdc = yes; then
15209   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h.  */
15212 #include <stdlib.h>
15213
15214 _ACEOF
15215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15216   $EGREP "free" >/dev/null 2>&1; then :
15217
15218 else
15219   ac_cv_header_stdc=no
15220 fi
15221 rm -f conftest*
15222
15223 fi
15224
15225 if test $ac_cv_header_stdc = yes; then
15226   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15227   if test "$cross_compiling" = yes; then :
15228   :
15229 else
15230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h.  */
15232 #include <ctype.h>
15233 #include <stdlib.h>
15234 #if ((' ' & 0x0FF) == 0x020)
15235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15237 #else
15238 # define ISLOWER(c) \
15239                    (('a' <= (c) && (c) <= 'i') \
15240                      || ('j' <= (c) && (c) <= 'r') \
15241                      || ('s' <= (c) && (c) <= 'z'))
15242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15243 #endif
15244
15245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15246 int
15247 main ()
15248 {
15249   int i;
15250   for (i = 0; i < 256; i++)
15251     if (XOR (islower (i), ISLOWER (i))
15252         || toupper (i) != TOUPPER (i))
15253       return 2;
15254   return 0;
15255 }
15256 _ACEOF
15257 if ac_fn_c_try_run "$LINENO"; then :
15258
15259 else
15260   ac_cv_header_stdc=no
15261 fi
15262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15263   conftest.$ac_objext conftest.beam conftest.$ac_ext
15264 fi
15265
15266 fi
15267 fi
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15269 $as_echo "$ac_cv_header_stdc" >&6; }
15270 if test $ac_cv_header_stdc = yes; then
15271
15272 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15273
15274 fi
15275
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15277 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15278 if test "${ac_cv_header_time+set}" = set; then :
15279   $as_echo_n "(cached) " >&6
15280 else
15281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h.  */
15283 #include <sys/types.h>
15284 #include <sys/time.h>
15285 #include <time.h>
15286
15287 int
15288 main ()
15289 {
15290 if ((struct tm *) 0)
15291 return 0;
15292   ;
15293   return 0;
15294 }
15295 _ACEOF
15296 if ac_fn_c_try_compile "$LINENO"; then :
15297   ac_cv_header_time=yes
15298 else
15299   ac_cv_header_time=no
15300 fi
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 fi
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15304 $as_echo "$ac_cv_header_time" >&6; }
15305 if test $ac_cv_header_time = yes; then
15306
15307 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15308
15309 fi
15310
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15312 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15313 if test "${gcc_cv_header_string+set}" = set; then :
15314   $as_echo_n "(cached) " >&6
15315 else
15316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h.  */
15318 #include <string.h>
15319 #include <strings.h>
15320 int
15321 main ()
15322 {
15323
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 if ac_fn_c_try_compile "$LINENO"; then :
15329   gcc_cv_header_string=yes
15330 else
15331   gcc_cv_header_string=no
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15336 $as_echo "$gcc_cv_header_string" >&6; }
15337 if test $gcc_cv_header_string = yes; then
15338
15339 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15340
15341 fi
15342
15343 for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15344 do :
15345   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15347 eval as_val=\$$as_ac_Header
15348    if test "x$as_val" = x""yes; then :
15349   cat >>confdefs.h <<_ACEOF
15350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15351 _ACEOF
15352
15353 fi
15354
15355 done
15356
15357
15358
15359
15360 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
15361
15362 acx_cv_header_stdint=stddef.h
15363 acx_cv_header_stdint_kind="(already complete)"
15364 for i in stdint.h $inttype_headers; do
15365   unset ac_cv_type_uintptr_t
15366   unset ac_cv_type_uintmax_t
15367   unset ac_cv_type_int_least32_t
15368   unset ac_cv_type_int_fast32_t
15369   unset ac_cv_type_uint64_t
15370   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15371   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15372 #include <$i>
15373 "
15374 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15375   acx_cv_header_stdint=$i
15376 else
15377   continue
15378 fi
15379
15380   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15381 #include <$i>
15382 "
15383 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15384
15385 else
15386   acx_cv_header_stdint_kind="(mostly complete)"
15387 fi
15388
15389   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15390 #include <$i>
15391 "
15392 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15393
15394 else
15395   acx_cv_header_stdint_kind="(mostly complete)"
15396 fi
15397
15398   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15399 #include <$i>
15400 "
15401 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15402
15403 else
15404   acx_cv_header_stdint_kind="(mostly complete)"
15405 fi
15406
15407   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15408 #include <$i>
15409 "
15410 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15411
15412 else
15413   acx_cv_header_stdint_kind="(lacks uint64_t)"
15414 fi
15415
15416   break
15417 done
15418 if test "$acx_cv_header_stdint" = stddef.h; then
15419   acx_cv_header_stdint_kind="(lacks uintmax_t)"
15420   for i in stdint.h $inttype_headers; do
15421     unset ac_cv_type_uintptr_t
15422     unset ac_cv_type_uint32_t
15423     unset ac_cv_type_uint64_t
15424     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15425     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15426 #include <$i>
15427 "
15428 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15429   acx_cv_header_stdint=$i
15430 else
15431   continue
15432 fi
15433
15434     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15435 #include <$i>
15436 "
15437 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15438
15439 fi
15440
15441     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15442 #include <$i>
15443 "
15444 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15445
15446 fi
15447
15448     break
15449   done
15450 fi
15451 if test "$acx_cv_header_stdint" = stddef.h; then
15452   acx_cv_header_stdint_kind="(u_intXX_t style)"
15453   for i in sys/types.h $inttype_headers; do
15454     unset ac_cv_type_u_int32_t
15455     unset ac_cv_type_u_int64_t
15456     $as_echo_n "looking for u_intXX_t types in $i, " >&6
15457     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15458 #include <$i>
15459 "
15460 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15461   acx_cv_header_stdint=$i
15462 else
15463   continue
15464 fi
15465
15466     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15467 #include <$i>
15468 "
15469 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15470
15471 fi
15472
15473     break
15474   done
15475 fi
15476 if test "$acx_cv_header_stdint" = stddef.h; then
15477   acx_cv_header_stdint_kind="(using manual detection)"
15478 fi
15479
15480 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15481 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15482 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15483 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15484 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15485
15486 # ----------------- Summarize what we found so far
15487
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15489 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15490
15491 case `$as_basename -- gstdint.h ||
15492 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15493          Xgstdint.h : 'X\(//\)$' \| \
15494          Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15495 $as_echo X/gstdint.h |
15496     sed '/^.*\/\([^/][^/]*\)\/*$/{
15497             s//\1/
15498             q
15499           }
15500           /^X\/\(\/\/\)$/{
15501             s//\1/
15502             q
15503           }
15504           /^X\/\(\/\).*/{
15505             s//\1/
15506             q
15507           }
15508           s/.*/./; q'` in
15509   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15510 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15511   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15512 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15513   *) ;;
15514 esac
15515
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15517 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15518
15519 # ----------------- done included file, check C basic types --------
15520
15521 # Lacking an uintptr_t?  Test size of void *
15522 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15523   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15526 # This bug is HP SR number 8606223364.
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15528 $as_echo_n "checking size of void *... " >&6; }
15529 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15530   $as_echo_n "(cached) " >&6
15531 else
15532   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15533
15534 else
15535   if test "$ac_cv_type_void_p" = yes; then
15536      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15538 { as_fn_set_status 77
15539 as_fn_error "cannot compute sizeof (void *)
15540 See \`config.log' for more details." "$LINENO" 5; }; }
15541    else
15542      ac_cv_sizeof_void_p=0
15543    fi
15544 fi
15545
15546 fi
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15548 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15549
15550
15551
15552 cat >>confdefs.h <<_ACEOF
15553 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15554 _ACEOF
15555
15556  ;;
15557 esac
15558
15559 # Lacking an uint64_t?  Test size of long
15560 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15561   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15564 # This bug is HP SR number 8606223364.
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15566 $as_echo_n "checking size of long... " >&6; }
15567 if test "${ac_cv_sizeof_long+set}" = set; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15571
15572 else
15573   if test "$ac_cv_type_long" = yes; then
15574      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15576 { as_fn_set_status 77
15577 as_fn_error "cannot compute sizeof (long)
15578 See \`config.log' for more details." "$LINENO" 5; }; }
15579    else
15580      ac_cv_sizeof_long=0
15581    fi
15582 fi
15583
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15586 $as_echo "$ac_cv_sizeof_long" >&6; }
15587
15588
15589
15590 cat >>confdefs.h <<_ACEOF
15591 #define SIZEOF_LONG $ac_cv_sizeof_long
15592 _ACEOF
15593
15594  ;;
15595 esac
15596
15597 if test $acx_cv_header_stdint = stddef.h; then
15598   # Lacking a good header?  Test size of everything and deduce all types.
15599   # The cast to long int works around a bug in the HP C Compiler
15600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15602 # This bug is HP SR number 8606223364.
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15604 $as_echo_n "checking size of int... " >&6; }
15605 if test "${ac_cv_sizeof_int+set}" = set; then :
15606   $as_echo_n "(cached) " >&6
15607 else
15608   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15609
15610 else
15611   if test "$ac_cv_type_int" = yes; then
15612      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15614 { as_fn_set_status 77
15615 as_fn_error "cannot compute sizeof (int)
15616 See \`config.log' for more details." "$LINENO" 5; }; }
15617    else
15618      ac_cv_sizeof_int=0
15619    fi
15620 fi
15621
15622 fi
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15624 $as_echo "$ac_cv_sizeof_int" >&6; }
15625
15626
15627
15628 cat >>confdefs.h <<_ACEOF
15629 #define SIZEOF_INT $ac_cv_sizeof_int
15630 _ACEOF
15631
15632
15633   # The cast to long int works around a bug in the HP C Compiler
15634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15636 # This bug is HP SR number 8606223364.
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15638 $as_echo_n "checking size of short... " >&6; }
15639 if test "${ac_cv_sizeof_short+set}" = set; then :
15640   $as_echo_n "(cached) " >&6
15641 else
15642   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15643
15644 else
15645   if test "$ac_cv_type_short" = yes; then
15646      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15648 { as_fn_set_status 77
15649 as_fn_error "cannot compute sizeof (short)
15650 See \`config.log' for more details." "$LINENO" 5; }; }
15651    else
15652      ac_cv_sizeof_short=0
15653    fi
15654 fi
15655
15656 fi
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15658 $as_echo "$ac_cv_sizeof_short" >&6; }
15659
15660
15661
15662 cat >>confdefs.h <<_ACEOF
15663 #define SIZEOF_SHORT $ac_cv_sizeof_short
15664 _ACEOF
15665
15666
15667   # The cast to long int works around a bug in the HP C Compiler
15668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15670 # This bug is HP SR number 8606223364.
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15672 $as_echo_n "checking size of char... " >&6; }
15673 if test "${ac_cv_sizeof_char+set}" = set; then :
15674   $as_echo_n "(cached) " >&6
15675 else
15676   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15677
15678 else
15679   if test "$ac_cv_type_char" = yes; then
15680      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15682 { as_fn_set_status 77
15683 as_fn_error "cannot compute sizeof (char)
15684 See \`config.log' for more details." "$LINENO" 5; }; }
15685    else
15686      ac_cv_sizeof_char=0
15687    fi
15688 fi
15689
15690 fi
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15692 $as_echo "$ac_cv_sizeof_char" >&6; }
15693
15694
15695
15696 cat >>confdefs.h <<_ACEOF
15697 #define SIZEOF_CHAR $ac_cv_sizeof_char
15698 _ACEOF
15699
15700
15701
15702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15703 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15704   case "$ac_cv_sizeof_char" in
15705     1) acx_cv_type_int8_t=char ;;
15706     *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15707   esac
15708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15709 $as_echo "$acx_cv_type_int8_t" >&6; }
15710
15711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15712 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15713   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15714     2:*) acx_cv_type_int16_t=int ;;
15715     *:2) acx_cv_type_int16_t=short ;;
15716     *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15717   esac
15718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15719 $as_echo "$acx_cv_type_int16_t" >&6; }
15720
15721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15722 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15723   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15724     4:*) acx_cv_type_int32_t=int ;;
15725     *:4) acx_cv_type_int32_t=long ;;
15726     *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15727   esac
15728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15729 $as_echo "$acx_cv_type_int32_t" >&6; }
15730 fi
15731
15732 # These tests are here to make the output prettier
15733
15734 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15735   case "$ac_cv_sizeof_long" in
15736     8) acx_cv_type_int64_t=long ;;
15737   esac
15738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15739 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15741 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15742 fi
15743
15744 # Now we can use the above types
15745
15746 if test "$ac_cv_type_uintptr_t" != yes; then
15747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15748 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15749   case $ac_cv_sizeof_void_p in
15750     2) acx_cv_type_intptr_t=int16_t ;;
15751     4) acx_cv_type_intptr_t=int32_t ;;
15752     8) acx_cv_type_intptr_t=int64_t ;;
15753     *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15754   esac
15755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15756 $as_echo "$acx_cv_type_intptr_t" >&6; }
15757 fi
15758
15759 # ----------------- done all checks, emit header -------------
15760 ac_config_commands="$ac_config_commands gstdint.h"
15761
15762
15763
15764
15765
15766 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15767 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15768   gcc_header_sys_mman_h=yes
15769 else
15770   gcc_header_sys_mman_h=no
15771 fi
15772
15773
15774 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15775 if test "x$ac_cv_func_mmap" = x""yes; then :
15776   gcc_func_mmap=yes
15777 else
15778   gcc_func_mmap=no
15779 fi
15780
15781 if test "$gcc_header_sys_mman_h" != yes \
15782  || test "$gcc_func_mmap" != yes; then
15783    gcc_cv_func_mmap_file=no
15784    gcc_cv_func_mmap_dev_zero=no
15785    gcc_cv_func_mmap_anon=no
15786 else
15787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15788 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15789 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15790   $as_echo_n "(cached) " >&6
15791 else
15792   # Add a system to this blacklist if
15793    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15794    # memory area containing the same data that you'd get if you applied
15795    # read() to the same fd.  The only system known to have a problem here
15796    # is VMS, where text files have record structure.
15797    case "$host_os" in
15798      vms* | ultrix*)
15799         gcc_cv_func_mmap_file=no ;;
15800      *)
15801         gcc_cv_func_mmap_file=yes;;
15802    esac
15803 fi
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15805 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15807 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15808 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15809   $as_echo_n "(cached) " >&6
15810 else
15811   # Add a system to this blacklist if it has mmap() but /dev/zero
15812    # does not exist, or if mmapping /dev/zero does not give anonymous
15813    # zeroed pages with both the following properties:
15814    # 1. If you map N consecutive pages in with one call, and then
15815    #    unmap any subset of those pages, the pages that were not
15816    #    explicitly unmapped remain accessible.
15817    # 2. If you map two adjacent blocks of memory and then unmap them
15818    #    both at once, they must both go away.
15819    # Systems known to be in this category are Windows (all variants),
15820    # VMS, and Darwin.
15821    case "$host_os" in
15822      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15823         gcc_cv_func_mmap_dev_zero=no ;;
15824      *)
15825         gcc_cv_func_mmap_dev_zero=yes;;
15826    esac
15827 fi
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15829 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15830
15831    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15833 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15834 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15835   $as_echo_n "(cached) " >&6
15836 else
15837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h.  */
15839 #include <sys/types.h>
15840 #include <sys/mman.h>
15841 #include <unistd.h>
15842
15843 #ifndef MAP_ANONYMOUS
15844 #define MAP_ANONYMOUS MAP_ANON
15845 #endif
15846
15847 int
15848 main ()
15849 {
15850 int n = MAP_ANONYMOUS;
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 if ac_fn_c_try_compile "$LINENO"; then :
15856   gcc_cv_decl_map_anon=yes
15857 else
15858   gcc_cv_decl_map_anon=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15863 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15864
15865    if test $gcc_cv_decl_map_anon = no; then
15866      gcc_cv_func_mmap_anon=no
15867    else
15868      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15869 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15870 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15871   $as_echo_n "(cached) " >&6
15872 else
15873   # Add a system to this blacklist if it has mmap() and MAP_ANON or
15874    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15875    # doesn't give anonymous zeroed pages with the same properties listed
15876    # above for use of /dev/zero.
15877    # Systems known to be in this category are Windows, VMS, and SCO Unix.
15878    case "$host_os" in
15879      vms* | cygwin* | pe | mingw* | sco* | udk* )
15880         gcc_cv_func_mmap_anon=no ;;
15881      *)
15882         gcc_cv_func_mmap_anon=yes;;
15883    esac
15884 fi
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15886 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15887    fi
15888 fi
15889
15890 if test $gcc_cv_func_mmap_file = yes; then
15891
15892 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15893
15894 fi
15895 if test $gcc_cv_func_mmap_dev_zero = yes; then
15896
15897 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15898
15899 fi
15900 if test $gcc_cv_func_mmap_anon = yes; then
15901
15902 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15903
15904 fi
15905
15906
15907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15908 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15909 if test "${ac_cv_c_bigendian+set}" = set; then :
15910   $as_echo_n "(cached) " >&6
15911 else
15912   ac_cv_c_bigendian=unknown
15913     # See if we're dealing with a universal compiler.
15914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h.  */
15916 #ifndef __APPLE_CC__
15917                not a universal capable compiler
15918              #endif
15919              typedef int dummy;
15920
15921 _ACEOF
15922 if ac_fn_c_try_compile "$LINENO"; then :
15923
15924         # Check for potential -arch flags.  It is not universal unless
15925         # there are at least two -arch flags with different values.
15926         ac_arch=
15927         ac_prev=
15928         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15929          if test -n "$ac_prev"; then
15930            case $ac_word in
15931              i?86 | x86_64 | ppc | ppc64)
15932                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15933                  ac_arch=$ac_word
15934                else
15935                  ac_cv_c_bigendian=universal
15936                  break
15937                fi
15938                ;;
15939            esac
15940            ac_prev=
15941          elif test "x$ac_word" = "x-arch"; then
15942            ac_prev=arch
15943          fi
15944        done
15945 fi
15946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947     if test $ac_cv_c_bigendian = unknown; then
15948       # See if sys/param.h defines the BYTE_ORDER macro.
15949       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h.  */
15951 #include <sys/types.h>
15952              #include <sys/param.h>
15953
15954 int
15955 main ()
15956 {
15957 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15958                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15959                      && LITTLE_ENDIAN)
15960               bogus endian macros
15961              #endif
15962
15963   ;
15964   return 0;
15965 }
15966 _ACEOF
15967 if ac_fn_c_try_compile "$LINENO"; then :
15968   # It does; now see whether it defined to BIG_ENDIAN or not.
15969          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h.  */
15971 #include <sys/types.h>
15972                 #include <sys/param.h>
15973
15974 int
15975 main ()
15976 {
15977 #if BYTE_ORDER != BIG_ENDIAN
15978                  not big endian
15979                 #endif
15980
15981   ;
15982   return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_compile "$LINENO"; then :
15986   ac_cv_c_bigendian=yes
15987 else
15988   ac_cv_c_bigendian=no
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15993     fi
15994     if test $ac_cv_c_bigendian = unknown; then
15995       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15996       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h.  */
15998 #include <limits.h>
15999
16000 int
16001 main ()
16002 {
16003 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16004               bogus endian macros
16005              #endif
16006
16007   ;
16008   return 0;
16009 }
16010 _ACEOF
16011 if ac_fn_c_try_compile "$LINENO"; then :
16012   # It does; now see whether it defined to _BIG_ENDIAN or not.
16013          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h.  */
16015 #include <limits.h>
16016
16017 int
16018 main ()
16019 {
16020 #ifndef _BIG_ENDIAN
16021                  not big endian
16022                 #endif
16023
16024   ;
16025   return 0;
16026 }
16027 _ACEOF
16028 if ac_fn_c_try_compile "$LINENO"; then :
16029   ac_cv_c_bigendian=yes
16030 else
16031   ac_cv_c_bigendian=no
16032 fi
16033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 fi
16035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036     fi
16037     if test $ac_cv_c_bigendian = unknown; then
16038       # Compile a test program.
16039       if test "$cross_compiling" = yes; then :
16040   # Try to guess by grepping values from an object file.
16041          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h.  */
16043 short int ascii_mm[] =
16044                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16045                 short int ascii_ii[] =
16046                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16047                 int use_ascii (int i) {
16048                   return ascii_mm[i] + ascii_ii[i];
16049                 }
16050                 short int ebcdic_ii[] =
16051                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16052                 short int ebcdic_mm[] =
16053                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16054                 int use_ebcdic (int i) {
16055                   return ebcdic_mm[i] + ebcdic_ii[i];
16056                 }
16057                 extern int foo;
16058
16059 int
16060 main ()
16061 {
16062 return use_ascii (foo) == use_ebcdic (foo);
16063   ;
16064   return 0;
16065 }
16066 _ACEOF
16067 if ac_fn_c_try_compile "$LINENO"; then :
16068   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16069               ac_cv_c_bigendian=yes
16070             fi
16071             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16072               if test "$ac_cv_c_bigendian" = unknown; then
16073                 ac_cv_c_bigendian=no
16074               else
16075                 # finding both strings is unlikely to happen, but who knows?
16076                 ac_cv_c_bigendian=unknown
16077               fi
16078             fi
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081 else
16082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h.  */
16084 $ac_includes_default
16085 int
16086 main ()
16087 {
16088
16089              /* Are we little or big endian?  From Harbison&Steele.  */
16090              union
16091              {
16092                long int l;
16093                char c[sizeof (long int)];
16094              } u;
16095              u.l = 1;
16096              return u.c[sizeof (long int) - 1] == 1;
16097
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 if ac_fn_c_try_run "$LINENO"; then :
16103   ac_cv_c_bigendian=no
16104 else
16105   ac_cv_c_bigendian=yes
16106 fi
16107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16108   conftest.$ac_objext conftest.beam conftest.$ac_ext
16109 fi
16110
16111     fi
16112 fi
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16114 $as_echo "$ac_cv_c_bigendian" >&6; }
16115  case $ac_cv_c_bigendian in #(
16116    yes)
16117      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16118 ;; #(
16119    no)
16120       ;; #(
16121    universal)
16122
16123 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16124
16125      ;; #(
16126    *)
16127      as_fn_error "unknown endianness
16128  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16129  esac
16130
16131 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16132
16133
16134 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
16135 # In case the pthread.h system header is not found, this test will fail.
16136 XPCFLAGS=""
16137 CFLAGS="$CFLAGS -pthread"
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h.  */
16140 #include <pthread.h>
16141    void *g(void *d) { return NULL; }
16142 int
16143 main ()
16144 {
16145 pthread_t t; pthread_create(&t,NULL,g,NULL);
16146   ;
16147   return 0;
16148 }
16149 _ACEOF
16150 if ac_fn_c_try_link "$LINENO"; then :
16151   XPCFLAGS=" -Wc,-pthread"
16152 else
16153   CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h.  */
16156 #include <pthread.h>
16157      void *g(void *d) { return NULL; }
16158 int
16159 main ()
16160 {
16161 pthread_t t; pthread_create(&t,NULL,g,NULL);
16162   ;
16163   return 0;
16164 }
16165 _ACEOF
16166 if ac_fn_c_try_link "$LINENO"; then :
16167
16168 else
16169   as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext \
16172     conftest$ac_exeext conftest.$ac_ext
16173 fi
16174 rm -f core conftest.err conftest.$ac_objext \
16175     conftest$ac_exeext conftest.$ac_ext
16176
16177 # Check for functions needed.
16178 for ac_func in strtoull memalign posix_memalign
16179 do :
16180   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16182 eval as_val=\$$as_ac_var
16183    if test "x$as_val" = x""yes; then :
16184   cat >>confdefs.h <<_ACEOF
16185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16186 _ACEOF
16187
16188 fi
16189 done
16190
16191
16192 # Check for broken semaphore implementation on darwin.
16193 # sem_init returns: sem_init error: Function not implemented.
16194 case "$host" in
16195   *-darwin*)
16196
16197 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16198
16199     ;;
16200 esac
16201
16202  # Check whether --enable-linux-futex was given.
16203 if test "${enable_linux_futex+set}" = set; then :
16204   enableval=$enable_linux_futex;
16205       case "$enableval" in
16206        yes|no|default) ;;
16207        *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16208                           esac
16209
16210 else
16211   enable_linux_futex=default
16212 fi
16213
16214
16215 case "$target" in
16216   *-linux*)
16217     case "$enable_linux_futex" in
16218       default)
16219         # If headers don't have gettid/futex syscalls definition, then
16220         # default to no, otherwise there will be compile time failures.
16221         # Otherwise, default to yes.  If we don't detect we are
16222         # compiled/linked against NPTL and not cross-compiling, check
16223         # if programs are run by default against NPTL and if not, issue
16224         # a warning.
16225         enable_linux_futex=no
16226         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h.  */
16228 #include <sys/syscall.h>
16229            int lk;
16230 int
16231 main ()
16232 {
16233 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 if ac_fn_c_try_link "$LINENO"; then :
16239   save_LIBS="$LIBS"
16240            LIBS="-lpthread $LIBS"
16241            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h.  */
16243 #ifndef _GNU_SOURCE
16244              #define _GNU_SOURCE 1
16245              #endif
16246              #include <pthread.h>
16247              pthread_t th; void *status;
16248 int
16249 main ()
16250 {
16251 pthread_tryjoin_np (th, &status);
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 if ac_fn_c_try_link "$LINENO"; then :
16257   enable_linux_futex=yes
16258 else
16259   if test x$cross_compiling = xno; then
16260                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16261                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16262                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16263 If so, please configure with --disable-linux-futex" >&5
16264 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16265 If so, please configure with --disable-linux-futex" >&2;}
16266                fi
16267              fi
16268              enable_linux_futex=yes
16269 fi
16270 rm -f core conftest.err conftest.$ac_objext \
16271     conftest$ac_exeext conftest.$ac_ext
16272            LIBS="$save_LIBS"
16273 fi
16274 rm -f core conftest.err conftest.$ac_objext \
16275     conftest$ac_exeext conftest.$ac_ext
16276         ;;
16277       yes)
16278         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h.  */
16280 #include <sys/syscall.h>
16281            int lk;
16282 int
16283 main ()
16284 {
16285 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 if ac_fn_c_try_link "$LINENO"; then :
16291
16292 else
16293   as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext \
16296     conftest$ac_exeext conftest.$ac_ext
16297         ;;
16298     esac
16299     ;;
16300   *)
16301     enable_linux_futex=no
16302     ;;
16303 esac
16304 if test x$enable_linux_futex = xyes; then
16305   :
16306 fi
16307
16308
16309 # See if we support thread-local storage.
16310
16311
16312    # Check whether --enable-tls was given.
16313 if test "${enable_tls+set}" = set; then :
16314   enableval=$enable_tls;
16315       case "$enableval" in
16316        yes|no) ;;
16317        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16318       esac
16319
16320 else
16321   enable_tls=yes
16322 fi
16323
16324
16325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16326 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16327 if test "${gcc_cv_have_tls+set}" = set; then :
16328   $as_echo_n "(cached) " >&6
16329 else
16330
16331     if test "$cross_compiling" = yes; then :
16332                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h.  */
16334 __thread int a; int b; int main() { return a = b; }
16335 _ACEOF
16336 if ac_fn_c_try_link "$LINENO"; then :
16337   chktls_save_LDFLAGS="$LDFLAGS"
16338                           case $host in
16339             *-*-linux*)
16340               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16341               ;;
16342           esac
16343           chktls_save_CFLAGS="$CFLAGS"
16344           CFLAGS="-fPIC $CFLAGS"
16345                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346 /* end confdefs.h.  */
16347 int f() { return 0; }
16348 _ACEOF
16349 if ac_fn_c_try_link "$LINENO"; then :
16350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h.  */
16352 __thread int a; int b; int f() { return a = b; }
16353 _ACEOF
16354 if ac_fn_c_try_link "$LINENO"; then :
16355   gcc_cv_have_tls=yes
16356 else
16357   gcc_cv_have_tls=no
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext \
16360     conftest$ac_exeext conftest.$ac_ext
16361 else
16362   gcc_cv_have_tls=yes
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext \
16365     conftest$ac_exeext conftest.$ac_ext
16366           CFLAGS="$chktls_save_CFLAGS"
16367           LDFLAGS="$chktls_save_LDFLAGS"
16368 else
16369   gcc_cv_have_tls=no
16370 fi
16371 rm -f core conftest.err conftest.$ac_objext \
16372     conftest$ac_exeext conftest.$ac_ext
16373
16374
16375 else
16376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h.  */
16378 __thread int a; int b; int main() { return a = b; }
16379 _ACEOF
16380 if ac_fn_c_try_run "$LINENO"; then :
16381                       chktls_save_LDFLAGS="$LDFLAGS"
16382       LDFLAGS="-static $LDFLAGS"
16383       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h.  */
16385 int main() { return 0; }
16386 _ACEOF
16387 if ac_fn_c_try_link "$LINENO"; then :
16388   if test "$cross_compiling" = yes; then :
16389   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16391 as_fn_error "cannot run test program while cross compiling
16392 See \`config.log' for more details." "$LINENO" 5; }
16393 else
16394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h.  */
16396 __thread int a; int b; int main() { return a = b; }
16397 _ACEOF
16398 if ac_fn_c_try_run "$LINENO"; then :
16399   gcc_cv_have_tls=yes
16400 else
16401   gcc_cv_have_tls=no
16402 fi
16403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16404   conftest.$ac_objext conftest.beam conftest.$ac_ext
16405 fi
16406
16407 else
16408   gcc_cv_have_tls=yes
16409 fi
16410 rm -f core conftest.err conftest.$ac_objext \
16411     conftest$ac_exeext conftest.$ac_ext
16412       LDFLAGS="$chktls_save_LDFLAGS"
16413       if test $gcc_cv_have_tls = yes; then
16414                                                 chktls_save_CFLAGS="$CFLAGS"
16415         thread_CFLAGS=failed
16416         for flag in '' '-pthread' '-lpthread'; do
16417           CFLAGS="$flag $chktls_save_CFLAGS"
16418           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h.  */
16420 #include <pthread.h>
16421                 void *g(void *d) { return NULL; }
16422 int
16423 main ()
16424 {
16425 pthread_t t; pthread_create(&t,NULL,g,NULL);
16426   ;
16427   return 0;
16428 }
16429 _ACEOF
16430 if ac_fn_c_try_link "$LINENO"; then :
16431   thread_CFLAGS="$flag"
16432 fi
16433 rm -f core conftest.err conftest.$ac_objext \
16434     conftest$ac_exeext conftest.$ac_ext
16435           if test "X$thread_CFLAGS" != Xfailed; then
16436             break
16437           fi
16438         done
16439         CFLAGS="$chktls_save_CFLAGS"
16440         if test "X$thread_CFLAGS" != Xfailed; then
16441           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16442                                                   if test "$cross_compiling" = yes; then :
16443   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16445 as_fn_error "cannot run test program while cross compiling
16446 See \`config.log' for more details." "$LINENO" 5; }
16447 else
16448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16449 /* end confdefs.h.  */
16450 #include <pthread.h>
16451                 __thread int a;
16452                 static int *volatile a_in_other_thread;
16453                 static void *
16454                 thread_func (void *arg)
16455                 {
16456                   a_in_other_thread = &a;
16457                   return (void *)0;
16458                 }
16459 int
16460 main ()
16461 {
16462 pthread_t thread;
16463                 void *thread_retval;
16464                 int *volatile a_in_main_thread;
16465                 a_in_main_thread = &a;
16466                 if (pthread_create (&thread, (pthread_attr_t *)0,
16467                                     thread_func, (void *)0))
16468                   return 0;
16469                 if (pthread_join (thread, &thread_retval))
16470                   return 0;
16471                 return (a_in_other_thread == a_in_main_thread);
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_c_try_run "$LINENO"; then :
16477   gcc_cv_have_tls=yes
16478 else
16479   gcc_cv_have_tls=no
16480 fi
16481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16482   conftest.$ac_objext conftest.beam conftest.$ac_ext
16483 fi
16484
16485           CFLAGS="$chktls_save_CFLAGS"
16486         fi
16487       fi
16488 else
16489   gcc_cv_have_tls=no
16490 fi
16491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16492   conftest.$ac_objext conftest.beam conftest.$ac_ext
16493 fi
16494
16495 fi
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16497 $as_echo "$gcc_cv_have_tls" >&6; }
16498   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16499
16500 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16501
16502   fi
16503
16504 # See what sort of export controls are available.
16505
16506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16507 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16508 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16509   $as_echo_n "(cached) " >&6
16510 else
16511
16512   save_CFLAGS="$CFLAGS"
16513   CFLAGS="$CFLAGS -Werror"
16514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h.  */
16516 void __attribute__((visibility("hidden"))) foo(void) { }
16517 int
16518 main ()
16519 {
16520
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 if ac_fn_c_try_compile "$LINENO"; then :
16526   libitm_cv_have_attribute_visibility=yes
16527 else
16528   libitm_cv_have_attribute_visibility=no
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531   CFLAGS="$save_CFLAGS"
16532 fi
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16534 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16535   if test $libitm_cv_have_attribute_visibility = yes; then
16536
16537 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16538
16539   fi
16540
16541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16542 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16543 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16544   $as_echo_n "(cached) " >&6
16545 else
16546
16547   save_CFLAGS="$CFLAGS"
16548   CFLAGS="$CFLAGS -Werror"
16549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h.  */
16551 void __attribute__((dllexport)) foo(void) { }
16552 int
16553 main ()
16554 {
16555
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 if ac_fn_c_try_compile "$LINENO"; then :
16561   libitm_cv_have_attribute_dllexport=yes
16562 else
16563   libitm_cv_have_attribute_dllexport=no
16564 fi
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566   CFLAGS="$save_CFLAGS"
16567 fi
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16569 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16570   if test $libitm_cv_have_attribute_dllexport = yes; then
16571
16572 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16573
16574   fi
16575
16576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16577 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16578 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16579   $as_echo_n "(cached) " >&6
16580 else
16581
16582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h.  */
16584
16585 void foo(void) { }
16586 extern void bar(void) __attribute__((alias("foo")));
16587 int
16588 main ()
16589 {
16590 bar();
16591   ;
16592   return 0;
16593 }
16594 _ACEOF
16595 if ac_fn_c_try_link "$LINENO"; then :
16596   libitm_cv_have_attribute_alias=yes
16597 else
16598   libitm_cv_have_attribute_alias=no
16599 fi
16600 rm -f core conftest.err conftest.$ac_objext \
16601     conftest$ac_exeext conftest.$ac_ext
16602 fi
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16604 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16605   if test $libitm_cv_have_attribute_alias = yes; then
16606
16607 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16608
16609   fi
16610
16611 # Check linker hardware capability support.
16612
16613
16614 # Check whether --with-gnu-ld was given.
16615 if test "${with_gnu_ld+set}" = set; then :
16616   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16617 else
16618   with_gnu_ld=no
16619 fi
16620
16621 ac_prog=ld
16622 if test "$GCC" = yes; then
16623   # Check if gcc -print-prog-name=ld gives a path.
16624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16625 $as_echo_n "checking for ld used by $CC... " >&6; }
16626   case $host in
16627   *-*-mingw*)
16628     # gcc leaves a trailing carriage return which upsets mingw
16629     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16630   *)
16631     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16632   esac
16633   case $ac_prog in
16634     # Accept absolute paths.
16635     [\\/]* | ?:[\\/]*)
16636       re_direlt='/[^/][^/]*/\.\./'
16637       # Canonicalize the pathname of ld
16638       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16639       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16640         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16641       done
16642       test -z "$LD" && LD="$ac_prog"
16643       ;;
16644   "")
16645     # If it fails, then pretend we aren't using GCC.
16646     ac_prog=ld
16647     ;;
16648   *)
16649     # If it is relative, then search for the first ld in PATH.
16650     with_gnu_ld=unknown
16651     ;;
16652   esac
16653 elif test "$with_gnu_ld" = yes; then
16654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16655 $as_echo_n "checking for GNU ld... " >&6; }
16656 else
16657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16658 $as_echo_n "checking for non-GNU ld... " >&6; }
16659 fi
16660 if test "${lt_cv_path_LD+set}" = set; then :
16661   $as_echo_n "(cached) " >&6
16662 else
16663   if test -z "$LD"; then
16664   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16665   for ac_dir in $PATH; do
16666     IFS="$lt_save_ifs"
16667     test -z "$ac_dir" && ac_dir=.
16668     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16669       lt_cv_path_LD="$ac_dir/$ac_prog"
16670       # Check to see if the program is GNU ld.  I'd rather use --version,
16671       # but apparently some variants of GNU ld only accept -v.
16672       # Break only if it was the GNU/non-GNU ld that we prefer.
16673       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16674       *GNU* | *'with BFD'*)
16675         test "$with_gnu_ld" != no && break
16676         ;;
16677       *)
16678         test "$with_gnu_ld" != yes && break
16679         ;;
16680       esac
16681     fi
16682   done
16683   IFS="$lt_save_ifs"
16684 else
16685   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16686 fi
16687 fi
16688
16689 LD="$lt_cv_path_LD"
16690 if test -n "$LD"; then
16691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16692 $as_echo "$LD" >&6; }
16693 else
16694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16695 $as_echo "no" >&6; }
16696 fi
16697 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16699 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16700 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16701   $as_echo_n "(cached) " >&6
16702 else
16703   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16704 case `$LD -v 2>&1 </dev/null` in
16705 *GNU* | *'with BFD'*)
16706   lt_cv_prog_gnu_ld=yes
16707   ;;
16708 *)
16709   lt_cv_prog_gnu_ld=no
16710   ;;
16711 esac
16712 fi
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16714 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16715 with_gnu_ld=$lt_cv_prog_gnu_ld
16716
16717
16718
16719
16720
16721
16722
16723   test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16724
16725
16726   ac_save_LDFLAGS="$LDFLAGS"
16727   LDFLAGS="$LFLAGS -Wl,-M,$srcdir/clearcap.map"
16728
16729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-M,mapfile" >&5
16730 $as_echo_n "checking for ld that supports -Wl,-M,mapfile... " >&6; }
16731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h.  */
16733
16734 int
16735 main ()
16736 {
16737 return 0;
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 if ac_fn_c_try_link "$LINENO"; then :
16743   ac_hwcap_ldflags=yes
16744 else
16745   ac_hwcap_ldflags=no
16746 fi
16747 rm -f core conftest.err conftest.$ac_objext \
16748     conftest$ac_exeext conftest.$ac_ext
16749   if test "$ac_hwcap_ldflags" = "yes"; then
16750     HWCAP_LDFLAGS="-Wl,-M,$srcdir/clearcap.map $HWCAP_LDFLAGS"
16751   fi
16752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16753 $as_echo "$ac_hwcap_ldflags" >&6; }
16754
16755   LDFLAGS="$ac_save_LDFLAGS"
16756
16757
16758
16759    if test $ac_hwcap_ldflags != no; then
16760   HAVE_HWCAP_TRUE=
16761   HAVE_HWCAP_FALSE='#'
16762 else
16763   HAVE_HWCAP_TRUE='#'
16764   HAVE_HWCAP_FALSE=
16765 fi
16766
16767
16768 # If defaulting to -mavx, don't clear hwcaps.
16769 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16770 if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16771   HWCAP_LDFLAGS=''
16772 fi
16773
16774
16775
16776   # If we're not using GNU ld, then there's no point in even trying these
16777   # tests.  Check for that first.  We should have already tested for gld
16778   # by now (in libtool), but require it now just to be safe...
16779   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16780   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16781
16782
16783
16784   # The name set by libtool depends on the version of libtool.  Shame on us
16785   # for depending on an impl detail, but c'est la vie.  Older versions used
16786   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16787   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16788   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16789   # set (hence we're using an older libtool), then set it.
16790   if test x${with_gnu_ld+set} != xset; then
16791     if test x${ac_cv_prog_gnu_ld+set} != xset; then
16792       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16793       with_gnu_ld=no
16794     else
16795       with_gnu_ld=$ac_cv_prog_gnu_ld
16796     fi
16797   fi
16798
16799   # Start by getting the version number.  I think the libtool test already
16800   # does some of this, but throws away the result.
16801   libitm_ld_is_gold=no
16802   if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16803     libitm_ld_is_gold=yes
16804   fi
16805
16806   ldver=`$LD --version 2>/dev/null |
16807          sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16808
16809   libitm_gnu_ld_version=`echo $ldver | \
16810          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16811
16812   # Set --gc-sections.
16813   if test "$with_gnu_ld" = "notbroken"; then
16814     # GNU ld it is!  Joy and bunny rabbits!
16815
16816     # All these tests are for C++; save the language and the compiler flags.
16817     # Need to do this so that g++ won't try to link in libstdc++
16818     ac_test_CFLAGS="${CFLAGS+set}"
16819     ac_save_CFLAGS="$CFLAGS"
16820     CFLAGS='-x c++  -Wl,--gc-sections'
16821
16822     # Check for -Wl,--gc-sections
16823     # XXX This test is broken at the moment, as symbols required for linking
16824     # are now in libsupc++ (not built yet).  In addition, this test has
16825     # cored on solaris in the past.  In addition, --gc-sections doesn't
16826     # really work at the moment (keeps on discarding used sections, first
16827     # .eh_frame and now some of the glibc sections for iconv).
16828     # Bzzzzt.  Thanks for playing, maybe next time.
16829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16830 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16831     if test "$cross_compiling" = yes; then :
16832   ac_sectionLDflags=yes
16833 else
16834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h.  */
16836
16837      int main(void)
16838      {
16839        try { throw 1; }
16840        catch (...) { };
16841        return 0;
16842      }
16843
16844 _ACEOF
16845 if ac_fn_c_try_run "$LINENO"; then :
16846   ac_sectionLDflags=yes
16847 else
16848   ac_sectionLDflags=no
16849 fi
16850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16851   conftest.$ac_objext conftest.beam conftest.$ac_ext
16852 fi
16853
16854     if test "$ac_test_CFLAGS" = set; then
16855       CFLAGS="$ac_save_CFLAGS"
16856     else
16857       # this is the suspicious part
16858       CFLAGS=''
16859     fi
16860     if test "$ac_sectionLDflags" = "yes"; then
16861       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16862     fi
16863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16864 $as_echo "$ac_sectionLDflags" >&6; }
16865   fi
16866
16867   # Set linker optimization flags.
16868   if test x"$with_gnu_ld" = x"yes"; then
16869     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16870   fi
16871
16872
16873
16874
16875
16876
16877  # Check whether --enable-symvers was given.
16878 if test "${enable_symvers+set}" = set; then :
16879   enableval=$enable_symvers;
16880       case "$enableval" in
16881        yes|no|gnu*|sun) ;;
16882        *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16883                           esac
16884
16885 else
16886   enable_symvers=yes
16887 fi
16888
16889
16890
16891 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16892 # don't know enough about $LD to do tricks...
16893
16894
16895 # Turn a 'yes' into a suitable default.
16896 if test x$enable_symvers = xyes ; then
16897   # FIXME  The following test is too strict, in theory.
16898   if test $enable_shared = no || test "x$LD" = x; then
16899     enable_symvers=no
16900   else
16901     if test $with_gnu_ld = yes ; then
16902       enable_symvers=gnu
16903     else
16904       case ${target_os} in
16905         # Sun symbol versioning exists since Solaris 2.5.
16906         solaris2.[5-9]* | solaris2.1[0-9]*)
16907           enable_symvers=sun ;;
16908         *)
16909           enable_symvers=no ;;
16910       esac
16911     fi
16912   fi
16913 fi
16914
16915 # Check if 'sun' was requested on non-Solaris 2 platforms.
16916 if test x$enable_symvers = xsun ; then
16917   case ${target_os} in
16918     solaris2*)
16919       # All fine.
16920       ;;
16921     *)
16922       # Unlikely to work.
16923       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16924 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16925       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16926 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16927       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16928 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16929       enable_symvers=no
16930       ;;
16931   esac
16932 fi
16933
16934 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16935 if test $enable_symvers != no; then
16936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16937 $as_echo_n "checking for shared libgcc... " >&6; }
16938   ac_save_CFLAGS="$CFLAGS"
16939   CFLAGS=' -lgcc_s'
16940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h.  */
16942
16943 int
16944 main ()
16945 {
16946 return 0;
16947   ;
16948   return 0;
16949 }
16950 _ACEOF
16951 if ac_fn_c_try_link "$LINENO"; then :
16952   libitm_shared_libgcc=yes
16953 else
16954   libitm_shared_libgcc=no
16955 fi
16956 rm -f core conftest.err conftest.$ac_objext \
16957     conftest$ac_exeext conftest.$ac_ext
16958   CFLAGS="$ac_save_CFLAGS"
16959   if test $libitm_shared_libgcc = no; then
16960     cat > conftest.c <<EOF
16961 int main (void) { return 0; }
16962 EOF
16963     libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16964                              -shared -shared-libgcc -o conftest.so \
16965                              conftest.c -v 2>&1 >/dev/null \
16966                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16967     rm -f conftest.c conftest.so
16968     if test x${libitm_libgcc_s_suffix+set} = xset; then
16969       CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16970       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h.  */
16972
16973 int
16974 main ()
16975 {
16976 return 0;
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 if ac_fn_c_try_link "$LINENO"; then :
16982   libitm_shared_libgcc=yes
16983 fi
16984 rm -f core conftest.err conftest.$ac_objext \
16985     conftest$ac_exeext conftest.$ac_ext
16986       CFLAGS="$ac_save_CFLAGS"
16987     fi
16988   fi
16989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16990 $as_echo "$libitm_shared_libgcc" >&6; }
16991 fi
16992
16993 # For GNU ld, we need at least this version.  The format is described in
16994 # LIBITM_CHECK_LINKER_FEATURES above.
16995 libitm_min_gnu_ld_version=21400
16996 # XXXXXXXXXXX libitm_gnu_ld_version=21390
16997
16998 # Check to see if unspecified "yes" value can win, given results above.
16999 # Change "yes" into either "no" or a style name.
17000 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17001   if test $with_gnu_ld = yes; then
17002     if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17003       enable_symvers=gnu
17004     elif test $libitm_ld_is_gold = yes ; then
17005       enable_symvers=gnu
17006     else
17007       # The right tools, the right setup, but too old.  Fallbacks?
17008       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17009 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17010       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17011 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17013 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17014       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17015 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17016       if test $libitm_gnu_ld_version -ge 21200 ; then
17017         # Globbing fix is present, proper block support is not.
17018                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17019 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17020         enable_symvers=no
17021       else
17022         # 2.11 or older.
17023         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17024 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17025         enable_symvers=no
17026       fi
17027     fi
17028   elif test $enable_symvers = sun; then
17029     : All interesting versions of Sun ld support sun style symbol versioning.
17030   else
17031     # just fail for now
17032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17033 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17035 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17037 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17039 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17040     enable_symvers=no
17041   fi
17042 fi
17043
17044  if test $enable_symvers != no; then
17045   LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17046   LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17047 else
17048   LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17049   LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17050 fi
17051
17052  if test $enable_symvers = gnu; then
17053   LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17054   LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17055 else
17056   LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17057   LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17058 fi
17059
17060  if test $enable_symvers = sun; then
17061   LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17062   LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17063 else
17064   LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17065   LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17066 fi
17067
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17069 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17070
17071 if test $enable_symvers = gnu; then
17072
17073 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17074
17075 fi
17076
17077 # See if we can emit unwind info in the sjlj stub.
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17079 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17080 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17081   $as_echo_n "(cached) " >&6
17082 else
17083
17084     gcc_cv_as_cfi_pseudo_op=unknown
17085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h.  */
17087 asm (".cfi_startproc\n\t.cfi_endproc");
17088 int
17089 main ()
17090 {
17091
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 if ac_fn_c_try_compile "$LINENO"; then :
17097   gcc_cv_as_cfi_pseudo_op=yes
17098 else
17099   gcc_cv_as_cfi_pseudo_op=no
17100 fi
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102
17103 fi
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17105 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17106  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17107
17108 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17109
17110  fi
17111
17112
17113 # Determine the proper ABI type for size_t.
17114
17115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17116 $as_echo_n "checking how size_t is mangled... " >&6; }
17117 if test "${libitm_cv_size_t_mangling+set}" = set; then :
17118   $as_echo_n "(cached) " >&6
17119 else
17120
17121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h.  */
17123
17124 int
17125 main ()
17126 {
17127 extern __SIZE_TYPE__ x; extern unsigned long x;
17128   ;
17129   return 0;
17130 }
17131 _ACEOF
17132 if ac_fn_c_try_compile "$LINENO"; then :
17133   libitm_cv_size_t_mangling=m
17134 else
17135
17136       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h.  */
17138
17139 int
17140 main ()
17141 {
17142 extern __SIZE_TYPE__ x; extern unsigned int x;
17143   ;
17144   return 0;
17145 }
17146 _ACEOF
17147 if ac_fn_c_try_compile "$LINENO"; then :
17148   libitm_cv_size_t_mangling=j
17149 else
17150
17151         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h.  */
17153
17154 int
17155 main ()
17156 {
17157 extern __SIZE_TYPE__ x; extern unsigned long long x;
17158   ;
17159   return 0;
17160 }
17161 _ACEOF
17162 if ac_fn_c_try_compile "$LINENO"; then :
17163   libitm_cv_size_t_mangling=y
17164 else
17165
17166           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h.  */
17168
17169 int
17170 main ()
17171 {
17172 extern __SIZE_TYPE__ x; extern unsigned short x;
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 if ac_fn_c_try_compile "$LINENO"; then :
17178   libitm_cv_size_t_mangling=t
17179 else
17180   libitm_cv_size_t_mangling=x
17181 fi
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183
17184 fi
17185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17186
17187 fi
17188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17189
17190 fi
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192
17193 fi
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17195 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17196   if test $libitm_cv_size_t_mangling = x; then
17197     as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17198   fi
17199
17200 cat >>confdefs.h <<_ACEOF
17201 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17202 _ACEOF
17203
17204
17205
17206 # Get target configury.
17207 . ${srcdir}/configure.tgt
17208 if test -n "$UNSUPPORTED"; then
17209   as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17210 fi
17211
17212 CFLAGS="$save_CFLAGS $XCFLAGS"
17213
17214 # Check for __sync_val_compare_and_swap, but only after the target has
17215 # had a chance to set XCFLAGS.
17216
17217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17218 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17219 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17220   $as_echo_n "(cached) " >&6
17221 else
17222
17223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h.  */
17225
17226 int
17227 main ()
17228 {
17229 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17230   ;
17231   return 0;
17232 }
17233 _ACEOF
17234 if ac_fn_c_try_link "$LINENO"; then :
17235   libitm_cv_have_sync_builtins=yes
17236 else
17237   libitm_cv_have_sync_builtins=no
17238 fi
17239 rm -f core conftest.err conftest.$ac_objext \
17240     conftest$ac_exeext conftest.$ac_ext
17241 fi
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17243 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17244   if test $libitm_cv_have_sync_builtins = yes; then
17245
17246 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17247
17248   fi
17249
17250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17251 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17252 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17253   $as_echo_n "(cached) " >&6
17254 else
17255
17256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h.  */
17258 #include <stdint.h>
17259 int
17260 main ()
17261 {
17262 uint64_t foo, bar;
17263      bar = __sync_val_compare_and_swap(&foo, 0, 1);
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 if ac_fn_c_try_link "$LINENO"; then :
17269   libitm_cv_have_64bit_sync_builtins=yes
17270 else
17271   libitm_cv_have_64bit_sync_builtins=no
17272 fi
17273 rm -f core conftest.err conftest.$ac_objext \
17274     conftest$ac_exeext conftest.$ac_ext
17275 fi
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17277 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17278     if test $libitm_cv_have_64bit_sync_builtins = yes; then
17279
17280 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17281
17282   fi
17283
17284 case "${target_cpu}" in
17285 i[34567]86 | x86_64)
17286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17287 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17288 if test "${libitm_cv_as_avx+set}" = set; then :
17289   $as_echo_n "(cached) " >&6
17290 else
17291
17292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h.  */
17294
17295 int
17296 main ()
17297 {
17298 asm("vzeroupper");
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 if ac_fn_c_try_compile "$LINENO"; then :
17304   libitm_cv_as_avx=yes
17305 else
17306   libitm_cv_as_avx=no
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309
17310 fi
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17312 $as_echo "$libitm_cv_as_avx" >&6; }
17313   if test x$libitm_cv_as_avx = xyes; then
17314
17315 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17316
17317   fi
17318   ;;
17319 esac
17320
17321
17322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17323 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17324 if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17325   $as_echo_n "(cached) " >&6
17326 else
17327
17328   weakref_m4_saved_CFLAGS="$CFLAGS"
17329   case "${host}" in
17330     *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17331     *) ;;
17332   esac
17333   if test "$cross_compiling" = yes; then :
17334
17335 case "${host}" in
17336   alpha*-dec-osf*) ac_cv_have_elf_style_weakref=no ;;
17337   *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17338   *) ac_cv_have_elf_style_weakref=yes;;
17339 esac
17340 else
17341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h.  */
17343
17344 extern void fNotToBeFound(void) __attribute__((weak));
17345 int main ()
17346 {
17347   if (fNotToBeFound)
17348     return 1;
17349   else
17350     return 0;
17351 }
17352
17353 _ACEOF
17354 if ac_fn_c_try_run "$LINENO"; then :
17355   ac_cv_have_elf_style_weakref=yes
17356 else
17357   ac_cv_have_elf_style_weakref=no
17358 fi
17359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17360   conftest.$ac_objext conftest.beam conftest.$ac_ext
17361 fi
17362 CFLAGS="$weakref_m4_saved_CFLAGS"
17363 fi
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17365 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17366 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17367
17368 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17369
17370 fi
17371
17372 # Cleanup and exit.
17373 CFLAGS="$save_CFLAGS"
17374 cat >confcache <<\_ACEOF
17375 # This file is a shell script that caches the results of configure
17376 # tests run on this system so they can be shared between configure
17377 # scripts and configure runs, see configure's option --config-cache.
17378 # It is not useful on other systems.  If it contains results you don't
17379 # want to keep, you may remove or edit it.
17380 #
17381 # config.status only pays attention to the cache file if you give it
17382 # the --recheck option to rerun configure.
17383 #
17384 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17385 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17386 # following values.
17387
17388 _ACEOF
17389
17390 # The following way of writing the cache mishandles newlines in values,
17391 # but we know of no workaround that is simple, portable, and efficient.
17392 # So, we kill variables containing newlines.
17393 # Ultrix sh set writes to stderr and can't be redirected directly,
17394 # and sets the high bit in the cache file unless we assign to the vars.
17395 (
17396   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17397     eval ac_val=\$$ac_var
17398     case $ac_val in #(
17399     *${as_nl}*)
17400       case $ac_var in #(
17401       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17402 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17403       esac
17404       case $ac_var in #(
17405       _ | IFS | as_nl) ;; #(
17406       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17407       *) { eval $ac_var=; unset $ac_var;} ;;
17408       esac ;;
17409     esac
17410   done
17411
17412   (set) 2>&1 |
17413     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17414     *${as_nl}ac_space=\ *)
17415       # `set' does not quote correctly, so add quotes: double-quote
17416       # substitution turns \\\\ into \\, and sed turns \\ into \.
17417       sed -n \
17418         "s/'/'\\\\''/g;
17419           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17420       ;; #(
17421     *)
17422       # `set' quotes correctly as required by POSIX, so do not add quotes.
17423       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17424       ;;
17425     esac |
17426     sort
17427 ) |
17428   sed '
17429      /^ac_cv_env_/b end
17430      t clear
17431      :clear
17432      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17433      t end
17434      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17435      :end' >>confcache
17436 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17437   if test -w "$cache_file"; then
17438     test "x$cache_file" != "x/dev/null" &&
17439       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17440 $as_echo "$as_me: updating cache $cache_file" >&6;}
17441     cat confcache >$cache_file
17442   else
17443     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17444 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17445   fi
17446 fi
17447 rm -f confcache
17448
17449 # Add -Wall -Werror if we are using GCC.
17450 if test "x$GCC" = "xyes"; then
17451   XCFLAGS="$XCFLAGS -Wall -Werror"
17452 fi
17453
17454 XCFLAGS="$XCFLAGS $XPCFLAGS"
17455
17456
17457
17458
17459
17460 if test ${multilib} = yes; then
17461   multilib_arg="--enable-multilib"
17462 else
17463   multilib_arg=
17464 fi
17465
17466 # Set up the set of libraries that we need to link against for libitm.
17467 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17468 # which will force linkage against -lpthread (or equivalent for the system).
17469 # That's not 100% ideal, but about the best we can do easily.
17470 if test $enable_shared = yes; then
17471   link_itm="-litm %{static: $LIBS}"
17472 else
17473   link_itm="-litm $LIBS"
17474 fi
17475
17476
17477  if test "$ARCH" = arm; then
17478   ARCH_ARM_TRUE=
17479   ARCH_ARM_FALSE='#'
17480 else
17481   ARCH_ARM_TRUE='#'
17482   ARCH_ARM_FALSE=
17483 fi
17484
17485  if test "$ARCH" = x86; then
17486   ARCH_X86_TRUE=
17487   ARCH_X86_FALSE='#'
17488 else
17489   ARCH_X86_TRUE='#'
17490   ARCH_X86_FALSE=
17491 fi
17492
17493  if test "$libitm_cv_as_avx" = yes; then
17494   ARCH_X86_AVX_TRUE=
17495   ARCH_X86_AVX_FALSE='#'
17496 else
17497   ARCH_X86_AVX_TRUE='#'
17498   ARCH_X86_AVX_FALSE=
17499 fi
17500
17501  if test $enable_linux_futex = yes; then
17502   ARCH_FUTEX_TRUE=
17503   ARCH_FUTEX_FALSE='#'
17504 else
17505   ARCH_FUTEX_TRUE='#'
17506   ARCH_FUTEX_FALSE=
17507 fi
17508
17509
17510 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17511
17512 cat >confcache <<\_ACEOF
17513 # This file is a shell script that caches the results of configure
17514 # tests run on this system so they can be shared between configure
17515 # scripts and configure runs, see configure's option --config-cache.
17516 # It is not useful on other systems.  If it contains results you don't
17517 # want to keep, you may remove or edit it.
17518 #
17519 # config.status only pays attention to the cache file if you give it
17520 # the --recheck option to rerun configure.
17521 #
17522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17524 # following values.
17525
17526 _ACEOF
17527
17528 # The following way of writing the cache mishandles newlines in values,
17529 # but we know of no workaround that is simple, portable, and efficient.
17530 # So, we kill variables containing newlines.
17531 # Ultrix sh set writes to stderr and can't be redirected directly,
17532 # and sets the high bit in the cache file unless we assign to the vars.
17533 (
17534   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17535     eval ac_val=\$$ac_var
17536     case $ac_val in #(
17537     *${as_nl}*)
17538       case $ac_var in #(
17539       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17541       esac
17542       case $ac_var in #(
17543       _ | IFS | as_nl) ;; #(
17544       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17545       *) { eval $ac_var=; unset $ac_var;} ;;
17546       esac ;;
17547     esac
17548   done
17549
17550   (set) 2>&1 |
17551     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17552     *${as_nl}ac_space=\ *)
17553       # `set' does not quote correctly, so add quotes: double-quote
17554       # substitution turns \\\\ into \\, and sed turns \\ into \.
17555       sed -n \
17556         "s/'/'\\\\''/g;
17557           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17558       ;; #(
17559     *)
17560       # `set' quotes correctly as required by POSIX, so do not add quotes.
17561       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17562       ;;
17563     esac |
17564     sort
17565 ) |
17566   sed '
17567      /^ac_cv_env_/b end
17568      t clear
17569      :clear
17570      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17571      t end
17572      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17573      :end' >>confcache
17574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17575   if test -w "$cache_file"; then
17576     test "x$cache_file" != "x/dev/null" &&
17577       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17578 $as_echo "$as_me: updating cache $cache_file" >&6;}
17579     cat confcache >$cache_file
17580   else
17581     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17583   fi
17584 fi
17585 rm -f confcache
17586
17587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17588 # Let make expand exec_prefix.
17589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17590
17591 DEFS=-DHAVE_CONFIG_H
17592
17593 ac_libobjs=
17594 ac_ltlibobjs=
17595 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17596   # 1. Remove the extension, and $U if already installed.
17597   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17598   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17599   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17600   #    will be set to the directory where LIBOBJS objects are built.
17601   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17602   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17603 done
17604 LIBOBJS=$ac_libobjs
17605
17606 LTLIBOBJS=$ac_ltlibobjs
17607
17608
17609 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17610   as_fn_error "conditional \"GENINSRC\" was never defined.
17611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17612 fi
17613  if test -n "$EXEEXT"; then
17614   am__EXEEXT_TRUE=
17615   am__EXEEXT_FALSE='#'
17616 else
17617   am__EXEEXT_TRUE='#'
17618   am__EXEEXT_FALSE=
17619 fi
17620
17621 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17622   as_fn_error "conditional \"AMDEP\" was never defined.
17623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17624 fi
17625 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17626   as_fn_error "conditional \"am__fastdepCC\" was never defined.
17627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17628 fi
17629 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17630   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17632 fi
17633 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17634   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17636 fi
17637 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17638   as_fn_error "conditional \"BUILD_INFO\" was never defined.
17639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17640 fi
17641 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17642   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17644 fi
17645
17646 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17647   as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17649 fi
17650 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17651   as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17653 fi
17654 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17655   as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17657 fi
17658 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17659   as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17661 fi
17662 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17663   as_fn_error "conditional \"ARCH_ARM\" was never defined.
17664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17665 fi
17666 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17667   as_fn_error "conditional \"ARCH_X86\" was never defined.
17668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17669 fi
17670 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17671   as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17673 fi
17674 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17675   as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17677 fi
17678
17679 : ${CONFIG_STATUS=./config.status}
17680 ac_write_fail=0
17681 ac_clean_files_save=$ac_clean_files
17682 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17684 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17685 as_write_fail=0
17686 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17687 #! $SHELL
17688 # Generated by $as_me.
17689 # Run this file to recreate the current configuration.
17690 # Compiler output produced by configure, useful for debugging
17691 # configure, is in config.log if it exists.
17692
17693 debug=false
17694 ac_cs_recheck=false
17695 ac_cs_silent=false
17696
17697 SHELL=\${CONFIG_SHELL-$SHELL}
17698 export SHELL
17699 _ASEOF
17700 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17701 ## -------------------- ##
17702 ## M4sh Initialization. ##
17703 ## -------------------- ##
17704
17705 # Be more Bourne compatible
17706 DUALCASE=1; export DUALCASE # for MKS sh
17707 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17708   emulate sh
17709   NULLCMD=:
17710   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17711   # is contrary to our usage.  Disable this feature.
17712   alias -g '${1+"$@"}'='"$@"'
17713   setopt NO_GLOB_SUBST
17714 else
17715   case `(set -o) 2>/dev/null` in #(
17716   *posix*) :
17717     set -o posix ;; #(
17718   *) :
17719      ;;
17720 esac
17721 fi
17722
17723
17724 as_nl='
17725 '
17726 export as_nl
17727 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17728 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17731 # Prefer a ksh shell builtin over an external printf program on Solaris,
17732 # but without wasting forks for bash or zsh.
17733 if test -z "$BASH_VERSION$ZSH_VERSION" \
17734     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17735   as_echo='print -r --'
17736   as_echo_n='print -rn --'
17737 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17738   as_echo='printf %s\n'
17739   as_echo_n='printf %s'
17740 else
17741   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17742     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17743     as_echo_n='/usr/ucb/echo -n'
17744   else
17745     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17746     as_echo_n_body='eval
17747       arg=$1;
17748       case $arg in #(
17749       *"$as_nl"*)
17750         expr "X$arg" : "X\\(.*\\)$as_nl";
17751         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17752       esac;
17753       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17754     '
17755     export as_echo_n_body
17756     as_echo_n='sh -c $as_echo_n_body as_echo'
17757   fi
17758   export as_echo_body
17759   as_echo='sh -c $as_echo_body as_echo'
17760 fi
17761
17762 # The user is always right.
17763 if test "${PATH_SEPARATOR+set}" != set; then
17764   PATH_SEPARATOR=:
17765   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17766     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17767       PATH_SEPARATOR=';'
17768   }
17769 fi
17770
17771
17772 # IFS
17773 # We need space, tab and new line, in precisely that order.  Quoting is
17774 # there to prevent editors from complaining about space-tab.
17775 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17776 # splitting by setting IFS to empty value.)
17777 IFS=" ""        $as_nl"
17778
17779 # Find who we are.  Look in the path if we contain no directory separator.
17780 case $0 in #((
17781   *[\\/]* ) as_myself=$0 ;;
17782   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17783 for as_dir in $PATH
17784 do
17785   IFS=$as_save_IFS
17786   test -z "$as_dir" && as_dir=.
17787     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17788   done
17789 IFS=$as_save_IFS
17790
17791      ;;
17792 esac
17793 # We did not find ourselves, most probably we were run as `sh COMMAND'
17794 # in which case we are not to be found in the path.
17795 if test "x$as_myself" = x; then
17796   as_myself=$0
17797 fi
17798 if test ! -f "$as_myself"; then
17799   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17800   exit 1
17801 fi
17802
17803 # Unset variables that we do not need and which cause bugs (e.g. in
17804 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17805 # suppresses any "Segmentation fault" message there.  '((' could
17806 # trigger a bug in pdksh 5.2.14.
17807 for as_var in BASH_ENV ENV MAIL MAILPATH
17808 do eval test x\${$as_var+set} = xset \
17809   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17810 done
17811 PS1='$ '
17812 PS2='> '
17813 PS4='+ '
17814
17815 # NLS nuisances.
17816 LC_ALL=C
17817 export LC_ALL
17818 LANGUAGE=C
17819 export LANGUAGE
17820
17821 # CDPATH.
17822 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17823
17824
17825 # as_fn_error ERROR [LINENO LOG_FD]
17826 # ---------------------------------
17827 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17828 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17829 # script with status $?, using 1 if that was 0.
17830 as_fn_error ()
17831 {
17832   as_status=$?; test $as_status -eq 0 && as_status=1
17833   if test "$3"; then
17834     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17835     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17836   fi
17837   $as_echo "$as_me: error: $1" >&2
17838   as_fn_exit $as_status
17839 } # as_fn_error
17840
17841
17842 # as_fn_set_status STATUS
17843 # -----------------------
17844 # Set $? to STATUS, without forking.
17845 as_fn_set_status ()
17846 {
17847   return $1
17848 } # as_fn_set_status
17849
17850 # as_fn_exit STATUS
17851 # -----------------
17852 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17853 as_fn_exit ()
17854 {
17855   set +e
17856   as_fn_set_status $1
17857   exit $1
17858 } # as_fn_exit
17859
17860 # as_fn_unset VAR
17861 # ---------------
17862 # Portably unset VAR.
17863 as_fn_unset ()
17864 {
17865   { eval $1=; unset $1;}
17866 }
17867 as_unset=as_fn_unset
17868 # as_fn_append VAR VALUE
17869 # ----------------------
17870 # Append the text in VALUE to the end of the definition contained in VAR. Take
17871 # advantage of any shell optimizations that allow amortized linear growth over
17872 # repeated appends, instead of the typical quadratic growth present in naive
17873 # implementations.
17874 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17875   eval 'as_fn_append ()
17876   {
17877     eval $1+=\$2
17878   }'
17879 else
17880   as_fn_append ()
17881   {
17882     eval $1=\$$1\$2
17883   }
17884 fi # as_fn_append
17885
17886 # as_fn_arith ARG...
17887 # ------------------
17888 # Perform arithmetic evaluation on the ARGs, and store the result in the
17889 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17890 # must be portable across $(()) and expr.
17891 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17892   eval 'as_fn_arith ()
17893   {
17894     as_val=$(( $* ))
17895   }'
17896 else
17897   as_fn_arith ()
17898   {
17899     as_val=`expr "$@" || test $? -eq 1`
17900   }
17901 fi # as_fn_arith
17902
17903
17904 if expr a : '\(a\)' >/dev/null 2>&1 &&
17905    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17906   as_expr=expr
17907 else
17908   as_expr=false
17909 fi
17910
17911 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17912   as_basename=basename
17913 else
17914   as_basename=false
17915 fi
17916
17917 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17918   as_dirname=dirname
17919 else
17920   as_dirname=false
17921 fi
17922
17923 as_me=`$as_basename -- "$0" ||
17924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17925          X"$0" : 'X\(//\)$' \| \
17926          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17927 $as_echo X/"$0" |
17928     sed '/^.*\/\([^/][^/]*\)\/*$/{
17929             s//\1/
17930             q
17931           }
17932           /^X\/\(\/\/\)$/{
17933             s//\1/
17934             q
17935           }
17936           /^X\/\(\/\).*/{
17937             s//\1/
17938             q
17939           }
17940           s/.*/./; q'`
17941
17942 # Avoid depending upon Character Ranges.
17943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17946 as_cr_digits='0123456789'
17947 as_cr_alnum=$as_cr_Letters$as_cr_digits
17948
17949 ECHO_C= ECHO_N= ECHO_T=
17950 case `echo -n x` in #(((((
17951 -n*)
17952   case `echo 'xy\c'` in
17953   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17954   xy)  ECHO_C='\c';;
17955   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17956        ECHO_T=' ';;
17957   esac;;
17958 *)
17959   ECHO_N='-n';;
17960 esac
17961
17962 rm -f conf$$ conf$$.exe conf$$.file
17963 if test -d conf$$.dir; then
17964   rm -f conf$$.dir/conf$$.file
17965 else
17966   rm -f conf$$.dir
17967   mkdir conf$$.dir 2>/dev/null
17968 fi
17969 if (echo >conf$$.file) 2>/dev/null; then
17970   if ln -s conf$$.file conf$$ 2>/dev/null; then
17971     as_ln_s='ln -s'
17972     # ... but there are two gotchas:
17973     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17974     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17975     # In both cases, we have to default to `cp -p'.
17976     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17977       as_ln_s='cp -p'
17978   elif ln conf$$.file conf$$ 2>/dev/null; then
17979     as_ln_s=ln
17980   else
17981     as_ln_s='cp -p'
17982   fi
17983 else
17984   as_ln_s='cp -p'
17985 fi
17986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17987 rmdir conf$$.dir 2>/dev/null
17988
17989
17990 # as_fn_mkdir_p
17991 # -------------
17992 # Create "$as_dir" as a directory, including parents if necessary.
17993 as_fn_mkdir_p ()
17994 {
17995
17996   case $as_dir in #(
17997   -*) as_dir=./$as_dir;;
17998   esac
17999   test -d "$as_dir" || eval $as_mkdir_p || {
18000     as_dirs=
18001     while :; do
18002       case $as_dir in #(
18003       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18004       *) as_qdir=$as_dir;;
18005       esac
18006       as_dirs="'$as_qdir' $as_dirs"
18007       as_dir=`$as_dirname -- "$as_dir" ||
18008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18009          X"$as_dir" : 'X\(//\)[^/]' \| \
18010          X"$as_dir" : 'X\(//\)$' \| \
18011          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18012 $as_echo X"$as_dir" |
18013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18014             s//\1/
18015             q
18016           }
18017           /^X\(\/\/\)[^/].*/{
18018             s//\1/
18019             q
18020           }
18021           /^X\(\/\/\)$/{
18022             s//\1/
18023             q
18024           }
18025           /^X\(\/\).*/{
18026             s//\1/
18027             q
18028           }
18029           s/.*/./; q'`
18030       test -d "$as_dir" && break
18031     done
18032     test -z "$as_dirs" || eval "mkdir $as_dirs"
18033   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18034
18035
18036 } # as_fn_mkdir_p
18037 if mkdir -p . 2>/dev/null; then
18038   as_mkdir_p='mkdir -p "$as_dir"'
18039 else
18040   test -d ./-p && rmdir ./-p
18041   as_mkdir_p=false
18042 fi
18043
18044 if test -x / >/dev/null 2>&1; then
18045   as_test_x='test -x'
18046 else
18047   if ls -dL / >/dev/null 2>&1; then
18048     as_ls_L_option=L
18049   else
18050     as_ls_L_option=
18051   fi
18052   as_test_x='
18053     eval sh -c '\''
18054       if test -d "$1"; then
18055         test -d "$1/.";
18056       else
18057         case $1 in #(
18058         -*)set "./$1";;
18059         esac;
18060         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18061         ???[sx]*):;;*)false;;esac;fi
18062     '\'' sh
18063   '
18064 fi
18065 as_executable_p=$as_test_x
18066
18067 # Sed expression to map a string onto a valid CPP name.
18068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18069
18070 # Sed expression to map a string onto a valid variable name.
18071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18072
18073
18074 exec 6>&1
18075 ## ----------------------------------- ##
18076 ## Main body of $CONFIG_STATUS script. ##
18077 ## ----------------------------------- ##
18078 _ASEOF
18079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18080
18081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18082 # Save the log message, to keep $0 and so on meaningful, and to
18083 # report actual input values of CONFIG_FILES etc. instead of their
18084 # values after options handling.
18085 ac_log="
18086 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18087 generated by GNU Autoconf 2.64.  Invocation command line was
18088
18089   CONFIG_FILES    = $CONFIG_FILES
18090   CONFIG_HEADERS  = $CONFIG_HEADERS
18091   CONFIG_LINKS    = $CONFIG_LINKS
18092   CONFIG_COMMANDS = $CONFIG_COMMANDS
18093   $ $0 $@
18094
18095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18096 "
18097
18098 _ACEOF
18099
18100 case $ac_config_files in *"
18101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18102 esac
18103
18104 case $ac_config_headers in *"
18105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18106 esac
18107
18108
18109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18110 # Files that config.status was made for.
18111 config_files="$ac_config_files"
18112 config_headers="$ac_config_headers"
18113 config_commands="$ac_config_commands"
18114
18115 _ACEOF
18116
18117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18118 ac_cs_usage="\
18119 \`$as_me' instantiates files and other configuration actions
18120 from templates according to the current configuration.  Unless the files
18121 and actions are specified as TAGs, all are instantiated by default.
18122
18123 Usage: $0 [OPTION]... [TAG]...
18124
18125   -h, --help       print this help, then exit
18126   -V, --version    print version number and configuration settings, then exit
18127   -q, --quiet, --silent
18128                    do not print progress messages
18129   -d, --debug      don't remove temporary files
18130       --recheck    update $as_me by reconfiguring in the same conditions
18131       --file=FILE[:TEMPLATE]
18132                    instantiate the configuration file FILE
18133       --header=FILE[:TEMPLATE]
18134                    instantiate the configuration header FILE
18135
18136 Configuration files:
18137 $config_files
18138
18139 Configuration headers:
18140 $config_headers
18141
18142 Configuration commands:
18143 $config_commands
18144
18145 Report bugs to the package provider.
18146 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18147 General help using GNU software: <http://www.gnu.org/gethelp/>."
18148
18149 _ACEOF
18150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18151 ac_cs_version="\\
18152 GNU TM Runtime Library config.status 1.0
18153 configured by $0, generated by GNU Autoconf 2.64,
18154   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18155
18156 Copyright (C) 2009 Free Software Foundation, Inc.
18157 This config.status script is free software; the Free Software Foundation
18158 gives unlimited permission to copy, distribute and modify it."
18159
18160 ac_pwd='$ac_pwd'
18161 srcdir='$srcdir'
18162 INSTALL='$INSTALL'
18163 MKDIR_P='$MKDIR_P'
18164 AWK='$AWK'
18165 test -n "\$AWK" || AWK=awk
18166 _ACEOF
18167
18168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18169 # The default lists apply if the user does not specify any file.
18170 ac_need_defaults=:
18171 while test $# != 0
18172 do
18173   case $1 in
18174   --*=*)
18175     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18176     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18177     ac_shift=:
18178     ;;
18179   *)
18180     ac_option=$1
18181     ac_optarg=$2
18182     ac_shift=shift
18183     ;;
18184   esac
18185
18186   case $ac_option in
18187   # Handling of the options.
18188   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18189     ac_cs_recheck=: ;;
18190   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18191     $as_echo "$ac_cs_version"; exit ;;
18192   --debug | --debu | --deb | --de | --d | -d )
18193     debug=: ;;
18194   --file | --fil | --fi | --f )
18195     $ac_shift
18196     case $ac_optarg in
18197     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18198     esac
18199     as_fn_append CONFIG_FILES " '$ac_optarg'"
18200     ac_need_defaults=false;;
18201   --header | --heade | --head | --hea )
18202     $ac_shift
18203     case $ac_optarg in
18204     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18205     esac
18206     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18207     ac_need_defaults=false;;
18208   --he | --h)
18209     # Conflict between --help and --header
18210     as_fn_error "ambiguous option: \`$1'
18211 Try \`$0 --help' for more information.";;
18212   --help | --hel | -h )
18213     $as_echo "$ac_cs_usage"; exit ;;
18214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18215   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18216     ac_cs_silent=: ;;
18217
18218   # This is an error.
18219   -*) as_fn_error "unrecognized option: \`$1'
18220 Try \`$0 --help' for more information." ;;
18221
18222   *) as_fn_append ac_config_targets " $1"
18223      ac_need_defaults=false ;;
18224
18225   esac
18226   shift
18227 done
18228
18229 ac_configure_extra_args=
18230
18231 if $ac_cs_silent; then
18232   exec 6>/dev/null
18233   ac_configure_extra_args="$ac_configure_extra_args --silent"
18234 fi
18235
18236 _ACEOF
18237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18238 if \$ac_cs_recheck; then
18239   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18240   shift
18241   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18242   CONFIG_SHELL='$SHELL'
18243   export CONFIG_SHELL
18244   exec "\$@"
18245 fi
18246
18247 _ACEOF
18248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18249 exec 5>>config.log
18250 {
18251   echo
18252   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18253 ## Running $as_me. ##
18254 _ASBOX
18255   $as_echo "$ac_log"
18256 } >&5
18257
18258 _ACEOF
18259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18260 #
18261 # INIT-COMMANDS
18262 #
18263
18264 srcdir="$srcdir"
18265 host="$host"
18266 target="$target"
18267 with_multisubdir="$with_multisubdir"
18268 with_multisrctop="$with_multisrctop"
18269 with_target_subdir="$with_target_subdir"
18270 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18271 multi_basedir="$multi_basedir"
18272 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18273 CC="$CC"
18274 CXX="$CXX"
18275 GFORTRAN="$GFORTRAN"
18276 GCJ="$GCJ"
18277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18278
18279
18280 # The HP-UX ksh and POSIX shell print the target directory to stdout
18281 # if CDPATH is set.
18282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18283
18284 sed_quote_subst='$sed_quote_subst'
18285 double_quote_subst='$double_quote_subst'
18286 delay_variable_subst='$delay_variable_subst'
18287 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18288 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18289 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18290 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18291 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18292 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18293 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18294 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18295 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18296 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18297 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18298 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18299 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18300 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18301 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18302 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18303 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18304 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18305 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18306 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18307 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18308 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18309 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18310 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18311 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18312 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18313 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18314 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18315 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18316 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18317 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18318 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18319 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18322 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18323 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18324 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18325 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18326 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18327 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18328 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18329 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18330 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18331 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18332 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18334 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18335 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"`'
18336 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18337 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18338 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18339 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18340 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18341 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18342 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18343 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18344 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18345 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18346 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18347 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18348 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18349 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18350 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18351 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18352 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18353 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18354 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18355 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18356 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18357 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18358 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18359 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18360 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18361 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18362 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18363 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18364 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18365 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18366 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18367 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18368 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18369 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18370 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18371 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18372 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18373 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18374 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18375 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18376 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18377 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18378 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18379 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18380 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18381 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18382 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18383 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18384 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18385 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18386 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18387 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18388 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18389 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18390 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18391 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18392 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18393 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18394 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18395 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18396 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18397 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18398 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18399 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18400 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18401 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18402 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18403 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18404 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18405 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18406 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18407 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18408 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18409 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18410 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18411 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18412 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18413 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18414 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18415 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18416 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18417 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18418 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18419 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18420 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18421 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18422 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18423 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18424 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18425 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18426 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18427 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18428 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18429 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18430 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18431 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18432 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18433 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18434 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18435 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18436 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18437 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18438 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18439 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18440 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18441 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18442 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18443 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18444 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18445 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18446 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18447 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18448 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18449 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18450 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18451 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18452 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18453 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18454 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18455 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18456 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18457 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18458 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18459 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18460 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18461 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18462
18463 LTCC='$LTCC'
18464 LTCFLAGS='$LTCFLAGS'
18465 compiler='$compiler_DEFAULT'
18466
18467 # A function that is used when there is no print builtin or printf.
18468 func_fallback_echo ()
18469 {
18470   eval 'cat <<_LTECHO_EOF
18471 \$1
18472 _LTECHO_EOF'
18473 }
18474
18475 # Quote evaled strings.
18476 for var in SHELL \
18477 ECHO \
18478 SED \
18479 GREP \
18480 EGREP \
18481 FGREP \
18482 LD \
18483 NM \
18484 LN_S \
18485 lt_SP2NL \
18486 lt_NL2SP \
18487 reload_flag \
18488 OBJDUMP \
18489 deplibs_check_method \
18490 file_magic_cmd \
18491 AR \
18492 AR_FLAGS \
18493 STRIP \
18494 RANLIB \
18495 CC \
18496 CFLAGS \
18497 compiler \
18498 lt_cv_sys_global_symbol_pipe \
18499 lt_cv_sys_global_symbol_to_cdecl \
18500 lt_cv_sys_global_symbol_to_c_name_address \
18501 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18502 lt_prog_compiler_no_builtin_flag \
18503 lt_prog_compiler_wl \
18504 lt_prog_compiler_pic \
18505 lt_prog_compiler_static \
18506 lt_cv_prog_compiler_c_o \
18507 need_locks \
18508 DSYMUTIL \
18509 NMEDIT \
18510 LIPO \
18511 OTOOL \
18512 OTOOL64 \
18513 shrext_cmds \
18514 export_dynamic_flag_spec \
18515 whole_archive_flag_spec \
18516 compiler_needs_object \
18517 with_gnu_ld \
18518 allow_undefined_flag \
18519 no_undefined_flag \
18520 hardcode_libdir_flag_spec \
18521 hardcode_libdir_flag_spec_ld \
18522 hardcode_libdir_separator \
18523 fix_srcfile_path \
18524 exclude_expsyms \
18525 include_expsyms \
18526 file_list_spec \
18527 variables_saved_for_relink \
18528 libname_spec \
18529 library_names_spec \
18530 soname_spec \
18531 install_override_mode \
18532 finish_eval \
18533 old_striplib \
18534 striplib \
18535 compiler_lib_search_dirs \
18536 predep_objects \
18537 postdep_objects \
18538 predeps \
18539 postdeps \
18540 compiler_lib_search_path \
18541 LD_CXX \
18542 reload_flag_CXX \
18543 compiler_CXX \
18544 lt_prog_compiler_no_builtin_flag_CXX \
18545 lt_prog_compiler_wl_CXX \
18546 lt_prog_compiler_pic_CXX \
18547 lt_prog_compiler_static_CXX \
18548 lt_cv_prog_compiler_c_o_CXX \
18549 export_dynamic_flag_spec_CXX \
18550 whole_archive_flag_spec_CXX \
18551 compiler_needs_object_CXX \
18552 with_gnu_ld_CXX \
18553 allow_undefined_flag_CXX \
18554 no_undefined_flag_CXX \
18555 hardcode_libdir_flag_spec_CXX \
18556 hardcode_libdir_flag_spec_ld_CXX \
18557 hardcode_libdir_separator_CXX \
18558 fix_srcfile_path_CXX \
18559 exclude_expsyms_CXX \
18560 include_expsyms_CXX \
18561 file_list_spec_CXX \
18562 compiler_lib_search_dirs_CXX \
18563 predep_objects_CXX \
18564 postdep_objects_CXX \
18565 predeps_CXX \
18566 postdeps_CXX \
18567 compiler_lib_search_path_CXX; do
18568     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18569     *[\\\\\\\`\\"\\\$]*)
18570       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18571       ;;
18572     *)
18573       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18574       ;;
18575     esac
18576 done
18577
18578 # Double-quote double-evaled strings.
18579 for var in reload_cmds \
18580 old_postinstall_cmds \
18581 old_postuninstall_cmds \
18582 old_archive_cmds \
18583 extract_expsyms_cmds \
18584 old_archive_from_new_cmds \
18585 old_archive_from_expsyms_cmds \
18586 archive_cmds \
18587 archive_expsym_cmds \
18588 module_cmds \
18589 module_expsym_cmds \
18590 export_symbols_cmds \
18591 prelink_cmds \
18592 postinstall_cmds \
18593 postuninstall_cmds \
18594 finish_cmds \
18595 sys_lib_search_path_spec \
18596 sys_lib_dlsearch_path_spec \
18597 reload_cmds_CXX \
18598 old_archive_cmds_CXX \
18599 old_archive_from_new_cmds_CXX \
18600 old_archive_from_expsyms_cmds_CXX \
18601 archive_cmds_CXX \
18602 archive_expsym_cmds_CXX \
18603 module_cmds_CXX \
18604 module_expsym_cmds_CXX \
18605 export_symbols_cmds_CXX \
18606 prelink_cmds_CXX; do
18607     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18608     *[\\\\\\\`\\"\\\$]*)
18609       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18610       ;;
18611     *)
18612       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18613       ;;
18614     esac
18615 done
18616
18617 ac_aux_dir='$ac_aux_dir'
18618 xsi_shell='$xsi_shell'
18619 lt_shell_append='$lt_shell_append'
18620
18621 # See if we are running on zsh, and set the options which allow our
18622 # commands through without removal of \ escapes INIT.
18623 if test -n "\${ZSH_VERSION+set}" ; then
18624    setopt NO_GLOB_SUBST
18625 fi
18626
18627
18628     PACKAGE='$PACKAGE'
18629     VERSION='$VERSION'
18630     TIMESTAMP='$TIMESTAMP'
18631     RM='$RM'
18632     ofile='$ofile'
18633
18634
18635
18636
18637
18638
18639 GCC="$GCC"
18640 CC="$CC"
18641 acx_cv_header_stdint="$acx_cv_header_stdint"
18642 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18643 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18644 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18645 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18646 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18647 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18648 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18649 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18650 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18651 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18652 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18653 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18654 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18655
18656
18657 _ACEOF
18658
18659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18660
18661 # Handling of arguments.
18662 for ac_config_target in $ac_config_targets
18663 do
18664   case $ac_config_target in
18665     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18666     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18667     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18668     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18669     "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18670     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18671     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18672     "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18673
18674   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18675   esac
18676 done
18677
18678
18679 # If the user did not use the arguments to specify the items to instantiate,
18680 # then the envvar interface is used.  Set only those that are not.
18681 # We use the long form for the default assignment because of an extremely
18682 # bizarre bug on SunOS 4.1.3.
18683 if $ac_need_defaults; then
18684   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18685   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18686   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18687 fi
18688
18689 # Have a temporary directory for convenience.  Make it in the build tree
18690 # simply because there is no reason against having it here, and in addition,
18691 # creating and moving files from /tmp can sometimes cause problems.
18692 # Hook for its removal unless debugging.
18693 # Note that there is a small window in which the directory will not be cleaned:
18694 # after its creation but before its name has been assigned to `$tmp'.
18695 $debug ||
18696 {
18697   tmp=
18698   trap 'exit_status=$?
18699   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18700 ' 0
18701   trap 'as_fn_exit 1' 1 2 13 15
18702 }
18703 # Create a (secure) tmp directory for tmp files.
18704
18705 {
18706   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18707   test -n "$tmp" && test -d "$tmp"
18708 }  ||
18709 {
18710   tmp=./conf$$-$RANDOM
18711   (umask 077 && mkdir "$tmp")
18712 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18713
18714 # Set up the scripts for CONFIG_FILES section.
18715 # No need to generate them if there are no CONFIG_FILES.
18716 # This happens for instance with `./config.status config.h'.
18717 if test -n "$CONFIG_FILES"; then
18718
18719
18720 ac_cr=`echo X | tr X '\015'`
18721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18722 # But we know of no other shell where ac_cr would be empty at this
18723 # point, so we can use a bashism as a fallback.
18724 if test "x$ac_cr" = x; then
18725   eval ac_cr=\$\'\\r\'
18726 fi
18727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18729   ac_cs_awk_cr='\r'
18730 else
18731   ac_cs_awk_cr=$ac_cr
18732 fi
18733
18734 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18735 _ACEOF
18736
18737
18738 {
18739   echo "cat >conf$$subs.awk <<_ACEOF" &&
18740   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18741   echo "_ACEOF"
18742 } >conf$$subs.sh ||
18743   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18745 ac_delim='%!_!# '
18746 for ac_last_try in false false false false false :; do
18747   . ./conf$$subs.sh ||
18748     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18749
18750   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18751   if test $ac_delim_n = $ac_delim_num; then
18752     break
18753   elif $ac_last_try; then
18754     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18755   else
18756     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18757   fi
18758 done
18759 rm -f conf$$subs.sh
18760
18761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18762 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18763 _ACEOF
18764 sed -n '
18765 h
18766 s/^/S["/; s/!.*/"]=/
18767 p
18768 g
18769 s/^[^!]*!//
18770 :repl
18771 t repl
18772 s/'"$ac_delim"'$//
18773 t delim
18774 :nl
18775 h
18776 s/\(.\{148\}\).*/\1/
18777 t more1
18778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18779 p
18780 n
18781 b repl
18782 :more1
18783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18784 p
18785 g
18786 s/.\{148\}//
18787 t nl
18788 :delim
18789 h
18790 s/\(.\{148\}\).*/\1/
18791 t more2
18792 s/["\\]/\\&/g; s/^/"/; s/$/"/
18793 p
18794 b
18795 :more2
18796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18797 p
18798 g
18799 s/.\{148\}//
18800 t delim
18801 ' <conf$$subs.awk | sed '
18802 /^[^""]/{
18803   N
18804   s/\n//
18805 }
18806 ' >>$CONFIG_STATUS || ac_write_fail=1
18807 rm -f conf$$subs.awk
18808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18809 _ACAWK
18810 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18811   for (key in S) S_is_set[key] = 1
18812   FS = "\a"
18813
18814 }
18815 {
18816   line = $ 0
18817   nfields = split(line, field, "@")
18818   substed = 0
18819   len = length(field[1])
18820   for (i = 2; i < nfields; i++) {
18821     key = field[i]
18822     keylen = length(key)
18823     if (S_is_set[key]) {
18824       value = S[key]
18825       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18826       len += length(value) + length(field[++i])
18827       substed = 1
18828     } else
18829       len += 1 + keylen
18830   }
18831
18832   print line
18833 }
18834
18835 _ACAWK
18836 _ACEOF
18837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18839   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18840 else
18841   cat
18842 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18843   || as_fn_error "could not setup config files machinery" "$LINENO" 5
18844 _ACEOF
18845
18846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18848 # trailing colons and then remove the whole line if VPATH becomes empty
18849 # (actually we leave an empty line to preserve line numbers).
18850 if test "x$srcdir" = x.; then
18851   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18852 s/:*\$(srcdir):*/:/
18853 s/:*\${srcdir}:*/:/
18854 s/:*@srcdir@:*/:/
18855 s/^\([^=]*=[     ]*\):*/\1/
18856 s/:*$//
18857 s/^[^=]*=[       ]*$//
18858 }'
18859 fi
18860
18861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18862 fi # test -n "$CONFIG_FILES"
18863
18864 # Set up the scripts for CONFIG_HEADERS section.
18865 # No need to generate them if there are no CONFIG_HEADERS.
18866 # This happens for instance with `./config.status Makefile'.
18867 if test -n "$CONFIG_HEADERS"; then
18868 cat >"$tmp/defines.awk" <<\_ACAWK ||
18869 BEGIN {
18870 _ACEOF
18871
18872 # Transform confdefs.h into an awk script `defines.awk', embedded as
18873 # here-document in config.status, that substitutes the proper values into
18874 # config.h.in to produce config.h.
18875
18876 # Create a delimiter string that does not exist in confdefs.h, to ease
18877 # handling of long lines.
18878 ac_delim='%!_!# '
18879 for ac_last_try in false false :; do
18880   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18881   if test -z "$ac_t"; then
18882     break
18883   elif $ac_last_try; then
18884     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18885   else
18886     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18887   fi
18888 done
18889
18890 # For the awk script, D is an array of macro values keyed by name,
18891 # likewise P contains macro parameters if any.  Preserve backslash
18892 # newline sequences.
18893
18894 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18895 sed -n '
18896 s/.\{148\}/&'"$ac_delim"'/g
18897 t rset
18898 :rset
18899 s/^[     ]*#[    ]*define[       ][      ]*/ /
18900 t def
18901 d
18902 :def
18903 s/\\$//
18904 t bsnl
18905 s/["\\]/\\&/g
18906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18907 D["\1"]=" \3"/p
18908 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18909 d
18910 :bsnl
18911 s/["\\]/\\&/g
18912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18913 D["\1"]=" \3\\\\\\n"\\/p
18914 t cont
18915 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18916 t cont
18917 d
18918 :cont
18919 n
18920 s/.\{148\}/&'"$ac_delim"'/g
18921 t clear
18922 :clear
18923 s/\\$//
18924 t bsnlc
18925 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18926 d
18927 :bsnlc
18928 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18929 b cont
18930 ' <confdefs.h | sed '
18931 s/'"$ac_delim"'/"\\\
18932 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18933
18934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18935   for (key in D) D_is_set[key] = 1
18936   FS = "\a"
18937 }
18938 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18939   line = \$ 0
18940   split(line, arg, " ")
18941   if (arg[1] == "#") {
18942     defundef = arg[2]
18943     mac1 = arg[3]
18944   } else {
18945     defundef = substr(arg[1], 2)
18946     mac1 = arg[2]
18947   }
18948   split(mac1, mac2, "(") #)
18949   macro = mac2[1]
18950   prefix = substr(line, 1, index(line, defundef) - 1)
18951   if (D_is_set[macro]) {
18952     # Preserve the white space surrounding the "#".
18953     print prefix "define", macro P[macro] D[macro]
18954     next
18955   } else {
18956     # Replace #undef with comments.  This is necessary, for example,
18957     # in the case of _POSIX_SOURCE, which is predefined and required
18958     # on some systems where configure will not decide to define it.
18959     if (defundef == "undef") {
18960       print "/*", prefix defundef, macro, "*/"
18961       next
18962     }
18963   }
18964 }
18965 { print }
18966 _ACAWK
18967 _ACEOF
18968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18969   as_fn_error "could not setup config headers machinery" "$LINENO" 5
18970 fi # test -n "$CONFIG_HEADERS"
18971
18972
18973 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18974 shift
18975 for ac_tag
18976 do
18977   case $ac_tag in
18978   :[FHLC]) ac_mode=$ac_tag; continue;;
18979   esac
18980   case $ac_mode$ac_tag in
18981   :[FHL]*:*);;
18982   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18983   :[FH]-) ac_tag=-:-;;
18984   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18985   esac
18986   ac_save_IFS=$IFS
18987   IFS=:
18988   set x $ac_tag
18989   IFS=$ac_save_IFS
18990   shift
18991   ac_file=$1
18992   shift
18993
18994   case $ac_mode in
18995   :L) ac_source=$1;;
18996   :[FH])
18997     ac_file_inputs=
18998     for ac_f
18999     do
19000       case $ac_f in
19001       -) ac_f="$tmp/stdin";;
19002       *) # Look for the file first in the build tree, then in the source tree
19003          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19004          # because $ac_f cannot contain `:'.
19005          test -f "$ac_f" ||
19006            case $ac_f in
19007            [\\/$]*) false;;
19008            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19009            esac ||
19010            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19011       esac
19012       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19013       as_fn_append ac_file_inputs " '$ac_f'"
19014     done
19015
19016     # Let's still pretend it is `configure' which instantiates (i.e., don't
19017     # use $as_me), people would be surprised to read:
19018     #    /* config.h.  Generated by config.status.  */
19019     configure_input='Generated from '`
19020           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19021         `' by configure.'
19022     if test x"$ac_file" != x-; then
19023       configure_input="$ac_file.  $configure_input"
19024       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19025 $as_echo "$as_me: creating $ac_file" >&6;}
19026     fi
19027     # Neutralize special characters interpreted by sed in replacement strings.
19028     case $configure_input in #(
19029     *\&* | *\|* | *\\* )
19030        ac_sed_conf_input=`$as_echo "$configure_input" |
19031        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19032     *) ac_sed_conf_input=$configure_input;;
19033     esac
19034
19035     case $ac_tag in
19036     *:-:* | *:-) cat >"$tmp/stdin" \
19037       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19038     esac
19039     ;;
19040   esac
19041
19042   ac_dir=`$as_dirname -- "$ac_file" ||
19043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19044          X"$ac_file" : 'X\(//\)[^/]' \| \
19045          X"$ac_file" : 'X\(//\)$' \| \
19046          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19047 $as_echo X"$ac_file" |
19048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19049             s//\1/
19050             q
19051           }
19052           /^X\(\/\/\)[^/].*/{
19053             s//\1/
19054             q
19055           }
19056           /^X\(\/\/\)$/{
19057             s//\1/
19058             q
19059           }
19060           /^X\(\/\).*/{
19061             s//\1/
19062             q
19063           }
19064           s/.*/./; q'`
19065   as_dir="$ac_dir"; as_fn_mkdir_p
19066   ac_builddir=.
19067
19068 case "$ac_dir" in
19069 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19070 *)
19071   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19072   # A ".." for each directory in $ac_dir_suffix.
19073   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19074   case $ac_top_builddir_sub in
19075   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19076   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19077   esac ;;
19078 esac
19079 ac_abs_top_builddir=$ac_pwd
19080 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19081 # for backward compatibility:
19082 ac_top_builddir=$ac_top_build_prefix
19083
19084 case $srcdir in
19085   .)  # We are building in place.
19086     ac_srcdir=.
19087     ac_top_srcdir=$ac_top_builddir_sub
19088     ac_abs_top_srcdir=$ac_pwd ;;
19089   [\\/]* | ?:[\\/]* )  # Absolute name.
19090     ac_srcdir=$srcdir$ac_dir_suffix;
19091     ac_top_srcdir=$srcdir
19092     ac_abs_top_srcdir=$srcdir ;;
19093   *) # Relative name.
19094     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19095     ac_top_srcdir=$ac_top_build_prefix$srcdir
19096     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19097 esac
19098 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19099
19100
19101   case $ac_mode in
19102   :F)
19103   #
19104   # CONFIG_FILE
19105   #
19106
19107   case $INSTALL in
19108   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19109   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19110   esac
19111   ac_MKDIR_P=$MKDIR_P
19112   case $MKDIR_P in
19113   [\\/$]* | ?:[\\/]* ) ;;
19114   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19115   esac
19116 _ACEOF
19117
19118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19119 # If the template does not know about datarootdir, expand it.
19120 # FIXME: This hack should be removed a few years after 2.60.
19121 ac_datarootdir_hack=; ac_datarootdir_seen=
19122 ac_sed_dataroot='
19123 /datarootdir/ {
19124   p
19125   q
19126 }
19127 /@datadir@/p
19128 /@docdir@/p
19129 /@infodir@/p
19130 /@localedir@/p
19131 /@mandir@/p'
19132 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19133 *datarootdir*) ac_datarootdir_seen=yes;;
19134 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19135   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19136 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19137 _ACEOF
19138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19139   ac_datarootdir_hack='
19140   s&@datadir@&$datadir&g
19141   s&@docdir@&$docdir&g
19142   s&@infodir@&$infodir&g
19143   s&@localedir@&$localedir&g
19144   s&@mandir@&$mandir&g
19145   s&\\\${datarootdir}&$datarootdir&g' ;;
19146 esac
19147 _ACEOF
19148
19149 # Neutralize VPATH when `$srcdir' = `.'.
19150 # Shell code in configure.ac might set extrasub.
19151 # FIXME: do we really want to maintain this feature?
19152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19153 ac_sed_extra="$ac_vpsub
19154 $extrasub
19155 _ACEOF
19156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19157 :t
19158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19159 s|@configure_input@|$ac_sed_conf_input|;t t
19160 s&@top_builddir@&$ac_top_builddir_sub&;t t
19161 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19162 s&@srcdir@&$ac_srcdir&;t t
19163 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19164 s&@top_srcdir@&$ac_top_srcdir&;t t
19165 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19166 s&@builddir@&$ac_builddir&;t t
19167 s&@abs_builddir@&$ac_abs_builddir&;t t
19168 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19169 s&@INSTALL@&$ac_INSTALL&;t t
19170 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19171 $ac_datarootdir_hack
19172 "
19173 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19174   || as_fn_error "could not create $ac_file" "$LINENO" 5
19175
19176 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19177   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19178   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19179   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19180 which seems to be undefined.  Please make sure it is defined." >&5
19181 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19182 which seems to be undefined.  Please make sure it is defined." >&2;}
19183
19184   rm -f "$tmp/stdin"
19185   case $ac_file in
19186   -) cat "$tmp/out" && rm -f "$tmp/out";;
19187   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19188   esac \
19189   || as_fn_error "could not create $ac_file" "$LINENO" 5
19190  ;;
19191   :H)
19192   #
19193   # CONFIG_HEADER
19194   #
19195   if test x"$ac_file" != x-; then
19196     {
19197       $as_echo "/* $configure_input  */" \
19198       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19199     } >"$tmp/config.h" \
19200       || as_fn_error "could not create $ac_file" "$LINENO" 5
19201     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19202       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19203 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19204     else
19205       rm -f "$ac_file"
19206       mv "$tmp/config.h" "$ac_file" \
19207         || as_fn_error "could not create $ac_file" "$LINENO" 5
19208     fi
19209   else
19210     $as_echo "/* $configure_input  */" \
19211       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19212       || as_fn_error "could not create -" "$LINENO" 5
19213   fi
19214 # Compute "$ac_file"'s index in $config_headers.
19215 _am_arg="$ac_file"
19216 _am_stamp_count=1
19217 for _am_header in $config_headers :; do
19218   case $_am_header in
19219     $_am_arg | $_am_arg:* )
19220       break ;;
19221     * )
19222       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19223   esac
19224 done
19225 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19226 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19227          X"$_am_arg" : 'X\(//\)[^/]' \| \
19228          X"$_am_arg" : 'X\(//\)$' \| \
19229          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19230 $as_echo X"$_am_arg" |
19231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19232             s//\1/
19233             q
19234           }
19235           /^X\(\/\/\)[^/].*/{
19236             s//\1/
19237             q
19238           }
19239           /^X\(\/\/\)$/{
19240             s//\1/
19241             q
19242           }
19243           /^X\(\/\).*/{
19244             s//\1/
19245             q
19246           }
19247           s/.*/./; q'`/stamp-h$_am_stamp_count
19248  ;;
19249
19250   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19251 $as_echo "$as_me: executing $ac_file commands" >&6;}
19252  ;;
19253   esac
19254
19255
19256   case $ac_file$ac_mode in
19257     "default-1":C)
19258 # Only add multilib support code if we just rebuilt the top-level
19259 # Makefile.
19260 case " $CONFIG_FILES " in
19261  *" Makefile "*)
19262    ac_file=Makefile . ${multi_basedir}/config-ml.in
19263    ;;
19264 esac ;;
19265     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19266   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19267   # are listed without --file.  Let's play safe and only enable the eval
19268   # if we detect the quoting.
19269   case $CONFIG_FILES in
19270   *\'*) eval set x "$CONFIG_FILES" ;;
19271   *)   set x $CONFIG_FILES ;;
19272   esac
19273   shift
19274   for mf
19275   do
19276     # Strip MF so we end up with the name of the file.
19277     mf=`echo "$mf" | sed -e 's/:.*$//'`
19278     # Check whether this is an Automake generated Makefile or not.
19279     # We used to match only the files named `Makefile.in', but
19280     # some people rename them; so instead we look at the file content.
19281     # Grep'ing the first line is not enough: some people post-process
19282     # each Makefile.in and add a new line on top of each file to say so.
19283     # Grep'ing the whole file is not good either: AIX grep has a line
19284     # limit of 2048, but all sed's we know have understand at least 4000.
19285     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19286       dirpart=`$as_dirname -- "$mf" ||
19287 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19288          X"$mf" : 'X\(//\)[^/]' \| \
19289          X"$mf" : 'X\(//\)$' \| \
19290          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19291 $as_echo X"$mf" |
19292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19293             s//\1/
19294             q
19295           }
19296           /^X\(\/\/\)[^/].*/{
19297             s//\1/
19298             q
19299           }
19300           /^X\(\/\/\)$/{
19301             s//\1/
19302             q
19303           }
19304           /^X\(\/\).*/{
19305             s//\1/
19306             q
19307           }
19308           s/.*/./; q'`
19309     else
19310       continue
19311     fi
19312     # Extract the definition of DEPDIR, am__include, and am__quote
19313     # from the Makefile without running `make'.
19314     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19315     test -z "$DEPDIR" && continue
19316     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19317     test -z "am__include" && continue
19318     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19319     # When using ansi2knr, U may be empty or an underscore; expand it
19320     U=`sed -n 's/^U = //p' < "$mf"`
19321     # Find all dependency output files, they are included files with
19322     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19323     # simplest approach to changing $(DEPDIR) to its actual value in the
19324     # expansion.
19325     for file in `sed -n "
19326       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19327          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19328       # Make sure the directory exists.
19329       test -f "$dirpart/$file" && continue
19330       fdir=`$as_dirname -- "$file" ||
19331 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19332          X"$file" : 'X\(//\)[^/]' \| \
19333          X"$file" : 'X\(//\)$' \| \
19334          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19335 $as_echo X"$file" |
19336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19337             s//\1/
19338             q
19339           }
19340           /^X\(\/\/\)[^/].*/{
19341             s//\1/
19342             q
19343           }
19344           /^X\(\/\/\)$/{
19345             s//\1/
19346             q
19347           }
19348           /^X\(\/\).*/{
19349             s//\1/
19350             q
19351           }
19352           s/.*/./; q'`
19353       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19354       # echo "creating $dirpart/$file"
19355       echo '# dummy' > "$dirpart/$file"
19356     done
19357   done
19358 }
19359  ;;
19360     "libtool":C)
19361
19362     # See if we are running on zsh, and set the options which allow our
19363     # commands through without removal of \ escapes.
19364     if test -n "${ZSH_VERSION+set}" ; then
19365       setopt NO_GLOB_SUBST
19366     fi
19367
19368     cfgfile="${ofile}T"
19369     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19370     $RM "$cfgfile"
19371
19372     cat <<_LT_EOF >> "$cfgfile"
19373 #! $SHELL
19374
19375 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19376 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19378 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19379 #
19380 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19381 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19382 #   Written by Gordon Matzigkeit, 1996
19383 #
19384 #   This file is part of GNU Libtool.
19385 #
19386 # GNU Libtool is free software; you can redistribute it and/or
19387 # modify it under the terms of the GNU General Public License as
19388 # published by the Free Software Foundation; either version 2 of
19389 # the License, or (at your option) any later version.
19390 #
19391 # As a special exception to the GNU General Public License,
19392 # if you distribute this file as part of a program or library that
19393 # is built using GNU Libtool, you may include this file under the
19394 # same distribution terms that you use for the rest of that program.
19395 #
19396 # GNU Libtool is distributed in the hope that it will be useful,
19397 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19398 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19399 # GNU General Public License for more details.
19400 #
19401 # You should have received a copy of the GNU General Public License
19402 # along with GNU Libtool; see the file COPYING.  If not, a copy
19403 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19404 # obtained by writing to the Free Software Foundation, Inc.,
19405 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19406
19407
19408 # The names of the tagged configurations supported by this script.
19409 available_tags="CXX "
19410
19411 # ### BEGIN LIBTOOL CONFIG
19412
19413 # Which release of libtool.m4 was used?
19414 macro_version=$macro_version
19415 macro_revision=$macro_revision
19416
19417 # Whether or not to build shared libraries.
19418 build_libtool_libs=$enable_shared
19419
19420 # Whether or not to build static libraries.
19421 build_old_libs=$enable_static
19422
19423 # What type of objects to build.
19424 pic_mode=$pic_mode
19425
19426 # Whether or not to optimize for fast installation.
19427 fast_install=$enable_fast_install
19428
19429 # Shell to use when invoking shell scripts.
19430 SHELL=$lt_SHELL
19431
19432 # An echo program that protects backslashes.
19433 ECHO=$lt_ECHO
19434
19435 # The host system.
19436 host_alias=$host_alias
19437 host=$host
19438 host_os=$host_os
19439
19440 # The build system.
19441 build_alias=$build_alias
19442 build=$build
19443 build_os=$build_os
19444
19445 # A sed program that does not truncate output.
19446 SED=$lt_SED
19447
19448 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19449 Xsed="\$SED -e 1s/^X//"
19450
19451 # A grep program that handles long lines.
19452 GREP=$lt_GREP
19453
19454 # An ERE matcher.
19455 EGREP=$lt_EGREP
19456
19457 # A literal string matcher.
19458 FGREP=$lt_FGREP
19459
19460 # A BSD- or MS-compatible name lister.
19461 NM=$lt_NM
19462
19463 # Whether we need soft or hard links.
19464 LN_S=$lt_LN_S
19465
19466 # What is the maximum length of a command?
19467 max_cmd_len=$max_cmd_len
19468
19469 # Object file suffix (normally "o").
19470 objext=$ac_objext
19471
19472 # Executable file suffix (normally "").
19473 exeext=$exeext
19474
19475 # whether the shell understands "unset".
19476 lt_unset=$lt_unset
19477
19478 # turn spaces into newlines.
19479 SP2NL=$lt_lt_SP2NL
19480
19481 # turn newlines into spaces.
19482 NL2SP=$lt_lt_NL2SP
19483
19484 # An object symbol dumper.
19485 OBJDUMP=$lt_OBJDUMP
19486
19487 # Method to check whether dependent libraries are shared objects.
19488 deplibs_check_method=$lt_deplibs_check_method
19489
19490 # Command to use when deplibs_check_method == "file_magic".
19491 file_magic_cmd=$lt_file_magic_cmd
19492
19493 # The archiver.
19494 AR=$lt_AR
19495 AR_FLAGS=$lt_AR_FLAGS
19496
19497 # A symbol stripping program.
19498 STRIP=$lt_STRIP
19499
19500 # Commands used to install an old-style archive.
19501 RANLIB=$lt_RANLIB
19502 old_postinstall_cmds=$lt_old_postinstall_cmds
19503 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19504
19505 # Whether to use a lock for old archive extraction.
19506 lock_old_archive_extraction=$lock_old_archive_extraction
19507
19508 # A C compiler.
19509 LTCC=$lt_CC
19510
19511 # LTCC compiler flags.
19512 LTCFLAGS=$lt_CFLAGS
19513
19514 # Take the output of nm and produce a listing of raw symbols and C names.
19515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19516
19517 # Transform the output of nm in a proper C declaration.
19518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19519
19520 # Transform the output of nm in a C name address pair.
19521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19522
19523 # Transform the output of nm in a C name address pair when lib prefix is needed.
19524 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19525
19526 # The name of the directory that contains temporary libtool files.
19527 objdir=$objdir
19528
19529 # Used to examine libraries when file_magic_cmd begins with "file".
19530 MAGIC_CMD=$MAGIC_CMD
19531
19532 # Must we lock files when doing compilation?
19533 need_locks=$lt_need_locks
19534
19535 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19536 DSYMUTIL=$lt_DSYMUTIL
19537
19538 # Tool to change global to local symbols on Mac OS X.
19539 NMEDIT=$lt_NMEDIT
19540
19541 # Tool to manipulate fat objects and archives on Mac OS X.
19542 LIPO=$lt_LIPO
19543
19544 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19545 OTOOL=$lt_OTOOL
19546
19547 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19548 OTOOL64=$lt_OTOOL64
19549
19550 # Old archive suffix (normally "a").
19551 libext=$libext
19552
19553 # Shared library suffix (normally ".so").
19554 shrext_cmds=$lt_shrext_cmds
19555
19556 # The commands to extract the exported symbol list from a shared archive.
19557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19558
19559 # Variables whose values should be saved in libtool wrapper scripts and
19560 # restored at link time.
19561 variables_saved_for_relink=$lt_variables_saved_for_relink
19562
19563 # Do we need the "lib" prefix for modules?
19564 need_lib_prefix=$need_lib_prefix
19565
19566 # Do we need a version for libraries?
19567 need_version=$need_version
19568
19569 # Library versioning type.
19570 version_type=$version_type
19571
19572 # Shared library runtime path variable.
19573 runpath_var=$runpath_var
19574
19575 # Shared library path variable.
19576 shlibpath_var=$shlibpath_var
19577
19578 # Is shlibpath searched before the hard-coded library search path?
19579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19580
19581 # Format of library name prefix.
19582 libname_spec=$lt_libname_spec
19583
19584 # List of archive names.  First name is the real one, the rest are links.
19585 # The last name is the one that the linker finds with -lNAME
19586 library_names_spec=$lt_library_names_spec
19587
19588 # The coded name of the library, if different from the real name.
19589 soname_spec=$lt_soname_spec
19590
19591 # Permission mode override for installation of shared libraries.
19592 install_override_mode=$lt_install_override_mode
19593
19594 # Command to use after installation of a shared archive.
19595 postinstall_cmds=$lt_postinstall_cmds
19596
19597 # Command to use after uninstallation of a shared archive.
19598 postuninstall_cmds=$lt_postuninstall_cmds
19599
19600 # Commands used to finish a libtool library installation in a directory.
19601 finish_cmds=$lt_finish_cmds
19602
19603 # As "finish_cmds", except a single script fragment to be evaled but
19604 # not shown.
19605 finish_eval=$lt_finish_eval
19606
19607 # Whether we should hardcode library paths into libraries.
19608 hardcode_into_libs=$hardcode_into_libs
19609
19610 # Compile-time system search path for libraries.
19611 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19612
19613 # Run-time system search path for libraries.
19614 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19615
19616 # Whether dlopen is supported.
19617 dlopen_support=$enable_dlopen
19618
19619 # Whether dlopen of programs is supported.
19620 dlopen_self=$enable_dlopen_self
19621
19622 # Whether dlopen of statically linked programs is supported.
19623 dlopen_self_static=$enable_dlopen_self_static
19624
19625 # Commands to strip libraries.
19626 old_striplib=$lt_old_striplib
19627 striplib=$lt_striplib
19628
19629
19630 # The linker used to build libraries.
19631 LD=$lt_LD
19632
19633 # How to create reloadable object files.
19634 reload_flag=$lt_reload_flag
19635 reload_cmds=$lt_reload_cmds
19636
19637 # Commands used to build an old-style archive.
19638 old_archive_cmds=$lt_old_archive_cmds
19639
19640 # A language specific compiler.
19641 CC=$lt_compiler
19642
19643 # Is the compiler the GNU compiler?
19644 with_gcc=$GCC
19645
19646 # Compiler flag to turn off builtin functions.
19647 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19648
19649 # How to pass a linker flag through the compiler.
19650 wl=$lt_lt_prog_compiler_wl
19651
19652 # Additional compiler flags for building library objects.
19653 pic_flag=$lt_lt_prog_compiler_pic
19654
19655 # Compiler flag to prevent dynamic linking.
19656 link_static_flag=$lt_lt_prog_compiler_static
19657
19658 # Does compiler simultaneously support -c and -o options?
19659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19660
19661 # Whether or not to add -lc for building shared libraries.
19662 build_libtool_need_lc=$archive_cmds_need_lc
19663
19664 # Whether or not to disallow shared libs when runtime libs are static.
19665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19666
19667 # Compiler flag to allow reflexive dlopens.
19668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19669
19670 # Compiler flag to generate shared objects directly from archives.
19671 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19672
19673 # Whether the compiler copes with passing no objects directly.
19674 compiler_needs_object=$lt_compiler_needs_object
19675
19676 # Create an old-style archive from a shared archive.
19677 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19678
19679 # Create a temporary old-style archive to link instead of a shared archive.
19680 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19681
19682 # Commands used to build a shared archive.
19683 archive_cmds=$lt_archive_cmds
19684 archive_expsym_cmds=$lt_archive_expsym_cmds
19685
19686 # Commands used to build a loadable module if different from building
19687 # a shared archive.
19688 module_cmds=$lt_module_cmds
19689 module_expsym_cmds=$lt_module_expsym_cmds
19690
19691 # Whether we are building with GNU ld or not.
19692 with_gnu_ld=$lt_with_gnu_ld
19693
19694 # Flag that allows shared libraries with undefined symbols to be built.
19695 allow_undefined_flag=$lt_allow_undefined_flag
19696
19697 # Flag that enforces no undefined symbols.
19698 no_undefined_flag=$lt_no_undefined_flag
19699
19700 # Flag to hardcode \$libdir into a binary during linking.
19701 # This must work even if \$libdir does not exist
19702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19703
19704 # If ld is used when linking, flag to hardcode \$libdir into a binary
19705 # during linking.  This must work even if \$libdir does not exist.
19706 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19707
19708 # Whether we need a single "-rpath" flag with a separated argument.
19709 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19710
19711 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19712 # DIR into the resulting binary.
19713 hardcode_direct=$hardcode_direct
19714
19715 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19716 # DIR into the resulting binary and the resulting library dependency is
19717 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19718 # library is relocated.
19719 hardcode_direct_absolute=$hardcode_direct_absolute
19720
19721 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19722 # into the resulting binary.
19723 hardcode_minus_L=$hardcode_minus_L
19724
19725 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19726 # into the resulting binary.
19727 hardcode_shlibpath_var=$hardcode_shlibpath_var
19728
19729 # Set to "yes" if building a shared library automatically hardcodes DIR
19730 # into the library and all subsequent libraries and executables linked
19731 # against it.
19732 hardcode_automatic=$hardcode_automatic
19733
19734 # Set to yes if linker adds runtime paths of dependent libraries
19735 # to runtime path list.
19736 inherit_rpath=$inherit_rpath
19737
19738 # Whether libtool must link a program against all its dependency libraries.
19739 link_all_deplibs=$link_all_deplibs
19740
19741 # Fix the shell variable \$srcfile for the compiler.
19742 fix_srcfile_path=$lt_fix_srcfile_path
19743
19744 # Set to "yes" if exported symbols are required.
19745 always_export_symbols=$always_export_symbols
19746
19747 # The commands to list exported symbols.
19748 export_symbols_cmds=$lt_export_symbols_cmds
19749
19750 # Symbols that should not be listed in the preloaded symbols.
19751 exclude_expsyms=$lt_exclude_expsyms
19752
19753 # Symbols that must always be exported.
19754 include_expsyms=$lt_include_expsyms
19755
19756 # Commands necessary for linking programs (against libraries) with templates.
19757 prelink_cmds=$lt_prelink_cmds
19758
19759 # Specify filename containing input files.
19760 file_list_spec=$lt_file_list_spec
19761
19762 # How to hardcode a shared library path into an executable.
19763 hardcode_action=$hardcode_action
19764
19765 # The directories searched by this compiler when creating a shared library.
19766 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19767
19768 # Dependencies to place before and after the objects being linked to
19769 # create a shared library.
19770 predep_objects=$lt_predep_objects
19771 postdep_objects=$lt_postdep_objects
19772 predeps=$lt_predeps
19773 postdeps=$lt_postdeps
19774
19775 # The library search path used internally by the compiler when linking
19776 # a shared library.
19777 compiler_lib_search_path=$lt_compiler_lib_search_path
19778
19779 # ### END LIBTOOL CONFIG
19780
19781 _LT_EOF
19782
19783   case $host_os in
19784   aix3*)
19785     cat <<\_LT_EOF >> "$cfgfile"
19786 # AIX sometimes has problems with the GCC collect2 program.  For some
19787 # reason, if we set the COLLECT_NAMES environment variable, the problems
19788 # vanish in a puff of smoke.
19789 if test "X${COLLECT_NAMES+set}" != Xset; then
19790   COLLECT_NAMES=
19791   export COLLECT_NAMES
19792 fi
19793 _LT_EOF
19794     ;;
19795   esac
19796
19797
19798 ltmain="$ac_aux_dir/ltmain.sh"
19799
19800
19801   # We use sed instead of cat because bash on DJGPP gets confused if
19802   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19803   # text mode, it properly converts lines to CR/LF.  This bash problem
19804   # is reportedly fixed, but why not run on old versions too?
19805   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19806     || (rm -f "$cfgfile"; exit 1)
19807
19808   case $xsi_shell in
19809   yes)
19810     cat << \_LT_EOF >> "$cfgfile"
19811
19812 # func_dirname file append nondir_replacement
19813 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19814 # otherwise set result to NONDIR_REPLACEMENT.
19815 func_dirname ()
19816 {
19817   case ${1} in
19818     */*) func_dirname_result="${1%/*}${2}" ;;
19819     *  ) func_dirname_result="${3}" ;;
19820   esac
19821 }
19822
19823 # func_basename file
19824 func_basename ()
19825 {
19826   func_basename_result="${1##*/}"
19827 }
19828
19829 # func_dirname_and_basename file append nondir_replacement
19830 # perform func_basename and func_dirname in a single function
19831 # call:
19832 #   dirname:  Compute the dirname of FILE.  If nonempty,
19833 #             add APPEND to the result, otherwise set result
19834 #             to NONDIR_REPLACEMENT.
19835 #             value returned in "$func_dirname_result"
19836 #   basename: Compute filename of FILE.
19837 #             value retuned in "$func_basename_result"
19838 # Implementation must be kept synchronized with func_dirname
19839 # and func_basename. For efficiency, we do not delegate to
19840 # those functions but instead duplicate the functionality here.
19841 func_dirname_and_basename ()
19842 {
19843   case ${1} in
19844     */*) func_dirname_result="${1%/*}${2}" ;;
19845     *  ) func_dirname_result="${3}" ;;
19846   esac
19847   func_basename_result="${1##*/}"
19848 }
19849
19850 # func_stripname prefix suffix name
19851 # strip PREFIX and SUFFIX off of NAME.
19852 # PREFIX and SUFFIX must not contain globbing or regex special
19853 # characters, hashes, percent signs, but SUFFIX may contain a leading
19854 # dot (in which case that matches only a dot).
19855 func_stripname ()
19856 {
19857   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19858   # positional parameters, so assign one to ordinary parameter first.
19859   func_stripname_result=${3}
19860   func_stripname_result=${func_stripname_result#"${1}"}
19861   func_stripname_result=${func_stripname_result%"${2}"}
19862 }
19863
19864 # func_opt_split
19865 func_opt_split ()
19866 {
19867   func_opt_split_opt=${1%%=*}
19868   func_opt_split_arg=${1#*=}
19869 }
19870
19871 # func_lo2o object
19872 func_lo2o ()
19873 {
19874   case ${1} in
19875     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19876     *)    func_lo2o_result=${1} ;;
19877   esac
19878 }
19879
19880 # func_xform libobj-or-source
19881 func_xform ()
19882 {
19883   func_xform_result=${1%.*}.lo
19884 }
19885
19886 # func_arith arithmetic-term...
19887 func_arith ()
19888 {
19889   func_arith_result=$(( $* ))
19890 }
19891
19892 # func_len string
19893 # STRING may not start with a hyphen.
19894 func_len ()
19895 {
19896   func_len_result=${#1}
19897 }
19898
19899 _LT_EOF
19900     ;;
19901   *) # Bourne compatible functions.
19902     cat << \_LT_EOF >> "$cfgfile"
19903
19904 # func_dirname file append nondir_replacement
19905 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19906 # otherwise set result to NONDIR_REPLACEMENT.
19907 func_dirname ()
19908 {
19909   # Extract subdirectory from the argument.
19910   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19911   if test "X$func_dirname_result" = "X${1}"; then
19912     func_dirname_result="${3}"
19913   else
19914     func_dirname_result="$func_dirname_result${2}"
19915   fi
19916 }
19917
19918 # func_basename file
19919 func_basename ()
19920 {
19921   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19922 }
19923
19924
19925 # func_stripname prefix suffix name
19926 # strip PREFIX and SUFFIX off of NAME.
19927 # PREFIX and SUFFIX must not contain globbing or regex special
19928 # characters, hashes, percent signs, but SUFFIX may contain a leading
19929 # dot (in which case that matches only a dot).
19930 # func_strip_suffix prefix name
19931 func_stripname ()
19932 {
19933   case ${2} in
19934     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19935     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19936   esac
19937 }
19938
19939 # sed scripts:
19940 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19941 my_sed_long_arg='1s/^-[^=]*=//'
19942
19943 # func_opt_split
19944 func_opt_split ()
19945 {
19946   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19947   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19948 }
19949
19950 # func_lo2o object
19951 func_lo2o ()
19952 {
19953   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19954 }
19955
19956 # func_xform libobj-or-source
19957 func_xform ()
19958 {
19959   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19960 }
19961
19962 # func_arith arithmetic-term...
19963 func_arith ()
19964 {
19965   func_arith_result=`expr "$@"`
19966 }
19967
19968 # func_len string
19969 # STRING may not start with a hyphen.
19970 func_len ()
19971 {
19972   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19973 }
19974
19975 _LT_EOF
19976 esac
19977
19978 case $lt_shell_append in
19979   yes)
19980     cat << \_LT_EOF >> "$cfgfile"
19981
19982 # func_append var value
19983 # Append VALUE to the end of shell variable VAR.
19984 func_append ()
19985 {
19986   eval "$1+=\$2"
19987 }
19988 _LT_EOF
19989     ;;
19990   *)
19991     cat << \_LT_EOF >> "$cfgfile"
19992
19993 # func_append var value
19994 # Append VALUE to the end of shell variable VAR.
19995 func_append ()
19996 {
19997   eval "$1=\$$1\$2"
19998 }
19999
20000 _LT_EOF
20001     ;;
20002   esac
20003
20004
20005   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20006     || (rm -f "$cfgfile"; exit 1)
20007
20008   mv -f "$cfgfile" "$ofile" ||
20009     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20010   chmod +x "$ofile"
20011
20012
20013     cat <<_LT_EOF >> "$ofile"
20014
20015 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20016
20017 # The linker used to build libraries.
20018 LD=$lt_LD_CXX
20019
20020 # How to create reloadable object files.
20021 reload_flag=$lt_reload_flag_CXX
20022 reload_cmds=$lt_reload_cmds_CXX
20023
20024 # Commands used to build an old-style archive.
20025 old_archive_cmds=$lt_old_archive_cmds_CXX
20026
20027 # A language specific compiler.
20028 CC=$lt_compiler_CXX
20029
20030 # Is the compiler the GNU compiler?
20031 with_gcc=$GCC_CXX
20032
20033 # Compiler flag to turn off builtin functions.
20034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20035
20036 # How to pass a linker flag through the compiler.
20037 wl=$lt_lt_prog_compiler_wl_CXX
20038
20039 # Additional compiler flags for building library objects.
20040 pic_flag=$lt_lt_prog_compiler_pic_CXX
20041
20042 # Compiler flag to prevent dynamic linking.
20043 link_static_flag=$lt_lt_prog_compiler_static_CXX
20044
20045 # Does compiler simultaneously support -c and -o options?
20046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20047
20048 # Whether or not to add -lc for building shared libraries.
20049 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20050
20051 # Whether or not to disallow shared libs when runtime libs are static.
20052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20053
20054 # Compiler flag to allow reflexive dlopens.
20055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20056
20057 # Compiler flag to generate shared objects directly from archives.
20058 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20059
20060 # Whether the compiler copes with passing no objects directly.
20061 compiler_needs_object=$lt_compiler_needs_object_CXX
20062
20063 # Create an old-style archive from a shared archive.
20064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20065
20066 # Create a temporary old-style archive to link instead of a shared archive.
20067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20068
20069 # Commands used to build a shared archive.
20070 archive_cmds=$lt_archive_cmds_CXX
20071 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20072
20073 # Commands used to build a loadable module if different from building
20074 # a shared archive.
20075 module_cmds=$lt_module_cmds_CXX
20076 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20077
20078 # Whether we are building with GNU ld or not.
20079 with_gnu_ld=$lt_with_gnu_ld_CXX
20080
20081 # Flag that allows shared libraries with undefined symbols to be built.
20082 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20083
20084 # Flag that enforces no undefined symbols.
20085 no_undefined_flag=$lt_no_undefined_flag_CXX
20086
20087 # Flag to hardcode \$libdir into a binary during linking.
20088 # This must work even if \$libdir does not exist
20089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20090
20091 # If ld is used when linking, flag to hardcode \$libdir into a binary
20092 # during linking.  This must work even if \$libdir does not exist.
20093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20094
20095 # Whether we need a single "-rpath" flag with a separated argument.
20096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20097
20098 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20099 # DIR into the resulting binary.
20100 hardcode_direct=$hardcode_direct_CXX
20101
20102 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20103 # DIR into the resulting binary and the resulting library dependency is
20104 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20105 # library is relocated.
20106 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20107
20108 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20109 # into the resulting binary.
20110 hardcode_minus_L=$hardcode_minus_L_CXX
20111
20112 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20113 # into the resulting binary.
20114 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20115
20116 # Set to "yes" if building a shared library automatically hardcodes DIR
20117 # into the library and all subsequent libraries and executables linked
20118 # against it.
20119 hardcode_automatic=$hardcode_automatic_CXX
20120
20121 # Set to yes if linker adds runtime paths of dependent libraries
20122 # to runtime path list.
20123 inherit_rpath=$inherit_rpath_CXX
20124
20125 # Whether libtool must link a program against all its dependency libraries.
20126 link_all_deplibs=$link_all_deplibs_CXX
20127
20128 # Fix the shell variable \$srcfile for the compiler.
20129 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20130
20131 # Set to "yes" if exported symbols are required.
20132 always_export_symbols=$always_export_symbols_CXX
20133
20134 # The commands to list exported symbols.
20135 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20136
20137 # Symbols that should not be listed in the preloaded symbols.
20138 exclude_expsyms=$lt_exclude_expsyms_CXX
20139
20140 # Symbols that must always be exported.
20141 include_expsyms=$lt_include_expsyms_CXX
20142
20143 # Commands necessary for linking programs (against libraries) with templates.
20144 prelink_cmds=$lt_prelink_cmds_CXX
20145
20146 # Specify filename containing input files.
20147 file_list_spec=$lt_file_list_spec_CXX
20148
20149 # How to hardcode a shared library path into an executable.
20150 hardcode_action=$hardcode_action_CXX
20151
20152 # The directories searched by this compiler when creating a shared library.
20153 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20154
20155 # Dependencies to place before and after the objects being linked to
20156 # create a shared library.
20157 predep_objects=$lt_predep_objects_CXX
20158 postdep_objects=$lt_postdep_objects_CXX
20159 predeps=$lt_predeps_CXX
20160 postdeps=$lt_postdeps_CXX
20161
20162 # The library search path used internally by the compiler when linking
20163 # a shared library.
20164 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20165
20166 # ### END LIBTOOL TAG CONFIG: CXX
20167 _LT_EOF
20168
20169  ;;
20170     "gstdint.h":C)
20171 if test "$GCC" = yes; then
20172   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20173 else
20174   echo "/* generated for $CC */" > tmp-stdint.h
20175 fi
20176
20177 sed 's/^ *//' >> tmp-stdint.h <<EOF
20178
20179   #ifndef GCC_GENERATED_STDINT_H
20180   #define GCC_GENERATED_STDINT_H 1
20181
20182   #include <sys/types.h>
20183 EOF
20184
20185 if test "$acx_cv_header_stdint" != stdint.h; then
20186   echo "#include <stddef.h>" >> tmp-stdint.h
20187 fi
20188 if test "$acx_cv_header_stdint" != stddef.h; then
20189   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20190 fi
20191
20192 sed 's/^ *//' >> tmp-stdint.h <<EOF
20193   /* glibc uses these symbols as guards to prevent redefinitions.  */
20194   #ifdef __int8_t_defined
20195   #define _INT8_T
20196   #define _INT16_T
20197   #define _INT32_T
20198   #endif
20199   #ifdef __uint32_t_defined
20200   #define _UINT32_T
20201   #endif
20202
20203 EOF
20204
20205 # ----------------- done header, emit basic int types -------------
20206 if test "$acx_cv_header_stdint" = stddef.h; then
20207   sed 's/^ *//' >> tmp-stdint.h <<EOF
20208
20209     #ifndef _UINT8_T
20210     #define _UINT8_T
20211     #ifndef __uint8_t_defined
20212     #define __uint8_t_defined
20213     #ifndef uint8_t
20214     typedef unsigned $acx_cv_type_int8_t uint8_t;
20215     #endif
20216     #endif
20217     #endif
20218
20219     #ifndef _UINT16_T
20220     #define _UINT16_T
20221     #ifndef __uint16_t_defined
20222     #define __uint16_t_defined
20223     #ifndef uint16_t
20224     typedef unsigned $acx_cv_type_int16_t uint16_t;
20225     #endif
20226     #endif
20227     #endif
20228
20229     #ifndef _UINT32_T
20230     #define _UINT32_T
20231     #ifndef __uint32_t_defined
20232     #define __uint32_t_defined
20233     #ifndef uint32_t
20234     typedef unsigned $acx_cv_type_int32_t uint32_t;
20235     #endif
20236     #endif
20237     #endif
20238
20239     #ifndef _INT8_T
20240     #define _INT8_T
20241     #ifndef __int8_t_defined
20242     #define __int8_t_defined
20243     #ifndef int8_t
20244     typedef $acx_cv_type_int8_t int8_t;
20245     #endif
20246     #endif
20247     #endif
20248
20249     #ifndef _INT16_T
20250     #define _INT16_T
20251     #ifndef __int16_t_defined
20252     #define __int16_t_defined
20253     #ifndef int16_t
20254     typedef $acx_cv_type_int16_t int16_t;
20255     #endif
20256     #endif
20257     #endif
20258
20259     #ifndef _INT32_T
20260     #define _INT32_T
20261     #ifndef __int32_t_defined
20262     #define __int32_t_defined
20263     #ifndef int32_t
20264     typedef $acx_cv_type_int32_t int32_t;
20265     #endif
20266     #endif
20267     #endif
20268 EOF
20269 elif test "$ac_cv_type_u_int32_t" = yes; then
20270   sed 's/^ *//' >> tmp-stdint.h <<EOF
20271
20272     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20273     #ifndef _INT8_T
20274     #define _INT8_T
20275     #endif
20276     #ifndef _INT16_T
20277     #define _INT16_T
20278     #endif
20279     #ifndef _INT32_T
20280     #define _INT32_T
20281     #endif
20282
20283     #ifndef _UINT8_T
20284     #define _UINT8_T
20285     #ifndef __uint8_t_defined
20286     #define __uint8_t_defined
20287     #ifndef uint8_t
20288     typedef u_int8_t uint8_t;
20289     #endif
20290     #endif
20291     #endif
20292
20293     #ifndef _UINT16_T
20294     #define _UINT16_T
20295     #ifndef __uint16_t_defined
20296     #define __uint16_t_defined
20297     #ifndef uint16_t
20298     typedef u_int16_t uint16_t;
20299     #endif
20300     #endif
20301     #endif
20302
20303     #ifndef _UINT32_T
20304     #define _UINT32_T
20305     #ifndef __uint32_t_defined
20306     #define __uint32_t_defined
20307     #ifndef uint32_t
20308     typedef u_int32_t uint32_t;
20309     #endif
20310     #endif
20311     #endif
20312 EOF
20313 else
20314   sed 's/^ *//' >> tmp-stdint.h <<EOF
20315
20316     /* Some systems have guard macros to prevent redefinitions, define them.  */
20317     #ifndef _INT8_T
20318     #define _INT8_T
20319     #endif
20320     #ifndef _INT16_T
20321     #define _INT16_T
20322     #endif
20323     #ifndef _INT32_T
20324     #define _INT32_T
20325     #endif
20326     #ifndef _UINT8_T
20327     #define _UINT8_T
20328     #endif
20329     #ifndef _UINT16_T
20330     #define _UINT16_T
20331     #endif
20332     #ifndef _UINT32_T
20333     #define _UINT32_T
20334     #endif
20335 EOF
20336 fi
20337
20338 # ------------- done basic int types, emit int64_t types ------------
20339 if test "$ac_cv_type_uint64_t" = yes; then
20340   sed 's/^ *//' >> tmp-stdint.h <<EOF
20341
20342     /* system headers have good uint64_t and int64_t */
20343     #ifndef _INT64_T
20344     #define _INT64_T
20345     #endif
20346     #ifndef _UINT64_T
20347     #define _UINT64_T
20348     #endif
20349 EOF
20350 elif test "$ac_cv_type_u_int64_t" = yes; then
20351   sed 's/^ *//' >> tmp-stdint.h <<EOF
20352
20353     /* system headers have an u_int64_t (and int64_t) */
20354     #ifndef _INT64_T
20355     #define _INT64_T
20356     #endif
20357     #ifndef _UINT64_T
20358     #define _UINT64_T
20359     #ifndef __uint64_t_defined
20360     #define __uint64_t_defined
20361     #ifndef uint64_t
20362     typedef u_int64_t uint64_t;
20363     #endif
20364     #endif
20365     #endif
20366 EOF
20367 elif test -n "$acx_cv_type_int64_t"; then
20368   sed 's/^ *//' >> tmp-stdint.h <<EOF
20369
20370     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20371     #ifndef _INT64_T
20372     #define _INT64_T
20373     #ifndef int64_t
20374     typedef $acx_cv_type_int64_t int64_t;
20375     #endif
20376     #endif
20377     #ifndef _UINT64_T
20378     #define _UINT64_T
20379     #ifndef __uint64_t_defined
20380     #define __uint64_t_defined
20381     #ifndef uint64_t
20382     typedef unsigned $acx_cv_type_int64_t uint64_t;
20383     #endif
20384     #endif
20385     #endif
20386 EOF
20387 else
20388   sed 's/^ *//' >> tmp-stdint.h <<EOF
20389
20390     /* some common heuristics for int64_t, using compiler-specific tests */
20391     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20392     #ifndef _INT64_T
20393     #define _INT64_T
20394     #ifndef __int64_t_defined
20395     #ifndef int64_t
20396     typedef long long int64_t;
20397     #endif
20398     #endif
20399     #endif
20400     #ifndef _UINT64_T
20401     #define _UINT64_T
20402     #ifndef uint64_t
20403     typedef unsigned long long uint64_t;
20404     #endif
20405     #endif
20406
20407     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20408     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20409        does not implement __extension__.  But that compiler doesn't define
20410        __GNUC_MINOR__.  */
20411     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20412     # define __extension__
20413     # endif
20414
20415     # ifndef _INT64_T
20416     # define _INT64_T
20417     # ifndef int64_t
20418     __extension__ typedef long long int64_t;
20419     # endif
20420     # endif
20421     # ifndef _UINT64_T
20422     # define _UINT64_T
20423     # ifndef uint64_t
20424     __extension__ typedef unsigned long long uint64_t;
20425     # endif
20426     # endif
20427
20428     #elif !defined __STRICT_ANSI__
20429     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20430
20431     #  ifndef _INT64_T
20432     #  define _INT64_T
20433     #  ifndef int64_t
20434     typedef __int64 int64_t;
20435     #  endif
20436     #  endif
20437     #  ifndef _UINT64_T
20438     #  define _UINT64_T
20439     #  ifndef uint64_t
20440     typedef unsigned __int64 uint64_t;
20441     #  endif
20442     #  endif
20443     # endif /* compiler */
20444
20445     #endif /* ANSI version */
20446 EOF
20447 fi
20448
20449 # ------------- done int64_t types, emit intptr types ------------
20450 if test "$ac_cv_type_uintptr_t" != yes; then
20451   sed 's/^ *//' >> tmp-stdint.h <<EOF
20452
20453     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20454     #ifndef __uintptr_t_defined
20455     #ifndef uintptr_t
20456     typedef u$acx_cv_type_intptr_t uintptr_t;
20457     #endif
20458     #endif
20459     #ifndef __intptr_t_defined
20460     #ifndef intptr_t
20461     typedef $acx_cv_type_intptr_t  intptr_t;
20462     #endif
20463     #endif
20464 EOF
20465 fi
20466
20467 # ------------- done intptr types, emit int_least types ------------
20468 if test "$ac_cv_type_int_least32_t" != yes; then
20469   sed 's/^ *//' >> tmp-stdint.h <<EOF
20470
20471     /* Define int_least types */
20472     typedef int8_t     int_least8_t;
20473     typedef int16_t    int_least16_t;
20474     typedef int32_t    int_least32_t;
20475     #ifdef _INT64_T
20476     typedef int64_t    int_least64_t;
20477     #endif
20478
20479     typedef uint8_t    uint_least8_t;
20480     typedef uint16_t   uint_least16_t;
20481     typedef uint32_t   uint_least32_t;
20482     #ifdef _UINT64_T
20483     typedef uint64_t   uint_least64_t;
20484     #endif
20485 EOF
20486 fi
20487
20488 # ------------- done intptr types, emit int_fast types ------------
20489 if test "$ac_cv_type_int_fast32_t" != yes; then
20490       sed 's/^ *//' >> tmp-stdint.h <<EOF
20491
20492     /* Define int_fast types.  short is often slow */
20493     typedef int8_t       int_fast8_t;
20494     typedef int          int_fast16_t;
20495     typedef int32_t      int_fast32_t;
20496     #ifdef _INT64_T
20497     typedef int64_t      int_fast64_t;
20498     #endif
20499
20500     typedef uint8_t      uint_fast8_t;
20501     typedef unsigned int uint_fast16_t;
20502     typedef uint32_t     uint_fast32_t;
20503     #ifdef _UINT64_T
20504     typedef uint64_t     uint_fast64_t;
20505     #endif
20506 EOF
20507 fi
20508
20509 if test "$ac_cv_type_uintmax_t" != yes; then
20510   sed 's/^ *//' >> tmp-stdint.h <<EOF
20511
20512     /* Define intmax based on what we found */
20513     #ifndef intmax_t
20514     #ifdef _INT64_T
20515     typedef int64_t       intmax_t;
20516     #else
20517     typedef long          intmax_t;
20518     #endif
20519     #endif
20520     #ifndef uintmax_t
20521     #ifdef _UINT64_T
20522     typedef uint64_t      uintmax_t;
20523     #else
20524     typedef unsigned long uintmax_t;
20525     #endif
20526     #endif
20527 EOF
20528 fi
20529
20530 sed 's/^ *//' >> tmp-stdint.h <<EOF
20531
20532   #endif /* GCC_GENERATED_STDINT_H */
20533 EOF
20534
20535 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20536   rm -f tmp-stdint.h
20537 else
20538   mv -f tmp-stdint.h gstdint.h
20539 fi
20540
20541  ;;
20542
20543   esac
20544 done # for ac_tag
20545
20546
20547 as_fn_exit 0
20548 _ACEOF
20549 ac_clean_files=$ac_clean_files_save
20550
20551 test $ac_write_fail = 0 ||
20552   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20553
20554
20555 # configure is writing to config.log, and then calls config.status.
20556 # config.status does its own redirection, appending to config.log.
20557 # Unfortunately, on DOS this fails, as config.log is still kept open
20558 # by configure, so config.status won't be able to write to it; its
20559 # output is simply discarded.  So we exec the FD to /dev/null,
20560 # effectively closing config.log, so it can be properly (re)opened and
20561 # appended to by config.status.  When coming back to configure, we
20562 # need to make the FD available again.
20563 if test "$no_create" != yes; then
20564   ac_cs_success=:
20565   ac_config_status_args=
20566   test "$silent" = yes &&
20567     ac_config_status_args="$ac_config_status_args --quiet"
20568   exec 5>/dev/null
20569   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20570   exec 5>>config.log
20571   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20572   # would make configure fail if this is the last instruction.
20573   $ac_cs_success || as_fn_exit $?
20574 fi
20575 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20576   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20577 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20578 fi
20579