OSDN Git Service

Initial commit
[wordring-tm/wordring-tm.git] / third_party / mecab-0.996 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
575 ac_unique_file="src/mecab.cpp"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_header_list=
613 ac_subst_vars='am__EXEEXT_FALSE
614 am__EXEEXT_TRUE
615 LTLIBOBJS
616 LIBOBJS
617 DIC_VERSION
618 MECAB_DEFAULT_RC
619 CHARSET
620 MECAB_LIBEXEC_DIR
621 MECAB_USE_UTF8_ONLY
622 MECAB_LIBS
623 LTLIBICONV
624 LIBICONV
625 CXXCPP
626 OTOOL64
627 OTOOL
628 LIPO
629 NMEDIT
630 DSYMUTIL
631 MANIFEST_TOOL
632 RANLIB
633 ac_ct_AR
634 AR
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 SED
642 LIBTOOL
643 OBJDUMP
644 DLLTOOL
645 AS
646 host_os
647 host_vendor
648 host_cpu
649 host
650 build_os
651 build_vendor
652 build_cpu
653 build
654 EGREP
655 GREP
656 CPP
657 am__fastdepCXX_FALSE
658 am__fastdepCXX_TRUE
659 CXXDEPMODE
660 ac_ct_CXX
661 CXXFLAGS
662 CXX
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 am__nodep
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 LTVERSION
681 am__untar
682 am__tar
683 AMTAR
684 am__leading_dot
685 SET_MAKE
686 AWK
687 mkdir_p
688 MKDIR_P
689 INSTALL_STRIP_PROGRAM
690 STRIP
691 install_sh
692 MAKEINFO
693 AUTOHEADER
694 AUTOMAKE
695 AUTOCONF
696 ACLOCAL
697 VERSION
698 PACKAGE
699 CYGPATH_W
700 am__isrc
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_dependency_tracking
746 enable_shared
747 enable_static
748 with_pic
749 enable_fast_install
750 with_gnu_ld
751 with_sysroot
752 enable_libtool_lock
753 enable_rpath
754 with_libiconv_prefix
755 enable_utf8_only
756 with_charset
757 '
758       ac_precious_vars='build_alias
759 host_alias
760 target_alias
761 CC
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CXX
767 CXXFLAGS
768 CCC
769 CPP
770 CXXCPP'
771
772
773 # Initialize some variables set by options.
774 ac_init_help=
775 ac_init_version=false
776 ac_unrecognized_opts=
777 ac_unrecognized_sep=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
780 cache_file=/dev/null
781 exec_prefix=NONE
782 no_create=
783 no_recursion=
784 prefix=NONE
785 program_prefix=NONE
786 program_suffix=NONE
787 program_transform_name=s,x,x,
788 silent=
789 site=
790 srcdir=
791 verbose=
792 x_includes=NONE
793 x_libraries=NONE
794
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE}'
812 infodir='${datarootdir}/info'
813 htmldir='${docdir}'
814 dvidir='${docdir}'
815 pdfdir='${docdir}'
816 psdir='${docdir}'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
820
821 ac_prev=
822 ac_dashdash=
823 for ac_option
824 do
825   # If the previous option needs an argument, assign it.
826   if test -n "$ac_prev"; then
827     eval $ac_prev=\$ac_option
828     ac_prev=
829     continue
830   fi
831
832   case $ac_option in
833   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834   *=)   ac_optarg= ;;
835   *)    ac_optarg=yes ;;
836   esac
837
838   # Accept the important Cygnus configure options, so we can diagnose typos.
839
840   case $ac_dashdash$ac_option in
841   --)
842     ac_dashdash=yes ;;
843
844   -bindir | --bindir | --bindi | --bind | --bin | --bi)
845     ac_prev=bindir ;;
846   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847     bindir=$ac_optarg ;;
848
849   -build | --build | --buil | --bui | --bu)
850     ac_prev=build_alias ;;
851   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852     build_alias=$ac_optarg ;;
853
854   -cache-file | --cache-file | --cache-fil | --cache-fi \
855   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856     ac_prev=cache_file ;;
857   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859     cache_file=$ac_optarg ;;
860
861   --config-cache | -C)
862     cache_file=config.cache ;;
863
864   -datadir | --datadir | --datadi | --datad)
865     ac_prev=datadir ;;
866   -datadir=* | --datadir=* | --datadi=* | --datad=*)
867     datadir=$ac_optarg ;;
868
869   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870   | --dataroo | --dataro | --datar)
871     ac_prev=datarootdir ;;
872   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874     datarootdir=$ac_optarg ;;
875
876   -disable-* | --disable-*)
877     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878     # Reject names that are not valid shell variable names.
879     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880       as_fn_error $? "invalid feature name: $ac_useropt"
881     ac_useropt_orig=$ac_useropt
882     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883     case $ac_user_opts in
884       *"
885 "enable_$ac_useropt"
886 "*) ;;
887       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888          ac_unrecognized_sep=', ';;
889     esac
890     eval enable_$ac_useropt=no ;;
891
892   -docdir | --docdir | --docdi | --doc | --do)
893     ac_prev=docdir ;;
894   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895     docdir=$ac_optarg ;;
896
897   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898     ac_prev=dvidir ;;
899   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900     dvidir=$ac_optarg ;;
901
902   -enable-* | --enable-*)
903     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904     # Reject names that are not valid shell variable names.
905     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906       as_fn_error $? "invalid feature name: $ac_useropt"
907     ac_useropt_orig=$ac_useropt
908     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909     case $ac_user_opts in
910       *"
911 "enable_$ac_useropt"
912 "*) ;;
913       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914          ac_unrecognized_sep=', ';;
915     esac
916     eval enable_$ac_useropt=\$ac_optarg ;;
917
918   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920   | --exec | --exe | --ex)
921     ac_prev=exec_prefix ;;
922   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924   | --exec=* | --exe=* | --ex=*)
925     exec_prefix=$ac_optarg ;;
926
927   -gas | --gas | --ga | --g)
928     # Obsolete; use --with-gas.
929     with_gas=yes ;;
930
931   -help | --help | --hel | --he | -h)
932     ac_init_help=long ;;
933   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934     ac_init_help=recursive ;;
935   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936     ac_init_help=short ;;
937
938   -host | --host | --hos | --ho)
939     ac_prev=host_alias ;;
940   -host=* | --host=* | --hos=* | --ho=*)
941     host_alias=$ac_optarg ;;
942
943   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944     ac_prev=htmldir ;;
945   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946   | --ht=*)
947     htmldir=$ac_optarg ;;
948
949   -includedir | --includedir | --includedi | --included | --include \
950   | --includ | --inclu | --incl | --inc)
951     ac_prev=includedir ;;
952   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953   | --includ=* | --inclu=* | --incl=* | --inc=*)
954     includedir=$ac_optarg ;;
955
956   -infodir | --infodir | --infodi | --infod | --info | --inf)
957     ac_prev=infodir ;;
958   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959     infodir=$ac_optarg ;;
960
961   -libdir | --libdir | --libdi | --libd)
962     ac_prev=libdir ;;
963   -libdir=* | --libdir=* | --libdi=* | --libd=*)
964     libdir=$ac_optarg ;;
965
966   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967   | --libexe | --libex | --libe)
968     ac_prev=libexecdir ;;
969   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970   | --libexe=* | --libex=* | --libe=*)
971     libexecdir=$ac_optarg ;;
972
973   -localedir | --localedir | --localedi | --localed | --locale)
974     ac_prev=localedir ;;
975   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976     localedir=$ac_optarg ;;
977
978   -localstatedir | --localstatedir | --localstatedi | --localstated \
979   | --localstate | --localstat | --localsta | --localst | --locals)
980     ac_prev=localstatedir ;;
981   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983     localstatedir=$ac_optarg ;;
984
985   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986     ac_prev=mandir ;;
987   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988     mandir=$ac_optarg ;;
989
990   -nfp | --nfp | --nf)
991     # Obsolete; use --without-fp.
992     with_fp=no ;;
993
994   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995   | --no-cr | --no-c | -n)
996     no_create=yes ;;
997
998   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000     no_recursion=yes ;;
1001
1002   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004   | --oldin | --oldi | --old | --ol | --o)
1005     ac_prev=oldincludedir ;;
1006   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009     oldincludedir=$ac_optarg ;;
1010
1011   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012     ac_prev=prefix ;;
1013   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014     prefix=$ac_optarg ;;
1015
1016   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017   | --program-pre | --program-pr | --program-p)
1018     ac_prev=program_prefix ;;
1019   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021     program_prefix=$ac_optarg ;;
1022
1023   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024   | --program-suf | --program-su | --program-s)
1025     ac_prev=program_suffix ;;
1026   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028     program_suffix=$ac_optarg ;;
1029
1030   -program-transform-name | --program-transform-name \
1031   | --program-transform-nam | --program-transform-na \
1032   | --program-transform-n | --program-transform- \
1033   | --program-transform | --program-transfor \
1034   | --program-transfo | --program-transf \
1035   | --program-trans | --program-tran \
1036   | --progr-tra | --program-tr | --program-t)
1037     ac_prev=program_transform_name ;;
1038   -program-transform-name=* | --program-transform-name=* \
1039   | --program-transform-nam=* | --program-transform-na=* \
1040   | --program-transform-n=* | --program-transform-=* \
1041   | --program-transform=* | --program-transfor=* \
1042   | --program-transfo=* | --program-transf=* \
1043   | --program-trans=* | --program-tran=* \
1044   | --progr-tra=* | --program-tr=* | --program-t=*)
1045     program_transform_name=$ac_optarg ;;
1046
1047   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048     ac_prev=pdfdir ;;
1049   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050     pdfdir=$ac_optarg ;;
1051
1052   -psdir | --psdir | --psdi | --psd | --ps)
1053     ac_prev=psdir ;;
1054   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055     psdir=$ac_optarg ;;
1056
1057   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058   | -silent | --silent | --silen | --sile | --sil)
1059     silent=yes ;;
1060
1061   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062     ac_prev=sbindir ;;
1063   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064   | --sbi=* | --sb=*)
1065     sbindir=$ac_optarg ;;
1066
1067   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069   | --sharedst | --shareds | --shared | --share | --shar \
1070   | --sha | --sh)
1071     ac_prev=sharedstatedir ;;
1072   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075   | --sha=* | --sh=*)
1076     sharedstatedir=$ac_optarg ;;
1077
1078   -site | --site | --sit)
1079     ac_prev=site ;;
1080   -site=* | --site=* | --sit=*)
1081     site=$ac_optarg ;;
1082
1083   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084     ac_prev=srcdir ;;
1085   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086     srcdir=$ac_optarg ;;
1087
1088   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089   | --syscon | --sysco | --sysc | --sys | --sy)
1090     ac_prev=sysconfdir ;;
1091   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093     sysconfdir=$ac_optarg ;;
1094
1095   -target | --target | --targe | --targ | --tar | --ta | --t)
1096     ac_prev=target_alias ;;
1097   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098     target_alias=$ac_optarg ;;
1099
1100   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101     verbose=yes ;;
1102
1103   -version | --version | --versio | --versi | --vers | -V)
1104     ac_init_version=: ;;
1105
1106   -with-* | --with-*)
1107     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110       as_fn_error $? "invalid package name: $ac_useropt"
1111     ac_useropt_orig=$ac_useropt
1112     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113     case $ac_user_opts in
1114       *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118          ac_unrecognized_sep=', ';;
1119     esac
1120     eval with_$ac_useropt=\$ac_optarg ;;
1121
1122   -without-* | --without-*)
1123     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126       as_fn_error $? "invalid package name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130       *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134          ac_unrecognized_sep=', ';;
1135     esac
1136     eval with_$ac_useropt=no ;;
1137
1138   --x)
1139     # Obsolete; use --with-x.
1140     with_x=yes ;;
1141
1142   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143   | --x-incl | --x-inc | --x-in | --x-i)
1144     ac_prev=x_includes ;;
1145   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147     x_includes=$ac_optarg ;;
1148
1149   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151     ac_prev=x_libraries ;;
1152   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154     x_libraries=$ac_optarg ;;
1155
1156   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information"
1158     ;;
1159
1160   *=*)
1161     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162     # Reject names that are not valid shell variable names.
1163     case $ac_envvar in #(
1164       '' | [0-9]* | *[!_$as_cr_alnum]* )
1165       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166     esac
1167     eval $ac_envvar=\$ac_optarg
1168     export $ac_envvar ;;
1169
1170   *)
1171     # FIXME: should be removed in autoconf 3.0.
1172     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176     ;;
1177
1178   esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183   as_fn_error $? "missing argument to $ac_option"
1184 fi
1185
1186 if test -n "$ac_unrecognized_opts"; then
1187   case $enable_option_checking in
1188     no) ;;
1189     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191   esac
1192 fi
1193
1194 # Check all directory arguments for consistency.
1195 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196                 datadir sysconfdir sharedstatedir localstatedir includedir \
1197                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198                 libdir localedir mandir
1199 do
1200   eval ac_val=\$$ac_var
1201   # Remove trailing slashes.
1202   case $ac_val in
1203     */ )
1204       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205       eval $ac_var=\$ac_val;;
1206   esac
1207   # Be sure to have absolute directory names.
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 done
1214
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1221
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224   if test "x$build_alias" = x; then
1225     cross_compiling=maybe
1226     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227     If a cross compiler is detected then cross compile mode will be used" >&2
1228   elif test "x$build_alias" != "x$host_alias"; then
1229     cross_compiling=yes
1230   fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242   as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244   as_fn_error $? "pwd does not report name of working directory"
1245
1246
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249   ac_srcdir_defaulted=yes
1250   # Try the directory containing this script, then the parent directory.
1251   ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253          X"$as_myself" : 'X\(//\)[^/]' \| \
1254          X"$as_myself" : 'X\(//\)$' \| \
1255          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258             s//\1/
1259             q
1260           }
1261           /^X\(\/\/\)[^/].*/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\).*/{
1270             s//\1/
1271             q
1272           }
1273           s/.*/./; q'`
1274   srcdir=$ac_confdir
1275   if test ! -r "$srcdir/$ac_unique_file"; then
1276     srcdir=..
1277   fi
1278 else
1279   ac_srcdir_defaulted=no
1280 fi
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 fi
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288         pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291   srcdir=.
1292 fi
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301   eval ac_env_${ac_var}_value=\$${ac_var}
1302   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1305
1306 #
1307 # Report the --help message.
1308 #
1309 if test "$ac_init_help" = "long"; then
1310   # Omit some internal or obsolete options to make the list less imposing.
1311   # This message is too long to be a string in the A/UX 3.1 sh.
1312   cat <<_ACEOF
1313 \`configure' configures this package to adapt to many kinds of systems.
1314
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE.  See below for descriptions of some of the useful variables.
1319
1320 Defaults for the options are specified in brackets.
1321
1322 Configuration:
1323   -h, --help              display this help and exit
1324       --help=short        display options specific to this package
1325       --help=recursive    display the short help of all the included packages
1326   -V, --version           display version information and exit
1327   -q, --quiet, --silent   do not print \`checking ...' messages
1328       --cache-file=FILE   cache test results in FILE [disabled]
1329   -C, --config-cache      alias for \`--cache-file=config.cache'
1330   -n, --no-create         do not create output files
1331       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1332
1333 Installation directories:
1334   --prefix=PREFIX         install architecture-independent files in PREFIX
1335                           [$ac_default_prefix]
1336   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1337                           [PREFIX]
1338
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1343
1344 For better control, use the options below.
1345
1346 Fine tuning of the installation directories:
1347   --bindir=DIR            user executables [EPREFIX/bin]
1348   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1349   --libexecdir=DIR        program executables [EPREFIX/libexec]
1350   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1351   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1352   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1353   --libdir=DIR            object code libraries [EPREFIX/lib]
1354   --includedir=DIR        C header files [PREFIX/include]
1355   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1356   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1357   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1358   --infodir=DIR           info documentation [DATAROOTDIR/info]
1359   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1360   --mandir=DIR            man documentation [DATAROOTDIR/man]
1361   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1362   --htmldir=DIR           html documentation [DOCDIR]
1363   --dvidir=DIR            dvi documentation [DOCDIR]
1364   --pdfdir=DIR            pdf documentation [DOCDIR]
1365   --psdir=DIR             ps documentation [DOCDIR]
1366 _ACEOF
1367
1368   cat <<\_ACEOF
1369
1370 Program names:
1371   --program-prefix=PREFIX            prepend PREFIX to installed program names
1372   --program-suffix=SUFFIX            append SUFFIX to installed program names
1373   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --disable-dependency-tracking  speeds up one-time build
1390   --enable-dependency-tracking   do not reject slow dependency extractors
1391   --enable-shared[=PKGS]  build shared libraries [default=yes]
1392   --enable-static[=PKGS]  build static libraries [default=yes]
1393   --enable-fast-install[=PKGS]
1394                           optimize for fast installation [default=yes]
1395   --disable-libtool-lock  avoid locking (might break parallel builds)
1396   --disable-rpath         do not hardcode runtime library paths
1397   --enable-utf8-only            use utf8 only default no
1398
1399 Optional Packages:
1400   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1401   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1402   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1403                           both]
1404   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1405   --with-sysroot=DIR Search for dependent libraries within DIR
1406                         (or the compiler's sysroot if not specified).
1407   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1408   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1409   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1410   --with-charset=charset  set default charset (euc/sjis/utf8))
1411
1412 Some influential environment variables:
1413   CC          C compiler command
1414   CFLAGS      C compiler flags
1415   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1416               nonstandard directory <lib dir>
1417   LIBS        libraries to pass to the linker, e.g. -l<library>
1418   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419               you have headers in a nonstandard directory <include dir>
1420   CXX         C++ compiler command
1421   CXXFLAGS    C++ compiler flags
1422   CPP         C preprocessor
1423   CXXCPP      C++ preprocessor
1424
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1427
1428 Report bugs to the package provider.
1429 _ACEOF
1430 ac_status=$?
1431 fi
1432
1433 if test "$ac_init_help" = "recursive"; then
1434   # If there are subdirs, report their specific --help.
1435   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436     test -d "$ac_dir" ||
1437       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438       continue
1439     ac_builddir=.
1440
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *)
1444   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445   # A ".." for each directory in $ac_dir_suffix.
1446   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447   case $ac_top_builddir_sub in
1448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450   esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1456
1457 case $srcdir in
1458   .)  # We are building in place.
1459     ac_srcdir=.
1460     ac_top_srcdir=$ac_top_builddir_sub
1461     ac_abs_top_srcdir=$ac_pwd ;;
1462   [\\/]* | ?:[\\/]* )  # Absolute name.
1463     ac_srcdir=$srcdir$ac_dir_suffix;
1464     ac_top_srcdir=$srcdir
1465     ac_abs_top_srcdir=$srcdir ;;
1466   *) # Relative name.
1467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468     ac_top_srcdir=$ac_top_build_prefix$srcdir
1469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473     cd "$ac_dir" || { ac_status=$?; continue; }
1474     # Check for guested configure.
1475     if test -f "$ac_srcdir/configure.gnu"; then
1476       echo &&
1477       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478     elif test -f "$ac_srcdir/configure"; then
1479       echo &&
1480       $SHELL "$ac_srcdir/configure" --help=recursive
1481     else
1482       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483     fi || ac_status=$?
1484     cd "$ac_pwd" || { ac_status=$?; break; }
1485   done
1486 fi
1487
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490   cat <<\_ACEOF
1491 configure
1492 generated by GNU Autoconf 2.68
1493
1494 Copyright (C) 2010 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498   exit
1499 fi
1500
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1504
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1509 {
1510   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511   rm -f conftest.$ac_objext
1512   if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515   *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519   (eval "$ac_compile") 2>conftest.err
1520   ac_status=$?
1521   if test -s conftest.err; then
1522     grep -v '^ *+' conftest.err >conftest.er1
1523     cat conftest.er1 >&5
1524     mv -f conftest.er1 conftest.err
1525   fi
1526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527   test $ac_status = 0; } && {
1528          test -z "$ac_c_werror_flag" ||
1529          test ! -s conftest.err
1530        } && test -s conftest.$ac_objext; then :
1531   ac_retval=0
1532 else
1533   $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1535
1536         ac_retval=1
1537 fi
1538   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539   as_fn_set_status $ac_retval
1540
1541 } # ac_fn_c_try_compile
1542
1543 # ac_fn_cxx_try_compile LINENO
1544 # ----------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_cxx_try_compile ()
1547 {
1548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549   rm -f conftest.$ac_objext
1550   if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553   *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557   (eval "$ac_compile") 2>conftest.err
1558   ac_status=$?
1559   if test -s conftest.err; then
1560     grep -v '^ *+' conftest.err >conftest.er1
1561     cat conftest.er1 >&5
1562     mv -f conftest.er1 conftest.err
1563   fi
1564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565   test $ac_status = 0; } && {
1566          test -z "$ac_cxx_werror_flag" ||
1567          test ! -s conftest.err
1568        } && test -s conftest.$ac_objext; then :
1569   ac_retval=0
1570 else
1571   $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574         ac_retval=1
1575 fi
1576   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577   as_fn_set_status $ac_retval
1578
1579 } # ac_fn_cxx_try_compile
1580
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1585 {
1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587   if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590   *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595   ac_status=$?
1596   if test -s conftest.err; then
1597     grep -v '^ *+' conftest.err >conftest.er1
1598     cat conftest.er1 >&5
1599     mv -f conftest.er1 conftest.err
1600   fi
1601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602   test $ac_status = 0; } > conftest.i && {
1603          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604          test ! -s conftest.err
1605        }; then :
1606   ac_retval=0
1607 else
1608   $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611     ac_retval=1
1612 fi
1613   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614   as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_cpp
1617
1618 # ac_fn_c_try_link LINENO
1619 # -----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_link ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   rm -f conftest.$ac_objext conftest$ac_exeext
1625   if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628   *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632   (eval "$ac_link") 2>conftest.err
1633   ac_status=$?
1634   if test -s conftest.err; then
1635     grep -v '^ *+' conftest.err >conftest.er1
1636     cat conftest.er1 >&5
1637     mv -f conftest.er1 conftest.err
1638   fi
1639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640   test $ac_status = 0; } && {
1641          test -z "$ac_c_werror_flag" ||
1642          test ! -s conftest.err
1643        } && test -s conftest$ac_exeext && {
1644          test "$cross_compiling" = yes ||
1645          $as_test_x conftest$ac_exeext
1646        }; then :
1647   ac_retval=0
1648 else
1649   $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652         ac_retval=1
1653 fi
1654   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656   # interfere with the next link command; also delete a directory that is
1657   # left behind by Apple's compiler.  We do this before executing the actions.
1658   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_link
1663
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674   $as_echo_n "(cached) " >&6
1675 else
1676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h.  */
1678 $4
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682   eval "$3=yes"
1683 else
1684   eval "$3=no"
1685 fi
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 fi
1688 eval ac_res=\$$3
1689                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693 } # ac_fn_c_check_header_compile
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_link") 2>&5
1710   ac_status=$?
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713   { { case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_try") 2>&5
1720   ac_status=$?
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; }; }; then :
1723   ac_retval=0
1724 else
1725   $as_echo "$as_me: program exited with status $ac_status" >&5
1726        $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729        ac_retval=$ac_status
1730 fi
1731   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733   as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746   $as_echo_n "(cached) " >&6
1747 else
1748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h.  */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755     which can conflict with char $2 (); below.
1756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757     <limits.h> exists even on freestanding compilers.  */
1758
1759 #ifdef __STDC__
1760 # include <limits.h>
1761 #else
1762 # include <assert.h>
1763 #endif
1764
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768    Use char because int might match the return type of a GCC
1769    builtin and then its argument prototype would still apply.  */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 ();
1774 /* The GNU C library defines this for functions which it implements
1775     to always fail with ENOSYS.  Some functions are actually named
1776     something starting with __ and the normal name is an alias.  */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main ()
1783 {
1784 return $2 ();
1785   ;
1786   return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_link "$LINENO"; then :
1790   eval "$3=yes"
1791 else
1792   eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext \
1795     conftest$ac_exeext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_func
1803
1804 # ac_fn_cxx_try_cpp LINENO
1805 # ------------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_cpp ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813   *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818   ac_status=$?
1819   if test -s conftest.err; then
1820     grep -v '^ *+' conftest.err >conftest.er1
1821     cat conftest.er1 >&5
1822     mv -f conftest.er1 conftest.err
1823   fi
1824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825   test $ac_status = 0; } > conftest.i && {
1826          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1827          test ! -s conftest.err
1828        }; then :
1829   ac_retval=0
1830 else
1831   $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834     ac_retval=1
1835 fi
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837   as_fn_set_status $ac_retval
1838
1839 } # ac_fn_cxx_try_cpp
1840
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   rm -f conftest.$ac_objext conftest$ac_exeext
1848   if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_link") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && {
1864          test -z "$ac_cxx_werror_flag" ||
1865          test ! -s conftest.err
1866        } && test -s conftest$ac_exeext && {
1867          test "$cross_compiling" = yes ||
1868          $as_test_x conftest$ac_exeext
1869        }; then :
1870   ac_retval=0
1871 else
1872   $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875         ac_retval=1
1876 fi
1877   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879   # interfere with the next link command; also delete a directory that is
1880   # left behind by Apple's compiler.  We do this before executing the actions.
1881   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883   as_fn_set_status $ac_retval
1884
1885 } # ac_fn_cxx_try_link
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   if eval \${$3+:} false; then :
1896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899   $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905   # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   ac_header_compiler=yes
1915 else
1916   ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930   ac_header_preproc=yes
1931 else
1932   ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.i conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So?  What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940   yes:no: )
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945     ;;
1946   no:yes:* )
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957     ;;
1958 esac
1959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962   $as_echo_n "(cached) " >&6
1963 else
1964   eval "$3=\$ac_header_compiler"
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 fi
1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_c_check_header_mongrel
1973
1974 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1975 # -------------------------------------------
1976 # Tests whether TYPE exists after having included INCLUDES, setting cache
1977 # variable VAR accordingly.
1978 ac_fn_c_check_type ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984   $as_echo_n "(cached) " >&6
1985 else
1986   eval "$3=no"
1987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 int
1991 main ()
1992 {
1993 if (sizeof ($2))
1994          return 0;
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 if (sizeof (($2)))
2007             return 0;
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013
2014 else
2015   eval "$3=yes"
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 fi
2021 eval ac_res=\$$3
2022                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026 } # ac_fn_c_check_type
2027
2028 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029 # --------------------------------------------
2030 # Tries to find the compile-time value of EXPR in a program that includes
2031 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2032 # computed
2033 ac_fn_c_compute_int ()
2034 {
2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036   if test "$cross_compiling" = yes; then
2037     # Depending upon the size, compute the lo and hi bounds.
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 int
2042 main ()
2043 {
2044 static int test_array [1 - 2 * !(($2) >= 0)];
2045 test_array [0] = 0
2046
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052   ac_lo=0 ac_mid=0
2053   while :; do
2054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 $4
2057 int
2058 main ()
2059 {
2060 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 test_array [0] = 0
2062
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068   ac_hi=$ac_mid; break
2069 else
2070   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071                         if test $ac_lo -le $ac_mid; then
2072                           ac_lo= ac_hi=
2073                           break
2074                         fi
2075                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078   done
2079 else
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) < 0)];
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=-1 ac_mid=-1
2095   while :; do
2096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2103 test_array [0] = 0
2104
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110   ac_lo=$ac_mid; break
2111 else
2112   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2113                         if test $ac_mid -le $ac_hi; then
2114                           ac_lo= ac_hi=
2115                           break
2116                         fi
2117                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120   done
2121 else
2122   ac_lo= ac_hi=
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 # Binary search between lo and hi bounds.
2128 while test "x$ac_lo" != "x$ac_hi"; do
2129   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 $4
2133 int
2134 main ()
2135 {
2136 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2137 test_array [0] = 0
2138
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144   ac_hi=$ac_mid
2145 else
2146   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 done
2150 case $ac_lo in #((
2151 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2152 '') ac_retval=1 ;;
2153 esac
2154   else
2155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 static long int longval () { return $2; }
2159 static unsigned long int ulongval () { return $2; }
2160 #include <stdio.h>
2161 #include <stdlib.h>
2162 int
2163 main ()
2164 {
2165
2166   FILE *f = fopen ("conftest.val", "w");
2167   if (! f)
2168     return 1;
2169   if (($2) < 0)
2170     {
2171       long int i = longval ();
2172       if (i != ($2))
2173         return 1;
2174       fprintf (f, "%ld", i);
2175     }
2176   else
2177     {
2178       unsigned long int i = ulongval ();
2179       if (i != ($2))
2180         return 1;
2181       fprintf (f, "%lu", i);
2182     }
2183   /* Do not output a trailing newline, as this causes \r\n confusion
2184      on some platforms.  */
2185   return ferror (f) || fclose (f) != 0;
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_run "$LINENO"; then :
2192   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2193 else
2194   ac_retval=1
2195 fi
2196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2197   conftest.$ac_objext conftest.beam conftest.$ac_ext
2198 rm -f conftest.val
2199
2200   fi
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202   as_fn_set_status $ac_retval
2203
2204 } # ac_fn_c_compute_int
2205 cat >config.log <<_ACEOF
2206 This file contains any messages produced by compilers while
2207 running configure, to aid debugging if configure makes a mistake.
2208
2209 It was created by $as_me, which was
2210 generated by GNU Autoconf 2.68.  Invocation command line was
2211
2212   $ $0 $@
2213
2214 _ACEOF
2215 exec 5>>config.log
2216 {
2217 cat <<_ASUNAME
2218 ## --------- ##
2219 ## Platform. ##
2220 ## --------- ##
2221
2222 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2223 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2224 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2225 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2226 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2227
2228 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2229 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2230
2231 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2232 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2233 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2234 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2235 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2236 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2237 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2238
2239 _ASUNAME
2240
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246     $as_echo "PATH: $as_dir"
2247   done
2248 IFS=$as_save_IFS
2249
2250 } >&5
2251
2252 cat >&5 <<_ACEOF
2253
2254
2255 ## ----------- ##
2256 ## Core tests. ##
2257 ## ----------- ##
2258
2259 _ACEOF
2260
2261
2262 # Keep a trace of the command line.
2263 # Strip out --no-create and --no-recursion so they do not pile up.
2264 # Strip out --silent because we don't want to record it for future runs.
2265 # Also quote any args containing shell meta-characters.
2266 # Make two passes to allow for proper duplicate-argument suppression.
2267 ac_configure_args=
2268 ac_configure_args0=
2269 ac_configure_args1=
2270 ac_must_keep_next=false
2271 for ac_pass in 1 2
2272 do
2273   for ac_arg
2274   do
2275     case $ac_arg in
2276     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2277     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2278     | -silent | --silent | --silen | --sile | --sil)
2279       continue ;;
2280     *\'*)
2281       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2282     esac
2283     case $ac_pass in
2284     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2285     2)
2286       as_fn_append ac_configure_args1 " '$ac_arg'"
2287       if test $ac_must_keep_next = true; then
2288         ac_must_keep_next=false # Got value, back to normal.
2289       else
2290         case $ac_arg in
2291           *=* | --config-cache | -C | -disable-* | --disable-* \
2292           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2293           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2294           | -with-* | --with-* | -without-* | --without-* | --x)
2295             case "$ac_configure_args0 " in
2296               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2297             esac
2298             ;;
2299           -* ) ac_must_keep_next=true ;;
2300         esac
2301       fi
2302       as_fn_append ac_configure_args " '$ac_arg'"
2303       ;;
2304     esac
2305   done
2306 done
2307 { ac_configure_args0=; unset ac_configure_args0;}
2308 { ac_configure_args1=; unset ac_configure_args1;}
2309
2310 # When interrupted or exit'd, cleanup temporary files, and complete
2311 # config.log.  We remove comments because anyway the quotes in there
2312 # would cause problems or look ugly.
2313 # WARNING: Use '\'' to represent an apostrophe within the trap.
2314 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2315 trap 'exit_status=$?
2316   # Save into config.log some information that might help in debugging.
2317   {
2318     echo
2319
2320     $as_echo "## ---------------- ##
2321 ## Cache variables. ##
2322 ## ---------------- ##"
2323     echo
2324     # The following way of writing the cache mishandles newlines in values,
2325 (
2326   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327     eval ac_val=\$$ac_var
2328     case $ac_val in #(
2329     *${as_nl}*)
2330       case $ac_var in #(
2331       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333       esac
2334       case $ac_var in #(
2335       _ | IFS | as_nl) ;; #(
2336       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337       *) { eval $ac_var=; unset $ac_var;} ;;
2338       esac ;;
2339     esac
2340   done
2341   (set) 2>&1 |
2342     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343     *${as_nl}ac_space=\ *)
2344       sed -n \
2345         "s/'\''/'\''\\\\'\'''\''/g;
2346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347       ;; #(
2348     *)
2349       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350       ;;
2351     esac |
2352     sort
2353 )
2354     echo
2355
2356     $as_echo "## ----------------- ##
2357 ## Output variables. ##
2358 ## ----------------- ##"
2359     echo
2360     for ac_var in $ac_subst_vars
2361     do
2362       eval ac_val=\$$ac_var
2363       case $ac_val in
2364       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365       esac
2366       $as_echo "$ac_var='\''$ac_val'\''"
2367     done | sort
2368     echo
2369
2370     if test -n "$ac_subst_files"; then
2371       $as_echo "## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##"
2374       echo
2375       for ac_var in $ac_subst_files
2376       do
2377         eval ac_val=\$$ac_var
2378         case $ac_val in
2379         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380         esac
2381         $as_echo "$ac_var='\''$ac_val'\''"
2382       done | sort
2383       echo
2384     fi
2385
2386     if test -s confdefs.h; then
2387       $as_echo "## ----------- ##
2388 ## confdefs.h. ##
2389 ## ----------- ##"
2390       echo
2391       cat confdefs.h
2392       echo
2393     fi
2394     test "$ac_signal" != 0 &&
2395       $as_echo "$as_me: caught signal $ac_signal"
2396     $as_echo "$as_me: exit $exit_status"
2397   } >&5
2398   rm -f core *.core core.conftest.* &&
2399     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400     exit $exit_status
2401 ' 0
2402 for ac_signal in 1 2 13 15; do
2403   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2404 done
2405 ac_signal=0
2406
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest* confdefs.h
2409
2410 $as_echo "/* confdefs.h */" > confdefs.h
2411
2412 # Predefined preprocessor variables.
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_NAME "$PACKAGE_NAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_STRING "$PACKAGE_STRING"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_URL "$PACKAGE_URL"
2436 _ACEOF
2437
2438
2439 # Let the site file select an alternate cache file if it wants to.
2440 # Prefer an explicitly selected file to automatically selected ones.
2441 ac_site_file1=NONE
2442 ac_site_file2=NONE
2443 if test -n "$CONFIG_SITE"; then
2444   # We do not want a PATH search for config.site.
2445   case $CONFIG_SITE in #((
2446     -*)  ac_site_file1=./$CONFIG_SITE;;
2447     */*) ac_site_file1=$CONFIG_SITE;;
2448     *)   ac_site_file1=./$CONFIG_SITE;;
2449   esac
2450 elif test "x$prefix" != xNONE; then
2451   ac_site_file1=$prefix/share/config.site
2452   ac_site_file2=$prefix/etc/config.site
2453 else
2454   ac_site_file1=$ac_default_prefix/share/config.site
2455   ac_site_file2=$ac_default_prefix/etc/config.site
2456 fi
2457 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2458 do
2459   test "x$ac_site_file" = xNONE && continue
2460   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2462 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2463     sed 's/^/| /' "$ac_site_file" >&5
2464     . "$ac_site_file" \
2465       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 as_fn_error $? "failed to load site script $ac_site_file
2468 See \`config.log' for more details" "$LINENO" 5; }
2469   fi
2470 done
2471
2472 if test -r "$cache_file"; then
2473   # Some versions of bash will fail to source /dev/null (special files
2474   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2475   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477 $as_echo "$as_me: loading cache $cache_file" >&6;}
2478     case $cache_file in
2479       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480       *)                      . "./$cache_file";;
2481     esac
2482   fi
2483 else
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485 $as_echo "$as_me: creating cache $cache_file" >&6;}
2486   >$cache_file
2487 fi
2488
2489 as_fn_append ac_header_list " stdlib.h"
2490 as_fn_append ac_header_list " unistd.h"
2491 as_fn_append ac_header_list " sys/param.h"
2492 # Check that the precious variables saved in the cache have kept the same
2493 # value.
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497   eval ac_new_set=\$ac_env_${ac_var}_set
2498   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499   eval ac_new_val=\$ac_env_${ac_var}_value
2500   case $ac_old_set,$ac_new_set in
2501     set,)
2502       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2503 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504       ac_cache_corrupted=: ;;
2505     ,set)
2506       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2507 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2508       ac_cache_corrupted=: ;;
2509     ,);;
2510     *)
2511       if test "x$ac_old_val" != "x$ac_new_val"; then
2512         # differences in whitespace do not lead to failure.
2513         ac_old_val_w=`echo x $ac_old_val`
2514         ac_new_val_w=`echo x $ac_new_val`
2515         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2518           ac_cache_corrupted=:
2519         else
2520           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522           eval $ac_var=\$ac_old_val
2523         fi
2524         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2525 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2526         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2528       fi;;
2529   esac
2530   # Pass precious variables to config.status.
2531   if test "$ac_new_set" = set; then
2532     case $ac_new_val in
2533     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2534     *) ac_arg=$ac_var=$ac_new_val ;;
2535     esac
2536     case " $ac_configure_args " in
2537       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2538       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2539     esac
2540   fi
2541 done
2542 if $ac_cache_corrupted; then
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2548 fi
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2552
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
2560
2561
2562
2563 am__api_version='1.11'
2564
2565 ac_aux_dir=
2566 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2567   if test -f "$ac_dir/install-sh"; then
2568     ac_aux_dir=$ac_dir
2569     ac_install_sh="$ac_aux_dir/install-sh -c"
2570     break
2571   elif test -f "$ac_dir/install.sh"; then
2572     ac_aux_dir=$ac_dir
2573     ac_install_sh="$ac_aux_dir/install.sh -c"
2574     break
2575   elif test -f "$ac_dir/shtool"; then
2576     ac_aux_dir=$ac_dir
2577     ac_install_sh="$ac_aux_dir/shtool install -c"
2578     break
2579   fi
2580 done
2581 if test -z "$ac_aux_dir"; then
2582   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2583 fi
2584
2585 # These three variables are undocumented and unsupported,
2586 # and are intended to be withdrawn in a future Autoconf release.
2587 # They can cause serious problems if a builder's source tree is in a directory
2588 # whose full name contains unusual characters.
2589 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2590 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2591 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2592
2593
2594 # Find a good install program.  We prefer a C program (faster),
2595 # so one script is as good as another.  But avoid the broken or
2596 # incompatible versions:
2597 # SysV /etc/install, /usr/sbin/install
2598 # SunOS /usr/etc/install
2599 # IRIX /sbin/install
2600 # AIX /bin/install
2601 # AmigaOS /C/install, which installs bootblocks on floppy discs
2602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2605 # OS/2's system install, which has a completely different semantic
2606 # ./install, which can be erroneously created by make from ./install.sh.
2607 # Reject install programs that cannot install multiple files.
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2609 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2610 if test -z "$INSTALL"; then
2611 if ${ac_cv_path_install+:} false; then :
2612   $as_echo_n "(cached) " >&6
2613 else
2614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617   IFS=$as_save_IFS
2618   test -z "$as_dir" && as_dir=.
2619     # Account for people who put trailing slashes in PATH elements.
2620 case $as_dir/ in #((
2621   ./ | .// | /[cC]/* | \
2622   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2623   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2624   /usr/ucb/* ) ;;
2625   *)
2626     # OSF1 and SCO ODT 3.0 have their own names for install.
2627     # Don't use installbsd from OSF since it installs stuff as root
2628     # by default.
2629     for ac_prog in ginstall scoinst install; do
2630       for ac_exec_ext in '' $ac_executable_extensions; do
2631         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2632           if test $ac_prog = install &&
2633             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634             # AIX install.  It has an incompatible calling convention.
2635             :
2636           elif test $ac_prog = install &&
2637             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2638             # program-specific install script used by HP pwplus--don't use.
2639             :
2640           else
2641             rm -rf conftest.one conftest.two conftest.dir
2642             echo one > conftest.one
2643             echo two > conftest.two
2644             mkdir conftest.dir
2645             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2646               test -s conftest.one && test -s conftest.two &&
2647               test -s conftest.dir/conftest.one &&
2648               test -s conftest.dir/conftest.two
2649             then
2650               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2651               break 3
2652             fi
2653           fi
2654         fi
2655       done
2656     done
2657     ;;
2658 esac
2659
2660   done
2661 IFS=$as_save_IFS
2662
2663 rm -rf conftest.one conftest.two conftest.dir
2664
2665 fi
2666   if test "${ac_cv_path_install+set}" = set; then
2667     INSTALL=$ac_cv_path_install
2668   else
2669     # As a last resort, use the slow shell script.  Don't cache a
2670     # value for INSTALL within a source directory, because that will
2671     # break other packages using the cache if that directory is
2672     # removed, or if the value is a relative name.
2673     INSTALL=$ac_install_sh
2674   fi
2675 fi
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2677 $as_echo "$INSTALL" >&6; }
2678
2679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2680 # It thinks the first close brace ends the variable substitution.
2681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2682
2683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2684
2685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2686
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2688 $as_echo_n "checking whether build environment is sane... " >&6; }
2689 # Just in case
2690 sleep 1
2691 echo timestamp > conftest.file
2692 # Reject unsafe characters in $srcdir or the absolute working directory
2693 # name.  Accept space and tab only in the latter.
2694 am_lf='
2695 '
2696 case `pwd` in
2697   *[\\\"\#\$\&\'\`$am_lf]*)
2698     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699 esac
2700 case $srcdir in
2701   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2702     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2703 esac
2704
2705 # Do `set' in a subshell so we don't clobber the current shell's
2706 # arguments.  Must try -L first in case configure is actually a
2707 # symlink; some systems play weird games with the mod time of symlinks
2708 # (eg FreeBSD returns the mod time of the symlink's containing
2709 # directory).
2710 if (
2711    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2712    if test "$*" = "X"; then
2713       # -L didn't work.
2714       set X `ls -t "$srcdir/configure" conftest.file`
2715    fi
2716    rm -f conftest.file
2717    if test "$*" != "X $srcdir/configure conftest.file" \
2718       && test "$*" != "X conftest.file $srcdir/configure"; then
2719
2720       # If neither matched, then we have a broken ls.  This can happen
2721       # if, for instance, CONFIG_SHELL is bash and it inherits a
2722       # broken ls alias from the environment.  This has actually
2723       # happened.  Such a system could not be considered "sane".
2724       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2725 alias in your environment" "$LINENO" 5
2726    fi
2727
2728    test "$2" = conftest.file
2729    )
2730 then
2731    # Ok.
2732    :
2733 else
2734    as_fn_error $? "newly created file is older than distributed files!
2735 Check your system clock" "$LINENO" 5
2736 fi
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2738 $as_echo "yes" >&6; }
2739 test "$program_prefix" != NONE &&
2740   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2741 # Use a double $ so make ignores it.
2742 test "$program_suffix" != NONE &&
2743   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2744 # Double any \ or $.
2745 # By default was `s,x,x', remove it if useless.
2746 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2747 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2748
2749 # expand $ac_aux_dir to an absolute path
2750 am_aux_dir=`cd $ac_aux_dir && pwd`
2751
2752 if test x"${MISSING+set}" != xset; then
2753   case $am_aux_dir in
2754   *\ * | *\     *)
2755     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2756   *)
2757     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2758   esac
2759 fi
2760 # Use eval to expand $SHELL
2761 if eval "$MISSING --run true"; then
2762   am_missing_run="$MISSING --run "
2763 else
2764   am_missing_run=
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2766 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2767 fi
2768
2769 if test x"${install_sh}" != xset; then
2770   case $am_aux_dir in
2771   *\ * | *\     *)
2772     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2773   *)
2774     install_sh="\${SHELL} $am_aux_dir/install-sh"
2775   esac
2776 fi
2777
2778 # Installed binaries are usually stripped using `strip' when the user
2779 # run `make install-strip'.  However `strip' might not be the right
2780 # tool to use in cross-compilation environments, therefore Automake
2781 # will honor the `STRIP' environment variable to overrule this program.
2782 if test "$cross_compiling" != no; then
2783   if test -n "$ac_tool_prefix"; then
2784   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}strip; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_STRIP+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   if test -n "$STRIP"; then
2792   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799     for ac_exec_ext in '' $ac_executable_extensions; do
2800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803     break 2
2804   fi
2805 done
2806   done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 STRIP=$ac_cv_prog_STRIP
2812 if test -n "$STRIP"; then
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2814 $as_echo "$STRIP" >&6; }
2815 else
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$ac_cv_prog_STRIP"; then
2823   ac_ct_STRIP=$STRIP
2824   # Extract the first word of "strip", so it can be a program name with args.
2825 set dummy strip; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   if test -n "$ac_ct_STRIP"; then
2832   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839     for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_ac_ct_STRIP="strip"
2842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846   done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2852 if test -n "$ac_ct_STRIP"; then
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2854 $as_echo "$ac_ct_STRIP" >&6; }
2855 else
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860   if test "x$ac_ct_STRIP" = x; then
2861     STRIP=":"
2862   else
2863     case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2868 esac
2869     STRIP=$ac_ct_STRIP
2870   fi
2871 else
2872   STRIP="$ac_cv_prog_STRIP"
2873 fi
2874
2875 fi
2876 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2877
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2879 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2880 if test -z "$MKDIR_P"; then
2881   if ${ac_cv_path_mkdir+:} false; then :
2882   $as_echo_n "(cached) " >&6
2883 else
2884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889     for ac_prog in mkdir gmkdir; do
2890          for ac_exec_ext in '' $ac_executable_extensions; do
2891            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2892            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2893              'mkdir (GNU coreutils) '* | \
2894              'mkdir (coreutils) '* | \
2895              'mkdir (fileutils) '4.1*)
2896                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2897                break 3;;
2898            esac
2899          done
2900        done
2901   done
2902 IFS=$as_save_IFS
2903
2904 fi
2905
2906   test -d ./--version && rmdir ./--version
2907   if test "${ac_cv_path_mkdir+set}" = set; then
2908     MKDIR_P="$ac_cv_path_mkdir -p"
2909   else
2910     # As a last resort, use the slow shell script.  Don't cache a
2911     # value for MKDIR_P within a source directory, because that will
2912     # break other packages using the cache if that directory is
2913     # removed, or if the value is a relative name.
2914     MKDIR_P="$ac_install_sh -d"
2915   fi
2916 fi
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2918 $as_echo "$MKDIR_P" >&6; }
2919
2920 mkdir_p="$MKDIR_P"
2921 case $mkdir_p in
2922   [\\/$]* | ?:[\\/]*) ;;
2923   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2924 esac
2925
2926 for ac_prog in gawk mawk nawk awk
2927 do
2928   # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_AWK+:} false; then :
2933   $as_echo_n "(cached) " >&6
2934 else
2935   if test -n "$AWK"; then
2936   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943     for ac_exec_ext in '' $ac_executable_extensions; do
2944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945     ac_cv_prog_AWK="$ac_prog"
2946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950   done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 AWK=$ac_cv_prog_AWK
2956 if test -n "$AWK"; then
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2958 $as_echo "$AWK" >&6; }
2959 else
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965   test -n "$AWK" && break
2966 done
2967
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2970 set x ${MAKE-make}
2971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2972 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   cat >conftest.make <<\_ACEOF
2976 SHELL = /bin/sh
2977 all:
2978         @echo '@@@%%%=$(MAKE)=@@@%%%'
2979 _ACEOF
2980 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2982   *@@@%%%=?*=@@@%%%*)
2983     eval ac_cv_prog_make_${ac_make}_set=yes;;
2984   *)
2985     eval ac_cv_prog_make_${ac_make}_set=no;;
2986 esac
2987 rm -f conftest.make
2988 fi
2989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991 $as_echo "yes" >&6; }
2992   SET_MAKE=
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996   SET_MAKE="MAKE=${MAKE-make}"
2997 fi
2998
2999 rm -rf .tst 2>/dev/null
3000 mkdir .tst 2>/dev/null
3001 if test -d .tst; then
3002   am__leading_dot=.
3003 else
3004   am__leading_dot=_
3005 fi
3006 rmdir .tst 2>/dev/null
3007
3008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010   # is not polluted with repeated "-I."
3011   am__isrc=' -I$(srcdir)'
3012   # test to see if srcdir already configured
3013   if test -f $srcdir/config.status; then
3014     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3015   fi
3016 fi
3017
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020   if (cygpath --version) >/dev/null 2>/dev/null; then
3021     CYGPATH_W='cygpath -w'
3022   else
3023     CYGPATH_W=echo
3024   fi
3025 fi
3026
3027
3028 # Define the identity of the package.
3029  PACKAGE=mecab
3030  VERSION=0.996
3031
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3036
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3041
3042 # Some tools Automake needs.
3043
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058 # We need awk for the "check" target.  The system "awk" is bad on
3059 # some platforms.
3060 # Always define AMTAR for backward compatibility.  Yes, it's still used
3061 # in the wild :-(  We should find a proper way to deprecate it ...
3062 AMTAR='$${TAR-tar}'
3063
3064 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3065
3066
3067
3068
3069
3070
3071
3072 # DIC_VERSION XXYY
3073 DIC_VERSION="102"
3074
3075 # Before making a release, the LTVERSION string should be modified.
3076 # The string is of the form C:R:A.
3077 # - If interfaces have been changed or added, but binary compatibility has
3078 #   been preserved, change to C+1:0:A+1
3079 # - If binary compatibility has been broken (eg removed or changed interfaces)
3080 #   change to C+1:0:0
3081 # - If the interface is the same as the previous version, change to C:R+1:A
3082 LTVERSION="2:0:0"
3083
3084
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 if test -n "$ac_tool_prefix"; then
3091   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_CC+:} false; then :
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if test -n "$CC"; then
3099   ac_cv_prog_CC="$CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104   IFS=$as_save_IFS
3105   test -z "$as_dir" && as_dir=.
3106     for ac_exec_ext in '' $ac_executable_extensions; do
3107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110     break 2
3111   fi
3112 done
3113   done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 CC=$ac_cv_prog_CC
3119 if test -n "$CC"; then
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3122 else
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128 fi
3129 if test -z "$ac_cv_prog_CC"; then
3130   ac_ct_CC=$CC
3131   # Extract the first word of "gcc", so it can be a program name with args.
3132 set dummy gcc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$ac_ct_CC"; then
3139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146     for ac_exec_ext in '' $ac_executable_extensions; do
3147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148     ac_cv_prog_ac_ct_CC="gcc"
3149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153   done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3162 else
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167   if test "x$ac_ct_CC" = x; then
3168     CC=""
3169   else
3170     case $cross_compiling:$ac_tool_warned in
3171 yes:)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176     CC=$ac_ct_CC
3177   fi
3178 else
3179   CC="$ac_cv_prog_CC"
3180 fi
3181
3182 if test -z "$CC"; then
3183           if test -n "$ac_tool_prefix"; then
3184     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}cc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_CC+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$CC"; then
3192   ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201     ac_cv_prog_CC="${ac_tool_prefix}cc"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221   fi
3222 fi
3223 if test -z "$CC"; then
3224   # Extract the first word of "cc", so it can be a program name with args.
3225 set dummy cc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229   $as_echo_n "(cached) " >&6
3230 else
3231   if test -n "$CC"; then
3232   ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234   ac_prog_rejected=no
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238   IFS=$as_save_IFS
3239   test -z "$as_dir" && as_dir=.
3240     for ac_exec_ext in '' $ac_executable_extensions; do
3241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3243        ac_prog_rejected=yes
3244        continue
3245      fi
3246     ac_cv_prog_CC="cc"
3247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248     break 2
3249   fi
3250 done
3251   done
3252 IFS=$as_save_IFS
3253
3254 if test $ac_prog_rejected = yes; then
3255   # We found a bogon in the path, so make sure we never use it.
3256   set dummy $ac_cv_prog_CC
3257   shift
3258   if test $# != 0; then
3259     # We chose a different compiler from the bogus one.
3260     # However, it has the same basename, so the bogon will be chosen
3261     # first if we set CC to just the basename; use the full file name.
3262     shift
3263     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3264   fi
3265 fi
3266 fi
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278 fi
3279 if test -z "$CC"; then
3280   if test -n "$ac_tool_prefix"; then
3281   for ac_prog in cl.exe
3282   do
3283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if ${ac_cv_prog_CC+:} false; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298     for ac_exec_ext in '' $ac_executable_extensions; do
3299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302     break 2
3303   fi
3304 done
3305   done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319
3320     test -n "$CC" && break
3321   done
3322 fi
3323 if test -z "$CC"; then
3324   ac_ct_CC=$CC
3325   for ac_prog in cl.exe
3326 do
3327   # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy $ac_prog; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   if test -n "$ac_ct_CC"; then
3335   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342     for ac_exec_ext in '' $ac_executable_extensions; do
3343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344     ac_cv_prog_ac_ct_CC="$ac_prog"
3345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346     break 2
3347   fi
3348 done
3349   done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3355 if test -n "$ac_ct_CC"; then
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3357 $as_echo "$ac_ct_CC" >&6; }
3358 else
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364   test -n "$ac_ct_CC" && break
3365 done
3366
3367   if test "x$ac_ct_CC" = x; then
3368     CC=""
3369   else
3370     case $cross_compiling:$ac_tool_warned in
3371 yes:)
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3374 ac_tool_warned=yes ;;
3375 esac
3376     CC=$ac_ct_CC
3377   fi
3378 fi
3379
3380 fi
3381
3382
3383 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "no acceptable C compiler found in \$PATH
3386 See \`config.log' for more details" "$LINENO" 5; }
3387
3388 # Provide some information about the compiler.
3389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3390 set X $ac_compile
3391 ac_compiler=$2
3392 for ac_option in --version -v -V -qversion; do
3393   { { ac_try="$ac_compiler $ac_option >&5"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3401   ac_status=$?
3402   if test -s conftest.err; then
3403     sed '10a\
3404 ... rest of stderr output deleted ...
3405          10q' conftest.err >conftest.er1
3406     cat conftest.er1 >&5
3407   fi
3408   rm -f conftest.er1 conftest.err
3409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410   test $ac_status = 0; }
3411 done
3412
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h.  */
3415
3416 int
3417 main ()
3418 {
3419
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 ac_clean_files_save=$ac_clean_files
3425 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3426 # Try to create an executable without -o first, disregard a.out.
3427 # It will help us diagnose broken compilers, and finding out an intuition
3428 # of exeext.
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3430 $as_echo_n "checking whether the C compiler works... " >&6; }
3431 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3432
3433 # The possible output files:
3434 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3435
3436 ac_rmfiles=
3437 for ac_file in $ac_files
3438 do
3439   case $ac_file in
3440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3441     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3442   esac
3443 done
3444 rm -f $ac_rmfiles
3445
3446 if { { ac_try="$ac_link_default"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453   (eval "$ac_link_default") 2>&5
3454   ac_status=$?
3455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456   test $ac_status = 0; }; then :
3457   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3458 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3459 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3460 # so that the user can short-circuit this test for compilers unknown to
3461 # Autoconf.
3462 for ac_file in $ac_files ''
3463 do
3464   test -f "$ac_file" || continue
3465   case $ac_file in
3466     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3467         ;;
3468     [ab].out )
3469         # We found the default executable, but exeext='' is most
3470         # certainly right.
3471         break;;
3472     *.* )
3473         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3474         then :; else
3475            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476         fi
3477         # We set ac_cv_exeext here because the later test for it is not
3478         # safe: cross compilers may not add the suffix if given an `-o'
3479         # argument, so we may need to know it at that point already.
3480         # Even if this section looks crufty: it has the advantage of
3481         # actually working.
3482         break;;
3483     * )
3484         break;;
3485   esac
3486 done
3487 test "$ac_cv_exeext" = no && ac_cv_exeext=
3488
3489 else
3490   ac_file=''
3491 fi
3492 if test -z "$ac_file"; then :
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error 77 "C compiler cannot create executables
3501 See \`config.log' for more details" "$LINENO" 5; }
3502 else
3503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504 $as_echo "yes" >&6; }
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3507 $as_echo_n "checking for C compiler default output file name... " >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3509 $as_echo "$ac_file" >&6; }
3510 ac_exeext=$ac_cv_exeext
3511
3512 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3513 ac_clean_files=$ac_clean_files_save
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3515 $as_echo_n "checking for suffix of executables... " >&6; }
3516 if { { ac_try="$ac_link"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523   (eval "$ac_link") 2>&5
3524   ac_status=$?
3525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526   test $ac_status = 0; }; then :
3527   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3529 # work properly (i.e., refer to `conftest.exe'), while it won't with
3530 # `rm'.
3531 for ac_file in conftest.exe conftest conftest.*; do
3532   test -f "$ac_file" || continue
3533   case $ac_file in
3534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536           break;;
3537     * ) break;;
3538   esac
3539 done
3540 else
3541   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3544 See \`config.log' for more details" "$LINENO" 5; }
3545 fi
3546 rm -f conftest conftest$ac_cv_exeext
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3548 $as_echo "$ac_cv_exeext" >&6; }
3549
3550 rm -f conftest.$ac_ext
3551 EXEEXT=$ac_cv_exeext
3552 ac_exeext=$EXEEXT
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555 #include <stdio.h>
3556 int
3557 main ()
3558 {
3559 FILE *f = fopen ("conftest.out", "w");
3560  return ferror (f) || fclose (f) != 0;
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 ac_clean_files="$ac_clean_files conftest.out"
3567 # Check that the compiler produces executables we can run.  If not, either
3568 # the compiler is broken, or we cross compile.
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3570 $as_echo_n "checking whether we are cross compiling... " >&6; }
3571 if test "$cross_compiling" != yes; then
3572   { { ac_try="$ac_link"
3573 case "(($ac_try" in
3574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575   *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579   (eval "$ac_link") 2>&5
3580   ac_status=$?
3581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582   test $ac_status = 0; }
3583   if { ac_try='./conftest$ac_cv_exeext'
3584   { { case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590   (eval "$ac_try") 2>&5
3591   ac_status=$?
3592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593   test $ac_status = 0; }; }; then
3594     cross_compiling=no
3595   else
3596     if test "$cross_compiling" = maybe; then
3597         cross_compiling=yes
3598     else
3599         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot run C compiled programs.
3602 If you meant to cross compile, use \`--host'.
3603 See \`config.log' for more details" "$LINENO" 5; }
3604     fi
3605   fi
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3608 $as_echo "$cross_compiling" >&6; }
3609
3610 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3611 ac_clean_files=$ac_clean_files_save
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3613 $as_echo_n "checking for suffix of object files... " >&6; }
3614 if ${ac_cv_objext+:} false; then :
3615   $as_echo_n "(cached) " >&6
3616 else
3617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619
3620 int
3621 main ()
3622 {
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 rm -f conftest.o conftest.obj
3629 if { { ac_try="$ac_compile"
3630 case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636   (eval "$ac_compile") 2>&5
3637   ac_status=$?
3638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639   test $ac_status = 0; }; then :
3640   for ac_file in conftest.o conftest.obj conftest.*; do
3641   test -f "$ac_file" || continue;
3642   case $ac_file in
3643     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3644     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3645        break;;
3646   esac
3647 done
3648 else
3649   $as_echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error $? "cannot compute suffix of object files: cannot compile
3655 See \`config.log' for more details" "$LINENO" 5; }
3656 fi
3657 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3660 $as_echo "$ac_cv_objext" >&6; }
3661 OBJEXT=$ac_cv_objext
3662 ac_objext=$OBJEXT
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3664 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3665 if ${ac_cv_c_compiler_gnu+:} false; then :
3666   $as_echo_n "(cached) " >&6
3667 else
3668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h.  */
3670
3671 int
3672 main ()
3673 {
3674 #ifndef __GNUC__
3675        choke me
3676 #endif
3677
3678   ;
3679   return 0;
3680 }
3681 _ACEOF
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683   ac_compiler_gnu=yes
3684 else
3685   ac_compiler_gnu=no
3686 fi
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3689
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3692 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3693 if test $ac_compiler_gnu = yes; then
3694   GCC=yes
3695 else
3696   GCC=
3697 fi
3698 ac_test_CFLAGS=${CFLAGS+set}
3699 ac_save_CFLAGS=$CFLAGS
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3701 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3702 if ${ac_cv_prog_cc_g+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   ac_save_c_werror_flag=$ac_c_werror_flag
3706    ac_c_werror_flag=yes
3707    ac_cv_prog_cc_g=no
3708    CFLAGS="-g"
3709    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h.  */
3711
3712 int
3713 main ()
3714 {
3715
3716   ;
3717   return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721   ac_cv_prog_cc_g=yes
3722 else
3723   CFLAGS=""
3724       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726
3727 int
3728 main ()
3729 {
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736
3737 else
3738   ac_c_werror_flag=$ac_save_c_werror_flag
3739          CFLAGS="-g"
3740          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h.  */
3742
3743 int
3744 main ()
3745 {
3746
3747   ;
3748   return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752   ac_cv_prog_cc_g=yes
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759    ac_c_werror_flag=$ac_save_c_werror_flag
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3762 $as_echo "$ac_cv_prog_cc_g" >&6; }
3763 if test "$ac_test_CFLAGS" = set; then
3764   CFLAGS=$ac_save_CFLAGS
3765 elif test $ac_cv_prog_cc_g = yes; then
3766   if test "$GCC" = yes; then
3767     CFLAGS="-g -O2"
3768   else
3769     CFLAGS="-g"
3770   fi
3771 else
3772   if test "$GCC" = yes; then
3773     CFLAGS="-O2"
3774   else
3775     CFLAGS=
3776   fi
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3779 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3780 if ${ac_cv_prog_cc_c89+:} false; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   ac_cv_prog_cc_c89=no
3784 ac_save_CC=$CC
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787 #include <stdarg.h>
3788 #include <stdio.h>
3789 #include <sys/types.h>
3790 #include <sys/stat.h>
3791 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3792 struct buf { int x; };
3793 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3794 static char *e (p, i)
3795      char **p;
3796      int i;
3797 {
3798   return p[i];
3799 }
3800 static char *f (char * (*g) (char **, int), char **p, ...)
3801 {
3802   char *s;
3803   va_list v;
3804   va_start (v,p);
3805   s = g (p, va_arg (v,int));
3806   va_end (v);
3807   return s;
3808 }
3809
3810 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3811    function prototypes and stuff, but not '\xHH' hex character constants.
3812    These don't provoke an error unfortunately, instead are silently treated
3813    as 'x'.  The following induces an error, until -std is added to get
3814    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3815    array size at least.  It's necessary to write '\x00'==0 to get something
3816    that's true only with -std.  */
3817 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3818
3819 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3820    inside strings and character constants.  */
3821 #define FOO(x) 'x'
3822 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3823
3824 int test (int i, double x);
3825 struct s1 {int (*f) (int a);};
3826 struct s2 {int (*f) (double a);};
3827 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 int argc;
3829 char **argv;
3830 int
3831 main ()
3832 {
3833 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3839         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3840 do
3841   CC="$ac_save_CC $ac_arg"
3842   if ac_fn_c_try_compile "$LINENO"; then :
3843   ac_cv_prog_cc_c89=$ac_arg
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext
3846   test "x$ac_cv_prog_cc_c89" != "xno" && break
3847 done
3848 rm -f conftest.$ac_ext
3849 CC=$ac_save_CC
3850
3851 fi
3852 # AC_CACHE_VAL
3853 case "x$ac_cv_prog_cc_c89" in
3854   x)
3855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3856 $as_echo "none needed" >&6; } ;;
3857   xno)
3858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3859 $as_echo "unsupported" >&6; } ;;
3860   *)
3861     CC="$CC $ac_cv_prog_cc_c89"
3862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3863 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3864 esac
3865 if test "x$ac_cv_prog_cc_c89" != xno; then :
3866
3867 fi
3868
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874 DEPDIR="${am__leading_dot}deps"
3875
3876 ac_config_commands="$ac_config_commands depfiles"
3877
3878
3879 am_make=${MAKE-make}
3880 cat > confinc << 'END'
3881 am__doit:
3882         @echo this is the am__doit target
3883 .PHONY: am__doit
3884 END
3885 # If we don't find an include directive, just comment out the code.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3887 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3888 am__include="#"
3889 am__quote=
3890 _am_result=none
3891 # First try GNU make style include.
3892 echo "include confinc" > confmf
3893 # Ignore all kinds of additional output from `make'.
3894 case `$am_make -s -f confmf 2> /dev/null` in #(
3895 *the\ am__doit\ target*)
3896   am__include=include
3897   am__quote=
3898   _am_result=GNU
3899   ;;
3900 esac
3901 # Now try BSD make style include.
3902 if test "$am__include" = "#"; then
3903    echo '.include "confinc"' > confmf
3904    case `$am_make -s -f confmf 2> /dev/null` in #(
3905    *the\ am__doit\ target*)
3906      am__include=.include
3907      am__quote="\""
3908      _am_result=BSD
3909      ;;
3910    esac
3911 fi
3912
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3915 $as_echo "$_am_result" >&6; }
3916 rm -f confinc confmf
3917
3918 # Check whether --enable-dependency-tracking was given.
3919 if test "${enable_dependency_tracking+set}" = set; then :
3920   enableval=$enable_dependency_tracking;
3921 fi
3922
3923 if test "x$enable_dependency_tracking" != xno; then
3924   am_depcomp="$ac_aux_dir/depcomp"
3925   AMDEPBACKSLASH='\'
3926   am__nodep='_no'
3927 fi
3928  if test "x$enable_dependency_tracking" != xno; then
3929   AMDEP_TRUE=
3930   AMDEP_FALSE='#'
3931 else
3932   AMDEP_TRUE='#'
3933   AMDEP_FALSE=
3934 fi
3935
3936
3937
3938 depcc="$CC"   am_compiler_list=
3939
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3941 $as_echo_n "checking dependency style of $depcc... " >&6; }
3942 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3946   # We make a subdir and do the tests there.  Otherwise we can end up
3947   # making bogus files that we don't know about and never remove.  For
3948   # instance it was reported that on HP-UX the gcc test will end up
3949   # making a dummy file named `D' -- because `-MD' means `put the output
3950   # in D'.
3951   rm -rf conftest.dir
3952   mkdir conftest.dir
3953   # Copy depcomp to subdir because otherwise we won't find it if we're
3954   # using a relative directory.
3955   cp "$am_depcomp" conftest.dir
3956   cd conftest.dir
3957   # We will build objects and dependencies in a subdirectory because
3958   # it helps to detect inapplicable dependency modes.  For instance
3959   # both Tru64's cc and ICC support -MD to output dependencies as a
3960   # side effect of compilation, but ICC will put the dependencies in
3961   # the current directory while Tru64 will put them in the object
3962   # directory.
3963   mkdir sub
3964
3965   am_cv_CC_dependencies_compiler_type=none
3966   if test "$am_compiler_list" = ""; then
3967      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3968   fi
3969   am__universal=false
3970   case " $depcc " in #(
3971      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3972      esac
3973
3974   for depmode in $am_compiler_list; do
3975     # Setup a source with many dependencies, because some compilers
3976     # like to wrap large dependency lists on column 80 (with \), and
3977     # we should not choose a depcomp mode which is confused by this.
3978     #
3979     # We need to recreate these files for each test, as the compiler may
3980     # overwrite some of them when testing with obscure command lines.
3981     # This happens at least with the AIX C compiler.
3982     : > sub/conftest.c
3983     for i in 1 2 3 4 5 6; do
3984       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986       # Solaris 8's {/usr,}/bin/sh.
3987       touch sub/conftst$i.h
3988     done
3989     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3990
3991     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3992     # mode.  It turns out that the SunPro C++ compiler does not properly
3993     # handle `-M -o', and we need to detect this.  Also, some Intel
3994     # versions had trouble with output in subdirs
3995     am__obj=sub/conftest.${OBJEXT-o}
3996     am__minus_obj="-o $am__obj"
3997     case $depmode in
3998     gcc)
3999       # This depmode causes a compiler race in universal mode.
4000       test "$am__universal" = false || continue
4001       ;;
4002     nosideeffect)
4003       # after this tag, mechanisms are not by side-effect, so they'll
4004       # only be used when explicitly requested
4005       if test "x$enable_dependency_tracking" = xyes; then
4006         continue
4007       else
4008         break
4009       fi
4010       ;;
4011     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4012       # This compiler won't grok `-c -o', but also, the minuso test has
4013       # not run yet.  These depmodes are late enough in the game, and
4014       # so weak that their functioning should not be impacted.
4015       am__obj=conftest.${OBJEXT-o}
4016       am__minus_obj=
4017       ;;
4018     none) break ;;
4019     esac
4020     if depmode=$depmode \
4021        source=sub/conftest.c object=$am__obj \
4022        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4023        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4024          >/dev/null 2>conftest.err &&
4025        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4026        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4027        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4028        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4029       # icc doesn't choke on unknown options, it will just issue warnings
4030       # or remarks (even with -Werror).  So we grep stderr for any message
4031       # that says an option was ignored or not supported.
4032       # When given -MP, icc 7.0 and 7.1 complain thusly:
4033       #   icc: Command line warning: ignoring option '-M'; no argument required
4034       # The diagnosis changed in icc 8.0:
4035       #   icc: Command line remark: option '-MP' not supported
4036       if (grep 'ignoring option' conftest.err ||
4037           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4038         am_cv_CC_dependencies_compiler_type=$depmode
4039         break
4040       fi
4041     fi
4042   done
4043
4044   cd ..
4045   rm -rf conftest.dir
4046 else
4047   am_cv_CC_dependencies_compiler_type=none
4048 fi
4049
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4052 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4053 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4054
4055  if
4056   test "x$enable_dependency_tracking" != xno \
4057   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4058   am__fastdepCC_TRUE=
4059   am__fastdepCC_FALSE='#'
4060 else
4061   am__fastdepCC_TRUE='#'
4062   am__fastdepCC_FALSE=
4063 fi
4064
4065
4066 ac_ext=cpp
4067 ac_cpp='$CXXCPP $CPPFLAGS'
4068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4071 if test -z "$CXX"; then
4072   if test -n "$CCC"; then
4073     CXX=$CCC
4074   else
4075     if test -n "$ac_tool_prefix"; then
4076   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4077   do
4078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_CXX+:} false; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   if test -n "$CXX"; then
4086   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091   IFS=$as_save_IFS
4092   test -z "$as_dir" && as_dir=.
4093     for ac_exec_ext in '' $ac_executable_extensions; do
4094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097     break 2
4098   fi
4099 done
4100   done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 CXX=$ac_cv_prog_CXX
4106 if test -n "$CXX"; then
4107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4108 $as_echo "$CXX" >&6; }
4109 else
4110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 fi
4113
4114
4115     test -n "$CXX" && break
4116   done
4117 fi
4118 if test -z "$CXX"; then
4119   ac_ct_CXX=$CXX
4120   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4121 do
4122   # Extract the first word of "$ac_prog", so it can be a program name with args.
4123 set dummy $ac_prog; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4127   $as_echo_n "(cached) " >&6
4128 else
4129   if test -n "$ac_ct_CXX"; then
4130   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137     for ac_exec_ext in '' $ac_executable_extensions; do
4138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139     ac_cv_prog_ac_ct_CXX="$ac_prog"
4140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144   done
4145 IFS=$as_save_IFS
4146
4147 fi
4148 fi
4149 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4150 if test -n "$ac_ct_CXX"; then
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4152 $as_echo "$ac_ct_CXX" >&6; }
4153 else
4154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4156 fi
4157
4158
4159   test -n "$ac_ct_CXX" && break
4160 done
4161
4162   if test "x$ac_ct_CXX" = x; then
4163     CXX="g++"
4164   else
4165     case $cross_compiling:$ac_tool_warned in
4166 yes:)
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4169 ac_tool_warned=yes ;;
4170 esac
4171     CXX=$ac_ct_CXX
4172   fi
4173 fi
4174
4175   fi
4176 fi
4177 # Provide some information about the compiler.
4178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4179 set X $ac_compile
4180 ac_compiler=$2
4181 for ac_option in --version -v -V -qversion; do
4182   { { ac_try="$ac_compiler $ac_option >&5"
4183 case "(($ac_try" in
4184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185   *) ac_try_echo=$ac_try;;
4186 esac
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 $as_echo "$ac_try_echo"; } >&5
4189   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4190   ac_status=$?
4191   if test -s conftest.err; then
4192     sed '10a\
4193 ... rest of stderr output deleted ...
4194          10q' conftest.err >conftest.er1
4195     cat conftest.er1 >&5
4196   fi
4197   rm -f conftest.er1 conftest.err
4198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199   test $ac_status = 0; }
4200 done
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4203 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4204 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h.  */
4209
4210 int
4211 main ()
4212 {
4213 #ifndef __GNUC__
4214        choke me
4215 #endif
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_cxx_try_compile "$LINENO"; then :
4222   ac_compiler_gnu=yes
4223 else
4224   ac_compiler_gnu=no
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4228
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4231 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4232 if test $ac_compiler_gnu = yes; then
4233   GXX=yes
4234 else
4235   GXX=
4236 fi
4237 ac_test_CXXFLAGS=${CXXFLAGS+set}
4238 ac_save_CXXFLAGS=$CXXFLAGS
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4240 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4241 if ${ac_cv_prog_cxx_g+:} false; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4245    ac_cxx_werror_flag=yes
4246    ac_cv_prog_cxx_g=no
4247    CXXFLAGS="-g"
4248    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h.  */
4250
4251 int
4252 main ()
4253 {
4254
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_cxx_try_compile "$LINENO"; then :
4260   ac_cv_prog_cxx_g=yes
4261 else
4262   CXXFLAGS=""
4263       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h.  */
4265
4266 int
4267 main ()
4268 {
4269
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 if ac_fn_cxx_try_compile "$LINENO"; then :
4275
4276 else
4277   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4278          CXXFLAGS="-g"
4279          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h.  */
4281
4282 int
4283 main ()
4284 {
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_cxx_try_compile "$LINENO"; then :
4291   ac_cv_prog_cxx_g=yes
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4301 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4302 if test "$ac_test_CXXFLAGS" = set; then
4303   CXXFLAGS=$ac_save_CXXFLAGS
4304 elif test $ac_cv_prog_cxx_g = yes; then
4305   if test "$GXX" = yes; then
4306     CXXFLAGS="-g -O2"
4307   else
4308     CXXFLAGS="-g"
4309   fi
4310 else
4311   if test "$GXX" = yes; then
4312     CXXFLAGS="-O2"
4313   else
4314     CXXFLAGS=
4315   fi
4316 fi
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
4323 depcc="$CXX"  am_compiler_list=
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326 $as_echo_n "checking dependency style of $depcc... " >&6; }
4327 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331   # We make a subdir and do the tests there.  Otherwise we can end up
4332   # making bogus files that we don't know about and never remove.  For
4333   # instance it was reported that on HP-UX the gcc test will end up
4334   # making a dummy file named `D' -- because `-MD' means `put the output
4335   # in D'.
4336   rm -rf conftest.dir
4337   mkdir conftest.dir
4338   # Copy depcomp to subdir because otherwise we won't find it if we're
4339   # using a relative directory.
4340   cp "$am_depcomp" conftest.dir
4341   cd conftest.dir
4342   # We will build objects and dependencies in a subdirectory because
4343   # it helps to detect inapplicable dependency modes.  For instance
4344   # both Tru64's cc and ICC support -MD to output dependencies as a
4345   # side effect of compilation, but ICC will put the dependencies in
4346   # the current directory while Tru64 will put them in the object
4347   # directory.
4348   mkdir sub
4349
4350   am_cv_CXX_dependencies_compiler_type=none
4351   if test "$am_compiler_list" = ""; then
4352      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353   fi
4354   am__universal=false
4355   case " $depcc " in #(
4356      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357      esac
4358
4359   for depmode in $am_compiler_list; do
4360     # Setup a source with many dependencies, because some compilers
4361     # like to wrap large dependency lists on column 80 (with \), and
4362     # we should not choose a depcomp mode which is confused by this.
4363     #
4364     # We need to recreate these files for each test, as the compiler may
4365     # overwrite some of them when testing with obscure command lines.
4366     # This happens at least with the AIX C compiler.
4367     : > sub/conftest.c
4368     for i in 1 2 3 4 5 6; do
4369       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4371       # Solaris 8's {/usr,}/bin/sh.
4372       touch sub/conftst$i.h
4373     done
4374     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375
4376     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377     # mode.  It turns out that the SunPro C++ compiler does not properly
4378     # handle `-M -o', and we need to detect this.  Also, some Intel
4379     # versions had trouble with output in subdirs
4380     am__obj=sub/conftest.${OBJEXT-o}
4381     am__minus_obj="-o $am__obj"
4382     case $depmode in
4383     gcc)
4384       # This depmode causes a compiler race in universal mode.
4385       test "$am__universal" = false || continue
4386       ;;
4387     nosideeffect)
4388       # after this tag, mechanisms are not by side-effect, so they'll
4389       # only be used when explicitly requested
4390       if test "x$enable_dependency_tracking" = xyes; then
4391         continue
4392       else
4393         break
4394       fi
4395       ;;
4396     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4397       # This compiler won't grok `-c -o', but also, the minuso test has
4398       # not run yet.  These depmodes are late enough in the game, and
4399       # so weak that their functioning should not be impacted.
4400       am__obj=conftest.${OBJEXT-o}
4401       am__minus_obj=
4402       ;;
4403     none) break ;;
4404     esac
4405     if depmode=$depmode \
4406        source=sub/conftest.c object=$am__obj \
4407        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409          >/dev/null 2>conftest.err &&
4410        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414       # icc doesn't choke on unknown options, it will just issue warnings
4415       # or remarks (even with -Werror).  So we grep stderr for any message
4416       # that says an option was ignored or not supported.
4417       # When given -MP, icc 7.0 and 7.1 complain thusly:
4418       #   icc: Command line warning: ignoring option '-M'; no argument required
4419       # The diagnosis changed in icc 8.0:
4420       #   icc: Command line remark: option '-MP' not supported
4421       if (grep 'ignoring option' conftest.err ||
4422           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423         am_cv_CXX_dependencies_compiler_type=$depmode
4424         break
4425       fi
4426     fi
4427   done
4428
4429   cd ..
4430   rm -rf conftest.dir
4431 else
4432   am_cv_CXX_dependencies_compiler_type=none
4433 fi
4434
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4437 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4438 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4439
4440  if
4441   test "x$enable_dependency_tracking" != xno \
4442   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4443   am__fastdepCXX_TRUE=
4444   am__fastdepCXX_FALSE='#'
4445 else
4446   am__fastdepCXX_TRUE='#'
4447   am__fastdepCXX_FALSE=
4448 fi
4449
4450
4451
4452 ac_ext=c
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4459 # On Suns, sometimes $CPP names a directory.
4460 if test -n "$CPP" && test -d "$CPP"; then
4461   CPP=
4462 fi
4463 if test -z "$CPP"; then
4464   if ${ac_cv_prog_CPP+:} false; then :
4465   $as_echo_n "(cached) " >&6
4466 else
4467       # Double quotes because CPP needs to be expanded
4468     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4469     do
4470       ac_preproc_ok=false
4471 for ac_c_preproc_warn_flag in '' yes
4472 do
4473   # Use a header file that comes with gcc, so configuring glibc
4474   # with a fresh cross-compiler works.
4475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476   # <limits.h> exists even on freestanding compilers.
4477   # On the NeXT, cc -E runs the code through the compiler's parser,
4478   # not just through cpp. "Syntax error" is here to catch this case.
4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481 #ifdef __STDC__
4482 # include <limits.h>
4483 #else
4484 # include <assert.h>
4485 #endif
4486                      Syntax error
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489
4490 else
4491   # Broken: fails on valid input.
4492 continue
4493 fi
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4495
4496   # OK, works on sane cases.  Now check whether nonexistent headers
4497   # can be detected and how.
4498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500 #include <ac_nonexistent.h>
4501 _ACEOF
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503   # Broken: success on invalid input.
4504 continue
4505 else
4506   # Passes both tests.
4507 ac_preproc_ok=:
4508 break
4509 fi
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4511
4512 done
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4516   break
4517 fi
4518
4519     done
4520     ac_cv_prog_CPP=$CPP
4521
4522 fi
4523   CPP=$ac_cv_prog_CPP
4524 else
4525   ac_cv_prog_CPP=$CPP
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4528 $as_echo "$CPP" >&6; }
4529 ac_preproc_ok=false
4530 for ac_c_preproc_warn_flag in '' yes
4531 do
4532   # Use a header file that comes with gcc, so configuring glibc
4533   # with a fresh cross-compiler works.
4534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535   # <limits.h> exists even on freestanding compilers.
4536   # On the NeXT, cc -E runs the code through the compiler's parser,
4537   # not just through cpp. "Syntax error" is here to catch this case.
4538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540 #ifdef __STDC__
4541 # include <limits.h>
4542 #else
4543 # include <assert.h>
4544 #endif
4545                      Syntax error
4546 _ACEOF
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4548
4549 else
4550   # Broken: fails on valid input.
4551 continue
4552 fi
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4554
4555   # OK, works on sane cases.  Now check whether nonexistent headers
4556   # can be detected and how.
4557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559 #include <ac_nonexistent.h>
4560 _ACEOF
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562   # Broken: success on invalid input.
4563 continue
4564 else
4565   # Passes both tests.
4566 ac_preproc_ok=:
4567 break
4568 fi
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4570
4571 done
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then :
4575
4576 else
4577   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details" "$LINENO" 5; }
4581 fi
4582
4583 ac_ext=c
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4591 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4592 if ${ac_cv_path_GREP+:} false; then :
4593   $as_echo_n "(cached) " >&6
4594 else
4595   if test -z "$GREP"; then
4596   ac_path_GREP_found=false
4597   # Loop through the user's path and test for each of PROGNAME-LIST
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603     for ac_prog in grep ggrep; do
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4606       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4607 # Check for GNU ac_path_GREP and select it if it is found.
4608   # Check for GNU $ac_path_GREP
4609 case `"$ac_path_GREP" --version 2>&1` in
4610 *GNU*)
4611   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4612 *)
4613   ac_count=0
4614   $as_echo_n 0123456789 >"conftest.in"
4615   while :
4616   do
4617     cat "conftest.in" "conftest.in" >"conftest.tmp"
4618     mv "conftest.tmp" "conftest.in"
4619     cp "conftest.in" "conftest.nl"
4620     $as_echo 'GREP' >> "conftest.nl"
4621     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623     as_fn_arith $ac_count + 1 && ac_count=$as_val
4624     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4625       # Best one so far, save it but keep looking for a better one
4626       ac_cv_path_GREP="$ac_path_GREP"
4627       ac_path_GREP_max=$ac_count
4628     fi
4629     # 10*(2^10) chars as input seems more than enough
4630     test $ac_count -gt 10 && break
4631   done
4632   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633 esac
4634
4635       $ac_path_GREP_found && break 3
4636     done
4637   done
4638   done
4639 IFS=$as_save_IFS
4640   if test -z "$ac_cv_path_GREP"; then
4641     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642   fi
4643 else
4644   ac_cv_path_GREP=$GREP
4645 fi
4646
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4649 $as_echo "$ac_cv_path_GREP" >&6; }
4650  GREP="$ac_cv_path_GREP"
4651
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4654 $as_echo_n "checking for egrep... " >&6; }
4655 if ${ac_cv_path_EGREP+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659    then ac_cv_path_EGREP="$GREP -E"
4660    else
4661      if test -z "$EGREP"; then
4662   ac_path_EGREP_found=false
4663   # Loop through the user's path and test for each of PROGNAME-LIST
4664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669     for ac_prog in egrep; do
4670     for ac_exec_ext in '' $ac_executable_extensions; do
4671       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4672       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4673 # Check for GNU ac_path_EGREP and select it if it is found.
4674   # Check for GNU $ac_path_EGREP
4675 case `"$ac_path_EGREP" --version 2>&1` in
4676 *GNU*)
4677   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4678 *)
4679   ac_count=0
4680   $as_echo_n 0123456789 >"conftest.in"
4681   while :
4682   do
4683     cat "conftest.in" "conftest.in" >"conftest.tmp"
4684     mv "conftest.tmp" "conftest.in"
4685     cp "conftest.in" "conftest.nl"
4686     $as_echo 'EGREP' >> "conftest.nl"
4687     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689     as_fn_arith $ac_count + 1 && ac_count=$as_val
4690     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691       # Best one so far, save it but keep looking for a better one
4692       ac_cv_path_EGREP="$ac_path_EGREP"
4693       ac_path_EGREP_max=$ac_count
4694     fi
4695     # 10*(2^10) chars as input seems more than enough
4696     test $ac_count -gt 10 && break
4697   done
4698   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699 esac
4700
4701       $ac_path_EGREP_found && break 3
4702     done
4703   done
4704   done
4705 IFS=$as_save_IFS
4706   if test -z "$ac_cv_path_EGREP"; then
4707     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708   fi
4709 else
4710   ac_cv_path_EGREP=$EGREP
4711 fi
4712
4713    fi
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4716 $as_echo "$ac_cv_path_EGREP" >&6; }
4717  EGREP="$ac_cv_path_EGREP"
4718
4719
4720 if test $ac_cv_c_compiler_gnu = yes; then
4721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4722 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4723 if ${ac_cv_prog_gcc_traditional+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726     ac_pattern="Autoconf.*'x'"
4727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729 #include <sgtty.h>
4730 Autoconf TIOCGETP
4731 _ACEOF
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4734   ac_cv_prog_gcc_traditional=yes
4735 else
4736   ac_cv_prog_gcc_traditional=no
4737 fi
4738 rm -f conftest*
4739
4740
4741   if test $ac_cv_prog_gcc_traditional = no; then
4742     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h.  */
4744 #include <termio.h>
4745 Autoconf TCGETA
4746 _ACEOF
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4749   ac_cv_prog_gcc_traditional=yes
4750 fi
4751 rm -f conftest*
4752
4753   fi
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4756 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4757   if test $ac_cv_prog_gcc_traditional = yes; then
4758     CC="$CC -traditional"
4759   fi
4760 fi
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4763 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4764 set x ${MAKE-make}
4765 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4766 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4767   $as_echo_n "(cached) " >&6
4768 else
4769   cat >conftest.make <<\_ACEOF
4770 SHELL = /bin/sh
4771 all:
4772         @echo '@@@%%%=$(MAKE)=@@@%%%'
4773 _ACEOF
4774 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4775 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4776   *@@@%%%=?*=@@@%%%*)
4777     eval ac_cv_prog_make_${ac_make}_set=yes;;
4778   *)
4779     eval ac_cv_prog_make_${ac_make}_set=no;;
4780 esac
4781 rm -f conftest.make
4782 fi
4783 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4785 $as_echo "yes" >&6; }
4786   SET_MAKE=
4787 else
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790   SET_MAKE="MAKE=${MAKE-make}"
4791 fi
4792
4793 # Make sure we can run config.sub.
4794 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4795   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4798 $as_echo_n "checking build system type... " >&6; }
4799 if ${ac_cv_build+:} false; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   ac_build_alias=$build_alias
4803 test "x$ac_build_alias" = x &&
4804   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4805 test "x$ac_build_alias" = x &&
4806   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4807 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4808   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4809
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4812 $as_echo "$ac_cv_build" >&6; }
4813 case $ac_cv_build in
4814 *-*-*) ;;
4815 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4816 esac
4817 build=$ac_cv_build
4818 ac_save_IFS=$IFS; IFS='-'
4819 set x $ac_cv_build
4820 shift
4821 build_cpu=$1
4822 build_vendor=$2
4823 shift; shift
4824 # Remember, the first character of IFS is used to create $*,
4825 # except with old shells:
4826 build_os=$*
4827 IFS=$ac_save_IFS
4828 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4829
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4832 $as_echo_n "checking host system type... " >&6; }
4833 if ${ac_cv_host+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   if test "x$host_alias" = x; then
4837   ac_cv_host=$ac_cv_build
4838 else
4839   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4840     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4841 fi
4842
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4845 $as_echo "$ac_cv_host" >&6; }
4846 case $ac_cv_host in
4847 *-*-*) ;;
4848 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4849 esac
4850 host=$ac_cv_host
4851 ac_save_IFS=$IFS; IFS='-'
4852 set x $ac_cv_host
4853 shift
4854 host_cpu=$1
4855 host_vendor=$2
4856 shift; shift
4857 # Remember, the first character of IFS is used to create $*,
4858 # except with old shells:
4859 host_os=$*
4860 IFS=$ac_save_IFS
4861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4862
4863
4864 enable_win32_dll=yes
4865
4866 case $host in
4867 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4868   if test -n "$ac_tool_prefix"; then
4869   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4870 set dummy ${ac_tool_prefix}as; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_AS+:} false; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   if test -n "$AS"; then
4877   ac_cv_prog_AS="$AS" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4881 do
4882   IFS=$as_save_IFS
4883   test -z "$as_dir" && as_dir=.
4884     for ac_exec_ext in '' $ac_executable_extensions; do
4885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886     ac_cv_prog_AS="${ac_tool_prefix}as"
4887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888     break 2
4889   fi
4890 done
4891   done
4892 IFS=$as_save_IFS
4893
4894 fi
4895 fi
4896 AS=$ac_cv_prog_AS
4897 if test -n "$AS"; then
4898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4899 $as_echo "$AS" >&6; }
4900 else
4901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4903 fi
4904
4905
4906 fi
4907 if test -z "$ac_cv_prog_AS"; then
4908   ac_ct_AS=$AS
4909   # Extract the first word of "as", so it can be a program name with args.
4910 set dummy as; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   if test -n "$ac_ct_AS"; then
4917   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924     for ac_exec_ext in '' $ac_executable_extensions; do
4925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926     ac_cv_prog_ac_ct_AS="as"
4927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931   done
4932 IFS=$as_save_IFS
4933
4934 fi
4935 fi
4936 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4937 if test -n "$ac_ct_AS"; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4939 $as_echo "$ac_ct_AS" >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945   if test "x$ac_ct_AS" = x; then
4946     AS="false"
4947   else
4948     case $cross_compiling:$ac_tool_warned in
4949 yes:)
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952 ac_tool_warned=yes ;;
4953 esac
4954     AS=$ac_ct_AS
4955   fi
4956 else
4957   AS="$ac_cv_prog_AS"
4958 fi
4959
4960   if test -n "$ac_tool_prefix"; then
4961   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_DLLTOOL+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   if test -n "$DLLTOOL"; then
4969   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974   IFS=$as_save_IFS
4975   test -z "$as_dir" && as_dir=.
4976     for ac_exec_ext in '' $ac_executable_extensions; do
4977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980     break 2
4981   fi
4982 done
4983   done
4984 IFS=$as_save_IFS
4985
4986 fi
4987 fi
4988 DLLTOOL=$ac_cv_prog_DLLTOOL
4989 if test -n "$DLLTOOL"; then
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4991 $as_echo "$DLLTOOL" >&6; }
4992 else
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4995 fi
4996
4997
4998 fi
4999 if test -z "$ac_cv_prog_DLLTOOL"; then
5000   ac_ct_DLLTOOL=$DLLTOOL
5001   # Extract the first word of "dlltool", so it can be a program name with args.
5002 set dummy dlltool; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   if test -n "$ac_ct_DLLTOOL"; then
5009   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5029 if test -n "$ac_ct_DLLTOOL"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5031 $as_echo "$ac_ct_DLLTOOL" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037   if test "x$ac_ct_DLLTOOL" = x; then
5038     DLLTOOL="false"
5039   else
5040     case $cross_compiling:$ac_tool_warned in
5041 yes:)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5045 esac
5046     DLLTOOL=$ac_ct_DLLTOOL
5047   fi
5048 else
5049   DLLTOOL="$ac_cv_prog_DLLTOOL"
5050 fi
5051
5052   if test -n "$ac_tool_prefix"; then
5053   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_OBJDUMP+:} false; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   if test -n "$OBJDUMP"; then
5061   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068     for ac_exec_ext in '' $ac_executable_extensions; do
5069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072     break 2
5073   fi
5074 done
5075   done
5076 IFS=$as_save_IFS
5077
5078 fi
5079 fi
5080 OBJDUMP=$ac_cv_prog_OBJDUMP
5081 if test -n "$OBJDUMP"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5083 $as_echo "$OBJDUMP" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089
5090 fi
5091 if test -z "$ac_cv_prog_OBJDUMP"; then
5092   ac_ct_OBJDUMP=$OBJDUMP
5093   # Extract the first word of "objdump", so it can be a program name with args.
5094 set dummy objdump; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -n "$ac_ct_OBJDUMP"; then
5101   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115   done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5121 if test -n "$ac_ct_OBJDUMP"; then
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5123 $as_echo "$ac_ct_OBJDUMP" >&6; }
5124 else
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129   if test "x$ac_ct_OBJDUMP" = x; then
5130     OBJDUMP="false"
5131   else
5132     case $cross_compiling:$ac_tool_warned in
5133 yes:)
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5137 esac
5138     OBJDUMP=$ac_ct_OBJDUMP
5139   fi
5140 else
5141   OBJDUMP="$ac_cv_prog_OBJDUMP"
5142 fi
5143
5144   ;;
5145 esac
5146
5147 test -z "$AS" && AS=as
5148
5149
5150
5151
5152
5153 test -z "$DLLTOOL" && DLLTOOL=dlltool
5154
5155
5156
5157
5158
5159 test -z "$OBJDUMP" && OBJDUMP=objdump
5160
5161
5162
5163
5164
5165
5166
5167 case `pwd` in
5168   *\ * | *\     *)
5169     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5170 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5171 esac
5172
5173
5174
5175 macro_version='2.4.2'
5176 macro_revision='1.3337'
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190 ltmain="$ac_aux_dir/ltmain.sh"
5191
5192 # Backslashify metacharacters that are still active within
5193 # double-quoted strings.
5194 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5195
5196 # Same as above, but do not quote variable references.
5197 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5198
5199 # Sed substitution to delay expansion of an escaped shell variable in a
5200 # double_quote_subst'ed string.
5201 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5202
5203 # Sed substitution to delay expansion of an escaped single quote.
5204 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5205
5206 # Sed substitution to avoid accidental globbing in evaled expressions
5207 no_glob_subst='s/\*/\\\*/g'
5208
5209 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5210 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5214 $as_echo_n "checking how to print strings... " >&6; }
5215 # Test print first, because it will be a builtin if present.
5216 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5217    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5218   ECHO='print -r --'
5219 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5220   ECHO='printf %s\n'
5221 else
5222   # Use this function as a fallback that always works.
5223   func_fallback_echo ()
5224   {
5225     eval 'cat <<_LTECHO_EOF
5226 $1
5227 _LTECHO_EOF'
5228   }
5229   ECHO='func_fallback_echo'
5230 fi
5231
5232 # func_echo_all arg...
5233 # Invoke $ECHO with all args, space-separated.
5234 func_echo_all ()
5235 {
5236     $ECHO ""
5237 }
5238
5239 case "$ECHO" in
5240   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5241 $as_echo "printf" >&6; } ;;
5242   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5243 $as_echo "print -r" >&6; } ;;
5244   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5245 $as_echo "cat" >&6; } ;;
5246 esac
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5262 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5263 if ${ac_cv_path_SED+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5267      for ac_i in 1 2 3 4 5 6 7; do
5268        ac_script="$ac_script$as_nl$ac_script"
5269      done
5270      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5271      { ac_script=; unset ac_script;}
5272      if test -z "$SED"; then
5273   ac_path_SED_found=false
5274   # Loop through the user's path and test for each of PROGNAME-LIST
5275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280     for ac_prog in sed gsed; do
5281     for ac_exec_ext in '' $ac_executable_extensions; do
5282       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5283       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5284 # Check for GNU ac_path_SED and select it if it is found.
5285   # Check for GNU $ac_path_SED
5286 case `"$ac_path_SED" --version 2>&1` in
5287 *GNU*)
5288   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5289 *)
5290   ac_count=0
5291   $as_echo_n 0123456789 >"conftest.in"
5292   while :
5293   do
5294     cat "conftest.in" "conftest.in" >"conftest.tmp"
5295     mv "conftest.tmp" "conftest.in"
5296     cp "conftest.in" "conftest.nl"
5297     $as_echo '' >> "conftest.nl"
5298     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300     as_fn_arith $ac_count + 1 && ac_count=$as_val
5301     if test $ac_count -gt ${ac_path_SED_max-0}; then
5302       # Best one so far, save it but keep looking for a better one
5303       ac_cv_path_SED="$ac_path_SED"
5304       ac_path_SED_max=$ac_count
5305     fi
5306     # 10*(2^10) chars as input seems more than enough
5307     test $ac_count -gt 10 && break
5308   done
5309   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310 esac
5311
5312       $ac_path_SED_found && break 3
5313     done
5314   done
5315   done
5316 IFS=$as_save_IFS
5317   if test -z "$ac_cv_path_SED"; then
5318     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5319   fi
5320 else
5321   ac_cv_path_SED=$SED
5322 fi
5323
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5326 $as_echo "$ac_cv_path_SED" >&6; }
5327  SED="$ac_cv_path_SED"
5328   rm -f conftest.sed
5329
5330 test -z "$SED" && SED=sed
5331 Xsed="$SED -e 1s/^X//"
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5344 $as_echo_n "checking for fgrep... " >&6; }
5345 if ${ac_cv_path_FGREP+:} false; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5349    then ac_cv_path_FGREP="$GREP -F"
5350    else
5351      if test -z "$FGREP"; then
5352   ac_path_FGREP_found=false
5353   # Loop through the user's path and test for each of PROGNAME-LIST
5354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359     for ac_prog in fgrep; do
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5362       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5363 # Check for GNU ac_path_FGREP and select it if it is found.
5364   # Check for GNU $ac_path_FGREP
5365 case `"$ac_path_FGREP" --version 2>&1` in
5366 *GNU*)
5367   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5368 *)
5369   ac_count=0
5370   $as_echo_n 0123456789 >"conftest.in"
5371   while :
5372   do
5373     cat "conftest.in" "conftest.in" >"conftest.tmp"
5374     mv "conftest.tmp" "conftest.in"
5375     cp "conftest.in" "conftest.nl"
5376     $as_echo 'FGREP' >> "conftest.nl"
5377     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5378     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5379     as_fn_arith $ac_count + 1 && ac_count=$as_val
5380     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5381       # Best one so far, save it but keep looking for a better one
5382       ac_cv_path_FGREP="$ac_path_FGREP"
5383       ac_path_FGREP_max=$ac_count
5384     fi
5385     # 10*(2^10) chars as input seems more than enough
5386     test $ac_count -gt 10 && break
5387   done
5388   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5389 esac
5390
5391       $ac_path_FGREP_found && break 3
5392     done
5393   done
5394   done
5395 IFS=$as_save_IFS
5396   if test -z "$ac_cv_path_FGREP"; then
5397     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5398   fi
5399 else
5400   ac_cv_path_FGREP=$FGREP
5401 fi
5402
5403    fi
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5406 $as_echo "$ac_cv_path_FGREP" >&6; }
5407  FGREP="$ac_cv_path_FGREP"
5408
5409
5410 test -z "$GREP" && GREP=grep
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 # Check whether --with-gnu-ld was given.
5431 if test "${with_gnu_ld+set}" = set; then :
5432   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5433 else
5434   with_gnu_ld=no
5435 fi
5436
5437 ac_prog=ld
5438 if test "$GCC" = yes; then
5439   # Check if gcc -print-prog-name=ld gives a path.
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5441 $as_echo_n "checking for ld used by $CC... " >&6; }
5442   case $host in
5443   *-*-mingw*)
5444     # gcc leaves a trailing carriage return which upsets mingw
5445     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5446   *)
5447     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5448   esac
5449   case $ac_prog in
5450     # Accept absolute paths.
5451     [\\/]* | ?:[\\/]*)
5452       re_direlt='/[^/][^/]*/\.\./'
5453       # Canonicalize the pathname of ld
5454       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5455       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5456         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5457       done
5458       test -z "$LD" && LD="$ac_prog"
5459       ;;
5460   "")
5461     # If it fails, then pretend we aren't using GCC.
5462     ac_prog=ld
5463     ;;
5464   *)
5465     # If it is relative, then search for the first ld in PATH.
5466     with_gnu_ld=unknown
5467     ;;
5468   esac
5469 elif test "$with_gnu_ld" = yes; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5471 $as_echo_n "checking for GNU ld... " >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5474 $as_echo_n "checking for non-GNU ld... " >&6; }
5475 fi
5476 if ${lt_cv_path_LD+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   if test -z "$LD"; then
5480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5481   for ac_dir in $PATH; do
5482     IFS="$lt_save_ifs"
5483     test -z "$ac_dir" && ac_dir=.
5484     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5485       lt_cv_path_LD="$ac_dir/$ac_prog"
5486       # Check to see if the program is GNU ld.  I'd rather use --version,
5487       # but apparently some variants of GNU ld only accept -v.
5488       # Break only if it was the GNU/non-GNU ld that we prefer.
5489       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5490       *GNU* | *'with BFD'*)
5491         test "$with_gnu_ld" != no && break
5492         ;;
5493       *)
5494         test "$with_gnu_ld" != yes && break
5495         ;;
5496       esac
5497     fi
5498   done
5499   IFS="$lt_save_ifs"
5500 else
5501   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5502 fi
5503 fi
5504
5505 LD="$lt_cv_path_LD"
5506 if test -n "$LD"; then
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5508 $as_echo "$LD" >&6; }
5509 else
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5512 fi
5513 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5515 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5516 if ${lt_cv_prog_gnu_ld+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5520 case `$LD -v 2>&1 </dev/null` in
5521 *GNU* | *'with BFD'*)
5522   lt_cv_prog_gnu_ld=yes
5523   ;;
5524 *)
5525   lt_cv_prog_gnu_ld=no
5526   ;;
5527 esac
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5530 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5531 with_gnu_ld=$lt_cv_prog_gnu_ld
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5542 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5543 if ${lt_cv_path_NM+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   if test -n "$NM"; then
5547   # Let the user override the test.
5548   lt_cv_path_NM="$NM"
5549 else
5550   lt_nm_to_check="${ac_tool_prefix}nm"
5551   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5552     lt_nm_to_check="$lt_nm_to_check nm"
5553   fi
5554   for lt_tmp_nm in $lt_nm_to_check; do
5555     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5556     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5557       IFS="$lt_save_ifs"
5558       test -z "$ac_dir" && ac_dir=.
5559       tmp_nm="$ac_dir/$lt_tmp_nm"
5560       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5561         # Check to see if the nm accepts a BSD-compat flag.
5562         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5563         #   nm: unknown option "B" ignored
5564         # Tru64's nm complains that /dev/null is an invalid object file
5565         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5566         */dev/null* | *'Invalid file or object type'*)
5567           lt_cv_path_NM="$tmp_nm -B"
5568           break
5569           ;;
5570         *)
5571           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5572           */dev/null*)
5573             lt_cv_path_NM="$tmp_nm -p"
5574             break
5575             ;;
5576           *)
5577             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5578             continue # so that we can try to find one that supports BSD flags
5579             ;;
5580           esac
5581           ;;
5582         esac
5583       fi
5584     done
5585     IFS="$lt_save_ifs"
5586   done
5587   : ${lt_cv_path_NM=no}
5588 fi
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5591 $as_echo "$lt_cv_path_NM" >&6; }
5592 if test "$lt_cv_path_NM" != "no"; then
5593   NM="$lt_cv_path_NM"
5594 else
5595   # Didn't find any BSD compatible name lister, look for dumpbin.
5596   if test -n "$DUMPBIN"; then :
5597     # Let the user override the test.
5598   else
5599     if test -n "$ac_tool_prefix"; then
5600   for ac_prog in dumpbin "link -dump"
5601   do
5602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_DUMPBIN+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   if test -n "$DUMPBIN"; then
5610   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617     for ac_exec_ext in '' $ac_executable_extensions; do
5618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624   done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 DUMPBIN=$ac_cv_prog_DUMPBIN
5630 if test -n "$DUMPBIN"; then
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5632 $as_echo "$DUMPBIN" >&6; }
5633 else
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5636 fi
5637
5638
5639     test -n "$DUMPBIN" && break
5640   done
5641 fi
5642 if test -z "$DUMPBIN"; then
5643   ac_ct_DUMPBIN=$DUMPBIN
5644   for ac_prog in dumpbin "link -dump"
5645 do
5646   # Extract the first word of "$ac_prog", so it can be a program name with args.
5647 set dummy $ac_prog; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   if test -n "$ac_ct_DUMPBIN"; then
5654   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661     for ac_exec_ext in '' $ac_executable_extensions; do
5662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668   done
5669 IFS=$as_save_IFS
5670
5671 fi
5672 fi
5673 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5674 if test -n "$ac_ct_DUMPBIN"; then
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5676 $as_echo "$ac_ct_DUMPBIN" >&6; }
5677 else
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682
5683   test -n "$ac_ct_DUMPBIN" && break
5684 done
5685
5686   if test "x$ac_ct_DUMPBIN" = x; then
5687     DUMPBIN=":"
5688   else
5689     case $cross_compiling:$ac_tool_warned in
5690 yes:)
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693 ac_tool_warned=yes ;;
5694 esac
5695     DUMPBIN=$ac_ct_DUMPBIN
5696   fi
5697 fi
5698
5699     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5700     *COFF*)
5701       DUMPBIN="$DUMPBIN -symbols"
5702       ;;
5703     *)
5704       DUMPBIN=:
5705       ;;
5706     esac
5707   fi
5708
5709   if test "$DUMPBIN" != ":"; then
5710     NM="$DUMPBIN"
5711   fi
5712 fi
5713 test -z "$NM" && NM=nm
5714
5715
5716
5717
5718
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5721 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5722 if ${lt_cv_nm_interface+:} false; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   lt_cv_nm_interface="BSD nm"
5726   echo "int some_variable = 0;" > conftest.$ac_ext
5727   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5728   (eval "$ac_compile" 2>conftest.err)
5729   cat conftest.err >&5
5730   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5731   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5732   cat conftest.err >&5
5733   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5734   cat conftest.out >&5
5735   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5736     lt_cv_nm_interface="MS dumpbin"
5737   fi
5738   rm -f conftest*
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5741 $as_echo "$lt_cv_nm_interface" >&6; }
5742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5744 $as_echo_n "checking whether ln -s works... " >&6; }
5745 LN_S=$as_ln_s
5746 if test "$LN_S" = "ln -s"; then
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5748 $as_echo "yes" >&6; }
5749 else
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5751 $as_echo "no, using $LN_S" >&6; }
5752 fi
5753
5754 # find the maximum length of command line arguments
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5756 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5757 if ${lt_cv_sys_max_cmd_len+:} false; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760     i=0
5761   teststring="ABCD"
5762
5763   case $build_os in
5764   msdosdjgpp*)
5765     # On DJGPP, this test can blow up pretty badly due to problems in libc
5766     # (any single argument exceeding 2000 bytes causes a buffer overrun
5767     # during glob expansion).  Even if it were fixed, the result of this
5768     # check would be larger than it should be.
5769     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5770     ;;
5771
5772   gnu*)
5773     # Under GNU Hurd, this test is not required because there is
5774     # no limit to the length of command line arguments.
5775     # Libtool will interpret -1 as no limit whatsoever
5776     lt_cv_sys_max_cmd_len=-1;
5777     ;;
5778
5779   cygwin* | mingw* | cegcc*)
5780     # On Win9x/ME, this test blows up -- it succeeds, but takes
5781     # about 5 minutes as the teststring grows exponentially.
5782     # Worse, since 9x/ME are not pre-emptively multitasking,
5783     # you end up with a "frozen" computer, even though with patience
5784     # the test eventually succeeds (with a max line length of 256k).
5785     # Instead, let's just punt: use the minimum linelength reported by
5786     # all of the supported platforms: 8192 (on NT/2K/XP).
5787     lt_cv_sys_max_cmd_len=8192;
5788     ;;
5789
5790   mint*)
5791     # On MiNT this can take a long time and run out of memory.
5792     lt_cv_sys_max_cmd_len=8192;
5793     ;;
5794
5795   amigaos*)
5796     # On AmigaOS with pdksh, this test takes hours, literally.
5797     # So we just punt and use a minimum line length of 8192.
5798     lt_cv_sys_max_cmd_len=8192;
5799     ;;
5800
5801   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5802     # This has been around since 386BSD, at least.  Likely further.
5803     if test -x /sbin/sysctl; then
5804       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5805     elif test -x /usr/sbin/sysctl; then
5806       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5807     else
5808       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5809     fi
5810     # And add a safety zone
5811     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5812     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5813     ;;
5814
5815   interix*)
5816     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5817     lt_cv_sys_max_cmd_len=196608
5818     ;;
5819
5820   os2*)
5821     # The test takes a long time on OS/2.
5822     lt_cv_sys_max_cmd_len=8192
5823     ;;
5824
5825   osf*)
5826     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5827     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5828     # nice to cause kernel panics so lets avoid the loop below.
5829     # First set a reasonable default.
5830     lt_cv_sys_max_cmd_len=16384
5831     #
5832     if test -x /sbin/sysconfig; then
5833       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5834         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5835       esac
5836     fi
5837     ;;
5838   sco3.2v5*)
5839     lt_cv_sys_max_cmd_len=102400
5840     ;;
5841   sysv5* | sco5v6* | sysv4.2uw2*)
5842     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5843     if test -n "$kargmax"; then
5844       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5845     else
5846       lt_cv_sys_max_cmd_len=32768
5847     fi
5848     ;;
5849   *)
5850     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5851     if test -n "$lt_cv_sys_max_cmd_len"; then
5852       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5853       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5854     else
5855       # Make teststring a little bigger before we do anything with it.
5856       # a 1K string should be a reasonable start.
5857       for i in 1 2 3 4 5 6 7 8 ; do
5858         teststring=$teststring$teststring
5859       done
5860       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5861       # If test is not a shell built-in, we'll probably end up computing a
5862       # maximum length that is only half of the actual maximum length, but
5863       # we can't tell.
5864       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5865                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5866               test $i != 17 # 1/2 MB should be enough
5867       do
5868         i=`expr $i + 1`
5869         teststring=$teststring$teststring
5870       done
5871       # Only check the string length outside the loop.
5872       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5873       teststring=
5874       # Add a significant safety factor because C++ compilers can tack on
5875       # massive amounts of additional arguments before passing them to the
5876       # linker.  It appears as though 1/2 is a usable value.
5877       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5878     fi
5879     ;;
5880   esac
5881
5882 fi
5883
5884 if test -n $lt_cv_sys_max_cmd_len ; then
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5886 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5887 else
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5889 $as_echo "none" >&6; }
5890 fi
5891 max_cmd_len=$lt_cv_sys_max_cmd_len
5892
5893
5894
5895
5896
5897
5898 : ${CP="cp -f"}
5899 : ${MV="mv -f"}
5900 : ${RM="rm -f"}
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5903 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5904 # Try some XSI features
5905 xsi_shell=no
5906 ( _lt_dummy="a/b/c"
5907   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5908       = c,a/b,b/c, \
5909     && eval 'test $(( 1 + 1 )) -eq 2 \
5910     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5911   && xsi_shell=yes
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5913 $as_echo "$xsi_shell" >&6; }
5914
5915
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5917 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5918 lt_shell_append=no
5919 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5920     >/dev/null 2>&1 \
5921   && lt_shell_append=yes
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5923 $as_echo "$lt_shell_append" >&6; }
5924
5925
5926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5927   lt_unset=unset
5928 else
5929   lt_unset=false
5930 fi
5931
5932
5933
5934
5935
5936 # test EBCDIC or ASCII
5937 case `echo X|tr X '\101'` in
5938  A) # ASCII based system
5939     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5940   lt_SP2NL='tr \040 \012'
5941   lt_NL2SP='tr \015\012 \040\040'
5942   ;;
5943  *) # EBCDIC based system
5944   lt_SP2NL='tr \100 \n'
5945   lt_NL2SP='tr \r\n \100\100'
5946   ;;
5947 esac
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5958 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5959 if ${lt_cv_to_host_file_cmd+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   case $host in
5963   *-*-mingw* )
5964     case $build in
5965       *-*-mingw* ) # actually msys
5966         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5967         ;;
5968       *-*-cygwin* )
5969         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5970         ;;
5971       * ) # otherwise, assume *nix
5972         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5973         ;;
5974     esac
5975     ;;
5976   *-*-cygwin* )
5977     case $build in
5978       *-*-mingw* ) # actually msys
5979         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5980         ;;
5981       *-*-cygwin* )
5982         lt_cv_to_host_file_cmd=func_convert_file_noop
5983         ;;
5984       * ) # otherwise, assume *nix
5985         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5986         ;;
5987     esac
5988     ;;
5989   * ) # unhandled hosts (and "normal" native builds)
5990     lt_cv_to_host_file_cmd=func_convert_file_noop
5991     ;;
5992 esac
5993
5994 fi
5995
5996 to_host_file_cmd=$lt_cv_to_host_file_cmd
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5998 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5999
6000
6001
6002
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6005 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6006 if ${lt_cv_to_tool_file_cmd+:} false; then :
6007   $as_echo_n "(cached) " >&6
6008 else
6009   #assume ordinary cross tools, or native build.
6010 lt_cv_to_tool_file_cmd=func_convert_file_noop
6011 case $host in
6012   *-*-mingw* )
6013     case $build in
6014       *-*-mingw* ) # actually msys
6015         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6016         ;;
6017     esac
6018     ;;
6019 esac
6020
6021 fi
6022
6023 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6025 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6026
6027
6028
6029
6030
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6032 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6033 if ${lt_cv_ld_reload_flag+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   lt_cv_ld_reload_flag='-r'
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6039 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6040 reload_flag=$lt_cv_ld_reload_flag
6041 case $reload_flag in
6042 "" | " "*) ;;
6043 *) reload_flag=" $reload_flag" ;;
6044 esac
6045 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6046 case $host_os in
6047   cygwin* | mingw* | pw32* | cegcc*)
6048     if test "$GCC" != yes; then
6049       reload_cmds=false
6050     fi
6051     ;;
6052   darwin*)
6053     if test "$GCC" = yes; then
6054       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6055     else
6056       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6057     fi
6058     ;;
6059 esac
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 if test -n "$ac_tool_prefix"; then
6070   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6071 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_prog_OBJDUMP+:} false; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077   if test -n "$OBJDUMP"; then
6078   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083   IFS=$as_save_IFS
6084   test -z "$as_dir" && as_dir=.
6085     for ac_exec_ext in '' $ac_executable_extensions; do
6086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089     break 2
6090   fi
6091 done
6092   done
6093 IFS=$as_save_IFS
6094
6095 fi
6096 fi
6097 OBJDUMP=$ac_cv_prog_OBJDUMP
6098 if test -n "$OBJDUMP"; then
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6100 $as_echo "$OBJDUMP" >&6; }
6101 else
6102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6104 fi
6105
6106
6107 fi
6108 if test -z "$ac_cv_prog_OBJDUMP"; then
6109   ac_ct_OBJDUMP=$OBJDUMP
6110   # Extract the first word of "objdump", so it can be a program name with args.
6111 set dummy objdump; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6115   $as_echo_n "(cached) " >&6
6116 else
6117   if test -n "$ac_ct_OBJDUMP"; then
6118   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123   IFS=$as_save_IFS
6124   test -z "$as_dir" && as_dir=.
6125     for ac_exec_ext in '' $ac_executable_extensions; do
6126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129     break 2
6130   fi
6131 done
6132   done
6133 IFS=$as_save_IFS
6134
6135 fi
6136 fi
6137 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6138 if test -n "$ac_ct_OBJDUMP"; then
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6140 $as_echo "$ac_ct_OBJDUMP" >&6; }
6141 else
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6144 fi
6145
6146   if test "x$ac_ct_OBJDUMP" = x; then
6147     OBJDUMP="false"
6148   else
6149     case $cross_compiling:$ac_tool_warned in
6150 yes:)
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153 ac_tool_warned=yes ;;
6154 esac
6155     OBJDUMP=$ac_ct_OBJDUMP
6156   fi
6157 else
6158   OBJDUMP="$ac_cv_prog_OBJDUMP"
6159 fi
6160
6161 test -z "$OBJDUMP" && OBJDUMP=objdump
6162
6163
6164
6165
6166
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6169 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6170 if ${lt_cv_deplibs_check_method+:} false; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   lt_cv_file_magic_cmd='$MAGIC_CMD'
6174 lt_cv_file_magic_test_file=
6175 lt_cv_deplibs_check_method='unknown'
6176 # Need to set the preceding variable on all platforms that support
6177 # interlibrary dependencies.
6178 # 'none' -- dependencies not supported.
6179 # `unknown' -- same as none, but documents that we really don't know.
6180 # 'pass_all' -- all dependencies passed with no checks.
6181 # 'test_compile' -- check by making test program.
6182 # 'file_magic [[regex]]' -- check by looking for files in library path
6183 # which responds to the $file_magic_cmd with a given extended regex.
6184 # If you have `file' or equivalent on your system and you're not sure
6185 # whether `pass_all' will *always* work, you probably want this one.
6186
6187 case $host_os in
6188 aix[4-9]*)
6189   lt_cv_deplibs_check_method=pass_all
6190   ;;
6191
6192 beos*)
6193   lt_cv_deplibs_check_method=pass_all
6194   ;;
6195
6196 bsdi[45]*)
6197   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6198   lt_cv_file_magic_cmd='/usr/bin/file -L'
6199   lt_cv_file_magic_test_file=/shlib/libc.so
6200   ;;
6201
6202 cygwin*)
6203   # func_win32_libid is a shell function defined in ltmain.sh
6204   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6205   lt_cv_file_magic_cmd='func_win32_libid'
6206   ;;
6207
6208 mingw* | pw32*)
6209   # Base MSYS/MinGW do not provide the 'file' command needed by
6210   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6211   # unless we find 'file', for example because we are cross-compiling.
6212   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6213   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6214     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6215     lt_cv_file_magic_cmd='func_win32_libid'
6216   else
6217     # Keep this pattern in sync with the one in func_win32_libid.
6218     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6219     lt_cv_file_magic_cmd='$OBJDUMP -f'
6220   fi
6221   ;;
6222
6223 cegcc*)
6224   # use the weaker test based on 'objdump'. See mingw*.
6225   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6226   lt_cv_file_magic_cmd='$OBJDUMP -f'
6227   ;;
6228
6229 darwin* | rhapsody*)
6230   lt_cv_deplibs_check_method=pass_all
6231   ;;
6232
6233 freebsd* | dragonfly*)
6234   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6235     case $host_cpu in
6236     i*86 )
6237       # Not sure whether the presence of OpenBSD here was a mistake.
6238       # Let's accept both of them until this is cleared up.
6239       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6240       lt_cv_file_magic_cmd=/usr/bin/file
6241       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6242       ;;
6243     esac
6244   else
6245     lt_cv_deplibs_check_method=pass_all
6246   fi
6247   ;;
6248
6249 gnu*)
6250   lt_cv_deplibs_check_method=pass_all
6251   ;;
6252
6253 haiku*)
6254   lt_cv_deplibs_check_method=pass_all
6255   ;;
6256
6257 hpux10.20* | hpux11*)
6258   lt_cv_file_magic_cmd=/usr/bin/file
6259   case $host_cpu in
6260   ia64*)
6261     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6262     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6263     ;;
6264   hppa*64*)
6265     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]'
6266     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6267     ;;
6268   *)
6269     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6270     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6271     ;;
6272   esac
6273   ;;
6274
6275 interix[3-9]*)
6276   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6277   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6278   ;;
6279
6280 irix5* | irix6* | nonstopux*)
6281   case $LD in
6282   *-32|*"-32 ") libmagic=32-bit;;
6283   *-n32|*"-n32 ") libmagic=N32;;
6284   *-64|*"-64 ") libmagic=64-bit;;
6285   *) libmagic=never-match;;
6286   esac
6287   lt_cv_deplibs_check_method=pass_all
6288   ;;
6289
6290 # This must be glibc/ELF.
6291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6292   lt_cv_deplibs_check_method=pass_all
6293   ;;
6294
6295 netbsd* | netbsdelf*-gnu)
6296   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6297     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6298   else
6299     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6300   fi
6301   ;;
6302
6303 newos6*)
6304   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6305   lt_cv_file_magic_cmd=/usr/bin/file
6306   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6307   ;;
6308
6309 *nto* | *qnx*)
6310   lt_cv_deplibs_check_method=pass_all
6311   ;;
6312
6313 openbsd*)
6314   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6315     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6316   else
6317     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6318   fi
6319   ;;
6320
6321 osf3* | osf4* | osf5*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 rdos*)
6326   lt_cv_deplibs_check_method=pass_all
6327   ;;
6328
6329 solaris*)
6330   lt_cv_deplibs_check_method=pass_all
6331   ;;
6332
6333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6334   lt_cv_deplibs_check_method=pass_all
6335   ;;
6336
6337 sysv4 | sysv4.3*)
6338   case $host_vendor in
6339   motorola)
6340     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]'
6341     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6342     ;;
6343   ncr)
6344     lt_cv_deplibs_check_method=pass_all
6345     ;;
6346   sequent)
6347     lt_cv_file_magic_cmd='/bin/file'
6348     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6349     ;;
6350   sni)
6351     lt_cv_file_magic_cmd='/bin/file'
6352     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6353     lt_cv_file_magic_test_file=/lib/libc.so
6354     ;;
6355   siemens)
6356     lt_cv_deplibs_check_method=pass_all
6357     ;;
6358   pc)
6359     lt_cv_deplibs_check_method=pass_all
6360     ;;
6361   esac
6362   ;;
6363
6364 tpf*)
6365   lt_cv_deplibs_check_method=pass_all
6366   ;;
6367 esac
6368
6369 fi
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6371 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6372
6373 file_magic_glob=
6374 want_nocaseglob=no
6375 if test "$build" = "$host"; then
6376   case $host_os in
6377   mingw* | pw32*)
6378     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6379       want_nocaseglob=yes
6380     else
6381       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6382     fi
6383     ;;
6384   esac
6385 fi
6386
6387 file_magic_cmd=$lt_cv_file_magic_cmd
6388 deplibs_check_method=$lt_cv_deplibs_check_method
6389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412 if test -n "$ac_tool_prefix"; then
6413   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_DLLTOOL+:} false; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$DLLTOOL"; then
6421   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 DLLTOOL=$ac_cv_prog_DLLTOOL
6441 if test -n "$DLLTOOL"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6443 $as_echo "$DLLTOOL" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450 fi
6451 if test -z "$ac_cv_prog_DLLTOOL"; then
6452   ac_ct_DLLTOOL=$DLLTOOL
6453   # Extract the first word of "dlltool", so it can be a program name with args.
6454 set dummy dlltool; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$ac_ct_DLLTOOL"; then
6461   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475   done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6481 if test -n "$ac_ct_DLLTOOL"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6483 $as_echo "$ac_ct_DLLTOOL" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489   if test "x$ac_ct_DLLTOOL" = x; then
6490     DLLTOOL="false"
6491   else
6492     case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498     DLLTOOL=$ac_ct_DLLTOOL
6499   fi
6500 else
6501   DLLTOOL="$ac_cv_prog_DLLTOOL"
6502 fi
6503
6504 test -z "$DLLTOOL" && DLLTOOL=dlltool
6505
6506
6507
6508
6509
6510
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6513 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6514 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   lt_cv_sharedlib_from_linklib_cmd='unknown'
6518
6519 case $host_os in
6520 cygwin* | mingw* | pw32* | cegcc*)
6521   # two different shell functions defined in ltmain.sh
6522   # decide which to use based on capabilities of $DLLTOOL
6523   case `$DLLTOOL --help 2>&1` in
6524   *--identify-strict*)
6525     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6526     ;;
6527   *)
6528     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6529     ;;
6530   esac
6531   ;;
6532 *)
6533   # fallback: assume linklib IS sharedlib
6534   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6535   ;;
6536 esac
6537
6538 fi
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6540 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6541 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6542 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6543
6544
6545
6546
6547
6548
6549
6550 if test -n "$ac_tool_prefix"; then
6551   for ac_prog in ar
6552   do
6553     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_AR+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   if test -n "$AR"; then
6561   ac_cv_prog_AR="$AR" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568     for ac_exec_ext in '' $ac_executable_extensions; do
6569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575   done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 AR=$ac_cv_prog_AR
6581 if test -n "$AR"; then
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6583 $as_echo "$AR" >&6; }
6584 else
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589
6590     test -n "$AR" && break
6591   done
6592 fi
6593 if test -z "$AR"; then
6594   ac_ct_AR=$AR
6595   for ac_prog in ar
6596 do
6597   # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6602   $as_echo_n "(cached) " >&6
6603 else
6604   if test -n "$ac_ct_AR"; then
6605   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612     for ac_exec_ext in '' $ac_executable_extensions; do
6613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614     ac_cv_prog_ac_ct_AR="$ac_prog"
6615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619   done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6625 if test -n "$ac_ct_AR"; then
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6627 $as_echo "$ac_ct_AR" >&6; }
6628 else
6629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633
6634   test -n "$ac_ct_AR" && break
6635 done
6636
6637   if test "x$ac_ct_AR" = x; then
6638     AR="false"
6639   else
6640     case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646     AR=$ac_ct_AR
6647   fi
6648 fi
6649
6650 : ${AR=ar}
6651 : ${AR_FLAGS=cru}
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6664 $as_echo_n "checking for archiver @FILE support... " >&6; }
6665 if ${lt_cv_ar_at_file+:} false; then :
6666   $as_echo_n "(cached) " >&6
6667 else
6668   lt_cv_ar_at_file=no
6669    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h.  */
6671
6672 int
6673 main ()
6674 {
6675
6676   ;
6677   return 0;
6678 }
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681   echo conftest.$ac_objext > conftest.lst
6682       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6683       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6684   (eval $lt_ar_try) 2>&5
6685   ac_status=$?
6686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687   test $ac_status = 0; }
6688       if test "$ac_status" -eq 0; then
6689         # Ensure the archiver fails upon bogus file names.
6690         rm -f conftest.$ac_objext libconftest.a
6691         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6692   (eval $lt_ar_try) 2>&5
6693   ac_status=$?
6694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695   test $ac_status = 0; }
6696         if test "$ac_status" -ne 0; then
6697           lt_cv_ar_at_file=@
6698         fi
6699       fi
6700       rm -f conftest.* libconftest.a
6701
6702 fi
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6707 $as_echo "$lt_cv_ar_at_file" >&6; }
6708
6709 if test "x$lt_cv_ar_at_file" = xno; then
6710   archiver_list_spec=
6711 else
6712   archiver_list_spec=$lt_cv_ar_at_file
6713 fi
6714
6715
6716
6717
6718
6719
6720
6721 if test -n "$ac_tool_prefix"; then
6722   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}strip; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_STRIP+:} false; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   if test -n "$STRIP"; then
6730   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735   IFS=$as_save_IFS
6736   test -z "$as_dir" && as_dir=.
6737     for ac_exec_ext in '' $ac_executable_extensions; do
6738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741     break 2
6742   fi
6743 done
6744   done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 STRIP=$ac_cv_prog_STRIP
6750 if test -n "$STRIP"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6752 $as_echo "$STRIP" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758
6759 fi
6760 if test -z "$ac_cv_prog_STRIP"; then
6761   ac_ct_STRIP=$STRIP
6762   # Extract the first word of "strip", so it can be a program name with args.
6763 set dummy strip; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   if test -n "$ac_ct_STRIP"; then
6770   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777     for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_prog_ac_ct_STRIP="strip"
6780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784   done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6790 if test -n "$ac_ct_STRIP"; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6792 $as_echo "$ac_ct_STRIP" >&6; }
6793 else
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798   if test "x$ac_ct_STRIP" = x; then
6799     STRIP=":"
6800   else
6801     case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807     STRIP=$ac_ct_STRIP
6808   fi
6809 else
6810   STRIP="$ac_cv_prog_STRIP"
6811 fi
6812
6813 test -z "$STRIP" && STRIP=:
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_RANLIB+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$RANLIB"; then
6829   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 RANLIB=$ac_cv_prog_RANLIB
6849 if test -n "$RANLIB"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6851 $as_echo "$RANLIB" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_RANLIB"; then
6860   ac_ct_RANLIB=$RANLIB
6861   # Extract the first word of "ranlib", so it can be a program name with args.
6862 set dummy ranlib; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   if test -n "$ac_ct_RANLIB"; then
6869   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876     for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_prog_ac_ct_RANLIB="ranlib"
6879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883   done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6889 if test -n "$ac_ct_RANLIB"; then
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6891 $as_echo "$ac_ct_RANLIB" >&6; }
6892 else
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897   if test "x$ac_ct_RANLIB" = x; then
6898     RANLIB=":"
6899   else
6900     case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906     RANLIB=$ac_ct_RANLIB
6907   fi
6908 else
6909   RANLIB="$ac_cv_prog_RANLIB"
6910 fi
6911
6912 test -z "$RANLIB" && RANLIB=:
6913
6914
6915
6916
6917
6918
6919 # Determine commands to create old-style static archives.
6920 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6921 old_postinstall_cmds='chmod 644 $oldlib'
6922 old_postuninstall_cmds=
6923
6924 if test -n "$RANLIB"; then
6925   case $host_os in
6926   openbsd*)
6927     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6928     ;;
6929   *)
6930     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6931     ;;
6932   esac
6933   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6934 fi
6935
6936 case $host_os in
6937   darwin*)
6938     lock_old_archive_extraction=yes ;;
6939   *)
6940     lock_old_archive_extraction=no ;;
6941 esac
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981 # If no C compiler was specified, use CC.
6982 LTCC=${LTCC-"$CC"}
6983
6984 # If no C compiler flags were specified, use CFLAGS.
6985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6986
6987 # Allow CC to be a program name with arguments.
6988 compiler=$CC
6989
6990
6991 # Check for command to grab the raw symbol name followed by C symbol from nm.
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6993 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6994 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997
6998 # These are sane defaults that work on at least a few old systems.
6999 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7000
7001 # Character class describing NM global symbol codes.
7002 symcode='[BCDEGRST]'
7003
7004 # Regexp to match symbols that can be accessed directly from C.
7005 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7006
7007 # Define system-specific variables.
7008 case $host_os in
7009 aix*)
7010   symcode='[BCDT]'
7011   ;;
7012 cygwin* | mingw* | pw32* | cegcc*)
7013   symcode='[ABCDGISTW]'
7014   ;;
7015 hpux*)
7016   if test "$host_cpu" = ia64; then
7017     symcode='[ABCDEGRST]'
7018   fi
7019   ;;
7020 irix* | nonstopux*)
7021   symcode='[BCDEGRST]'
7022   ;;
7023 osf*)
7024   symcode='[BCDEGQRST]'
7025   ;;
7026 solaris*)
7027   symcode='[BDRT]'
7028   ;;
7029 sco3.2v5*)
7030   symcode='[DT]'
7031   ;;
7032 sysv4.2uw2*)
7033   symcode='[DT]'
7034   ;;
7035 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7036   symcode='[ABDT]'
7037   ;;
7038 sysv4)
7039   symcode='[DFNSTU]'
7040   ;;
7041 esac
7042
7043 # If we're using GNU nm, then use its standard symbol codes.
7044 case `$NM -V 2>&1` in
7045 *GNU* | *'with BFD'*)
7046   symcode='[ABCDGIRSTW]' ;;
7047 esac
7048
7049 # Transform an extracted symbol line into a proper C declaration.
7050 # Some systems (esp. on ia64) link data and code symbols differently,
7051 # so use this general approach.
7052 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7053
7054 # Transform an extracted symbol line into symbol name and symbol address
7055 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7056 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'"
7057
7058 # Handle CRLF in mingw tool chain
7059 opt_cr=
7060 case $build_os in
7061 mingw*)
7062   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7063   ;;
7064 esac
7065
7066 # Try without a prefix underscore, then with it.
7067 for ac_symprfx in "" "_"; do
7068
7069   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7070   symxfrm="\\1 $ac_symprfx\\2 \\2"
7071
7072   # Write the raw and C identifiers.
7073   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7074     # Fake it for dumpbin and say T for any non-static function
7075     # and D for any global variable.
7076     # Also find C++ and __fastcall symbols from MSVC++,
7077     # which start with @ or ?.
7078     lt_cv_sys_global_symbol_pipe="$AWK '"\
7079 "     {last_section=section; section=\$ 3};"\
7080 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7081 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7082 "     \$ 0!~/External *\|/{next};"\
7083 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7084 "     {if(hide[section]) next};"\
7085 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7086 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7087 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7088 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7089 "     ' prfx=^$ac_symprfx"
7090   else
7091     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7092   fi
7093   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7094
7095   # Check to see that the pipe works correctly.
7096   pipe_works=no
7097
7098   rm -f conftest*
7099   cat > conftest.$ac_ext <<_LT_EOF
7100 #ifdef __cplusplus
7101 extern "C" {
7102 #endif
7103 char nm_test_var;
7104 void nm_test_func(void);
7105 void nm_test_func(void){}
7106 #ifdef __cplusplus
7107 }
7108 #endif
7109 int main(){nm_test_var='a';nm_test_func();return(0);}
7110 _LT_EOF
7111
7112   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7113   (eval $ac_compile) 2>&5
7114   ac_status=$?
7115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116   test $ac_status = 0; }; then
7117     # Now try to grab the symbols.
7118     nlist=conftest.nm
7119     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7120   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7121   ac_status=$?
7122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123   test $ac_status = 0; } && test -s "$nlist"; then
7124       # Try sorting and uniquifying the output.
7125       if sort "$nlist" | uniq > "$nlist"T; then
7126         mv -f "$nlist"T "$nlist"
7127       else
7128         rm -f "$nlist"T
7129       fi
7130
7131       # Make sure that we snagged all the symbols we need.
7132       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7133         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7134           cat <<_LT_EOF > conftest.$ac_ext
7135 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7136 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7137 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7138    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7139 # define LT_DLSYM_CONST
7140 #elif defined(__osf__)
7141 /* This system does not cope well with relocations in const data.  */
7142 # define LT_DLSYM_CONST
7143 #else
7144 # define LT_DLSYM_CONST const
7145 #endif
7146
7147 #ifdef __cplusplus
7148 extern "C" {
7149 #endif
7150
7151 _LT_EOF
7152           # Now generate the symbol file.
7153           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7154
7155           cat <<_LT_EOF >> conftest.$ac_ext
7156
7157 /* The mapping between symbol names and symbols.  */
7158 LT_DLSYM_CONST struct {
7159   const char *name;
7160   void       *address;
7161 }
7162 lt__PROGRAM__LTX_preloaded_symbols[] =
7163 {
7164   { "@PROGRAM@", (void *) 0 },
7165 _LT_EOF
7166           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7167           cat <<\_LT_EOF >> conftest.$ac_ext
7168   {0, (void *) 0}
7169 };
7170
7171 /* This works around a problem in FreeBSD linker */
7172 #ifdef FREEBSD_WORKAROUND
7173 static const void *lt_preloaded_setup() {
7174   return lt__PROGRAM__LTX_preloaded_symbols;
7175 }
7176 #endif
7177
7178 #ifdef __cplusplus
7179 }
7180 #endif
7181 _LT_EOF
7182           # Now try linking the two files.
7183           mv conftest.$ac_objext conftstm.$ac_objext
7184           lt_globsym_save_LIBS=$LIBS
7185           lt_globsym_save_CFLAGS=$CFLAGS
7186           LIBS="conftstm.$ac_objext"
7187           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7188           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7189   (eval $ac_link) 2>&5
7190   ac_status=$?
7191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7193             pipe_works=yes
7194           fi
7195           LIBS=$lt_globsym_save_LIBS
7196           CFLAGS=$lt_globsym_save_CFLAGS
7197         else
7198           echo "cannot find nm_test_func in $nlist" >&5
7199         fi
7200       else
7201         echo "cannot find nm_test_var in $nlist" >&5
7202       fi
7203     else
7204       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7205     fi
7206   else
7207     echo "$progname: failed program was:" >&5
7208     cat conftest.$ac_ext >&5
7209   fi
7210   rm -rf conftest* conftst*
7211
7212   # Do not use the global_symbol_pipe unless it works.
7213   if test "$pipe_works" = yes; then
7214     break
7215   else
7216     lt_cv_sys_global_symbol_pipe=
7217   fi
7218 done
7219
7220 fi
7221
7222 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7223   lt_cv_sys_global_symbol_to_cdecl=
7224 fi
7225 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7227 $as_echo "failed" >&6; }
7228 else
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7230 $as_echo "ok" >&6; }
7231 fi
7232
7233 # Response file support.
7234 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7235   nm_file_list_spec='@'
7236 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7237   nm_file_list_spec='@'
7238 fi
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7267 $as_echo_n "checking for sysroot... " >&6; }
7268
7269 # Check whether --with-sysroot was given.
7270 if test "${with_sysroot+set}" = set; then :
7271   withval=$with_sysroot;
7272 else
7273   with_sysroot=no
7274 fi
7275
7276
7277 lt_sysroot=
7278 case ${with_sysroot} in #(
7279  yes)
7280    if test "$GCC" = yes; then
7281      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7282    fi
7283    ;; #(
7284  /*)
7285    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7286    ;; #(
7287  no|'')
7288    ;; #(
7289  *)
7290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7291 $as_echo "${with_sysroot}" >&6; }
7292    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7293    ;;
7294 esac
7295
7296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7297 $as_echo "${lt_sysroot:-no}" >&6; }
7298
7299
7300
7301
7302
7303 # Check whether --enable-libtool-lock was given.
7304 if test "${enable_libtool_lock+set}" = set; then :
7305   enableval=$enable_libtool_lock;
7306 fi
7307
7308 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7309
7310 # Some flags need to be propagated to the compiler or linker for good
7311 # libtool support.
7312 case $host in
7313 ia64-*-hpux*)
7314   # Find out which ABI we are using.
7315   echo 'int i;' > conftest.$ac_ext
7316   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7317   (eval $ac_compile) 2>&5
7318   ac_status=$?
7319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320   test $ac_status = 0; }; then
7321     case `/usr/bin/file conftest.$ac_objext` in
7322       *ELF-32*)
7323         HPUX_IA64_MODE="32"
7324         ;;
7325       *ELF-64*)
7326         HPUX_IA64_MODE="64"
7327         ;;
7328     esac
7329   fi
7330   rm -rf conftest*
7331   ;;
7332 *-*-irix6*)
7333   # Find out which ABI we are using.
7334   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7335   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7336   (eval $ac_compile) 2>&5
7337   ac_status=$?
7338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7339   test $ac_status = 0; }; then
7340     if test "$lt_cv_prog_gnu_ld" = yes; then
7341       case `/usr/bin/file conftest.$ac_objext` in
7342         *32-bit*)
7343           LD="${LD-ld} -melf32bsmip"
7344           ;;
7345         *N32*)
7346           LD="${LD-ld} -melf32bmipn32"
7347           ;;
7348         *64-bit*)
7349           LD="${LD-ld} -melf64bmip"
7350         ;;
7351       esac
7352     else
7353       case `/usr/bin/file conftest.$ac_objext` in
7354         *32-bit*)
7355           LD="${LD-ld} -32"
7356           ;;
7357         *N32*)
7358           LD="${LD-ld} -n32"
7359           ;;
7360         *64-bit*)
7361           LD="${LD-ld} -64"
7362           ;;
7363       esac
7364     fi
7365   fi
7366   rm -rf conftest*
7367   ;;
7368
7369 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7370 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7371   # Find out which ABI we are using.
7372   echo 'int i;' > conftest.$ac_ext
7373   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374   (eval $ac_compile) 2>&5
7375   ac_status=$?
7376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377   test $ac_status = 0; }; then
7378     case `/usr/bin/file conftest.o` in
7379       *32-bit*)
7380         case $host in
7381           x86_64-*kfreebsd*-gnu)
7382             LD="${LD-ld} -m elf_i386_fbsd"
7383             ;;
7384           x86_64-*linux*)
7385             LD="${LD-ld} -m elf_i386"
7386             ;;
7387           ppc64-*linux*|powerpc64-*linux*)
7388             LD="${LD-ld} -m elf32ppclinux"
7389             ;;
7390           s390x-*linux*)
7391             LD="${LD-ld} -m elf_s390"
7392             ;;
7393           sparc64-*linux*)
7394             LD="${LD-ld} -m elf32_sparc"
7395             ;;
7396         esac
7397         ;;
7398       *64-bit*)
7399         case $host in
7400           x86_64-*kfreebsd*-gnu)
7401             LD="${LD-ld} -m elf_x86_64_fbsd"
7402             ;;
7403           x86_64-*linux*)
7404             LD="${LD-ld} -m elf_x86_64"
7405             ;;
7406           ppc*-*linux*|powerpc*-*linux*)
7407             LD="${LD-ld} -m elf64ppc"
7408             ;;
7409           s390*-*linux*|s390*-*tpf*)
7410             LD="${LD-ld} -m elf64_s390"
7411             ;;
7412           sparc*-*linux*)
7413             LD="${LD-ld} -m elf64_sparc"
7414             ;;
7415         esac
7416         ;;
7417     esac
7418   fi
7419   rm -rf conftest*
7420   ;;
7421
7422 *-*-sco3.2v5*)
7423   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7424   SAVE_CFLAGS="$CFLAGS"
7425   CFLAGS="$CFLAGS -belf"
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7427 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7428 if ${lt_cv_cc_needs_belf+:} false; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   ac_ext=c
7432 ac_cpp='$CPP $CPPFLAGS'
7433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436
7437      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h.  */
7439
7440 int
7441 main ()
7442 {
7443
7444   ;
7445   return 0;
7446 }
7447 _ACEOF
7448 if ac_fn_c_try_link "$LINENO"; then :
7449   lt_cv_cc_needs_belf=yes
7450 else
7451   lt_cv_cc_needs_belf=no
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext \
7454     conftest$ac_exeext conftest.$ac_ext
7455      ac_ext=c
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7463 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7464   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7465     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7466     CFLAGS="$SAVE_CFLAGS"
7467   fi
7468   ;;
7469 *-*solaris*)
7470   # Find out which ABI we are using.
7471   echo 'int i;' > conftest.$ac_ext
7472   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7473   (eval $ac_compile) 2>&5
7474   ac_status=$?
7475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476   test $ac_status = 0; }; then
7477     case `/usr/bin/file conftest.o` in
7478     *64-bit*)
7479       case $lt_cv_prog_gnu_ld in
7480       yes*)
7481         case $host in
7482         i?86-*-solaris*)
7483           LD="${LD-ld} -m elf_x86_64"
7484           ;;
7485         sparc*-*-solaris*)
7486           LD="${LD-ld} -m elf64_sparc"
7487           ;;
7488         esac
7489         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7490         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7491           LD="${LD-ld}_sol2"
7492         fi
7493         ;;
7494       *)
7495         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7496           LD="${LD-ld} -64"
7497         fi
7498         ;;
7499       esac
7500       ;;
7501     esac
7502   fi
7503   rm -rf conftest*
7504   ;;
7505 esac
7506
7507 need_locks="$enable_libtool_lock"
7508
7509 if test -n "$ac_tool_prefix"; then
7510   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7511 set dummy ${ac_tool_prefix}mt; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7515   $as_echo_n "(cached) " >&6
7516 else
7517   if test -n "$MANIFEST_TOOL"; then
7518   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525     for ac_exec_ext in '' $ac_executable_extensions; do
7526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529     break 2
7530   fi
7531 done
7532   done
7533 IFS=$as_save_IFS
7534
7535 fi
7536 fi
7537 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7538 if test -n "$MANIFEST_TOOL"; then
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7540 $as_echo "$MANIFEST_TOOL" >&6; }
7541 else
7542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546
7547 fi
7548 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7549   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7550   # Extract the first word of "mt", so it can be a program name with args.
7551 set dummy mt; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   if test -n "$ac_ct_MANIFEST_TOOL"; then
7558   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565     for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572   done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7578 if test -n "$ac_ct_MANIFEST_TOOL"; then
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7580 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7581 else
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585
7586   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7587     MANIFEST_TOOL=":"
7588   else
7589     case $cross_compiling:$ac_tool_warned in
7590 yes:)
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7593 ac_tool_warned=yes ;;
7594 esac
7595     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7596   fi
7597 else
7598   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7599 fi
7600
7601 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7603 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7604 if ${lt_cv_path_mainfest_tool+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   lt_cv_path_mainfest_tool=no
7608   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7609   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7610   cat conftest.err >&5
7611   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7612     lt_cv_path_mainfest_tool=yes
7613   fi
7614   rm -f conftest*
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7617 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7618 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7619   MANIFEST_TOOL=:
7620 fi
7621
7622
7623
7624
7625
7626
7627   case $host_os in
7628     rhapsody* | darwin*)
7629     if test -n "$ac_tool_prefix"; then
7630   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7631 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   if test -n "$DSYMUTIL"; then
7638   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645     for ac_exec_ext in '' $ac_executable_extensions; do
7646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652   done
7653 IFS=$as_save_IFS
7654
7655 fi
7656 fi
7657 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7658 if test -n "$DSYMUTIL"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7660 $as_echo "$DSYMUTIL" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667 fi
7668 if test -z "$ac_cv_prog_DSYMUTIL"; then
7669   ac_ct_DSYMUTIL=$DSYMUTIL
7670   # Extract the first word of "dsymutil", so it can be a program name with args.
7671 set dummy dsymutil; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   if test -n "$ac_ct_DSYMUTIL"; then
7678   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685     for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692   done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7698 if test -n "$ac_ct_DSYMUTIL"; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7700 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706   if test "x$ac_ct_DSYMUTIL" = x; then
7707     DSYMUTIL=":"
7708   else
7709     case $cross_compiling:$ac_tool_warned in
7710 yes:)
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7713 ac_tool_warned=yes ;;
7714 esac
7715     DSYMUTIL=$ac_ct_DSYMUTIL
7716   fi
7717 else
7718   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7719 fi
7720
7721     if test -n "$ac_tool_prefix"; then
7722   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if ${ac_cv_prog_NMEDIT+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729   if test -n "$NMEDIT"; then
7730   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737     for ac_exec_ext in '' $ac_executable_extensions; do
7738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744   done
7745 IFS=$as_save_IFS
7746
7747 fi
7748 fi
7749 NMEDIT=$ac_cv_prog_NMEDIT
7750 if test -n "$NMEDIT"; then
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7752 $as_echo "$NMEDIT" >&6; }
7753 else
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7756 fi
7757
7758
7759 fi
7760 if test -z "$ac_cv_prog_NMEDIT"; then
7761   ac_ct_NMEDIT=$NMEDIT
7762   # Extract the first word of "nmedit", so it can be a program name with args.
7763 set dummy nmedit; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   if test -n "$ac_ct_NMEDIT"; then
7770   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7790 if test -n "$ac_ct_NMEDIT"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7792 $as_echo "$ac_ct_NMEDIT" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798   if test "x$ac_ct_NMEDIT" = x; then
7799     NMEDIT=":"
7800   else
7801     case $cross_compiling:$ac_tool_warned in
7802 yes:)
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7806 esac
7807     NMEDIT=$ac_ct_NMEDIT
7808   fi
7809 else
7810   NMEDIT="$ac_cv_prog_NMEDIT"
7811 fi
7812
7813     if test -n "$ac_tool_prefix"; then
7814   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7815 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_prog_LIPO+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   if test -n "$LIPO"; then
7822   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829     for ac_exec_ext in '' $ac_executable_extensions; do
7830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836   done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 LIPO=$ac_cv_prog_LIPO
7842 if test -n "$LIPO"; then
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7844 $as_echo "$LIPO" >&6; }
7845 else
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 fi
7849
7850
7851 fi
7852 if test -z "$ac_cv_prog_LIPO"; then
7853   ac_ct_LIPO=$LIPO
7854   # Extract the first word of "lipo", so it can be a program name with args.
7855 set dummy lipo; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   if test -n "$ac_ct_LIPO"; then
7862   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869     for ac_exec_ext in '' $ac_executable_extensions; do
7870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871     ac_cv_prog_ac_ct_LIPO="lipo"
7872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876   done
7877 IFS=$as_save_IFS
7878
7879 fi
7880 fi
7881 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7882 if test -n "$ac_ct_LIPO"; then
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7884 $as_echo "$ac_ct_LIPO" >&6; }
7885 else
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7888 fi
7889
7890   if test "x$ac_ct_LIPO" = x; then
7891     LIPO=":"
7892   else
7893     case $cross_compiling:$ac_tool_warned in
7894 yes:)
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7897 ac_tool_warned=yes ;;
7898 esac
7899     LIPO=$ac_ct_LIPO
7900   fi
7901 else
7902   LIPO="$ac_cv_prog_LIPO"
7903 fi
7904
7905     if test -n "$ac_tool_prefix"; then
7906   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}otool; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_OTOOL+:} false; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   if test -n "$OTOOL"; then
7914   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 OTOOL=$ac_cv_prog_OTOOL
7934 if test -n "$OTOOL"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7936 $as_echo "$OTOOL" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943 fi
7944 if test -z "$ac_cv_prog_OTOOL"; then
7945   ac_ct_OTOOL=$OTOOL
7946   # Extract the first word of "otool", so it can be a program name with args.
7947 set dummy otool; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$ac_ct_OTOOL"; then
7954   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_prog_ac_ct_OTOOL="otool"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7974 if test -n "$ac_ct_OTOOL"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7976 $as_echo "$ac_ct_OTOOL" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982   if test "x$ac_ct_OTOOL" = x; then
7983     OTOOL=":"
7984   else
7985     case $cross_compiling:$ac_tool_warned in
7986 yes:)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7990 esac
7991     OTOOL=$ac_ct_OTOOL
7992   fi
7993 else
7994   OTOOL="$ac_cv_prog_OTOOL"
7995 fi
7996
7997     if test -n "$ac_tool_prefix"; then
7998   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_OTOOL64+:} false; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   if test -n "$OTOOL64"; then
8006   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011   IFS=$as_save_IFS
8012   test -z "$as_dir" && as_dir=.
8013     for ac_exec_ext in '' $ac_executable_extensions; do
8014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017     break 2
8018   fi
8019 done
8020   done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 OTOOL64=$ac_cv_prog_OTOOL64
8026 if test -n "$OTOOL64"; then
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8028 $as_echo "$OTOOL64" >&6; }
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_OTOOL64"; then
8037   ac_ct_OTOOL64=$OTOOL64
8038   # Extract the first word of "otool64", so it can be a program name with args.
8039 set dummy otool64; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8043   $as_echo_n "(cached) " >&6
8044 else
8045   if test -n "$ac_ct_OTOOL64"; then
8046   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   test -z "$as_dir" && as_dir=.
8053     for ac_exec_ext in '' $ac_executable_extensions; do
8054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055     ac_cv_prog_ac_ct_OTOOL64="otool64"
8056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057     break 2
8058   fi
8059 done
8060   done
8061 IFS=$as_save_IFS
8062
8063 fi
8064 fi
8065 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8066 if test -n "$ac_ct_OTOOL64"; then
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8068 $as_echo "$ac_ct_OTOOL64" >&6; }
8069 else
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074   if test "x$ac_ct_OTOOL64" = x; then
8075     OTOOL64=":"
8076   else
8077     case $cross_compiling:$ac_tool_warned in
8078 yes:)
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8082 esac
8083     OTOOL64=$ac_ct_OTOOL64
8084   fi
8085 else
8086   OTOOL64="$ac_cv_prog_OTOOL64"
8087 fi
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8116 $as_echo_n "checking for -single_module linker flag... " >&6; }
8117 if ${lt_cv_apple_cc_single_mod+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   lt_cv_apple_cc_single_mod=no
8121       if test -z "${LT_MULTI_MODULE}"; then
8122         # By default we will add the -single_module flag. You can override
8123         # by either setting the environment variable LT_MULTI_MODULE
8124         # non-empty at configure time, or by adding -multi_module to the
8125         # link flags.
8126         rm -rf libconftest.dylib*
8127         echo "int foo(void){return 1;}" > conftest.c
8128         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8129 -dynamiclib -Wl,-single_module conftest.c" >&5
8130         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8131           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8132         _lt_result=$?
8133         # If there is a non-empty error log, and "single_module"
8134         # appears in it, assume the flag caused a linker warning
8135         if test -s conftest.err && $GREP single_module conftest.err; then
8136           cat conftest.err >&5
8137         # Otherwise, if the output was created with a 0 exit code from
8138         # the compiler, it worked.
8139         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8140           lt_cv_apple_cc_single_mod=yes
8141         else
8142           cat conftest.err >&5
8143         fi
8144         rm -rf libconftest.dylib*
8145         rm -f conftest.*
8146       fi
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8149 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8150
8151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8152 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8153 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   lt_cv_ld_exported_symbols_list=no
8157       save_LDFLAGS=$LDFLAGS
8158       echo "_main" > conftest.sym
8159       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8160       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h.  */
8162
8163 int
8164 main ()
8165 {
8166
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_link "$LINENO"; then :
8172   lt_cv_ld_exported_symbols_list=yes
8173 else
8174   lt_cv_ld_exported_symbols_list=no
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext \
8177     conftest$ac_exeext conftest.$ac_ext
8178         LDFLAGS="$save_LDFLAGS"
8179
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8182 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8183
8184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8185 $as_echo_n "checking for -force_load linker flag... " >&6; }
8186 if ${lt_cv_ld_force_load+:} false; then :
8187   $as_echo_n "(cached) " >&6
8188 else
8189   lt_cv_ld_force_load=no
8190       cat > conftest.c << _LT_EOF
8191 int forced_loaded() { return 2;}
8192 _LT_EOF
8193       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8194       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8195       echo "$AR cru libconftest.a conftest.o" >&5
8196       $AR cru libconftest.a conftest.o 2>&5
8197       echo "$RANLIB libconftest.a" >&5
8198       $RANLIB libconftest.a 2>&5
8199       cat > conftest.c << _LT_EOF
8200 int main() { return 0;}
8201 _LT_EOF
8202       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8203       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8204       _lt_result=$?
8205       if test -s conftest.err && $GREP force_load conftest.err; then
8206         cat conftest.err >&5
8207       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8208         lt_cv_ld_force_load=yes
8209       else
8210         cat conftest.err >&5
8211       fi
8212         rm -f conftest.err libconftest.a conftest conftest.c
8213         rm -rf conftest.dSYM
8214
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8217 $as_echo "$lt_cv_ld_force_load" >&6; }
8218     case $host_os in
8219     rhapsody* | darwin1.[012])
8220       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8221     darwin1.*)
8222       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8223     darwin*) # darwin 5.x on
8224       # if running on 10.5 or later, the deployment target defaults
8225       # to the OS version, if on x86, and 10.4, the deployment
8226       # target defaults to 10.4. Don't you love it?
8227       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8228         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8229           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8230         10.[012]*)
8231           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8232         10.*)
8233           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8234       esac
8235     ;;
8236   esac
8237     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8238       _lt_dar_single_mod='$single_module'
8239     fi
8240     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8241       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8242     else
8243       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8244     fi
8245     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8246       _lt_dsymutil='~$DSYMUTIL $lib || :'
8247     else
8248       _lt_dsymutil=
8249     fi
8250     ;;
8251   esac
8252
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8254 $as_echo_n "checking for ANSI C header files... " >&6; }
8255 if ${ac_cv_header_stdc+:} false; then :
8256   $as_echo_n "(cached) " >&6
8257 else
8258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260 #include <stdlib.h>
8261 #include <stdarg.h>
8262 #include <string.h>
8263 #include <float.h>
8264
8265 int
8266 main ()
8267 {
8268
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274   ac_cv_header_stdc=yes
8275 else
8276   ac_cv_header_stdc=no
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279
8280 if test $ac_cv_header_stdc = yes; then
8281   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h.  */
8284 #include <string.h>
8285
8286 _ACEOF
8287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288   $EGREP "memchr" >/dev/null 2>&1; then :
8289
8290 else
8291   ac_cv_header_stdc=no
8292 fi
8293 rm -f conftest*
8294
8295 fi
8296
8297 if test $ac_cv_header_stdc = yes; then
8298   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301 #include <stdlib.h>
8302
8303 _ACEOF
8304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8305   $EGREP "free" >/dev/null 2>&1; then :
8306
8307 else
8308   ac_cv_header_stdc=no
8309 fi
8310 rm -f conftest*
8311
8312 fi
8313
8314 if test $ac_cv_header_stdc = yes; then
8315   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8316   if test "$cross_compiling" = yes; then :
8317   :
8318 else
8319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h.  */
8321 #include <ctype.h>
8322 #include <stdlib.h>
8323 #if ((' ' & 0x0FF) == 0x020)
8324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8326 #else
8327 # define ISLOWER(c) \
8328                    (('a' <= (c) && (c) <= 'i') \
8329                      || ('j' <= (c) && (c) <= 'r') \
8330                      || ('s' <= (c) && (c) <= 'z'))
8331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8332 #endif
8333
8334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8335 int
8336 main ()
8337 {
8338   int i;
8339   for (i = 0; i < 256; i++)
8340     if (XOR (islower (i), ISLOWER (i))
8341         || toupper (i) != TOUPPER (i))
8342       return 2;
8343   return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_run "$LINENO"; then :
8347
8348 else
8349   ac_cv_header_stdc=no
8350 fi
8351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8352   conftest.$ac_objext conftest.beam conftest.$ac_ext
8353 fi
8354
8355 fi
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8358 $as_echo "$ac_cv_header_stdc" >&6; }
8359 if test $ac_cv_header_stdc = yes; then
8360
8361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8362
8363 fi
8364
8365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8367                   inttypes.h stdint.h unistd.h
8368 do :
8369   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8371 "
8372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8373   cat >>confdefs.h <<_ACEOF
8374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8375 _ACEOF
8376
8377 fi
8378
8379 done
8380
8381
8382 for ac_header in dlfcn.h
8383 do :
8384   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8385 "
8386 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8387   cat >>confdefs.h <<_ACEOF
8388 #define HAVE_DLFCN_H 1
8389 _ACEOF
8390
8391 fi
8392
8393 done
8394
8395
8396
8397
8398 func_stripname_cnf ()
8399 {
8400   case ${2} in
8401   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8402   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8403   esac
8404 } # func_stripname_cnf
8405
8406
8407
8408
8409
8410 # Set options
8411
8412
8413
8414         enable_dlopen=no
8415
8416
8417
8418             # Check whether --enable-shared was given.
8419 if test "${enable_shared+set}" = set; then :
8420   enableval=$enable_shared; p=${PACKAGE-default}
8421     case $enableval in
8422     yes) enable_shared=yes ;;
8423     no) enable_shared=no ;;
8424     *)
8425       enable_shared=no
8426       # Look at the argument we got.  We use all the common list separators.
8427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8428       for pkg in $enableval; do
8429         IFS="$lt_save_ifs"
8430         if test "X$pkg" = "X$p"; then
8431           enable_shared=yes
8432         fi
8433       done
8434       IFS="$lt_save_ifs"
8435       ;;
8436     esac
8437 else
8438   enable_shared=yes
8439 fi
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449   # Check whether --enable-static was given.
8450 if test "${enable_static+set}" = set; then :
8451   enableval=$enable_static; p=${PACKAGE-default}
8452     case $enableval in
8453     yes) enable_static=yes ;;
8454     no) enable_static=no ;;
8455     *)
8456      enable_static=no
8457       # Look at the argument we got.  We use all the common list separators.
8458       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8459       for pkg in $enableval; do
8460         IFS="$lt_save_ifs"
8461         if test "X$pkg" = "X$p"; then
8462           enable_static=yes
8463         fi
8464       done
8465       IFS="$lt_save_ifs"
8466       ;;
8467     esac
8468 else
8469   enable_static=yes
8470 fi
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 # Check whether --with-pic was given.
8482 if test "${with_pic+set}" = set; then :
8483   withval=$with_pic; lt_p=${PACKAGE-default}
8484     case $withval in
8485     yes|no) pic_mode=$withval ;;
8486     *)
8487       pic_mode=default
8488       # Look at the argument we got.  We use all the common list separators.
8489       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8490       for lt_pkg in $withval; do
8491         IFS="$lt_save_ifs"
8492         if test "X$lt_pkg" = "X$lt_p"; then
8493           pic_mode=yes
8494         fi
8495       done
8496       IFS="$lt_save_ifs"
8497       ;;
8498     esac
8499 else
8500   pic_mode=default
8501 fi
8502
8503
8504 test -z "$pic_mode" && pic_mode=default
8505
8506
8507
8508
8509
8510
8511
8512   # Check whether --enable-fast-install was given.
8513 if test "${enable_fast_install+set}" = set; then :
8514   enableval=$enable_fast_install; p=${PACKAGE-default}
8515     case $enableval in
8516     yes) enable_fast_install=yes ;;
8517     no) enable_fast_install=no ;;
8518     *)
8519       enable_fast_install=no
8520       # Look at the argument we got.  We use all the common list separators.
8521       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8522       for pkg in $enableval; do
8523         IFS="$lt_save_ifs"
8524         if test "X$pkg" = "X$p"; then
8525           enable_fast_install=yes
8526         fi
8527       done
8528       IFS="$lt_save_ifs"
8529       ;;
8530     esac
8531 else
8532   enable_fast_install=yes
8533 fi
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545 # This can be used to rebuild libtool when needed
8546 LIBTOOL_DEPS="$ltmain"
8547
8548 # Always use our own libtool.
8549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580 test -z "$LN_S" && LN_S="ln -s"
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 if test -n "${ZSH_VERSION+set}" ; then
8596    setopt NO_GLOB_SUBST
8597 fi
8598
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8600 $as_echo_n "checking for objdir... " >&6; }
8601 if ${lt_cv_objdir+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   rm -f .libs 2>/dev/null
8605 mkdir .libs 2>/dev/null
8606 if test -d .libs; then
8607   lt_cv_objdir=.libs
8608 else
8609   # MS-DOS does not allow filenames that begin with a dot.
8610   lt_cv_objdir=_libs
8611 fi
8612 rmdir .libs 2>/dev/null
8613 fi
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8615 $as_echo "$lt_cv_objdir" >&6; }
8616 objdir=$lt_cv_objdir
8617
8618
8619
8620
8621
8622 cat >>confdefs.h <<_ACEOF
8623 #define LT_OBJDIR "$lt_cv_objdir/"
8624 _ACEOF
8625
8626
8627
8628
8629 case $host_os in
8630 aix3*)
8631   # AIX sometimes has problems with the GCC collect2 program.  For some
8632   # reason, if we set the COLLECT_NAMES environment variable, the problems
8633   # vanish in a puff of smoke.
8634   if test "X${COLLECT_NAMES+set}" != Xset; then
8635     COLLECT_NAMES=
8636     export COLLECT_NAMES
8637   fi
8638   ;;
8639 esac
8640
8641 # Global variables:
8642 ofile=libtool
8643 can_build_shared=yes
8644
8645 # All known linkers require a `.a' archive for static linking (except MSVC,
8646 # which needs '.lib').
8647 libext=a
8648
8649 with_gnu_ld="$lt_cv_prog_gnu_ld"
8650
8651 old_CC="$CC"
8652 old_CFLAGS="$CFLAGS"
8653
8654 # Set sane defaults for various variables
8655 test -z "$CC" && CC=cc
8656 test -z "$LTCC" && LTCC=$CC
8657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8658 test -z "$LD" && LD=ld
8659 test -z "$ac_objext" && ac_objext=o
8660
8661 for cc_temp in $compiler""; do
8662   case $cc_temp in
8663     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8664     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8665     \-*) ;;
8666     *) break;;
8667   esac
8668 done
8669 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8670
8671
8672 # Only perform the check for file, if the check method requires it
8673 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8674 case $deplibs_check_method in
8675 file_magic*)
8676   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8678 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8679 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   case $MAGIC_CMD in
8683 [\\/*] |  ?:[\\/]*)
8684   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8685   ;;
8686 *)
8687   lt_save_MAGIC_CMD="$MAGIC_CMD"
8688   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8689   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8690   for ac_dir in $ac_dummy; do
8691     IFS="$lt_save_ifs"
8692     test -z "$ac_dir" && ac_dir=.
8693     if test -f $ac_dir/${ac_tool_prefix}file; then
8694       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8695       if test -n "$file_magic_test_file"; then
8696         case $deplibs_check_method in
8697         "file_magic "*)
8698           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8699           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8700           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8701             $EGREP "$file_magic_regex" > /dev/null; then
8702             :
8703           else
8704             cat <<_LT_EOF 1>&2
8705
8706 *** Warning: the command libtool uses to detect shared libraries,
8707 *** $file_magic_cmd, produces output that libtool cannot recognize.
8708 *** The result is that libtool may fail to recognize shared libraries
8709 *** as such.  This will affect the creation of libtool libraries that
8710 *** depend on shared libraries, but programs linked with such libtool
8711 *** libraries will work regardless of this problem.  Nevertheless, you
8712 *** may want to report the problem to your system manager and/or to
8713 *** bug-libtool@gnu.org
8714
8715 _LT_EOF
8716           fi ;;
8717         esac
8718       fi
8719       break
8720     fi
8721   done
8722   IFS="$lt_save_ifs"
8723   MAGIC_CMD="$lt_save_MAGIC_CMD"
8724   ;;
8725 esac
8726 fi
8727
8728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8729 if test -n "$MAGIC_CMD"; then
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8731 $as_echo "$MAGIC_CMD" >&6; }
8732 else
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736
8737
8738
8739
8740
8741 if test -z "$lt_cv_path_MAGIC_CMD"; then
8742   if test -n "$ac_tool_prefix"; then
8743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8744 $as_echo_n "checking for file... " >&6; }
8745 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   case $MAGIC_CMD in
8749 [\\/*] |  ?:[\\/]*)
8750   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8751   ;;
8752 *)
8753   lt_save_MAGIC_CMD="$MAGIC_CMD"
8754   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8755   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8756   for ac_dir in $ac_dummy; do
8757     IFS="$lt_save_ifs"
8758     test -z "$ac_dir" && ac_dir=.
8759     if test -f $ac_dir/file; then
8760       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8761       if test -n "$file_magic_test_file"; then
8762         case $deplibs_check_method in
8763         "file_magic "*)
8764           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8765           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8766           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8767             $EGREP "$file_magic_regex" > /dev/null; then
8768             :
8769           else
8770             cat <<_LT_EOF 1>&2
8771
8772 *** Warning: the command libtool uses to detect shared libraries,
8773 *** $file_magic_cmd, produces output that libtool cannot recognize.
8774 *** The result is that libtool may fail to recognize shared libraries
8775 *** as such.  This will affect the creation of libtool libraries that
8776 *** depend on shared libraries, but programs linked with such libtool
8777 *** libraries will work regardless of this problem.  Nevertheless, you
8778 *** may want to report the problem to your system manager and/or to
8779 *** bug-libtool@gnu.org
8780
8781 _LT_EOF
8782           fi ;;
8783         esac
8784       fi
8785       break
8786     fi
8787   done
8788   IFS="$lt_save_ifs"
8789   MAGIC_CMD="$lt_save_MAGIC_CMD"
8790   ;;
8791 esac
8792 fi
8793
8794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8795 if test -n "$MAGIC_CMD"; then
8796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8797 $as_echo "$MAGIC_CMD" >&6; }
8798 else
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8801 fi
8802
8803
8804   else
8805     MAGIC_CMD=:
8806   fi
8807 fi
8808
8809   fi
8810   ;;
8811 esac
8812
8813 # Use C for the default configuration in the libtool script
8814
8815 lt_save_CC="$CC"
8816 ac_ext=c
8817 ac_cpp='$CPP $CPPFLAGS'
8818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8821
8822
8823 # Source file extension for C test sources.
8824 ac_ext=c
8825
8826 # Object file extension for compiled C test sources.
8827 objext=o
8828 objext=$objext
8829
8830 # Code to be used in simple compile tests
8831 lt_simple_compile_test_code="int some_variable = 0;"
8832
8833 # Code to be used in simple link tests
8834 lt_simple_link_test_code='int main(){return(0);}'
8835
8836
8837
8838
8839
8840
8841
8842 # If no C compiler was specified, use CC.
8843 LTCC=${LTCC-"$CC"}
8844
8845 # If no C compiler flags were specified, use CFLAGS.
8846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8847
8848 # Allow CC to be a program name with arguments.
8849 compiler=$CC
8850
8851 # Save the default compiler, since it gets overwritten when the other
8852 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8853 compiler_DEFAULT=$CC
8854
8855 # save warnings/boilerplate of simple test code
8856 ac_outfile=conftest.$ac_objext
8857 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8859 _lt_compiler_boilerplate=`cat conftest.err`
8860 $RM conftest*
8861
8862 ac_outfile=conftest.$ac_objext
8863 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8865 _lt_linker_boilerplate=`cat conftest.err`
8866 $RM -r conftest*
8867
8868
8869 if test -n "$compiler"; then
8870
8871 lt_prog_compiler_no_builtin_flag=
8872
8873 if test "$GCC" = yes; then
8874   case $cc_basename in
8875   nvcc*)
8876     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8877   *)
8878     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8879   esac
8880
8881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8882 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8883 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8884   $as_echo_n "(cached) " >&6
8885 else
8886   lt_cv_prog_compiler_rtti_exceptions=no
8887    ac_outfile=conftest.$ac_objext
8888    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8889    lt_compiler_flag="-fno-rtti -fno-exceptions"
8890    # Insert the option either (1) after the last *FLAGS variable, or
8891    # (2) before a word containing "conftest.", or (3) at the end.
8892    # Note that $ac_compile itself does not contain backslashes and begins
8893    # with a dollar sign (not a hyphen), so the echo should work correctly.
8894    # The option is referenced via a variable to avoid confusing sed.
8895    lt_compile=`echo "$ac_compile" | $SED \
8896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8898    -e 's:$: $lt_compiler_flag:'`
8899    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8900    (eval "$lt_compile" 2>conftest.err)
8901    ac_status=$?
8902    cat conftest.err >&5
8903    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904    if (exit $ac_status) && test -s "$ac_outfile"; then
8905      # The compiler can only warn and ignore the option if not recognized
8906      # So say no if there are warnings other than the usual output.
8907      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8908      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8909      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8910        lt_cv_prog_compiler_rtti_exceptions=yes
8911      fi
8912    fi
8913    $RM conftest*
8914
8915 fi
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8917 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8918
8919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8920     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8921 else
8922     :
8923 fi
8924
8925 fi
8926
8927
8928
8929
8930
8931
8932   lt_prog_compiler_wl=
8933 lt_prog_compiler_pic=
8934 lt_prog_compiler_static=
8935
8936
8937   if test "$GCC" = yes; then
8938     lt_prog_compiler_wl='-Wl,'
8939     lt_prog_compiler_static='-static'
8940
8941     case $host_os in
8942       aix*)
8943       # All AIX code is PIC.
8944       if test "$host_cpu" = ia64; then
8945         # AIX 5 now supports IA64 processor
8946         lt_prog_compiler_static='-Bstatic'
8947       fi
8948       ;;
8949
8950     amigaos*)
8951       case $host_cpu in
8952       powerpc)
8953             # see comment about AmigaOS4 .so support
8954             lt_prog_compiler_pic='-fPIC'
8955         ;;
8956       m68k)
8957             # FIXME: we need at least 68020 code to build shared libraries, but
8958             # adding the `-m68020' flag to GCC prevents building anything better,
8959             # like `-m68040'.
8960             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8961         ;;
8962       esac
8963       ;;
8964
8965     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8966       # PIC is the default for these OSes.
8967       ;;
8968
8969     mingw* | cygwin* | pw32* | os2* | cegcc*)
8970       # This hack is so that the source file can tell whether it is being
8971       # built for inclusion in a dll (and should export symbols for example).
8972       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8973       # (--disable-auto-import) libraries
8974       lt_prog_compiler_pic='-DDLL_EXPORT'
8975       ;;
8976
8977     darwin* | rhapsody*)
8978       # PIC is the default on this platform
8979       # Common symbols not allowed in MH_DYLIB files
8980       lt_prog_compiler_pic='-fno-common'
8981       ;;
8982
8983     haiku*)
8984       # PIC is the default for Haiku.
8985       # The "-static" flag exists, but is broken.
8986       lt_prog_compiler_static=
8987       ;;
8988
8989     hpux*)
8990       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8991       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8992       # sets the default TLS model and affects inlining.
8993       case $host_cpu in
8994       hppa*64*)
8995         # +Z the default
8996         ;;
8997       *)
8998         lt_prog_compiler_pic='-fPIC'
8999         ;;
9000       esac
9001       ;;
9002
9003     interix[3-9]*)
9004       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9005       # Instead, we relocate shared libraries at runtime.
9006       ;;
9007
9008     msdosdjgpp*)
9009       # Just because we use GCC doesn't mean we suddenly get shared libraries
9010       # on systems that don't support them.
9011       lt_prog_compiler_can_build_shared=no
9012       enable_shared=no
9013       ;;
9014
9015     *nto* | *qnx*)
9016       # QNX uses GNU C++, but need to define -shared option too, otherwise
9017       # it will coredump.
9018       lt_prog_compiler_pic='-fPIC -shared'
9019       ;;
9020
9021     sysv4*MP*)
9022       if test -d /usr/nec; then
9023         lt_prog_compiler_pic=-Kconform_pic
9024       fi
9025       ;;
9026
9027     *)
9028       lt_prog_compiler_pic='-fPIC'
9029       ;;
9030     esac
9031
9032     case $cc_basename in
9033     nvcc*) # Cuda Compiler Driver 2.2
9034       lt_prog_compiler_wl='-Xlinker '
9035       if test -n "$lt_prog_compiler_pic"; then
9036         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9037       fi
9038       ;;
9039     esac
9040   else
9041     # PORTME Check for flag to pass linker flags through the system compiler.
9042     case $host_os in
9043     aix*)
9044       lt_prog_compiler_wl='-Wl,'
9045       if test "$host_cpu" = ia64; then
9046         # AIX 5 now supports IA64 processor
9047         lt_prog_compiler_static='-Bstatic'
9048       else
9049         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9050       fi
9051       ;;
9052
9053     mingw* | cygwin* | pw32* | os2* | cegcc*)
9054       # This hack is so that the source file can tell whether it is being
9055       # built for inclusion in a dll (and should export symbols for example).
9056       lt_prog_compiler_pic='-DDLL_EXPORT'
9057       ;;
9058
9059     hpux9* | hpux10* | hpux11*)
9060       lt_prog_compiler_wl='-Wl,'
9061       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9062       # not for PA HP-UX.
9063       case $host_cpu in
9064       hppa*64*|ia64*)
9065         # +Z the default
9066         ;;
9067       *)
9068         lt_prog_compiler_pic='+Z'
9069         ;;
9070       esac
9071       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9072       lt_prog_compiler_static='${wl}-a ${wl}archive'
9073       ;;
9074
9075     irix5* | irix6* | nonstopux*)
9076       lt_prog_compiler_wl='-Wl,'
9077       # PIC (with -KPIC) is the default.
9078       lt_prog_compiler_static='-non_shared'
9079       ;;
9080
9081     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9082       case $cc_basename in
9083       # old Intel for x86_64 which still supported -KPIC.
9084       ecc*)
9085         lt_prog_compiler_wl='-Wl,'
9086         lt_prog_compiler_pic='-KPIC'
9087         lt_prog_compiler_static='-static'
9088         ;;
9089       # icc used to be incompatible with GCC.
9090       # ICC 10 doesn't accept -KPIC any more.
9091       icc* | ifort*)
9092         lt_prog_compiler_wl='-Wl,'
9093         lt_prog_compiler_pic='-fPIC'
9094         lt_prog_compiler_static='-static'
9095         ;;
9096       # Lahey Fortran 8.1.
9097       lf95*)
9098         lt_prog_compiler_wl='-Wl,'
9099         lt_prog_compiler_pic='--shared'
9100         lt_prog_compiler_static='--static'
9101         ;;
9102       nagfor*)
9103         # NAG Fortran compiler
9104         lt_prog_compiler_wl='-Wl,-Wl,,'
9105         lt_prog_compiler_pic='-PIC'
9106         lt_prog_compiler_static='-Bstatic'
9107         ;;
9108       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9109         # Portland Group compilers (*not* the Pentium gcc compiler,
9110         # which looks to be a dead project)
9111         lt_prog_compiler_wl='-Wl,'
9112         lt_prog_compiler_pic='-fpic'
9113         lt_prog_compiler_static='-Bstatic'
9114         ;;
9115       ccc*)
9116         lt_prog_compiler_wl='-Wl,'
9117         # All Alpha code is PIC.
9118         lt_prog_compiler_static='-non_shared'
9119         ;;
9120       xl* | bgxl* | bgf* | mpixl*)
9121         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9122         lt_prog_compiler_wl='-Wl,'
9123         lt_prog_compiler_pic='-qpic'
9124         lt_prog_compiler_static='-qstaticlink'
9125         ;;
9126       *)
9127         case `$CC -V 2>&1 | sed 5q` in
9128         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9129           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9130           lt_prog_compiler_pic='-KPIC'
9131           lt_prog_compiler_static='-Bstatic'
9132           lt_prog_compiler_wl=''
9133           ;;
9134         *Sun\ F* | *Sun*Fortran*)
9135           lt_prog_compiler_pic='-KPIC'
9136           lt_prog_compiler_static='-Bstatic'
9137           lt_prog_compiler_wl='-Qoption ld '
9138           ;;
9139         *Sun\ C*)
9140           # Sun C 5.9
9141           lt_prog_compiler_pic='-KPIC'
9142           lt_prog_compiler_static='-Bstatic'
9143           lt_prog_compiler_wl='-Wl,'
9144           ;;
9145         *Intel*\ [CF]*Compiler*)
9146           lt_prog_compiler_wl='-Wl,'
9147           lt_prog_compiler_pic='-fPIC'
9148           lt_prog_compiler_static='-static'
9149           ;;
9150         *Portland\ Group*)
9151           lt_prog_compiler_wl='-Wl,'
9152           lt_prog_compiler_pic='-fpic'
9153           lt_prog_compiler_static='-Bstatic'
9154           ;;
9155         esac
9156         ;;
9157       esac
9158       ;;
9159
9160     newsos6)
9161       lt_prog_compiler_pic='-KPIC'
9162       lt_prog_compiler_static='-Bstatic'
9163       ;;
9164
9165     *nto* | *qnx*)
9166       # QNX uses GNU C++, but need to define -shared option too, otherwise
9167       # it will coredump.
9168       lt_prog_compiler_pic='-fPIC -shared'
9169       ;;
9170
9171     osf3* | osf4* | osf5*)
9172       lt_prog_compiler_wl='-Wl,'
9173       # All OSF/1 code is PIC.
9174       lt_prog_compiler_static='-non_shared'
9175       ;;
9176
9177     rdos*)
9178       lt_prog_compiler_static='-non_shared'
9179       ;;
9180
9181     solaris*)
9182       lt_prog_compiler_pic='-KPIC'
9183       lt_prog_compiler_static='-Bstatic'
9184       case $cc_basename in
9185       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9186         lt_prog_compiler_wl='-Qoption ld ';;
9187       *)
9188         lt_prog_compiler_wl='-Wl,';;
9189       esac
9190       ;;
9191
9192     sunos4*)
9193       lt_prog_compiler_wl='-Qoption ld '
9194       lt_prog_compiler_pic='-PIC'
9195       lt_prog_compiler_static='-Bstatic'
9196       ;;
9197
9198     sysv4 | sysv4.2uw2* | sysv4.3*)
9199       lt_prog_compiler_wl='-Wl,'
9200       lt_prog_compiler_pic='-KPIC'
9201       lt_prog_compiler_static='-Bstatic'
9202       ;;
9203
9204     sysv4*MP*)
9205       if test -d /usr/nec ;then
9206         lt_prog_compiler_pic='-Kconform_pic'
9207         lt_prog_compiler_static='-Bstatic'
9208       fi
9209       ;;
9210
9211     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9212       lt_prog_compiler_wl='-Wl,'
9213       lt_prog_compiler_pic='-KPIC'
9214       lt_prog_compiler_static='-Bstatic'
9215       ;;
9216
9217     unicos*)
9218       lt_prog_compiler_wl='-Wl,'
9219       lt_prog_compiler_can_build_shared=no
9220       ;;
9221
9222     uts4*)
9223       lt_prog_compiler_pic='-pic'
9224       lt_prog_compiler_static='-Bstatic'
9225       ;;
9226
9227     *)
9228       lt_prog_compiler_can_build_shared=no
9229       ;;
9230     esac
9231   fi
9232
9233 case $host_os in
9234   # For platforms which do not support PIC, -DPIC is meaningless:
9235   *djgpp*)
9236     lt_prog_compiler_pic=
9237     ;;
9238   *)
9239     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9240     ;;
9241 esac
9242
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9244 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9245 if ${lt_cv_prog_compiler_pic+:} false; then :
9246   $as_echo_n "(cached) " >&6
9247 else
9248   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9249 fi
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9251 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9252 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9253
9254 #
9255 # Check to make sure the PIC flag actually works.
9256 #
9257 if test -n "$lt_prog_compiler_pic"; then
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9259 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9260 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9261   $as_echo_n "(cached) " >&6
9262 else
9263   lt_cv_prog_compiler_pic_works=no
9264    ac_outfile=conftest.$ac_objext
9265    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9266    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9267    # Insert the option either (1) after the last *FLAGS variable, or
9268    # (2) before a word containing "conftest.", or (3) at the end.
9269    # Note that $ac_compile itself does not contain backslashes and begins
9270    # with a dollar sign (not a hyphen), so the echo should work correctly.
9271    # The option is referenced via a variable to avoid confusing sed.
9272    lt_compile=`echo "$ac_compile" | $SED \
9273    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9274    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9275    -e 's:$: $lt_compiler_flag:'`
9276    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9277    (eval "$lt_compile" 2>conftest.err)
9278    ac_status=$?
9279    cat conftest.err >&5
9280    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281    if (exit $ac_status) && test -s "$ac_outfile"; then
9282      # The compiler can only warn and ignore the option if not recognized
9283      # So say no if there are warnings other than the usual output.
9284      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9285      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9286      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9287        lt_cv_prog_compiler_pic_works=yes
9288      fi
9289    fi
9290    $RM conftest*
9291
9292 fi
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9294 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9295
9296 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9297     case $lt_prog_compiler_pic in
9298      "" | " "*) ;;
9299      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9300      esac
9301 else
9302     lt_prog_compiler_pic=
9303      lt_prog_compiler_can_build_shared=no
9304 fi
9305
9306 fi
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318 #
9319 # Check to make sure the static flag actually works.
9320 #
9321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9324 if ${lt_cv_prog_compiler_static_works+:} false; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   lt_cv_prog_compiler_static_works=no
9328    save_LDFLAGS="$LDFLAGS"
9329    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9330    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9331    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9332      # The linker can only warn and ignore the option if not recognized
9333      # So say no if there are warnings
9334      if test -s conftest.err; then
9335        # Append any errors to the config.log.
9336        cat conftest.err 1>&5
9337        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9338        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9339        if diff conftest.exp conftest.er2 >/dev/null; then
9340          lt_cv_prog_compiler_static_works=yes
9341        fi
9342      else
9343        lt_cv_prog_compiler_static_works=yes
9344      fi
9345    fi
9346    $RM -r conftest*
9347    LDFLAGS="$save_LDFLAGS"
9348
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9351 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9352
9353 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9354     :
9355 else
9356     lt_prog_compiler_static=
9357 fi
9358
9359
9360
9361
9362
9363
9364
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9366 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9367 if ${lt_cv_prog_compiler_c_o+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   lt_cv_prog_compiler_c_o=no
9371    $RM -r conftest 2>/dev/null
9372    mkdir conftest
9373    cd conftest
9374    mkdir out
9375    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9376
9377    lt_compiler_flag="-o out/conftest2.$ac_objext"
9378    # Insert the option either (1) after the last *FLAGS variable, or
9379    # (2) before a word containing "conftest.", or (3) at the end.
9380    # Note that $ac_compile itself does not contain backslashes and begins
9381    # with a dollar sign (not a hyphen), so the echo should work correctly.
9382    lt_compile=`echo "$ac_compile" | $SED \
9383    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385    -e 's:$: $lt_compiler_flag:'`
9386    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387    (eval "$lt_compile" 2>out/conftest.err)
9388    ac_status=$?
9389    cat out/conftest.err >&5
9390    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9392    then
9393      # The compiler can only warn and ignore the option if not recognized
9394      # So say no if there are warnings
9395      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9396      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9397      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9398        lt_cv_prog_compiler_c_o=yes
9399      fi
9400    fi
9401    chmod u+w . 2>&5
9402    $RM conftest*
9403    # SGI C++ compiler will create directory out/ii_files/ for
9404    # template instantiation
9405    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9406    $RM out/* && rmdir out
9407    cd ..
9408    $RM -r conftest
9409    $RM conftest*
9410
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9413 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9414
9415
9416
9417
9418
9419
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422 if ${lt_cv_prog_compiler_c_o+:} false; then :
9423   $as_echo_n "(cached) " >&6
9424 else
9425   lt_cv_prog_compiler_c_o=no
9426    $RM -r conftest 2>/dev/null
9427    mkdir conftest
9428    cd conftest
9429    mkdir out
9430    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9431
9432    lt_compiler_flag="-o out/conftest2.$ac_objext"
9433    # Insert the option either (1) after the last *FLAGS variable, or
9434    # (2) before a word containing "conftest.", or (3) at the end.
9435    # Note that $ac_compile itself does not contain backslashes and begins
9436    # with a dollar sign (not a hyphen), so the echo should work correctly.
9437    lt_compile=`echo "$ac_compile" | $SED \
9438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440    -e 's:$: $lt_compiler_flag:'`
9441    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9442    (eval "$lt_compile" 2>out/conftest.err)
9443    ac_status=$?
9444    cat out/conftest.err >&5
9445    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9447    then
9448      # The compiler can only warn and ignore the option if not recognized
9449      # So say no if there are warnings
9450      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9451      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9452      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9453        lt_cv_prog_compiler_c_o=yes
9454      fi
9455    fi
9456    chmod u+w . 2>&5
9457    $RM conftest*
9458    # SGI C++ compiler will create directory out/ii_files/ for
9459    # template instantiation
9460    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9461    $RM out/* && rmdir out
9462    cd ..
9463    $RM -r conftest
9464    $RM conftest*
9465
9466 fi
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9469
9470
9471
9472
9473 hard_links="nottested"
9474 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9475   # do not overwrite the value of need_locks provided by the user
9476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9477 $as_echo_n "checking if we can lock with hard links... " >&6; }
9478   hard_links=yes
9479   $RM conftest*
9480   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9481   touch conftest.a
9482   ln conftest.a conftest.b 2>&5 || hard_links=no
9483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9485 $as_echo "$hard_links" >&6; }
9486   if test "$hard_links" = no; then
9487     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9488 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9489     need_locks=warn
9490   fi
9491 else
9492   need_locks=no
9493 fi
9494
9495
9496
9497
9498
9499
9500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9502
9503   runpath_var=
9504   allow_undefined_flag=
9505   always_export_symbols=no
9506   archive_cmds=
9507   archive_expsym_cmds=
9508   compiler_needs_object=no
9509   enable_shared_with_static_runtimes=no
9510   export_dynamic_flag_spec=
9511   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9512   hardcode_automatic=no
9513   hardcode_direct=no
9514   hardcode_direct_absolute=no
9515   hardcode_libdir_flag_spec=
9516   hardcode_libdir_separator=
9517   hardcode_minus_L=no
9518   hardcode_shlibpath_var=unsupported
9519   inherit_rpath=no
9520   link_all_deplibs=unknown
9521   module_cmds=
9522   module_expsym_cmds=
9523   old_archive_from_new_cmds=
9524   old_archive_from_expsyms_cmds=
9525   thread_safe_flag_spec=
9526   whole_archive_flag_spec=
9527   # include_expsyms should be a list of space-separated symbols to be *always*
9528   # included in the symbol list
9529   include_expsyms=
9530   # exclude_expsyms can be an extended regexp of symbols to exclude
9531   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9532   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9533   # as well as any symbol that contains `d'.
9534   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9535   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9536   # platforms (ab)use it in PIC code, but their linkers get confused if
9537   # the symbol is explicitly referenced.  Since portable code cannot
9538   # rely on this symbol name, it's probably fine to never include it in
9539   # preloaded symbol tables.
9540   # Exclude shared library initialization/finalization symbols.
9541   extract_expsyms_cmds=
9542
9543   case $host_os in
9544   cygwin* | mingw* | pw32* | cegcc*)
9545     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9546     # When not using gcc, we currently assume that we are using
9547     # Microsoft Visual C++.
9548     if test "$GCC" != yes; then
9549       with_gnu_ld=no
9550     fi
9551     ;;
9552   interix*)
9553     # we just hope/assume this is gcc and not c89 (= MSVC++)
9554     with_gnu_ld=yes
9555     ;;
9556   openbsd*)
9557     with_gnu_ld=no
9558     ;;
9559   linux* | k*bsd*-gnu | gnu*)
9560     link_all_deplibs=no
9561     ;;
9562   esac
9563
9564   ld_shlibs=yes
9565
9566   # On some targets, GNU ld is compatible enough with the native linker
9567   # that we're better off using the native interface for both.
9568   lt_use_gnu_ld_interface=no
9569   if test "$with_gnu_ld" = yes; then
9570     case $host_os in
9571       aix*)
9572         # The AIX port of GNU ld has always aspired to compatibility
9573         # with the native linker.  However, as the warning in the GNU ld
9574         # block says, versions before 2.19.5* couldn't really create working
9575         # shared libraries, regardless of the interface used.
9576         case `$LD -v 2>&1` in
9577           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9578           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9579           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9580           *)
9581             lt_use_gnu_ld_interface=yes
9582             ;;
9583         esac
9584         ;;
9585       *)
9586         lt_use_gnu_ld_interface=yes
9587         ;;
9588     esac
9589   fi
9590
9591   if test "$lt_use_gnu_ld_interface" = yes; then
9592     # If archive_cmds runs LD, not CC, wlarc should be empty
9593     wlarc='${wl}'
9594
9595     # Set some defaults for GNU ld with shared library support. These
9596     # are reset later if shared libraries are not supported. Putting them
9597     # here allows them to be overridden if necessary.
9598     runpath_var=LD_RUN_PATH
9599     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9600     export_dynamic_flag_spec='${wl}--export-dynamic'
9601     # ancient GNU ld didn't support --whole-archive et. al.
9602     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9603       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9604     else
9605       whole_archive_flag_spec=
9606     fi
9607     supports_anon_versioning=no
9608     case `$LD -v 2>&1` in
9609       *GNU\ gold*) supports_anon_versioning=yes ;;
9610       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9611       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9612       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9613       *\ 2.11.*) ;; # other 2.11 versions
9614       *) supports_anon_versioning=yes ;;
9615     esac
9616
9617     # See if GNU ld supports shared libraries.
9618     case $host_os in
9619     aix[3-9]*)
9620       # On AIX/PPC, the GNU linker is very broken
9621       if test "$host_cpu" != ia64; then
9622         ld_shlibs=no
9623         cat <<_LT_EOF 1>&2
9624
9625 *** Warning: the GNU linker, at least up to release 2.19, is reported
9626 *** to be unable to reliably create shared libraries on AIX.
9627 *** Therefore, libtool is disabling shared libraries support.  If you
9628 *** really care for shared libraries, you may want to install binutils
9629 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9630 *** You will then need to restart the configuration process.
9631
9632 _LT_EOF
9633       fi
9634       ;;
9635
9636     amigaos*)
9637       case $host_cpu in
9638       powerpc)
9639             # see comment about AmigaOS4 .so support
9640             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641             archive_expsym_cmds=''
9642         ;;
9643       m68k)
9644             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)'
9645             hardcode_libdir_flag_spec='-L$libdir'
9646             hardcode_minus_L=yes
9647         ;;
9648       esac
9649       ;;
9650
9651     beos*)
9652       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9653         allow_undefined_flag=unsupported
9654         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9655         # support --undefined.  This deserves some investigation.  FIXME
9656         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657       else
9658         ld_shlibs=no
9659       fi
9660       ;;
9661
9662     cygwin* | mingw* | pw32* | cegcc*)
9663       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9664       # as there is no search path for DLLs.
9665       hardcode_libdir_flag_spec='-L$libdir'
9666       export_dynamic_flag_spec='${wl}--export-all-symbols'
9667       allow_undefined_flag=unsupported
9668       always_export_symbols=no
9669       enable_shared_with_static_runtimes=yes
9670       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9671       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9672
9673       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9674         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9675         # If the export-symbols file already is a .def file (1st line
9676         # is EXPORTS), use it as is; otherwise, prepend...
9677         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9678           cp $export_symbols $output_objdir/$soname.def;
9679         else
9680           echo EXPORTS > $output_objdir/$soname.def;
9681           cat $export_symbols >> $output_objdir/$soname.def;
9682         fi~
9683         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9684       else
9685         ld_shlibs=no
9686       fi
9687       ;;
9688
9689     haiku*)
9690       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691       link_all_deplibs=yes
9692       ;;
9693
9694     interix[3-9]*)
9695       hardcode_direct=no
9696       hardcode_shlibpath_var=no
9697       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9698       export_dynamic_flag_spec='${wl}-E'
9699       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9700       # Instead, shared libraries are loaded at an image base (0x10000000 by
9701       # default) and relocated if they conflict, which is a slow very memory
9702       # consuming and fragmenting process.  To avoid this, we pick a random,
9703       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9704       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9705       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9706       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'
9707       ;;
9708
9709     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9710       tmp_diet=no
9711       if test "$host_os" = linux-dietlibc; then
9712         case $cc_basename in
9713           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9714         esac
9715       fi
9716       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9717          && test "$tmp_diet" = no
9718       then
9719         tmp_addflag=' $pic_flag'
9720         tmp_sharedflag='-shared'
9721         case $cc_basename,$host_cpu in
9722         pgcc*)                          # Portland Group C compiler
9723           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'
9724           tmp_addflag=' $pic_flag'
9725           ;;
9726         pgf77* | pgf90* | pgf95* | pgfortran*)
9727                                         # Portland Group f77 and f90 compilers
9728           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'
9729           tmp_addflag=' $pic_flag -Mnomain' ;;
9730         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9731           tmp_addflag=' -i_dynamic' ;;
9732         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9733           tmp_addflag=' -i_dynamic -nofor_main' ;;
9734         ifc* | ifort*)                  # Intel Fortran compiler
9735           tmp_addflag=' -nofor_main' ;;
9736         lf95*)                          # Lahey Fortran 8.1
9737           whole_archive_flag_spec=
9738           tmp_sharedflag='--shared' ;;
9739         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9740           tmp_sharedflag='-qmkshrobj'
9741           tmp_addflag= ;;
9742         nvcc*)  # Cuda Compiler Driver 2.2
9743           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'
9744           compiler_needs_object=yes
9745           ;;
9746         esac
9747         case `$CC -V 2>&1 | sed 5q` in
9748         *Sun\ C*)                       # Sun C 5.9
9749           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'
9750           compiler_needs_object=yes
9751           tmp_sharedflag='-G' ;;
9752         *Sun\ F*)                       # Sun Fortran 8.3
9753           tmp_sharedflag='-G' ;;
9754         esac
9755         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9756
9757         if test "x$supports_anon_versioning" = xyes; then
9758           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9759             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9760             echo "local: *; };" >> $output_objdir/$libname.ver~
9761             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9762         fi
9763
9764         case $cc_basename in
9765         xlf* | bgf* | bgxlf* | mpixlf*)
9766           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9767           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9768           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9769           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9770           if test "x$supports_anon_versioning" = xyes; then
9771             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9772               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9773               echo "local: *; };" >> $output_objdir/$libname.ver~
9774               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9775           fi
9776           ;;
9777         esac
9778       else
9779         ld_shlibs=no
9780       fi
9781       ;;
9782
9783     netbsd* | netbsdelf*-gnu)
9784       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9785         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9786         wlarc=
9787       else
9788         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9790       fi
9791       ;;
9792
9793     solaris*)
9794       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9795         ld_shlibs=no
9796         cat <<_LT_EOF 1>&2
9797
9798 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9799 *** create shared libraries on Solaris systems.  Therefore, libtool
9800 *** is disabling shared libraries support.  We urge you to upgrade GNU
9801 *** binutils to release 2.9.1 or newer.  Another option is to modify
9802 *** your PATH or compiler configuration so that the native linker is
9803 *** used, and then restart.
9804
9805 _LT_EOF
9806       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9807         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9808         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9809       else
9810         ld_shlibs=no
9811       fi
9812       ;;
9813
9814     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9815       case `$LD -v 2>&1` in
9816         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9817         ld_shlibs=no
9818         cat <<_LT_EOF 1>&2
9819
9820 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9821 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9822 *** is disabling shared libraries support.  We urge you to upgrade GNU
9823 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9824 *** your PATH or compiler configuration so that the native linker is
9825 *** used, and then restart.
9826
9827 _LT_EOF
9828         ;;
9829         *)
9830           # For security reasons, it is highly recommended that you always
9831           # use absolute paths for naming shared libraries, and exclude the
9832           # DT_RUNPATH tag from executables and libraries.  But doing so
9833           # requires that you compile everything twice, which is a pain.
9834           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9835             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9838           else
9839             ld_shlibs=no
9840           fi
9841         ;;
9842       esac
9843       ;;
9844
9845     sunos4*)
9846       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9847       wlarc=
9848       hardcode_direct=yes
9849       hardcode_shlibpath_var=no
9850       ;;
9851
9852     *)
9853       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9854         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9855         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9856       else
9857         ld_shlibs=no
9858       fi
9859       ;;
9860     esac
9861
9862     if test "$ld_shlibs" = no; then
9863       runpath_var=
9864       hardcode_libdir_flag_spec=
9865       export_dynamic_flag_spec=
9866       whole_archive_flag_spec=
9867     fi
9868   else
9869     # PORTME fill in a description of your system's linker (not GNU ld)
9870     case $host_os in
9871     aix3*)
9872       allow_undefined_flag=unsupported
9873       always_export_symbols=yes
9874       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'
9875       # Note: this linker hardcodes the directories in LIBPATH if there
9876       # are no directories specified by -L.
9877       hardcode_minus_L=yes
9878       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9879         # Neither direct hardcoding nor static linking is supported with a
9880         # broken collect2.
9881         hardcode_direct=unsupported
9882       fi
9883       ;;
9884
9885     aix[4-9]*)
9886       if test "$host_cpu" = ia64; then
9887         # On IA64, the linker does run time linking by default, so we don't
9888         # have to do anything special.
9889         aix_use_runtimelinking=no
9890         exp_sym_flag='-Bexport'
9891         no_entry_flag=""
9892       else
9893         # If we're using GNU nm, then we don't want the "-C" option.
9894         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9895         # Also, AIX nm treats weak defined symbols like other global
9896         # defined symbols, whereas GNU nm marks them as "W".
9897         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9898           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'
9899         else
9900           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'
9901         fi
9902         aix_use_runtimelinking=no
9903
9904         # Test if we are trying to use run time linking or normal
9905         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9906         # need to do runtime linking.
9907         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9908           for ld_flag in $LDFLAGS; do
9909           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9910             aix_use_runtimelinking=yes
9911             break
9912           fi
9913           done
9914           ;;
9915         esac
9916
9917         exp_sym_flag='-bexport'
9918         no_entry_flag='-bnoentry'
9919       fi
9920
9921       # When large executables or shared objects are built, AIX ld can
9922       # have problems creating the table of contents.  If linking a library
9923       # or program results in "error TOC overflow" add -mminimal-toc to
9924       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9925       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9926
9927       archive_cmds=''
9928       hardcode_direct=yes
9929       hardcode_direct_absolute=yes
9930       hardcode_libdir_separator=':'
9931       link_all_deplibs=yes
9932       file_list_spec='${wl}-f,'
9933
9934       if test "$GCC" = yes; then
9935         case $host_os in aix4.[012]|aix4.[012].*)
9936         # We only want to do this on AIX 4.2 and lower, the check
9937         # below for broken collect2 doesn't work under 4.3+
9938           collect2name=`${CC} -print-prog-name=collect2`
9939           if test -f "$collect2name" &&
9940            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9941           then
9942           # We have reworked collect2
9943           :
9944           else
9945           # We have old collect2
9946           hardcode_direct=unsupported
9947           # It fails to find uninstalled libraries when the uninstalled
9948           # path is not listed in the libpath.  Setting hardcode_minus_L
9949           # to unsupported forces relinking
9950           hardcode_minus_L=yes
9951           hardcode_libdir_flag_spec='-L$libdir'
9952           hardcode_libdir_separator=
9953           fi
9954           ;;
9955         esac
9956         shared_flag='-shared'
9957         if test "$aix_use_runtimelinking" = yes; then
9958           shared_flag="$shared_flag "'${wl}-G'
9959         fi
9960         link_all_deplibs=no
9961       else
9962         # not using gcc
9963         if test "$host_cpu" = ia64; then
9964         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9965         # chokes on -Wl,-G. The following line is correct:
9966           shared_flag='-G'
9967         else
9968           if test "$aix_use_runtimelinking" = yes; then
9969             shared_flag='${wl}-G'
9970           else
9971             shared_flag='${wl}-bM:SRE'
9972           fi
9973         fi
9974       fi
9975
9976       export_dynamic_flag_spec='${wl}-bexpall'
9977       # It seems that -bexpall does not export symbols beginning with
9978       # underscore (_), so it is better to generate a list of symbols to export.
9979       always_export_symbols=yes
9980       if test "$aix_use_runtimelinking" = yes; then
9981         # Warning - without using the other runtime loading flags (-brtl),
9982         # -berok will link without error, but may produce a broken library.
9983         allow_undefined_flag='-berok'
9984         # Determine the default libpath from the value encoded in an
9985         # empty executable.
9986         if test "${lt_cv_aix_libpath+set}" = set; then
9987   aix_libpath=$lt_cv_aix_libpath
9988 else
9989   if ${lt_cv_aix_libpath_+:} false; then :
9990   $as_echo_n "(cached) " >&6
9991 else
9992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h.  */
9994
9995 int
9996 main ()
9997 {
9998
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 if ac_fn_c_try_link "$LINENO"; then :
10004
10005   lt_aix_libpath_sed='
10006       /Import File Strings/,/^$/ {
10007           /^0/ {
10008               s/^0  *\([^ ]*\) *$/\1/
10009               p
10010           }
10011       }'
10012   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10013   # Check for a 64-bit object if we didn't find anything.
10014   if test -z "$lt_cv_aix_libpath_"; then
10015     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10016   fi
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext \
10019     conftest$ac_exeext conftest.$ac_ext
10020   if test -z "$lt_cv_aix_libpath_"; then
10021     lt_cv_aix_libpath_="/usr/lib:/lib"
10022   fi
10023
10024 fi
10025
10026   aix_libpath=$lt_cv_aix_libpath_
10027 fi
10028
10029         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10030         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"
10031       else
10032         if test "$host_cpu" = ia64; then
10033           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10034           allow_undefined_flag="-z nodefs"
10035           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"
10036         else
10037          # Determine the default libpath from the value encoded in an
10038          # empty executable.
10039          if test "${lt_cv_aix_libpath+set}" = set; then
10040   aix_libpath=$lt_cv_aix_libpath
10041 else
10042   if ${lt_cv_aix_libpath_+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h.  */
10047
10048 int
10049 main ()
10050 {
10051
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 if ac_fn_c_try_link "$LINENO"; then :
10057
10058   lt_aix_libpath_sed='
10059       /Import File Strings/,/^$/ {
10060           /^0/ {
10061               s/^0  *\([^ ]*\) *$/\1/
10062               p
10063           }
10064       }'
10065   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10066   # Check for a 64-bit object if we didn't find anything.
10067   if test -z "$lt_cv_aix_libpath_"; then
10068     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10069   fi
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext \
10072     conftest$ac_exeext conftest.$ac_ext
10073   if test -z "$lt_cv_aix_libpath_"; then
10074     lt_cv_aix_libpath_="/usr/lib:/lib"
10075   fi
10076
10077 fi
10078
10079   aix_libpath=$lt_cv_aix_libpath_
10080 fi
10081
10082          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10083           # Warning - without using the other run time loading flags,
10084           # -berok will link without error, but may produce a broken library.
10085           no_undefined_flag=' ${wl}-bernotok'
10086           allow_undefined_flag=' ${wl}-berok'
10087           if test "$with_gnu_ld" = yes; then
10088             # We only use this code for GNU lds that support --whole-archive.
10089             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10090           else
10091             # Exported symbols can be pulled into shared objects from archives
10092             whole_archive_flag_spec='$convenience'
10093           fi
10094           archive_cmds_need_lc=yes
10095           # This is similar to how AIX traditionally builds its shared libraries.
10096           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'
10097         fi
10098       fi
10099       ;;
10100
10101     amigaos*)
10102       case $host_cpu in
10103       powerpc)
10104             # see comment about AmigaOS4 .so support
10105             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106             archive_expsym_cmds=''
10107         ;;
10108       m68k)
10109             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)'
10110             hardcode_libdir_flag_spec='-L$libdir'
10111             hardcode_minus_L=yes
10112         ;;
10113       esac
10114       ;;
10115
10116     bsdi[45]*)
10117       export_dynamic_flag_spec=-rdynamic
10118       ;;
10119
10120     cygwin* | mingw* | pw32* | cegcc*)
10121       # When not using gcc, we currently assume that we are using
10122       # Microsoft Visual C++.
10123       # hardcode_libdir_flag_spec is actually meaningless, as there is
10124       # no search path for DLLs.
10125       case $cc_basename in
10126       cl*)
10127         # Native MSVC
10128         hardcode_libdir_flag_spec=' '
10129         allow_undefined_flag=unsupported
10130         always_export_symbols=yes
10131         file_list_spec='@'
10132         # Tell ltmain to make .lib files, not .a files.
10133         libext=lib
10134         # Tell ltmain to make .dll files, not .so files.
10135         shrext_cmds=".dll"
10136         # FIXME: Setting linknames here is a bad hack.
10137         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10138         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10139             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10140           else
10141             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10142           fi~
10143           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10144           linknames='
10145         # The linker will not automatically build a static lib if we build a DLL.
10146         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10147         enable_shared_with_static_runtimes=yes
10148         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10149         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10150         # Don't use ranlib
10151         old_postinstall_cmds='chmod 644 $oldlib'
10152         postlink_cmds='lt_outputfile="@OUTPUT@"~
10153           lt_tool_outputfile="@TOOL_OUTPUT@"~
10154           case $lt_outputfile in
10155             *.exe|*.EXE) ;;
10156             *)
10157               lt_outputfile="$lt_outputfile.exe"
10158               lt_tool_outputfile="$lt_tool_outputfile.exe"
10159               ;;
10160           esac~
10161           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10162             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10163             $RM "$lt_outputfile.manifest";
10164           fi'
10165         ;;
10166       *)
10167         # Assume MSVC wrapper
10168         hardcode_libdir_flag_spec=' '
10169         allow_undefined_flag=unsupported
10170         # Tell ltmain to make .lib files, not .a files.
10171         libext=lib
10172         # Tell ltmain to make .dll files, not .so files.
10173         shrext_cmds=".dll"
10174         # FIXME: Setting linknames here is a bad hack.
10175         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10176         # The linker will automatically build a .lib file if we build a DLL.
10177         old_archive_from_new_cmds='true'
10178         # FIXME: Should let the user specify the lib program.
10179         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10180         enable_shared_with_static_runtimes=yes
10181         ;;
10182       esac
10183       ;;
10184
10185     darwin* | rhapsody*)
10186
10187
10188   archive_cmds_need_lc=no
10189   hardcode_direct=no
10190   hardcode_automatic=yes
10191   hardcode_shlibpath_var=unsupported
10192   if test "$lt_cv_ld_force_load" = "yes"; then
10193     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\"`'
10194
10195   else
10196     whole_archive_flag_spec=''
10197   fi
10198   link_all_deplibs=yes
10199   allow_undefined_flag="$_lt_dar_allow_undefined"
10200   case $cc_basename in
10201      ifort*) _lt_dar_can_shared=yes ;;
10202      *) _lt_dar_can_shared=$GCC ;;
10203   esac
10204   if test "$_lt_dar_can_shared" = "yes"; then
10205     output_verbose_link_cmd=func_echo_all
10206     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10207     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10208     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}"
10209     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}"
10210
10211   else
10212   ld_shlibs=no
10213   fi
10214
10215       ;;
10216
10217     dgux*)
10218       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219       hardcode_libdir_flag_spec='-L$libdir'
10220       hardcode_shlibpath_var=no
10221       ;;
10222
10223     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10224     # support.  Future versions do this automatically, but an explicit c++rt0.o
10225     # does not break anything, and helps significantly (at the cost of a little
10226     # extra space).
10227     freebsd2.2*)
10228       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10229       hardcode_libdir_flag_spec='-R$libdir'
10230       hardcode_direct=yes
10231       hardcode_shlibpath_var=no
10232       ;;
10233
10234     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10235     freebsd2.*)
10236       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237       hardcode_direct=yes
10238       hardcode_minus_L=yes
10239       hardcode_shlibpath_var=no
10240       ;;
10241
10242     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10243     freebsd* | dragonfly*)
10244       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10245       hardcode_libdir_flag_spec='-R$libdir'
10246       hardcode_direct=yes
10247       hardcode_shlibpath_var=no
10248       ;;
10249
10250     hpux9*)
10251       if test "$GCC" = yes; then
10252         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10253       else
10254         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'
10255       fi
10256       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10257       hardcode_libdir_separator=:
10258       hardcode_direct=yes
10259
10260       # hardcode_minus_L: Not really in the search PATH,
10261       # but as the default location of the library.
10262       hardcode_minus_L=yes
10263       export_dynamic_flag_spec='${wl}-E'
10264       ;;
10265
10266     hpux10*)
10267       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10268         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10269       else
10270         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10271       fi
10272       if test "$with_gnu_ld" = no; then
10273         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10274         hardcode_libdir_separator=:
10275         hardcode_direct=yes
10276         hardcode_direct_absolute=yes
10277         export_dynamic_flag_spec='${wl}-E'
10278         # hardcode_minus_L: Not really in the search PATH,
10279         # but as the default location of the library.
10280         hardcode_minus_L=yes
10281       fi
10282       ;;
10283
10284     hpux11*)
10285       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10286         case $host_cpu in
10287         hppa*64*)
10288           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10289           ;;
10290         ia64*)
10291           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10292           ;;
10293         *)
10294           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10295           ;;
10296         esac
10297       else
10298         case $host_cpu in
10299         hppa*64*)
10300           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10301           ;;
10302         ia64*)
10303           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10304           ;;
10305         *)
10306
10307           # Older versions of the 11.00 compiler do not understand -b yet
10308           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10309           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10310 $as_echo_n "checking if $CC understands -b... " >&6; }
10311 if ${lt_cv_prog_compiler__b+:} false; then :
10312   $as_echo_n "(cached) " >&6
10313 else
10314   lt_cv_prog_compiler__b=no
10315    save_LDFLAGS="$LDFLAGS"
10316    LDFLAGS="$LDFLAGS -b"
10317    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10318    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10319      # The linker can only warn and ignore the option if not recognized
10320      # So say no if there are warnings
10321      if test -s conftest.err; then
10322        # Append any errors to the config.log.
10323        cat conftest.err 1>&5
10324        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10325        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10326        if diff conftest.exp conftest.er2 >/dev/null; then
10327          lt_cv_prog_compiler__b=yes
10328        fi
10329      else
10330        lt_cv_prog_compiler__b=yes
10331      fi
10332    fi
10333    $RM -r conftest*
10334    LDFLAGS="$save_LDFLAGS"
10335
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10338 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10339
10340 if test x"$lt_cv_prog_compiler__b" = xyes; then
10341     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10342 else
10343     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10344 fi
10345
10346           ;;
10347         esac
10348       fi
10349       if test "$with_gnu_ld" = no; then
10350         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10351         hardcode_libdir_separator=:
10352
10353         case $host_cpu in
10354         hppa*64*|ia64*)
10355           hardcode_direct=no
10356           hardcode_shlibpath_var=no
10357           ;;
10358         *)
10359           hardcode_direct=yes
10360           hardcode_direct_absolute=yes
10361           export_dynamic_flag_spec='${wl}-E'
10362
10363           # hardcode_minus_L: Not really in the search PATH,
10364           # but as the default location of the library.
10365           hardcode_minus_L=yes
10366           ;;
10367         esac
10368       fi
10369       ;;
10370
10371     irix5* | irix6* | nonstopux*)
10372       if test "$GCC" = yes; then
10373         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10374         # Try to use the -exported_symbol ld option, if it does not
10375         # work, assume that -exports_file does not work either and
10376         # implicitly export all symbols.
10377         # This should be the same for all languages, so no per-tag cache variable.
10378         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10379 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10380 if ${lt_cv_irix_exported_symbol+:} false; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   save_LDFLAGS="$LDFLAGS"
10384            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10385            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h.  */
10387 int foo (void) { return 0; }
10388 _ACEOF
10389 if ac_fn_c_try_link "$LINENO"; then :
10390   lt_cv_irix_exported_symbol=yes
10391 else
10392   lt_cv_irix_exported_symbol=no
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext \
10395     conftest$ac_exeext conftest.$ac_ext
10396            LDFLAGS="$save_LDFLAGS"
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10399 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10400         if test "$lt_cv_irix_exported_symbol" = yes; then
10401           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10402         fi
10403       else
10404         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'
10405         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'
10406       fi
10407       archive_cmds_need_lc='no'
10408       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10409       hardcode_libdir_separator=:
10410       inherit_rpath=yes
10411       link_all_deplibs=yes
10412       ;;
10413
10414     netbsd* | netbsdelf*-gnu)
10415       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10416         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10417       else
10418         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10419       fi
10420       hardcode_libdir_flag_spec='-R$libdir'
10421       hardcode_direct=yes
10422       hardcode_shlibpath_var=no
10423       ;;
10424
10425     newsos6)
10426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427       hardcode_direct=yes
10428       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10429       hardcode_libdir_separator=:
10430       hardcode_shlibpath_var=no
10431       ;;
10432
10433     *nto* | *qnx*)
10434       ;;
10435
10436     openbsd*)
10437       if test -f /usr/libexec/ld.so; then
10438         hardcode_direct=yes
10439         hardcode_shlibpath_var=no
10440         hardcode_direct_absolute=yes
10441         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10442           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10443           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10444           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10445           export_dynamic_flag_spec='${wl}-E'
10446         else
10447           case $host_os in
10448            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10449              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10450              hardcode_libdir_flag_spec='-R$libdir'
10451              ;;
10452            *)
10453              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10455              ;;
10456           esac
10457         fi
10458       else
10459         ld_shlibs=no
10460       fi
10461       ;;
10462
10463     os2*)
10464       hardcode_libdir_flag_spec='-L$libdir'
10465       hardcode_minus_L=yes
10466       allow_undefined_flag=unsupported
10467       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'
10468       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10469       ;;
10470
10471     osf3*)
10472       if test "$GCC" = yes; then
10473         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10474         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'
10475       else
10476         allow_undefined_flag=' -expect_unresolved \*'
10477         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'
10478       fi
10479       archive_cmds_need_lc='no'
10480       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10481       hardcode_libdir_separator=:
10482       ;;
10483
10484     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10485       if test "$GCC" = yes; then
10486         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10487         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10488         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10489       else
10490         allow_undefined_flag=' -expect_unresolved \*'
10491         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'
10492         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~
10493         $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'
10494
10495         # Both c and cxx compiler support -rpath directly
10496         hardcode_libdir_flag_spec='-rpath $libdir'
10497       fi
10498       archive_cmds_need_lc='no'
10499       hardcode_libdir_separator=:
10500       ;;
10501
10502     solaris*)
10503       no_undefined_flag=' -z defs'
10504       if test "$GCC" = yes; then
10505         wlarc='${wl}'
10506         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10507         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10509       else
10510         case `$CC -V 2>&1` in
10511         *"Compilers 5.0"*)
10512           wlarc=''
10513           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10515           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10516           ;;
10517         *)
10518           wlarc='${wl}'
10519           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10520           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10522           ;;
10523         esac
10524       fi
10525       hardcode_libdir_flag_spec='-R$libdir'
10526       hardcode_shlibpath_var=no
10527       case $host_os in
10528       solaris2.[0-5] | solaris2.[0-5].*) ;;
10529       *)
10530         # The compiler driver will combine and reorder linker options,
10531         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10532         # but is careful enough not to reorder.
10533         # Supported since Solaris 2.6 (maybe 2.5.1?)
10534         if test "$GCC" = yes; then
10535           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10536         else
10537           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10538         fi
10539         ;;
10540       esac
10541       link_all_deplibs=yes
10542       ;;
10543
10544     sunos4*)
10545       if test "x$host_vendor" = xsequent; then
10546         # Use $CC to link under sequent, because it throws in some extra .o
10547         # files that make .init and .fini sections work.
10548         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10549       else
10550         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10551       fi
10552       hardcode_libdir_flag_spec='-L$libdir'
10553       hardcode_direct=yes
10554       hardcode_minus_L=yes
10555       hardcode_shlibpath_var=no
10556       ;;
10557
10558     sysv4)
10559       case $host_vendor in
10560         sni)
10561           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562           hardcode_direct=yes # is this really true???
10563         ;;
10564         siemens)
10565           ## LD is ld it makes a PLAMLIB
10566           ## CC just makes a GrossModule.
10567           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10568           reload_cmds='$CC -r -o $output$reload_objs'
10569           hardcode_direct=no
10570         ;;
10571         motorola)
10572           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10574         ;;
10575       esac
10576       runpath_var='LD_RUN_PATH'
10577       hardcode_shlibpath_var=no
10578       ;;
10579
10580     sysv4.3*)
10581       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582       hardcode_shlibpath_var=no
10583       export_dynamic_flag_spec='-Bexport'
10584       ;;
10585
10586     sysv4*MP*)
10587       if test -d /usr/nec; then
10588         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589         hardcode_shlibpath_var=no
10590         runpath_var=LD_RUN_PATH
10591         hardcode_runpath_var=yes
10592         ld_shlibs=yes
10593       fi
10594       ;;
10595
10596     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10597       no_undefined_flag='${wl}-z,text'
10598       archive_cmds_need_lc=no
10599       hardcode_shlibpath_var=no
10600       runpath_var='LD_RUN_PATH'
10601
10602       if test "$GCC" = yes; then
10603         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605       else
10606         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608       fi
10609       ;;
10610
10611     sysv5* | sco3.2v5* | sco5v6*)
10612       # Note: We can NOT use -z defs as we might desire, because we do not
10613       # link with -lc, and that would cause any symbols used from libc to
10614       # always be unresolved, which means just about no library would
10615       # ever link correctly.  If we're not using GNU ld we use -z text
10616       # though, which does catch some bad symbols but isn't as heavy-handed
10617       # as -z defs.
10618       no_undefined_flag='${wl}-z,text'
10619       allow_undefined_flag='${wl}-z,nodefs'
10620       archive_cmds_need_lc=no
10621       hardcode_shlibpath_var=no
10622       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10623       hardcode_libdir_separator=':'
10624       link_all_deplibs=yes
10625       export_dynamic_flag_spec='${wl}-Bexport'
10626       runpath_var='LD_RUN_PATH'
10627
10628       if test "$GCC" = yes; then
10629         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631       else
10632         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634       fi
10635       ;;
10636
10637     uts4*)
10638       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639       hardcode_libdir_flag_spec='-L$libdir'
10640       hardcode_shlibpath_var=no
10641       ;;
10642
10643     *)
10644       ld_shlibs=no
10645       ;;
10646     esac
10647
10648     if test x$host_vendor = xsni; then
10649       case $host in
10650       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10651         export_dynamic_flag_spec='${wl}-Blargedynsym'
10652         ;;
10653       esac
10654     fi
10655   fi
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10658 $as_echo "$ld_shlibs" >&6; }
10659 test "$ld_shlibs" = no && can_build_shared=no
10660
10661 with_gnu_ld=$with_gnu_ld
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677 #
10678 # Do we need to explicitly link libc?
10679 #
10680 case "x$archive_cmds_need_lc" in
10681 x|xyes)
10682   # Assume -lc should be added
10683   archive_cmds_need_lc=yes
10684
10685   if test "$enable_shared" = yes && test "$GCC" = yes; then
10686     case $archive_cmds in
10687     *'~'*)
10688       # FIXME: we may have to deal with multi-command sequences.
10689       ;;
10690     '$CC '*)
10691       # Test whether the compiler implicitly links with -lc since on some
10692       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10693       # to ld, don't add -lc before -lgcc.
10694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10696 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699   $RM conftest*
10700         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10701
10702         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10703   (eval $ac_compile) 2>&5
10704   ac_status=$?
10705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10706   test $ac_status = 0; } 2>conftest.err; then
10707           soname=conftest
10708           lib=conftest
10709           libobjs=conftest.$ac_objext
10710           deplibs=
10711           wl=$lt_prog_compiler_wl
10712           pic_flag=$lt_prog_compiler_pic
10713           compiler_flags=-v
10714           linker_flags=-v
10715           verstring=
10716           output_objdir=.
10717           libname=conftest
10718           lt_save_allow_undefined_flag=$allow_undefined_flag
10719           allow_undefined_flag=
10720           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10721   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10722   ac_status=$?
10723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10724   test $ac_status = 0; }
10725           then
10726             lt_cv_archive_cmds_need_lc=no
10727           else
10728             lt_cv_archive_cmds_need_lc=yes
10729           fi
10730           allow_undefined_flag=$lt_save_allow_undefined_flag
10731         else
10732           cat conftest.err 1>&5
10733         fi
10734         $RM conftest*
10735
10736 fi
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10738 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10739       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10740       ;;
10741     esac
10742   fi
10743   ;;
10744 esac
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10898 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10899
10900 if test "$GCC" = yes; then
10901   case $host_os in
10902     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10903     *) lt_awk_arg="/^libraries:/" ;;
10904   esac
10905   case $host_os in
10906     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10907     *) lt_sed_strip_eq="s,=/,/,g" ;;
10908   esac
10909   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10910   case $lt_search_path_spec in
10911   *\;*)
10912     # if the path contains ";" then we assume it to be the separator
10913     # otherwise default to the standard path separator (i.e. ":") - it is
10914     # assumed that no part of a normal pathname contains ";" but that should
10915     # okay in the real world where ";" in dirpaths is itself problematic.
10916     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10917     ;;
10918   *)
10919     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10920     ;;
10921   esac
10922   # Ok, now we have the path, separated by spaces, we can step through it
10923   # and add multilib dir if necessary.
10924   lt_tmp_lt_search_path_spec=
10925   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10926   for lt_sys_path in $lt_search_path_spec; do
10927     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10928       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10929     else
10930       test -d "$lt_sys_path" && \
10931         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10932     fi
10933   done
10934   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10935 BEGIN {RS=" "; FS="/|\n";} {
10936   lt_foo="";
10937   lt_count=0;
10938   for (lt_i = NF; lt_i > 0; lt_i--) {
10939     if ($lt_i != "" && $lt_i != ".") {
10940       if ($lt_i == "..") {
10941         lt_count++;
10942       } else {
10943         if (lt_count == 0) {
10944           lt_foo="/" $lt_i lt_foo;
10945         } else {
10946           lt_count--;
10947         }
10948       }
10949     }
10950   }
10951   if (lt_foo != "") { lt_freq[lt_foo]++; }
10952   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10953 }'`
10954   # AWK program above erroneously prepends '/' to C:/dos/paths
10955   # for these hosts.
10956   case $host_os in
10957     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10958       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10959   esac
10960   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10961 else
10962   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10963 fi
10964 library_names_spec=
10965 libname_spec='lib$name'
10966 soname_spec=
10967 shrext_cmds=".so"
10968 postinstall_cmds=
10969 postuninstall_cmds=
10970 finish_cmds=
10971 finish_eval=
10972 shlibpath_var=
10973 shlibpath_overrides_runpath=unknown
10974 version_type=none
10975 dynamic_linker="$host_os ld.so"
10976 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10977 need_lib_prefix=unknown
10978 hardcode_into_libs=no
10979
10980 # when you set need_version to no, make sure it does not cause -set_version
10981 # flags to be left without arguments
10982 need_version=unknown
10983
10984 case $host_os in
10985 aix3*)
10986   version_type=linux # correct to gnu/linux during the next big refactor
10987   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10988   shlibpath_var=LIBPATH
10989
10990   # AIX 3 has no versioning support, so we append a major version to the name.
10991   soname_spec='${libname}${release}${shared_ext}$major'
10992   ;;
10993
10994 aix[4-9]*)
10995   version_type=linux # correct to gnu/linux during the next big refactor
10996   need_lib_prefix=no
10997   need_version=no
10998   hardcode_into_libs=yes
10999   if test "$host_cpu" = ia64; then
11000     # AIX 5 supports IA64
11001     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11002     shlibpath_var=LD_LIBRARY_PATH
11003   else
11004     # With GCC up to 2.95.x, collect2 would create an import file
11005     # for dependence libraries.  The import file would start with
11006     # the line `#! .'.  This would cause the generated library to
11007     # depend on `.', always an invalid library.  This was fixed in
11008     # development snapshots of GCC prior to 3.0.
11009     case $host_os in
11010       aix4 | aix4.[01] | aix4.[01].*)
11011       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11012            echo ' yes '
11013            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11014         :
11015       else
11016         can_build_shared=no
11017       fi
11018       ;;
11019     esac
11020     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11021     # soname into executable. Probably we can add versioning support to
11022     # collect2, so additional links can be useful in future.
11023     if test "$aix_use_runtimelinking" = yes; then
11024       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11025       # instead of lib<name>.a to let people know that these are not
11026       # typical AIX shared libraries.
11027       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028     else
11029       # We preserve .a as extension for shared libraries through AIX4.2
11030       # and later when we are not doing run time linking.
11031       library_names_spec='${libname}${release}.a $libname.a'
11032       soname_spec='${libname}${release}${shared_ext}$major'
11033     fi
11034     shlibpath_var=LIBPATH
11035   fi
11036   ;;
11037
11038 amigaos*)
11039   case $host_cpu in
11040   powerpc)
11041     # Since July 2007 AmigaOS4 officially supports .so libraries.
11042     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044     ;;
11045   m68k)
11046     library_names_spec='$libname.ixlibrary $libname.a'
11047     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11048     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'
11049     ;;
11050   esac
11051   ;;
11052
11053 beos*)
11054   library_names_spec='${libname}${shared_ext}'
11055   dynamic_linker="$host_os ld.so"
11056   shlibpath_var=LIBRARY_PATH
11057   ;;
11058
11059 bsdi[45]*)
11060   version_type=linux # correct to gnu/linux during the next big refactor
11061   need_version=no
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063   soname_spec='${libname}${release}${shared_ext}$major'
11064   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11065   shlibpath_var=LD_LIBRARY_PATH
11066   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11067   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11068   # the default ld.so.conf also contains /usr/contrib/lib and
11069   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11070   # libtool to hard-code these into programs
11071   ;;
11072
11073 cygwin* | mingw* | pw32* | cegcc*)
11074   version_type=windows
11075   shrext_cmds=".dll"
11076   need_version=no
11077   need_lib_prefix=no
11078
11079   case $GCC,$cc_basename in
11080   yes,*)
11081     # gcc
11082     library_names_spec='$libname.dll.a'
11083     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11084     postinstall_cmds='base_file=`basename \${file}`~
11085       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11086       dldir=$destdir/`dirname \$dlpath`~
11087       test -d \$dldir || mkdir -p \$dldir~
11088       $install_prog $dir/$dlname \$dldir/$dlname~
11089       chmod a+x \$dldir/$dlname~
11090       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11091         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11092       fi'
11093     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11094       dlpath=$dir/\$dldll~
11095        $RM \$dlpath'
11096     shlibpath_overrides_runpath=yes
11097
11098     case $host_os in
11099     cygwin*)
11100       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11101       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11102
11103       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11104       ;;
11105     mingw* | cegcc*)
11106       # MinGW DLLs use traditional 'lib' prefix
11107       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11108       ;;
11109     pw32*)
11110       # pw32 DLLs use 'pw' prefix rather than 'lib'
11111       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11112       ;;
11113     esac
11114     dynamic_linker='Win32 ld.exe'
11115     ;;
11116
11117   *,cl*)
11118     # Native MSVC
11119     libname_spec='$name'
11120     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11121     library_names_spec='${libname}.dll.lib'
11122
11123     case $build_os in
11124     mingw*)
11125       sys_lib_search_path_spec=
11126       lt_save_ifs=$IFS
11127       IFS=';'
11128       for lt_path in $LIB
11129       do
11130         IFS=$lt_save_ifs
11131         # Let DOS variable expansion print the short 8.3 style file name.
11132         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11133         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11134       done
11135       IFS=$lt_save_ifs
11136       # Convert to MSYS style.
11137       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11138       ;;
11139     cygwin*)
11140       # Convert to unix form, then to dos form, then back to unix form
11141       # but this time dos style (no spaces!) so that the unix form looks
11142       # like /cygdrive/c/PROGRA~1:/cygdr...
11143       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11144       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11145       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11146       ;;
11147     *)
11148       sys_lib_search_path_spec="$LIB"
11149       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11150         # It is most probably a Windows format PATH.
11151         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11152       else
11153         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11154       fi
11155       # FIXME: find the short name or the path components, as spaces are
11156       # common. (e.g. "Program Files" -> "PROGRA~1")
11157       ;;
11158     esac
11159
11160     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11161     postinstall_cmds='base_file=`basename \${file}`~
11162       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11163       dldir=$destdir/`dirname \$dlpath`~
11164       test -d \$dldir || mkdir -p \$dldir~
11165       $install_prog $dir/$dlname \$dldir/$dlname'
11166     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11167       dlpath=$dir/\$dldll~
11168        $RM \$dlpath'
11169     shlibpath_overrides_runpath=yes
11170     dynamic_linker='Win32 link.exe'
11171     ;;
11172
11173   *)
11174     # Assume MSVC wrapper
11175     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11176     dynamic_linker='Win32 ld.exe'
11177     ;;
11178   esac
11179   # FIXME: first we should search . and the directory the executable is in
11180   shlibpath_var=PATH
11181   ;;
11182
11183 darwin* | rhapsody*)
11184   dynamic_linker="$host_os dyld"
11185   version_type=darwin
11186   need_lib_prefix=no
11187   need_version=no
11188   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11189   soname_spec='${libname}${release}${major}$shared_ext'
11190   shlibpath_overrides_runpath=yes
11191   shlibpath_var=DYLD_LIBRARY_PATH
11192   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11193
11194   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11195   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11196   ;;
11197
11198 dgux*)
11199   version_type=linux # correct to gnu/linux during the next big refactor
11200   need_lib_prefix=no
11201   need_version=no
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11203   soname_spec='${libname}${release}${shared_ext}$major'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   ;;
11206
11207 freebsd* | dragonfly*)
11208   # DragonFly does not have aout.  When/if they implement a new
11209   # versioning mechanism, adjust this.
11210   if test -x /usr/bin/objformat; then
11211     objformat=`/usr/bin/objformat`
11212   else
11213     case $host_os in
11214     freebsd[23].*) objformat=aout ;;
11215     *) objformat=elf ;;
11216     esac
11217   fi
11218   version_type=freebsd-$objformat
11219   case $version_type in
11220     freebsd-elf*)
11221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11222       need_version=no
11223       need_lib_prefix=no
11224       ;;
11225     freebsd-*)
11226       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11227       need_version=yes
11228       ;;
11229   esac
11230   shlibpath_var=LD_LIBRARY_PATH
11231   case $host_os in
11232   freebsd2.*)
11233     shlibpath_overrides_runpath=yes
11234     ;;
11235   freebsd3.[01]* | freebsdelf3.[01]*)
11236     shlibpath_overrides_runpath=yes
11237     hardcode_into_libs=yes
11238     ;;
11239   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11240   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11241     shlibpath_overrides_runpath=no
11242     hardcode_into_libs=yes
11243     ;;
11244   *) # from 4.6 on, and DragonFly
11245     shlibpath_overrides_runpath=yes
11246     hardcode_into_libs=yes
11247     ;;
11248   esac
11249   ;;
11250
11251 gnu*)
11252   version_type=linux # correct to gnu/linux during the next big refactor
11253   need_lib_prefix=no
11254   need_version=no
11255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11256   soname_spec='${libname}${release}${shared_ext}$major'
11257   shlibpath_var=LD_LIBRARY_PATH
11258   shlibpath_overrides_runpath=no
11259   hardcode_into_libs=yes
11260   ;;
11261
11262 haiku*)
11263   version_type=linux # correct to gnu/linux during the next big refactor
11264   need_lib_prefix=no
11265   need_version=no
11266   dynamic_linker="$host_os runtime_loader"
11267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11268   soname_spec='${libname}${release}${shared_ext}$major'
11269   shlibpath_var=LIBRARY_PATH
11270   shlibpath_overrides_runpath=yes
11271   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11272   hardcode_into_libs=yes
11273   ;;
11274
11275 hpux9* | hpux10* | hpux11*)
11276   # Give a soname corresponding to the major version so that dld.sl refuses to
11277   # link against other versions.
11278   version_type=sunos
11279   need_lib_prefix=no
11280   need_version=no
11281   case $host_cpu in
11282   ia64*)
11283     shrext_cmds='.so'
11284     hardcode_into_libs=yes
11285     dynamic_linker="$host_os dld.so"
11286     shlibpath_var=LD_LIBRARY_PATH
11287     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289     soname_spec='${libname}${release}${shared_ext}$major'
11290     if test "X$HPUX_IA64_MODE" = X32; then
11291       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11292     else
11293       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11294     fi
11295     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11296     ;;
11297   hppa*64*)
11298     shrext_cmds='.sl'
11299     hardcode_into_libs=yes
11300     dynamic_linker="$host_os dld.sl"
11301     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11302     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304     soname_spec='${libname}${release}${shared_ext}$major'
11305     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11306     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11307     ;;
11308   *)
11309     shrext_cmds='.sl'
11310     dynamic_linker="$host_os dld.sl"
11311     shlibpath_var=SHLIB_PATH
11312     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314     soname_spec='${libname}${release}${shared_ext}$major'
11315     ;;
11316   esac
11317   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11318   postinstall_cmds='chmod 555 $lib'
11319   # or fails outright, so override atomically:
11320   install_override_mode=555
11321   ;;
11322
11323 interix[3-9]*)
11324   version_type=linux # correct to gnu/linux during the next big refactor
11325   need_lib_prefix=no
11326   need_version=no
11327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11328   soname_spec='${libname}${release}${shared_ext}$major'
11329   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11330   shlibpath_var=LD_LIBRARY_PATH
11331   shlibpath_overrides_runpath=no
11332   hardcode_into_libs=yes
11333   ;;
11334
11335 irix5* | irix6* | nonstopux*)
11336   case $host_os in
11337     nonstopux*) version_type=nonstopux ;;
11338     *)
11339         if test "$lt_cv_prog_gnu_ld" = yes; then
11340                 version_type=linux # correct to gnu/linux during the next big refactor
11341         else
11342                 version_type=irix
11343         fi ;;
11344   esac
11345   need_lib_prefix=no
11346   need_version=no
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11349   case $host_os in
11350   irix5* | nonstopux*)
11351     libsuff= shlibsuff=
11352     ;;
11353   *)
11354     case $LD in # libtool.m4 will add one of these switches to LD
11355     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11356       libsuff= shlibsuff= libmagic=32-bit;;
11357     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11358       libsuff=32 shlibsuff=N32 libmagic=N32;;
11359     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11360       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11361     *) libsuff= shlibsuff= libmagic=never-match;;
11362     esac
11363     ;;
11364   esac
11365   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11366   shlibpath_overrides_runpath=no
11367   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11368   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11369   hardcode_into_libs=yes
11370   ;;
11371
11372 # No shared lib support for Linux oldld, aout, or coff.
11373 linux*oldld* | linux*aout* | linux*coff*)
11374   dynamic_linker=no
11375   ;;
11376
11377 # This must be glibc/ELF.
11378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11379   version_type=linux # correct to gnu/linux during the next big refactor
11380   need_lib_prefix=no
11381   need_version=no
11382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383   soname_spec='${libname}${release}${shared_ext}$major'
11384   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385   shlibpath_var=LD_LIBRARY_PATH
11386   shlibpath_overrides_runpath=no
11387
11388   # Some binutils ld are patched to set DT_RUNPATH
11389   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11390   $as_echo_n "(cached) " >&6
11391 else
11392   lt_cv_shlibpath_overrides_runpath=no
11393     save_LDFLAGS=$LDFLAGS
11394     save_libdir=$libdir
11395     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11396          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h.  */
11399
11400 int
11401 main ()
11402 {
11403
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11410   lt_cv_shlibpath_overrides_runpath=yes
11411 fi
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414     conftest$ac_exeext conftest.$ac_ext
11415     LDFLAGS=$save_LDFLAGS
11416     libdir=$save_libdir
11417
11418 fi
11419
11420   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11421
11422   # This implies no fast_install, which is unacceptable.
11423   # Some rework will be needed to allow for fast_install
11424   # before this can be enabled.
11425   hardcode_into_libs=yes
11426
11427   # Append ld.so.conf contents to the search path
11428   if test -f /etc/ld.so.conf; then
11429     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' ' '`
11430     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11431   fi
11432
11433   # We used to test for /lib/ld.so.1 and disable shared libraries on
11434   # powerpc, because MkLinux only supported shared libraries with the
11435   # GNU dynamic linker.  Since this was broken with cross compilers,
11436   # most powerpc-linux boxes support dynamic linking these days and
11437   # people can always --disable-shared, the test was removed, and we
11438   # assume the GNU/Linux dynamic linker is in use.
11439   dynamic_linker='GNU/Linux ld.so'
11440   ;;
11441
11442 netbsdelf*-gnu)
11443   version_type=linux
11444   need_lib_prefix=no
11445   need_version=no
11446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11447   soname_spec='${libname}${release}${shared_ext}$major'
11448   shlibpath_var=LD_LIBRARY_PATH
11449   shlibpath_overrides_runpath=no
11450   hardcode_into_libs=yes
11451   dynamic_linker='NetBSD ld.elf_so'
11452   ;;
11453
11454 netbsd*)
11455   version_type=sunos
11456   need_lib_prefix=no
11457   need_version=no
11458   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11460     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11461     dynamic_linker='NetBSD (a.out) ld.so'
11462   else
11463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11464     soname_spec='${libname}${release}${shared_ext}$major'
11465     dynamic_linker='NetBSD ld.elf_so'
11466   fi
11467   shlibpath_var=LD_LIBRARY_PATH
11468   shlibpath_overrides_runpath=yes
11469   hardcode_into_libs=yes
11470   ;;
11471
11472 newsos6)
11473   version_type=linux # correct to gnu/linux during the next big refactor
11474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475   shlibpath_var=LD_LIBRARY_PATH
11476   shlibpath_overrides_runpath=yes
11477   ;;
11478
11479 *nto* | *qnx*)
11480   version_type=qnx
11481   need_lib_prefix=no
11482   need_version=no
11483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484   soname_spec='${libname}${release}${shared_ext}$major'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   shlibpath_overrides_runpath=no
11487   hardcode_into_libs=yes
11488   dynamic_linker='ldqnx.so'
11489   ;;
11490
11491 openbsd*)
11492   version_type=sunos
11493   sys_lib_dlsearch_path_spec="/usr/lib"
11494   need_lib_prefix=no
11495   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11496   case $host_os in
11497     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11498     *)                          need_version=no  ;;
11499   esac
11500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502   shlibpath_var=LD_LIBRARY_PATH
11503   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11504     case $host_os in
11505       openbsd2.[89] | openbsd2.[89].*)
11506         shlibpath_overrides_runpath=no
11507         ;;
11508       *)
11509         shlibpath_overrides_runpath=yes
11510         ;;
11511       esac
11512   else
11513     shlibpath_overrides_runpath=yes
11514   fi
11515   ;;
11516
11517 os2*)
11518   libname_spec='$name'
11519   shrext_cmds=".dll"
11520   need_lib_prefix=no
11521   library_names_spec='$libname${shared_ext} $libname.a'
11522   dynamic_linker='OS/2 ld.exe'
11523   shlibpath_var=LIBPATH
11524   ;;
11525
11526 osf3* | osf4* | osf5*)
11527   version_type=osf
11528   need_lib_prefix=no
11529   need_version=no
11530   soname_spec='${libname}${release}${shared_ext}$major'
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532   shlibpath_var=LD_LIBRARY_PATH
11533   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11534   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11535   ;;
11536
11537 rdos*)
11538   dynamic_linker=no
11539   ;;
11540
11541 solaris*)
11542   version_type=linux # correct to gnu/linux during the next big refactor
11543   need_lib_prefix=no
11544   need_version=no
11545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546   soname_spec='${libname}${release}${shared_ext}$major'
11547   shlibpath_var=LD_LIBRARY_PATH
11548   shlibpath_overrides_runpath=yes
11549   hardcode_into_libs=yes
11550   # ldd complains unless libraries are executable
11551   postinstall_cmds='chmod +x $lib'
11552   ;;
11553
11554 sunos4*)
11555   version_type=sunos
11556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11557   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11558   shlibpath_var=LD_LIBRARY_PATH
11559   shlibpath_overrides_runpath=yes
11560   if test "$with_gnu_ld" = yes; then
11561     need_lib_prefix=no
11562   fi
11563   need_version=yes
11564   ;;
11565
11566 sysv4 | sysv4.3*)
11567   version_type=linux # correct to gnu/linux during the next big refactor
11568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569   soname_spec='${libname}${release}${shared_ext}$major'
11570   shlibpath_var=LD_LIBRARY_PATH
11571   case $host_vendor in
11572     sni)
11573       shlibpath_overrides_runpath=no
11574       need_lib_prefix=no
11575       runpath_var=LD_RUN_PATH
11576       ;;
11577     siemens)
11578       need_lib_prefix=no
11579       ;;
11580     motorola)
11581       need_lib_prefix=no
11582       need_version=no
11583       shlibpath_overrides_runpath=no
11584       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11585       ;;
11586   esac
11587   ;;
11588
11589 sysv4*MP*)
11590   if test -d /usr/nec ;then
11591     version_type=linux # correct to gnu/linux during the next big refactor
11592     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11593     soname_spec='$libname${shared_ext}.$major'
11594     shlibpath_var=LD_LIBRARY_PATH
11595   fi
11596   ;;
11597
11598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11599   version_type=freebsd-elf
11600   need_lib_prefix=no
11601   need_version=no
11602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11603   soname_spec='${libname}${release}${shared_ext}$major'
11604   shlibpath_var=LD_LIBRARY_PATH
11605   shlibpath_overrides_runpath=yes
11606   hardcode_into_libs=yes
11607   if test "$with_gnu_ld" = yes; then
11608     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11609   else
11610     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11611     case $host_os in
11612       sco3.2v5*)
11613         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11614         ;;
11615     esac
11616   fi
11617   sys_lib_dlsearch_path_spec='/usr/lib'
11618   ;;
11619
11620 tpf*)
11621   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11622   version_type=linux # correct to gnu/linux during the next big refactor
11623   need_lib_prefix=no
11624   need_version=no
11625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626   shlibpath_var=LD_LIBRARY_PATH
11627   shlibpath_overrides_runpath=no
11628   hardcode_into_libs=yes
11629   ;;
11630
11631 uts4*)
11632   version_type=linux # correct to gnu/linux during the next big refactor
11633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634   soname_spec='${libname}${release}${shared_ext}$major'
11635   shlibpath_var=LD_LIBRARY_PATH
11636   ;;
11637
11638 *)
11639   dynamic_linker=no
11640   ;;
11641 esac
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11643 $as_echo "$dynamic_linker" >&6; }
11644 test "$dynamic_linker" = no && can_build_shared=no
11645
11646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11647 if test "$GCC" = yes; then
11648   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11649 fi
11650
11651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11652   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11653 fi
11654 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11655   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11656 fi
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11750 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11751 hardcode_action=
11752 if test -n "$hardcode_libdir_flag_spec" ||
11753    test -n "$runpath_var" ||
11754    test "X$hardcode_automatic" = "Xyes" ; then
11755
11756   # We can hardcode non-existent directories.
11757   if test "$hardcode_direct" != no &&
11758      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11759      # have to relink, otherwise we might link with an installed library
11760      # when we should be linking with a yet-to-be-installed one
11761      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11762      test "$hardcode_minus_L" != no; then
11763     # Linking always hardcodes the temporary library directory.
11764     hardcode_action=relink
11765   else
11766     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11767     hardcode_action=immediate
11768   fi
11769 else
11770   # We cannot hardcode anything, or else we can only hardcode existing
11771   # directories.
11772   hardcode_action=unsupported
11773 fi
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11775 $as_echo "$hardcode_action" >&6; }
11776
11777 if test "$hardcode_action" = relink ||
11778    test "$inherit_rpath" = yes; then
11779   # Fast installation is not supported
11780   enable_fast_install=no
11781 elif test "$shlibpath_overrides_runpath" = yes ||
11782      test "$enable_shared" = no; then
11783   # Fast installation is not necessary
11784   enable_fast_install=needless
11785 fi
11786
11787
11788
11789
11790
11791
11792   if test "x$enable_dlopen" != xyes; then
11793   enable_dlopen=unknown
11794   enable_dlopen_self=unknown
11795   enable_dlopen_self_static=unknown
11796 else
11797   lt_cv_dlopen=no
11798   lt_cv_dlopen_libs=
11799
11800   case $host_os in
11801   beos*)
11802     lt_cv_dlopen="load_add_on"
11803     lt_cv_dlopen_libs=
11804     lt_cv_dlopen_self=yes
11805     ;;
11806
11807   mingw* | pw32* | cegcc*)
11808     lt_cv_dlopen="LoadLibrary"
11809     lt_cv_dlopen_libs=
11810     ;;
11811
11812   cygwin*)
11813     lt_cv_dlopen="dlopen"
11814     lt_cv_dlopen_libs=
11815     ;;
11816
11817   darwin*)
11818   # if libdl is installed we need to link against it
11819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11821 if ${ac_cv_lib_dl_dlopen+:} false; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   ac_check_lib_save_LIBS=$LIBS
11825 LIBS="-ldl  $LIBS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h.  */
11828
11829 /* Override any GCC internal prototype to avoid an error.
11830    Use char because int might match the return type of a GCC
11831    builtin and then its argument prototype would still apply.  */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char dlopen ();
11836 int
11837 main ()
11838 {
11839 return dlopen ();
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845   ac_cv_lib_dl_dlopen=yes
11846 else
11847   ac_cv_lib_dl_dlopen=no
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext \
11850     conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11852 fi
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11856   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11857 else
11858
11859     lt_cv_dlopen="dyld"
11860     lt_cv_dlopen_libs=
11861     lt_cv_dlopen_self=yes
11862
11863 fi
11864
11865     ;;
11866
11867   *)
11868     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11869 if test "x$ac_cv_func_shl_load" = xyes; then :
11870   lt_cv_dlopen="shl_load"
11871 else
11872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11873 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11874 if ${ac_cv_lib_dld_shl_load+:} false; then :
11875   $as_echo_n "(cached) " >&6
11876 else
11877   ac_check_lib_save_LIBS=$LIBS
11878 LIBS="-ldld  $LIBS"
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h.  */
11881
11882 /* Override any GCC internal prototype to avoid an error.
11883    Use char because int might match the return type of a GCC
11884    builtin and then its argument prototype would still apply.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char shl_load ();
11889 int
11890 main ()
11891 {
11892 return shl_load ();
11893   ;
11894   return 0;
11895 }
11896 _ACEOF
11897 if ac_fn_c_try_link "$LINENO"; then :
11898   ac_cv_lib_dld_shl_load=yes
11899 else
11900   ac_cv_lib_dld_shl_load=no
11901 fi
11902 rm -f core conftest.err conftest.$ac_objext \
11903     conftest$ac_exeext conftest.$ac_ext
11904 LIBS=$ac_check_lib_save_LIBS
11905 fi
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11907 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11908 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11909   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11910 else
11911   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11912 if test "x$ac_cv_func_dlopen" = xyes; then :
11913   lt_cv_dlopen="dlopen"
11914 else
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11916 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11917 if ${ac_cv_lib_dl_dlopen+:} false; then :
11918   $as_echo_n "(cached) " >&6
11919 else
11920   ac_check_lib_save_LIBS=$LIBS
11921 LIBS="-ldl  $LIBS"
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h.  */
11924
11925 /* Override any GCC internal prototype to avoid an error.
11926    Use char because int might match the return type of a GCC
11927    builtin and then its argument prototype would still apply.  */
11928 #ifdef __cplusplus
11929 extern "C"
11930 #endif
11931 char dlopen ();
11932 int
11933 main ()
11934 {
11935 return dlopen ();
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 if ac_fn_c_try_link "$LINENO"; then :
11941   ac_cv_lib_dl_dlopen=yes
11942 else
11943   ac_cv_lib_dl_dlopen=no
11944 fi
11945 rm -f core conftest.err conftest.$ac_objext \
11946     conftest$ac_exeext conftest.$ac_ext
11947 LIBS=$ac_check_lib_save_LIBS
11948 fi
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11950 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11951 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11952   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11953 else
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11955 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11956 if ${ac_cv_lib_svld_dlopen+:} false; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959   ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-lsvld  $LIBS"
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h.  */
11963
11964 /* Override any GCC internal prototype to avoid an error.
11965    Use char because int might match the return type of a GCC
11966    builtin and then its argument prototype would still apply.  */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char dlopen ();
11971 int
11972 main ()
11973 {
11974 return dlopen ();
11975   ;
11976   return 0;
11977 }
11978 _ACEOF
11979 if ac_fn_c_try_link "$LINENO"; then :
11980   ac_cv_lib_svld_dlopen=yes
11981 else
11982   ac_cv_lib_svld_dlopen=no
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext \
11985     conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11989 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11990 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11991   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11992 else
11993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11994 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11995 if ${ac_cv_lib_dld_dld_link+:} false; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   ac_check_lib_save_LIBS=$LIBS
11999 LIBS="-ldld  $LIBS"
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h.  */
12002
12003 /* Override any GCC internal prototype to avoid an error.
12004    Use char because int might match the return type of a GCC
12005    builtin and then its argument prototype would still apply.  */
12006 #ifdef __cplusplus
12007 extern "C"
12008 #endif
12009 char dld_link ();
12010 int
12011 main ()
12012 {
12013 return dld_link ();
12014   ;
12015   return 0;
12016 }
12017 _ACEOF
12018 if ac_fn_c_try_link "$LINENO"; then :
12019   ac_cv_lib_dld_dld_link=yes
12020 else
12021   ac_cv_lib_dld_dld_link=no
12022 fi
12023 rm -f core conftest.err conftest.$ac_objext \
12024     conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12026 fi
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12028 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12029 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12030   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12031 fi
12032
12033
12034 fi
12035
12036
12037 fi
12038
12039
12040 fi
12041
12042
12043 fi
12044
12045
12046 fi
12047
12048     ;;
12049   esac
12050
12051   if test "x$lt_cv_dlopen" != xno; then
12052     enable_dlopen=yes
12053   else
12054     enable_dlopen=no
12055   fi
12056
12057   case $lt_cv_dlopen in
12058   dlopen)
12059     save_CPPFLAGS="$CPPFLAGS"
12060     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12061
12062     save_LDFLAGS="$LDFLAGS"
12063     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12064
12065     save_LIBS="$LIBS"
12066     LIBS="$lt_cv_dlopen_libs $LIBS"
12067
12068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12069 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12070 if ${lt_cv_dlopen_self+:} false; then :
12071   $as_echo_n "(cached) " >&6
12072 else
12073           if test "$cross_compiling" = yes; then :
12074   lt_cv_dlopen_self=cross
12075 else
12076   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12077   lt_status=$lt_dlunknown
12078   cat > conftest.$ac_ext <<_LT_EOF
12079 #line $LINENO "configure"
12080 #include "confdefs.h"
12081
12082 #if HAVE_DLFCN_H
12083 #include <dlfcn.h>
12084 #endif
12085
12086 #include <stdio.h>
12087
12088 #ifdef RTLD_GLOBAL
12089 #  define LT_DLGLOBAL           RTLD_GLOBAL
12090 #else
12091 #  ifdef DL_GLOBAL
12092 #    define LT_DLGLOBAL         DL_GLOBAL
12093 #  else
12094 #    define LT_DLGLOBAL         0
12095 #  endif
12096 #endif
12097
12098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12099    find out it does not work in some platform. */
12100 #ifndef LT_DLLAZY_OR_NOW
12101 #  ifdef RTLD_LAZY
12102 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12103 #  else
12104 #    ifdef DL_LAZY
12105 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12106 #    else
12107 #      ifdef RTLD_NOW
12108 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12109 #      else
12110 #        ifdef DL_NOW
12111 #          define LT_DLLAZY_OR_NOW      DL_NOW
12112 #        else
12113 #          define LT_DLLAZY_OR_NOW      0
12114 #        endif
12115 #      endif
12116 #    endif
12117 #  endif
12118 #endif
12119
12120 /* When -fvisbility=hidden is used, assume the code has been annotated
12121    correspondingly for the symbols needed.  */
12122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12123 int fnord () __attribute__((visibility("default")));
12124 #endif
12125
12126 int fnord () { return 42; }
12127 int main ()
12128 {
12129   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12130   int status = $lt_dlunknown;
12131
12132   if (self)
12133     {
12134       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12135       else
12136         {
12137           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12138           else puts (dlerror ());
12139         }
12140       /* dlclose (self); */
12141     }
12142   else
12143     puts (dlerror ());
12144
12145   return status;
12146 }
12147 _LT_EOF
12148   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12149   (eval $ac_link) 2>&5
12150   ac_status=$?
12151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12153     (./conftest; exit; ) >&5 2>/dev/null
12154     lt_status=$?
12155     case x$lt_status in
12156       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12157       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12158       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12159     esac
12160   else :
12161     # compilation failed
12162     lt_cv_dlopen_self=no
12163   fi
12164 fi
12165 rm -fr conftest*
12166
12167
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12170 $as_echo "$lt_cv_dlopen_self" >&6; }
12171
12172     if test "x$lt_cv_dlopen_self" = xyes; then
12173       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12174       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12175 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12176 if ${lt_cv_dlopen_self_static+:} false; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179           if test "$cross_compiling" = yes; then :
12180   lt_cv_dlopen_self_static=cross
12181 else
12182   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12183   lt_status=$lt_dlunknown
12184   cat > conftest.$ac_ext <<_LT_EOF
12185 #line $LINENO "configure"
12186 #include "confdefs.h"
12187
12188 #if HAVE_DLFCN_H
12189 #include <dlfcn.h>
12190 #endif
12191
12192 #include <stdio.h>
12193
12194 #ifdef RTLD_GLOBAL
12195 #  define LT_DLGLOBAL           RTLD_GLOBAL
12196 #else
12197 #  ifdef DL_GLOBAL
12198 #    define LT_DLGLOBAL         DL_GLOBAL
12199 #  else
12200 #    define LT_DLGLOBAL         0
12201 #  endif
12202 #endif
12203
12204 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12205    find out it does not work in some platform. */
12206 #ifndef LT_DLLAZY_OR_NOW
12207 #  ifdef RTLD_LAZY
12208 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12209 #  else
12210 #    ifdef DL_LAZY
12211 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12212 #    else
12213 #      ifdef RTLD_NOW
12214 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12215 #      else
12216 #        ifdef DL_NOW
12217 #          define LT_DLLAZY_OR_NOW      DL_NOW
12218 #        else
12219 #          define LT_DLLAZY_OR_NOW      0
12220 #        endif
12221 #      endif
12222 #    endif
12223 #  endif
12224 #endif
12225
12226 /* When -fvisbility=hidden is used, assume the code has been annotated
12227    correspondingly for the symbols needed.  */
12228 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12229 int fnord () __attribute__((visibility("default")));
12230 #endif
12231
12232 int fnord () { return 42; }
12233 int main ()
12234 {
12235   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12236   int status = $lt_dlunknown;
12237
12238   if (self)
12239     {
12240       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12241       else
12242         {
12243           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12244           else puts (dlerror ());
12245         }
12246       /* dlclose (self); */
12247     }
12248   else
12249     puts (dlerror ());
12250
12251   return status;
12252 }
12253 _LT_EOF
12254   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12255   (eval $ac_link) 2>&5
12256   ac_status=$?
12257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12259     (./conftest; exit; ) >&5 2>/dev/null
12260     lt_status=$?
12261     case x$lt_status in
12262       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12263       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12264       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12265     esac
12266   else :
12267     # compilation failed
12268     lt_cv_dlopen_self_static=no
12269   fi
12270 fi
12271 rm -fr conftest*
12272
12273
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12276 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12277     fi
12278
12279     CPPFLAGS="$save_CPPFLAGS"
12280     LDFLAGS="$save_LDFLAGS"
12281     LIBS="$save_LIBS"
12282     ;;
12283   esac
12284
12285   case $lt_cv_dlopen_self in
12286   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12287   *) enable_dlopen_self=unknown ;;
12288   esac
12289
12290   case $lt_cv_dlopen_self_static in
12291   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12292   *) enable_dlopen_self_static=unknown ;;
12293   esac
12294 fi
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312 striplib=
12313 old_striplib=
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12315 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12317   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12318   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12320 $as_echo "yes" >&6; }
12321 else
12322 # FIXME - insert some real tests, host_os isn't really good enough
12323   case $host_os in
12324   darwin*)
12325     if test -n "$STRIP" ; then
12326       striplib="$STRIP -x"
12327       old_striplib="$STRIP -S"
12328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12329 $as_echo "yes" >&6; }
12330     else
12331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12333     fi
12334     ;;
12335   *)
12336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338     ;;
12339   esac
12340 fi
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353   # Report which library types will actually be built
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12355 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12357 $as_echo "$can_build_shared" >&6; }
12358
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12360 $as_echo_n "checking whether to build shared libraries... " >&6; }
12361   test "$can_build_shared" = "no" && enable_shared=no
12362
12363   # On AIX, shared libraries and static libraries use the same namespace, and
12364   # are all built from PIC.
12365   case $host_os in
12366   aix3*)
12367     test "$enable_shared" = yes && enable_static=no
12368     if test -n "$RANLIB"; then
12369       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12370       postinstall_cmds='$RANLIB $lib'
12371     fi
12372     ;;
12373
12374   aix[4-9]*)
12375     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12376       test "$enable_shared" = yes && enable_static=no
12377     fi
12378     ;;
12379   esac
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12381 $as_echo "$enable_shared" >&6; }
12382
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12384 $as_echo_n "checking whether to build static libraries... " >&6; }
12385   # Make sure either enable_shared or enable_static is yes.
12386   test "$enable_shared" = yes || enable_static=yes
12387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12388 $as_echo "$enable_static" >&6; }
12389
12390
12391
12392
12393 fi
12394 ac_ext=c
12395 ac_cpp='$CPP $CPPFLAGS'
12396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399
12400 CC="$lt_save_CC"
12401
12402       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12403     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12404     (test "X$CXX" != "Xg++"))) ; then
12405   ac_ext=cpp
12406 ac_cpp='$CXXCPP $CPPFLAGS'
12407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12411 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12412 if test -z "$CXXCPP"; then
12413   if ${ac_cv_prog_CXXCPP+:} false; then :
12414   $as_echo_n "(cached) " >&6
12415 else
12416       # Double quotes because CXXCPP needs to be expanded
12417     for CXXCPP in "$CXX -E" "/lib/cpp"
12418     do
12419       ac_preproc_ok=false
12420 for ac_cxx_preproc_warn_flag in '' yes
12421 do
12422   # Use a header file that comes with gcc, so configuring glibc
12423   # with a fresh cross-compiler works.
12424   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12425   # <limits.h> exists even on freestanding compilers.
12426   # On the NeXT, cc -E runs the code through the compiler's parser,
12427   # not just through cpp. "Syntax error" is here to catch this case.
12428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h.  */
12430 #ifdef __STDC__
12431 # include <limits.h>
12432 #else
12433 # include <assert.h>
12434 #endif
12435                      Syntax error
12436 _ACEOF
12437 if ac_fn_cxx_try_cpp "$LINENO"; then :
12438
12439 else
12440   # Broken: fails on valid input.
12441 continue
12442 fi
12443 rm -f conftest.err conftest.i conftest.$ac_ext
12444
12445   # OK, works on sane cases.  Now check whether nonexistent headers
12446   # can be detected and how.
12447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h.  */
12449 #include <ac_nonexistent.h>
12450 _ACEOF
12451 if ac_fn_cxx_try_cpp "$LINENO"; then :
12452   # Broken: success on invalid input.
12453 continue
12454 else
12455   # Passes both tests.
12456 ac_preproc_ok=:
12457 break
12458 fi
12459 rm -f conftest.err conftest.i conftest.$ac_ext
12460
12461 done
12462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12463 rm -f conftest.i conftest.err conftest.$ac_ext
12464 if $ac_preproc_ok; then :
12465   break
12466 fi
12467
12468     done
12469     ac_cv_prog_CXXCPP=$CXXCPP
12470
12471 fi
12472   CXXCPP=$ac_cv_prog_CXXCPP
12473 else
12474   ac_cv_prog_CXXCPP=$CXXCPP
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12477 $as_echo "$CXXCPP" >&6; }
12478 ac_preproc_ok=false
12479 for ac_cxx_preproc_warn_flag in '' yes
12480 do
12481   # Use a header file that comes with gcc, so configuring glibc
12482   # with a fresh cross-compiler works.
12483   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12484   # <limits.h> exists even on freestanding compilers.
12485   # On the NeXT, cc -E runs the code through the compiler's parser,
12486   # not just through cpp. "Syntax error" is here to catch this case.
12487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489 #ifdef __STDC__
12490 # include <limits.h>
12491 #else
12492 # include <assert.h>
12493 #endif
12494                      Syntax error
12495 _ACEOF
12496 if ac_fn_cxx_try_cpp "$LINENO"; then :
12497
12498 else
12499   # Broken: fails on valid input.
12500 continue
12501 fi
12502 rm -f conftest.err conftest.i conftest.$ac_ext
12503
12504   # OK, works on sane cases.  Now check whether nonexistent headers
12505   # can be detected and how.
12506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h.  */
12508 #include <ac_nonexistent.h>
12509 _ACEOF
12510 if ac_fn_cxx_try_cpp "$LINENO"; then :
12511   # Broken: success on invalid input.
12512 continue
12513 else
12514   # Passes both tests.
12515 ac_preproc_ok=:
12516 break
12517 fi
12518 rm -f conftest.err conftest.i conftest.$ac_ext
12519
12520 done
12521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12522 rm -f conftest.i conftest.err conftest.$ac_ext
12523 if $ac_preproc_ok; then :
12524
12525 else
12526   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12528 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12529 See \`config.log' for more details" "$LINENO" 5; }
12530 fi
12531
12532 ac_ext=c
12533 ac_cpp='$CPP $CPPFLAGS'
12534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12537
12538 else
12539   _lt_caught_CXX_error=yes
12540 fi
12541
12542 ac_ext=cpp
12543 ac_cpp='$CXXCPP $CPPFLAGS'
12544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12547
12548 archive_cmds_need_lc_CXX=no
12549 allow_undefined_flag_CXX=
12550 always_export_symbols_CXX=no
12551 archive_expsym_cmds_CXX=
12552 compiler_needs_object_CXX=no
12553 export_dynamic_flag_spec_CXX=
12554 hardcode_direct_CXX=no
12555 hardcode_direct_absolute_CXX=no
12556 hardcode_libdir_flag_spec_CXX=
12557 hardcode_libdir_separator_CXX=
12558 hardcode_minus_L_CXX=no
12559 hardcode_shlibpath_var_CXX=unsupported
12560 hardcode_automatic_CXX=no
12561 inherit_rpath_CXX=no
12562 module_cmds_CXX=
12563 module_expsym_cmds_CXX=
12564 link_all_deplibs_CXX=unknown
12565 old_archive_cmds_CXX=$old_archive_cmds
12566 reload_flag_CXX=$reload_flag
12567 reload_cmds_CXX=$reload_cmds
12568 no_undefined_flag_CXX=
12569 whole_archive_flag_spec_CXX=
12570 enable_shared_with_static_runtimes_CXX=no
12571
12572 # Source file extension for C++ test sources.
12573 ac_ext=cpp
12574
12575 # Object file extension for compiled C++ test sources.
12576 objext=o
12577 objext_CXX=$objext
12578
12579 # No sense in running all these tests if we already determined that
12580 # the CXX compiler isn't working.  Some variables (like enable_shared)
12581 # are currently assumed to apply to all compilers on this platform,
12582 # and will be corrupted by setting them based on a non-working compiler.
12583 if test "$_lt_caught_CXX_error" != yes; then
12584   # Code to be used in simple compile tests
12585   lt_simple_compile_test_code="int some_variable = 0;"
12586
12587   # Code to be used in simple link tests
12588   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12589
12590   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12591
12592
12593
12594
12595
12596
12597 # If no C compiler was specified, use CC.
12598 LTCC=${LTCC-"$CC"}
12599
12600 # If no C compiler flags were specified, use CFLAGS.
12601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12602
12603 # Allow CC to be a program name with arguments.
12604 compiler=$CC
12605
12606
12607   # save warnings/boilerplate of simple test code
12608   ac_outfile=conftest.$ac_objext
12609 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12610 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12611 _lt_compiler_boilerplate=`cat conftest.err`
12612 $RM conftest*
12613
12614   ac_outfile=conftest.$ac_objext
12615 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12616 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12617 _lt_linker_boilerplate=`cat conftest.err`
12618 $RM -r conftest*
12619
12620
12621   # Allow CC to be a program name with arguments.
12622   lt_save_CC=$CC
12623   lt_save_CFLAGS=$CFLAGS
12624   lt_save_LD=$LD
12625   lt_save_GCC=$GCC
12626   GCC=$GXX
12627   lt_save_with_gnu_ld=$with_gnu_ld
12628   lt_save_path_LD=$lt_cv_path_LD
12629   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12630     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12631   else
12632     $as_unset lt_cv_prog_gnu_ld
12633   fi
12634   if test -n "${lt_cv_path_LDCXX+set}"; then
12635     lt_cv_path_LD=$lt_cv_path_LDCXX
12636   else
12637     $as_unset lt_cv_path_LD
12638   fi
12639   test -z "${LDCXX+set}" || LD=$LDCXX
12640   CC=${CXX-"c++"}
12641   CFLAGS=$CXXFLAGS
12642   compiler=$CC
12643   compiler_CXX=$CC
12644   for cc_temp in $compiler""; do
12645   case $cc_temp in
12646     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12647     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12648     \-*) ;;
12649     *) break;;
12650   esac
12651 done
12652 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12653
12654
12655   if test -n "$compiler"; then
12656     # We don't want -fno-exception when compiling C++ code, so set the
12657     # no_builtin_flag separately
12658     if test "$GXX" = yes; then
12659       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12660     else
12661       lt_prog_compiler_no_builtin_flag_CXX=
12662     fi
12663
12664     if test "$GXX" = yes; then
12665       # Set up default GNU C++ configuration
12666
12667
12668
12669 # Check whether --with-gnu-ld was given.
12670 if test "${with_gnu_ld+set}" = set; then :
12671   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12672 else
12673   with_gnu_ld=no
12674 fi
12675
12676 ac_prog=ld
12677 if test "$GCC" = yes; then
12678   # Check if gcc -print-prog-name=ld gives a path.
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12680 $as_echo_n "checking for ld used by $CC... " >&6; }
12681   case $host in
12682   *-*-mingw*)
12683     # gcc leaves a trailing carriage return which upsets mingw
12684     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12685   *)
12686     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12687   esac
12688   case $ac_prog in
12689     # Accept absolute paths.
12690     [\\/]* | ?:[\\/]*)
12691       re_direlt='/[^/][^/]*/\.\./'
12692       # Canonicalize the pathname of ld
12693       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12694       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12695         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12696       done
12697       test -z "$LD" && LD="$ac_prog"
12698       ;;
12699   "")
12700     # If it fails, then pretend we aren't using GCC.
12701     ac_prog=ld
12702     ;;
12703   *)
12704     # If it is relative, then search for the first ld in PATH.
12705     with_gnu_ld=unknown
12706     ;;
12707   esac
12708 elif test "$with_gnu_ld" = yes; then
12709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12710 $as_echo_n "checking for GNU ld... " >&6; }
12711 else
12712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12713 $as_echo_n "checking for non-GNU ld... " >&6; }
12714 fi
12715 if ${lt_cv_path_LD+:} false; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718   if test -z "$LD"; then
12719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12720   for ac_dir in $PATH; do
12721     IFS="$lt_save_ifs"
12722     test -z "$ac_dir" && ac_dir=.
12723     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12724       lt_cv_path_LD="$ac_dir/$ac_prog"
12725       # Check to see if the program is GNU ld.  I'd rather use --version,
12726       # but apparently some variants of GNU ld only accept -v.
12727       # Break only if it was the GNU/non-GNU ld that we prefer.
12728       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12729       *GNU* | *'with BFD'*)
12730         test "$with_gnu_ld" != no && break
12731         ;;
12732       *)
12733         test "$with_gnu_ld" != yes && break
12734         ;;
12735       esac
12736     fi
12737   done
12738   IFS="$lt_save_ifs"
12739 else
12740   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12741 fi
12742 fi
12743
12744 LD="$lt_cv_path_LD"
12745 if test -n "$LD"; then
12746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12747 $as_echo "$LD" >&6; }
12748 else
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12754 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12755 if ${lt_cv_prog_gnu_ld+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12759 case `$LD -v 2>&1 </dev/null` in
12760 *GNU* | *'with BFD'*)
12761   lt_cv_prog_gnu_ld=yes
12762   ;;
12763 *)
12764   lt_cv_prog_gnu_ld=no
12765   ;;
12766 esac
12767 fi
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12769 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12770 with_gnu_ld=$lt_cv_prog_gnu_ld
12771
12772
12773
12774
12775
12776
12777
12778       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12779       # archiving commands below assume that GNU ld is being used.
12780       if test "$with_gnu_ld" = yes; then
12781         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12782         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12783
12784         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12785         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12786
12787         # If archive_cmds runs LD, not CC, wlarc should be empty
12788         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12789         #     investigate it a little bit more. (MM)
12790         wlarc='${wl}'
12791
12792         # ancient GNU ld didn't support --whole-archive et. al.
12793         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12794           $GREP 'no-whole-archive' > /dev/null; then
12795           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12796         else
12797           whole_archive_flag_spec_CXX=
12798         fi
12799       else
12800         with_gnu_ld=no
12801         wlarc=
12802
12803         # A generic and very simple default shared library creation
12804         # command for GNU C++ for the case where it uses the native
12805         # linker, instead of GNU ld.  If possible, this setting should
12806         # overridden to take advantage of the native linker features on
12807         # the platform it is being used on.
12808         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12809       fi
12810
12811       # Commands to make compiler produce verbose output that lists
12812       # what "hidden" libraries, object files and flags are used when
12813       # linking a shared library.
12814       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12815
12816     else
12817       GXX=no
12818       with_gnu_ld=no
12819       wlarc=
12820     fi
12821
12822     # PORTME: fill in a description of your system's C++ link characteristics
12823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12825     ld_shlibs_CXX=yes
12826     case $host_os in
12827       aix3*)
12828         # FIXME: insert proper C++ library support
12829         ld_shlibs_CXX=no
12830         ;;
12831       aix[4-9]*)
12832         if test "$host_cpu" = ia64; then
12833           # On IA64, the linker does run time linking by default, so we don't
12834           # have to do anything special.
12835           aix_use_runtimelinking=no
12836           exp_sym_flag='-Bexport'
12837           no_entry_flag=""
12838         else
12839           aix_use_runtimelinking=no
12840
12841           # Test if we are trying to use run time linking or normal
12842           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12843           # need to do runtime linking.
12844           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12845             for ld_flag in $LDFLAGS; do
12846               case $ld_flag in
12847               *-brtl*)
12848                 aix_use_runtimelinking=yes
12849                 break
12850                 ;;
12851               esac
12852             done
12853             ;;
12854           esac
12855
12856           exp_sym_flag='-bexport'
12857           no_entry_flag='-bnoentry'
12858         fi
12859
12860         # When large executables or shared objects are built, AIX ld can
12861         # have problems creating the table of contents.  If linking a library
12862         # or program results in "error TOC overflow" add -mminimal-toc to
12863         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12864         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12865
12866         archive_cmds_CXX=''
12867         hardcode_direct_CXX=yes
12868         hardcode_direct_absolute_CXX=yes
12869         hardcode_libdir_separator_CXX=':'
12870         link_all_deplibs_CXX=yes
12871         file_list_spec_CXX='${wl}-f,'
12872
12873         if test "$GXX" = yes; then
12874           case $host_os in aix4.[012]|aix4.[012].*)
12875           # We only want to do this on AIX 4.2 and lower, the check
12876           # below for broken collect2 doesn't work under 4.3+
12877           collect2name=`${CC} -print-prog-name=collect2`
12878           if test -f "$collect2name" &&
12879              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12880           then
12881             # We have reworked collect2
12882             :
12883           else
12884             # We have old collect2
12885             hardcode_direct_CXX=unsupported
12886             # It fails to find uninstalled libraries when the uninstalled
12887             # path is not listed in the libpath.  Setting hardcode_minus_L
12888             # to unsupported forces relinking
12889             hardcode_minus_L_CXX=yes
12890             hardcode_libdir_flag_spec_CXX='-L$libdir'
12891             hardcode_libdir_separator_CXX=
12892           fi
12893           esac
12894           shared_flag='-shared'
12895           if test "$aix_use_runtimelinking" = yes; then
12896             shared_flag="$shared_flag "'${wl}-G'
12897           fi
12898         else
12899           # not using gcc
12900           if test "$host_cpu" = ia64; then
12901           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12902           # chokes on -Wl,-G. The following line is correct:
12903           shared_flag='-G'
12904           else
12905             if test "$aix_use_runtimelinking" = yes; then
12906               shared_flag='${wl}-G'
12907             else
12908               shared_flag='${wl}-bM:SRE'
12909             fi
12910           fi
12911         fi
12912
12913         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12914         # It seems that -bexpall does not export symbols beginning with
12915         # underscore (_), so it is better to generate a list of symbols to
12916         # export.
12917         always_export_symbols_CXX=yes
12918         if test "$aix_use_runtimelinking" = yes; then
12919           # Warning - without using the other runtime loading flags (-brtl),
12920           # -berok will link without error, but may produce a broken library.
12921           allow_undefined_flag_CXX='-berok'
12922           # Determine the default libpath from the value encoded in an empty
12923           # executable.
12924           if test "${lt_cv_aix_libpath+set}" = set; then
12925   aix_libpath=$lt_cv_aix_libpath
12926 else
12927   if ${lt_cv_aix_libpath__CXX+:} false; then :
12928   $as_echo_n "(cached) " >&6
12929 else
12930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h.  */
12932
12933 int
12934 main ()
12935 {
12936
12937   ;
12938   return 0;
12939 }
12940 _ACEOF
12941 if ac_fn_cxx_try_link "$LINENO"; then :
12942
12943   lt_aix_libpath_sed='
12944       /Import File Strings/,/^$/ {
12945           /^0/ {
12946               s/^0  *\([^ ]*\) *$/\1/
12947               p
12948           }
12949       }'
12950   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12951   # Check for a 64-bit object if we didn't find anything.
12952   if test -z "$lt_cv_aix_libpath__CXX"; then
12953     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12954   fi
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext \
12957     conftest$ac_exeext conftest.$ac_ext
12958   if test -z "$lt_cv_aix_libpath__CXX"; then
12959     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12960   fi
12961
12962 fi
12963
12964   aix_libpath=$lt_cv_aix_libpath__CXX
12965 fi
12966
12967           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12968
12969           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"
12970         else
12971           if test "$host_cpu" = ia64; then
12972             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12973             allow_undefined_flag_CXX="-z nodefs"
12974             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"
12975           else
12976             # Determine the default libpath from the value encoded in an
12977             # empty executable.
12978             if test "${lt_cv_aix_libpath+set}" = set; then
12979   aix_libpath=$lt_cv_aix_libpath
12980 else
12981   if ${lt_cv_aix_libpath__CXX+:} false; then :
12982   $as_echo_n "(cached) " >&6
12983 else
12984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h.  */
12986
12987 int
12988 main ()
12989 {
12990
12991   ;
12992   return 0;
12993 }
12994 _ACEOF
12995 if ac_fn_cxx_try_link "$LINENO"; then :
12996
12997   lt_aix_libpath_sed='
12998       /Import File Strings/,/^$/ {
12999           /^0/ {
13000               s/^0  *\([^ ]*\) *$/\1/
13001               p
13002           }
13003       }'
13004   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13005   # Check for a 64-bit object if we didn't find anything.
13006   if test -z "$lt_cv_aix_libpath__CXX"; then
13007     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13008   fi
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext \
13011     conftest$ac_exeext conftest.$ac_ext
13012   if test -z "$lt_cv_aix_libpath__CXX"; then
13013     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13014   fi
13015
13016 fi
13017
13018   aix_libpath=$lt_cv_aix_libpath__CXX
13019 fi
13020
13021             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13022             # Warning - without using the other run time loading flags,
13023             # -berok will link without error, but may produce a broken library.
13024             no_undefined_flag_CXX=' ${wl}-bernotok'
13025             allow_undefined_flag_CXX=' ${wl}-berok'
13026             if test "$with_gnu_ld" = yes; then
13027               # We only use this code for GNU lds that support --whole-archive.
13028               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13029             else
13030               # Exported symbols can be pulled into shared objects from archives
13031               whole_archive_flag_spec_CXX='$convenience'
13032             fi
13033             archive_cmds_need_lc_CXX=yes
13034             # This is similar to how AIX traditionally builds its shared
13035             # libraries.
13036             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'
13037           fi
13038         fi
13039         ;;
13040
13041       beos*)
13042         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13043           allow_undefined_flag_CXX=unsupported
13044           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13045           # support --undefined.  This deserves some investigation.  FIXME
13046           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13047         else
13048           ld_shlibs_CXX=no
13049         fi
13050         ;;
13051
13052       chorus*)
13053         case $cc_basename in
13054           *)
13055           # FIXME: insert proper C++ library support
13056           ld_shlibs_CXX=no
13057           ;;
13058         esac
13059         ;;
13060
13061       cygwin* | mingw* | pw32* | cegcc*)
13062         case $GXX,$cc_basename in
13063         ,cl* | no,cl*)
13064           # Native MSVC
13065           # hardcode_libdir_flag_spec is actually meaningless, as there is
13066           # no search path for DLLs.
13067           hardcode_libdir_flag_spec_CXX=' '
13068           allow_undefined_flag_CXX=unsupported
13069           always_export_symbols_CXX=yes
13070           file_list_spec_CXX='@'
13071           # Tell ltmain to make .lib files, not .a files.
13072           libext=lib
13073           # Tell ltmain to make .dll files, not .so files.
13074           shrext_cmds=".dll"
13075           # FIXME: Setting linknames here is a bad hack.
13076           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13077           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13078               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13079             else
13080               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13081             fi~
13082             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13083             linknames='
13084           # The linker will not automatically build a static lib if we build a DLL.
13085           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13086           enable_shared_with_static_runtimes_CXX=yes
13087           # Don't use ranlib
13088           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13089           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13090             lt_tool_outputfile="@TOOL_OUTPUT@"~
13091             case $lt_outputfile in
13092               *.exe|*.EXE) ;;
13093               *)
13094                 lt_outputfile="$lt_outputfile.exe"
13095                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13096                 ;;
13097             esac~
13098             func_to_tool_file "$lt_outputfile"~
13099             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13100               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13101               $RM "$lt_outputfile.manifest";
13102             fi'
13103           ;;
13104         *)
13105           # g++
13106           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13107           # as there is no search path for DLLs.
13108           hardcode_libdir_flag_spec_CXX='-L$libdir'
13109           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13110           allow_undefined_flag_CXX=unsupported
13111           always_export_symbols_CXX=no
13112           enable_shared_with_static_runtimes_CXX=yes
13113
13114           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13115             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'
13116             # If the export-symbols file already is a .def file (1st line
13117             # is EXPORTS), use it as is; otherwise, prepend...
13118             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13119               cp $export_symbols $output_objdir/$soname.def;
13120             else
13121               echo EXPORTS > $output_objdir/$soname.def;
13122               cat $export_symbols >> $output_objdir/$soname.def;
13123             fi~
13124             $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'
13125           else
13126             ld_shlibs_CXX=no
13127           fi
13128           ;;
13129         esac
13130         ;;
13131       darwin* | rhapsody*)
13132
13133
13134   archive_cmds_need_lc_CXX=no
13135   hardcode_direct_CXX=no
13136   hardcode_automatic_CXX=yes
13137   hardcode_shlibpath_var_CXX=unsupported
13138   if test "$lt_cv_ld_force_load" = "yes"; then
13139     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\"`'
13140
13141   else
13142     whole_archive_flag_spec_CXX=''
13143   fi
13144   link_all_deplibs_CXX=yes
13145   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13146   case $cc_basename in
13147      ifort*) _lt_dar_can_shared=yes ;;
13148      *) _lt_dar_can_shared=$GCC ;;
13149   esac
13150   if test "$_lt_dar_can_shared" = "yes"; then
13151     output_verbose_link_cmd=func_echo_all
13152     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}"
13153     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13154     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}"
13155     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}"
13156        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13157       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}"
13158       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}"
13159     fi
13160
13161   else
13162   ld_shlibs_CXX=no
13163   fi
13164
13165         ;;
13166
13167       dgux*)
13168         case $cc_basename in
13169           ec++*)
13170             # FIXME: insert proper C++ library support
13171             ld_shlibs_CXX=no
13172             ;;
13173           ghcx*)
13174             # Green Hills C++ Compiler
13175             # FIXME: insert proper C++ library support
13176             ld_shlibs_CXX=no
13177             ;;
13178           *)
13179             # FIXME: insert proper C++ library support
13180             ld_shlibs_CXX=no
13181             ;;
13182         esac
13183         ;;
13184
13185       freebsd2.*)
13186         # C++ shared libraries reported to be fairly broken before
13187         # switch to ELF
13188         ld_shlibs_CXX=no
13189         ;;
13190
13191       freebsd-elf*)
13192         archive_cmds_need_lc_CXX=no
13193         ;;
13194
13195       freebsd* | dragonfly*)
13196         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13197         # conventions
13198         ld_shlibs_CXX=yes
13199         ;;
13200
13201       gnu*)
13202         ;;
13203
13204       haiku*)
13205         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13206         link_all_deplibs_CXX=yes
13207         ;;
13208
13209       hpux9*)
13210         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13211         hardcode_libdir_separator_CXX=:
13212         export_dynamic_flag_spec_CXX='${wl}-E'
13213         hardcode_direct_CXX=yes
13214         hardcode_minus_L_CXX=yes # Not in the search PATH,
13215                                              # but as the default
13216                                              # location of the library.
13217
13218         case $cc_basename in
13219           CC*)
13220             # FIXME: insert proper C++ library support
13221             ld_shlibs_CXX=no
13222             ;;
13223           aCC*)
13224             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'
13225             # Commands to make compiler produce verbose output that lists
13226             # what "hidden" libraries, object files and flags are used when
13227             # linking a shared library.
13228             #
13229             # There doesn't appear to be a way to prevent this compiler from
13230             # explicitly linking system object files so we need to strip them
13231             # from the output so that they don't get included in the library
13232             # dependencies.
13233             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"'
13234             ;;
13235           *)
13236             if test "$GXX" = yes; then
13237               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13238             else
13239               # FIXME: insert proper C++ library support
13240               ld_shlibs_CXX=no
13241             fi
13242             ;;
13243         esac
13244         ;;
13245
13246       hpux10*|hpux11*)
13247         if test $with_gnu_ld = no; then
13248           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13249           hardcode_libdir_separator_CXX=:
13250
13251           case $host_cpu in
13252             hppa*64*|ia64*)
13253               ;;
13254             *)
13255               export_dynamic_flag_spec_CXX='${wl}-E'
13256               ;;
13257           esac
13258         fi
13259         case $host_cpu in
13260           hppa*64*|ia64*)
13261             hardcode_direct_CXX=no
13262             hardcode_shlibpath_var_CXX=no
13263             ;;
13264           *)
13265             hardcode_direct_CXX=yes
13266             hardcode_direct_absolute_CXX=yes
13267             hardcode_minus_L_CXX=yes # Not in the search PATH,
13268                                                  # but as the default
13269                                                  # location of the library.
13270             ;;
13271         esac
13272
13273         case $cc_basename in
13274           CC*)
13275             # FIXME: insert proper C++ library support
13276             ld_shlibs_CXX=no
13277             ;;
13278           aCC*)
13279             case $host_cpu in
13280               hppa*64*)
13281                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13282                 ;;
13283               ia64*)
13284                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13285                 ;;
13286               *)
13287                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13288                 ;;
13289             esac
13290             # Commands to make compiler produce verbose output that lists
13291             # what "hidden" libraries, object files and flags are used when
13292             # linking a shared library.
13293             #
13294             # There doesn't appear to be a way to prevent this compiler from
13295             # explicitly linking system object files so we need to strip them
13296             # from the output so that they don't get included in the library
13297             # dependencies.
13298             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"'
13299             ;;
13300           *)
13301             if test "$GXX" = yes; then
13302               if test $with_gnu_ld = no; then
13303                 case $host_cpu in
13304                   hppa*64*)
13305                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13306                     ;;
13307                   ia64*)
13308                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13309                     ;;
13310                   *)
13311                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13312                     ;;
13313                 esac
13314               fi
13315             else
13316               # FIXME: insert proper C++ library support
13317               ld_shlibs_CXX=no
13318             fi
13319             ;;
13320         esac
13321         ;;
13322
13323       interix[3-9]*)
13324         hardcode_direct_CXX=no
13325         hardcode_shlibpath_var_CXX=no
13326         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13327         export_dynamic_flag_spec_CXX='${wl}-E'
13328         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13329         # Instead, shared libraries are loaded at an image base (0x10000000 by
13330         # default) and relocated if they conflict, which is a slow very memory
13331         # consuming and fragmenting process.  To avoid this, we pick a random,
13332         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13333         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13334         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'
13335         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'
13336         ;;
13337       irix5* | irix6*)
13338         case $cc_basename in
13339           CC*)
13340             # SGI C++
13341             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'
13342
13343             # Archives containing C++ object files must be created using
13344             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13345             # necessary to make sure instantiated templates are included
13346             # in the archive.
13347             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13348             ;;
13349           *)
13350             if test "$GXX" = yes; then
13351               if test "$with_gnu_ld" = no; then
13352                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13353               else
13354                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13355               fi
13356             fi
13357             link_all_deplibs_CXX=yes
13358             ;;
13359         esac
13360         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13361         hardcode_libdir_separator_CXX=:
13362         inherit_rpath_CXX=yes
13363         ;;
13364
13365       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13366         case $cc_basename in
13367           KCC*)
13368             # Kuck and Associates, Inc. (KAI) C++ Compiler
13369
13370             # KCC will only create a shared library if the output file
13371             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13372             # to its proper name (with version) after linking.
13373             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'
13374             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'
13375             # Commands to make compiler produce verbose output that lists
13376             # what "hidden" libraries, object files and flags are used when
13377             # linking a shared library.
13378             #
13379             # There doesn't appear to be a way to prevent this compiler from
13380             # explicitly linking system object files so we need to strip them
13381             # from the output so that they don't get included in the library
13382             # dependencies.
13383             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"'
13384
13385             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13386             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13387
13388             # Archives containing C++ object files must be created using
13389             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13390             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13391             ;;
13392           icpc* | ecpc* )
13393             # Intel C++
13394             with_gnu_ld=yes
13395             # version 8.0 and above of icpc choke on multiply defined symbols
13396             # if we add $predep_objects and $postdep_objects, however 7.1 and
13397             # earlier do not add the objects themselves.
13398             case `$CC -V 2>&1` in
13399               *"Version 7."*)
13400                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401                 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'
13402                 ;;
13403               *)  # Version 8.0 or newer
13404                 tmp_idyn=
13405                 case $host_cpu in
13406                   ia64*) tmp_idyn=' -i_dynamic';;
13407                 esac
13408                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409                 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'
13410                 ;;
13411             esac
13412             archive_cmds_need_lc_CXX=no
13413             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13414             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13415             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13416             ;;
13417           pgCC* | pgcpp*)
13418             # Portland Group C++ compiler
13419             case `$CC -V` in
13420             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13421               prelink_cmds_CXX='tpldir=Template.dir~
13422                 rm -rf $tpldir~
13423                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13424                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13425               old_archive_cmds_CXX='tpldir=Template.dir~
13426                 rm -rf $tpldir~
13427                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13428                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13429                 $RANLIB $oldlib'
13430               archive_cmds_CXX='tpldir=Template.dir~
13431                 rm -rf $tpldir~
13432                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13433                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13434               archive_expsym_cmds_CXX='tpldir=Template.dir~
13435                 rm -rf $tpldir~
13436                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13437                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13438               ;;
13439             *) # Version 6 and above use weak symbols
13440               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13441               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'
13442               ;;
13443             esac
13444
13445             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13446             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447             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'
13448             ;;
13449           cxx*)
13450             # Compaq C++
13451             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452             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'
13453
13454             runpath_var=LD_RUN_PATH
13455             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13456             hardcode_libdir_separator_CXX=:
13457
13458             # Commands to make compiler produce verbose output that lists
13459             # what "hidden" libraries, object files and flags are used when
13460             # linking a shared library.
13461             #
13462             # There doesn't appear to be a way to prevent this compiler from
13463             # explicitly linking system object files so we need to strip them
13464             # from the output so that they don't get included in the library
13465             # dependencies.
13466             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'
13467             ;;
13468           xl* | mpixl* | bgxl*)
13469             # IBM XL 8.0 on PPC, with GNU ld
13470             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13471             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13472             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473             if test "x$supports_anon_versioning" = xyes; then
13474               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13475                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13476                 echo "local: *; };" >> $output_objdir/$libname.ver~
13477                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13478             fi
13479             ;;
13480           *)
13481             case `$CC -V 2>&1 | sed 5q` in
13482             *Sun\ C*)
13483               # Sun C++ 5.9
13484               no_undefined_flag_CXX=' -zdefs'
13485               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13486               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'
13487               hardcode_libdir_flag_spec_CXX='-R$libdir'
13488               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'
13489               compiler_needs_object_CXX=yes
13490
13491               # Not sure whether something based on
13492               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13493               # would be better.
13494               output_verbose_link_cmd='func_echo_all'
13495
13496               # Archives containing C++ object files must be created using
13497               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13498               # necessary to make sure instantiated templates are included
13499               # in the archive.
13500               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13501               ;;
13502             esac
13503             ;;
13504         esac
13505         ;;
13506
13507       lynxos*)
13508         # FIXME: insert proper C++ library support
13509         ld_shlibs_CXX=no
13510         ;;
13511
13512       m88k*)
13513         # FIXME: insert proper C++ library support
13514         ld_shlibs_CXX=no
13515         ;;
13516
13517       mvs*)
13518         case $cc_basename in
13519           cxx*)
13520             # FIXME: insert proper C++ library support
13521             ld_shlibs_CXX=no
13522             ;;
13523           *)
13524             # FIXME: insert proper C++ library support
13525             ld_shlibs_CXX=no
13526             ;;
13527         esac
13528         ;;
13529
13530       netbsd*)
13531         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13532           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13533           wlarc=
13534           hardcode_libdir_flag_spec_CXX='-R$libdir'
13535           hardcode_direct_CXX=yes
13536           hardcode_shlibpath_var_CXX=no
13537         fi
13538         # Workaround some broken pre-1.5 toolchains
13539         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13540         ;;
13541
13542       *nto* | *qnx*)
13543         ld_shlibs_CXX=yes
13544         ;;
13545
13546       openbsd2*)
13547         # C++ shared libraries are fairly broken
13548         ld_shlibs_CXX=no
13549         ;;
13550
13551       openbsd*)
13552         if test -f /usr/libexec/ld.so; then
13553           hardcode_direct_CXX=yes
13554           hardcode_shlibpath_var_CXX=no
13555           hardcode_direct_absolute_CXX=yes
13556           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13557           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13558           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13559             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13560             export_dynamic_flag_spec_CXX='${wl}-E'
13561             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13562           fi
13563           output_verbose_link_cmd=func_echo_all
13564         else
13565           ld_shlibs_CXX=no
13566         fi
13567         ;;
13568
13569       osf3* | osf4* | osf5*)
13570         case $cc_basename in
13571           KCC*)
13572             # Kuck and Associates, Inc. (KAI) C++ Compiler
13573
13574             # KCC will only create a shared library if the output file
13575             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13576             # to its proper name (with version) after linking.
13577             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'
13578
13579             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13580             hardcode_libdir_separator_CXX=:
13581
13582             # Archives containing C++ object files must be created using
13583             # the KAI C++ compiler.
13584             case $host in
13585               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13586               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13587             esac
13588             ;;
13589           RCC*)
13590             # Rational C++ 2.4.1
13591             # FIXME: insert proper C++ library support
13592             ld_shlibs_CXX=no
13593             ;;
13594           cxx*)
13595             case $host in
13596               osf3*)
13597                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13598                 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'
13599                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13600                 ;;
13601               *)
13602                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13603                 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'
13604                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13605                   echo "-hidden">> $lib.exp~
13606                   $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~
13607                   $RM $lib.exp'
13608                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13609                 ;;
13610             esac
13611
13612             hardcode_libdir_separator_CXX=:
13613
13614             # Commands to make compiler produce verbose output that lists
13615             # what "hidden" libraries, object files and flags are used when
13616             # linking a shared library.
13617             #
13618             # There doesn't appear to be a way to prevent this compiler from
13619             # explicitly linking system object files so we need to strip them
13620             # from the output so that they don't get included in the library
13621             # dependencies.
13622             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"'
13623             ;;
13624           *)
13625             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13626               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13627               case $host in
13628                 osf3*)
13629                   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'
13630                   ;;
13631                 *)
13632                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13633                   ;;
13634               esac
13635
13636               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637               hardcode_libdir_separator_CXX=:
13638
13639               # Commands to make compiler produce verbose output that lists
13640               # what "hidden" libraries, object files and flags are used when
13641               # linking a shared library.
13642               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13643
13644             else
13645               # FIXME: insert proper C++ library support
13646               ld_shlibs_CXX=no
13647             fi
13648             ;;
13649         esac
13650         ;;
13651
13652       psos*)
13653         # FIXME: insert proper C++ library support
13654         ld_shlibs_CXX=no
13655         ;;
13656
13657       sunos4*)
13658         case $cc_basename in
13659           CC*)
13660             # Sun C++ 4.x
13661             # FIXME: insert proper C++ library support
13662             ld_shlibs_CXX=no
13663             ;;
13664           lcc*)
13665             # Lucid
13666             # FIXME: insert proper C++ library support
13667             ld_shlibs_CXX=no
13668             ;;
13669           *)
13670             # FIXME: insert proper C++ library support
13671             ld_shlibs_CXX=no
13672             ;;
13673         esac
13674         ;;
13675
13676       solaris*)
13677         case $cc_basename in
13678           CC* | sunCC*)
13679             # Sun C++ 4.2, 5.x and Centerline C++
13680             archive_cmds_need_lc_CXX=yes
13681             no_undefined_flag_CXX=' -zdefs'
13682             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13683             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13684               $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'
13685
13686             hardcode_libdir_flag_spec_CXX='-R$libdir'
13687             hardcode_shlibpath_var_CXX=no
13688             case $host_os in
13689               solaris2.[0-5] | solaris2.[0-5].*) ;;
13690               *)
13691                 # The compiler driver will combine and reorder linker options,
13692                 # but understands `-z linker_flag'.
13693                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13694                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13695                 ;;
13696             esac
13697             link_all_deplibs_CXX=yes
13698
13699             output_verbose_link_cmd='func_echo_all'
13700
13701             # Archives containing C++ object files must be created using
13702             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13703             # necessary to make sure instantiated templates are included
13704             # in the archive.
13705             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13706             ;;
13707           gcx*)
13708             # Green Hills C++ Compiler
13709             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13710
13711             # The C++ compiler must be used to create the archive.
13712             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13713             ;;
13714           *)
13715             # GNU C++ compiler with Solaris linker
13716             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13717               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13718               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13719                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13720                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13721                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13722
13723                 # Commands to make compiler produce verbose output that lists
13724                 # what "hidden" libraries, object files and flags are used when
13725                 # linking a shared library.
13726                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13727               else
13728                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13729                 # platform.
13730                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13731                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13732                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13733
13734                 # Commands to make compiler produce verbose output that lists
13735                 # what "hidden" libraries, object files and flags are used when
13736                 # linking a shared library.
13737                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13738               fi
13739
13740               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13741               case $host_os in
13742                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13743                 *)
13744                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13745                   ;;
13746               esac
13747             fi
13748             ;;
13749         esac
13750         ;;
13751
13752     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13753       no_undefined_flag_CXX='${wl}-z,text'
13754       archive_cmds_need_lc_CXX=no
13755       hardcode_shlibpath_var_CXX=no
13756       runpath_var='LD_RUN_PATH'
13757
13758       case $cc_basename in
13759         CC*)
13760           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762           ;;
13763         *)
13764           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766           ;;
13767       esac
13768       ;;
13769
13770       sysv5* | sco3.2v5* | sco5v6*)
13771         # Note: We can NOT use -z defs as we might desire, because we do not
13772         # link with -lc, and that would cause any symbols used from libc to
13773         # always be unresolved, which means just about no library would
13774         # ever link correctly.  If we're not using GNU ld we use -z text
13775         # though, which does catch some bad symbols but isn't as heavy-handed
13776         # as -z defs.
13777         no_undefined_flag_CXX='${wl}-z,text'
13778         allow_undefined_flag_CXX='${wl}-z,nodefs'
13779         archive_cmds_need_lc_CXX=no
13780         hardcode_shlibpath_var_CXX=no
13781         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13782         hardcode_libdir_separator_CXX=':'
13783         link_all_deplibs_CXX=yes
13784         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13785         runpath_var='LD_RUN_PATH'
13786
13787         case $cc_basename in
13788           CC*)
13789             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13791             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13792               '"$old_archive_cmds_CXX"
13793             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13794               '"$reload_cmds_CXX"
13795             ;;
13796           *)
13797             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799             ;;
13800         esac
13801       ;;
13802
13803       tandem*)
13804         case $cc_basename in
13805           NCC*)
13806             # NonStop-UX NCC 3.20
13807             # FIXME: insert proper C++ library support
13808             ld_shlibs_CXX=no
13809             ;;
13810           *)
13811             # FIXME: insert proper C++ library support
13812             ld_shlibs_CXX=no
13813             ;;
13814         esac
13815         ;;
13816
13817       vxworks*)
13818         # FIXME: insert proper C++ library support
13819         ld_shlibs_CXX=no
13820         ;;
13821
13822       *)
13823         # FIXME: insert proper C++ library support
13824         ld_shlibs_CXX=no
13825         ;;
13826     esac
13827
13828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13829 $as_echo "$ld_shlibs_CXX" >&6; }
13830     test "$ld_shlibs_CXX" = no && can_build_shared=no
13831
13832     GCC_CXX="$GXX"
13833     LD_CXX="$LD"
13834
13835     ## CAVEAT EMPTOR:
13836     ## There is no encapsulation within the following macros, do not change
13837     ## the running order or otherwise move them around unless you know exactly
13838     ## what you are doing...
13839     # Dependencies to place before and after the object being linked:
13840 predep_objects_CXX=
13841 postdep_objects_CXX=
13842 predeps_CXX=
13843 postdeps_CXX=
13844 compiler_lib_search_path_CXX=
13845
13846 cat > conftest.$ac_ext <<_LT_EOF
13847 class Foo
13848 {
13849 public:
13850   Foo (void) { a = 0; }
13851 private:
13852   int a;
13853 };
13854 _LT_EOF
13855
13856
13857 _lt_libdeps_save_CFLAGS=$CFLAGS
13858 case "$CC $CFLAGS " in #(
13859 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13860 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13861 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13862 esac
13863
13864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13865   (eval $ac_compile) 2>&5
13866   ac_status=$?
13867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13868   test $ac_status = 0; }; then
13869   # Parse the compiler output and extract the necessary
13870   # objects, libraries and library flags.
13871
13872   # Sentinel used to keep track of whether or not we are before
13873   # the conftest object file.
13874   pre_test_object_deps_done=no
13875
13876   for p in `eval "$output_verbose_link_cmd"`; do
13877     case ${prev}${p} in
13878
13879     -L* | -R* | -l*)
13880        # Some compilers place space between "-{L,R}" and the path.
13881        # Remove the space.
13882        if test $p = "-L" ||
13883           test $p = "-R"; then
13884          prev=$p
13885          continue
13886        fi
13887
13888        # Expand the sysroot to ease extracting the directories later.
13889        if test -z "$prev"; then
13890          case $p in
13891          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13892          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13893          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13894          esac
13895        fi
13896        case $p in
13897        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13898        esac
13899        if test "$pre_test_object_deps_done" = no; then
13900          case ${prev} in
13901          -L | -R)
13902            # Internal compiler library paths should come after those
13903            # provided the user.  The postdeps already come after the
13904            # user supplied libs so there is no need to process them.
13905            if test -z "$compiler_lib_search_path_CXX"; then
13906              compiler_lib_search_path_CXX="${prev}${p}"
13907            else
13908              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13909            fi
13910            ;;
13911          # The "-l" case would never come before the object being
13912          # linked, so don't bother handling this case.
13913          esac
13914        else
13915          if test -z "$postdeps_CXX"; then
13916            postdeps_CXX="${prev}${p}"
13917          else
13918            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13919          fi
13920        fi
13921        prev=
13922        ;;
13923
13924     *.lto.$objext) ;; # Ignore GCC LTO objects
13925     *.$objext)
13926        # This assumes that the test object file only shows up
13927        # once in the compiler output.
13928        if test "$p" = "conftest.$objext"; then
13929          pre_test_object_deps_done=yes
13930          continue
13931        fi
13932
13933        if test "$pre_test_object_deps_done" = no; then
13934          if test -z "$predep_objects_CXX"; then
13935            predep_objects_CXX="$p"
13936          else
13937            predep_objects_CXX="$predep_objects_CXX $p"
13938          fi
13939        else
13940          if test -z "$postdep_objects_CXX"; then
13941            postdep_objects_CXX="$p"
13942          else
13943            postdep_objects_CXX="$postdep_objects_CXX $p"
13944          fi
13945        fi
13946        ;;
13947
13948     *) ;; # Ignore the rest.
13949
13950     esac
13951   done
13952
13953   # Clean up.
13954   rm -f a.out a.exe
13955 else
13956   echo "libtool.m4: error: problem compiling CXX test program"
13957 fi
13958
13959 $RM -f confest.$objext
13960 CFLAGS=$_lt_libdeps_save_CFLAGS
13961
13962 # PORTME: override above test on systems where it is broken
13963 case $host_os in
13964 interix[3-9]*)
13965   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13966   # hack all around it, let's just trust "g++" to DTRT.
13967   predep_objects_CXX=
13968   postdep_objects_CXX=
13969   postdeps_CXX=
13970   ;;
13971
13972 linux*)
13973   case `$CC -V 2>&1 | sed 5q` in
13974   *Sun\ C*)
13975     # Sun C++ 5.9
13976
13977     # The more standards-conforming stlport4 library is
13978     # incompatible with the Cstd library. Avoid specifying
13979     # it if it's in CXXFLAGS. Ignore libCrun as
13980     # -library=stlport4 depends on it.
13981     case " $CXX $CXXFLAGS " in
13982     *" -library=stlport4 "*)
13983       solaris_use_stlport4=yes
13984       ;;
13985     esac
13986
13987     if test "$solaris_use_stlport4" != yes; then
13988       postdeps_CXX='-library=Cstd -library=Crun'
13989     fi
13990     ;;
13991   esac
13992   ;;
13993
13994 solaris*)
13995   case $cc_basename in
13996   CC* | sunCC*)
13997     # The more standards-conforming stlport4 library is
13998     # incompatible with the Cstd library. Avoid specifying
13999     # it if it's in CXXFLAGS. Ignore libCrun as
14000     # -library=stlport4 depends on it.
14001     case " $CXX $CXXFLAGS " in
14002     *" -library=stlport4 "*)
14003       solaris_use_stlport4=yes
14004       ;;
14005     esac
14006
14007     # Adding this requires a known-good setup of shared libraries for
14008     # Sun compiler versions before 5.6, else PIC objects from an old
14009     # archive will be linked into the output, leading to subtle bugs.
14010     if test "$solaris_use_stlport4" != yes; then
14011       postdeps_CXX='-library=Cstd -library=Crun'
14012     fi
14013     ;;
14014   esac
14015   ;;
14016 esac
14017
14018
14019 case " $postdeps_CXX " in
14020 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14021 esac
14022  compiler_lib_search_dirs_CXX=
14023 if test -n "${compiler_lib_search_path_CXX}"; then
14024  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14025 fi
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057     lt_prog_compiler_wl_CXX=
14058 lt_prog_compiler_pic_CXX=
14059 lt_prog_compiler_static_CXX=
14060
14061
14062   # C++ specific cases for pic, static, wl, etc.
14063   if test "$GXX" = yes; then
14064     lt_prog_compiler_wl_CXX='-Wl,'
14065     lt_prog_compiler_static_CXX='-static'
14066
14067     case $host_os in
14068     aix*)
14069       # All AIX code is PIC.
14070       if test "$host_cpu" = ia64; then
14071         # AIX 5 now supports IA64 processor
14072         lt_prog_compiler_static_CXX='-Bstatic'
14073       fi
14074       ;;
14075
14076     amigaos*)
14077       case $host_cpu in
14078       powerpc)
14079             # see comment about AmigaOS4 .so support
14080             lt_prog_compiler_pic_CXX='-fPIC'
14081         ;;
14082       m68k)
14083             # FIXME: we need at least 68020 code to build shared libraries, but
14084             # adding the `-m68020' flag to GCC prevents building anything better,
14085             # like `-m68040'.
14086             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14087         ;;
14088       esac
14089       ;;
14090
14091     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14092       # PIC is the default for these OSes.
14093       ;;
14094     mingw* | cygwin* | os2* | pw32* | cegcc*)
14095       # This hack is so that the source file can tell whether it is being
14096       # built for inclusion in a dll (and should export symbols for example).
14097       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14098       # (--disable-auto-import) libraries
14099       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14100       ;;
14101     darwin* | rhapsody*)
14102       # PIC is the default on this platform
14103       # Common symbols not allowed in MH_DYLIB files
14104       lt_prog_compiler_pic_CXX='-fno-common'
14105       ;;
14106     *djgpp*)
14107       # DJGPP does not support shared libraries at all
14108       lt_prog_compiler_pic_CXX=
14109       ;;
14110     haiku*)
14111       # PIC is the default for Haiku.
14112       # The "-static" flag exists, but is broken.
14113       lt_prog_compiler_static_CXX=
14114       ;;
14115     interix[3-9]*)
14116       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14117       # Instead, we relocate shared libraries at runtime.
14118       ;;
14119     sysv4*MP*)
14120       if test -d /usr/nec; then
14121         lt_prog_compiler_pic_CXX=-Kconform_pic
14122       fi
14123       ;;
14124     hpux*)
14125       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14126       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14127       # sets the default TLS model and affects inlining.
14128       case $host_cpu in
14129       hppa*64*)
14130         ;;
14131       *)
14132         lt_prog_compiler_pic_CXX='-fPIC'
14133         ;;
14134       esac
14135       ;;
14136     *qnx* | *nto*)
14137       # QNX uses GNU C++, but need to define -shared option too, otherwise
14138       # it will coredump.
14139       lt_prog_compiler_pic_CXX='-fPIC -shared'
14140       ;;
14141     *)
14142       lt_prog_compiler_pic_CXX='-fPIC'
14143       ;;
14144     esac
14145   else
14146     case $host_os in
14147       aix[4-9]*)
14148         # All AIX code is PIC.
14149         if test "$host_cpu" = ia64; then
14150           # AIX 5 now supports IA64 processor
14151           lt_prog_compiler_static_CXX='-Bstatic'
14152         else
14153           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14154         fi
14155         ;;
14156       chorus*)
14157         case $cc_basename in
14158         cxch68*)
14159           # Green Hills C++ Compiler
14160           # _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"
14161           ;;
14162         esac
14163         ;;
14164       mingw* | cygwin* | os2* | pw32* | cegcc*)
14165         # This hack is so that the source file can tell whether it is being
14166         # built for inclusion in a dll (and should export symbols for example).
14167         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14168         ;;
14169       dgux*)
14170         case $cc_basename in
14171           ec++*)
14172             lt_prog_compiler_pic_CXX='-KPIC'
14173             ;;
14174           ghcx*)
14175             # Green Hills C++ Compiler
14176             lt_prog_compiler_pic_CXX='-pic'
14177             ;;
14178           *)
14179             ;;
14180         esac
14181         ;;
14182       freebsd* | dragonfly*)
14183         # FreeBSD uses GNU C++
14184         ;;
14185       hpux9* | hpux10* | hpux11*)
14186         case $cc_basename in
14187           CC*)
14188             lt_prog_compiler_wl_CXX='-Wl,'
14189             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14190             if test "$host_cpu" != ia64; then
14191               lt_prog_compiler_pic_CXX='+Z'
14192             fi
14193             ;;
14194           aCC*)
14195             lt_prog_compiler_wl_CXX='-Wl,'
14196             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14197             case $host_cpu in
14198             hppa*64*|ia64*)
14199               # +Z the default
14200               ;;
14201             *)
14202               lt_prog_compiler_pic_CXX='+Z'
14203               ;;
14204             esac
14205             ;;
14206           *)
14207             ;;
14208         esac
14209         ;;
14210       interix*)
14211         # This is c89, which is MS Visual C++ (no shared libs)
14212         # Anyone wants to do a port?
14213         ;;
14214       irix5* | irix6* | nonstopux*)
14215         case $cc_basename in
14216           CC*)
14217             lt_prog_compiler_wl_CXX='-Wl,'
14218             lt_prog_compiler_static_CXX='-non_shared'
14219             # CC pic flag -KPIC is the default.
14220             ;;
14221           *)
14222             ;;
14223         esac
14224         ;;
14225       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14226         case $cc_basename in
14227           KCC*)
14228             # KAI C++ Compiler
14229             lt_prog_compiler_wl_CXX='--backend -Wl,'
14230             lt_prog_compiler_pic_CXX='-fPIC'
14231             ;;
14232           ecpc* )
14233             # old Intel C++ for x86_64 which still supported -KPIC.
14234             lt_prog_compiler_wl_CXX='-Wl,'
14235             lt_prog_compiler_pic_CXX='-KPIC'
14236             lt_prog_compiler_static_CXX='-static'
14237             ;;
14238           icpc* )
14239             # Intel C++, used to be incompatible with GCC.
14240             # ICC 10 doesn't accept -KPIC any more.
14241             lt_prog_compiler_wl_CXX='-Wl,'
14242             lt_prog_compiler_pic_CXX='-fPIC'
14243             lt_prog_compiler_static_CXX='-static'
14244             ;;
14245           pgCC* | pgcpp*)
14246             # Portland Group C++ compiler
14247             lt_prog_compiler_wl_CXX='-Wl,'
14248             lt_prog_compiler_pic_CXX='-fpic'
14249             lt_prog_compiler_static_CXX='-Bstatic'
14250             ;;
14251           cxx*)
14252             # Compaq C++
14253             # Make sure the PIC flag is empty.  It appears that all Alpha
14254             # Linux and Compaq Tru64 Unix objects are PIC.
14255             lt_prog_compiler_pic_CXX=
14256             lt_prog_compiler_static_CXX='-non_shared'
14257             ;;
14258           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14259             # IBM XL 8.0, 9.0 on PPC and BlueGene
14260             lt_prog_compiler_wl_CXX='-Wl,'
14261             lt_prog_compiler_pic_CXX='-qpic'
14262             lt_prog_compiler_static_CXX='-qstaticlink'
14263             ;;
14264           *)
14265             case `$CC -V 2>&1 | sed 5q` in
14266             *Sun\ C*)
14267               # Sun C++ 5.9
14268               lt_prog_compiler_pic_CXX='-KPIC'
14269               lt_prog_compiler_static_CXX='-Bstatic'
14270               lt_prog_compiler_wl_CXX='-Qoption ld '
14271               ;;
14272             esac
14273             ;;
14274         esac
14275         ;;
14276       lynxos*)
14277         ;;
14278       m88k*)
14279         ;;
14280       mvs*)
14281         case $cc_basename in
14282           cxx*)
14283             lt_prog_compiler_pic_CXX='-W c,exportall'
14284             ;;
14285           *)
14286             ;;
14287         esac
14288         ;;
14289       netbsd* | netbsdelf*-gnu)
14290         ;;
14291       *qnx* | *nto*)
14292         # QNX uses GNU C++, but need to define -shared option too, otherwise
14293         # it will coredump.
14294         lt_prog_compiler_pic_CXX='-fPIC -shared'
14295         ;;
14296       osf3* | osf4* | osf5*)
14297         case $cc_basename in
14298           KCC*)
14299             lt_prog_compiler_wl_CXX='--backend -Wl,'
14300             ;;
14301           RCC*)
14302             # Rational C++ 2.4.1
14303             lt_prog_compiler_pic_CXX='-pic'
14304             ;;
14305           cxx*)
14306             # Digital/Compaq C++
14307             lt_prog_compiler_wl_CXX='-Wl,'
14308             # Make sure the PIC flag is empty.  It appears that all Alpha
14309             # Linux and Compaq Tru64 Unix objects are PIC.
14310             lt_prog_compiler_pic_CXX=
14311             lt_prog_compiler_static_CXX='-non_shared'
14312             ;;
14313           *)
14314             ;;
14315         esac
14316         ;;
14317       psos*)
14318         ;;
14319       solaris*)
14320         case $cc_basename in
14321           CC* | sunCC*)
14322             # Sun C++ 4.2, 5.x and Centerline C++
14323             lt_prog_compiler_pic_CXX='-KPIC'
14324             lt_prog_compiler_static_CXX='-Bstatic'
14325             lt_prog_compiler_wl_CXX='-Qoption ld '
14326             ;;
14327           gcx*)
14328             # Green Hills C++ Compiler
14329             lt_prog_compiler_pic_CXX='-PIC'
14330             ;;
14331           *)
14332             ;;
14333         esac
14334         ;;
14335       sunos4*)
14336         case $cc_basename in
14337           CC*)
14338             # Sun C++ 4.x
14339             lt_prog_compiler_pic_CXX='-pic'
14340             lt_prog_compiler_static_CXX='-Bstatic'
14341             ;;
14342           lcc*)
14343             # Lucid
14344             lt_prog_compiler_pic_CXX='-pic'
14345             ;;
14346           *)
14347             ;;
14348         esac
14349         ;;
14350       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14351         case $cc_basename in
14352           CC*)
14353             lt_prog_compiler_wl_CXX='-Wl,'
14354             lt_prog_compiler_pic_CXX='-KPIC'
14355             lt_prog_compiler_static_CXX='-Bstatic'
14356             ;;
14357         esac
14358         ;;
14359       tandem*)
14360         case $cc_basename in
14361           NCC*)
14362             # NonStop-UX NCC 3.20
14363             lt_prog_compiler_pic_CXX='-KPIC'
14364             ;;
14365           *)
14366             ;;
14367         esac
14368         ;;
14369       vxworks*)
14370         ;;
14371       *)
14372         lt_prog_compiler_can_build_shared_CXX=no
14373         ;;
14374     esac
14375   fi
14376
14377 case $host_os in
14378   # For platforms which do not support PIC, -DPIC is meaningless:
14379   *djgpp*)
14380     lt_prog_compiler_pic_CXX=
14381     ;;
14382   *)
14383     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14384     ;;
14385 esac
14386
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14388 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14389 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14390   $as_echo_n "(cached) " >&6
14391 else
14392   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14393 fi
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14395 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14396 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14397
14398 #
14399 # Check to make sure the PIC flag actually works.
14400 #
14401 if test -n "$lt_prog_compiler_pic_CXX"; then
14402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14403 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14404 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14405   $as_echo_n "(cached) " >&6
14406 else
14407   lt_cv_prog_compiler_pic_works_CXX=no
14408    ac_outfile=conftest.$ac_objext
14409    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14410    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14411    # Insert the option either (1) after the last *FLAGS variable, or
14412    # (2) before a word containing "conftest.", or (3) at the end.
14413    # Note that $ac_compile itself does not contain backslashes and begins
14414    # with a dollar sign (not a hyphen), so the echo should work correctly.
14415    # The option is referenced via a variable to avoid confusing sed.
14416    lt_compile=`echo "$ac_compile" | $SED \
14417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14419    -e 's:$: $lt_compiler_flag:'`
14420    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14421    (eval "$lt_compile" 2>conftest.err)
14422    ac_status=$?
14423    cat conftest.err >&5
14424    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425    if (exit $ac_status) && test -s "$ac_outfile"; then
14426      # The compiler can only warn and ignore the option if not recognized
14427      # So say no if there are warnings other than the usual output.
14428      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14429      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14430      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14431        lt_cv_prog_compiler_pic_works_CXX=yes
14432      fi
14433    fi
14434    $RM conftest*
14435
14436 fi
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14438 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14439
14440 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14441     case $lt_prog_compiler_pic_CXX in
14442      "" | " "*) ;;
14443      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14444      esac
14445 else
14446     lt_prog_compiler_pic_CXX=
14447      lt_prog_compiler_can_build_shared_CXX=no
14448 fi
14449
14450 fi
14451
14452
14453
14454
14455
14456 #
14457 # Check to make sure the static flag actually works.
14458 #
14459 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14461 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14462 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   lt_cv_prog_compiler_static_works_CXX=no
14466    save_LDFLAGS="$LDFLAGS"
14467    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14468    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14469    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14470      # The linker can only warn and ignore the option if not recognized
14471      # So say no if there are warnings
14472      if test -s conftest.err; then
14473        # Append any errors to the config.log.
14474        cat conftest.err 1>&5
14475        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14476        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14477        if diff conftest.exp conftest.er2 >/dev/null; then
14478          lt_cv_prog_compiler_static_works_CXX=yes
14479        fi
14480      else
14481        lt_cv_prog_compiler_static_works_CXX=yes
14482      fi
14483    fi
14484    $RM -r conftest*
14485    LDFLAGS="$save_LDFLAGS"
14486
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14489 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14490
14491 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14492     :
14493 else
14494     lt_prog_compiler_static_CXX=
14495 fi
14496
14497
14498
14499
14500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14502 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14503   $as_echo_n "(cached) " >&6
14504 else
14505   lt_cv_prog_compiler_c_o_CXX=no
14506    $RM -r conftest 2>/dev/null
14507    mkdir conftest
14508    cd conftest
14509    mkdir out
14510    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14511
14512    lt_compiler_flag="-o out/conftest2.$ac_objext"
14513    # Insert the option either (1) after the last *FLAGS variable, or
14514    # (2) before a word containing "conftest.", or (3) at the end.
14515    # Note that $ac_compile itself does not contain backslashes and begins
14516    # with a dollar sign (not a hyphen), so the echo should work correctly.
14517    lt_compile=`echo "$ac_compile" | $SED \
14518    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14520    -e 's:$: $lt_compiler_flag:'`
14521    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14522    (eval "$lt_compile" 2>out/conftest.err)
14523    ac_status=$?
14524    cat out/conftest.err >&5
14525    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14527    then
14528      # The compiler can only warn and ignore the option if not recognized
14529      # So say no if there are warnings
14530      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14531      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14532      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14533        lt_cv_prog_compiler_c_o_CXX=yes
14534      fi
14535    fi
14536    chmod u+w . 2>&5
14537    $RM conftest*
14538    # SGI C++ compiler will create directory out/ii_files/ for
14539    # template instantiation
14540    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14541    $RM out/* && rmdir out
14542    cd ..
14543    $RM -r conftest
14544    $RM conftest*
14545
14546 fi
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14548 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14549
14550
14551
14552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14553 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14554 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14555   $as_echo_n "(cached) " >&6
14556 else
14557   lt_cv_prog_compiler_c_o_CXX=no
14558    $RM -r conftest 2>/dev/null
14559    mkdir conftest
14560    cd conftest
14561    mkdir out
14562    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14563
14564    lt_compiler_flag="-o out/conftest2.$ac_objext"
14565    # Insert the option either (1) after the last *FLAGS variable, or
14566    # (2) before a word containing "conftest.", or (3) at the end.
14567    # Note that $ac_compile itself does not contain backslashes and begins
14568    # with a dollar sign (not a hyphen), so the echo should work correctly.
14569    lt_compile=`echo "$ac_compile" | $SED \
14570    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14572    -e 's:$: $lt_compiler_flag:'`
14573    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14574    (eval "$lt_compile" 2>out/conftest.err)
14575    ac_status=$?
14576    cat out/conftest.err >&5
14577    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14579    then
14580      # The compiler can only warn and ignore the option if not recognized
14581      # So say no if there are warnings
14582      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14583      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14584      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14585        lt_cv_prog_compiler_c_o_CXX=yes
14586      fi
14587    fi
14588    chmod u+w . 2>&5
14589    $RM conftest*
14590    # SGI C++ compiler will create directory out/ii_files/ for
14591    # template instantiation
14592    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14593    $RM out/* && rmdir out
14594    cd ..
14595    $RM -r conftest
14596    $RM conftest*
14597
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14600 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14601
14602
14603
14604
14605 hard_links="nottested"
14606 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14607   # do not overwrite the value of need_locks provided by the user
14608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14609 $as_echo_n "checking if we can lock with hard links... " >&6; }
14610   hard_links=yes
14611   $RM conftest*
14612   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14613   touch conftest.a
14614   ln conftest.a conftest.b 2>&5 || hard_links=no
14615   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14617 $as_echo "$hard_links" >&6; }
14618   if test "$hard_links" = no; then
14619     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14620 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14621     need_locks=warn
14622   fi
14623 else
14624   need_locks=no
14625 fi
14626
14627
14628
14629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14631
14632   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14633   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14634   case $host_os in
14635   aix[4-9]*)
14636     # If we're using GNU nm, then we don't want the "-C" option.
14637     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14638     # Also, AIX nm treats weak defined symbols like other global defined
14639     # symbols, whereas GNU nm marks them as "W".
14640     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14641       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'
14642     else
14643       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'
14644     fi
14645     ;;
14646   pw32*)
14647     export_symbols_cmds_CXX="$ltdll_cmds"
14648     ;;
14649   cygwin* | mingw* | cegcc*)
14650     case $cc_basename in
14651     cl*)
14652       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14653       ;;
14654     *)
14655       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14656       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14657       ;;
14658     esac
14659     ;;
14660   linux* | k*bsd*-gnu | gnu*)
14661     link_all_deplibs_CXX=no
14662     ;;
14663   *)
14664     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14665     ;;
14666   esac
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14669 $as_echo "$ld_shlibs_CXX" >&6; }
14670 test "$ld_shlibs_CXX" = no && can_build_shared=no
14671
14672 with_gnu_ld_CXX=$with_gnu_ld
14673
14674
14675
14676
14677
14678
14679 #
14680 # Do we need to explicitly link libc?
14681 #
14682 case "x$archive_cmds_need_lc_CXX" in
14683 x|xyes)
14684   # Assume -lc should be added
14685   archive_cmds_need_lc_CXX=yes
14686
14687   if test "$enable_shared" = yes && test "$GCC" = yes; then
14688     case $archive_cmds_CXX in
14689     *'~'*)
14690       # FIXME: we may have to deal with multi-command sequences.
14691       ;;
14692     '$CC '*)
14693       # Test whether the compiler implicitly links with -lc since on some
14694       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14695       # to ld, don't add -lc before -lgcc.
14696       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14697 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14698 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14699   $as_echo_n "(cached) " >&6
14700 else
14701   $RM conftest*
14702         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14703
14704         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14705   (eval $ac_compile) 2>&5
14706   ac_status=$?
14707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14708   test $ac_status = 0; } 2>conftest.err; then
14709           soname=conftest
14710           lib=conftest
14711           libobjs=conftest.$ac_objext
14712           deplibs=
14713           wl=$lt_prog_compiler_wl_CXX
14714           pic_flag=$lt_prog_compiler_pic_CXX
14715           compiler_flags=-v
14716           linker_flags=-v
14717           verstring=
14718           output_objdir=.
14719           libname=conftest
14720           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14721           allow_undefined_flag_CXX=
14722           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14723   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14724   ac_status=$?
14725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14726   test $ac_status = 0; }
14727           then
14728             lt_cv_archive_cmds_need_lc_CXX=no
14729           else
14730             lt_cv_archive_cmds_need_lc_CXX=yes
14731           fi
14732           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14733         else
14734           cat conftest.err 1>&5
14735         fi
14736         $RM conftest*
14737
14738 fi
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14740 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14741       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14742       ;;
14743     esac
14744   fi
14745   ;;
14746 esac
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14811
14812 library_names_spec=
14813 libname_spec='lib$name'
14814 soname_spec=
14815 shrext_cmds=".so"
14816 postinstall_cmds=
14817 postuninstall_cmds=
14818 finish_cmds=
14819 finish_eval=
14820 shlibpath_var=
14821 shlibpath_overrides_runpath=unknown
14822 version_type=none
14823 dynamic_linker="$host_os ld.so"
14824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14825 need_lib_prefix=unknown
14826 hardcode_into_libs=no
14827
14828 # when you set need_version to no, make sure it does not cause -set_version
14829 # flags to be left without arguments
14830 need_version=unknown
14831
14832 case $host_os in
14833 aix3*)
14834   version_type=linux # correct to gnu/linux during the next big refactor
14835   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14836   shlibpath_var=LIBPATH
14837
14838   # AIX 3 has no versioning support, so we append a major version to the name.
14839   soname_spec='${libname}${release}${shared_ext}$major'
14840   ;;
14841
14842 aix[4-9]*)
14843   version_type=linux # correct to gnu/linux during the next big refactor
14844   need_lib_prefix=no
14845   need_version=no
14846   hardcode_into_libs=yes
14847   if test "$host_cpu" = ia64; then
14848     # AIX 5 supports IA64
14849     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14850     shlibpath_var=LD_LIBRARY_PATH
14851   else
14852     # With GCC up to 2.95.x, collect2 would create an import file
14853     # for dependence libraries.  The import file would start with
14854     # the line `#! .'.  This would cause the generated library to
14855     # depend on `.', always an invalid library.  This was fixed in
14856     # development snapshots of GCC prior to 3.0.
14857     case $host_os in
14858       aix4 | aix4.[01] | aix4.[01].*)
14859       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14860            echo ' yes '
14861            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14862         :
14863       else
14864         can_build_shared=no
14865       fi
14866       ;;
14867     esac
14868     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14869     # soname into executable. Probably we can add versioning support to
14870     # collect2, so additional links can be useful in future.
14871     if test "$aix_use_runtimelinking" = yes; then
14872       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14873       # instead of lib<name>.a to let people know that these are not
14874       # typical AIX shared libraries.
14875       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876     else
14877       # We preserve .a as extension for shared libraries through AIX4.2
14878       # and later when we are not doing run time linking.
14879       library_names_spec='${libname}${release}.a $libname.a'
14880       soname_spec='${libname}${release}${shared_ext}$major'
14881     fi
14882     shlibpath_var=LIBPATH
14883   fi
14884   ;;
14885
14886 amigaos*)
14887   case $host_cpu in
14888   powerpc)
14889     # Since July 2007 AmigaOS4 officially supports .so libraries.
14890     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892     ;;
14893   m68k)
14894     library_names_spec='$libname.ixlibrary $libname.a'
14895     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14896     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'
14897     ;;
14898   esac
14899   ;;
14900
14901 beos*)
14902   library_names_spec='${libname}${shared_ext}'
14903   dynamic_linker="$host_os ld.so"
14904   shlibpath_var=LIBRARY_PATH
14905   ;;
14906
14907 bsdi[45]*)
14908   version_type=linux # correct to gnu/linux during the next big refactor
14909   need_version=no
14910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911   soname_spec='${libname}${release}${shared_ext}$major'
14912   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14913   shlibpath_var=LD_LIBRARY_PATH
14914   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14915   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14916   # the default ld.so.conf also contains /usr/contrib/lib and
14917   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14918   # libtool to hard-code these into programs
14919   ;;
14920
14921 cygwin* | mingw* | pw32* | cegcc*)
14922   version_type=windows
14923   shrext_cmds=".dll"
14924   need_version=no
14925   need_lib_prefix=no
14926
14927   case $GCC,$cc_basename in
14928   yes,*)
14929     # gcc
14930     library_names_spec='$libname.dll.a'
14931     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14932     postinstall_cmds='base_file=`basename \${file}`~
14933       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14934       dldir=$destdir/`dirname \$dlpath`~
14935       test -d \$dldir || mkdir -p \$dldir~
14936       $install_prog $dir/$dlname \$dldir/$dlname~
14937       chmod a+x \$dldir/$dlname~
14938       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14939         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14940       fi'
14941     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14942       dlpath=$dir/\$dldll~
14943        $RM \$dlpath'
14944     shlibpath_overrides_runpath=yes
14945
14946     case $host_os in
14947     cygwin*)
14948       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14949       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14950
14951       ;;
14952     mingw* | cegcc*)
14953       # MinGW DLLs use traditional 'lib' prefix
14954       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14955       ;;
14956     pw32*)
14957       # pw32 DLLs use 'pw' prefix rather than 'lib'
14958       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14959       ;;
14960     esac
14961     dynamic_linker='Win32 ld.exe'
14962     ;;
14963
14964   *,cl*)
14965     # Native MSVC
14966     libname_spec='$name'
14967     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14968     library_names_spec='${libname}.dll.lib'
14969
14970     case $build_os in
14971     mingw*)
14972       sys_lib_search_path_spec=
14973       lt_save_ifs=$IFS
14974       IFS=';'
14975       for lt_path in $LIB
14976       do
14977         IFS=$lt_save_ifs
14978         # Let DOS variable expansion print the short 8.3 style file name.
14979         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14980         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14981       done
14982       IFS=$lt_save_ifs
14983       # Convert to MSYS style.
14984       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14985       ;;
14986     cygwin*)
14987       # Convert to unix form, then to dos form, then back to unix form
14988       # but this time dos style (no spaces!) so that the unix form looks
14989       # like /cygdrive/c/PROGRA~1:/cygdr...
14990       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14991       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14992       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14993       ;;
14994     *)
14995       sys_lib_search_path_spec="$LIB"
14996       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14997         # It is most probably a Windows format PATH.
14998         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14999       else
15000         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15001       fi
15002       # FIXME: find the short name or the path components, as spaces are
15003       # common. (e.g. "Program Files" -> "PROGRA~1")
15004       ;;
15005     esac
15006
15007     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15008     postinstall_cmds='base_file=`basename \${file}`~
15009       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15010       dldir=$destdir/`dirname \$dlpath`~
15011       test -d \$dldir || mkdir -p \$dldir~
15012       $install_prog $dir/$dlname \$dldir/$dlname'
15013     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15014       dlpath=$dir/\$dldll~
15015        $RM \$dlpath'
15016     shlibpath_overrides_runpath=yes
15017     dynamic_linker='Win32 link.exe'
15018     ;;
15019
15020   *)
15021     # Assume MSVC wrapper
15022     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15023     dynamic_linker='Win32 ld.exe'
15024     ;;
15025   esac
15026   # FIXME: first we should search . and the directory the executable is in
15027   shlibpath_var=PATH
15028   ;;
15029
15030 darwin* | rhapsody*)
15031   dynamic_linker="$host_os dyld"
15032   version_type=darwin
15033   need_lib_prefix=no
15034   need_version=no
15035   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15036   soname_spec='${libname}${release}${major}$shared_ext'
15037   shlibpath_overrides_runpath=yes
15038   shlibpath_var=DYLD_LIBRARY_PATH
15039   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15040
15041   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15042   ;;
15043
15044 dgux*)
15045   version_type=linux # correct to gnu/linux during the next big refactor
15046   need_lib_prefix=no
15047   need_version=no
15048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15049   soname_spec='${libname}${release}${shared_ext}$major'
15050   shlibpath_var=LD_LIBRARY_PATH
15051   ;;
15052
15053 freebsd* | dragonfly*)
15054   # DragonFly does not have aout.  When/if they implement a new
15055   # versioning mechanism, adjust this.
15056   if test -x /usr/bin/objformat; then
15057     objformat=`/usr/bin/objformat`
15058   else
15059     case $host_os in
15060     freebsd[23].*) objformat=aout ;;
15061     *) objformat=elf ;;
15062     esac
15063   fi
15064   version_type=freebsd-$objformat
15065   case $version_type in
15066     freebsd-elf*)
15067       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15068       need_version=no
15069       need_lib_prefix=no
15070       ;;
15071     freebsd-*)
15072       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15073       need_version=yes
15074       ;;
15075   esac
15076   shlibpath_var=LD_LIBRARY_PATH
15077   case $host_os in
15078   freebsd2.*)
15079     shlibpath_overrides_runpath=yes
15080     ;;
15081   freebsd3.[01]* | freebsdelf3.[01]*)
15082     shlibpath_overrides_runpath=yes
15083     hardcode_into_libs=yes
15084     ;;
15085   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15086   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15087     shlibpath_overrides_runpath=no
15088     hardcode_into_libs=yes
15089     ;;
15090   *) # from 4.6 on, and DragonFly
15091     shlibpath_overrides_runpath=yes
15092     hardcode_into_libs=yes
15093     ;;
15094   esac
15095   ;;
15096
15097 gnu*)
15098   version_type=linux # correct to gnu/linux during the next big refactor
15099   need_lib_prefix=no
15100   need_version=no
15101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15102   soname_spec='${libname}${release}${shared_ext}$major'
15103   shlibpath_var=LD_LIBRARY_PATH
15104   shlibpath_overrides_runpath=no
15105   hardcode_into_libs=yes
15106   ;;
15107
15108 haiku*)
15109   version_type=linux # correct to gnu/linux during the next big refactor
15110   need_lib_prefix=no
15111   need_version=no
15112   dynamic_linker="$host_os runtime_loader"
15113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15114   soname_spec='${libname}${release}${shared_ext}$major'
15115   shlibpath_var=LIBRARY_PATH
15116   shlibpath_overrides_runpath=yes
15117   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15118   hardcode_into_libs=yes
15119   ;;
15120
15121 hpux9* | hpux10* | hpux11*)
15122   # Give a soname corresponding to the major version so that dld.sl refuses to
15123   # link against other versions.
15124   version_type=sunos
15125   need_lib_prefix=no
15126   need_version=no
15127   case $host_cpu in
15128   ia64*)
15129     shrext_cmds='.so'
15130     hardcode_into_libs=yes
15131     dynamic_linker="$host_os dld.so"
15132     shlibpath_var=LD_LIBRARY_PATH
15133     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135     soname_spec='${libname}${release}${shared_ext}$major'
15136     if test "X$HPUX_IA64_MODE" = X32; then
15137       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15138     else
15139       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15140     fi
15141     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15142     ;;
15143   hppa*64*)
15144     shrext_cmds='.sl'
15145     hardcode_into_libs=yes
15146     dynamic_linker="$host_os dld.sl"
15147     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15148     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15149     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150     soname_spec='${libname}${release}${shared_ext}$major'
15151     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15152     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15153     ;;
15154   *)
15155     shrext_cmds='.sl'
15156     dynamic_linker="$host_os dld.sl"
15157     shlibpath_var=SHLIB_PATH
15158     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160     soname_spec='${libname}${release}${shared_ext}$major'
15161     ;;
15162   esac
15163   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15164   postinstall_cmds='chmod 555 $lib'
15165   # or fails outright, so override atomically:
15166   install_override_mode=555
15167   ;;
15168
15169 interix[3-9]*)
15170   version_type=linux # correct to gnu/linux during the next big refactor
15171   need_lib_prefix=no
15172   need_version=no
15173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15174   soname_spec='${libname}${release}${shared_ext}$major'
15175   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15176   shlibpath_var=LD_LIBRARY_PATH
15177   shlibpath_overrides_runpath=no
15178   hardcode_into_libs=yes
15179   ;;
15180
15181 irix5* | irix6* | nonstopux*)
15182   case $host_os in
15183     nonstopux*) version_type=nonstopux ;;
15184     *)
15185         if test "$lt_cv_prog_gnu_ld" = yes; then
15186                 version_type=linux # correct to gnu/linux during the next big refactor
15187         else
15188                 version_type=irix
15189         fi ;;
15190   esac
15191   need_lib_prefix=no
15192   need_version=no
15193   soname_spec='${libname}${release}${shared_ext}$major'
15194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15195   case $host_os in
15196   irix5* | nonstopux*)
15197     libsuff= shlibsuff=
15198     ;;
15199   *)
15200     case $LD in # libtool.m4 will add one of these switches to LD
15201     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15202       libsuff= shlibsuff= libmagic=32-bit;;
15203     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15204       libsuff=32 shlibsuff=N32 libmagic=N32;;
15205     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15206       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15207     *) libsuff= shlibsuff= libmagic=never-match;;
15208     esac
15209     ;;
15210   esac
15211   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15212   shlibpath_overrides_runpath=no
15213   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15214   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15215   hardcode_into_libs=yes
15216   ;;
15217
15218 # No shared lib support for Linux oldld, aout, or coff.
15219 linux*oldld* | linux*aout* | linux*coff*)
15220   dynamic_linker=no
15221   ;;
15222
15223 # This must be glibc/ELF.
15224 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15225   version_type=linux # correct to gnu/linux during the next big refactor
15226   need_lib_prefix=no
15227   need_version=no
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229   soname_spec='${libname}${release}${shared_ext}$major'
15230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15231   shlibpath_var=LD_LIBRARY_PATH
15232   shlibpath_overrides_runpath=no
15233
15234   # Some binutils ld are patched to set DT_RUNPATH
15235   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15236   $as_echo_n "(cached) " >&6
15237 else
15238   lt_cv_shlibpath_overrides_runpath=no
15239     save_LDFLAGS=$LDFLAGS
15240     save_libdir=$libdir
15241     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15242          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h.  */
15245
15246 int
15247 main ()
15248 {
15249
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 if ac_fn_cxx_try_link "$LINENO"; then :
15255   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15256   lt_cv_shlibpath_overrides_runpath=yes
15257 fi
15258 fi
15259 rm -f core conftest.err conftest.$ac_objext \
15260     conftest$ac_exeext conftest.$ac_ext
15261     LDFLAGS=$save_LDFLAGS
15262     libdir=$save_libdir
15263
15264 fi
15265
15266   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15267
15268   # This implies no fast_install, which is unacceptable.
15269   # Some rework will be needed to allow for fast_install
15270   # before this can be enabled.
15271   hardcode_into_libs=yes
15272
15273   # Append ld.so.conf contents to the search path
15274   if test -f /etc/ld.so.conf; then
15275     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' ' '`
15276     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15277   fi
15278
15279   # We used to test for /lib/ld.so.1 and disable shared libraries on
15280   # powerpc, because MkLinux only supported shared libraries with the
15281   # GNU dynamic linker.  Since this was broken with cross compilers,
15282   # most powerpc-linux boxes support dynamic linking these days and
15283   # people can always --disable-shared, the test was removed, and we
15284   # assume the GNU/Linux dynamic linker is in use.
15285   dynamic_linker='GNU/Linux ld.so'
15286   ;;
15287
15288 netbsdelf*-gnu)
15289   version_type=linux
15290   need_lib_prefix=no
15291   need_version=no
15292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15293   soname_spec='${libname}${release}${shared_ext}$major'
15294   shlibpath_var=LD_LIBRARY_PATH
15295   shlibpath_overrides_runpath=no
15296   hardcode_into_libs=yes
15297   dynamic_linker='NetBSD ld.elf_so'
15298   ;;
15299
15300 netbsd*)
15301   version_type=sunos
15302   need_lib_prefix=no
15303   need_version=no
15304   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15306     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15307     dynamic_linker='NetBSD (a.out) ld.so'
15308   else
15309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15310     soname_spec='${libname}${release}${shared_ext}$major'
15311     dynamic_linker='NetBSD ld.elf_so'
15312   fi
15313   shlibpath_var=LD_LIBRARY_PATH
15314   shlibpath_overrides_runpath=yes
15315   hardcode_into_libs=yes
15316   ;;
15317
15318 newsos6)
15319   version_type=linux # correct to gnu/linux during the next big refactor
15320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321   shlibpath_var=LD_LIBRARY_PATH
15322   shlibpath_overrides_runpath=yes
15323   ;;
15324
15325 *nto* | *qnx*)
15326   version_type=qnx
15327   need_lib_prefix=no
15328   need_version=no
15329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330   soname_spec='${libname}${release}${shared_ext}$major'
15331   shlibpath_var=LD_LIBRARY_PATH
15332   shlibpath_overrides_runpath=no
15333   hardcode_into_libs=yes
15334   dynamic_linker='ldqnx.so'
15335   ;;
15336
15337 openbsd*)
15338   version_type=sunos
15339   sys_lib_dlsearch_path_spec="/usr/lib"
15340   need_lib_prefix=no
15341   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15342   case $host_os in
15343     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15344     *)                          need_version=no  ;;
15345   esac
15346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15347   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15348   shlibpath_var=LD_LIBRARY_PATH
15349   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15350     case $host_os in
15351       openbsd2.[89] | openbsd2.[89].*)
15352         shlibpath_overrides_runpath=no
15353         ;;
15354       *)
15355         shlibpath_overrides_runpath=yes
15356         ;;
15357       esac
15358   else
15359     shlibpath_overrides_runpath=yes
15360   fi
15361   ;;
15362
15363 os2*)
15364   libname_spec='$name'
15365   shrext_cmds=".dll"
15366   need_lib_prefix=no
15367   library_names_spec='$libname${shared_ext} $libname.a'
15368   dynamic_linker='OS/2 ld.exe'
15369   shlibpath_var=LIBPATH
15370   ;;
15371
15372 osf3* | osf4* | osf5*)
15373   version_type=osf
15374   need_lib_prefix=no
15375   need_version=no
15376   soname_spec='${libname}${release}${shared_ext}$major'
15377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378   shlibpath_var=LD_LIBRARY_PATH
15379   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15380   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15381   ;;
15382
15383 rdos*)
15384   dynamic_linker=no
15385   ;;
15386
15387 solaris*)
15388   version_type=linux # correct to gnu/linux during the next big refactor
15389   need_lib_prefix=no
15390   need_version=no
15391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392   soname_spec='${libname}${release}${shared_ext}$major'
15393   shlibpath_var=LD_LIBRARY_PATH
15394   shlibpath_overrides_runpath=yes
15395   hardcode_into_libs=yes
15396   # ldd complains unless libraries are executable
15397   postinstall_cmds='chmod +x $lib'
15398   ;;
15399
15400 sunos4*)
15401   version_type=sunos
15402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15403   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15404   shlibpath_var=LD_LIBRARY_PATH
15405   shlibpath_overrides_runpath=yes
15406   if test "$with_gnu_ld" = yes; then
15407     need_lib_prefix=no
15408   fi
15409   need_version=yes
15410   ;;
15411
15412 sysv4 | sysv4.3*)
15413   version_type=linux # correct to gnu/linux during the next big refactor
15414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   shlibpath_var=LD_LIBRARY_PATH
15417   case $host_vendor in
15418     sni)
15419       shlibpath_overrides_runpath=no
15420       need_lib_prefix=no
15421       runpath_var=LD_RUN_PATH
15422       ;;
15423     siemens)
15424       need_lib_prefix=no
15425       ;;
15426     motorola)
15427       need_lib_prefix=no
15428       need_version=no
15429       shlibpath_overrides_runpath=no
15430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15431       ;;
15432   esac
15433   ;;
15434
15435 sysv4*MP*)
15436   if test -d /usr/nec ;then
15437     version_type=linux # correct to gnu/linux during the next big refactor
15438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15439     soname_spec='$libname${shared_ext}.$major'
15440     shlibpath_var=LD_LIBRARY_PATH
15441   fi
15442   ;;
15443
15444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15445   version_type=freebsd-elf
15446   need_lib_prefix=no
15447   need_version=no
15448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15449   soname_spec='${libname}${release}${shared_ext}$major'
15450   shlibpath_var=LD_LIBRARY_PATH
15451   shlibpath_overrides_runpath=yes
15452   hardcode_into_libs=yes
15453   if test "$with_gnu_ld" = yes; then
15454     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15455   else
15456     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15457     case $host_os in
15458       sco3.2v5*)
15459         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15460         ;;
15461     esac
15462   fi
15463   sys_lib_dlsearch_path_spec='/usr/lib'
15464   ;;
15465
15466 tpf*)
15467   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15468   version_type=linux # correct to gnu/linux during the next big refactor
15469   need_lib_prefix=no
15470   need_version=no
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472   shlibpath_var=LD_LIBRARY_PATH
15473   shlibpath_overrides_runpath=no
15474   hardcode_into_libs=yes
15475   ;;
15476
15477 uts4*)
15478   version_type=linux # correct to gnu/linux during the next big refactor
15479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15480   soname_spec='${libname}${release}${shared_ext}$major'
15481   shlibpath_var=LD_LIBRARY_PATH
15482   ;;
15483
15484 *)
15485   dynamic_linker=no
15486   ;;
15487 esac
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15489 $as_echo "$dynamic_linker" >&6; }
15490 test "$dynamic_linker" = no && can_build_shared=no
15491
15492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15493 if test "$GCC" = yes; then
15494   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15495 fi
15496
15497 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15498   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15499 fi
15500 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15501   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15502 fi
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15542 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15543 hardcode_action_CXX=
15544 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15545    test -n "$runpath_var_CXX" ||
15546    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15547
15548   # We can hardcode non-existent directories.
15549   if test "$hardcode_direct_CXX" != no &&
15550      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15551      # have to relink, otherwise we might link with an installed library
15552      # when we should be linking with a yet-to-be-installed one
15553      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15554      test "$hardcode_minus_L_CXX" != no; then
15555     # Linking always hardcodes the temporary library directory.
15556     hardcode_action_CXX=relink
15557   else
15558     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15559     hardcode_action_CXX=immediate
15560   fi
15561 else
15562   # We cannot hardcode anything, or else we can only hardcode existing
15563   # directories.
15564   hardcode_action_CXX=unsupported
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15567 $as_echo "$hardcode_action_CXX" >&6; }
15568
15569 if test "$hardcode_action_CXX" = relink ||
15570    test "$inherit_rpath_CXX" = yes; then
15571   # Fast installation is not supported
15572   enable_fast_install=no
15573 elif test "$shlibpath_overrides_runpath" = yes ||
15574      test "$enable_shared" = no; then
15575   # Fast installation is not necessary
15576   enable_fast_install=needless
15577 fi
15578
15579
15580
15581
15582
15583
15584
15585   fi # test -n "$compiler"
15586
15587   CC=$lt_save_CC
15588   CFLAGS=$lt_save_CFLAGS
15589   LDCXX=$LD
15590   LD=$lt_save_LD
15591   GCC=$lt_save_GCC
15592   with_gnu_ld=$lt_save_with_gnu_ld
15593   lt_cv_path_LDCXX=$lt_cv_path_LD
15594   lt_cv_path_LD=$lt_save_path_LD
15595   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15596   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15597 fi # test "$_lt_caught_CXX_error" != yes
15598
15599 ac_ext=c
15600 ac_cpp='$CPP $CPPFLAGS'
15601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619         ac_config_commands="$ac_config_commands libtool"
15620
15621
15622
15623
15624 # Only expand once:
15625
15626
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15628 $as_echo_n "checking for library containing strerror... " >&6; }
15629 if ${ac_cv_search_strerror+:} false; then :
15630   $as_echo_n "(cached) " >&6
15631 else
15632   ac_func_search_save_LIBS=$LIBS
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h.  */
15635
15636 /* Override any GCC internal prototype to avoid an error.
15637    Use char because int might match the return type of a GCC
15638    builtin and then its argument prototype would still apply.  */
15639 #ifdef __cplusplus
15640 extern "C"
15641 #endif
15642 char strerror ();
15643 int
15644 main ()
15645 {
15646 return strerror ();
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 for ac_lib in '' cposix; do
15652   if test -z "$ac_lib"; then
15653     ac_res="none required"
15654   else
15655     ac_res=-l$ac_lib
15656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15657   fi
15658   if ac_fn_c_try_link "$LINENO"; then :
15659   ac_cv_search_strerror=$ac_res
15660 fi
15661 rm -f core conftest.err conftest.$ac_objext \
15662     conftest$ac_exeext
15663   if ${ac_cv_search_strerror+:} false; then :
15664   break
15665 fi
15666 done
15667 if ${ac_cv_search_strerror+:} false; then :
15668
15669 else
15670   ac_cv_search_strerror=no
15671 fi
15672 rm conftest.$ac_ext
15673 LIBS=$ac_func_search_save_LIBS
15674 fi
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15676 $as_echo "$ac_cv_search_strerror" >&6; }
15677 ac_res=$ac_cv_search_strerror
15678 if test "$ac_res" != no; then :
15679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15680
15681 fi
15682
15683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15684 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15685 if ${ac_cv_c_bigendian+:} false; then :
15686   $as_echo_n "(cached) " >&6
15687 else
15688   ac_cv_c_bigendian=unknown
15689     # See if we're dealing with a universal compiler.
15690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h.  */
15692 #ifndef __APPLE_CC__
15693                not a universal capable compiler
15694              #endif
15695              typedef int dummy;
15696
15697 _ACEOF
15698 if ac_fn_c_try_compile "$LINENO"; then :
15699
15700         # Check for potential -arch flags.  It is not universal unless
15701         # there are at least two -arch flags with different values.
15702         ac_arch=
15703         ac_prev=
15704         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15705          if test -n "$ac_prev"; then
15706            case $ac_word in
15707              i?86 | x86_64 | ppc | ppc64)
15708                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15709                  ac_arch=$ac_word
15710                else
15711                  ac_cv_c_bigendian=universal
15712                  break
15713                fi
15714                ;;
15715            esac
15716            ac_prev=
15717          elif test "x$ac_word" = "x-arch"; then
15718            ac_prev=arch
15719          fi
15720        done
15721 fi
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723     if test $ac_cv_c_bigendian = unknown; then
15724       # See if sys/param.h defines the BYTE_ORDER macro.
15725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h.  */
15727 #include <sys/types.h>
15728              #include <sys/param.h>
15729
15730 int
15731 main ()
15732 {
15733 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15734                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15735                      && LITTLE_ENDIAN)
15736               bogus endian macros
15737              #endif
15738
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744   # It does; now see whether it defined to BIG_ENDIAN or not.
15745          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h.  */
15747 #include <sys/types.h>
15748                 #include <sys/param.h>
15749
15750 int
15751 main ()
15752 {
15753 #if BYTE_ORDER != BIG_ENDIAN
15754                  not big endian
15755                 #endif
15756
15757   ;
15758   return 0;
15759 }
15760 _ACEOF
15761 if ac_fn_c_try_compile "$LINENO"; then :
15762   ac_cv_c_bigendian=yes
15763 else
15764   ac_cv_c_bigendian=no
15765 fi
15766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 fi
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769     fi
15770     if test $ac_cv_c_bigendian = unknown; then
15771       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h.  */
15774 #include <limits.h>
15775
15776 int
15777 main ()
15778 {
15779 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15780               bogus endian macros
15781              #endif
15782
15783   ;
15784   return 0;
15785 }
15786 _ACEOF
15787 if ac_fn_c_try_compile "$LINENO"; then :
15788   # It does; now see whether it defined to _BIG_ENDIAN or not.
15789          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h.  */
15791 #include <limits.h>
15792
15793 int
15794 main ()
15795 {
15796 #ifndef _BIG_ENDIAN
15797                  not big endian
15798                 #endif
15799
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805   ac_cv_c_bigendian=yes
15806 else
15807   ac_cv_c_bigendian=no
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812     fi
15813     if test $ac_cv_c_bigendian = unknown; then
15814       # Compile a test program.
15815       if test "$cross_compiling" = yes; then :
15816   # Try to guess by grepping values from an object file.
15817          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h.  */
15819 short int ascii_mm[] =
15820                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15821                 short int ascii_ii[] =
15822                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15823                 int use_ascii (int i) {
15824                   return ascii_mm[i] + ascii_ii[i];
15825                 }
15826                 short int ebcdic_ii[] =
15827                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15828                 short int ebcdic_mm[] =
15829                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15830                 int use_ebcdic (int i) {
15831                   return ebcdic_mm[i] + ebcdic_ii[i];
15832                 }
15833                 extern int foo;
15834
15835 int
15836 main ()
15837 {
15838 return use_ascii (foo) == use_ebcdic (foo);
15839   ;
15840   return 0;
15841 }
15842 _ACEOF
15843 if ac_fn_c_try_compile "$LINENO"; then :
15844   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15845               ac_cv_c_bigendian=yes
15846             fi
15847             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15848               if test "$ac_cv_c_bigendian" = unknown; then
15849                 ac_cv_c_bigendian=no
15850               else
15851                 # finding both strings is unlikely to happen, but who knows?
15852                 ac_cv_c_bigendian=unknown
15853               fi
15854             fi
15855 fi
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 else
15858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h.  */
15860 $ac_includes_default
15861 int
15862 main ()
15863 {
15864
15865              /* Are we little or big endian?  From Harbison&Steele.  */
15866              union
15867              {
15868                long int l;
15869                char c[sizeof (long int)];
15870              } u;
15871              u.l = 1;
15872              return u.c[sizeof (long int) - 1] == 1;
15873
15874   ;
15875   return 0;
15876 }
15877 _ACEOF
15878 if ac_fn_c_try_run "$LINENO"; then :
15879   ac_cv_c_bigendian=no
15880 else
15881   ac_cv_c_bigendian=yes
15882 fi
15883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15884   conftest.$ac_objext conftest.beam conftest.$ac_ext
15885 fi
15886
15887     fi
15888 fi
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15890 $as_echo "$ac_cv_c_bigendian" >&6; }
15891  case $ac_cv_c_bigendian in #(
15892    yes)
15893      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15894 ;; #(
15895    no)
15896       ;; #(
15897    universal)
15898
15899 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15900
15901      ;; #(
15902    *)
15903      as_fn_error $? "unknown endianness
15904  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15905  esac
15906
15907
15908 case $host_os in
15909   *cygwin* ) CYGWIN=yes;;
15910          * ) CYGWIN=no;;
15911 esac
15912
15913
15914       if test "X$prefix" = "XNONE"; then
15915     acl_final_prefix="$ac_default_prefix"
15916   else
15917     acl_final_prefix="$prefix"
15918   fi
15919   if test "X$exec_prefix" = "XNONE"; then
15920     acl_final_exec_prefix='${prefix}'
15921   else
15922     acl_final_exec_prefix="$exec_prefix"
15923   fi
15924   acl_save_prefix="$prefix"
15925   prefix="$acl_final_prefix"
15926   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15927   prefix="$acl_save_prefix"
15928
15929
15930 # Check whether --with-gnu-ld was given.
15931 if test "${with_gnu_ld+set}" = set; then :
15932   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15933 else
15934   with_gnu_ld=no
15935 fi
15936
15937 # Prepare PATH_SEPARATOR.
15938 # The user is always right.
15939 if test "${PATH_SEPARATOR+set}" != set; then
15940   echo "#! /bin/sh" >conf$$.sh
15941   echo  "exit 0"   >>conf$$.sh
15942   chmod +x conf$$.sh
15943   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15944     PATH_SEPARATOR=';'
15945   else
15946     PATH_SEPARATOR=:
15947   fi
15948   rm -f conf$$.sh
15949 fi
15950 ac_prog=ld
15951 if test "$GCC" = yes; then
15952   # Check if gcc -print-prog-name=ld gives a path.
15953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15954 $as_echo_n "checking for ld used by GCC... " >&6; }
15955   case $host in
15956   *-*-mingw*)
15957     # gcc leaves a trailing carriage return which upsets mingw
15958     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15959   *)
15960     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15961   esac
15962   case $ac_prog in
15963     # Accept absolute paths.
15964     [\\/]* | [A-Za-z]:[\\/]*)
15965       re_direlt='/[^/][^/]*/\.\./'
15966       # Canonicalize the path of ld
15967       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15968       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15969         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15970       done
15971       test -z "$LD" && LD="$ac_prog"
15972       ;;
15973   "")
15974     # If it fails, then pretend we aren't using GCC.
15975     ac_prog=ld
15976     ;;
15977   *)
15978     # If it is relative, then search for the first ld in PATH.
15979     with_gnu_ld=unknown
15980     ;;
15981   esac
15982 elif test "$with_gnu_ld" = yes; then
15983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15984 $as_echo_n "checking for GNU ld... " >&6; }
15985 else
15986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15987 $as_echo_n "checking for non-GNU ld... " >&6; }
15988 fi
15989 if ${acl_cv_path_LD+:} false; then :
15990   $as_echo_n "(cached) " >&6
15991 else
15992   if test -z "$LD"; then
15993   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15994   for ac_dir in $PATH; do
15995     test -z "$ac_dir" && ac_dir=.
15996     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15997       acl_cv_path_LD="$ac_dir/$ac_prog"
15998       # Check to see if the program is GNU ld.  I'd rather use --version,
15999       # but apparently some GNU ld's only accept -v.
16000       # Break only if it was the GNU/non-GNU ld that we prefer.
16001       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16002       *GNU* | *'with BFD'*)
16003         test "$with_gnu_ld" != no && break ;;
16004       *)
16005         test "$with_gnu_ld" != yes && break ;;
16006       esac
16007     fi
16008   done
16009   IFS="$ac_save_ifs"
16010 else
16011   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16012 fi
16013 fi
16014
16015 LD="$acl_cv_path_LD"
16016 if test -n "$LD"; then
16017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16018 $as_echo "$LD" >&6; }
16019 else
16020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021 $as_echo "no" >&6; }
16022 fi
16023 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16025 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16026 if ${acl_cv_prog_gnu_ld+:} false; then :
16027   $as_echo_n "(cached) " >&6
16028 else
16029   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16030 case `$LD -v 2>&1 </dev/null` in
16031 *GNU* | *'with BFD'*)
16032   acl_cv_prog_gnu_ld=yes ;;
16033 *)
16034   acl_cv_prog_gnu_ld=no ;;
16035 esac
16036 fi
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16038 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16039 with_gnu_ld=$acl_cv_prog_gnu_ld
16040
16041
16042
16043
16044                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16045 $as_echo_n "checking for shared library run path origin... " >&6; }
16046 if ${acl_cv_rpath+:} false; then :
16047   $as_echo_n "(cached) " >&6
16048 else
16049
16050     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16051     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16052     . ./conftest.sh
16053     rm -f ./conftest.sh
16054     acl_cv_rpath=done
16055
16056 fi
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16058 $as_echo "$acl_cv_rpath" >&6; }
16059   wl="$acl_cv_wl"
16060   acl_libext="$acl_cv_libext"
16061   acl_shlibext="$acl_cv_shlibext"
16062   acl_libname_spec="$acl_cv_libname_spec"
16063   acl_library_names_spec="$acl_cv_library_names_spec"
16064   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16065   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16066   acl_hardcode_direct="$acl_cv_hardcode_direct"
16067   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16068     # Check whether --enable-rpath was given.
16069 if test "${enable_rpath+set}" = set; then :
16070   enableval=$enable_rpath; :
16071 else
16072   enable_rpath=yes
16073 fi
16074
16075
16076
16077
16078   acl_libdirstem=lib
16079   acl_libdirstem2=
16080   case "$host_os" in
16081     solaris*)
16082                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16083 $as_echo_n "checking for 64-bit host... " >&6; }
16084 if ${gl_cv_solaris_64bit+:} false; then :
16085   $as_echo_n "(cached) " >&6
16086 else
16087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h.  */
16089
16090 #ifdef _LP64
16091 sixtyfour bits
16092 #endif
16093
16094 _ACEOF
16095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16096   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16097   gl_cv_solaris_64bit=yes
16098 else
16099   gl_cv_solaris_64bit=no
16100 fi
16101 rm -f conftest*
16102
16103
16104 fi
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16106 $as_echo "$gl_cv_solaris_64bit" >&6; }
16107       if test $gl_cv_solaris_64bit = yes; then
16108         acl_libdirstem=lib/64
16109         case "$host_cpu" in
16110           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16111           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16112         esac
16113       fi
16114       ;;
16115     *)
16116       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16117       if test -n "$searchpath"; then
16118         acl_save_IFS="${IFS=    }"; IFS=":"
16119         for searchdir in $searchpath; do
16120           if test -d "$searchdir"; then
16121             case "$searchdir" in
16122               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16123               */../ | */.. )
16124                 # Better ignore directories of this form. They are misleading.
16125                 ;;
16126               *) searchdir=`cd "$searchdir" && pwd`
16127                  case "$searchdir" in
16128                    */lib64 ) acl_libdirstem=lib64 ;;
16129                  esac ;;
16130             esac
16131           fi
16132         done
16133         IFS="$acl_save_IFS"
16134       fi
16135       ;;
16136   esac
16137   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150     use_additional=yes
16151
16152   acl_save_prefix="$prefix"
16153   prefix="$acl_final_prefix"
16154   acl_save_exec_prefix="$exec_prefix"
16155   exec_prefix="$acl_final_exec_prefix"
16156
16157     eval additional_includedir=\"$includedir\"
16158     eval additional_libdir=\"$libdir\"
16159
16160   exec_prefix="$acl_save_exec_prefix"
16161   prefix="$acl_save_prefix"
16162
16163
16164 # Check whether --with-libiconv-prefix was given.
16165 if test "${with_libiconv_prefix+set}" = set; then :
16166   withval=$with_libiconv_prefix;
16167     if test "X$withval" = "Xno"; then
16168       use_additional=no
16169     else
16170       if test "X$withval" = "X"; then
16171
16172   acl_save_prefix="$prefix"
16173   prefix="$acl_final_prefix"
16174   acl_save_exec_prefix="$exec_prefix"
16175   exec_prefix="$acl_final_exec_prefix"
16176
16177           eval additional_includedir=\"$includedir\"
16178           eval additional_libdir=\"$libdir\"
16179
16180   exec_prefix="$acl_save_exec_prefix"
16181   prefix="$acl_save_prefix"
16182
16183       else
16184         additional_includedir="$withval/include"
16185         additional_libdir="$withval/$acl_libdirstem"
16186         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16187            && ! test -d "$withval/$acl_libdirstem"; then
16188           additional_libdir="$withval/$acl_libdirstem2"
16189         fi
16190       fi
16191     fi
16192
16193 fi
16194
16195       LIBICONV=
16196   LTLIBICONV=
16197   INCICONV=
16198   LIBICONV_PREFIX=
16199       HAVE_LIBICONV=
16200   rpathdirs=
16201   ltrpathdirs=
16202   names_already_handled=
16203   names_next_round='iconv '
16204   while test -n "$names_next_round"; do
16205     names_this_round="$names_next_round"
16206     names_next_round=
16207     for name in $names_this_round; do
16208       already_handled=
16209       for n in $names_already_handled; do
16210         if test "$n" = "$name"; then
16211           already_handled=yes
16212           break
16213         fi
16214       done
16215       if test -z "$already_handled"; then
16216         names_already_handled="$names_already_handled $name"
16217                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16218         eval value=\"\$HAVE_LIB$uppername\"
16219         if test -n "$value"; then
16220           if test "$value" = yes; then
16221             eval value=\"\$LIB$uppername\"
16222             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16223             eval value=\"\$LTLIB$uppername\"
16224             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16225           else
16226                                     :
16227           fi
16228         else
16229                               found_dir=
16230           found_la=
16231           found_so=
16232           found_a=
16233           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16234           if test -n "$acl_shlibext"; then
16235             shrext=".$acl_shlibext"             # typically: shrext=.so
16236           else
16237             shrext=
16238           fi
16239           if test $use_additional = yes; then
16240             dir="$additional_libdir"
16241                                     if test -n "$acl_shlibext"; then
16242               if test -f "$dir/$libname$shrext"; then
16243                 found_dir="$dir"
16244                 found_so="$dir/$libname$shrext"
16245               else
16246                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16247                   ver=`(cd "$dir" && \
16248                         for f in "$libname$shrext".*; do echo "$f"; done \
16249                         | sed -e "s,^$libname$shrext\\\\.,," \
16250                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16251                         | sed 1q ) 2>/dev/null`
16252                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16253                     found_dir="$dir"
16254                     found_so="$dir/$libname$shrext.$ver"
16255                   fi
16256                 else
16257                   eval library_names=\"$acl_library_names_spec\"
16258                   for f in $library_names; do
16259                     if test -f "$dir/$f"; then
16260                       found_dir="$dir"
16261                       found_so="$dir/$f"
16262                       break
16263                     fi
16264                   done
16265                 fi
16266               fi
16267             fi
16268                         if test "X$found_dir" = "X"; then
16269               if test -f "$dir/$libname.$acl_libext"; then
16270                 found_dir="$dir"
16271                 found_a="$dir/$libname.$acl_libext"
16272               fi
16273             fi
16274             if test "X$found_dir" != "X"; then
16275               if test -f "$dir/$libname.la"; then
16276                 found_la="$dir/$libname.la"
16277               fi
16278             fi
16279           fi
16280           if test "X$found_dir" = "X"; then
16281             for x in $LDFLAGS $LTLIBICONV; do
16282
16283   acl_save_prefix="$prefix"
16284   prefix="$acl_final_prefix"
16285   acl_save_exec_prefix="$exec_prefix"
16286   exec_prefix="$acl_final_exec_prefix"
16287   eval x=\"$x\"
16288   exec_prefix="$acl_save_exec_prefix"
16289   prefix="$acl_save_prefix"
16290
16291               case "$x" in
16292                 -L*)
16293                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16294                                     if test -n "$acl_shlibext"; then
16295                     if test -f "$dir/$libname$shrext"; then
16296                       found_dir="$dir"
16297                       found_so="$dir/$libname$shrext"
16298                     else
16299                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16300                         ver=`(cd "$dir" && \
16301                               for f in "$libname$shrext".*; do echo "$f"; done \
16302                               | sed -e "s,^$libname$shrext\\\\.,," \
16303                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16304                               | sed 1q ) 2>/dev/null`
16305                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16306                           found_dir="$dir"
16307                           found_so="$dir/$libname$shrext.$ver"
16308                         fi
16309                       else
16310                         eval library_names=\"$acl_library_names_spec\"
16311                         for f in $library_names; do
16312                           if test -f "$dir/$f"; then
16313                             found_dir="$dir"
16314                             found_so="$dir/$f"
16315                             break
16316                           fi
16317                         done
16318                       fi
16319                     fi
16320                   fi
16321                                     if test "X$found_dir" = "X"; then
16322                     if test -f "$dir/$libname.$acl_libext"; then
16323                       found_dir="$dir"
16324                       found_a="$dir/$libname.$acl_libext"
16325                     fi
16326                   fi
16327                   if test "X$found_dir" != "X"; then
16328                     if test -f "$dir/$libname.la"; then
16329                       found_la="$dir/$libname.la"
16330                     fi
16331                   fi
16332                   ;;
16333               esac
16334               if test "X$found_dir" != "X"; then
16335                 break
16336               fi
16337             done
16338           fi
16339           if test "X$found_dir" != "X"; then
16340                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16341             if test "X$found_so" != "X"; then
16342                                                         if test "$enable_rpath" = no \
16343                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16344                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16345                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16346               else
16347                                                                                 haveit=
16348                 for x in $ltrpathdirs; do
16349                   if test "X$x" = "X$found_dir"; then
16350                     haveit=yes
16351                     break
16352                   fi
16353                 done
16354                 if test -z "$haveit"; then
16355                   ltrpathdirs="$ltrpathdirs $found_dir"
16356                 fi
16357                                 if test "$acl_hardcode_direct" = yes; then
16358                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16359                 else
16360                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16361                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16362                                                             haveit=
16363                     for x in $rpathdirs; do
16364                       if test "X$x" = "X$found_dir"; then
16365                         haveit=yes
16366                         break
16367                       fi
16368                     done
16369                     if test -z "$haveit"; then
16370                       rpathdirs="$rpathdirs $found_dir"
16371                     fi
16372                   else
16373                                                                                 haveit=
16374                     for x in $LDFLAGS $LIBICONV; do
16375
16376   acl_save_prefix="$prefix"
16377   prefix="$acl_final_prefix"
16378   acl_save_exec_prefix="$exec_prefix"
16379   exec_prefix="$acl_final_exec_prefix"
16380   eval x=\"$x\"
16381   exec_prefix="$acl_save_exec_prefix"
16382   prefix="$acl_save_prefix"
16383
16384                       if test "X$x" = "X-L$found_dir"; then
16385                         haveit=yes
16386                         break
16387                       fi
16388                     done
16389                     if test -z "$haveit"; then
16390                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16391                     fi
16392                     if test "$acl_hardcode_minus_L" != no; then
16393                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16394                     else
16395                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16396                     fi
16397                   fi
16398                 fi
16399               fi
16400             else
16401               if test "X$found_a" != "X"; then
16402                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16403               else
16404                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16405               fi
16406             fi
16407                         additional_includedir=
16408             case "$found_dir" in
16409               */$acl_libdirstem | */$acl_libdirstem/)
16410                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16411                 if test "$name" = 'iconv'; then
16412                   LIBICONV_PREFIX="$basedir"
16413                 fi
16414                 additional_includedir="$basedir/include"
16415                 ;;
16416               */$acl_libdirstem2 | */$acl_libdirstem2/)
16417                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16418                 if test "$name" = 'iconv'; then
16419                   LIBICONV_PREFIX="$basedir"
16420                 fi
16421                 additional_includedir="$basedir/include"
16422                 ;;
16423             esac
16424             if test "X$additional_includedir" != "X"; then
16425                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16426                 haveit=
16427                 if test "X$additional_includedir" = "X/usr/local/include"; then
16428                   if test -n "$GCC"; then
16429                     case $host_os in
16430                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16431                     esac
16432                   fi
16433                 fi
16434                 if test -z "$haveit"; then
16435                   for x in $CPPFLAGS $INCICONV; do
16436
16437   acl_save_prefix="$prefix"
16438   prefix="$acl_final_prefix"
16439   acl_save_exec_prefix="$exec_prefix"
16440   exec_prefix="$acl_final_exec_prefix"
16441   eval x=\"$x\"
16442   exec_prefix="$acl_save_exec_prefix"
16443   prefix="$acl_save_prefix"
16444
16445                     if test "X$x" = "X-I$additional_includedir"; then
16446                       haveit=yes
16447                       break
16448                     fi
16449                   done
16450                   if test -z "$haveit"; then
16451                     if test -d "$additional_includedir"; then
16452                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16453                     fi
16454                   fi
16455                 fi
16456               fi
16457             fi
16458                         if test -n "$found_la"; then
16459                                                         save_libdir="$libdir"
16460               case "$found_la" in
16461                 */* | *\\*) . "$found_la" ;;
16462                 *) . "./$found_la" ;;
16463               esac
16464               libdir="$save_libdir"
16465                             for dep in $dependency_libs; do
16466                 case "$dep" in
16467                   -L*)
16468                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16469                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16470                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16471                       haveit=
16472                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16473                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16474                         if test -n "$GCC"; then
16475                           case $host_os in
16476                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16477                           esac
16478                         fi
16479                       fi
16480                       if test -z "$haveit"; then
16481                         haveit=
16482                         for x in $LDFLAGS $LIBICONV; do
16483
16484   acl_save_prefix="$prefix"
16485   prefix="$acl_final_prefix"
16486   acl_save_exec_prefix="$exec_prefix"
16487   exec_prefix="$acl_final_exec_prefix"
16488   eval x=\"$x\"
16489   exec_prefix="$acl_save_exec_prefix"
16490   prefix="$acl_save_prefix"
16491
16492                           if test "X$x" = "X-L$additional_libdir"; then
16493                             haveit=yes
16494                             break
16495                           fi
16496                         done
16497                         if test -z "$haveit"; then
16498                           if test -d "$additional_libdir"; then
16499                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16500                           fi
16501                         fi
16502                         haveit=
16503                         for x in $LDFLAGS $LTLIBICONV; do
16504
16505   acl_save_prefix="$prefix"
16506   prefix="$acl_final_prefix"
16507   acl_save_exec_prefix="$exec_prefix"
16508   exec_prefix="$acl_final_exec_prefix"
16509   eval x=\"$x\"
16510   exec_prefix="$acl_save_exec_prefix"
16511   prefix="$acl_save_prefix"
16512
16513                           if test "X$x" = "X-L$additional_libdir"; then
16514                             haveit=yes
16515                             break
16516                           fi
16517                         done
16518                         if test -z "$haveit"; then
16519                           if test -d "$additional_libdir"; then
16520                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16521                           fi
16522                         fi
16523                       fi
16524                     fi
16525                     ;;
16526                   -R*)
16527                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16528                     if test "$enable_rpath" != no; then
16529                                                                   haveit=
16530                       for x in $rpathdirs; do
16531                         if test "X$x" = "X$dir"; then
16532                           haveit=yes
16533                           break
16534                         fi
16535                       done
16536                       if test -z "$haveit"; then
16537                         rpathdirs="$rpathdirs $dir"
16538                       fi
16539                                                                   haveit=
16540                       for x in $ltrpathdirs; do
16541                         if test "X$x" = "X$dir"; then
16542                           haveit=yes
16543                           break
16544                         fi
16545                       done
16546                       if test -z "$haveit"; then
16547                         ltrpathdirs="$ltrpathdirs $dir"
16548                       fi
16549                     fi
16550                     ;;
16551                   -l*)
16552                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16553                     ;;
16554                   *.la)
16555                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16556                     ;;
16557                   *)
16558                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16559                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16560                     ;;
16561                 esac
16562               done
16563             fi
16564           else
16565                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16566             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16567           fi
16568         fi
16569       fi
16570     done
16571   done
16572   if test "X$rpathdirs" != "X"; then
16573     if test -n "$acl_hardcode_libdir_separator"; then
16574                         alldirs=
16575       for found_dir in $rpathdirs; do
16576         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16577       done
16578             acl_save_libdir="$libdir"
16579       libdir="$alldirs"
16580       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16581       libdir="$acl_save_libdir"
16582       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16583     else
16584             for found_dir in $rpathdirs; do
16585         acl_save_libdir="$libdir"
16586         libdir="$found_dir"
16587         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16588         libdir="$acl_save_libdir"
16589         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16590       done
16591     fi
16592   fi
16593   if test "X$ltrpathdirs" != "X"; then
16594             for found_dir in $ltrpathdirs; do
16595       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16596     done
16597   fi
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610           am_save_CPPFLAGS="$CPPFLAGS"
16611
16612   for element in $INCICONV; do
16613     haveit=
16614     for x in $CPPFLAGS; do
16615
16616   acl_save_prefix="$prefix"
16617   prefix="$acl_final_prefix"
16618   acl_save_exec_prefix="$exec_prefix"
16619   exec_prefix="$acl_final_exec_prefix"
16620   eval x=\"$x\"
16621   exec_prefix="$acl_save_exec_prefix"
16622   prefix="$acl_save_prefix"
16623
16624       if test "X$x" = "X$element"; then
16625         haveit=yes
16626         break
16627       fi
16628     done
16629     if test -z "$haveit"; then
16630       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16631     fi
16632   done
16633
16634
16635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16636 $as_echo_n "checking for iconv... " >&6; }
16637 if ${am_cv_func_iconv+:} false; then :
16638   $as_echo_n "(cached) " >&6
16639 else
16640
16641     am_cv_func_iconv="no, consider installing GNU libiconv"
16642     am_cv_lib_iconv=no
16643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h.  */
16645 #include <stdlib.h>
16646 #include <iconv.h>
16647 int
16648 main ()
16649 {
16650 iconv_t cd = iconv_open("","");
16651        iconv(cd,NULL,NULL,NULL,NULL);
16652        iconv_close(cd);
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 if ac_fn_c_try_link "$LINENO"; then :
16658   am_cv_func_iconv=yes
16659 fi
16660 rm -f core conftest.err conftest.$ac_objext \
16661     conftest$ac_exeext conftest.$ac_ext
16662     if test "$am_cv_func_iconv" != yes; then
16663       am_save_LIBS="$LIBS"
16664       LIBS="$LIBS $LIBICONV"
16665       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h.  */
16667 #include <stdlib.h>
16668 #include <iconv.h>
16669 int
16670 main ()
16671 {
16672 iconv_t cd = iconv_open("","");
16673          iconv(cd,NULL,NULL,NULL,NULL);
16674          iconv_close(cd);
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 if ac_fn_c_try_link "$LINENO"; then :
16680   am_cv_lib_iconv=yes
16681         am_cv_func_iconv=yes
16682 fi
16683 rm -f core conftest.err conftest.$ac_objext \
16684     conftest$ac_exeext conftest.$ac_ext
16685       LIBS="$am_save_LIBS"
16686     fi
16687
16688 fi
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16690 $as_echo "$am_cv_func_iconv" >&6; }
16691   if test "$am_cv_func_iconv" = yes; then
16692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16693 $as_echo_n "checking for working iconv... " >&6; }
16694 if ${am_cv_func_iconv_works+:} false; then :
16695   $as_echo_n "(cached) " >&6
16696 else
16697
16698             am_save_LIBS="$LIBS"
16699       if test $am_cv_lib_iconv = yes; then
16700         LIBS="$LIBS $LIBICONV"
16701       fi
16702       if test "$cross_compiling" = yes; then :
16703   case "$host_os" in
16704            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16705            *)            am_cv_func_iconv_works="guessing yes" ;;
16706          esac
16707 else
16708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h.  */
16710
16711 #include <iconv.h>
16712 #include <string.h>
16713 int main ()
16714 {
16715   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16716      returns.  */
16717   {
16718     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16719     if (cd_utf8_to_88591 != (iconv_t)(-1))
16720       {
16721         static const char input[] = "\342\202\254"; /* EURO SIGN */
16722         char buf[10];
16723         const char *inptr = input;
16724         size_t inbytesleft = strlen (input);
16725         char *outptr = buf;
16726         size_t outbytesleft = sizeof (buf);
16727         size_t res = iconv (cd_utf8_to_88591,
16728                             (char **) &inptr, &inbytesleft,
16729                             &outptr, &outbytesleft);
16730         if (res == 0)
16731           return 1;
16732       }
16733   }
16734   /* Test against Solaris 10 bug: Failures are not distinguishable from
16735      successful returns.  */
16736   {
16737     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16738     if (cd_ascii_to_88591 != (iconv_t)(-1))
16739       {
16740         static const char input[] = "\263";
16741         char buf[10];
16742         const char *inptr = input;
16743         size_t inbytesleft = strlen (input);
16744         char *outptr = buf;
16745         size_t outbytesleft = sizeof (buf);
16746         size_t res = iconv (cd_ascii_to_88591,
16747                             (char **) &inptr, &inbytesleft,
16748                             &outptr, &outbytesleft);
16749         if (res == 0)
16750           return 1;
16751       }
16752   }
16753 #if 0 /* This bug could be worked around by the caller.  */
16754   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16755   {
16756     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16757     if (cd_88591_to_utf8 != (iconv_t)(-1))
16758       {
16759         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16760         char buf[50];
16761         const char *inptr = input;
16762         size_t inbytesleft = strlen (input);
16763         char *outptr = buf;
16764         size_t outbytesleft = sizeof (buf);
16765         size_t res = iconv (cd_88591_to_utf8,
16766                             (char **) &inptr, &inbytesleft,
16767                             &outptr, &outbytesleft);
16768         if ((int)res > 0)
16769           return 1;
16770       }
16771   }
16772 #endif
16773   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16774      provided.  */
16775   if (/* Try standardized names.  */
16776       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16777       /* Try IRIX, OSF/1 names.  */
16778       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16779       /* Try AIX names.  */
16780       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16781       /* Try HP-UX names.  */
16782       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16783     return 1;
16784   return 0;
16785 }
16786 _ACEOF
16787 if ac_fn_c_try_run "$LINENO"; then :
16788   am_cv_func_iconv_works=yes
16789 else
16790   am_cv_func_iconv_works=no
16791 fi
16792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16793   conftest.$ac_objext conftest.beam conftest.$ac_ext
16794 fi
16795
16796       LIBS="$am_save_LIBS"
16797
16798 fi
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16800 $as_echo "$am_cv_func_iconv_works" >&6; }
16801     case "$am_cv_func_iconv_works" in
16802       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16803       *)   am_func_iconv=yes ;;
16804     esac
16805   else
16806     am_func_iconv=no am_cv_lib_iconv=no
16807   fi
16808   if test "$am_func_iconv" = yes; then
16809
16810 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16811
16812   fi
16813   if test "$am_cv_lib_iconv" = yes; then
16814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16815 $as_echo_n "checking how to link with libiconv... " >&6; }
16816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16817 $as_echo "$LIBICONV" >&6; }
16818   else
16819             CPPFLAGS="$am_save_CPPFLAGS"
16820     LIBICONV=
16821     LTLIBICONV=
16822   fi
16823
16824
16825
16826   if test "$am_cv_func_iconv" = yes; then
16827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16828 $as_echo_n "checking for iconv declaration... " >&6; }
16829     if ${am_cv_proto_iconv+:} false; then :
16830   $as_echo_n "(cached) " >&6
16831 else
16832
16833       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h.  */
16835
16836 #include <stdlib.h>
16837 #include <iconv.h>
16838 extern
16839 #ifdef __cplusplus
16840 "C"
16841 #endif
16842 #if defined(__STDC__) || defined(__cplusplus)
16843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16844 #else
16845 size_t iconv();
16846 #endif
16847
16848 int
16849 main ()
16850 {
16851
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 if ac_fn_c_try_compile "$LINENO"; then :
16857   am_cv_proto_iconv_arg1=""
16858 else
16859   am_cv_proto_iconv_arg1="const"
16860 fi
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16863 fi
16864
16865     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16866     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
16867          $am_cv_proto_iconv" >&5
16868 $as_echo "
16869          $am_cv_proto_iconv" >&6; }
16870
16871 cat >>confdefs.h <<_ACEOF
16872 #define ICONV_CONST $am_cv_proto_iconv_arg1
16873 _ACEOF
16874
16875   fi
16876
16877 ac_ext=cpp
16878 ac_cpp='$CXXCPP $CPPFLAGS'
16879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16882
16883 ac_ext=c
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16888
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16890 $as_echo_n "checking for ANSI C header files... " >&6; }
16891 if ${ac_cv_header_stdc+:} false; then :
16892   $as_echo_n "(cached) " >&6
16893 else
16894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h.  */
16896 #include <stdlib.h>
16897 #include <stdarg.h>
16898 #include <string.h>
16899 #include <float.h>
16900
16901 int
16902 main ()
16903 {
16904
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 if ac_fn_c_try_compile "$LINENO"; then :
16910   ac_cv_header_stdc=yes
16911 else
16912   ac_cv_header_stdc=no
16913 fi
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16915
16916 if test $ac_cv_header_stdc = yes; then
16917   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919 /* end confdefs.h.  */
16920 #include <string.h>
16921
16922 _ACEOF
16923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16924   $EGREP "memchr" >/dev/null 2>&1; then :
16925
16926 else
16927   ac_cv_header_stdc=no
16928 fi
16929 rm -f conftest*
16930
16931 fi
16932
16933 if test $ac_cv_header_stdc = yes; then
16934   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h.  */
16937 #include <stdlib.h>
16938
16939 _ACEOF
16940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16941   $EGREP "free" >/dev/null 2>&1; then :
16942
16943 else
16944   ac_cv_header_stdc=no
16945 fi
16946 rm -f conftest*
16947
16948 fi
16949
16950 if test $ac_cv_header_stdc = yes; then
16951   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16952   if test "$cross_compiling" = yes; then :
16953   :
16954 else
16955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h.  */
16957 #include <ctype.h>
16958 #include <stdlib.h>
16959 #if ((' ' & 0x0FF) == 0x020)
16960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16962 #else
16963 # define ISLOWER(c) \
16964                    (('a' <= (c) && (c) <= 'i') \
16965                      || ('j' <= (c) && (c) <= 'r') \
16966                      || ('s' <= (c) && (c) <= 'z'))
16967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16968 #endif
16969
16970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16971 int
16972 main ()
16973 {
16974   int i;
16975   for (i = 0; i < 256; i++)
16976     if (XOR (islower (i), ISLOWER (i))
16977         || toupper (i) != TOUPPER (i))
16978       return 2;
16979   return 0;
16980 }
16981 _ACEOF
16982 if ac_fn_c_try_run "$LINENO"; then :
16983
16984 else
16985   ac_cv_header_stdc=no
16986 fi
16987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16988   conftest.$ac_objext conftest.beam conftest.$ac_ext
16989 fi
16990
16991 fi
16992 fi
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16994 $as_echo "$ac_cv_header_stdc" >&6; }
16995 if test $ac_cv_header_stdc = yes; then
16996
16997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16998
16999 fi
17000
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17002 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17003 if ${ac_cv_c_const+:} false; then :
17004   $as_echo_n "(cached) " >&6
17005 else
17006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007 /* end confdefs.h.  */
17008
17009 int
17010 main ()
17011 {
17012 /* FIXME: Include the comments suggested by Paul. */
17013 #ifndef __cplusplus
17014   /* Ultrix mips cc rejects this.  */
17015   typedef int charset[2];
17016   const charset cs;
17017   /* SunOS 4.1.1 cc rejects this.  */
17018   char const *const *pcpcc;
17019   char **ppc;
17020   /* NEC SVR4.0.2 mips cc rejects this.  */
17021   struct point {int x, y;};
17022   static struct point const zero = {0,0};
17023   /* AIX XL C 1.02.0.0 rejects this.
17024      It does not let you subtract one const X* pointer from another in
17025      an arm of an if-expression whose if-part is not a constant
17026      expression */
17027   const char *g = "string";
17028   pcpcc = &g + (g ? g-g : 0);
17029   /* HPUX 7.0 cc rejects these. */
17030   ++pcpcc;
17031   ppc = (char**) pcpcc;
17032   pcpcc = (char const *const *) ppc;
17033   { /* SCO 3.2v4 cc rejects this.  */
17034     char *t;
17035     char const *s = 0 ? (char *) 0 : (char const *) 0;
17036
17037     *t++ = 0;
17038     if (s) return 0;
17039   }
17040   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17041     int x[] = {25, 17};
17042     const int *foo = &x[0];
17043     ++foo;
17044   }
17045   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17046     typedef const int *iptr;
17047     iptr p = 0;
17048     ++p;
17049   }
17050   { /* AIX XL C 1.02.0.0 rejects this saying
17051        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17052     struct s { int j; const int *ap[3]; };
17053     struct s *b; b->j = 5;
17054   }
17055   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17056     const int foo = 10;
17057     if (!foo) return 0;
17058   }
17059   return !cs[0] && !zero.x;
17060 #endif
17061
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 if ac_fn_c_try_compile "$LINENO"; then :
17067   ac_cv_c_const=yes
17068 else
17069   ac_cv_c_const=no
17070 fi
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072 fi
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17074 $as_echo "$ac_cv_c_const" >&6; }
17075 if test $ac_cv_c_const = no; then
17076
17077 $as_echo "#define const /**/" >>confdefs.h
17078
17079 fi
17080
17081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17082 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17083 if ${ac_cv_c_bigendian+:} false; then :
17084   $as_echo_n "(cached) " >&6
17085 else
17086   ac_cv_c_bigendian=unknown
17087     # See if we're dealing with a universal compiler.
17088     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h.  */
17090 #ifndef __APPLE_CC__
17091                not a universal capable compiler
17092              #endif
17093              typedef int dummy;
17094
17095 _ACEOF
17096 if ac_fn_c_try_compile "$LINENO"; then :
17097
17098         # Check for potential -arch flags.  It is not universal unless
17099         # there are at least two -arch flags with different values.
17100         ac_arch=
17101         ac_prev=
17102         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17103          if test -n "$ac_prev"; then
17104            case $ac_word in
17105              i?86 | x86_64 | ppc | ppc64)
17106                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17107                  ac_arch=$ac_word
17108                else
17109                  ac_cv_c_bigendian=universal
17110                  break
17111                fi
17112                ;;
17113            esac
17114            ac_prev=
17115          elif test "x$ac_word" = "x-arch"; then
17116            ac_prev=arch
17117          fi
17118        done
17119 fi
17120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121     if test $ac_cv_c_bigendian = unknown; then
17122       # See if sys/param.h defines the BYTE_ORDER macro.
17123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h.  */
17125 #include <sys/types.h>
17126              #include <sys/param.h>
17127
17128 int
17129 main ()
17130 {
17131 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17132                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17133                      && LITTLE_ENDIAN)
17134               bogus endian macros
17135              #endif
17136
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 if ac_fn_c_try_compile "$LINENO"; then :
17142   # It does; now see whether it defined to BIG_ENDIAN or not.
17143          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h.  */
17145 #include <sys/types.h>
17146                 #include <sys/param.h>
17147
17148 int
17149 main ()
17150 {
17151 #if BYTE_ORDER != BIG_ENDIAN
17152                  not big endian
17153                 #endif
17154
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 if ac_fn_c_try_compile "$LINENO"; then :
17160   ac_cv_c_bigendian=yes
17161 else
17162   ac_cv_c_bigendian=no
17163 fi
17164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17165 fi
17166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17167     fi
17168     if test $ac_cv_c_bigendian = unknown; then
17169       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17170       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h.  */
17172 #include <limits.h>
17173
17174 int
17175 main ()
17176 {
17177 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17178               bogus endian macros
17179              #endif
17180
17181   ;
17182   return 0;
17183 }
17184 _ACEOF
17185 if ac_fn_c_try_compile "$LINENO"; then :
17186   # It does; now see whether it defined to _BIG_ENDIAN or not.
17187          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h.  */
17189 #include <limits.h>
17190
17191 int
17192 main ()
17193 {
17194 #ifndef _BIG_ENDIAN
17195                  not big endian
17196                 #endif
17197
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 if ac_fn_c_try_compile "$LINENO"; then :
17203   ac_cv_c_bigendian=yes
17204 else
17205   ac_cv_c_bigendian=no
17206 fi
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210     fi
17211     if test $ac_cv_c_bigendian = unknown; then
17212       # Compile a test program.
17213       if test "$cross_compiling" = yes; then :
17214   # Try to guess by grepping values from an object file.
17215          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h.  */
17217 short int ascii_mm[] =
17218                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17219                 short int ascii_ii[] =
17220                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17221                 int use_ascii (int i) {
17222                   return ascii_mm[i] + ascii_ii[i];
17223                 }
17224                 short int ebcdic_ii[] =
17225                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17226                 short int ebcdic_mm[] =
17227                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17228                 int use_ebcdic (int i) {
17229                   return ebcdic_mm[i] + ebcdic_ii[i];
17230                 }
17231                 extern int foo;
17232
17233 int
17234 main ()
17235 {
17236 return use_ascii (foo) == use_ebcdic (foo);
17237   ;
17238   return 0;
17239 }
17240 _ACEOF
17241 if ac_fn_c_try_compile "$LINENO"; then :
17242   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17243               ac_cv_c_bigendian=yes
17244             fi
17245             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17246               if test "$ac_cv_c_bigendian" = unknown; then
17247                 ac_cv_c_bigendian=no
17248               else
17249                 # finding both strings is unlikely to happen, but who knows?
17250                 ac_cv_c_bigendian=unknown
17251               fi
17252             fi
17253 fi
17254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17255 else
17256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h.  */
17258 $ac_includes_default
17259 int
17260 main ()
17261 {
17262
17263              /* Are we little or big endian?  From Harbison&Steele.  */
17264              union
17265              {
17266                long int l;
17267                char c[sizeof (long int)];
17268              } u;
17269              u.l = 1;
17270              return u.c[sizeof (long int) - 1] == 1;
17271
17272   ;
17273   return 0;
17274 }
17275 _ACEOF
17276 if ac_fn_c_try_run "$LINENO"; then :
17277   ac_cv_c_bigendian=no
17278 else
17279   ac_cv_c_bigendian=yes
17280 fi
17281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17282   conftest.$ac_objext conftest.beam conftest.$ac_ext
17283 fi
17284
17285     fi
17286 fi
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17288 $as_echo "$ac_cv_c_bigendian" >&6; }
17289  case $ac_cv_c_bigendian in #(
17290    yes)
17291      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17292 ;; #(
17293    no)
17294       ;; #(
17295    universal)
17296
17297 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17298
17299      ;; #(
17300    *)
17301      as_fn_error $? "unknown endianness
17302  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17303  esac
17304
17305 for ac_header in string.h stdlib.h unistd.h fcntl.h stdint.h \
17306                 sys/stat.h sys/mman.h sys/times.h sys/types.h dirent.h \
17307                 ctype.h sys/types.h io.h windows.h pthread.h
17308 do :
17309   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17312   cat >>confdefs.h <<_ACEOF
17313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17314 _ACEOF
17315
17316 fi
17317
17318 done
17319
17320 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17321 if test "x$ac_cv_type_off_t" = xyes; then :
17322
17323 else
17324
17325 cat >>confdefs.h <<_ACEOF
17326 #define off_t long int
17327 _ACEOF
17328
17329 fi
17330
17331 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17332 if test "x$ac_cv_type_size_t" = xyes; then :
17333
17334 else
17335
17336 cat >>confdefs.h <<_ACEOF
17337 #define size_t unsigned int
17338 _ACEOF
17339
17340 fi
17341
17342 # The cast to long int works around a bug in the HP C Compiler
17343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17345 # This bug is HP SR number 8606223364.
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17347 $as_echo_n "checking size of char... " >&6; }
17348 if ${ac_cv_sizeof_char+:} false; then :
17349   $as_echo_n "(cached) " >&6
17350 else
17351   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
17352
17353 else
17354   if test "$ac_cv_type_char" = yes; then
17355      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17357 as_fn_error 77 "cannot compute sizeof (char)
17358 See \`config.log' for more details" "$LINENO" 5; }
17359    else
17360      ac_cv_sizeof_char=0
17361    fi
17362 fi
17363
17364 fi
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17366 $as_echo "$ac_cv_sizeof_char" >&6; }
17367
17368
17369
17370 cat >>confdefs.h <<_ACEOF
17371 #define SIZEOF_CHAR $ac_cv_sizeof_char
17372 _ACEOF
17373
17374
17375 # The cast to long int works around a bug in the HP C Compiler
17376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17378 # This bug is HP SR number 8606223364.
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17380 $as_echo_n "checking size of short... " >&6; }
17381 if ${ac_cv_sizeof_short+:} false; then :
17382   $as_echo_n "(cached) " >&6
17383 else
17384   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
17385
17386 else
17387   if test "$ac_cv_type_short" = yes; then
17388      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17390 as_fn_error 77 "cannot compute sizeof (short)
17391 See \`config.log' for more details" "$LINENO" 5; }
17392    else
17393      ac_cv_sizeof_short=0
17394    fi
17395 fi
17396
17397 fi
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17399 $as_echo "$ac_cv_sizeof_short" >&6; }
17400
17401
17402
17403 cat >>confdefs.h <<_ACEOF
17404 #define SIZEOF_SHORT $ac_cv_sizeof_short
17405 _ACEOF
17406
17407
17408 # The cast to long int works around a bug in the HP C Compiler
17409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17411 # This bug is HP SR number 8606223364.
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17413 $as_echo_n "checking size of int... " >&6; }
17414 if ${ac_cv_sizeof_int+:} false; then :
17415   $as_echo_n "(cached) " >&6
17416 else
17417   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
17418
17419 else
17420   if test "$ac_cv_type_int" = yes; then
17421      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17423 as_fn_error 77 "cannot compute sizeof (int)
17424 See \`config.log' for more details" "$LINENO" 5; }
17425    else
17426      ac_cv_sizeof_int=0
17427    fi
17428 fi
17429
17430 fi
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17432 $as_echo "$ac_cv_sizeof_int" >&6; }
17433
17434
17435
17436 cat >>confdefs.h <<_ACEOF
17437 #define SIZEOF_INT $ac_cv_sizeof_int
17438 _ACEOF
17439
17440
17441 # The cast to long int works around a bug in the HP C Compiler
17442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17444 # This bug is HP SR number 8606223364.
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17446 $as_echo_n "checking size of long... " >&6; }
17447 if ${ac_cv_sizeof_long+:} false; then :
17448   $as_echo_n "(cached) " >&6
17449 else
17450   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17451
17452 else
17453   if test "$ac_cv_type_long" = yes; then
17454      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17456 as_fn_error 77 "cannot compute sizeof (long)
17457 See \`config.log' for more details" "$LINENO" 5; }
17458    else
17459      ac_cv_sizeof_long=0
17460    fi
17461 fi
17462
17463 fi
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17465 $as_echo "$ac_cv_sizeof_long" >&6; }
17466
17467
17468
17469 cat >>confdefs.h <<_ACEOF
17470 #define SIZEOF_LONG $ac_cv_sizeof_long
17471 _ACEOF
17472
17473
17474 # The cast to long int works around a bug in the HP C Compiler
17475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17477 # This bug is HP SR number 8606223364.
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
17479 $as_echo_n "checking size of long long... " >&6; }
17480 if ${ac_cv_sizeof_long_long+:} false; then :
17481   $as_echo_n "(cached) " >&6
17482 else
17483   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
17484
17485 else
17486   if test "$ac_cv_type_long_long" = yes; then
17487      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17489 as_fn_error 77 "cannot compute sizeof (long long)
17490 See \`config.log' for more details" "$LINENO" 5; }
17491    else
17492      ac_cv_sizeof_long_long=0
17493    fi
17494 fi
17495
17496 fi
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
17498 $as_echo "$ac_cv_sizeof_long_long" >&6; }
17499
17500
17501
17502 cat >>confdefs.h <<_ACEOF
17503 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17504 _ACEOF
17505
17506
17507 # The cast to long int works around a bug in the HP C Compiler
17508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17510 # This bug is HP SR number 8606223364.
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17512 $as_echo_n "checking size of size_t... " >&6; }
17513 if ${ac_cv_sizeof_size_t+:} false; then :
17514   $as_echo_n "(cached) " >&6
17515 else
17516   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
17517
17518 else
17519   if test "$ac_cv_type_size_t" = yes; then
17520      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17522 as_fn_error 77 "cannot compute sizeof (size_t)
17523 See \`config.log' for more details" "$LINENO" 5; }
17524    else
17525      ac_cv_sizeof_size_t=0
17526    fi
17527 fi
17528
17529 fi
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17531 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17532
17533
17534
17535 cat >>confdefs.h <<_ACEOF
17536 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17537 _ACEOF
17538
17539
17540 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17541 if test "x$ac_cv_type_size_t" = xyes; then :
17542
17543 else
17544
17545 cat >>confdefs.h <<_ACEOF
17546 #define size_t unsigned int
17547 _ACEOF
17548
17549 fi
17550
17551
17552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17553 $as_echo_n "checking for unsigned long long int... " >&6; }
17554 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17555   $as_echo_n "(cached) " >&6
17556 else
17557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h.  */
17559
17560   /* For now, do not test the preprocessor; as of 2007 there are too many
17561          implementations with broken preprocessors.  Perhaps this can
17562          be revisited in 2012.  In the meantime, code should not expect
17563          #if to work with literals wider than 32 bits.  */
17564       /* Test literals.  */
17565       long long int ll = 9223372036854775807ll;
17566       long long int nll = -9223372036854775807LL;
17567       unsigned long long int ull = 18446744073709551615ULL;
17568       /* Test constant expressions.   */
17569       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17570                      ? 1 : -1)];
17571       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17572                      ? 1 : -1)];
17573       int i = 63;
17574 int
17575 main ()
17576 {
17577 /* Test availability of runtime routines for shift and division.  */
17578       long long int llmax = 9223372036854775807ll;
17579       unsigned long long int ullmax = 18446744073709551615ull;
17580       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17581               | (llmax / ll) | (llmax % ll)
17582               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17583               | (ullmax / ull) | (ullmax % ull));
17584   ;
17585   return 0;
17586 }
17587
17588 _ACEOF
17589 if ac_fn_c_try_link "$LINENO"; then :
17590   ac_cv_type_unsigned_long_long_int=yes
17591 else
17592   ac_cv_type_unsigned_long_long_int=no
17593 fi
17594 rm -f core conftest.err conftest.$ac_objext \
17595     conftest$ac_exeext conftest.$ac_ext
17596 fi
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17598 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17599   if test $ac_cv_type_unsigned_long_long_int = yes; then
17600
17601 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17602
17603   fi
17604
17605
17606
17607
17608
17609   for ac_header in $ac_header_list
17610 do :
17611   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17612 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17613 "
17614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17615   cat >>confdefs.h <<_ACEOF
17616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17617 _ACEOF
17618
17619 fi
17620
17621 done
17622
17623
17624
17625
17626
17627
17628
17629
17630 for ac_func in getpagesize
17631 do :
17632   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17633 if test "x$ac_cv_func_getpagesize" = xyes; then :
17634   cat >>confdefs.h <<_ACEOF
17635 #define HAVE_GETPAGESIZE 1
17636 _ACEOF
17637
17638 fi
17639 done
17640
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17642 $as_echo_n "checking for working mmap... " >&6; }
17643 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
17644   $as_echo_n "(cached) " >&6
17645 else
17646   if test "$cross_compiling" = yes; then :
17647   ac_cv_func_mmap_fixed_mapped=no
17648 else
17649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h.  */
17651 $ac_includes_default
17652 /* malloc might have been renamed as rpl_malloc. */
17653 #undef malloc
17654
17655 /* Thanks to Mike Haertel and Jim Avera for this test.
17656    Here is a matrix of mmap possibilities:
17657         mmap private not fixed
17658         mmap private fixed at somewhere currently unmapped
17659         mmap private fixed at somewhere already mapped
17660         mmap shared not fixed
17661         mmap shared fixed at somewhere currently unmapped
17662         mmap shared fixed at somewhere already mapped
17663    For private mappings, we should verify that changes cannot be read()
17664    back from the file, nor mmap's back from the file at a different
17665    address.  (There have been systems where private was not correctly
17666    implemented like the infamous i386 svr4.0, and systems where the
17667    VM page cache was not coherent with the file system buffer cache
17668    like early versions of FreeBSD and possibly contemporary NetBSD.)
17669    For shared mappings, we should conversely verify that changes get
17670    propagated back to all the places they're supposed to be.
17671
17672    Grep wants private fixed already mapped.
17673    The main things grep needs to know about mmap are:
17674    * does it exist and is it safe to write into the mmap'd area
17675    * how to use it (BSD variants)  */
17676
17677 #include <fcntl.h>
17678 #include <sys/mman.h>
17679
17680 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17681 char *malloc ();
17682 #endif
17683
17684 /* This mess was copied from the GNU getpagesize.h.  */
17685 #ifndef HAVE_GETPAGESIZE
17686 # ifdef _SC_PAGESIZE
17687 #  define getpagesize() sysconf(_SC_PAGESIZE)
17688 # else /* no _SC_PAGESIZE */
17689 #  ifdef HAVE_SYS_PARAM_H
17690 #   include <sys/param.h>
17691 #   ifdef EXEC_PAGESIZE
17692 #    define getpagesize() EXEC_PAGESIZE
17693 #   else /* no EXEC_PAGESIZE */
17694 #    ifdef NBPG
17695 #     define getpagesize() NBPG * CLSIZE
17696 #     ifndef CLSIZE
17697 #      define CLSIZE 1
17698 #     endif /* no CLSIZE */
17699 #    else /* no NBPG */
17700 #     ifdef NBPC
17701 #      define getpagesize() NBPC
17702 #     else /* no NBPC */
17703 #      ifdef PAGESIZE
17704 #       define getpagesize() PAGESIZE
17705 #      endif /* PAGESIZE */
17706 #     endif /* no NBPC */
17707 #    endif /* no NBPG */
17708 #   endif /* no EXEC_PAGESIZE */
17709 #  else /* no HAVE_SYS_PARAM_H */
17710 #   define getpagesize() 8192   /* punt totally */
17711 #  endif /* no HAVE_SYS_PARAM_H */
17712 # endif /* no _SC_PAGESIZE */
17713
17714 #endif /* no HAVE_GETPAGESIZE */
17715
17716 int
17717 main ()
17718 {
17719   char *data, *data2, *data3;
17720   const char *cdata2;
17721   int i, pagesize;
17722   int fd, fd2;
17723
17724   pagesize = getpagesize ();
17725
17726   /* First, make a file with some known garbage in it. */
17727   data = (char *) malloc (pagesize);
17728   if (!data)
17729     return 1;
17730   for (i = 0; i < pagesize; ++i)
17731     *(data + i) = rand ();
17732   umask (0);
17733   fd = creat ("conftest.mmap", 0600);
17734   if (fd < 0)
17735     return 2;
17736   if (write (fd, data, pagesize) != pagesize)
17737     return 3;
17738   close (fd);
17739
17740   /* Next, check that the tail of a page is zero-filled.  File must have
17741      non-zero length, otherwise we risk SIGBUS for entire page.  */
17742   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17743   if (fd2 < 0)
17744     return 4;
17745   cdata2 = "";
17746   if (write (fd2, cdata2, 1) != 1)
17747     return 5;
17748   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17749   if (data2 == MAP_FAILED)
17750     return 6;
17751   for (i = 0; i < pagesize; ++i)
17752     if (*(data2 + i))
17753       return 7;
17754   close (fd2);
17755   if (munmap (data2, pagesize))
17756     return 8;
17757
17758   /* Next, try to mmap the file at a fixed address which already has
17759      something else allocated at it.  If we can, also make sure that
17760      we see the same garbage.  */
17761   fd = open ("conftest.mmap", O_RDWR);
17762   if (fd < 0)
17763     return 9;
17764   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17765                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17766     return 10;
17767   for (i = 0; i < pagesize; ++i)
17768     if (*(data + i) != *(data2 + i))
17769       return 11;
17770
17771   /* Finally, make sure that changes to the mapped area do not
17772      percolate back to the file as seen by read().  (This is a bug on
17773      some variants of i386 svr4.0.)  */
17774   for (i = 0; i < pagesize; ++i)
17775     *(data2 + i) = *(data2 + i) + 1;
17776   data3 = (char *) malloc (pagesize);
17777   if (!data3)
17778     return 12;
17779   if (read (fd, data3, pagesize) != pagesize)
17780     return 13;
17781   for (i = 0; i < pagesize; ++i)
17782     if (*(data + i) != *(data3 + i))
17783       return 14;
17784   close (fd);
17785   return 0;
17786 }
17787 _ACEOF
17788 if ac_fn_c_try_run "$LINENO"; then :
17789   ac_cv_func_mmap_fixed_mapped=yes
17790 else
17791   ac_cv_func_mmap_fixed_mapped=no
17792 fi
17793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17794   conftest.$ac_objext conftest.beam conftest.$ac_ext
17795 fi
17796
17797 fi
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17799 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17800 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17801
17802 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17803
17804 fi
17805 rm -f conftest.mmap conftest.txt
17806
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
17808 $as_echo_n "checking for main in -lstdc++... " >&6; }
17809 if ${ac_cv_lib_stdcpp_main+:} false; then :
17810   $as_echo_n "(cached) " >&6
17811 else
17812   ac_check_lib_save_LIBS=$LIBS
17813 LIBS="-lstdc++  $LIBS"
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h.  */
17816
17817
17818 int
17819 main ()
17820 {
17821 return main ();
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827   ac_cv_lib_stdcpp_main=yes
17828 else
17829   ac_cv_lib_stdcpp_main=no
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext \
17832     conftest$ac_exeext conftest.$ac_ext
17833 LIBS=$ac_check_lib_save_LIBS
17834 fi
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
17836 $as_echo "$ac_cv_lib_stdcpp_main" >&6; }
17837 if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
17838   MECAB_LIBS="-lstdc++"
17839 fi
17840
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17842 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17843 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17844   $as_echo_n "(cached) " >&6
17845 else
17846   ac_check_lib_save_LIBS=$LIBS
17847 LIBS="-lpthread  $LIBS"
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h.  */
17850
17851 /* Override any GCC internal prototype to avoid an error.
17852    Use char because int might match the return type of a GCC
17853    builtin and then its argument prototype would still apply.  */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 char pthread_create ();
17858 int
17859 main ()
17860 {
17861 return pthread_create ();
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 if ac_fn_c_try_link "$LINENO"; then :
17867   ac_cv_lib_pthread_pthread_create=yes
17868 else
17869   ac_cv_lib_pthread_pthread_create=no
17870 fi
17871 rm -f core conftest.err conftest.$ac_objext \
17872     conftest$ac_exeext conftest.$ac_ext
17873 LIBS=$ac_check_lib_save_LIBS
17874 fi
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17876 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17877 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17878   cat >>confdefs.h <<_ACEOF
17879 #define HAVE_LIBPTHREAD 1
17880 _ACEOF
17881
17882   LIBS="-lpthread $LIBS"
17883
17884 fi
17885
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
17887 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
17888 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
17889   $as_echo_n "(cached) " >&6
17890 else
17891   ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-lpthread  $LIBS"
17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h.  */
17895
17896 /* Override any GCC internal prototype to avoid an error.
17897    Use char because int might match the return type of a GCC
17898    builtin and then its argument prototype would still apply.  */
17899 #ifdef __cplusplus
17900 extern "C"
17901 #endif
17902 char pthread_join ();
17903 int
17904 main ()
17905 {
17906 return pthread_join ();
17907   ;
17908   return 0;
17909 }
17910 _ACEOF
17911 if ac_fn_c_try_link "$LINENO"; then :
17912   ac_cv_lib_pthread_pthread_join=yes
17913 else
17914   ac_cv_lib_pthread_pthread_join=no
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext \
17917     conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17919 fi
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
17921 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
17922 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
17923   cat >>confdefs.h <<_ACEOF
17924 #define HAVE_LIBPTHREAD 1
17925 _ACEOF
17926
17927   LIBS="-lpthread $LIBS"
17928
17929 fi
17930
17931 for ac_func in getenv
17932 do :
17933   ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
17934 if test "x$ac_cv_func_getenv" = xyes; then :
17935   cat >>confdefs.h <<_ACEOF
17936 #define HAVE_GETENV 1
17937 _ACEOF
17938
17939 fi
17940 done
17941
17942 for ac_func in opendir
17943 do :
17944   ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
17945 if test "x$ac_cv_func_opendir" = xyes; then :
17946   cat >>confdefs.h <<_ACEOF
17947 #define HAVE_OPENDIR 1
17948 _ACEOF
17949
17950 fi
17951 done
17952
17953 ac_ext=cpp
17954 ac_cpp='$CXXCPP $CPPFLAGS'
17955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17958
17959
17960 # Check whether --enable-utf8-only was given.
17961 if test "${enable_utf8_only+set}" = set; then :
17962   enableval=$enable_utf8_only;
17963 fi
17964
17965 if test "$enable_utf8_only" = "yes"; then
17966 MECAB_USE_UTF8_ONLY="-DMECAB_USE_UTF8_ONLY"
17967 else
17968 MECAB_USE_UTF8_ONLY=""
17969 fi
17970
17971 LIBS="$LIBS $MECAB_LIBS $LIBICONV"
17972
17973
17974
17975 MECAB_LIBEXEC_DIR="$libexecdir/mecab"
17976
17977
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU Make" >&5
17979 $as_echo_n "checking whether make is GNU Make... " >&6; }
17980 if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
17981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17982 $as_echo "yes" >&6; }
17983 else
17984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17985 $as_echo "no" >&6; }
17986         if test "$host_vendor" = "sun" ; then
17987                 as_fn_error $? "\"SUN make does not work for building MeCab. Please install GNU make\"" "$LINENO" 5
17988         fi
17989 fi
17990
17991 if test -n "$GCC"; then
17992    CFLAGS="-O3 -Wall "
17993    CXXFLAGS="-O3 -Wall "
17994 fi
17995
17996
17997 # Check whether --with-charset was given.
17998 if test "${with_charset+set}" = set; then :
17999   withval=$with_charset; CHARSET=${withval}
18000 else
18001   CHARSET='euc'
18002
18003 fi
18004
18005 CHARSET=$CHARSET
18006
18007
18008
18009
18010
18011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <vector> (required)" >&5
18012 $as_echo_n "checking if ${CXX-c++} supports stl <vector> (required)... " >&6; }
18013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h.  */
18015
18016           #include <vector>
18017
18018 int
18019 main ()
18020 {
18021
18022         ;
18023
18024   ;
18025   return 0;
18026 }
18027 _ACEOF
18028 if ac_fn_cxx_try_compile "$LINENO"; then :
18029
18030           ac_stl_vector=yes
18031
18032 else
18033
18034           config_error=yes
18035           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <vector> does not work" >&5
18036 $as_echo "$as_me: WARNING: ${CXX-c++} stl <vector> does not work" >&2;}
18037
18038 fi
18039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_vector" >&5
18041 $as_echo "$ac_stl_vector" >&6; }
18042
18043
18044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <list> (required)" >&5
18045 $as_echo_n "checking if ${CXX-c++} supports stl <list> (required)... " >&6; }
18046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h.  */
18048
18049           #include <list>
18050
18051 int
18052 main ()
18053 {
18054
18055         ;
18056
18057   ;
18058   return 0;
18059 }
18060 _ACEOF
18061 if ac_fn_cxx_try_compile "$LINENO"; then :
18062
18063           ac_stl_list=yes
18064
18065 else
18066
18067           config_error=yes
18068           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <list> does not work" >&5
18069 $as_echo "$as_me: WARNING: ${CXX-c++} stl <list> does not work" >&2;}
18070
18071 fi
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_list" >&5
18074 $as_echo "$ac_stl_list" >&6; }
18075
18076
18077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <map> (required)" >&5
18078 $as_echo_n "checking if ${CXX-c++} supports stl <map> (required)... " >&6; }
18079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h.  */
18081
18082           #include <map>
18083
18084 int
18085 main ()
18086 {
18087
18088         ;
18089
18090   ;
18091   return 0;
18092 }
18093 _ACEOF
18094 if ac_fn_cxx_try_compile "$LINENO"; then :
18095
18096           ac_stl_map=yes
18097
18098 else
18099
18100           config_error=yes
18101           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <map> does not work" >&5
18102 $as_echo "$as_me: WARNING: ${CXX-c++} stl <map> does not work" >&2;}
18103
18104 fi
18105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_map" >&5
18107 $as_echo "$ac_stl_map" >&6; }
18108
18109
18110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <set> (required)" >&5
18111 $as_echo_n "checking if ${CXX-c++} supports stl <set> (required)... " >&6; }
18112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18113 /* end confdefs.h.  */
18114
18115           #include <set>
18116
18117 int
18118 main ()
18119 {
18120
18121         ;
18122
18123   ;
18124   return 0;
18125 }
18126 _ACEOF
18127 if ac_fn_cxx_try_compile "$LINENO"; then :
18128
18129           ac_stl_set=yes
18130
18131 else
18132
18133           config_error=yes
18134           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <set> does not work" >&5
18135 $as_echo "$as_me: WARNING: ${CXX-c++} stl <set> does not work" >&2;}
18136
18137 fi
18138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_set" >&5
18140 $as_echo "$ac_stl_set" >&6; }
18141
18142
18143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <queue> (required)" >&5
18144 $as_echo_n "checking if ${CXX-c++} supports stl <queue> (required)... " >&6; }
18145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h.  */
18147
18148           #include <queue>
18149
18150 int
18151 main ()
18152 {
18153
18154         ;
18155
18156   ;
18157   return 0;
18158 }
18159 _ACEOF
18160 if ac_fn_cxx_try_compile "$LINENO"; then :
18161
18162           ac_stl_queue=yes
18163
18164 else
18165
18166           config_error=yes
18167           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <queue> does not work" >&5
18168 $as_echo "$as_me: WARNING: ${CXX-c++} stl <queue> does not work" >&2;}
18169
18170 fi
18171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_queue" >&5
18173 $as_echo "$ac_stl_queue" >&6; }
18174
18175
18176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <functional> (required)" >&5
18177 $as_echo_n "checking if ${CXX-c++} supports stl <functional> (required)... " >&6; }
18178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h.  */
18180
18181           #include <functional>
18182
18183 int
18184 main ()
18185 {
18186
18187         ;
18188
18189   ;
18190   return 0;
18191 }
18192 _ACEOF
18193 if ac_fn_cxx_try_compile "$LINENO"; then :
18194
18195           ac_stl_functional=yes
18196
18197 else
18198
18199           config_error=yes
18200           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <functional> does not work" >&5
18201 $as_echo "$as_me: WARNING: ${CXX-c++} stl <functional> does not work" >&2;}
18202
18203 fi
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_functional" >&5
18206 $as_echo "$ac_stl_functional" >&6; }
18207
18208
18209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <algorithm> (required)" >&5
18210 $as_echo_n "checking if ${CXX-c++} supports stl <algorithm> (required)... " >&6; }
18211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h.  */
18213
18214           #include <algorithm>
18215
18216 int
18217 main ()
18218 {
18219
18220         ;
18221
18222   ;
18223   return 0;
18224 }
18225 _ACEOF
18226 if ac_fn_cxx_try_compile "$LINENO"; then :
18227
18228           ac_stl_algorithm=yes
18229
18230 else
18231
18232           config_error=yes
18233           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <algorithm> does not work" >&5
18234 $as_echo "$as_me: WARNING: ${CXX-c++} stl <algorithm> does not work" >&2;}
18235
18236 fi
18237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_algorithm" >&5
18239 $as_echo "$ac_stl_algorithm" >&6; }
18240
18241
18242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <string> (required)" >&5
18243 $as_echo_n "checking if ${CXX-c++} supports stl <string> (required)... " >&6; }
18244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h.  */
18246
18247           #include <string>
18248
18249 int
18250 main ()
18251 {
18252
18253         ;
18254
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 if ac_fn_cxx_try_compile "$LINENO"; then :
18260
18261           ac_stl_string=yes
18262
18263 else
18264
18265           config_error=yes
18266           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <string> does not work" >&5
18267 $as_echo "$as_me: WARNING: ${CXX-c++} stl <string> does not work" >&2;}
18268
18269 fi
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_string" >&5
18272 $as_echo "$ac_stl_string" >&6; }
18273
18274
18275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <iostream> (required)" >&5
18276 $as_echo_n "checking if ${CXX-c++} supports stl <iostream> (required)... " >&6; }
18277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h.  */
18279
18280           #include <iostream>
18281
18282 int
18283 main ()
18284 {
18285
18286         ;
18287
18288   ;
18289   return 0;
18290 }
18291 _ACEOF
18292 if ac_fn_cxx_try_compile "$LINENO"; then :
18293
18294           ac_stl_iostream=yes
18295
18296 else
18297
18298           config_error=yes
18299           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <iostream> does not work" >&5
18300 $as_echo "$as_me: WARNING: ${CXX-c++} stl <iostream> does not work" >&2;}
18301
18302 fi
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_iostream" >&5
18305 $as_echo "$ac_stl_iostream" >&6; }
18306
18307
18308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <sstream> (required)" >&5
18309 $as_echo_n "checking if ${CXX-c++} supports stl <sstream> (required)... " >&6; }
18310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h.  */
18312
18313           #include <sstream>
18314
18315 int
18316 main ()
18317 {
18318
18319         ;
18320
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 if ac_fn_cxx_try_compile "$LINENO"; then :
18326
18327           ac_stl_sstream=yes
18328
18329 else
18330
18331           config_error=yes
18332           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <sstream> does not work" >&5
18333 $as_echo "$as_me: WARNING: ${CXX-c++} stl <sstream> does not work" >&2;}
18334
18335 fi
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_sstream" >&5
18338 $as_echo "$ac_stl_sstream" >&6; }
18339
18340
18341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <fstream> (required)" >&5
18342 $as_echo_n "checking if ${CXX-c++} supports stl <fstream> (required)... " >&6; }
18343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h.  */
18345
18346           #include <fstream>
18347
18348 int
18349 main ()
18350 {
18351
18352         ;
18353
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 if ac_fn_cxx_try_compile "$LINENO"; then :
18359
18360           ac_stl_fstream=yes
18361
18362 else
18363
18364           config_error=yes
18365           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <fstream> does not work" >&5
18366 $as_echo "$as_me: WARNING: ${CXX-c++} stl <fstream> does not work" >&2;}
18367
18368 fi
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_fstream" >&5
18371 $as_echo "$ac_stl_fstream" >&6; }
18372
18373
18374 # check for const_cast
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports template <class T> (required)" >&5
18376 $as_echo_n "checking if ${CXX-c++} supports template <class T> (required)... " >&6; }
18377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378 /* end confdefs.h.  */
18379
18380    template <class T> T foo (T &i) { return i++; };
18381
18382 int
18383 main ()
18384 {
18385
18386    int i = 0;
18387    double d = 0.0;
18388    foo(i); foo(d);
18389
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 if ac_fn_cxx_try_compile "$LINENO"; then :
18395
18396   ac_template=yes
18397
18398 else
18399
18400   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} template <class T> does not work" >&5
18401 $as_echo "$as_me: WARNING: ${CXX-c++} template <class T> does not work" >&2;}
18402   config_error=yes
18403
18404 fi
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_template" >&5
18407 $as_echo "$ac_template" >&6; }
18408
18409 # check for const_cast
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports const_cast<> (required)" >&5
18411 $as_echo_n "checking if ${CXX-c++} supports const_cast<> (required)... " >&6; }
18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413 /* end confdefs.h.  */
18414
18415    class foo;
18416
18417 int
18418 main ()
18419 {
18420
18421    const foo *c=0;
18422    foo *c1=const_cast<foo*>(c);
18423
18424   ;
18425   return 0;
18426 }
18427 _ACEOF
18428 if ac_fn_cxx_try_compile "$LINENO"; then :
18429
18430   ac_const_cast=yes
18431
18432 else
18433
18434   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} const_cast<> does not work" >&5
18435 $as_echo "$as_me: WARNING: ${CXX-c++} const_cast<> does not work" >&2;}
18436   config_error=yes
18437
18438 fi
18439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_const_cast" >&5
18441 $as_echo "$ac_const_cast" >&6; }
18442
18443 # check for static_cast<>
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports static_cast<> (required)" >&5
18445 $as_echo_n "checking if ${CXX-c++} supports static_cast<> (required)... " >&6; }
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h.  */
18448
18449    class foo;
18450
18451 int
18452 main ()
18453 {
18454
18455    foo *c = 0;
18456    void *c1 = static_cast<void *>(c);
18457
18458   ;
18459   return 0;
18460 }
18461 _ACEOF
18462 if ac_fn_cxx_try_compile "$LINENO"; then :
18463
18464   ac_static_cast=yes
18465
18466 else
18467
18468   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} static_cast<> does not work" >&5
18469 $as_echo "$as_me: WARNING: ${CXX-c++} static_cast<> does not work" >&2;}
18470   config_error=yes
18471
18472 fi
18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_static_cast" >&5
18475 $as_echo "$ac_static_cast" >&6; }
18476
18477 # check for reinterpret_cast
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports reinterpret_cast<> (required)" >&5
18479 $as_echo_n "checking if ${CXX-c++} supports reinterpret_cast<> (required)... " >&6; }
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h.  */
18482
18483   int *a = 0;
18484
18485 int
18486 main ()
18487 {
18488
18489    char *p = reinterpret_cast<char *>(a);
18490
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 if ac_fn_cxx_try_compile "$LINENO"; then :
18496
18497   ac_reinterpret_cast=yes
18498
18499 else
18500
18501   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} reinterpret_cast<> does not work" >&5
18502 $as_echo "$as_me: WARNING: ${CXX-c++} reinterpret_cast<> does not work" >&2;}
18503   config_error=yes
18504
18505 fi
18506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_reinterpret_cast" >&5
18508 $as_echo "$ac_reinterpret_cast" >&6; }
18509
18510 # check for namespaces
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports namespaces (required) " >&5
18512 $as_echo_n "checking if ${CXX-c++} supports namespaces (required) ... " >&6; }
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h.  */
18515
18516 namespace Foo { struct A {}; }
18517 using namespace Foo;
18518
18519 int
18520 main ()
18521 {
18522
18523 A a;
18524
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 if ac_fn_cxx_try_compile "$LINENO"; then :
18530
18531  ac_namespaces=yes
18532
18533 else
18534
18535  config_error=yes
18536  ac_namespaces=no
18537
18538 fi
18539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_namespaces" >&5
18541 $as_echo "$ac_namespaces" >&6; }
18542
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports __thread (optional)" >&5
18544 $as_echo_n "checking if ${CXX-c++} supports __thread (optional)... " >&6; }
18545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18546 /* end confdefs.h.  */
18547
18548 __thread int a = 0;
18549
18550 int
18551 main ()
18552 {
18553
18554   a = 10;
18555
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 if ac_fn_cxx_try_compile "$LINENO"; then :
18561
18562  enable_tls=yes
18563
18564 else
18565
18566  enable_tls=no
18567
18568 fi
18569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tls" >&5
18571 $as_echo "$enable_tls" >&6; }
18572
18573 if test "$enable_tls" = "no"; then
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: __thread keyword is not supported on this environment. \
18575 Error handling of MeCab, e.g., MeCab::getLastError(), is not thread safe." >&5
18576 $as_echo "$as_me: WARNING: __thread keyword is not supported on this environment. \
18577 Error handling of MeCab, e.g., MeCab::getLastError(), is not thread safe." >&2;}
18578 else
18579 $as_echo "#define HAVE_TLS_KEYWORD 1" >>confdefs.h
18580
18581 fi
18582
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports template <class T> (required)" >&5
18584 $as_echo_n "checking if ${CXX-c++} supports template <class T> (required)... " >&6; }
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h.  */
18587
18588    template <class T> T foo (T &i) { return i++; };
18589
18590 int
18591 main ()
18592 {
18593
18594    int i = 0;
18595    double d = 0.0;
18596    foo(i); foo(d);
18597
18598   ;
18599   return 0;
18600 }
18601 _ACEOF
18602 if ac_fn_cxx_try_compile "$LINENO"; then :
18603
18604   ac_template=yes
18605
18606 else
18607
18608   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} template <class T> does not work" >&5
18609 $as_echo "$as_me: WARNING: ${CXX-c++} template <class T> does not work" >&2;}
18610   config_error=yes
18611
18612 fi
18613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_template" >&5
18615 $as_echo "$ac_template" >&6; }
18616
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports GCC native atomic operations (optional)" >&5
18618 $as_echo_n "checking if ${CXX-c++} supports GCC native atomic operations (optional)... " >&6; }
18619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h.  */
18621
18622 #include <sched.h>
18623
18624 int
18625 main ()
18626 {
18627
18628   int a = 10;
18629   __sync_fetch_and_add(&a, 10);
18630   __sync_val_compare_and_swap(&a, 0, 10);
18631   sched_yield();
18632
18633   ;
18634   return 0;
18635 }
18636 _ACEOF
18637 if ac_fn_cxx_try_compile "$LINENO"; then :
18638
18639   enable_gcc_atomic_ops=yes
18640
18641 else
18642
18643   enable_gcc_atomic_ops=no
18644
18645 fi
18646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gcc_atomic_ops" >&5
18648 $as_echo "$enable_gcc_atomic_ops" >&6; }
18649 if test "$enable_gcc_atomic_ops" = "yes"; then
18650 $as_echo "#define HAVE_GCC_ATOMIC_OPS 1" >>confdefs.h
18651
18652 fi
18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports OSX native atomic operations (optional)" >&5
18655 $as_echo_n "checking if ${CXX-c++} supports OSX native atomic operations (optional)... " >&6; }
18656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h.  */
18658
18659 #include <libkern/OSAtomic.h>
18660
18661 int
18662 main ()
18663 {
18664
18665   int a = 10;
18666   OSAtomicAdd32(10, &a);
18667   OSAtomicCompareAndSwapInt(10, 0, &a);
18668
18669   ;
18670   return 0;
18671 }
18672 _ACEOF
18673 if ac_fn_cxx_try_compile "$LINENO"; then :
18674
18675   enable_osx_atomic_ops=yes
18676
18677 else
18678
18679   enable_osx_atomic_ops=no
18680
18681 fi
18682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_osx_atomic_ops" >&5
18684 $as_echo "$enable_osx_atomic_ops" >&6; }
18685 if test "$enable_osx_atomic_ops" = "yes"; then
18686 $as_echo "#define HAVE_OSX_ATOMIC_OPS 1" >>confdefs.h
18687
18688 fi
18689
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} environment provides all required features" >&5
18691 $as_echo_n "checking if ${CXX-c++} environment provides all required features... " >&6; }
18692 if test "x$config_error" = xyes ; then
18693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18694 $as_echo "no" >&6; }
18695   as_fn_error $? "Your compiler is not powerful enough to compile MeCab. \
18696         If it should be, see config.log for more information of why it failed." "$LINENO" 5
18697 fi
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18699 $as_echo "yes" >&6; }
18700
18701 case "$host_os" in
18702  mingw* | os2*)
18703   MECAB_DEFAULT_RC='c:\\\\Program Files\\\\mecab\\\\etc\\\\mecabrc'
18704   CFLAGS="$CFLAGS -municode -DUNICODE -D_UNICODE"
18705   CXXFLAGS="$CXXFLAGS -municode -DUNICODE -D_UNICODE"
18706   ;;
18707  *)
18708   MECAB_DEFAULT_RC="$sysconfdir/mecabrc"
18709   ;;
18710 esac
18711
18712
18713
18714
18715
18716 ac_config_headers="$ac_config_headers config.h"
18717
18718 ac_config_files="$ac_config_files Makefile src/Makefile src/Makefile.msvc man/Makefile doc/Makefile tests/Makefile swig/version.h mecab.iss mecab-config mecabrc"
18719
18720 ac_config_commands="$ac_config_commands default"
18721
18722 cat >confcache <<\_ACEOF
18723 # This file is a shell script that caches the results of configure
18724 # tests run on this system so they can be shared between configure
18725 # scripts and configure runs, see configure's option --config-cache.
18726 # It is not useful on other systems.  If it contains results you don't
18727 # want to keep, you may remove or edit it.
18728 #
18729 # config.status only pays attention to the cache file if you give it
18730 # the --recheck option to rerun configure.
18731 #
18732 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18734 # following values.
18735
18736 _ACEOF
18737
18738 # The following way of writing the cache mishandles newlines in values,
18739 # but we know of no workaround that is simple, portable, and efficient.
18740 # So, we kill variables containing newlines.
18741 # Ultrix sh set writes to stderr and can't be redirected directly,
18742 # and sets the high bit in the cache file unless we assign to the vars.
18743 (
18744   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18745     eval ac_val=\$$ac_var
18746     case $ac_val in #(
18747     *${as_nl}*)
18748       case $ac_var in #(
18749       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18750 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18751       esac
18752       case $ac_var in #(
18753       _ | IFS | as_nl) ;; #(
18754       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18755       *) { eval $ac_var=; unset $ac_var;} ;;
18756       esac ;;
18757     esac
18758   done
18759
18760   (set) 2>&1 |
18761     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18762     *${as_nl}ac_space=\ *)
18763       # `set' does not quote correctly, so add quotes: double-quote
18764       # substitution turns \\\\ into \\, and sed turns \\ into \.
18765       sed -n \
18766         "s/'/'\\\\''/g;
18767           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18768       ;; #(
18769     *)
18770       # `set' quotes correctly as required by POSIX, so do not add quotes.
18771       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18772       ;;
18773     esac |
18774     sort
18775 ) |
18776   sed '
18777      /^ac_cv_env_/b end
18778      t clear
18779      :clear
18780      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18781      t end
18782      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18783      :end' >>confcache
18784 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18785   if test -w "$cache_file"; then
18786     if test "x$cache_file" != "x/dev/null"; then
18787       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18788 $as_echo "$as_me: updating cache $cache_file" >&6;}
18789       if test ! -f "$cache_file" || test -h "$cache_file"; then
18790         cat confcache >"$cache_file"
18791       else
18792         case $cache_file in #(
18793         */* | ?:*)
18794           mv -f confcache "$cache_file"$$ &&
18795           mv -f "$cache_file"$$ "$cache_file" ;; #(
18796         *)
18797           mv -f confcache "$cache_file" ;;
18798         esac
18799       fi
18800     fi
18801   else
18802     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18803 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18804   fi
18805 fi
18806 rm -f confcache
18807
18808 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18809 # Let make expand exec_prefix.
18810 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18811
18812 DEFS=-DHAVE_CONFIG_H
18813
18814 ac_libobjs=
18815 ac_ltlibobjs=
18816 U=
18817 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18818   # 1. Remove the extension, and $U if already installed.
18819   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18820   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18821   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18822   #    will be set to the directory where LIBOBJS objects are built.
18823   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18824   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18825 done
18826 LIBOBJS=$ac_libobjs
18827
18828 LTLIBOBJS=$ac_ltlibobjs
18829
18830
18831  if test -n "$EXEEXT"; then
18832   am__EXEEXT_TRUE=
18833   am__EXEEXT_FALSE='#'
18834 else
18835   am__EXEEXT_TRUE='#'
18836   am__EXEEXT_FALSE=
18837 fi
18838
18839 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18840   as_fn_error $? "conditional \"AMDEP\" was never defined.
18841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18842 fi
18843 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18844   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18846 fi
18847 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18848   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18850 fi
18851
18852
18853
18854 : "${CONFIG_STATUS=./config.status}"
18855 ac_write_fail=0
18856 ac_clean_files_save=$ac_clean_files
18857 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18859 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18860 as_write_fail=0
18861 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18862 #! $SHELL
18863 # Generated by $as_me.
18864 # Run this file to recreate the current configuration.
18865 # Compiler output produced by configure, useful for debugging
18866 # configure, is in config.log if it exists.
18867
18868 debug=false
18869 ac_cs_recheck=false
18870 ac_cs_silent=false
18871
18872 SHELL=\${CONFIG_SHELL-$SHELL}
18873 export SHELL
18874 _ASEOF
18875 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18876 ## -------------------- ##
18877 ## M4sh Initialization. ##
18878 ## -------------------- ##
18879
18880 # Be more Bourne compatible
18881 DUALCASE=1; export DUALCASE # for MKS sh
18882 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18883   emulate sh
18884   NULLCMD=:
18885   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18886   # is contrary to our usage.  Disable this feature.
18887   alias -g '${1+"$@"}'='"$@"'
18888   setopt NO_GLOB_SUBST
18889 else
18890   case `(set -o) 2>/dev/null` in #(
18891   *posix*) :
18892     set -o posix ;; #(
18893   *) :
18894      ;;
18895 esac
18896 fi
18897
18898
18899 as_nl='
18900 '
18901 export as_nl
18902 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18903 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18906 # Prefer a ksh shell builtin over an external printf program on Solaris,
18907 # but without wasting forks for bash or zsh.
18908 if test -z "$BASH_VERSION$ZSH_VERSION" \
18909     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18910   as_echo='print -r --'
18911   as_echo_n='print -rn --'
18912 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18913   as_echo='printf %s\n'
18914   as_echo_n='printf %s'
18915 else
18916   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18917     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18918     as_echo_n='/usr/ucb/echo -n'
18919   else
18920     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18921     as_echo_n_body='eval
18922       arg=$1;
18923       case $arg in #(
18924       *"$as_nl"*)
18925         expr "X$arg" : "X\\(.*\\)$as_nl";
18926         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18927       esac;
18928       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18929     '
18930     export as_echo_n_body
18931     as_echo_n='sh -c $as_echo_n_body as_echo'
18932   fi
18933   export as_echo_body
18934   as_echo='sh -c $as_echo_body as_echo'
18935 fi
18936
18937 # The user is always right.
18938 if test "${PATH_SEPARATOR+set}" != set; then
18939   PATH_SEPARATOR=:
18940   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18941     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18942       PATH_SEPARATOR=';'
18943   }
18944 fi
18945
18946
18947 # IFS
18948 # We need space, tab and new line, in precisely that order.  Quoting is
18949 # there to prevent editors from complaining about space-tab.
18950 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18951 # splitting by setting IFS to empty value.)
18952 IFS=" ""        $as_nl"
18953
18954 # Find who we are.  Look in the path if we contain no directory separator.
18955 as_myself=
18956 case $0 in #((
18957   *[\\/]* ) as_myself=$0 ;;
18958   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18959 for as_dir in $PATH
18960 do
18961   IFS=$as_save_IFS
18962   test -z "$as_dir" && as_dir=.
18963     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18964   done
18965 IFS=$as_save_IFS
18966
18967      ;;
18968 esac
18969 # We did not find ourselves, most probably we were run as `sh COMMAND'
18970 # in which case we are not to be found in the path.
18971 if test "x$as_myself" = x; then
18972   as_myself=$0
18973 fi
18974 if test ! -f "$as_myself"; then
18975   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18976   exit 1
18977 fi
18978
18979 # Unset variables that we do not need and which cause bugs (e.g. in
18980 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18981 # suppresses any "Segmentation fault" message there.  '((' could
18982 # trigger a bug in pdksh 5.2.14.
18983 for as_var in BASH_ENV ENV MAIL MAILPATH
18984 do eval test x\${$as_var+set} = xset \
18985   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18986 done
18987 PS1='$ '
18988 PS2='> '
18989 PS4='+ '
18990
18991 # NLS nuisances.
18992 LC_ALL=C
18993 export LC_ALL
18994 LANGUAGE=C
18995 export LANGUAGE
18996
18997 # CDPATH.
18998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18999
19000
19001 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19002 # ----------------------------------------
19003 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19004 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19005 # script with STATUS, using 1 if that was 0.
19006 as_fn_error ()
19007 {
19008   as_status=$1; test $as_status -eq 0 && as_status=1
19009   if test "$4"; then
19010     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19011     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19012   fi
19013   $as_echo "$as_me: error: $2" >&2
19014   as_fn_exit $as_status
19015 } # as_fn_error
19016
19017
19018 # as_fn_set_status STATUS
19019 # -----------------------
19020 # Set $? to STATUS, without forking.
19021 as_fn_set_status ()
19022 {
19023   return $1
19024 } # as_fn_set_status
19025
19026 # as_fn_exit STATUS
19027 # -----------------
19028 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19029 as_fn_exit ()
19030 {
19031   set +e
19032   as_fn_set_status $1
19033   exit $1
19034 } # as_fn_exit
19035
19036 # as_fn_unset VAR
19037 # ---------------
19038 # Portably unset VAR.
19039 as_fn_unset ()
19040 {
19041   { eval $1=; unset $1;}
19042 }
19043 as_unset=as_fn_unset
19044 # as_fn_append VAR VALUE
19045 # ----------------------
19046 # Append the text in VALUE to the end of the definition contained in VAR. Take
19047 # advantage of any shell optimizations that allow amortized linear growth over
19048 # repeated appends, instead of the typical quadratic growth present in naive
19049 # implementations.
19050 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19051   eval 'as_fn_append ()
19052   {
19053     eval $1+=\$2
19054   }'
19055 else
19056   as_fn_append ()
19057   {
19058     eval $1=\$$1\$2
19059   }
19060 fi # as_fn_append
19061
19062 # as_fn_arith ARG...
19063 # ------------------
19064 # Perform arithmetic evaluation on the ARGs, and store the result in the
19065 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19066 # must be portable across $(()) and expr.
19067 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19068   eval 'as_fn_arith ()
19069   {
19070     as_val=$(( $* ))
19071   }'
19072 else
19073   as_fn_arith ()
19074   {
19075     as_val=`expr "$@" || test $? -eq 1`
19076   }
19077 fi # as_fn_arith
19078
19079
19080 if expr a : '\(a\)' >/dev/null 2>&1 &&
19081    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19082   as_expr=expr
19083 else
19084   as_expr=false
19085 fi
19086
19087 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19088   as_basename=basename
19089 else
19090   as_basename=false
19091 fi
19092
19093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19094   as_dirname=dirname
19095 else
19096   as_dirname=false
19097 fi
19098
19099 as_me=`$as_basename -- "$0" ||
19100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19101          X"$0" : 'X\(//\)$' \| \
19102          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19103 $as_echo X/"$0" |
19104     sed '/^.*\/\([^/][^/]*\)\/*$/{
19105             s//\1/
19106             q
19107           }
19108           /^X\/\(\/\/\)$/{
19109             s//\1/
19110             q
19111           }
19112           /^X\/\(\/\).*/{
19113             s//\1/
19114             q
19115           }
19116           s/.*/./; q'`
19117
19118 # Avoid depending upon Character Ranges.
19119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19122 as_cr_digits='0123456789'
19123 as_cr_alnum=$as_cr_Letters$as_cr_digits
19124
19125 ECHO_C= ECHO_N= ECHO_T=
19126 case `echo -n x` in #(((((
19127 -n*)
19128   case `echo 'xy\c'` in
19129   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19130   xy)  ECHO_C='\c';;
19131   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19132        ECHO_T=' ';;
19133   esac;;
19134 *)
19135   ECHO_N='-n';;
19136 esac
19137
19138 rm -f conf$$ conf$$.exe conf$$.file
19139 if test -d conf$$.dir; then
19140   rm -f conf$$.dir/conf$$.file
19141 else
19142   rm -f conf$$.dir
19143   mkdir conf$$.dir 2>/dev/null
19144 fi
19145 if (echo >conf$$.file) 2>/dev/null; then
19146   if ln -s conf$$.file conf$$ 2>/dev/null; then
19147     as_ln_s='ln -s'
19148     # ... but there are two gotchas:
19149     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19150     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19151     # In both cases, we have to default to `cp -p'.
19152     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19153       as_ln_s='cp -p'
19154   elif ln conf$$.file conf$$ 2>/dev/null; then
19155     as_ln_s=ln
19156   else
19157     as_ln_s='cp -p'
19158   fi
19159 else
19160   as_ln_s='cp -p'
19161 fi
19162 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19163 rmdir conf$$.dir 2>/dev/null
19164
19165
19166 # as_fn_mkdir_p
19167 # -------------
19168 # Create "$as_dir" as a directory, including parents if necessary.
19169 as_fn_mkdir_p ()
19170 {
19171
19172   case $as_dir in #(
19173   -*) as_dir=./$as_dir;;
19174   esac
19175   test -d "$as_dir" || eval $as_mkdir_p || {
19176     as_dirs=
19177     while :; do
19178       case $as_dir in #(
19179       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19180       *) as_qdir=$as_dir;;
19181       esac
19182       as_dirs="'$as_qdir' $as_dirs"
19183       as_dir=`$as_dirname -- "$as_dir" ||
19184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19185          X"$as_dir" : 'X\(//\)[^/]' \| \
19186          X"$as_dir" : 'X\(//\)$' \| \
19187          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19188 $as_echo X"$as_dir" |
19189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19190             s//\1/
19191             q
19192           }
19193           /^X\(\/\/\)[^/].*/{
19194             s//\1/
19195             q
19196           }
19197           /^X\(\/\/\)$/{
19198             s//\1/
19199             q
19200           }
19201           /^X\(\/\).*/{
19202             s//\1/
19203             q
19204           }
19205           s/.*/./; q'`
19206       test -d "$as_dir" && break
19207     done
19208     test -z "$as_dirs" || eval "mkdir $as_dirs"
19209   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19210
19211
19212 } # as_fn_mkdir_p
19213 if mkdir -p . 2>/dev/null; then
19214   as_mkdir_p='mkdir -p "$as_dir"'
19215 else
19216   test -d ./-p && rmdir ./-p
19217   as_mkdir_p=false
19218 fi
19219
19220 if test -x / >/dev/null 2>&1; then
19221   as_test_x='test -x'
19222 else
19223   if ls -dL / >/dev/null 2>&1; then
19224     as_ls_L_option=L
19225   else
19226     as_ls_L_option=
19227   fi
19228   as_test_x='
19229     eval sh -c '\''
19230       if test -d "$1"; then
19231         test -d "$1/.";
19232       else
19233         case $1 in #(
19234         -*)set "./$1";;
19235         esac;
19236         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19237         ???[sx]*):;;*)false;;esac;fi
19238     '\'' sh
19239   '
19240 fi
19241 as_executable_p=$as_test_x
19242
19243 # Sed expression to map a string onto a valid CPP name.
19244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19245
19246 # Sed expression to map a string onto a valid variable name.
19247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19248
19249
19250 exec 6>&1
19251 ## ----------------------------------- ##
19252 ## Main body of $CONFIG_STATUS script. ##
19253 ## ----------------------------------- ##
19254 _ASEOF
19255 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19256
19257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19258 # Save the log message, to keep $0 and so on meaningful, and to
19259 # report actual input values of CONFIG_FILES etc. instead of their
19260 # values after options handling.
19261 ac_log="
19262 This file was extended by $as_me, which was
19263 generated by GNU Autoconf 2.68.  Invocation command line was
19264
19265   CONFIG_FILES    = $CONFIG_FILES
19266   CONFIG_HEADERS  = $CONFIG_HEADERS
19267   CONFIG_LINKS    = $CONFIG_LINKS
19268   CONFIG_COMMANDS = $CONFIG_COMMANDS
19269   $ $0 $@
19270
19271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19272 "
19273
19274 _ACEOF
19275
19276 case $ac_config_files in *"
19277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19278 esac
19279
19280 case $ac_config_headers in *"
19281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19282 esac
19283
19284
19285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19286 # Files that config.status was made for.
19287 config_files="$ac_config_files"
19288 config_headers="$ac_config_headers"
19289 config_commands="$ac_config_commands"
19290
19291 _ACEOF
19292
19293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19294 ac_cs_usage="\
19295 \`$as_me' instantiates files and other configuration actions
19296 from templates according to the current configuration.  Unless the files
19297 and actions are specified as TAGs, all are instantiated by default.
19298
19299 Usage: $0 [OPTION]... [TAG]...
19300
19301   -h, --help       print this help, then exit
19302   -V, --version    print version number and configuration settings, then exit
19303       --config     print configuration, then exit
19304   -q, --quiet, --silent
19305                    do not print progress messages
19306   -d, --debug      don't remove temporary files
19307       --recheck    update $as_me by reconfiguring in the same conditions
19308       --file=FILE[:TEMPLATE]
19309                    instantiate the configuration file FILE
19310       --header=FILE[:TEMPLATE]
19311                    instantiate the configuration header FILE
19312
19313 Configuration files:
19314 $config_files
19315
19316 Configuration headers:
19317 $config_headers
19318
19319 Configuration commands:
19320 $config_commands
19321
19322 Report bugs to the package provider."
19323
19324 _ACEOF
19325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19326 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19327 ac_cs_version="\\
19328 config.status
19329 configured by $0, generated by GNU Autoconf 2.68,
19330   with options \\"\$ac_cs_config\\"
19331
19332 Copyright (C) 2010 Free Software Foundation, Inc.
19333 This config.status script is free software; the Free Software Foundation
19334 gives unlimited permission to copy, distribute and modify it."
19335
19336 ac_pwd='$ac_pwd'
19337 srcdir='$srcdir'
19338 INSTALL='$INSTALL'
19339 MKDIR_P='$MKDIR_P'
19340 AWK='$AWK'
19341 test -n "\$AWK" || AWK=awk
19342 _ACEOF
19343
19344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19345 # The default lists apply if the user does not specify any file.
19346 ac_need_defaults=:
19347 while test $# != 0
19348 do
19349   case $1 in
19350   --*=?*)
19351     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19352     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19353     ac_shift=:
19354     ;;
19355   --*=)
19356     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19357     ac_optarg=
19358     ac_shift=:
19359     ;;
19360   *)
19361     ac_option=$1
19362     ac_optarg=$2
19363     ac_shift=shift
19364     ;;
19365   esac
19366
19367   case $ac_option in
19368   # Handling of the options.
19369   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19370     ac_cs_recheck=: ;;
19371   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19372     $as_echo "$ac_cs_version"; exit ;;
19373   --config | --confi | --conf | --con | --co | --c )
19374     $as_echo "$ac_cs_config"; exit ;;
19375   --debug | --debu | --deb | --de | --d | -d )
19376     debug=: ;;
19377   --file | --fil | --fi | --f )
19378     $ac_shift
19379     case $ac_optarg in
19380     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19381     '') as_fn_error $? "missing file argument" ;;
19382     esac
19383     as_fn_append CONFIG_FILES " '$ac_optarg'"
19384     ac_need_defaults=false;;
19385   --header | --heade | --head | --hea )
19386     $ac_shift
19387     case $ac_optarg in
19388     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19389     esac
19390     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19391     ac_need_defaults=false;;
19392   --he | --h)
19393     # Conflict between --help and --header
19394     as_fn_error $? "ambiguous option: \`$1'
19395 Try \`$0 --help' for more information.";;
19396   --help | --hel | -h )
19397     $as_echo "$ac_cs_usage"; exit ;;
19398   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19399   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19400     ac_cs_silent=: ;;
19401
19402   # This is an error.
19403   -*) as_fn_error $? "unrecognized option: \`$1'
19404 Try \`$0 --help' for more information." ;;
19405
19406   *) as_fn_append ac_config_targets " $1"
19407      ac_need_defaults=false ;;
19408
19409   esac
19410   shift
19411 done
19412
19413 ac_configure_extra_args=
19414
19415 if $ac_cs_silent; then
19416   exec 6>/dev/null
19417   ac_configure_extra_args="$ac_configure_extra_args --silent"
19418 fi
19419
19420 _ACEOF
19421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19422 if \$ac_cs_recheck; then
19423   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19424   shift
19425   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19426   CONFIG_SHELL='$SHELL'
19427   export CONFIG_SHELL
19428   exec "\$@"
19429 fi
19430
19431 _ACEOF
19432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19433 exec 5>>config.log
19434 {
19435   echo
19436   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19437 ## Running $as_me. ##
19438 _ASBOX
19439   $as_echo "$ac_log"
19440 } >&5
19441
19442 _ACEOF
19443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19444 #
19445 # INIT-COMMANDS
19446 #
19447 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19448
19449
19450 # The HP-UX ksh and POSIX shell print the target directory to stdout
19451 # if CDPATH is set.
19452 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19453
19454 sed_quote_subst='$sed_quote_subst'
19455 double_quote_subst='$double_quote_subst'
19456 delay_variable_subst='$delay_variable_subst'
19457 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19458 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19459 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19460 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19461 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19462 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19463 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19464 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19465 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19466 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19467 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19468 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19469 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19470 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19471 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19472 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19473 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19474 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19475 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19476 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19477 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19478 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19479 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19480 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19481 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19482 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19483 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19484 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19485 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19486 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19487 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19488 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19489 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19490 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19491 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19492 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19493 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19494 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19495 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19496 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19497 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19498 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19499 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19500 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19501 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19502 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19503 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19504 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19505 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19506 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19507 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19508 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19509 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19510 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19511 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19512 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19513 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19514 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"`'
19515 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19516 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19517 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19518 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19519 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19520 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19521 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19522 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19523 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19524 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19525 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19526 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19527 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19528 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19529 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19530 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19531 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19532 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19533 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19534 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19535 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19536 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19537 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19538 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19539 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19540 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19541 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19542 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19543 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19544 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19545 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19546 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19547 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19548 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19549 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19550 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19551 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19552 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19553 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19554 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19555 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19556 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19557 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19558 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19559 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19560 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19561 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19562 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19563 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19564 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19565 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19566 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19567 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19568 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19569 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19570 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19571 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19572 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19573 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19574 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19575 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19576 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19577 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19578 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19579 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19580 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19581 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19582 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19583 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19584 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19585 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19586 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19587 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19588 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19589 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19590 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19591 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19592 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19593 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19594 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19595 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19596 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19597 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19598 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19599 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19600 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19601 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19602 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19603 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19604 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19605 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19606 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19607 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19608 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19609 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19610 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19611 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19612 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19613 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19614 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19615 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19616 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19617 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19618 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19619 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19620 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19621 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19622 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19623 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19624 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19625 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19626 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19627 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19628 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19629 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19630 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19631 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19632 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19633 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19634 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19635 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19636 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19637 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19638 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19639 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19640 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19641 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19642
19643 LTCC='$LTCC'
19644 LTCFLAGS='$LTCFLAGS'
19645 compiler='$compiler_DEFAULT'
19646
19647 # A function that is used when there is no print builtin or printf.
19648 func_fallback_echo ()
19649 {
19650   eval 'cat <<_LTECHO_EOF
19651 \$1
19652 _LTECHO_EOF'
19653 }
19654
19655 # Quote evaled strings.
19656 for var in AS \
19657 DLLTOOL \
19658 OBJDUMP \
19659 SHELL \
19660 ECHO \
19661 PATH_SEPARATOR \
19662 SED \
19663 GREP \
19664 EGREP \
19665 FGREP \
19666 LD \
19667 NM \
19668 LN_S \
19669 lt_SP2NL \
19670 lt_NL2SP \
19671 reload_flag \
19672 deplibs_check_method \
19673 file_magic_cmd \
19674 file_magic_glob \
19675 want_nocaseglob \
19676 sharedlib_from_linklib_cmd \
19677 AR \
19678 AR_FLAGS \
19679 archiver_list_spec \
19680 STRIP \
19681 RANLIB \
19682 CC \
19683 CFLAGS \
19684 compiler \
19685 lt_cv_sys_global_symbol_pipe \
19686 lt_cv_sys_global_symbol_to_cdecl \
19687 lt_cv_sys_global_symbol_to_c_name_address \
19688 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19689 nm_file_list_spec \
19690 lt_prog_compiler_no_builtin_flag \
19691 lt_prog_compiler_pic \
19692 lt_prog_compiler_wl \
19693 lt_prog_compiler_static \
19694 lt_cv_prog_compiler_c_o \
19695 need_locks \
19696 MANIFEST_TOOL \
19697 DSYMUTIL \
19698 NMEDIT \
19699 LIPO \
19700 OTOOL \
19701 OTOOL64 \
19702 shrext_cmds \
19703 export_dynamic_flag_spec \
19704 whole_archive_flag_spec \
19705 compiler_needs_object \
19706 with_gnu_ld \
19707 allow_undefined_flag \
19708 no_undefined_flag \
19709 hardcode_libdir_flag_spec \
19710 hardcode_libdir_separator \
19711 exclude_expsyms \
19712 include_expsyms \
19713 file_list_spec \
19714 variables_saved_for_relink \
19715 libname_spec \
19716 library_names_spec \
19717 soname_spec \
19718 install_override_mode \
19719 finish_eval \
19720 old_striplib \
19721 striplib \
19722 compiler_lib_search_dirs \
19723 predep_objects \
19724 postdep_objects \
19725 predeps \
19726 postdeps \
19727 compiler_lib_search_path \
19728 LD_CXX \
19729 reload_flag_CXX \
19730 compiler_CXX \
19731 lt_prog_compiler_no_builtin_flag_CXX \
19732 lt_prog_compiler_pic_CXX \
19733 lt_prog_compiler_wl_CXX \
19734 lt_prog_compiler_static_CXX \
19735 lt_cv_prog_compiler_c_o_CXX \
19736 export_dynamic_flag_spec_CXX \
19737 whole_archive_flag_spec_CXX \
19738 compiler_needs_object_CXX \
19739 with_gnu_ld_CXX \
19740 allow_undefined_flag_CXX \
19741 no_undefined_flag_CXX \
19742 hardcode_libdir_flag_spec_CXX \
19743 hardcode_libdir_separator_CXX \
19744 exclude_expsyms_CXX \
19745 include_expsyms_CXX \
19746 file_list_spec_CXX \
19747 compiler_lib_search_dirs_CXX \
19748 predep_objects_CXX \
19749 postdep_objects_CXX \
19750 predeps_CXX \
19751 postdeps_CXX \
19752 compiler_lib_search_path_CXX; do
19753     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19754     *[\\\\\\\`\\"\\\$]*)
19755       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19756       ;;
19757     *)
19758       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19759       ;;
19760     esac
19761 done
19762
19763 # Double-quote double-evaled strings.
19764 for var in reload_cmds \
19765 old_postinstall_cmds \
19766 old_postuninstall_cmds \
19767 old_archive_cmds \
19768 extract_expsyms_cmds \
19769 old_archive_from_new_cmds \
19770 old_archive_from_expsyms_cmds \
19771 archive_cmds \
19772 archive_expsym_cmds \
19773 module_cmds \
19774 module_expsym_cmds \
19775 export_symbols_cmds \
19776 prelink_cmds \
19777 postlink_cmds \
19778 postinstall_cmds \
19779 postuninstall_cmds \
19780 finish_cmds \
19781 sys_lib_search_path_spec \
19782 sys_lib_dlsearch_path_spec \
19783 reload_cmds_CXX \
19784 old_archive_cmds_CXX \
19785 old_archive_from_new_cmds_CXX \
19786 old_archive_from_expsyms_cmds_CXX \
19787 archive_cmds_CXX \
19788 archive_expsym_cmds_CXX \
19789 module_cmds_CXX \
19790 module_expsym_cmds_CXX \
19791 export_symbols_cmds_CXX \
19792 prelink_cmds_CXX \
19793 postlink_cmds_CXX; do
19794     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19795     *[\\\\\\\`\\"\\\$]*)
19796       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19797       ;;
19798     *)
19799       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19800       ;;
19801     esac
19802 done
19803
19804 ac_aux_dir='$ac_aux_dir'
19805 xsi_shell='$xsi_shell'
19806 lt_shell_append='$lt_shell_append'
19807
19808 # See if we are running on zsh, and set the options which allow our
19809 # commands through without removal of \ escapes INIT.
19810 if test -n "\${ZSH_VERSION+set}" ; then
19811    setopt NO_GLOB_SUBST
19812 fi
19813
19814
19815     PACKAGE='$PACKAGE'
19816     VERSION='$VERSION'
19817     TIMESTAMP='$TIMESTAMP'
19818     RM='$RM'
19819     ofile='$ofile'
19820
19821
19822
19823
19824
19825
19826 _ACEOF
19827
19828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19829
19830 # Handling of arguments.
19831 for ac_config_target in $ac_config_targets
19832 do
19833   case $ac_config_target in
19834     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19835     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19836     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19837     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19838     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19839     "src/Makefile.msvc") CONFIG_FILES="$CONFIG_FILES src/Makefile.msvc" ;;
19840     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19841     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19842     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19843     "swig/version.h") CONFIG_FILES="$CONFIG_FILES swig/version.h" ;;
19844     "mecab.iss") CONFIG_FILES="$CONFIG_FILES mecab.iss" ;;
19845     "mecab-config") CONFIG_FILES="$CONFIG_FILES mecab-config" ;;
19846     "mecabrc") CONFIG_FILES="$CONFIG_FILES mecabrc" ;;
19847     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19848
19849   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19850   esac
19851 done
19852
19853
19854 # If the user did not use the arguments to specify the items to instantiate,
19855 # then the envvar interface is used.  Set only those that are not.
19856 # We use the long form for the default assignment because of an extremely
19857 # bizarre bug on SunOS 4.1.3.
19858 if $ac_need_defaults; then
19859   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19860   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19861   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19862 fi
19863
19864 # Have a temporary directory for convenience.  Make it in the build tree
19865 # simply because there is no reason against having it here, and in addition,
19866 # creating and moving files from /tmp can sometimes cause problems.
19867 # Hook for its removal unless debugging.
19868 # Note that there is a small window in which the directory will not be cleaned:
19869 # after its creation but before its name has been assigned to `$tmp'.
19870 $debug ||
19871 {
19872   tmp= ac_tmp=
19873   trap 'exit_status=$?
19874   : "${ac_tmp:=$tmp}"
19875   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19876 ' 0
19877   trap 'as_fn_exit 1' 1 2 13 15
19878 }
19879 # Create a (secure) tmp directory for tmp files.
19880
19881 {
19882   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19883   test -d "$tmp"
19884 }  ||
19885 {
19886   tmp=./conf$$-$RANDOM
19887   (umask 077 && mkdir "$tmp")
19888 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19889 ac_tmp=$tmp
19890
19891 # Set up the scripts for CONFIG_FILES section.
19892 # No need to generate them if there are no CONFIG_FILES.
19893 # This happens for instance with `./config.status config.h'.
19894 if test -n "$CONFIG_FILES"; then
19895
19896
19897 ac_cr=`echo X | tr X '\015'`
19898 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19899 # But we know of no other shell where ac_cr would be empty at this
19900 # point, so we can use a bashism as a fallback.
19901 if test "x$ac_cr" = x; then
19902   eval ac_cr=\$\'\\r\'
19903 fi
19904 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19905 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19906   ac_cs_awk_cr='\\r'
19907 else
19908   ac_cs_awk_cr=$ac_cr
19909 fi
19910
19911 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19912 _ACEOF
19913
19914
19915 {
19916   echo "cat >conf$$subs.awk <<_ACEOF" &&
19917   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19918   echo "_ACEOF"
19919 } >conf$$subs.sh ||
19920   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19921 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19922 ac_delim='%!_!# '
19923 for ac_last_try in false false false false false :; do
19924   . ./conf$$subs.sh ||
19925     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19926
19927   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19928   if test $ac_delim_n = $ac_delim_num; then
19929     break
19930   elif $ac_last_try; then
19931     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19932   else
19933     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19934   fi
19935 done
19936 rm -f conf$$subs.sh
19937
19938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19939 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19940 _ACEOF
19941 sed -n '
19942 h
19943 s/^/S["/; s/!.*/"]=/
19944 p
19945 g
19946 s/^[^!]*!//
19947 :repl
19948 t repl
19949 s/'"$ac_delim"'$//
19950 t delim
19951 :nl
19952 h
19953 s/\(.\{148\}\)..*/\1/
19954 t more1
19955 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19956 p
19957 n
19958 b repl
19959 :more1
19960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19961 p
19962 g
19963 s/.\{148\}//
19964 t nl
19965 :delim
19966 h
19967 s/\(.\{148\}\)..*/\1/
19968 t more2
19969 s/["\\]/\\&/g; s/^/"/; s/$/"/
19970 p
19971 b
19972 :more2
19973 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19974 p
19975 g
19976 s/.\{148\}//
19977 t delim
19978 ' <conf$$subs.awk | sed '
19979 /^[^""]/{
19980   N
19981   s/\n//
19982 }
19983 ' >>$CONFIG_STATUS || ac_write_fail=1
19984 rm -f conf$$subs.awk
19985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19986 _ACAWK
19987 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19988   for (key in S) S_is_set[key] = 1
19989   FS = "\a"
19990
19991 }
19992 {
19993   line = $ 0
19994   nfields = split(line, field, "@")
19995   substed = 0
19996   len = length(field[1])
19997   for (i = 2; i < nfields; i++) {
19998     key = field[i]
19999     keylen = length(key)
20000     if (S_is_set[key]) {
20001       value = S[key]
20002       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20003       len += length(value) + length(field[++i])
20004       substed = 1
20005     } else
20006       len += 1 + keylen
20007   }
20008
20009   print line
20010 }
20011
20012 _ACAWK
20013 _ACEOF
20014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20015 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20016   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20017 else
20018   cat
20019 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20020   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20021 _ACEOF
20022
20023 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20024 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20025 # trailing colons and then remove the whole line if VPATH becomes empty
20026 # (actually we leave an empty line to preserve line numbers).
20027 if test "x$srcdir" = x.; then
20028   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20029 h
20030 s///
20031 s/^/:/
20032 s/[      ]*$/:/
20033 s/:\$(srcdir):/:/g
20034 s/:\${srcdir}:/:/g
20035 s/:@srcdir@:/:/g
20036 s/^:*//
20037 s/:*$//
20038 x
20039 s/\(=[   ]*\).*/\1/
20040 G
20041 s/\n//
20042 s/^[^=]*=[       ]*$//
20043 }'
20044 fi
20045
20046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20047 fi # test -n "$CONFIG_FILES"
20048
20049 # Set up the scripts for CONFIG_HEADERS section.
20050 # No need to generate them if there are no CONFIG_HEADERS.
20051 # This happens for instance with `./config.status Makefile'.
20052 if test -n "$CONFIG_HEADERS"; then
20053 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20054 BEGIN {
20055 _ACEOF
20056
20057 # Transform confdefs.h into an awk script `defines.awk', embedded as
20058 # here-document in config.status, that substitutes the proper values into
20059 # config.h.in to produce config.h.
20060
20061 # Create a delimiter string that does not exist in confdefs.h, to ease
20062 # handling of long lines.
20063 ac_delim='%!_!# '
20064 for ac_last_try in false false :; do
20065   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20066   if test -z "$ac_tt"; then
20067     break
20068   elif $ac_last_try; then
20069     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20070   else
20071     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20072   fi
20073 done
20074
20075 # For the awk script, D is an array of macro values keyed by name,
20076 # likewise P contains macro parameters if any.  Preserve backslash
20077 # newline sequences.
20078
20079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20080 sed -n '
20081 s/.\{148\}/&'"$ac_delim"'/g
20082 t rset
20083 :rset
20084 s/^[     ]*#[    ]*define[       ][      ]*/ /
20085 t def
20086 d
20087 :def
20088 s/\\$//
20089 t bsnl
20090 s/["\\]/\\&/g
20091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20092 D["\1"]=" \3"/p
20093 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20094 d
20095 :bsnl
20096 s/["\\]/\\&/g
20097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20098 D["\1"]=" \3\\\\\\n"\\/p
20099 t cont
20100 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20101 t cont
20102 d
20103 :cont
20104 n
20105 s/.\{148\}/&'"$ac_delim"'/g
20106 t clear
20107 :clear
20108 s/\\$//
20109 t bsnlc
20110 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20111 d
20112 :bsnlc
20113 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20114 b cont
20115 ' <confdefs.h | sed '
20116 s/'"$ac_delim"'/"\\\
20117 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20118
20119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20120   for (key in D) D_is_set[key] = 1
20121   FS = "\a"
20122 }
20123 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20124   line = \$ 0
20125   split(line, arg, " ")
20126   if (arg[1] == "#") {
20127     defundef = arg[2]
20128     mac1 = arg[3]
20129   } else {
20130     defundef = substr(arg[1], 2)
20131     mac1 = arg[2]
20132   }
20133   split(mac1, mac2, "(") #)
20134   macro = mac2[1]
20135   prefix = substr(line, 1, index(line, defundef) - 1)
20136   if (D_is_set[macro]) {
20137     # Preserve the white space surrounding the "#".
20138     print prefix "define", macro P[macro] D[macro]
20139     next
20140   } else {
20141     # Replace #undef with comments.  This is necessary, for example,
20142     # in the case of _POSIX_SOURCE, which is predefined and required
20143     # on some systems where configure will not decide to define it.
20144     if (defundef == "undef") {
20145       print "/*", prefix defundef, macro, "*/"
20146       next
20147     }
20148   }
20149 }
20150 { print }
20151 _ACAWK
20152 _ACEOF
20153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20154   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20155 fi # test -n "$CONFIG_HEADERS"
20156
20157
20158 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20159 shift
20160 for ac_tag
20161 do
20162   case $ac_tag in
20163   :[FHLC]) ac_mode=$ac_tag; continue;;
20164   esac
20165   case $ac_mode$ac_tag in
20166   :[FHL]*:*);;
20167   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20168   :[FH]-) ac_tag=-:-;;
20169   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20170   esac
20171   ac_save_IFS=$IFS
20172   IFS=:
20173   set x $ac_tag
20174   IFS=$ac_save_IFS
20175   shift
20176   ac_file=$1
20177   shift
20178
20179   case $ac_mode in
20180   :L) ac_source=$1;;
20181   :[FH])
20182     ac_file_inputs=
20183     for ac_f
20184     do
20185       case $ac_f in
20186       -) ac_f="$ac_tmp/stdin";;
20187       *) # Look for the file first in the build tree, then in the source tree
20188          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20189          # because $ac_f cannot contain `:'.
20190          test -f "$ac_f" ||
20191            case $ac_f in
20192            [\\/$]*) false;;
20193            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20194            esac ||
20195            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20196       esac
20197       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20198       as_fn_append ac_file_inputs " '$ac_f'"
20199     done
20200
20201     # Let's still pretend it is `configure' which instantiates (i.e., don't
20202     # use $as_me), people would be surprised to read:
20203     #    /* config.h.  Generated by config.status.  */
20204     configure_input='Generated from '`
20205           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20206         `' by configure.'
20207     if test x"$ac_file" != x-; then
20208       configure_input="$ac_file.  $configure_input"
20209       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20210 $as_echo "$as_me: creating $ac_file" >&6;}
20211     fi
20212     # Neutralize special characters interpreted by sed in replacement strings.
20213     case $configure_input in #(
20214     *\&* | *\|* | *\\* )
20215        ac_sed_conf_input=`$as_echo "$configure_input" |
20216        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20217     *) ac_sed_conf_input=$configure_input;;
20218     esac
20219
20220     case $ac_tag in
20221     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20222       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20223     esac
20224     ;;
20225   esac
20226
20227   ac_dir=`$as_dirname -- "$ac_file" ||
20228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20229          X"$ac_file" : 'X\(//\)[^/]' \| \
20230          X"$ac_file" : 'X\(//\)$' \| \
20231          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20232 $as_echo X"$ac_file" |
20233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20234             s//\1/
20235             q
20236           }
20237           /^X\(\/\/\)[^/].*/{
20238             s//\1/
20239             q
20240           }
20241           /^X\(\/\/\)$/{
20242             s//\1/
20243             q
20244           }
20245           /^X\(\/\).*/{
20246             s//\1/
20247             q
20248           }
20249           s/.*/./; q'`
20250   as_dir="$ac_dir"; as_fn_mkdir_p
20251   ac_builddir=.
20252
20253 case "$ac_dir" in
20254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20255 *)
20256   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20257   # A ".." for each directory in $ac_dir_suffix.
20258   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20259   case $ac_top_builddir_sub in
20260   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20261   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20262   esac ;;
20263 esac
20264 ac_abs_top_builddir=$ac_pwd
20265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20266 # for backward compatibility:
20267 ac_top_builddir=$ac_top_build_prefix
20268
20269 case $srcdir in
20270   .)  # We are building in place.
20271     ac_srcdir=.
20272     ac_top_srcdir=$ac_top_builddir_sub
20273     ac_abs_top_srcdir=$ac_pwd ;;
20274   [\\/]* | ?:[\\/]* )  # Absolute name.
20275     ac_srcdir=$srcdir$ac_dir_suffix;
20276     ac_top_srcdir=$srcdir
20277     ac_abs_top_srcdir=$srcdir ;;
20278   *) # Relative name.
20279     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20280     ac_top_srcdir=$ac_top_build_prefix$srcdir
20281     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20282 esac
20283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20284
20285
20286   case $ac_mode in
20287   :F)
20288   #
20289   # CONFIG_FILE
20290   #
20291
20292   case $INSTALL in
20293   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20294   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20295   esac
20296   ac_MKDIR_P=$MKDIR_P
20297   case $MKDIR_P in
20298   [\\/$]* | ?:[\\/]* ) ;;
20299   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20300   esac
20301 _ACEOF
20302
20303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20304 # If the template does not know about datarootdir, expand it.
20305 # FIXME: This hack should be removed a few years after 2.60.
20306 ac_datarootdir_hack=; ac_datarootdir_seen=
20307 ac_sed_dataroot='
20308 /datarootdir/ {
20309   p
20310   q
20311 }
20312 /@datadir@/p
20313 /@docdir@/p
20314 /@infodir@/p
20315 /@localedir@/p
20316 /@mandir@/p'
20317 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20318 *datarootdir*) ac_datarootdir_seen=yes;;
20319 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20320   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20321 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20322 _ACEOF
20323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20324   ac_datarootdir_hack='
20325   s&@datadir@&$datadir&g
20326   s&@docdir@&$docdir&g
20327   s&@infodir@&$infodir&g
20328   s&@localedir@&$localedir&g
20329   s&@mandir@&$mandir&g
20330   s&\\\${datarootdir}&$datarootdir&g' ;;
20331 esac
20332 _ACEOF
20333
20334 # Neutralize VPATH when `$srcdir' = `.'.
20335 # Shell code in configure.ac might set extrasub.
20336 # FIXME: do we really want to maintain this feature?
20337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20338 ac_sed_extra="$ac_vpsub
20339 $extrasub
20340 _ACEOF
20341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20342 :t
20343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20344 s|@configure_input@|$ac_sed_conf_input|;t t
20345 s&@top_builddir@&$ac_top_builddir_sub&;t t
20346 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20347 s&@srcdir@&$ac_srcdir&;t t
20348 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20349 s&@top_srcdir@&$ac_top_srcdir&;t t
20350 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20351 s&@builddir@&$ac_builddir&;t t
20352 s&@abs_builddir@&$ac_abs_builddir&;t t
20353 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20354 s&@INSTALL@&$ac_INSTALL&;t t
20355 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20356 $ac_datarootdir_hack
20357 "
20358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20359   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20360
20361 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20362   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20363   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20364       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20365   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20366 which seems to be undefined.  Please make sure it is defined" >&5
20367 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20368 which seems to be undefined.  Please make sure it is defined" >&2;}
20369
20370   rm -f "$ac_tmp/stdin"
20371   case $ac_file in
20372   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20373   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20374   esac \
20375   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20376  ;;
20377   :H)
20378   #
20379   # CONFIG_HEADER
20380   #
20381   if test x"$ac_file" != x-; then
20382     {
20383       $as_echo "/* $configure_input  */" \
20384       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20385     } >"$ac_tmp/config.h" \
20386       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20387     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20388       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20389 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20390     else
20391       rm -f "$ac_file"
20392       mv "$ac_tmp/config.h" "$ac_file" \
20393         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20394     fi
20395   else
20396     $as_echo "/* $configure_input  */" \
20397       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20398       || as_fn_error $? "could not create -" "$LINENO" 5
20399   fi
20400 # Compute "$ac_file"'s index in $config_headers.
20401 _am_arg="$ac_file"
20402 _am_stamp_count=1
20403 for _am_header in $config_headers :; do
20404   case $_am_header in
20405     $_am_arg | $_am_arg:* )
20406       break ;;
20407     * )
20408       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20409   esac
20410 done
20411 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20412 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20413          X"$_am_arg" : 'X\(//\)[^/]' \| \
20414          X"$_am_arg" : 'X\(//\)$' \| \
20415          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20416 $as_echo X"$_am_arg" |
20417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20418             s//\1/
20419             q
20420           }
20421           /^X\(\/\/\)[^/].*/{
20422             s//\1/
20423             q
20424           }
20425           /^X\(\/\/\)$/{
20426             s//\1/
20427             q
20428           }
20429           /^X\(\/\).*/{
20430             s//\1/
20431             q
20432           }
20433           s/.*/./; q'`/stamp-h$_am_stamp_count
20434  ;;
20435
20436   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20437 $as_echo "$as_me: executing $ac_file commands" >&6;}
20438  ;;
20439   esac
20440
20441
20442   case $ac_file$ac_mode in
20443     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20444   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20445   # are listed without --file.  Let's play safe and only enable the eval
20446   # if we detect the quoting.
20447   case $CONFIG_FILES in
20448   *\'*) eval set x "$CONFIG_FILES" ;;
20449   *)   set x $CONFIG_FILES ;;
20450   esac
20451   shift
20452   for mf
20453   do
20454     # Strip MF so we end up with the name of the file.
20455     mf=`echo "$mf" | sed -e 's/:.*$//'`
20456     # Check whether this is an Automake generated Makefile or not.
20457     # We used to match only the files named `Makefile.in', but
20458     # some people rename them; so instead we look at the file content.
20459     # Grep'ing the first line is not enough: some people post-process
20460     # each Makefile.in and add a new line on top of each file to say so.
20461     # Grep'ing the whole file is not good either: AIX grep has a line
20462     # limit of 2048, but all sed's we know have understand at least 4000.
20463     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20464       dirpart=`$as_dirname -- "$mf" ||
20465 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20466          X"$mf" : 'X\(//\)[^/]' \| \
20467          X"$mf" : 'X\(//\)$' \| \
20468          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20469 $as_echo X"$mf" |
20470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20471             s//\1/
20472             q
20473           }
20474           /^X\(\/\/\)[^/].*/{
20475             s//\1/
20476             q
20477           }
20478           /^X\(\/\/\)$/{
20479             s//\1/
20480             q
20481           }
20482           /^X\(\/\).*/{
20483             s//\1/
20484             q
20485           }
20486           s/.*/./; q'`
20487     else
20488       continue
20489     fi
20490     # Extract the definition of DEPDIR, am__include, and am__quote
20491     # from the Makefile without running `make'.
20492     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20493     test -z "$DEPDIR" && continue
20494     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20495     test -z "am__include" && continue
20496     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20497     # When using ansi2knr, U may be empty or an underscore; expand it
20498     U=`sed -n 's/^U = //p' < "$mf"`
20499     # Find all dependency output files, they are included files with
20500     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20501     # simplest approach to changing $(DEPDIR) to its actual value in the
20502     # expansion.
20503     for file in `sed -n "
20504       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20505          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20506       # Make sure the directory exists.
20507       test -f "$dirpart/$file" && continue
20508       fdir=`$as_dirname -- "$file" ||
20509 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20510          X"$file" : 'X\(//\)[^/]' \| \
20511          X"$file" : 'X\(//\)$' \| \
20512          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20513 $as_echo X"$file" |
20514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20515             s//\1/
20516             q
20517           }
20518           /^X\(\/\/\)[^/].*/{
20519             s//\1/
20520             q
20521           }
20522           /^X\(\/\/\)$/{
20523             s//\1/
20524             q
20525           }
20526           /^X\(\/\).*/{
20527             s//\1/
20528             q
20529           }
20530           s/.*/./; q'`
20531       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20532       # echo "creating $dirpart/$file"
20533       echo '# dummy' > "$dirpart/$file"
20534     done
20535   done
20536 }
20537  ;;
20538     "libtool":C)
20539
20540     # See if we are running on zsh, and set the options which allow our
20541     # commands through without removal of \ escapes.
20542     if test -n "${ZSH_VERSION+set}" ; then
20543       setopt NO_GLOB_SUBST
20544     fi
20545
20546     cfgfile="${ofile}T"
20547     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20548     $RM "$cfgfile"
20549
20550     cat <<_LT_EOF >> "$cfgfile"
20551 #! $SHELL
20552
20553 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20554 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20555 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20556 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20557 #
20558 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20559 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20560 #                 Foundation, Inc.
20561 #   Written by Gordon Matzigkeit, 1996
20562 #
20563 #   This file is part of GNU Libtool.
20564 #
20565 # GNU Libtool is free software; you can redistribute it and/or
20566 # modify it under the terms of the GNU General Public License as
20567 # published by the Free Software Foundation; either version 2 of
20568 # the License, or (at your option) any later version.
20569 #
20570 # As a special exception to the GNU General Public License,
20571 # if you distribute this file as part of a program or library that
20572 # is built using GNU Libtool, you may include this file under the
20573 # same distribution terms that you use for the rest of that program.
20574 #
20575 # GNU Libtool is distributed in the hope that it will be useful,
20576 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20577 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20578 # GNU General Public License for more details.
20579 #
20580 # You should have received a copy of the GNU General Public License
20581 # along with GNU Libtool; see the file COPYING.  If not, a copy
20582 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20583 # obtained by writing to the Free Software Foundation, Inc.,
20584 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20585
20586
20587 # The names of the tagged configurations supported by this script.
20588 available_tags="CXX "
20589
20590 # ### BEGIN LIBTOOL CONFIG
20591
20592 # Assembler program.
20593 AS=$lt_AS
20594
20595 # DLL creation program.
20596 DLLTOOL=$lt_DLLTOOL
20597
20598 # Object dumper program.
20599 OBJDUMP=$lt_OBJDUMP
20600
20601 # Which release of libtool.m4 was used?
20602 macro_version=$macro_version
20603 macro_revision=$macro_revision
20604
20605 # Whether or not to build shared libraries.
20606 build_libtool_libs=$enable_shared
20607
20608 # Whether or not to build static libraries.
20609 build_old_libs=$enable_static
20610
20611 # What type of objects to build.
20612 pic_mode=$pic_mode
20613
20614 # Whether or not to optimize for fast installation.
20615 fast_install=$enable_fast_install
20616
20617 # Shell to use when invoking shell scripts.
20618 SHELL=$lt_SHELL
20619
20620 # An echo program that protects backslashes.
20621 ECHO=$lt_ECHO
20622
20623 # The PATH separator for the build system.
20624 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20625
20626 # The host system.
20627 host_alias=$host_alias
20628 host=$host
20629 host_os=$host_os
20630
20631 # The build system.
20632 build_alias=$build_alias
20633 build=$build
20634 build_os=$build_os
20635
20636 # A sed program that does not truncate output.
20637 SED=$lt_SED
20638
20639 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20640 Xsed="\$SED -e 1s/^X//"
20641
20642 # A grep program that handles long lines.
20643 GREP=$lt_GREP
20644
20645 # An ERE matcher.
20646 EGREP=$lt_EGREP
20647
20648 # A literal string matcher.
20649 FGREP=$lt_FGREP
20650
20651 # A BSD- or MS-compatible name lister.
20652 NM=$lt_NM
20653
20654 # Whether we need soft or hard links.
20655 LN_S=$lt_LN_S
20656
20657 # What is the maximum length of a command?
20658 max_cmd_len=$max_cmd_len
20659
20660 # Object file suffix (normally "o").
20661 objext=$ac_objext
20662
20663 # Executable file suffix (normally "").
20664 exeext=$exeext
20665
20666 # whether the shell understands "unset".
20667 lt_unset=$lt_unset
20668
20669 # turn spaces into newlines.
20670 SP2NL=$lt_lt_SP2NL
20671
20672 # turn newlines into spaces.
20673 NL2SP=$lt_lt_NL2SP
20674
20675 # convert \$build file names to \$host format.
20676 to_host_file_cmd=$lt_cv_to_host_file_cmd
20677
20678 # convert \$build files to toolchain format.
20679 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20680
20681 # Method to check whether dependent libraries are shared objects.
20682 deplibs_check_method=$lt_deplibs_check_method
20683
20684 # Command to use when deplibs_check_method = "file_magic".
20685 file_magic_cmd=$lt_file_magic_cmd
20686
20687 # How to find potential files when deplibs_check_method = "file_magic".
20688 file_magic_glob=$lt_file_magic_glob
20689
20690 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20691 want_nocaseglob=$lt_want_nocaseglob
20692
20693 # Command to associate shared and link libraries.
20694 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20695
20696 # The archiver.
20697 AR=$lt_AR
20698
20699 # Flags to create an archive.
20700 AR_FLAGS=$lt_AR_FLAGS
20701
20702 # How to feed a file listing to the archiver.
20703 archiver_list_spec=$lt_archiver_list_spec
20704
20705 # A symbol stripping program.
20706 STRIP=$lt_STRIP
20707
20708 # Commands used to install an old-style archive.
20709 RANLIB=$lt_RANLIB
20710 old_postinstall_cmds=$lt_old_postinstall_cmds
20711 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20712
20713 # Whether to use a lock for old archive extraction.
20714 lock_old_archive_extraction=$lock_old_archive_extraction
20715
20716 # A C compiler.
20717 LTCC=$lt_CC
20718
20719 # LTCC compiler flags.
20720 LTCFLAGS=$lt_CFLAGS
20721
20722 # Take the output of nm and produce a listing of raw symbols and C names.
20723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20724
20725 # Transform the output of nm in a proper C declaration.
20726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20727
20728 # Transform the output of nm in a C name address pair.
20729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20730
20731 # Transform the output of nm in a C name address pair when lib prefix is needed.
20732 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20733
20734 # Specify filename containing input files for \$NM.
20735 nm_file_list_spec=$lt_nm_file_list_spec
20736
20737 # The root where to search for dependent libraries,and in which our libraries should be installed.
20738 lt_sysroot=$lt_sysroot
20739
20740 # The name of the directory that contains temporary libtool files.
20741 objdir=$objdir
20742
20743 # Used to examine libraries when file_magic_cmd begins with "file".
20744 MAGIC_CMD=$MAGIC_CMD
20745
20746 # Must we lock files when doing compilation?
20747 need_locks=$lt_need_locks
20748
20749 # Manifest tool.
20750 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20751
20752 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20753 DSYMUTIL=$lt_DSYMUTIL
20754
20755 # Tool to change global to local symbols on Mac OS X.
20756 NMEDIT=$lt_NMEDIT
20757
20758 # Tool to manipulate fat objects and archives on Mac OS X.
20759 LIPO=$lt_LIPO
20760
20761 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20762 OTOOL=$lt_OTOOL
20763
20764 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20765 OTOOL64=$lt_OTOOL64
20766
20767 # Old archive suffix (normally "a").
20768 libext=$libext
20769
20770 # Shared library suffix (normally ".so").
20771 shrext_cmds=$lt_shrext_cmds
20772
20773 # The commands to extract the exported symbol list from a shared archive.
20774 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20775
20776 # Variables whose values should be saved in libtool wrapper scripts and
20777 # restored at link time.
20778 variables_saved_for_relink=$lt_variables_saved_for_relink
20779
20780 # Do we need the "lib" prefix for modules?
20781 need_lib_prefix=$need_lib_prefix
20782
20783 # Do we need a version for libraries?
20784 need_version=$need_version
20785
20786 # Library versioning type.
20787 version_type=$version_type
20788
20789 # Shared library runtime path variable.
20790 runpath_var=$runpath_var
20791
20792 # Shared library path variable.
20793 shlibpath_var=$shlibpath_var
20794
20795 # Is shlibpath searched before the hard-coded library search path?
20796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20797
20798 # Format of library name prefix.
20799 libname_spec=$lt_libname_spec
20800
20801 # List of archive names.  First name is the real one, the rest are links.
20802 # The last name is the one that the linker finds with -lNAME
20803 library_names_spec=$lt_library_names_spec
20804
20805 # The coded name of the library, if different from the real name.
20806 soname_spec=$lt_soname_spec
20807
20808 # Permission mode override for installation of shared libraries.
20809 install_override_mode=$lt_install_override_mode
20810
20811 # Command to use after installation of a shared archive.
20812 postinstall_cmds=$lt_postinstall_cmds
20813
20814 # Command to use after uninstallation of a shared archive.
20815 postuninstall_cmds=$lt_postuninstall_cmds
20816
20817 # Commands used to finish a libtool library installation in a directory.
20818 finish_cmds=$lt_finish_cmds
20819
20820 # As "finish_cmds", except a single script fragment to be evaled but
20821 # not shown.
20822 finish_eval=$lt_finish_eval
20823
20824 # Whether we should hardcode library paths into libraries.
20825 hardcode_into_libs=$hardcode_into_libs
20826
20827 # Compile-time system search path for libraries.
20828 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20829
20830 # Run-time system search path for libraries.
20831 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20832
20833 # Whether dlopen is supported.
20834 dlopen_support=$enable_dlopen
20835
20836 # Whether dlopen of programs is supported.
20837 dlopen_self=$enable_dlopen_self
20838
20839 # Whether dlopen of statically linked programs is supported.
20840 dlopen_self_static=$enable_dlopen_self_static
20841
20842 # Commands to strip libraries.
20843 old_striplib=$lt_old_striplib
20844 striplib=$lt_striplib
20845
20846
20847 # The linker used to build libraries.
20848 LD=$lt_LD
20849
20850 # How to create reloadable object files.
20851 reload_flag=$lt_reload_flag
20852 reload_cmds=$lt_reload_cmds
20853
20854 # Commands used to build an old-style archive.
20855 old_archive_cmds=$lt_old_archive_cmds
20856
20857 # A language specific compiler.
20858 CC=$lt_compiler
20859
20860 # Is the compiler the GNU compiler?
20861 with_gcc=$GCC
20862
20863 # Compiler flag to turn off builtin functions.
20864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20865
20866 # Additional compiler flags for building library objects.
20867 pic_flag=$lt_lt_prog_compiler_pic
20868
20869 # How to pass a linker flag through the compiler.
20870 wl=$lt_lt_prog_compiler_wl
20871
20872 # Compiler flag to prevent dynamic linking.
20873 link_static_flag=$lt_lt_prog_compiler_static
20874
20875 # Does compiler simultaneously support -c and -o options?
20876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20877
20878 # Whether or not to add -lc for building shared libraries.
20879 build_libtool_need_lc=$archive_cmds_need_lc
20880
20881 # Whether or not to disallow shared libs when runtime libs are static.
20882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20883
20884 # Compiler flag to allow reflexive dlopens.
20885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20886
20887 # Compiler flag to generate shared objects directly from archives.
20888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20889
20890 # Whether the compiler copes with passing no objects directly.
20891 compiler_needs_object=$lt_compiler_needs_object
20892
20893 # Create an old-style archive from a shared archive.
20894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20895
20896 # Create a temporary old-style archive to link instead of a shared archive.
20897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20898
20899 # Commands used to build a shared archive.
20900 archive_cmds=$lt_archive_cmds
20901 archive_expsym_cmds=$lt_archive_expsym_cmds
20902
20903 # Commands used to build a loadable module if different from building
20904 # a shared archive.
20905 module_cmds=$lt_module_cmds
20906 module_expsym_cmds=$lt_module_expsym_cmds
20907
20908 # Whether we are building with GNU ld or not.
20909 with_gnu_ld=$lt_with_gnu_ld
20910
20911 # Flag that allows shared libraries with undefined symbols to be built.
20912 allow_undefined_flag=$lt_allow_undefined_flag
20913
20914 # Flag that enforces no undefined symbols.
20915 no_undefined_flag=$lt_no_undefined_flag
20916
20917 # Flag to hardcode \$libdir into a binary during linking.
20918 # This must work even if \$libdir does not exist
20919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20920
20921 # Whether we need a single "-rpath" flag with a separated argument.
20922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20923
20924 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20925 # DIR into the resulting binary.
20926 hardcode_direct=$hardcode_direct
20927
20928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20929 # DIR into the resulting binary and the resulting library dependency is
20930 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20931 # library is relocated.
20932 hardcode_direct_absolute=$hardcode_direct_absolute
20933
20934 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20935 # into the resulting binary.
20936 hardcode_minus_L=$hardcode_minus_L
20937
20938 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20939 # into the resulting binary.
20940 hardcode_shlibpath_var=$hardcode_shlibpath_var
20941
20942 # Set to "yes" if building a shared library automatically hardcodes DIR
20943 # into the library and all subsequent libraries and executables linked
20944 # against it.
20945 hardcode_automatic=$hardcode_automatic
20946
20947 # Set to yes if linker adds runtime paths of dependent libraries
20948 # to runtime path list.
20949 inherit_rpath=$inherit_rpath
20950
20951 # Whether libtool must link a program against all its dependency libraries.
20952 link_all_deplibs=$link_all_deplibs
20953
20954 # Set to "yes" if exported symbols are required.
20955 always_export_symbols=$always_export_symbols
20956
20957 # The commands to list exported symbols.
20958 export_symbols_cmds=$lt_export_symbols_cmds
20959
20960 # Symbols that should not be listed in the preloaded symbols.
20961 exclude_expsyms=$lt_exclude_expsyms
20962
20963 # Symbols that must always be exported.
20964 include_expsyms=$lt_include_expsyms
20965
20966 # Commands necessary for linking programs (against libraries) with templates.
20967 prelink_cmds=$lt_prelink_cmds
20968
20969 # Commands necessary for finishing linking programs.
20970 postlink_cmds=$lt_postlink_cmds
20971
20972 # Specify filename containing input files.
20973 file_list_spec=$lt_file_list_spec
20974
20975 # How to hardcode a shared library path into an executable.
20976 hardcode_action=$hardcode_action
20977
20978 # The directories searched by this compiler when creating a shared library.
20979 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20980
20981 # Dependencies to place before and after the objects being linked to
20982 # create a shared library.
20983 predep_objects=$lt_predep_objects
20984 postdep_objects=$lt_postdep_objects
20985 predeps=$lt_predeps
20986 postdeps=$lt_postdeps
20987
20988 # The library search path used internally by the compiler when linking
20989 # a shared library.
20990 compiler_lib_search_path=$lt_compiler_lib_search_path
20991
20992 # ### END LIBTOOL CONFIG
20993
20994 _LT_EOF
20995
20996   case $host_os in
20997   aix3*)
20998     cat <<\_LT_EOF >> "$cfgfile"
20999 # AIX sometimes has problems with the GCC collect2 program.  For some
21000 # reason, if we set the COLLECT_NAMES environment variable, the problems
21001 # vanish in a puff of smoke.
21002 if test "X${COLLECT_NAMES+set}" != Xset; then
21003   COLLECT_NAMES=
21004   export COLLECT_NAMES
21005 fi
21006 _LT_EOF
21007     ;;
21008   esac
21009
21010
21011 ltmain="$ac_aux_dir/ltmain.sh"
21012
21013
21014   # We use sed instead of cat because bash on DJGPP gets confused if
21015   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21016   # text mode, it properly converts lines to CR/LF.  This bash problem
21017   # is reportedly fixed, but why not run on old versions too?
21018   sed '$q' "$ltmain" >> "$cfgfile" \
21019      || (rm -f "$cfgfile"; exit 1)
21020
21021   if test x"$xsi_shell" = xyes; then
21022   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21023 func_dirname ()\
21024 {\
21025 \    case ${1} in\
21026 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21027 \      *  ) func_dirname_result="${3}" ;;\
21028 \    esac\
21029 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21030   && mv -f "$cfgfile.tmp" "$cfgfile" \
21031     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21032 test 0 -eq $? || _lt_function_replace_fail=:
21033
21034
21035   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21036 func_basename ()\
21037 {\
21038 \    func_basename_result="${1##*/}"\
21039 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21040   && mv -f "$cfgfile.tmp" "$cfgfile" \
21041     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21042 test 0 -eq $? || _lt_function_replace_fail=:
21043
21044
21045   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21046 func_dirname_and_basename ()\
21047 {\
21048 \    case ${1} in\
21049 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21050 \      *  ) func_dirname_result="${3}" ;;\
21051 \    esac\
21052 \    func_basename_result="${1##*/}"\
21053 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21054   && mv -f "$cfgfile.tmp" "$cfgfile" \
21055     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21056 test 0 -eq $? || _lt_function_replace_fail=:
21057
21058
21059   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21060 func_stripname ()\
21061 {\
21062 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21063 \    # positional parameters, so assign one to ordinary parameter first.\
21064 \    func_stripname_result=${3}\
21065 \    func_stripname_result=${func_stripname_result#"${1}"}\
21066 \    func_stripname_result=${func_stripname_result%"${2}"}\
21067 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21068   && mv -f "$cfgfile.tmp" "$cfgfile" \
21069     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21070 test 0 -eq $? || _lt_function_replace_fail=:
21071
21072
21073   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21074 func_split_long_opt ()\
21075 {\
21076 \    func_split_long_opt_name=${1%%=*}\
21077 \    func_split_long_opt_arg=${1#*=}\
21078 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21079   && mv -f "$cfgfile.tmp" "$cfgfile" \
21080     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21081 test 0 -eq $? || _lt_function_replace_fail=:
21082
21083
21084   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21085 func_split_short_opt ()\
21086 {\
21087 \    func_split_short_opt_arg=${1#??}\
21088 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21089 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21090   && mv -f "$cfgfile.tmp" "$cfgfile" \
21091     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21092 test 0 -eq $? || _lt_function_replace_fail=:
21093
21094
21095   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21096 func_lo2o ()\
21097 {\
21098 \    case ${1} in\
21099 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21100 \      *)    func_lo2o_result=${1} ;;\
21101 \    esac\
21102 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21103   && mv -f "$cfgfile.tmp" "$cfgfile" \
21104     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21105 test 0 -eq $? || _lt_function_replace_fail=:
21106
21107
21108   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21109 func_xform ()\
21110 {\
21111     func_xform_result=${1%.*}.lo\
21112 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21113   && mv -f "$cfgfile.tmp" "$cfgfile" \
21114     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21115 test 0 -eq $? || _lt_function_replace_fail=:
21116
21117
21118   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21119 func_arith ()\
21120 {\
21121     func_arith_result=$(( $* ))\
21122 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21123   && mv -f "$cfgfile.tmp" "$cfgfile" \
21124     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21125 test 0 -eq $? || _lt_function_replace_fail=:
21126
21127
21128   sed -e '/^func_len ()$/,/^} # func_len /c\
21129 func_len ()\
21130 {\
21131     func_len_result=${#1}\
21132 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21133   && mv -f "$cfgfile.tmp" "$cfgfile" \
21134     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21135 test 0 -eq $? || _lt_function_replace_fail=:
21136
21137 fi
21138
21139 if test x"$lt_shell_append" = xyes; then
21140   sed -e '/^func_append ()$/,/^} # func_append /c\
21141 func_append ()\
21142 {\
21143     eval "${1}+=\\${2}"\
21144 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21145   && mv -f "$cfgfile.tmp" "$cfgfile" \
21146     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21147 test 0 -eq $? || _lt_function_replace_fail=:
21148
21149
21150   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21151 func_append_quoted ()\
21152 {\
21153 \    func_quote_for_eval "${2}"\
21154 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21155 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21156   && mv -f "$cfgfile.tmp" "$cfgfile" \
21157     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21158 test 0 -eq $? || _lt_function_replace_fail=:
21159
21160
21161   # Save a `func_append' function call where possible by direct use of '+='
21162   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21163     && mv -f "$cfgfile.tmp" "$cfgfile" \
21164       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21165   test 0 -eq $? || _lt_function_replace_fail=:
21166 else
21167   # Save a `func_append' function call even when '+=' is not available
21168   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21169     && mv -f "$cfgfile.tmp" "$cfgfile" \
21170       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21171   test 0 -eq $? || _lt_function_replace_fail=:
21172 fi
21173
21174 if test x"$_lt_function_replace_fail" = x":"; then
21175   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21176 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21177 fi
21178
21179
21180    mv -f "$cfgfile" "$ofile" ||
21181     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21182   chmod +x "$ofile"
21183
21184
21185     cat <<_LT_EOF >> "$ofile"
21186
21187 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21188
21189 # The linker used to build libraries.
21190 LD=$lt_LD_CXX
21191
21192 # How to create reloadable object files.
21193 reload_flag=$lt_reload_flag_CXX
21194 reload_cmds=$lt_reload_cmds_CXX
21195
21196 # Commands used to build an old-style archive.
21197 old_archive_cmds=$lt_old_archive_cmds_CXX
21198
21199 # A language specific compiler.
21200 CC=$lt_compiler_CXX
21201
21202 # Is the compiler the GNU compiler?
21203 with_gcc=$GCC_CXX
21204
21205 # Compiler flag to turn off builtin functions.
21206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21207
21208 # Additional compiler flags for building library objects.
21209 pic_flag=$lt_lt_prog_compiler_pic_CXX
21210
21211 # How to pass a linker flag through the compiler.
21212 wl=$lt_lt_prog_compiler_wl_CXX
21213
21214 # Compiler flag to prevent dynamic linking.
21215 link_static_flag=$lt_lt_prog_compiler_static_CXX
21216
21217 # Does compiler simultaneously support -c and -o options?
21218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21219
21220 # Whether or not to add -lc for building shared libraries.
21221 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21222
21223 # Whether or not to disallow shared libs when runtime libs are static.
21224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21225
21226 # Compiler flag to allow reflexive dlopens.
21227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21228
21229 # Compiler flag to generate shared objects directly from archives.
21230 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21231
21232 # Whether the compiler copes with passing no objects directly.
21233 compiler_needs_object=$lt_compiler_needs_object_CXX
21234
21235 # Create an old-style archive from a shared archive.
21236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21237
21238 # Create a temporary old-style archive to link instead of a shared archive.
21239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21240
21241 # Commands used to build a shared archive.
21242 archive_cmds=$lt_archive_cmds_CXX
21243 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21244
21245 # Commands used to build a loadable module if different from building
21246 # a shared archive.
21247 module_cmds=$lt_module_cmds_CXX
21248 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21249
21250 # Whether we are building with GNU ld or not.
21251 with_gnu_ld=$lt_with_gnu_ld_CXX
21252
21253 # Flag that allows shared libraries with undefined symbols to be built.
21254 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21255
21256 # Flag that enforces no undefined symbols.
21257 no_undefined_flag=$lt_no_undefined_flag_CXX
21258
21259 # Flag to hardcode \$libdir into a binary during linking.
21260 # This must work even if \$libdir does not exist
21261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21262
21263 # Whether we need a single "-rpath" flag with a separated argument.
21264 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21265
21266 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21267 # DIR into the resulting binary.
21268 hardcode_direct=$hardcode_direct_CXX
21269
21270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21271 # DIR into the resulting binary and the resulting library dependency is
21272 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21273 # library is relocated.
21274 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21275
21276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21277 # into the resulting binary.
21278 hardcode_minus_L=$hardcode_minus_L_CXX
21279
21280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21281 # into the resulting binary.
21282 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21283
21284 # Set to "yes" if building a shared library automatically hardcodes DIR
21285 # into the library and all subsequent libraries and executables linked
21286 # against it.
21287 hardcode_automatic=$hardcode_automatic_CXX
21288
21289 # Set to yes if linker adds runtime paths of dependent libraries
21290 # to runtime path list.
21291 inherit_rpath=$inherit_rpath_CXX
21292
21293 # Whether libtool must link a program against all its dependency libraries.
21294 link_all_deplibs=$link_all_deplibs_CXX
21295
21296 # Set to "yes" if exported symbols are required.
21297 always_export_symbols=$always_export_symbols_CXX
21298
21299 # The commands to list exported symbols.
21300 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21301
21302 # Symbols that should not be listed in the preloaded symbols.
21303 exclude_expsyms=$lt_exclude_expsyms_CXX
21304
21305 # Symbols that must always be exported.
21306 include_expsyms=$lt_include_expsyms_CXX
21307
21308 # Commands necessary for linking programs (against libraries) with templates.
21309 prelink_cmds=$lt_prelink_cmds_CXX
21310
21311 # Commands necessary for finishing linking programs.
21312 postlink_cmds=$lt_postlink_cmds_CXX
21313
21314 # Specify filename containing input files.
21315 file_list_spec=$lt_file_list_spec_CXX
21316
21317 # How to hardcode a shared library path into an executable.
21318 hardcode_action=$hardcode_action_CXX
21319
21320 # The directories searched by this compiler when creating a shared library.
21321 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21322
21323 # Dependencies to place before and after the objects being linked to
21324 # create a shared library.
21325 predep_objects=$lt_predep_objects_CXX
21326 postdep_objects=$lt_postdep_objects_CXX
21327 predeps=$lt_predeps_CXX
21328 postdeps=$lt_postdeps_CXX
21329
21330 # The library search path used internally by the compiler when linking
21331 # a shared library.
21332 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21333
21334 # ### END LIBTOOL TAG CONFIG: CXX
21335 _LT_EOF
21336
21337  ;;
21338     "default":C) chmod +x mecab-config \
21339              ;;
21340
21341   esac
21342 done # for ac_tag
21343
21344
21345 as_fn_exit 0
21346 _ACEOF
21347 ac_clean_files=$ac_clean_files_save
21348
21349 test $ac_write_fail = 0 ||
21350   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21351
21352
21353 # configure is writing to config.log, and then calls config.status.
21354 # config.status does its own redirection, appending to config.log.
21355 # Unfortunately, on DOS this fails, as config.log is still kept open
21356 # by configure, so config.status won't be able to write to it; its
21357 # output is simply discarded.  So we exec the FD to /dev/null,
21358 # effectively closing config.log, so it can be properly (re)opened and
21359 # appended to by config.status.  When coming back to configure, we
21360 # need to make the FD available again.
21361 if test "$no_create" != yes; then
21362   ac_cs_success=:
21363   ac_config_status_args=
21364   test "$silent" = yes &&
21365     ac_config_status_args="$ac_config_status_args --quiet"
21366   exec 5>/dev/null
21367   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21368   exec 5>>config.log
21369   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21370   # would make configure fail if this is the last instruction.
21371   $ac_cs_success || as_fn_exit 1
21372 fi
21373 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21375 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21376 fi
21377
21378